text: !function(t,x){"use strict";var i=["opacity","zIndex"];function a(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function A(t){return t===x||null===t}function g(t){return t.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})}function y(t){var e;return!(!t||"[object Object]"!==Object.prototype.toString.call(t))&&(!(e=t.prototype!==x)||e.constructor&&"function"==typeof e.constructor)}function w(t){for(var e in t)if(s(t,e))return!1;return!0}function o(t){return t instanceof Object&&"length"in t}function h(t,e){return e=e||" ",t.split(e).map(function(t){return(""+t).trim()}).filter(function(t){return""!==t})}function m(t,e){return e=e||[0,""],t=String(t),e[0]=parseFloat(t),e[1]=t.match(/[\d.\-+]*\s*(.*)/)[1]||"",e}function v(t,e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t);return void 0!==n[1]?n[1]:e}function r(t,e,n){e=g(e),-1<["scrollLeft","scrollTop"].indexOf(e)?t[e]=parseInt(n):t.style[e]=isNaN(n)||-1<i.indexOf(""+e)?n:n+"px"}function n(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function u(t,e,n){var i;return A(n)&&1===t.nodeType&&(i="data-"+e.replace(/[A-Z]/g,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))?(n=function(e){try{return JSON.parse(e)}catch(t){return e}}(n),T.set(t,e,n)):n=x),n}function l(t){return"string"!=typeof t?x:t.replace(/-/g,"").toLowerCase()}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function e(t){var e=t||window.location.hostname;return"localhost"===e||"127.0.0.1"===e||"[::1]"===e||""===e||null!==e.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)}!function(e){if(!e.setImmediate){var i,n,o,r=1,a={},s=!1,t=Object.getPrototypeOf&&Object.getPrototypeOf(e);t=t&&t.setTimeout?t:e,i="[object process]"==={}.toString.call(e.process)?function(t){e.process.nextTick(function(){c(t)})}:e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){c(t.data)},function(t){o.port2.postMessage(t)}):(n="setImmediate$"+Math.random()+"$",e.addEventListener("message",function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(n)&&c(+t.data.slice(n.length))},!1),function(t){e.postMessage(n+t,"*")}),t.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];return a[r]={callback:t,args:e},i(r),r++},t.clearImmediate=u}function u(t){delete a[t]}function c(t){if(s)setTimeout(c,0,t);else{var e=a[t];if(e){s=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(x,n)}}(e)}finally{u(t),s=!1}}}}}("undefined"==typeof self?void 0===t?window:t:self),function(t){if(!t.Promise){var n,i="pending",o="sealed",a="fulfilled",s="rejected",r=function(){},u="undefined"!=typeof setImmediate?setImmediate:setTimeout,c=[];b.prototype={constructor:b,state_:i,then_:null,data_:x,then:function(t,e){var n={owner:this,then:new this.constructor(r),fulfilled:t,rejected:e};return this.state_===a||this.state_===s?h(l,n):this.then_.push(n),n.then},done:function(t){return this.then(t,null)},always:function(t){return this.then(t,t)},catch:function(t){return this.then(null,t)}},b.all=function(s){if(!e(s))throw new TypeError("You must pass an array to Promise.all().");return new this(function(n,t){var i=[],o=0;function e(e){return o++,function(t){i[e]=t,--o||n(i)}}for(var r,a=0;a<s.length;a++)(r=s[a])&&"function"==typeof r.then?r.then(e(a),t):i[a]=r;o||n(i)})},b.race=function(o){if(!e(o))throw new TypeError("You must pass an array to Promise.race().");return new this(function(t,e){for(var n,i=0;i<o.length;i++)(n=o[i])&&"function"==typeof n.then?n.then(t,e):t(n)})},b.resolve=function(e){return e&&"object"==typeof e&&e.constructor===this?e:new this(function(t){t(e)})},b.reject=function(n){return new this(function(t,e){e(n)})},void 0===t.Promise&&(t.Promise=b)}function e(t){return"[object Array]"===Object.prototype.toString.call(t)}function f(){for(var t=0;t<c.length;t++)c[t][0](c[t][1]);n=!(c=[])}function h(t,e){c.push([t,e]),n||(n=!0,u(f,0))}function l(t){var e=t.owner,n=e.state_,i=e.data_,o=t[n],r=t.then;if("function"==typeof o){n=a;try{i=o(i)}catch(t){v(r,t)}}p(r,i)||(n===a&&d(r,i),n===s&&v(r,i))}function p(e,n){var i;try{if(e===n)throw new TypeError("A promises callback cannot return that same promise.");if(n&&("function"==typeof n||"object"==typeof n)){var t=n.then;if("function"==typeof t)return t.call(n,function(t){i||(i=!0,n!==t?d(e,t):m(e,t))},function(t){i||(i=!0,v(e,t))}),!0}}catch(t){return i||v(e,t),!0}return!1}function d(t,e){t!==e&&p(t,e)||m(t,e)}function m(t,e){t.state_===i&&(t.state_=o,t.data_=e,h(y,t))}function v(t,e){t.state_===i&&(t.state_=o,t.data_=e,h(w,t))}function g(t){var e=t.then_;t.then_=x;for(var n=0;n<e.length;n++)l(e[n])}function y(t){t.state_=a,g(t)}function w(t){t.state_=s,g(t)}function b(t){if("function"!=typeof t)throw new TypeError("Promise constructor takes a function argument");if(!(this instanceof b))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[],function(t,e){function n(t){v(e,t)}try{t(function(t){d(e,t)},n)}catch(t){n(t)}}(t,this)}}(window);var c="v1.0.10. Built at 08/01/2021 13:03:24",p=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector,S=function(t,e){return new S.init(t,e)};S.version=c,S.fn=S.prototype={version:c,constructor:S,length:0,uid:"",push:[].push,sort:[].sort,splice:[].splice,indexOf:[].indexOf,reverse:[].reverse},S.extend=S.fn.extend=function(){var t,e,n=arguments[0]||{},i=1,o=arguments.length;for("object"!=typeof n&&"function"!=typeof n&&(n={}),i===o&&(n=this,i--);i<o;i++)if(null!=(t=arguments[i]))for(e in t)s(t,e)&&(n[e]=t[e]);return n},S.assign=function(){var t,e,n=arguments[0]||{},i=1,o=arguments.length;for("object"!=typeof n&&"function"!=typeof n&&(n={}),i===o&&(n=this,i--);i<o;i++)if(null!=(t=arguments[i]))for(e in t)s(t,e)&&t[e]!==x&&(n[e]=t[e]);return n};function f(){return Date.now()}function d(t){var e=document.createElement("script");if(e.type="text/javascript",A(t))return S(e);var n=S(t)[0];return n.src?e.src=n.src:e.textContent=n.innerText,document.body.appendChild(e),n.parentNode&&n.parentNode.removeChild(n),e}S.extend({intervalId:-1,intervalQueue:[],intervalTicking:!1,intervalTickId:null,setInterval:function(t,e){var n=this;if(this.intervalId++,this.intervalQueue.push({id:this.intervalId,fn:t,interval:e,lastTime:f()}),!this.intervalTicking){var i=function(){n.intervalTickId=requestAnimationFrame(i),S.each(n.intervalQueue,function(){var t=this;(t.interval<17||f()-t.lastTime>=t.interval)&&(t.fn(),t.lastTime=f())})};this.intervalTicking=!0,i()}return this.intervalId},clearInterval:function(t){for(var e=0;e<this.intervalQueue.length;e++)if(t===this.intervalQueue[e].id){this.intervalQueue.splice(e,1);break}0===this.intervalQueue.length&&(cancelAnimationFrame(this.intervalTickId),this.intervalTicking=!1)},setTimeout:function(t,e){var n=this,i=this.setInterval(function(){n.clearInterval(i),t()},e);return i},clearTimeout:function(t){return this.clearInterval(t)}}),S.fn.extend({index:function(t){var e,n=-1;return 0===this.length||A(e=A(t)?this[0]:t instanceof S&&0<t.length?t[0]:"string"==typeof t?S(t)[0]:x)||e&&e.parentNode&&S.each(e.parentNode.children,function(t){this===e&&(n=t)}),n},get:function(t){return t===x?this.items():t<0?this[t+this.length]:this[t]},eq:function(t){return!A(t)&&0<this.length?S.extend(S(this.get(t)),{_prevObj:this}):this},is:function(e){var n=!1;return 0!==this.length&&(e instanceof S?this.same(e):(":selected"===e?this.each(function(){this.selected&&(n=!0)}):":checked"===e?this.each(function(){this.checked&&(n=!0)}):":visible"===e?this.each(function(){a(this)&&(n=!0)}):":hidden"===e?this.each(function(){var t=getComputedStyle(this);"hidden"!==this.getAttribute("type")&&!this.hidden&&"none"!==t.display&&"hidden"!==t.visibility&&0!==parseInt(t.opacity)||(n=!0)}):"string"==typeof e&&-1===[":selected"].indexOf(e)?this.each(function(){p.call(this,e)&&(n=!0)}):o(e)?this.each(function(){var t=this;S.each(e,function(){t===this&&(n=!0)})}):"object"==typeof e&&1===e.nodeType&&this.each(function(){this===e&&(n=!0)}),n))},same:function(t){var e=!0;return t instanceof S||(t=S(t)),this.length===t.length&&(this.each(function(){-1===t.items().indexOf(this)&&(e=!1)}),e)},last:function(){return this.eq(this.length-1)},first:function(){return this.eq(0)},odd:function(){var t=this.filter(function(t,e){return e%2==0});return S.extend(t,{_prevObj:this})},even:function(){var t=this.filter(function(t,e){return e%2!=0});return S.extend(t,{_prevObj:this})},filter:function(t){if("string"==typeof t){var e=t;t=function(t){return p.call(t,e)}}return S.extend(S.merge(S(),[].filter.call(this,t)),{_prevObj:this})},find:function(t){var e,n=[];return t instanceof S?t:(e=0===this.length?this:(this.each(function(){void 0!==this.querySelectorAll&&(n=n.concat([].slice.call(this.querySelectorAll(t))))}),S.merge(S(),n)),S.extend(e,{_prevObj:this}))},contains:function(t){return 0<this.find(t).length},children:function(e){var t,n=[];return e instanceof S?e:(this.each(function(){for(t=0;t<this.children.length;t++)1===this.children[t].nodeType&&n.push(this.children[t])}),n=e?n.filter(function(t){return p.call(t,e)}):n,S.extend(S.merge(S(),n),{_prevObj:this}))},parent:function(e){var t=[];if(0!==this.length)return e instanceof S?e:(this.each(function(){this.parentNode&&-1===t.indexOf(this.parentNode)&&t.push(this.parentNode)}),t=e?t.filter(function(t){return p.call(t,e)}):t,S.extend(S.merge(S(),t),{_prevObj:this}))},parents:function(e){var n=[];if(0!==this.length)return e instanceof S?e:(this.each(function(){for(var t=this.parentNode;t;)1===t.nodeType&&-1===n.indexOf(t)&&(A(e)?n.push(t):p.call(t,e)&&n.push(t)),t=t.parentNode}),S.extend(S.merge(S(),n),{_prevObj:this}))},siblings:function(e){var n=[];if(0!==this.length)return e instanceof S?e:(this.each(function(){var t=this;t.parentNode&&S.each(t.parentNode.children,function(){t!==this&&n.push(this)})}),e&&(n=n.filter(function(t){return p.call(t,e)})),S.extend(S.merge(S(),n),{_prevObj:this}))},_siblingAll:function(e,n){var i=[];if(0!==this.length)return n instanceof S?n:(this.each(function(){for(var t=this;t=t&&t[e];)i.push(t)}),n&&(i=i.filter(function(t){return p.call(t,n)})),S.extend(S.merge(S(),i),{_prevObj:this}))},_sibling:function(e,n){var i=[];if(0!==this.length)return n instanceof S?n:(this.each(function(){var t=this[e];t&&1===t.nodeType&&i.push(t)}),n&&(i=i.filter(function(t){return p.call(t,n)})),S.extend(S.merge(S(),i),{_prevObj:this}))},prev:function(t){return this._sibling("previousElementSibling",t)},next:function(t){return this._sibling("nextElementSibling",t)},prevAll:function(t){return this._siblingAll("previousElementSibling",t)},nextAll:function(t){return this._siblingAll("nextElementSibling",t)},closest:function(e){var n=[];if(0!==this.length)return e instanceof S?e:e?(this.each(function(){for(var t=this;t&&t;){if(p.call(t,e))return void n.push(t);t=t.parentElement}}),S.extend(S.merge(S(),n.reverse()),{_prevObj:this})):this.parent(e)},has:function(t){var e=[];if(0!==this.length)return this.each(function(){0<S(this).children(t).length&&e.push(this)}),S.extend(S.merge(S(),e),{_prevObj:this})},back:function(t){var e;if(!0===t)for(e=this._prevObj;e&&e._prevObj;)e=e._prevObj;else e=this._prevObj?this._prevObj:this;return e}}),S.extend({script:function(t){if(A(t))return d();var e=S(t)[0];e.tagName&&"SCRIPT"===e.tagName?d(e):S.each(S(e).find("script"),function(){d(this)})}}),S.fn.extend({script:function(){return this.each(function(){S.script(this)})}}),S.fn.extend({_prop:function(t,e){return 1===arguments.length?0===this.length?x:this[0][t]:(A(e)&&(e=""),this.each(function(){this[t]=e,"innerHTML"===t&&S.script(this)}))},prop:function(t,e){return 1===arguments.length?this._prop(t):this._prop(t,void 0===e?"":e)},val:function(e){return A(e)?0===this.length?x:this[0].value:this.each(function(){var t=S(this);void 0!==this.value?this.value=e:t.html(e)})},html:function(t){var e=[];return 0===arguments.length?this._prop("innerHTML"):(t instanceof S?t.each(function(){e.push(S(this).outerHTML())}):e.push(t),this._prop("innerHTML",1===e.length&&A(e[0])?"":e.join("\n")),this)},outerHTML:function(){return this._prop("outerHTML")},text:function(t){return 0===arguments.length?this._prop("textContent"):this._prop("textContent",void 0===t?"":t)},innerText:function(t){return 0===arguments.length?this._prop("innerText"):this._prop("innerText",void 0===t?"":t)},empty:function(){return this.each(function(){void 0!==this.innerHTML&&(this.innerHTML="")})},clear:function(){return this.empty()}}),S.each=function(t,n){var e=0;if(o(t))[].forEach.call(t,function(t,e){n.apply(t,[e,t])});else for(var i in t)s(t,i)&&n.apply(t[i],[i,t[i],e++]);return t},S.fn.extend({each:function(t){return S.each(this,t)}});var b=function(t){this.expando="DATASET:UID:"+t.toUpperCase(),b.uid++};b.uid=-1,b.prototype={cache:function(t){var e=t[this.expando];return e||(e={},n(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[g(e)]=n;else for(i in e)s(e,i)&&(o[g(i)]=e[i]);return o},get:function(t,e){return e===x?this.cache(t):t[this.expando]&&t[this.expando][g(e)]},access:function(t,e,n){return e===x||e&&"string"==typeof e&&n===x?this.get(t,e):(this.set(t,e,n),n!==x?n:e)},remove:function(t,e){var n,i=t[this.expando];if(i!==x){if(e!==x){n=(e=Array.isArray(e)?e.map(g):(e=g(e))in i?[e]:e.match(/[^\x20\t\r\n\f]+/g)||[]).length;for(;n--;)delete i[e[n]]}return e!==x&&!w(i)||(t.nodeType?t[this.expando]=x:delete t[this.expando]),!0}},hasData:function(t){var e=t[this.expando];return e!==x&&!w(e)}};var T=new b("m4q");S.extend({hasData:function(t){return T.hasData(t)},data:function(t,e,n){return T.access(t,e,n)},removeData:function(t,e){return T.remove(t,e)},dataSet:function(t){if(A(t))return T;if(-1<["INTERNAL","M4Q"].indexOf(t.toUpperCase()))throw Error("You can not use reserved name for your dataset");return new b(t)}}),S.fn.extend({data:function(t,e){var n,i,o,r,a,s;if(0!==this.length){if(i=this[0],0!==arguments.length)return 1===arguments.length?((n=T.get(i,t))===x&&1===i.nodeType&&i.hasAttribute("data-"+t)&&(n=i.getAttribute("data-"+t)),n):this.each(function(){T.set(this,t,e)});if(this.length&&(o=T.get(i),1===i.nodeType))for(s=(r=i.attributes).length;s--;)r[s]&&0===(a=r[s].name).indexOf("data-")&&u(i,a=g(a.slice(5)),o[a]);return o}},removeData:function(t){return this.each(function(){T.remove(this,t)})},origin:function(t,e,n){if(0===this.length)return this;if(A(t)&&A(e))return S.data(this[0]);if(A(e)){var i=S.data(this[0],"origin-"+t);return A(i)?n:i}return this.data("origin-"+t,e),this}}),S.extend({device:/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),localhost:e(),isLocalhost:e,touchable:"ontouchstart"in window||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints,uniqueId:function(t){var n=(new Date).getTime();return A(t)&&(t="m4q"),(""!==t?t+"-":"")+"xxxx-xxxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"===t?e:3&e|8).toString(16)})},toArray:function(t){var e,n=[];for(e=0;e<t.length;e++)n.push(t[e]);return n},import:function(t){var e=[];return this.each(t,function(){e.push(this)}),this.merge(S(),e)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},type:function(t){return Object.prototype.toString.call(t).replace(/^\[object (.+)]$/,"$1").toLowerCase()},sleep:function(t){for(t+=(new Date).getTime();new Date<t;);},isSelector:function(t){if("string"!=typeof t)return!1;try{document.querySelector(t)}catch(t){return!1}return!0},remove:function(t){return S(t).remove()},camelCase:g,dashedName:function(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})},isPlainObject:y,isEmptyObject:w,isArrayLike:o,acceptData:n,not:A,parseUnit:m,getUnit:v,unit:m,isVisible:a,isHidden:function(t){var e=getComputedStyle(t);return!a(t)||0==+e.opacity||t.hidden||"hidden"===e.visibility},matches:function(t,e){return p.call(t,e)},random:function(t,e){return 1===arguments.length&&o(t)?t[Math.floor(Math.random()*t.length)]:Math.floor(Math.random()*(e-t+1)+t)},strip:function(t,e){return"string"!=typeof t?x:t.replace(e,"")},normName:l,hasProp:s,serializeToArray:function(t){var e=S(t)[0];if(e&&"FORM"===e.nodeName){var n,i,o=[];for(n=e.elements.length-1;0<=n;n-=1)if(""!==e.elements[n].name)switch(e.elements[n].nodeName){case"INPUT":switch(e.elements[n].type){case"checkbox":case"radio":e.elements[n].checked&&o.push(e.elements[n].name+"="+encodeURIComponent(e.elements[n].value));break;case"file":break;default:o.push(e.elements[n].name+"="+encodeURIComponent(e.elements[n].value))}break;case"TEXTAREA":o.push(e.elements[n].name+"="+encodeURIComponent(e.elements[n].value));break;case"SELECT":switch(e.elements[n].type){case"select-one":o.push(e.elements[n].name+"="+encodeURIComponent(e.elements[n].value));break;case"select-multiple":for(i=e.elements[n].options.length-1;0<=i;i-=1)e.elements[n].options[i].selected&&o.push(e.elements[n].name+"="+encodeURIComponent(e.elements[n].options[i].value))}break;case"BUTTON":switch(e.elements[n].type){case"reset":case"submit":case"button":o.push(e.elements[n].name+"="+encodeURIComponent(e.elements[n].value))}}return o}console.warn("Element is not a HTMLFromElement")},serialize:function(t){return S.serializeToArray(t).join("&")}}),S.fn.extend({items:function(){return S.toArray(this)}}),function(){if("function"==typeof window.CustomEvent)return;function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}t.prototype=window.Event.prototype,window.CustomEvent=t}();var C=Event.prototype.stopPropagation,E=Event.prototype.preventDefault;Event.prototype.stopPropagation=function(){this.isPropagationStopped=!0,C.apply(this,arguments)},Event.prototype.preventDefault=function(){this.isPreventedDefault=!0,E.apply(this,arguments)},Event.prototype.stop=function(t){return t?this.stopImmediatePropagation():this.stopPropagation()},S.extend({events:[],eventHooks:{},eventUID:-1,setEventHandler:function(t){var e,n,i=-1;if(0<this.events.length)for(e=0;e<this.events.length;e++)if(null===this.events[e].handler){i=e;break}return n={element:t.el,event:t.event,handler:t.handler,selector:t.selector,ns:t.ns,id:t.id,options:t.options},-1===i?(this.events.push(n),this.events.length-1):(this.events[i]=n,i)},getEventHandler:function(t){return this.events[t]!==x&&null!==this.events[t]?(this.events[t]=null,this.events[t].handler):x},off:function(){return S.each(this.events,function(){this.element.removeEventListener(this.event,this.handler,!0)}),this.events=[],this},getEvents:function(){return this.events},getEventHooks:function(){return this.eventHooks},addEventHook:function(t,e,n){return A(n)&&(n="before"),S.each(h(t),function(){this.eventHooks[g(n+"-"+this)]=e}),this},removeEventHook:function(t,e){return A(e)&&(e="before"),S.each(h(t),function(){delete this.eventHooks[g(e+"-"+this)]}),this},removeEventHooks:function(t){var e=this;return A(t)?this.eventHooks={}:S.each(h(t),function(){delete e.eventHooks[g("before-"+this)],delete e.eventHooks[g("after-"+this)]}),this}}),S.fn.extend({on:function(t,u,c,f){if(0!==this.length)return"function"==typeof u&&(f=c,c=u,u=x),y(f)||(f={}),this.each(function(){var s=this;S.each(h(t),function(){var t,o,e,n=this.split("."),r=l(n[0]),a=f.ns?f.ns:n[1];S.eventUID++,t=function(t){var e=t.target,n=S.eventHooks[g("before-"+r)],i=S.eventHooks[g("after-"+r)];if("function"==typeof n&&n.call(e,t),u)for(;e&&e!==s;){if(p.call(e,u)&&(c.call(e,t),t.isPropagationStopped)){t.stopImmediatePropagation();break}e=e.parentNode}else c.call(s,t);"function"==typeof i&&i.call(e,t),f.once&&(o=+S(s).origin("event-"+t.type+(u?":"+u:"")+(a?":"+a:"")),isNaN(o)||S.events.splice(o,1))},Object.defineProperty(t,"name",{value:c.name&&""!==c.name?c.name:"func_event_"+r+"_"+S.eventUID}),e=r+(u?":"+u:"")+(a?":"+a:""),s.addEventListener(r,t,!w(f)&&f),o=S.setEventHandler({el:s,event:r,handler:t,selector:u,ns:a,id:S.eventUID,options:!w(f)&&f}),S(s).origin("event-"+e,o)})})},one:function(t,e,n,i){return y(i)||(i={}),i.once=!0,this.on.apply(this,[t,e,n,i])},off:function(t,a,s){return y(a)&&(s=a,a=null),y(s)||(s={}),A(t)||"all"===t.toLowerCase()?this.each(function(){var e=this;S.each(S.events,function(){var t=this;t.element===e&&(e.removeEventListener(t.event,t.handler,t.options),t.handler=null,S(e).origin("event-"+name+(t.selector?":"+t.selector:"")+(t.ns?":"+t.ns:""),null))})}):this.each(function(){var r=this;S.each(h(t),function(){var t,e,n=this.split("."),i=l(n[0]),o=s.ns?s.ns:n[1];t="event-"+i+(a?":"+a:"")+(o?":"+o:""),(e=S(r).origin(t))!==x&&S.events[e].handler&&(r.removeEventListener(i,S.events[e].handler,S.events[e].options),S.events[e].handler=null),S(r).origin(t,null)})})},trigger:function(t,e){return this.fire(t,e)},fire:function(t,e){var n,i;if(0!==this.length)return n=l(t),-1<["focus","blur"].indexOf(n)?(this[0][n](),this):("undefined"!=typeof CustomEvent?i=new CustomEvent(n,{bubbles:!0,cancelable:!0,detail:e}):((i=document.createEvent("Events")).detail=e,i.initEvent(n,!0,!0)),this.each(function(){this.dispatchEvent(i)}))}}),"blur focus resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu touchstart touchend touchmove touchcancel".split(" ").forEach(function(i){S.fn[i]=function(t,e,n){return 0<arguments.length?this.on(i,t,e,n):this.fire(i)}}),S.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),S.ready=function(t,e){document.addEventListener("DOMContentLoaded",t,e||!1)},S.load=function(t){return S(window).on("load",t)},S.unload=function(t){return S(window).on("unload",t)},S.fn.extend({unload:function(t){return 0===this.length||this[0].self!==window?x:S.unload(t)}}),S.beforeunload=function(e){return"string"==typeof e?S(window).on("beforeunload",function(t){return t.returnValue=e}):S(window).on("beforeunload",e)},S.fn.extend({beforeunload:function(t){return 0===this.length||this[0].self!==window?x:S.beforeunload(t)}}),S.fn.extend({ready:function(t){if(this.length&&this[0]===document&&"function"==typeof t)return S.ready(t)}}),S.ajax=function(v){return new Promise(function(n,i){function o(t,e){"function"==typeof t&&t.apply(null,e)}function t(t){return-1!==["GET","JSON"].indexOf(t)}var e,r,a,s=new XMLHttpRequest,u=(v.method||"GET").toUpperCase(),c=[],f=!!A(v.async)||v.async,h=v.url;if(v.data instanceof HTMLFormElement){var l=v.data.getAttribute("action"),p=v.data.getAttribute("method");A(h)&&l&&""!==l.trim()&&(h=l),p&&""!==p.trim()&&(u=p.toUpperCase())}if(v.timeout&&(s.timeout=v.timeout),v.withCredentials&&(s.withCredentials=v.withCredentials),v.data instanceof HTMLFormElement)e=S.serialize(v.data);else if(v.data instanceof HTMLElement&&v.data.getAttribute("type")&&"file"===v.data.getAttribute("type").toLowerCase()){var d=v.data.getAttribute("name");e=new FormData;for(var m=0;m<v.data.files.length;m++)e.append(d,v.data.files[m])}else y(v.data)?(r=v.data,a=[],S.each(r,function(t,e){var n=function(t){return"string"==typeof t||"boolean"==typeof t||"number"==typeof t}(e)?e:JSON.stringify(e);a.push(t+"="+n)}),e=a.join("&")):v.data instanceof FormData?e=v.data:"string"==typeof v.data?e=v.data:(e=new FormData).append("_data",JSON.stringify(v.data));t(u)&&(h+="string"==typeof e?"?"+e:w(e)?"":"?"+JSON.stringify(e)),s.open(u,h,f,v.user,v.password),v.headers&&S.each(v.headers,function(t,e){s.setRequestHeader(t,e),c.push(t)}),t(u)||-1===c.indexOf("Content-type")&&!1!==v.contentType&&s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s.send(e),s.addEventListener("load",function(t){if(4===s.readyState&&s.status<300){var e=v.returnValue&&"xhr"===v.returnValue?s:s.response;if(v.parseJson)try{e=JSON.parse(e)}catch(t){e={}}o(n,[e]),o(v.onSuccess,[t,s])}else o(i,[s]),o(v.onFail,[t,s]);o(v.onLoad,[t,s])}),S.each(["readystatechange","error","timeout","progress","loadstart","loadend","abort"],function(){var e=g("on-"+("readystatechange"===this?"state":this));s.addEventListener(e,function(t){o(v[e],[t,s])})})})},["get","post","put","patch","delete","json"].forEach(function(r){S[r]=function(t,e,n){var i=r.toUpperCase(),o={method:"JSON"===i?"GET":i,url:t,data:e,parseJson:"JSON"===i};return S.ajax(S.extend({},o,n))}}),S.fn.extend({load:function(t,e,n){var i=this;return this.length&&this[0].self===window?S.load(t):S.get(t,e,n).then(function(t){i.each(function(){this.innerHTML=t})})}}),S.fn.extend({style:function(t,e){var n;function i(t,e,n){return-1<["scrollLeft","scrollTop"].indexOf(e)?S(t)[e]():getComputedStyle(t,n)[e]}if("string"==typeof t&&0===this.length)return x;if(0===this.length)return this;if(n=this[0],A(t)||"all"===t)return getComputedStyle(n,e);var o={},r=t.split(", ").map(function(t){return(""+t).trim()});return 1===r.length?i(n,r[0],e):(S.each(r,function(){o[this]=i(n,this,e)}),o)},removeStyleProperty:function(t){if(A(t)||0===this.length)return this;var e=t.split(", ").map(function(t){return(""+t).trim()});return this.each(function(){var t=this;S.each(e,function(){t.style.removeProperty(this)})})},css:function(t,e){return"string"==typeof(t=t||"all")&&A(e)?this.style(t):this.each(function(){var n=this;"object"==typeof t?S.each(t,function(t,e){r(n,t,e)}):"string"==typeof t&&r(n,t,e)})},scrollTop:function(t){return A(t)?0===this.length?x:this[0]===window?pageYOffset:this[0].scrollTop:this.each(function(){this.scrollTop=t})},scrollLeft:function(t){return A(t)?0===this.length?x:this[0]===window?pageXOffset:this[0].scrollLeft:this.each(function(){this.scrollLeft=t})}}),S.fn.extend({addClass:function(){},removeClass:function(){},toggleClass:function(){},containsClass:function(t){return this.hasClass(t)},hasClass:function(t){var e=!1,n=t.split(" ").filter(function(t){return""!==(""+t).trim()});return!A(t)&&(this.each(function(){var t=this;S.each(n,function(){!e&&t.classList&&t.classList.contains(this)&&(e=!0)})}),e)},clearClasses:function(){return this.each(function(){this.className=""})},cls:function(t){return 0===this.length?x:t?this[0].className.split(" "):this[0].className},removeClassBy:function(n){return this.each(function(){var t=S(this),e=t.cls(!0);S.each(e,function(){-1<this.indexOf(n)&&t.removeClass(this)})})}}),["add","remove","toggle"].forEach(function(i){S.fn[i+"Class"]=function(n){return A(n)||""===(""+n).trim()?this:this.each(function(){var t=this,e=void 0!==t.classList;S.each(n.split(" ").filter(function(t){return""!==(""+t).trim()}),function(){e&&t.classList[i](this)})})}}),S.parseHTML=function(t){var e,n,i,o,r=[];if("string"!=typeof t)return[];if(t=t.trim(),(e=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=document.location.href,i.head.appendChild(e),o=i.body,n=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i.exec(t))r.push(document.createElement(n[1]));else{o.innerHTML=t;for(var a=0;a<o.childNodes.length;a++)r.push(o.childNodes[a])}return r},S.fn.extend({_size:function(t,e){if(0!==this.length){if(A(e)){var n=this[0];if("height"===t)return n===window?window.innerHeight:n===document?n.body.clientHeight:parseInt(getComputedStyle(n).height);if("width"===t)return n===window?window.innerWidth:n===document?n.body.clientWidth:parseInt(getComputedStyle(n).width)}return this.each(function(){this!==window&&this!==document&&(this.style[t]=isNaN(e)?e:e+"px")})}},height:function(t){return this._size("height",t)},width:function(t){return this._size("width",t)},_sizeOut:function(o,r){var t,e,n,i;if(0!==this.length)return A(r)||"boolean"==typeof r?(e=(t=this[0])["width"===o?"offsetWidth":"offsetHeight"],n=getComputedStyle(t),i=e+parseInt(n["width"===o?"margin-left":"margin-top"])+parseInt(n["width"===o?"margin-right":"margin-bottom"]),!0===r?i:e):this.each(function(){if(this!==window&&this!==document){var t,e=getComputedStyle(this),n="width"===o?parseInt(e["border-left-width"])+parseInt(e["border-right-width"]):parseInt(e["border-top-width"])+parseInt(e["border-bottom-width"]),i="width"===o?parseInt(e["padding-left"])+parseInt(e["padding-right"]):parseInt(e["padding-top"])+parseInt(e["padding-bottom"]);t=S(this)[o](r)[o]()-n-i,this.style[o]=t+"px"}})},outerWidth:function(t){return this._sizeOut("width",t)},outerHeight:function(t){return this._sizeOut("height",t)},padding:function(t){if(0!==this.length){var e=getComputedStyle(this[0],t);return{top:parseInt(e["padding-top"]),right:parseInt(e["padding-right"]),bottom:parseInt(e["padding-bottom"]),left:parseInt(e["padding-left"])}}},margin:function(t){if(0!==this.length){var e=getComputedStyle(this[0],t);return{top:parseInt(e["margin-top"]),right:parseInt(e["margin-right"]),bottom:parseInt(e["margin-bottom"]),left:parseInt(e["margin-left"])}}},border:function(t){if(0!==this.length){var e=getComputedStyle(this[0],t);return{top:parseInt(e["border-top-width"]),right:parseInt(e["border-right-width"]),bottom:parseInt(e["border-bottom-width"]),left:parseInt(e["border-left-width"])}}}}),S.fn.extend({offset:function(r){var t;return A(r)?0===this.length?x:{top:(t=this[0].getBoundingClientRect()).top+pageYOffset,left:t.left+pageXOffset}:this.each(function(){var t=S(this),e=r.top,n=r.left,i=getComputedStyle(this).position,o=t.offset();"static"===i&&t.css("position","relative"),-1===["absolute","fixed"].indexOf(i)&&(e-=o.top,n-=o.left),t.css({top:e,left:n})})},position:function(t){var e,n,i=0,o=0;return!A(t)&&"boolean"==typeof t||(t=!1),0===this.length?x:(e=this[0],n=getComputedStyle(e),t&&(i=parseInt(n["margin-left"]),o=parseInt(n["margin-top"])),{left:e.offsetLeft-i,top:e.offsetTop-o})},left:function(t,e){if(0!==this.length)return A(t)?this.position(e).left:"boolean"==typeof t?(e=t,this.position(e).left):this.each(function(){S(this).css({left:t})})},top:function(t,e){if(0!==this.length)return A(t)?this.position(e).top:"boolean"==typeof t?(e=t,this.position(e).top):this.each(function(){S(this).css({top:t})})},coord:function(){return 0===this.length?x:this[0].getBoundingClientRect()},pos:function(){if(0!==this.length)return{top:parseInt(S(this[0]).style("top")),left:parseInt(S(this[0]).style("left"))}}}),S.fn.extend({attr:function(t,e){var n={};return 0===this.length&&0===arguments.length?x:this.length&&0===arguments.length?(S.each(this[0].attributes,function(){n[this.nodeName]=this.nodeValue}),n):1===arguments.length&&"string"==typeof t?this.length&&1===this[0].nodeType&&this[0].hasAttribute(t)?this[0].getAttribute(t):x:this.each(function(){var n=this;y(t)?S.each(t,function(t,e){n.setAttribute(t,e)}):n.setAttribute(t,e)})},removeAttr:function(t){var e;return A(t)?this.each(function(){var t=this;S.each(this.attributes,function(){t.removeAttribute(this)})}):(e="string"==typeof t?t.split(",").map(function(t){return t.trim()}):t,this.each(function(){var t=this;S.each(e,function(){t.hasAttribute(this)&&t.removeAttribute(this)})}))},toggleAttr:function(t,e){return this.each(function(){A(e)?this.removeAttribute(t):this.setAttribute(t,e)})},id:function(t){return this.length?S(this[0]).attr("id",t):x}}),S.extend({meta:function(t){return A(t)?S("meta"):S("meta[name='$name']".replace("$name",t))},metaBy:function(t){return A(t)?S("meta"):S("meta[$name]".replace("$name",t))},doctype:function(){return S("doctype")},html:function(){return S("html")},head:function(){return S("html").find("head")},body:function(){return S("body")},document:function(){return S(document)},window:function(){return S(window)},charset:function(t){var e=S("meta[charset]");return t&&e.attr("charset",t),e.attr("charset")}}),S.extend({proxy:function(t,e){return"function"!=typeof t?x:t.bind(e)},bind:function(t,e){return this.proxy(t,e)}}),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(t){["append","prepend"].forEach(function(e){s(t,e)||Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=Array.prototype.slice.call(arguments),n=document.createDocumentFragment();t.forEach(function(t){var e=t instanceof Node;n.appendChild(e?t:document.createTextNode(String(t)))}),"prepend"===e?this.insertBefore(n,this.firstChild):this.appendChild(n)}})})});function I(t){var e;return"string"==typeof t?e=S.isSelector(t)?S(t):S.parseHTML(t):t instanceof HTMLElement?e=[t]:o(t)&&(e=t),e}S.fn.extend({appendText:function(n){return this.each(function(t,e){e.innerHTML+=n})},prependText:function(n){return this.each(function(t,e){e.innerHTML=n+e.innerHTML})},append:function(t){var i=I(t);return this.each(function(e,n){S.each(i,function(){if(n!==this){var t=0===e?this:this.cloneNode(!0);S.script(t),t.tagName&&"SCRIPT"!==t.tagName&&n.append(t)}})})},appendTo:function(t){var e=I(t);return this.each(function(){var n=this;S.each(e,function(t,e){n!==this&&e.append(0===t?n:n.cloneNode(!0))})})},prepend:function(t){var i=I(t);return this.each(function(e,n){S.each(i,function(){if(n!==this){var t=0===e?this:this.cloneNode(!0);S.script(t),t.tagName&&"SCRIPT"!==t.tagName&&n.prepend(t)}})})},prependTo:function(t){var e=I(t);return this.each(function(){var n=this;S.each(e,function(t,e){n!==this&&S(e).prepend(0===t?n:n.cloneNode(!0))})})},insertBefore:function(t){var e=I(t);return this.each(function(){var n=this;S.each(e,function(t){if(n!==this){var e=this.parentNode;e&&e.insertBefore(0===t?n:n.cloneNode(!0),this)}})})},insertAfter:function(t){var e=I(t);return this.each(function(){var i=this;S.each(e,function(t,e){if(i!==this){var n=this.parentNode;n&&n.insertBefore(0===t?i:i.cloneNode(!0),e.nextSibling)}})})},after:function(t){return this.each(function(){"string"==typeof t?this.insertAdjacentHTML("afterend",t):S(t).insertAfter(this)})},before:function(t){return this.each(function(){"string"==typeof t?this.insertAdjacentHTML("beforebegin",t):S(t).insertBefore(this)})},clone:function(i,o){var r=[];return A(i)&&(i=!1),A(o)&&(o=!1),this.each(function(){var t,e=this.cloneNode(i),n=S(e);o&&S.hasData(this)&&(t=S(this).data(),S.each(t,function(t,e){n.data(t,e)})),r.push(e)}),S.merge(S(),r)},import:function(t){var e=[];return A(t)&&(t=!1),this.each(function(){e.push(document.importNode(this,t))}),S.merge(S(),e)},adopt:function(){var t=[];return this.each(function(){t.push(document.adoptNode(this))}),S.merge(S(),t)},remove:function(e){var t,n,i=0,o=[];if(0!==this.length){for(n=e?this.filter(function(t){return p.call(t,e)}):this.items();null!=(t=n[i]);i++)t.parentNode&&(o.push(t.parentNode.removeChild(t)),S.removeData(t));return S.merge(S(),o)}},wrap:function(t){if(0!==this.length){var n=S(I(t));if(n.length){var i=[];return this.each(function(){var t,e;for((e=n.clone(!0,!0)).insertBefore(this),t=e;t.children().length;)t=t.children().eq(0);t.append(this),i.push(e)}),S(i)}}},wrapAll:function(t){var e,n,i;if(0!==this.length&&(e=S(I(t))).length){for((n=e.clone(!0,!0)).insertBefore(this[0]),i=n;i.children().length;)i=i.children().eq(0);return this.each(function(){i.append(this)}),n}},wrapInner:function(t){if(0!==this.length){var i=S(I(t));if(i.length){var o=[];return this.each(function(){var t=S(this),e=t.html(),n=i.clone(!0,!0);t.html(n.html(e)),o.push(n)}),S(o)}}}}),S.extend({animation:{duration:1e3,ease:"linear",elements:{}}}),"object"==typeof window.setupAnimation&&S.each(window.setupAnimation,function(t,e){void 0===S.animation[t]||A(e)||(S.animation[t]=e)});var O=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY"],k=["opacity","zIndex"],L=["opacity","volume"],M=["scrollLeft","scrollTop"],_=["opacity","volume"];function j(t){return t instanceof HTMLElement||t instanceof SVGElement}function N(n,t,i){S.each(t,function(t,e){!function(t,e,n,i,o){A(o)&&(o=!1),e=g(e),o&&(n=parseInt(n)),j(t)?void 0!==t[e]?t[e]=n:t.style[e]="transform"===e||-1<e.toLowerCase().indexOf("color")?n:n+i:t[e]=n}(n,t,e[0]+e[2]*i,e[3],e[4])})}function H(t){if(!j(t))return{};for(var e,n=t.style.transform||"",i=/(\w+)\(([^)]*)\)/g,o={};e=i.exec(n);)o[e[1]]=e[2];return o}function P(t){return/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t||"#000000").slice(1).map(function(t){return parseInt(t,16)})}function D(t){return"#"===t[0]&&4===t.length?"#"+t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,n,i){return e+e+n+n+i+i}):"#"===t[0]?t:"#"+t}function F(t,e,n){N(t,e.props,n),function(t,n,a){var s=[],e=H(t);S.each(n,function(t,e){var n=e[0],i=e[1],o=e[2],r=e[3];(-1<(t=""+t).indexOf("rotate")||-1<t.indexOf("skew"))&&""===r&&(r="deg"),-1<t.indexOf("scale")&&(r=""),-1<t.indexOf("translate")&&""===r&&(r="px"),"turn"===r?s.push(t+"("+i*a+r+")"):s.push(t+"("+(n+o*a)+r+")")}),S.each(e,function(t,e){n[t]===x&&s.push(t+"("+e+")")}),t.style.transform=s.join(" ")}(t,e.transform,n),function(r,t,a){S.each(t,function(t,e){var n,i,o=[0,0,0];for(n=0;n<3;n++)o[n]=Math.floor(e[0][n]+e[2][n]*a);i="rgb("+o.join(",")+")",r.style[t]=i})}(t,e.color,n)}function U(r,t,a){var s,u,c,f,h,l,p={props:{},transform:{},color:{}},d=H(r);return A(a)&&(a="normal"),S.each(t,function(t,e){var n=-1<O.indexOf(""+t),i=-1<k.indexOf(""+t),o=-1<(""+t).toLowerCase().indexOf("color");if(Array.isArray(e)&&1===e.length&&(e=e[0]),c=Array.isArray(e)?(u=o?P(D(e[0])):m(e[0]),o?P(D(e[1])):m(e[1])):(u=n?d[t]||0:o?function(t,e){return getComputedStyle(t)[e].replace(/[^\d.,]/g,"").split(",").map(function(t){return parseInt(t)})}(r,t):function(t,e,n){return void 0!==t[e]?-1<M.indexOf(e)?"scrollLeft"===e?t===window?pageXOffset:t.scrollLeft:t===window?pageYOffset:t.scrollTop:t[e]||0:t.style[e]||getComputedStyle(t,n)[e]}(r,t),u=o?u:m(u),o?P(e):m(function(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var i=v(t)||0,o=parseFloat(e),r=parseFloat(t.replace(n[0],""));switch(n[0][0]){case"+":return o+r+i;case"-":return o-r+i;case"*":return o*r+i;case"/":return o/r+i}}(e,Array.isArray(u)?u[0]:u))),-1<_.indexOf(""+t)&&u[0]===c[0]&&(u[0]=0<c[0]?0:1),"reverse"===a&&(l=u,u=c,c=l),h=r instanceof HTMLElement&&""===c[1]&&!i&&!n?"px":c[1],o)for(f=[0,0,0],s=0;s<3;s++)f[s]=c[s]-u[s];else f=c[0]-u[0];n?p.transform[t]=[u[0],c[0],f,h]:o?p.color[t]=[u,c,f,h]:p.props[t]=[u[0],c[0],f,h,-1===L.indexOf(""+t)]}),p}function q(t,e,n){return Math.min(Math.max(t,e),n)}var R={linear:function(){return function(t){return t}}};R.default=R.linear;var $={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){A(t)&&(t=1),A(e)&&(e=.5);var n=q(t,1,10),i=q(e,.1,2);return function(t){return 0===t||1===t?t:-n*Math.pow(2,10*(t-1))*Math.sin((t-1-i/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/i)}}};["Quad","Cubic","Quart","Quint","Expo"].forEach(function(t,e){$[t]=function(){return function(t){return Math.pow(t,e+2)}}}),Object.keys($).forEach(function(t){var i=$[t];R["easeIn"+t]=i,R["easeOut"+t]=function(e,n){return function(t){return 1-i(e,n)(1-t)}},R["easeInOut"+t]=function(e,n){return function(t){return t<.5?i(e,n)(2*t)/2:1-i(e,n)(-2*t+2)/2}}});var z={id:null,el:null,draw:{},dur:S.animation.duration,ease:S.animation.ease,loop:0,pause:0,dir:"normal",defer:0,onStart:function(){},onStop:function(){},onStopAll:function(){},onPause:function(){},onPauseAll:function(){},onResume:function(){},onResumeAll:function(){},onFrame:function(){},onDone:function(){}};function B(O){return new Promise(function(t){var e,n=this,i=S.assign({},z,{dur:S.animation.duration,ease:S.animation.ease},O),o=i.id,a=i.el,s=i.draw,u=i.dur,r=i.ease,c=i.loop,f=i.onStart,h=i.onFrame,l=i.onDone,p=i.pause,d=i.dir,m=i.defer,v={},g="linear",y=[],w=R.linear,b="alternate"===d?"normal":d,x=!1,T=o||+performance.now()*Math.pow(10,14);if(A(a))throw new Error("Unknown element!");if("string"==typeof a&&(a=document.querySelector(a)),"function"!=typeof s&&"object"!=typeof s)throw new Error("Unknown draw object. Must be a function or object!");0===u&&(u=1),"alternate"===d&&"number"==typeof c&&(c*=2),w="string"==typeof r?(e=/\(([^)]+)\)/.exec(r),g=r.split("(")[0],y=e?e[1].split(",").map(function(t){return parseFloat(t)}):[],R[g]||R.linear):"function"==typeof r?r:R.linear,S.animation.elements[T]={element:a,id:null,stop:0,pause:0,loop:0,t:-1,started:0,paused:0};function C(){"object"==typeof s&&(v=U(a,s,b)),"function"==typeof f&&f.apply(a),S.animation.elements[T].loop+=1,S.animation.elements[T].started=performance.now(),S.animation.elements[T].duration=u,S.animation.elements[T].id=requestAnimationFrame(I)}function E(){cancelAnimationFrame(S.animation.elements[T].id),delete S.animation.elements[o],"function"==typeof l&&l.apply(a),t(n)}var I=function(t){var e,n,i=S.animation.elements[T].stop,o=S.animation.elements[T].pause,r=S.animation.elements[T].started;if(S.animation.elements[T].paused&&(r=t-S.animation.elements[T].t*u,S.animation.elements[T].started=r),1<(n=((t-r)/u).toFixed(4))&&(n=1),n<0&&(n=0),e=w.apply(null,y)(n),S.animation.elements[T].t=n,S.animation.elements[T].p=e,o)S.animation.elements[T].id=requestAnimationFrame(I);else{if(0<i)return 2===i&&("function"==typeof s?s.bind(a)(1,1):F(a,v,1)),void E();"function"==typeof s?s.bind(a)(n,e):F(a,v,e),"function"==typeof h&&h.apply(a,[n,e]),n<1&&(S.animation.elements[T].id=requestAnimationFrame(I)),1===parseInt(n)&&(c?("alternate"===d&&(b="normal"===b?"reverse":"normal"),"boolean"==typeof c?setTimeout(function(){C()},p):c>S.animation.elements[T].loop?setTimeout(function(){C()},p):E()):"alternate"!==d||x?E():(b="normal"===b?"reverse":"normal",x=!0,C()))}};0<m?setTimeout(function(){C()},m):C()})}function Q(t,e){var n=S.animation.elements[t];void 0!==n&&(A(e)&&(e=!0),n.stop=!0===e?2:1,"function"==typeof n.onStop&&n.onStop.apply(n.element))}function J(t){var e=S.animation.elements[t];void 0!==e&&(e.pause=1,e.paused=performance.now(),"function"==typeof e.onPause&&e.onPause.apply(e.element))}function Y(t){var e=S.animation.elements[t];void 0!==e&&(e.pause=0,e.paused=0,"function"==typeof e.onResume&&e.onResume.apply(e.element))}var X={loop:!1,onChainItem:null,onChainItemComplete:null,onChainComplete:null};S.easing={},S.extend(S.easing,R),S.extend({animate:function(t){var e,n,i,o,r;return 1<arguments.length?(e=S(t)[0],n=arguments[1],i=arguments[2]||S.animation.duration,o=arguments[3]||S.animation.ease,r=arguments[4],"function"==typeof i&&(r=i,o=S.animation.ease,i=S.animation.duration),"function"==typeof o&&(r=o,o=S.animation.ease),B({el:e,draw:n,dur:i,ease:o,onDone:r})):B(t)},chain:function t(e,n){var i=S.extend({},X,n);if("boolean"!=typeof i.loop&&i.loop--,!Array.isArray(e))return console.warn("Chain array is not defined!"),!1;e.reduce(function(t,e){return t.then(function(){return"function"==typeof i.onChainItem&&i.onChainItem(e),B(e).then(function(){"function"==typeof i.onChainItemComplete&&i.onChainItemComplete(e)})})},Promise.resolve()).then(function(){"function"==typeof i.onChainComplete&&i.onChainComplete(),i.loop&&t(e,i)})},stop:Q,stopAll:function(n,i){S.each(S.animation.elements,function(t,e){i?"string"==typeof i?p.call(e.element,i)&&Q(t,n):i.length?S.each(i,function(){e.element===this&&Q(t,n)}):i instanceof Element&&e.element===i&&Q(t,n):Q(t,n)})},resume:Y,resumeAll:function(n){S.each(S.animation.elements,function(t,e){n?"string"==typeof n?p.call(e.element,n)&&Y(t):n.length?S.each(n,function(){e.element===this&&Y(t)}):n instanceof Element&&e.element===n&&Y(t):Y(t)})},pause:J,pauseAll:function(n){S.each(S.animation.elements,function(t,e){n?"string"==typeof n?p.call(e.element,n)&&J(t):n.length?S.each(n,function(){e.element===this&&J(t)}):n instanceof Element&&e.element===n&&J(t):J(t)})}}),S.fn.extend({animate:function(t){var e,n,i,o,r=this,a=t;return!Array.isArray(t)&&(1<arguments.length||1===arguments.length&&void 0===t.draw)?(e=t,n=arguments[1]||S.animation.duration,i=arguments[2]||S.animation.ease,o=arguments[3],"function"==typeof n&&(o=n,n=S.animation.duration,i=S.animation.ease),"function"==typeof i&&(o=i,i=S.animation.ease),this.each(function(){return S.animate({el:this,draw:e,dur:n,ease:i,onDone:o})})):Array.isArray(t)?(S.each(t,function(){var t=this;r.each(function(){t.el=this,S.animate(t)})}),this):this.each(function(){a.el=this,S.animate(a)})},chain:function(e,n){return this.each(function(){var t=this;S.each(e,function(){this.el=t}),S.chain(e,n)})},stop:function(i){return this.each(function(){var n=this;S.each(S.animation.elements,function(t,e){e.element===n&&Q(t,i)})})},pause:function(){return this.each(function(){var n=this;S.each(S.animation.elements,function(t,e){e.element===n&&J(t)})})},resume:function(){return this.each(function(){var n=this;S.each(S.animation.elements,function(t,e){e.element===n&&Y(t)})})}}),S.extend({hidden:function(t,e,n){return t=S(t)[0],"string"==typeof e&&(e="true"===e.toLowerCase()),"function"==typeof e&&(n=e,e=!t.hidden),t.hidden=e,"function"==typeof n&&(S.bind(n,t),n.call(t,arguments)),this},hide:function(t,e){return S(t).origin("display",t.style.display?t.style.display:getComputedStyle(t,null).display),t.style.display="none","function"==typeof e&&(S.bind(e,t),e.call(t,arguments)),this},show:function(t,e){var n=S(t).origin("display",x,"block");return t.style.display=n?"none"===n?"block":n:"",0===parseInt(t.style.opacity)&&(t.style.opacity="1"),"function"==typeof e&&(S.bind(e,t),e.call(t,arguments)),this},visible:function(t,e,n){return e===x&&(e=!0),t.style.visibility=e?"visible":"hidden","function"==typeof n&&(S.bind(n,t),n.call(t,arguments)),this},toggle:function(t,e){var n="none"!==getComputedStyle(t,null).display?"hide":"show";return S[n](t,e)}}),S.fn.extend({hide:function(){var t;return S.each(arguments,function(){"function"==typeof this&&(t=this)}),this.each(function(){S.hide(this,t)})},show:function(){var t;return S.each(arguments,function(){"function"==typeof this&&(t=this)}),this.each(function(){S.show(this,t)})},visible:function(t,e){return this.each(function(){S.visible(this,t,e)})},toggle:function(t){return this.each(function(){S.toggle(this,t)})},hidden:function(t,e){return this.each(function(){S.hidden(this,t,e)})}}),S.extend({fx:{off:!1}}),S.fn.extend({fadeIn:function(i,o,r){return this.each(function(){var t=this,e=S(t);if(!(!a(t)||a(t)&&0==+e.style("opacity")))return this;A(i)&&A(o)&&A(r)?(r=null,i=S.animation.duration):"function"==typeof i&&(r=i,i=S.animation.duration),"function"==typeof o&&(r=o,o=S.animation.ease),S.fx.off&&(i=0);var n=e.origin("display",x,"block");return t.style.opacity="0",t.style.display=n,S.animate({el:t,draw:{opacity:1},dur:i,ease:o,onDone:function(){"function"==typeof r&&S.proxy(r,this)()}})})},fadeOut:function(e,n,i){return this.each(function(){var t=S(this);if(a(this))return A(e)&&A(n)&&A(i)?(i=null,e=S.animation.duration):"function"==typeof e&&(i=e,e=S.animation.duration),"function"==typeof n&&(i=n,n=S.animation.ease),t.origin("display",t.style("display")),S.animate({el:this,draw:{opacity:0},dur:e,ease:n,onDone:function(){this.style.display="none","function"==typeof i&&S.proxy(i,this)()}})})},slideUp:function(n,i,o){return this.each(function(){var t,e=S(this);if(0!==e.height())return A(n)&&A(i)&&A(o)?(o=null,n=S.animation.duration):"function"==typeof n&&(o=n,n=S.animation.duration),"function"==typeof i&&(o=i,i=S.animation.ease),t=e.height(),e.origin("height",t),e.origin("display",S(this).style("display")),e.css({overflow:"hidden"}),S.animate({el:this,draw:{height:0},dur:n,ease:i,onDone:function(){e.hide().removeStyleProperty("overflow, height"),"function"==typeof o&&S.proxy(o,this)()}})})},slideDown:function(o,r,a){return this.each(function(){var t,e,n=this,i=S(n);return A(o)&&A(r)&&A(a)?(a=null,o=S.animation.duration):"function"==typeof o&&(a=o,o=S.animation.duration),"function"==typeof r&&(a=r,r=S.animation.ease),i.show().visible(!1),t=+i.origin("height",x,i.height()),0===parseInt(t)&&(t=n.scrollHeight),e=i.origin("display",i.style("display"),"block"),i.height(0).visible(!0),i.css({overflow:"hidden",display:"none"===e?"block":e}),S.animate({el:n,draw:{height:t},dur:o,ease:r,onDone:function(){S(n).removeStyleProperty("overflow, height, visibility"),"function"==typeof a&&S.proxy(a,this)()}})})},moveTo:function(t,e,n,i,o){var r={top:e,left:t};return"function"==typeof n&&(o=n,n=S.animation.duration,i=S.animation.ease),"function"==typeof i&&(o=i,i=S.animation.ease),this.each(function(){S.animate({el:this,draw:r,dur:n,ease:i,onDone:o})})},centerTo:function(e,n,i,o,r){return"function"==typeof i&&(r=i,i=S.animation.duration,o=S.animation.ease),"function"==typeof o&&(r=o,o=S.animation.ease),this.each(function(){var t={left:e-this.clientWidth/2,top:n-this.clientHeight/2};S.animate({el:this,draw:t,dur:i,ease:o,onDone:r})})},colorTo:function(t,e,n,i){var o={color:t};return"function"==typeof e&&(i=e,e=S.animation.duration,n=S.animation.ease),"function"==typeof n&&(i=n,n=S.animation.ease),this.each(function(){S.animate({el:this,draw:o,dur:e,ease:n,onDone:i})})},backgroundTo:function(t,e,n,i){var o={backgroundColor:t};return"function"==typeof e&&(i=e,e=S.animation.duration,n=S.animation.ease),"function"==typeof n&&(i=n,n=S.animation.ease),this.each(function(){S.animate({el:this,draw:o,dur:e,ease:n,onDone:i})})}}),S.init=function(t,e){var n,i=this;if("string"==typeof t&&(t=t.trim()),this.uid=S.uniqueId(),!t)return this;if("function"==typeof t)return S.ready(t);if(t instanceof Element)return this.push(t),this;if(t instanceof S)return S.each(t,function(){i.push(this)}),this;if("window"===t&&(t=window),"document"===t&&(t=document),"body"===t&&(t=document.body),"html"===t&&(t=document.documentElement),"doctype"===t&&(t=document.doctype),t&&(t.nodeType||t.self===window))return this.push(t),this;if(o(t))return S.each(t,function(){S(this).each(function(){i.push(this)})}),this;if("string"!=typeof t&&t.self&&t.self!==window)return this;if("#"===t||"."===t)return console.error("Selector can't be # or ."),this;if("@"===t[0])S("[data-role]").each(function(){-1<h(S(this).attr("data-role"),",").indexOf(t.slice(1))&&i.push(this)});else if(1===(n=S.parseHTML(t)).length&&3===n[0].nodeType)try{[].push.apply(this,document.querySelectorAll(t))}catch(t){}else S.merge(this,n);return e!==x&&(e instanceof S?this.each(function(){S(e).append(i)}):e instanceof HTMLElement?S(e).append(i):y(e)&&S.each(this,function(){for(var t in e)s(e,t)&&this.setAttribute(t,e[t])})),this},S.init.prototype=S.fn;var V=window.$;S.Promise=Promise,window.m4q=S,void 0===window.$&&(window.$=S),S.global=function(){V=window.$,window.$=S},S.noConflict=function(){return window.$===S&&(window.$=V),S}}(window);
  //# sourceMappingURL=m4q.min.js.map