(()=>{var t,e,n,r,i,o;!function(){"use strict";var t="function"==typeof Promise?Promise:function(t){var e,n=[],r=0;return t((function(t){e=t,r=1,n.splice(0).forEach(i)})),{then:i};function i(t){return r?setTimeout(t,0,e):n.push(t),this}},e=function(t,e){var n=function(t){for(var e=0,n=t.length;e1&&void 0!==arguments[1])||arguments[1],n=0,r=t.length;n1||n<0||n>1?d:function(i){function o(t,e,n){return 3*t*(1-n)*(1-n)*n+3*e*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return t>0?a=e/t:!e&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&t<1&&(s=(e-1)/(t-1)),1+s*(i-1)}for(var u=0,l=1;u=1)return 1;var r=1/t;return(n+=e*r)-n%r}}function s(t){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=t;var e=v.animationTimingFunction;if(""==e&&r())throw new TypeError(t+" is not a valid value for easing");return e}function u(t){if("linear"==t)return d;var e=y.exec(t);if(e)return o.apply(this,e.slice(1).map(Number));var n=_.exec(t);if(n)return a(Number(n[1]),m);var r=w.exec(t);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[t]||d}function l(t,e,n){if(null==e)return T;var r=n.delay+t+n.endDelay;return e=Math.min(n.delay+t,r)?E:S}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(t){return t};n.prototype={_setMember:function(e,n){this["_"+e]=n,this._effect&&(this._effect._timingInput[e]=n,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+t);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=u(s(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,b="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",y=new RegExp("cubic-bezier\\("+b+","+b+","+b+","+b+"\\)"),_=/steps\(\s*(\d+)\s*\)/,w=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,T=0,x=1,E=2,S=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var n in t)e[n]=t[n];return e},t.makeTiming=i,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,n){return i(e=t.numericTimingToObject(e),n)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,n){var r=l(t,e,n),i=function(t,e,n,r,i){switch(r){case x:return"backwards"==e||"both"==e?0:null;case S:return n-i;case E:return"forwards"==e||"both"==e?t:null;case T:return null}}(t,n.fill,e,r,n.delay);if(null===i)return null;var o=function(t,e,n,r,i){var o=i;return 0===t?e!==x&&(o+=n):o+=r/t,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(t,e,n,r,i,o){var a=t===1/0?e%1:t%1;return 0!==a||n!==E||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(t,e,n,r){return t===E&&e===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(t,e,n){var r=t;if("normal"!==t&&"reverse"!==t){var i=e;"alternate-reverse"===t&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},t.calculatePhase=l,t.normalizeEasing=s,t.parseEasingFunction=u}(n={}),function(t,e){function n(t,e){return t in u&&u[t][e]||e}function r(t,e,r){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var i=o[t];if(i)for(var s in a.style[t]=e,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[t]=n(t,e)}}function i(t){var e=[];for(var n in t)if(!(n in["easing","offset","composite"])){var r=t[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?t.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s=0&&t.offset<=1})),o||function(){var t=n.length;null==n[t-1].offset&&(n[t-1].offset=1),t>1&&null==n[0].offset&&(n[0].offset=0);for(var e=0,r=n[0].offset,i=1;i=t.applyFrom&&nthis._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,n){this._style[e]=n,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(n)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},a)r.prototype[u]=function(t,e){return function(){var n=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),n}}(u,u in s);for(var l in document.documentElement.style)l in o||l in a||function(t){n(r.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(l);t.apply=function(e,i,o){(function(t){if(!t._webAnimationsPatchedStyle){var e=new r(t);try{n(t,"style",{get:function(){return e}})}catch(e){t.style._set=function(e,n){t.style[e]=n},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}})(e),e.style._set(t.propertyName(i),o)},t.clear=function(e,n){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(n))}}(r),function(t){window.Element.prototype.animate=function(e,n){var r="";return n&&n.id&&(r=n.id),t.timeline._play(t.KeyframeEffect(this,e,n,r))}}(r),function(t,e){function n(t,e,r){if("number"==typeof t&&"number"==typeof e)return t*(1-r)+e*r;if("boolean"==typeof t&&"boolean"==typeof e)return r<.5?t:e;if(t.length==e.length){for(var i=[],o=0;o0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var n=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var n=this._finishHandlers.indexOf(e);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new r(this,this._currentTime,t),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(t){t.call(e.target,e)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(n,r),function(t,e,n){function r(t){var e=l;l=[],t1e-4?(v=.5/Math.sqrt(y),b=[(h[2][1]-h[1][2])*v,(h[0][2]-h[2][0])*v,(h[1][0]-h[0][1])*v,.25/v]):h[0][0]>h[1][1]&&h[0][0]>h[2][2]?b=[.25*(v=2*Math.sqrt(1+h[0][0]-h[1][1]-h[2][2])),(h[0][1]+h[1][0])/v,(h[0][2]+h[2][0])/v,(h[2][1]-h[1][2])/v]:h[1][1]>h[2][2]?(v=2*Math.sqrt(1+h[1][1]-h[0][0]-h[2][2]),b=[(h[0][1]+h[1][0])/v,.25*v,(h[1][2]+h[2][1])/v,(h[0][2]-h[2][0])/v]):(v=2*Math.sqrt(1+h[2][2]-h[0][0]-h[1][1]),b=[(h[0][2]+h[2][0])/v,(h[1][2]+h[2][1])/v,.25*v,(h[1][0]-h[0][1])/v]),[d,p,m,b,l]}}();t.dot=n,t.makeMatrixDecomposition=function(t){return[s(a(t))]},t.transformListToMatrix=a}(r),function(t){function e(t,e){var n=t.exec(e);if(n)return[n=t.ignoreCase?n[0].toLowerCase():n[0],e.substr(n.length)]}function n(t,e){var n=t(e=e.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(t,e,n,r,i){for(var o=[],a=[],s=[],u=function(t,e){for(var n=t,r=e;n&&r;)n>r?n%=r:r%=n;return t*e/(n+r)}(r.length,i.length),l=0;l=1?e:"visible"}]}),["visibility"])}(r),function(t,e){function n(t){t=t.trim(),o.fillStyle="#000",o.fillStyle=t;var e=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=t,e==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(e,n){return[e,n,function(e){if(e[3])for(var n=0;n<3;n++)e[n]=Math.round((r=e[n]/e[3],Math.max(0,Math.min(255,r))));var r;return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");t.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,n),t.mergeColors=r}(r),function(t,e){function n(t){function e(){var e=a.exec(t);o=e?e[0]:void 0}function n(){if("("!==o)return function(){var t=Number(o);return e(),t}();e();var t=i();return")"!==o?NaN:(e(),t)}function r(){for(var t=n();"*"===o||"/"===o;){var r=o;e();var i=n();"*"===r?t*=i:t/=i}return t}function i(){for(var t=r();"+"===o||"-"===o;){var n=o;e();var i=r();"+"===n?t+=i:t-=i}return t}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),i()}function r(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){e=e.replace(/calc\(/g,"(");var r={};e=e.replace(t,(function(t){return r[t]=null,"U"+t}));for(var i="U("+t.source+")",o=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);t.parseLength=s,t.parseLengthOrPercent=u,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,u),t.parseAngle=l,t.mergeDimensions=o;var c=t.consumeParenthesised.bind(null,s),f=t.consumeRepeated.bind(void 0,c,/^/),d=t.consumeRepeated.bind(void 0,f,/^,/);t.consumeSizePairList=d;var h=t.mergeNestedRepeated.bind(void 0,i," "),p=t.mergeNestedRepeated.bind(void 0,h,",");t.mergeNonNegativeSizePair=h,t.addPropertiesHandler((function(t){var e=d(t);if(e&&""==e[1])return e[0]}),p,["background-size"]),t.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(t,e){function n(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function r(e){var r=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,n,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(r&&4==r[0].length)return r[0]}var i=t.mergeWrappedNestedRepeated.bind(null,(function(t){return"rect("+t+")"}),(function(e,n){return"auto"==e||"auto"==n?[!0,!1,function(r){var i=r?e:n;if("auto"==i)return"auto";var o=t.mergeDimensions(i,i);return o[2](o[0])}]:t.mergeDimensions(e,n)}),", ");t.parseBox=r,t.mergeBoxes=i,t.addPropertiesHandler(r,i,["clip"])}(r),function(t,e){function n(t){return function(e){var n=0;return t.map((function(t){return t===l?e[n++]:t}))}}function r(t){return t}function i(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(e);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length900||e%100!=0))return e}),(function(t,n){return[t,n,e]}),["font-weight"])}(r),function(t){function e(t){var e={};for(var n in t)e[n]=-t[n];return e}function n(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function r(e,r){var i=t.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==e&&(a[2]=a[2]||{px:0}),a.length==e){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(t){return"object"==typeof t?t:o[t]}))}}}function i(r){var i=t.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c=0&&this._cancelHandlers.splice(n,1)}else u.call(this,t,e)},o}}}(),function(t){var e=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(n=e.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==i}catch(t){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(e,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),o.call(this,e,n)}}}(n),function(t,e){if("function"!=typeof t.createEvent)return!1;var n,r,i,o,a,s,u,l,c,f=function(t){var e=t.toLowerCase(),n="MS"+t;return navigator.msPointerEnabled?n:!!window.PointerEvent&&e},d=function(t){return"on"+t in window&&t},h={useJquery:!e.IGNORE_JQUERY&&"undefined"!=typeof jQuery,swipeThreshold:e.SWIPE_THRESHOLD||100,tapThreshold:e.TAP_THRESHOLD||150,dbltapThreshold:e.DBL_TAP_THRESHOLD||200,longtapThreshold:e.LONG_TAP_THRESHOLD||1e3,tapPrecision:e.TAP_PRECISION/2||30,justTouchEvents:e.JUST_ON_TOUCH_DEVICES},p=!1,m=d("touchstart")||f("PointerDown"),g=d("touchend")||f("PointerUp"),v=d("touchmove")||f("PointerMove"),b=function(t){return!t.pointerId||void 0===n||t.pointerId===n},y=function(t,e,n){for(var r=e.split(" "),i=r.length;i--;)t.addEventListener(r[i],n,!1)},_=function(t){var e=Boolean(t.targetTouches&&t.targetTouches.length);switch(!0){case Boolean(t.target.touches):return t.target.touches[0];case e&&void 0!==t.targetTouches[0].pageX:return t.targetTouches[0];case e&&Boolean(t.targetTouches[0].touches):return t.targetTouches[0].touches[0];default:return t}},w=function(t){return(t.targetTouches||t.target.touches||[]).length>1},T=function(){return(new Date).getTime()},x=function(e,n,o,a){var s=t.createEvent("Event");if(s.originalEvent=o,(a=a||{}).x=r,a.y=i,h.useJquery&&(s=jQuery.Event(n,{originalEvent:o}),jQuery(e).trigger(s,a)),s.initEvent){for(var u in a)s[u]=a[u];s.initEvent(n,!0,!0),e.dispatchEvent(s)}for(;e;)e["on"+n]&&e["on"+n](s),e=e.parentNode},E=0;y(t,m+(h.justTouchEvents?"":" mousedown"),(function(t){if(b(t)&&!w(t)&&(n=t.pointerId,"mousedown"!==t.type&&(p=!0),"mousedown"!==t.type||!p)){var e=_(t);o=r=e.pageX,a=i=e.pageY,c=setTimeout((function(){x(t.target,"longtap",t),u=t.target}),h.longtapThreshold),s=T(),E++}})),y(t,g+(h.justTouchEvents?"":" mouseup"),(function(t){if(b(t)&&!w(t))if(n=void 0,"mouseup"===t.type&&p)p=!1;else{var e=[],f=T(),d=a-i,m=o-r;if(clearTimeout(l),clearTimeout(c),m<=-h.swipeThreshold&&e.push("swiperight"),m>=h.swipeThreshold&&e.push("swipeleft"),d<=-h.swipeThreshold&&e.push("swipedown"),d>=h.swipeThreshold&&e.push("swipeup"),e.length){for(var g=0;g=r-h.tapPrecision&&o<=r+h.tapPrecision&&a>=i-h.tapPrecision&&a<=i+h.tapPrecision&&s+h.tapThreshold-f>=0&&(x(t.target,E>=2&&u===t.target?"dbltap":"tap",t),u=t.target),l=setTimeout((function(){E=0}),h.dbltapThreshold)}})),y(t,v+(h.justTouchEvents?"":" mousemove"),(function(t){if(b(t)&&("mousemove"!==t.type||!p)){var e=_(t);r=e.pageX,i=e.pageY}})),e.tocca=function(t){for(var e in t)h[e]=t[e];return h}}(document,window);var a=new Set,s=document.createElement("link"),u=s.relList&&s.relList.supports&&s.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype,l="instantAllowQueryString"in document.body.dataset,c="instantAllowExternalLinks"in document.body.dataset,f="instantWhitelist"in document.body.dataset,d="instantMousedownShortcut"in document.body.dataset,h=1111,p=65,m=!1,g=!1,v=!1;if("instantIntensity"in document.body.dataset){const t=document.body.dataset.instantIntensity;if("mousedown"==t.substr(0,"mousedown".length))m=!0,"mousedown-only"==t&&(g=!0);else if("viewport"==t.substr(0,"viewport".length))navigator.connection&&(navigator.connection.saveData||navigator.connection.effectiveType&&navigator.connection.effectiveType.includes("2g"))||("viewport"==t?document.documentElement.clientWidth*document.documentElement.clientHeight<45e4&&(v=!0):"viewport-all"==t&&(v=!0));else{const e=parseInt(t);isNaN(e)||(p=e)}}if(u){const t={capture:!0,passive:!0};if(g||document.addEventListener("touchstart",(function(t){o=performance.now();const e=t.target.closest("a");if(!y(e))return;_(e.href)}),t),m?d||document.addEventListener("mousedown",(function(t){const e=t.target.closest("a");if(!y(e))return;_(e.href)}),t):document.addEventListener("mouseover",(function(t){if(performance.now()-o{_(e.href),i=void 0}),p)}),t),d&&document.addEventListener("mousedown",(function(t){if(performance.now()-o1||t.metaKey||t.ctrlKey)return;if(!e)return;e.addEventListener("click",(function(t){1337!=t.detail&&t.preventDefault()}),{capture:!0,passive:!1,once:!0});const n=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1,detail:1337});e.dispatchEvent(n)}),t),v){let t;t=window.requestIdleCallback?t=>{requestIdleCallback(t,{timeout:1500})}:t=>{t()},t((()=>{const t=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const n=e.target;t.unobserve(n),_(n.href)}}))}));document.querySelectorAll("a").forEach((e=>{y(e)&&t.observe(e)}))}))}}function b(t){t.relatedTarget&&t.target.closest("a")==t.relatedTarget.closest("a")||i&&(clearTimeout(i),i=void 0)}function y(t){if(t&&t.href&&(!f||"instant"in t.dataset)&&(c||t.origin==location.origin||"instant"in t.dataset)&&["http:","https:"].includes(t.protocol)&&("http:"!=t.protocol||"https:"!=location.protocol)&&(l||!t.search||"instant"in t.dataset)&&!(t.hash&&t.pathname+t.search==location.pathname+location.search||"noInstant"in t.dataset))return!0}function _(t){if(a.has(t))return;const e=document.createElement("link");e.rel="prefetch",e.href=t,document.head.appendChild(e),a.add(t)}var w=t=>void 0===t||"auto"===t||"instant"===t||"smooth"===t;function T(t,e){this.scrollLeft=t,this.scrollTop=e}var x=(t,e,n="cannot convert to dictionary.")=>`Failed to execute '${t}' on '${e}': ${n}`,E=(t,e,n)=>x(t,e,`The provided value '${n}' is not a valid enum value of type ScrollBehavior.`),S=(t,e,n)=>{var r;const i=`__SEAMLESS.BACKUP$${e}`;return t[i]||!t[e]||(null==(r=t[e])?void 0:r.__isPolyfill)||(t[i]=t[e]),t[i]||n},P=t=>{const e=typeof t;return null!==t&&("object"===e||"function"===e)},k=()=>"scrollBehavior"in window.document.documentElement.style,N=t=>{Object.defineProperty(t,"__isPolyfill",{value:!0})},A=(t,e)=>{N(e),[HTMLElement.prototype,SVGElement.prototype,Element.prototype].forEach((n=>{S(n,t),n[t]=e}))},R=t=>t.ownerDocument.scrollingElement||t.ownerDocument.documentElement,M=t=>.5*(1-Math.cos(Math.PI*t)),L=()=>{var t,e,n;return null!=(n=null==(e=null==(t=window.performance)?void 0:t.now)?void 0:e.call(t))?n:window.Date.now()},D=t=>{const e=(L()-t.timeStamp)/(t.duration||500);if(e>1)return t.method(t.targetX,t.targetY),void t.callback();const n=(t.timingFunc||M)(e),r=t.startX+(t.targetX-t.startX)*n,i=t.startY+(t.targetY-t.startY)*n;t.method(r,i),t.rafId=window.requestAnimationFrame((()=>{D(t)}))},O=t=>isFinite(t)?Number(t):0,I=t=>(e,n,r)=>{const[i,o]=(a=e).window===a?[R(e.document.documentElement),"Window"]:[e,"Element"];var a;const s=null!=n?n:{};if(!P(s))throw new TypeError(x(t,o));if(!w(s.behavior))throw new TypeError(E(t,o,s.behavior));"scrollBy"===t&&(s.left=O(s.left)+i.scrollLeft,s.top=O(s.top)+i.scrollTop),((t,e,n)=>{var r,i;if(!(t=>{var e;return null!=(e=t.isConnected)?e:!(t.ownerDocument&&1&t.ownerDocument.compareDocumentPosition(t))})(t))return;const o=t.scrollLeft,a=t.scrollTop,s=O(null!=(r=e.left)?r:o),u=O(null!=(i=e.top)?i:a);if(s===o&&u===a)return;const l=S(HTMLElement.prototype,"scroll",T),c=S(Object.getPrototypeOf(t),"scroll",l).bind(t);if("smooth"!==e.behavior)return void c(s,u);const f=()=>{window.removeEventListener("wheel",h),window.removeEventListener("touchmove",h)},d={...n,timeStamp:L(),startX:o,startY:a,targetX:s,targetY:u,rafId:0,method:c,callback:f},h=()=>{window.cancelAnimationFrame(d.rafId),f()};window.addEventListener("wheel",h,{passive:!0,once:!0}),window.addEventListener("touchmove",h,{passive:!0,once:!0}),D(d)})(i,s,r)},C=I("scroll"),H=I("scrollTo"),W=I("scrollBy"),F=C,B=t=>{switch(t){case"horizontal-tb":case"lr":case"lr-tb":case"rl":case"rl-tb":return 0;case"vertical-rl":case"tb":case"tb-rl":return 1;case"vertical-lr":case"tb-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4}return 0},q=(t,e,n,r)=>{let i=0;switch(e||(i^=2),t){case 0:i=i>>1|(1&i)<<1,[n,r]=[r,n];break;case 1:case 3:i^=1;break;case 4:i^=2}return[i,n,r]},z=t=>1==(1&q(B(t.writingMode),"rtl"!==t.direction,void 0,void 0)[0]),j=(t,e,n,r,i,o,a)=>0!==t?t:in||i>e&&o=n&&a>=r?2:o>n&&ar?3:null,V=t=>"visible"!==t&&"clip"!==t,U=(t,e)=>(t.clientHeight{const e=t.parentNode,n=t.parentElement;if(null===n&&null!==e){if(11===e.nodeType)return e.host;if(9===e.nodeType)return(t=>{var e;try{return(null==(e=t.ownerDocument.defaultView)?void 0:e.frameElement)||null}catch{return null}})(t)}return n},K=(t,e,n)=>tn?n:t,X=(t,e,n)=>{switch(t){case 1:return(e+n)/2;case 3:return n;case 2:case 0:return e}},Y=(t,e)=>{var n,r,i;const o=null==(n=t.ownerDocument.defaultView)?void 0:n.visualViewport,[a,s,u,l]=t===R(t)?[0,0,null!=(r=null==o?void 0:o.width)?r:t.clientWidth,null!=(i=null==o?void 0:o.height)?i:t.clientHeight]:[e.left,e.top,t.clientWidth,t.clientHeight],c=a+t.clientLeft,f=s+t.clientTop;return[f,c+u,f+l,c]},G=(t,e)=>{const n=[];let r=t.ownerDocument,i=r.defaultView;if(!i)return n;const o=window.getComputedStyle(t),a="rtl"!==o.direction,s=B(o.writingMode||o.getPropertyValue("-webkit-writing-mode")||o.getPropertyValue("-ms-writing-mode")),[u,l]=((t,e,n)=>{const[r,i,o]=q(e,n,t.block||"start",t.inline||"nearest");return[i,o].map(((t,e)=>{switch(t){case"center":return 1;case"nearest":return 0;default:return"start"===t==!(r>>e&1)?2:3}}))})(e,s,a);let[c,f,d,h]=((t,e,n)=>{const{top:r,right:i,bottom:o,left:a}=e,s=(u=t.ownerDocument,["scroll-margin","scroll-snap-margin"].filter((t=>t in u.documentElement.style))[0]);var u;if(!s)return[r,i,o,a];const l=t=>{const e=n.getPropertyValue(`${s}-${t}`);return parseInt(e,10)||0};return[r-l("top"),i+l("right"),o+l("bottom"),a-l("left")]})(t,t.getBoundingClientRect(),o);for(let o=$(t);null!==o;o=$(o)){if(r!==o.ownerDocument){if(r=o.ownerDocument,i=r.defaultView,!i)break;const{left:t,top:e}=o.getBoundingClientRect();c+=e,f+=t,d+=e,h+=t}const t=i.getComputedStyle(o);if("fixed"===t.position)break;if(!U(o,t))continue;const a=o.getBoundingClientRect(),[s,p,m,g]=Y(o,a),v=j(u,g,p,o.clientWidth,h,f,f-h),b=j(l,s,m,o.clientHeight,c,d,d-c),y=null===v?0:X(v,h,f)-X(v,g,p),_=null===b?0:X(b,c,d)-X(b,s,m),w=z(t)?K(y,-o.scrollWidth+o.clientWidth-o.scrollLeft,-o.scrollLeft):K(y,-o.scrollLeft,o.scrollWidth-o.clientWidth-o.scrollLeft),T=K(_,-o.scrollTop,o.scrollHeight-o.clientHeight-o.scrollTop);n.push([o,{left:o.scrollLeft+w,top:o.scrollTop+T,behavior:e.behavior}]),c=Math.max(c-T,s),f=Math.min(f-w,p),d=Math.min(d-T,m),h=Math.max(h-w,g)}return n},Q=(t,e,n)=>{const r=e||{};if(!w(r.behavior))throw new TypeError(E("scrollIntoView","Element",r.behavior));G(t,r).forEach((([t,e])=>{F(t,e,n)}))},J=(t,e)=>n=>{if(k())return;const r={scroll:C,scrollTo:H,scrollBy:W}[t];e(t,(function(){const t=arguments;if(1===arguments.length)return void r(this,t[0],n);const e=t[0],i=t[1];r(this,{left:e,top:i})}))},Z=(J("scroll",A),J("scrollTo",A)),tt=J("scrollBy",A),et=(t,e)=>{N(e),S(window,t),window[t]=e};J("scroll",et),J("scrollTo",et),J("scrollBy",et);function nt(t){Q(this,{block:null==t||t?"start":"end",inline:"nearest"})}(t=>{if(k())return;const e=S(window.HTMLElement.prototype,"scrollIntoView",nt);A("scrollIntoView",(function(){const n=arguments,r=n[0];1===n.length&&P(r)?Q(this,r,t):e.apply(this,n)}))})(),Z(),tt()})();