1import{aB as yt,aC as Sr,aY as Se,by as kr,aG as ie,aH as ae,bg as be,aI as oe,aK as ln,aR as un,aJ as Nr,aO as Dr,bn as Lr,aX as ke,bz as Mr,bA as zr,aM as Fr,bB as jr}from"./entry.D39PTfAK.js";try{let a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new a.Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="4847552d-6167-4529-a0ee-452b93d2d308",a._sentryDebugIdIdentifier="sentry-dbid-4847552d-6167-4529-a0ee-452b93d2d308")}catch{}const Br={key:1,class:"tw-flex tw-flex-col tw-p-3 tw-flex-1 !tw-overflow-y-auto"},Vr={class:"tw-flex tw-flex-col tw-flex-1"},Hr={key:0,class:"tw-text-sm tw-mt-1 tw-text-gray-400"},Ur={key:1,class:"cms-card-body"},Wr={key:0,class:"cms-card-footer"},Xr=["href"],fo=yt({__name:"CmsCard",props:{title:{},hideTitle:{type:Boolean},hideBody:{type:Boolean},hideFooter:{type:Boolean},hideHeader:{type:Boolean},noBackground:{type:Boolean},horizontal:{type:Boolean},noTitleSeparator:{type:Boolean},size:{},articleLink:{}},setup(a){const{t:r}=Sr(),t=a,e=Se(()=>!(t.horizontal||t.noBackground||t.noTitleSeparator)),n=kr(),i=Se(()=>n.title!=null),o=Se(()=>n["sub-title"]!=null),s=Se(()=>n.body!=null);return(l,u)=>(ie(),ae("div",{class:un(["cms-card tw-relative",[l.horizontal?"cms-card-horizontal":"",l.noBackground?"tw-bg-none tw-border-none":"tw-bg-white tw-drop-shadow-md"]])},[l.hideHeader?oe("",!0):be(l.$slots,"header",{key:0}),o.value||i.value||s.value?(ie(),ae("div",Br,[ln("div",Vr,[i.value?(ie(),ae("div",{key:0,class:un(["cms-card-title",{"cms-card-title-separator":e.value}])},[be(l.$slots,"title"),o.value?(ie(),ae("div",Hr,[be(l.$slots,"sub-title")])):oe("",!0)],2)):oe("",!0),l.hideBody?oe("",!0):(ie(),ae("div",Ur,[be(l.$slots,"body")]))]),!l.hideFooter&&l.articleLink!=null?(ie(),ae("div",Wr,[be(l.$slots,"footer",{},()=>[ln("a",{href:l.articleLink,class:"cms-button"},Nr(Dr(r)("view.moreInformation")),9,Xr)])])):oe("",!0)])):oe("",!0)],2))}});var Gr=function(){function a(){this.keys=[],this.values=[]}var r=a.prototype;return r.get=function(t){return this.values[this.keys.indexOf(t)]},r.set=function(t,e){var n=this.keys,i=this.values,o=n.indexOf(t),s=o===-1?n.length:o;n[s]=t,i[s]=e},a}(),Yr=function(){function a(){this.object={}}var r=a.prototype;return r.get=function(t){return this.object[t]},r.set=function(t,e){this.object[t]=e},a}(),$r=typeof Map=="function",Kr=function(){function a(){}var r=a.prototype;return r.connect=function(t,e){this.prev=t,this.next=e,t&&(t.next=this),e&&(e.prev=this)},r.disconnect=function(){var t=this.prev,e=this.next;t&&(t.next=e),e&&(e.prev=t)},r.getIndex=function(){for(var t=this,e=-1;t;)t=t.prev,++e;return e},a}();function qr(a,r){var t=[],e=[];return a.forEach(function(n){var i=n[0],o=n[1],s=new Kr;t[i]=s,e[o]=s}),t.forEach(function(n,i){n.connect(t[i-1])}),a.filter(function(n,i){return!r[i]}).map(function(n,i){var o=n[0],s=n[1];if(o===s)return[0,0];var l=t[o],u=e[s-1],c=l.getIndex();l.disconnect(),u?l.connect(u,u.next):l.connect(void 0,t[0]);var f=l.getIndex();return[c,f]})}var Zr=function(){function a(t,e,n,i,o,s,l,u){this.prevList=t,this.list=e,this.added=n,this.removed=i,this.changed=o,this.maintained=s,this.changedBeforeAdded=l,this.fixed=u}var r=a.prototype;return Object.defineProperty(r,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(r,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),r.caculateOrdered=function(){var t=qr(this.changedBeforeAdded,this.fixed),e=this.changed,n=[];this.cacheOrdered=t.filter(function(i,o){var s=i[0],l=i[1],u=e[o],c=u[0],f=u[1];if(s!==l)return n.push([c,f]),!0}),this.cachePureChanged=n},a}();function Jr(a,r,t){var e=$r?Map:t?Yr:Gr,n=t||function(m){return m},i=[],o=[],s=[],l=a.map(n),u=r.map(n),c=new e,f=new e,d=[],h=[],v={},g=[],p=0,_=0;return l.forEach(function(m,b){c.set(m,b)}),u.forEach(function(m,b){f.set(m,b)}),l.forEach(function(m,b){var y=f.get(m);typeof y>"u"?(++_,o.push(b)):v[y]=_}),u.forEach(function(m,b){var y=c.get(m);typeof y>"u"?(i.push(b),++p):(s.push([y,b]),_=v[b]||0,d.push([y-_,b-p]),h.push(b===y),y!==b&&g.push([y,b]))}),o.reverse(),new Zr(a,r,i,o,g,s,d,h)}var cn=function(){function a(t,e){t===void 0&&(t=[]),this.findKeyCallback=e,this.list=[].slice.call(t)}var r=a.prototype;return r.update=function(t){var e=[].slice.call(t),n=Jr(this.list,e,this.findKeyCallback);return this.list=e,n},a}();/*! ***************************************************************************** 2Copyright (c) Microsoft Corporation. 3 4Permission to use, copy, modify, and/or distribute this software for any 5purpose with or without fee is hereby granted. 6 7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 8REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 9AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 10INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 11LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 12OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 13PERFORMANCE OF THIS SOFTWARE. 14***************************************************************************** */function Qr(a){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&a[r],e=0;if(t)return t.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&e>=a.length&&(a=void 0),{value:a&&a[e++],done:!a}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function ei(a,r){var t=typeof Symbol=="function"&&a[Symbol.iterator];if(!t)return a;var e=t.call(a),n,i=[],o;try{for(;(r===void 0||r-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=e.return)&&t.call(e)}finally{if(o)throw o.error}}return i}function qe(){for(var a=[],r=0;r<arguments.length;
14r++)a=a.concat(ei(arguments[r]));return a}var Ee=function(a){return typeof a>"u"},at=function(){function a(t,e){var n,i;if(this._canceled=!1,e)try{for(var o=Qr(Object.keys(e)),s=o.next();!s.done;s=o.next()){var l=s.value;this[l]=e[l]}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}this.eventType=t}var r=a.prototype;return r.stop=function(){this._canceled=!0},r.isCanceled=function(){return this._canceled},a}(),ne=function(){function a(){this._eventHandler={}}var r=a.prototype;return r.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=t instanceof at?t.eventType:t,o=qe(this._eventHandler[i]||[]);return o.length<=0?this:(t instanceof at?(t.currentTarget=this,o.forEach(function(s){s(t)})):o.forEach(function(s){s.apply(void 0,qe(e))}),this)},r.once=function(t,e){var n=this;if(typeof t=="object"&&Ee(e)){var i=t;for(var o in i)this.once(o,i[o]);return this}else if(typeof t=="string"&&typeof e=="function"){var s=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];e.apply(void 0,qe(l)),n.off(t,s)};this.on(t,s)}return this},r.hasOn=function(t){return!!this._eventHandler[t]},r.on=function(t,e){if(typeof t=="object"&&Ee(e)){var n=t;for(var i in n)this.on(i,n[i]);return this}else if(typeof t=="string"&&typeof e=="function"){var o=this._eventHandler[t];Ee(o)&&(this._eventHandler[t]=[],o=this._eventHandler[t]),o.push(e)}return this},r.off=function(t,e){if(Ee(t))return this._eventHandler={},this;if(Ee(e)){if(typeof t=="string")return delete this._eventHandler[t],this;var n=t;for(var i in n)this.off(i,n[i]);return this}var o=this._eventHandler[t];if(o){for(var s=o.length,l=0;l<s;++l)if(o[l]===e){o.splice(l,1),s<=1&&delete this._eventHandler[t];break}}return this},a.VERSION="3.0.5",a}(),T=at;function Ot(a,r){for(var t=a.length,e=0;e<t;++e)if(r(a[e],e))return!0;return!1}function Cn(a,r){for(var t=a.length,e=0;e<t;++e)if(r(a[e],e))return a[e];return null}function wn(a){var r=a;if(typeof r>"u"){if(typeof navigator>"u"||!navigator)return"";r=navigator.userAgent||""}return r.toLowerCase()}function xt(a,r){try{return new RegExp(a,"g").exec(r)}catch{return null}}function ti(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;var a=navigator.userAgentData,r=a.brands||a.uaList;return!!(r&&r.length)}function ni(a,r){var t=xt("("+a+")((?:\\/|\\s|:)([0-9|\\.|_]+))",r);return t?t[3]:""}function ot(a){return a.replace(/_/g,".")}function Pe(a,r){var t=null,e="-1";return Ot(a,function(n){var i=xt("("+n.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",r);return!i||n.brand?!1:(t=n,e=i[3]||"-1",n.versionAlias?e=n.versionAlias:n.versionTest&&(e=ni(n.versionTest.toLowerCase(),r)||e),e=ot(e),!0)}),{preset:t,version:e}}function Ne(a,r){var t={brand:"",version:"-1"};return Ot(a,function(e){var n=An(r,e);return n?(t.brand=e.id,t.version=e.versionAlias||n.version,t.version!=="-1"):!1}),t}function An(a,r){return Cn(a,function(t){var e=t.brand;return xt(""+r.test,e.toLowerCase())})}var Sn=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],kn=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],st=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],Nn=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],Dn=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function Ln(a){return!!Pe(Nn,a).preset}function ri(a){var r=wn(a),t=!!/mobi/g.exec(r),e={name:"unknown",version:"-1",majorVersion:-1,webview:Ln(r),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},n={name:"unknown",version:"-1",majorVersion:-1},i=Pe(Sn,r),o=i.preset,s=i.version,l=Pe(Dn,r),u=l.preset,c=l.version,f=Pe(kn,r);if(e.chromium=!!f.preset,e.chromiumVersion=f.version,!e.chromium){var d=Pe(st,r);e.webkit=!!d.preset,e.webkitVersion=d.version}return u&&(n.name=u.id,n.version=c,n.majorVersion=parseInt(c,10)),o&&(e.name=o.id,e.version=s,e.webview&&n.name==="ios"&&e.name!=="safari"&&(e.webview=!1)),e.majorVersion=parseInt(e.version,10),{browser:e,os:n,isMobile:t,isHints:!1}}function ii(a){var r=navigator.userAgentData,t=(r.uaList||r.brands).slice(),e=r.mobile||!1,n=t[0],i=(r.platform||navigator.platform).toLowerCase(),o={name:n.brand,version:n.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!Ne(Nn,t).brand||Ln(wn())},s={name:"unknown",version:"-1",majorVersion:-1};o.webkit=!o.chromium&&Ot(st,function(d){return An(t,d)});var l=Ne(kn,t);if(o.chromium=!!l.brand,o.chromiumVersion=l.version||"-1",!o.chromium){var u=Ne(st,t);o.webkit=!!u.brand,o.webkitVersion=u.version||"-1"}var c=Cn(Dn,function(d){return new RegExp(""+d.test,"g").exec(i)});s.name=c?c.id:"";{var f=Ne(Sn,t);o.name=f.brand||o.name,o.version=f.brand&&a?a.uaFullVersion:f.version}return o.webkit&&(s.name=e?"ios":"mac"),s.name==="ios"&&o.webview&&(o.version="-1"),s.version=ot(s.version),o.version=ot(o.version),s.majorVersion=parseInt(s.version,10),o.majorVersion=parseInt(o.version,10),{browser:o,os:s,isMobile:e,isHints:!0}}function ai(a){return ti()?ii():ri(a)}function oi(a){return Object.keys(a)}var lt="__observers__",Le="__computed__",Ze=1,Je="__CFCS_DETECTED_DEPENDENCIES__",ut=function(a,r){return ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},ut(a,r)};function si(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");ut(a,r);function t(){this.constructor=a}
14a.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function Tt(){Object[Je]=Object[Je]||{};var a=Object[Je];return a[Ze]=a[Ze]||[],a[Ze]}function li(){var a=Tt();return a[a.length-1]}function ui(a){var r=Tt(),t=[],e={host:a,observers:t,push:function(n){a!==n&&t.indexOf(n)===-1&&t.push(n)}};return r.push(e),e}function ci(){var a=Tt();return a.pop()}var Mn=function(){function a(t){this._emitter=new ne,this._current=t}var r=a.prototype;return Object.defineProperty(r,"current",{get:function(){var t=li();return t==null||t.push(this),this._current},set:function(t){this._setCurrent(t)},enumerable:!1,configurable:!0}),r.subscribe=function(t){return this.current,this._emitter.on("update",t),this},r.unsubscribe=function(t){return this._emitter.off("update",t),this},r._setCurrent=function(t){var e=this._current,n=t!==e;this._current=t,n&&this._emitter.trigger("update",t,e)},r.toString=function(){return"".concat(this.current)},r.valueOf=function(){return this.current},a}(),fi=function(a){si(r,a);function r(e){var n=a.call(this)||this;return n._computedCallback=e,n._registered=[],n._onCheckUpdate=function(){n._setCurrent(n.current)},n._current=n.current,n}var t=r.prototype;return Object.defineProperty(t,"current",{get:function(){var e=this;ui(this);var n=this._computedCallback(),i=ci();return this._registered.forEach(function(o){o.unsubscribe(e._onCheckUpdate)}),i.observers.forEach(function(o){o.subscribe(e._onCheckUpdate)}),this._registered=i.observers,n},enumerable:!1,configurable:!0}),r}(Mn);function fn(a,r,t){t===void 0&&(t=r);var e={configurable:!0,get:function(){return J(this,t).current},set:function(n){J(this,t,n).current=n}};Object.defineProperty(a,r,e),t!==r&&Object.defineProperty(a,t,{configurable:!0,get:function(){return J(this,t).current}})}function hi(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];return a.length>1?fn(a[0],a[1]):function(t,e){return fn(t,e,a[0])}}function di(a){a.subscribe=function(r,t){this[r],J(this,r).subscribe(t)},a.unsubscribe=function(r,t){var e=this;if(!r){oi(Rt(this)).forEach(function(n){e.unsubscribe(n)});return}r in this&&J(this,r).unsubscribe(t)}}function vi(a){var r=a.prototype;di(r)}function gi(a){return new Mn(a)}function _i(a){return new fi(a)}function pi(a){var r={};return Object.defineProperty(a,lt,{get:function(){return r}}),r}function Rt(a,r){var t,e;a[lt]||pi(a);var n=a[lt];if(!r){var i=(e=(t=a==null?void 0:a.constructor)===null||t===void 0?void 0:t.prototype)===null||e===void 0?void 0:e[Le];i&&i.forEach(function(o){!(o in n)&&o in a&&a[o]})}return n}function J(a,r,t){var e=Rt(a);return e[r]||(e[r]=gi(t)),e[r]}function mi(a,r,t){var e=t.get;function n(){var s=Rt(this,!0);return r in s||(s[r]=_i(e.bind(this))),J(this,r).current}var i={configurable:!0,get:n};a[Le]||(a[Le]=[]);var o=a[Le];return o.indexOf(r)===-1&&o.push(r),Object.defineProperty(a,r,i),i}/*! ***************************************************************************** 15Copyright (c) Microsoft Corporation. All rights reserved. 16Licensed under the Apache License, Version 2.0 (the "License"); you may not use 17this file except in compliance with the License. You may obtain a copy of the 18License at http://www.apache.org/licenses/LICENSE-2.0 19 20THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 21KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 22WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 23MERCHANTABLITY OR NON-INFRINGEMENT. 24 25See the Apache Version 2.0 License for specific language governing permissions 26and limitations under the License. 27***************************************************************************** */var ct=function(a,r){return ct=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},ct(a,r)};function _e(a,r){ct(a,r);function t(){this.constructor=a}a.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var k=function(){return k=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},k.apply(this,arguments)};function ft(a,r,t,e){var n=arguments.length,i=n<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,o;
27if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,r,t,e);else for(var s=a.length-1;s>=0;s--)(o=a[s])&&(i=(n<3?o(i):n>3?o(r,t,i):o(r,t))||i);return n>3&&i&&Object.defineProperty(r,t,i),i}var F;typeof window>"u"?F={navigator:{userAgent:""}}:F=window;var we=1,bi=2,Ei=4,de=6,Pi=8,yi=16,ve=24,Ye=30,je="left",ht="right",dt="middle",zn={1:je,2:dt,3:ht},Fn="any",Oi="none",xi="shift",Ti="ctrl",Ri="alt",Ii="meta",Ci=16,wi=30,hn="ontouchstart"in F&&ai().browser.name==="safari",Ai=function(){if(typeof document>"u")return"";for(var a=(document.head||document.getElementsByTagName("head")[0]).style,r=["transform","webkitTransform","msTransform","mozTransform"],t=0,e=r.length;t<e;t++)if(r[t]in a)return r[t];return""}(),vt={"-webkit-user-select":"none","-ms-user-select":"none","-moz-user-select":"none","user-select":"none","-webkit-user-drag":"none"},dn=function(a){for(var r=[],t=0,e=a.length;t<e;t++)r.push(a[t]);return r},jn=function(a,r){r===void 0&&(r=!1);var t;if(typeof a=="string"){var e=a.match(/^<([a-z]+)\s*([^>]*)>/);if(e){var n=document.createElement("div");n.innerHTML=a,t=dn(n.childNodes)}else t=dn(document.querySelectorAll(a));r||(t=t.length>=1?t[0]:void 0)}else a===F?t=a:"value"in a||"current"in a?t=a.value||a.current:a.nodeName&&(a.nodeType===1||a.nodeType===9)?t=a:"jQuery"in F&&a instanceof jQuery||a.constructor.prototype.jquery?t=r?a.toArray():a.get(0):Array.isArray(a)&&(t=a.map(function(i){return jn(i)}),r||(t=t.length>=1?t[0]:void 0));return t},le=F.requestAnimationFrame||F.webkitRequestAnimationFrame,ye=F.cancelAnimationFrame||F.webkitCancelAnimationFrame;if(le&&!ye){var Qe={},Si=le;le=function(a){var r=function(e){Qe[t]&&a(e)},t=Si(r);return Qe[t]=!0,t},ye=function(a){delete Qe[a]}}else le&&ye||(le=function(a){return F.setTimeout(function(){a(F.performance&&F.performance.now&&F.performance.now()||new Date().getTime())},16)},ye=F.clearTimeout);var ki=function(a){return le(a)},Ni=function(a){ye(a)},$=function(a,r){var t={};for(var e in a)e&&(t[e]=r(a[e],e));return t},Bn=function(a,r){var t={};for(var e in a)e&&r(a[e],e)&&(t[e]=a[e]);return t},It=function(a,r){for(var t in a)if(t&&!r(a[t],t))return!1;return!0},Oe=function(a,r){return It(a,function(t,e){return t===r[e]})},et={},Vn=function(a,r){return et[r]||(et[r]=Li(r)),et[r](a)},vn=function(a,r){return!a||!r?a:$(a,function(t,e){return Vn(t,typeof r=="number"?r:r[e])})},Me=function(a){if(!isFinite(a))return 0;var r="".concat(a);if(r.indexOf("e")>=0){for(var t=0,e=1;Math.round(a*e)/e!==a;)e*=10,t++;return t}return r.indexOf(".")>=0?r.length-r.indexOf(".")-1:0},Di=function(a){return 1/Math.pow(10,a)},Li=function(a){var r=a<1?Math.pow(10,Me(a)):1;return function(t){return a===0?0:Math.round(Math.round(t/a)*a*r)/r}},Mi=function(a,r){return Math.atan2(r,a)*180/Math.PI},zi=function(a){var r=!0;return Object.keys(vt).forEach(function(t){(!a||a[t]!==vt[t])&&(r=!1)}),r},Fi=function(a,r){return a&&r?Ye:a?de:r?ve:we},De=function(a,r,t){return t?!!(r===Ye||r&a&&t&a):!!(r&a)},ji=function(a,r,t){var e,n=(e={},e[we]="auto",e[Ye]="none",e[ve]="pan-x",e[de]="pan-y",e),i={};if(a&&a.style){var o=r.touchAction?r.touchAction:n[t],s=k(k({},vt),{"touch-action":a.style["touch-action"]==="none"?"none":o});Object.keys(s).forEach(function(l){i[l]=a.style[l]}),Object.keys(s).forEach(function(l){a.style[l]=s[l]})}return i},Bi=function(a,r){a&&a.style&&r&&Object.keys(r).forEach(function(t){a.style[t]=r[t]})},Vi=function(){function a(t){this._axes=t,this.holdingCount=0}var r=a.prototype;return r.hold=function(t,e){var n=this._getRoundPos(t).roundPos;this._axes.trigger(new T("hold",{pos:n,input:e.input||null,inputEvent:e.event||null,isTrusted:!0}))},r.triggerRelease=function(t){var e=this._getRoundPos(t.destPos,t.depaPos),n=e.roundPos,i=e.roundDepa;t.destPos=n,t.depaPos=i,t.setTo=this._createUserControll(t.destPos,t.duration),this._axes.trigger(new T("release",k(k({},t),{bounceRatio:this._getBounceRatio(n)})))},r.triggerChange=function(t,e,n,i){var o=this;i===void 0&&(i=!1);var s=this.animationManager,l=s.axisManager,u=s.getEventInfo(),c=this._getRoundPos(t,e),f=c.roundPos,d=c.roundDepa,h=l.moveTo(f,d),v=(n==null?void 0:n.event)||(u==null?void 0:u.event)||null,g={pos:h.pos,delta:h.delta,bounceRatio:this._getBounceRatio(h.pos),holding:i,inputEvent:v,isTrusted:!!v,input:(n==null?void 0:n.input)||(u==null?void 0:u.input)||null,set:v?this._createUserControll(h.pos):function(){}},p=new T("change",g);
vendor: 3,469 bytes, line 27
27return this._axes.trigger(p),Object.keys(h.pos).forEach(function(_){var m=h.pos[_];J(o._axes,_,m).current=m}),v&&l.set(g.set().destPos),!p.isCanceled()},r.triggerAnimationStart=function(t){var e=this._getRoundPos(t.destPos,t.depaPos),n=e.roundPos,i=e.roundDepa;t.destPos=n,t.depaPos=i,t.setTo=this._createUserControll(t.destPos,t.duration);var o=new T("animationStart",t);return this._axes.trigger(o),!o.isCanceled()},r.triggerAnimationEnd=function(t){t===void 0&&(t=!1),this._axes.trigger(new T("animationEnd",{isTrusted:t}))},r.triggerFinish=function(t){t===void 0&&(t=!1),this._axes.trigger(new T("finish",{isTrusted:t}))},r.setAnimationManager=function(t){this.animationManager=t},r.destroy=function(){this._axes.off()},r._createUserControll=function(t,e){e===void 0&&(e=0);var n={destPos:k({},t),duration:e};return function(i,o){return i&&(n.destPos=k({},i)),o!==void 0&&(n.duration=o),n}},r._getRoundPos=function(t,e){var n=this._axes.options.round;return{roundPos:vn(t,n),roundDepa:vn(e,n)}},r._getBounceRatio=function(t){return this._axes.axisManager.map(t,function(e,n){return e<n.range[0]&&n.bounce[0]!==0?(n.range[0]-e)/n.bounce[0]:e>n.range[1]&&n.bounce[1]!==0?(e-n.range[1])/n.bounce[1]:0})},ft([hi],a.prototype,"holdingCount",void 0),a}(),Hi=function(){function a(t){this._options=t,this._prevented=!1}var r=a.prototype;return r.isInterrupting=function(){return this._options.interruptable||this._prevented},r.isInterrupted=function(){return!this._options.interruptable&&this._prevented},r.setInterrupt=function(t){this._options.interruptable||(this._prevented=t)},a}(),Hn=function(a,r,t,e){var n=a,i=[t[0]?r[0]:e?r[0]-e[0]:r[0],t[1]?r[1]:e?r[1]+e[1]:r[1]];return n=Math.max(i[0],n),n=Math.min(i[1],n),n},Un=function(a,r){return a<r[0]||a>r[1]},Ui=function(a,r,t,e){return!e[0]&&a===r[0]-t[0]||!e[1]&&a===r[1]+t[1]},Wi=function(a,r){var t=Math.sqrt(a/r*2);return t<100?0:t},gn=function(a,r,t){return t[1]&&a>r[1]||t[0]&&a<r[0]},Re=function(a,r,t){var e=a,n=r[0],i=r[1],o=i-n;return t[1]&&a>i&&(e=(e-i)%o+n),t[0]&&a<n&&(e=(e-n)%o+i),e},Xi=function(){function a(t){var e=this;this._axis=t,this._complementOptions(),this._pos=Object.keys(this._axis).reduce(function(n,i){return n[i]=e._axis[i].startPos,n},{})}var r=a.prototype;return r.getDelta=function(t,e){var n=this.get(t);return $(this.get(e),function(i,o){return i-n[o]})},r.get=function(t){var e=this;return t&&Array.isArray(t)?t.reduce(function(n,i){return i&&i in e._pos&&(n[i]=e._pos[i]),n},{}):k(k({},this._pos),t||{})},r.moveTo=function(t,e){e===void 0&&(e=this._pos);var n=$(this._pos,function(i,o){return o in t&&o in e?t[o]-e[o]:0});return this.set(this.map(t,function(i,o){return o?Re(i,o.range,o.circular):0})),{pos:k({},this._pos),delta:n}},r.set=function(t){for(var e in t)e&&e in this._pos&&(this._pos[e]=t[e])},r.every=function(t,e){var n=this._axis;return It(t,function(i,o){return e(i,n[o],o)})},r.filter=function(t,e){var n=this._axis;return Bn(t,function(i,o){return e(i,n[o],o)})},r.map=function(t,e){var n=this._axis;return $(t,function(i,o){return e(i,n[o],o)})},r.isOutside=function(t){return!this.every(t?this.get(t):this._pos,function(e,n){return!Un(e,n.range)})},r.getAxisOptions=function(t){return this._axis[t]},r.setAxis=function(t){var e=this;Object.keys(t).forEach(function(n){if(!e._axis[n])throw new Error("Axis ".concat(n," does not exist in Axes instance"));e._axis[n]=k(k({},e._axis[n]),t[n])}),this._complementOptions()},r._complementOptions=function(){var t=this;
27Object.keys(this._axis).forEach(function(e){t._axis[e]=k({range:[0,100],startPos:t._axis[e].range[0],bounce:[0,0],circular:[!1,!1]},t._axis[e]),["bounce","circular"].forEach(function(n){var i=t._axis,o=i[e][n];/string|number|boolean/.test(typeof o)&&(i[e][n]=[o,o])})})},a}(),Gi="ontouchstart"in F,ze="PointerEvent"in F,Yi="MSPointerEvent"in F,$i=ze||Yi,Ki=function(a,r){return!!(!r||r.indexOf(Fn)>-1||r.indexOf(Oi)>-1&&!a.shiftKey&&!a.ctrlKey&&!a.altKey&&!a.metaKey||r.indexOf(xi)>-1&&a.shiftKey||r.indexOf(Ti)>-1&&a.ctrlKey||r.indexOf(Ri)>-1&&a.altKey||r.indexOf(Ii)>-1&&a.metaKey)},$e=function(){function a(){var t=this;this._stopContextMenu=function(e){e.preventDefault(),F.removeEventListener("contextmenu",t._stopContextMenu)}}var r=a.prototype;return r.extendEvent=function(t){var e,n=this.prevEvent,i=this._getCenter(t),o=n?this._getMovement(t):{x:0,y:0},s=n?this._getScale(t):1,l=n?Mi(i.x-n.center.x,i.y-n.center.y):0,u=n?n.deltaX+o.x:o.x,c=n?n.deltaY+o.y:o.y,f=o.x,d=o.y,h=this._latestInterval,v=Date.now(),g=h?v-h.timestamp:0,p=n?n.velocityX:0,_=n?n.velocityY:0;return(!h||g>=Ci)&&(h&&(e=[(u-h.deltaX)/g,(c-h.deltaY)/g],p=e[0],_=e[1]),this._latestInterval={timestamp:v,deltaX:u,deltaY:c}),{srcEvent:t,scale:s,angle:l,center:i,deltaX:u,deltaY:c,offsetX:f,offsetY:d,velocityX:p,velocityY:_,preventSystemEvent:!0}},r._getDistance=function(t,e){var n=e.clientX-t.clientX,i=e.clientY-t.clientY;return Math.sqrt(n*n+i*i)},r._getButton=function(t){var e={1:je,2:ht,4:dt},n=this._isTouchEvent(t)?je:e[t.buttons];return n||null},r._isTouchEvent=function(t){return t.type&&t.type.indexOf("touch")>-1},r._isValidButton=function(t,e){return e.indexOf(t)>-1},r._isValidEvent=function(t,e,n){return(!e||Ki(t,e))&&(!n||this._isValidButton(this._getButton(t),n))},r._preventMouseButton=function(t,e){e===ht?F.addEventListener("contextmenu",this._stopContextMenu):e===dt&&t.preventDefault()},a}(),qi=function(a){_e(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.start=["mousedown"],e.move=["mousemove"],e.end=["mouseup"],e}var t=r.prototype;return t.onEventStart=function(e,n,i){var o=this._getButton(e);return this._isValidEvent(e,n,i)?(this._preventMouseButton(e,o),this.extendEvent(e)):null},t.onEventMove=function(e,n,i){return this._isValidEvent(e,n,i)?this.extendEvent(e):null},t.onEventEnd=function(){},t.onRelease=function(){this.prevEvent=null},t.getTouches=function(e,n){return n&&this._isValidButton(zn[e.which],n)&&this.end.indexOf(e.type)===-1?1:0},t._getScale=function(){return 1},t._getCenter=function(e){return{x:e.clientX,y:e.clientY}},t._getMovement=function(e){var n=this.prevEvent.srcEvent;return{x:e.clientX-n.clientX,y:e.clientY-n.clientY}},r}($e),Zi=function(a){_e(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.start=["touchstart"],e.move=["touchmove"],e.end=["touchend","touchcancel"],e}var t=r.prototype;return t.onEventStart=function(e,n){return this._baseTouches=e.touches,this._isValidEvent(e,n)?this.extendEvent(e):null},t.onEventMove=function(e,n){return this._isValidEvent(e,n)?this.extendEvent(e):null},t.onEventEnd=function(e){this._baseTouches=e.touches},t.onRelease=function(){this.prevEvent=null,this._baseTouches=null},t.getTouches=function(e){return e.touches.length},t._getScale=function(e){return e.touches.length!==2||this._baseTouches.length<2?null:this._getDistance(e.touches[0],e.touches[1])/this._getDistance(this._baseTouches[0],this._baseTouches[1])},t._getCenter=function(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}},t._getMovement=function(e){var n=this.prevEvent.srcEvent;return e.touches[0].identifier!==n.touches[0].identifier?{x:0,y:0}:{x:e.touches[0].clientX-n.touches[0].clientX,y:e.touches[0].clientY-n.touches[0].clientY}},r}($e),Ji=function(a){_e(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.start=ze?["pointerdown"]:["MSPointerDown"],e.move=ze?["pointermove"]:["MSPointerMove"],e.end=ze?["pointerup","pointercancel"]:["MSPointerUp","MSPointerCancel"],e._firstInputs=[],e._recentInputs=[],e}var t=r.prototype;return t.onEventStart=function(e,n,i){var o=this._getButton(e);return this._isValidEvent(e,n,i)?(this._preventMouseButton(e,o),this._updatePointerEvent(e),this.extendEvent(e)):null},t.onEventMove=function(e,n,i){return this._isValidEvent(e,n,i)?(this._updatePointerEvent(e),this.extendEvent(e)):null},t.onEventEnd=function(e){this._removePointerEvent(e)},t.onRelease=function(){this.prevEvent=null,this._firstInputs=[],this._recentInputs=[]},t.getTouches=function(){return this._recentInputs.length},t._getScale=function(){return this._recentInputs.length!==2?null:this._getDistance(this._recentInputs[0],this._recentInputs[1])/this._getDistance(this._firstInputs[0],this._firstInputs[1])},t._getCenter=function(e){return{x:e.clientX,y:e.clientY}},t._getMovement=function(e){var n=this.prevEvent.srcEvent;return e.pointerId!==n.pointerId?{x:0,y:0}:{x:e.clientX-n.clientX,y:e.clientY-n.clientY}},t._updatePointerEvent=function(e){var n=this,i=!1;
27this._recentInputs.forEach(function(o,s){o.pointerId===e.pointerId&&(i=!0,n._recentInputs[s]=e)}),i||(this._firstInputs.push(e),this._recentInputs.push(e))},t._removePointerEvent=function(e){this._firstInputs=this._firstInputs.filter(function(n){return n.pointerId!==e.pointerId}),this._recentInputs=this._recentInputs.filter(function(n){return n.pointerId!==e.pointerId})},r}($e),Qi=function(a){_e(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.start=["mousedown","touchstart"],e.move=["mousemove","touchmove"],e.end=["mouseup","touchend","touchcancel"],e}var t=r.prototype;return t.onEventStart=function(e,n,i){var o=this._getButton(e);return this._isTouchEvent(e)&&(this._baseTouches=e.touches),this._isValidEvent(e,n,i)?(this._preventMouseButton(e,o),this.extendEvent(e)):null},t.onEventMove=function(e,n,i){return this._isValidEvent(e,n,i)?this.extendEvent(e):null},t.onEventEnd=function(e){this._isTouchEvent(e)&&(this._baseTouches=e.touches)},t.onRelease=function(){this.prevEvent=null,this._baseTouches=null},t.getTouches=function(e,n){return this._isTouchEvent(e)?e.touches.length:this._isValidButton(zn[e.which],n)&&this.end.indexOf(e.type)===-1?1:0},t._getScale=function(e){return this._isTouchEvent(e)?e.touches.length!==2||this._baseTouches.length<2?1:this._getDistance(e.touches[0],e.touches[1])/this._getDistance(this._baseTouches[0],this._baseTouches[1]):this.prevEvent.scale},t._getCenter=function(e){return this._isTouchEvent(e)?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}},t._getMovement=function(e){var n=this,i=this.prevEvent.srcEvent,o=[e,i].map(function(u){return n._isTouchEvent(u)?{id:u.touches[0].identifier,x:u.touches[0].clientX,y:u.touches[0].clientY}:{id:null,x:u.clientX,y:u.clientY}}),s=o[0],l=o[1];return s.id===l.id?{x:s.x-l.x,y:s.y-l.y}:{x:0,y:0}},r}($e),Wn=function(a,r){return r.reduce(function(t,e,n){return a[n]&&(t[a[n]]=e),t},{})},ea=function(a){a===void 0&&(a=[]);var r=!1,t=!1,e=!1;return a.forEach(function(n){switch(n){case"mouse":t=!0;break;case"touch":r=Gi;break;case"pointer":e=$i}}),e?new Ji:r&&t?new Qi:r?new Zi:t?new qi:null};function _n(a){return a.indexOf("touch")>-1?{passive:!1}:!1}var ta=function(){function a(t){var e=t.options,n=t.interruptManager,i=t.eventManager,o=t.axisManager,s=t.animationManager;this._isOutside=!1,this._moveDistance=null,this._isStopped=!1,this.options=e,this._interruptManager=n,this._eventManager=i,this._axisManager=o,this._animationManager=s}var r=a.prototype;return r.get=function(t){return this._axisManager.get(t.axes)},r.hold=function(t,e){if(!(this._interruptManager.isInterrupted()||!t.axes.length)){var n={input:t,event:e};this._isStopped=!1,this._interruptManager.setInterrupt(!0),this._animationManager.stopAnimation(n),++this._eventManager.holdingCount,this._moveDistance||this._eventManager.hold(this._axisManager.get(),n),this._isOutside=this._axisManager.isOutside(t.axes),this._moveDistance=this._axisManager.get(t.axes)}},r.change=function(t,e,n,i){if(!(this._isStopped||!this._interruptManager.isInterrupting()||this._axisManager.every(n,function(d){return d===0}))){var o=e.srcEvent?e.srcEvent:e;if(!o.__childrenAxesAlreadyChanged){var s=this._moveDistance||this._axisManager.get(t.axes),l;l=$(s,function(d,h){return d+(n[h]||0)}),this._moveDistance&&(this._moveDistance=this._axisManager.map(l,function(d,h){var v=h.circular,g=h.range;return v&&(v[0]||v[1])?Re(d,g,v):d})),this._isOutside&&this._axisManager.every(s,function(d,h){return!Un(d,h.range)})&&(this._isOutside=!1),s=this._atOutside(s),l=this._atOutside(l),(!this.options.nested||!this._isEndofAxis(n,s,l))&&(o.__childrenAxesAlreadyChanged=!0);var u={input:t,event:e};if(i){var c=this._animationManager.getDuration(l,s);this._animationManager.animateTo(l,c,u)}else{var f=!this._eventManager.triggerChange(l,s,u,!0);f&&(this._isStopped=!0,this._moveDistance=null,this._animationManager.finish(!1))}}}},r.release=function(t,e,n,i){if(!(this._isStopped||!this._interruptManager.isInterrupting()||!this._moveDistance)){var o=e.srcEvent?e.srcEvent:e;o.__childrenAxesAlreadyReleased&&(n=n.map(function(){return 0}));var s=this._axisManager.get(t.axes),l=this._axisManager.get(),u=this._animationManager.getDisplacement(n),c=Wn(t.axes,u),f=this._axisManager.get(this._axisManager.map(c,function(_,m,b){return m.circular&&(m.circular[0]||m.circular[1])?s[b]+_:Hn(s[b]+_,m.range,m.circular,m.bounce)}));o.__childrenAxesAlreadyReleased=!0;var d=this._animationManager.getDuration(f,s,i);d===0&&(f=k({},l));var h={depaPos:l,destPos:f,duration:d,delta:this._axisManager.getDelta(l,f),inputEvent:e,input:t,isTrusted:!0};--this._eventManager.holdingCount,this._eventManager.triggerRelease(h),this._eventManager.holdingCount===0&&(this._moveDistance=null);var v=this._animationManager.getUserControl(h),g=Oe(v.destPos,l),p={input:t,event:e};g||v.duration===0?(g||this._eventManager.triggerChange(v.destPos,l,p,!0),this._interruptManager.setInterrupt(!1),this._axisManager.isOutside()?this._animationManager.restore(p):this._eventManager.triggerFinish(!0)):this._animationManager.animateTo(v.destPos,v.duration,p)}},r._atOutside=function(t){var e=this;return this._isOutside?this._axisManager.map(t,function(n,i){var o=i.range[0]-i.bounce[0],s=i.range[1]+i.bounce[1];return n>s?s:n<o?o:n}):this._axisManager.map(t,function(n,i){var o=i.range[0],s=i.range[1],l=i.bounce,u=i.circular;return u[0]&&n<o||u[1]&&n>s?n:n<o?o-e._animationManager.interpolate(o-n,l[0]):n>s?s+e._animationManager.interpolate(n-s,l[1]):n})},r._isEndofAxis=function(t,e,n){return this._axisManager.every(e,function(i,o,s){return t[s]===0||e[s]===n[s]&&Ui(i,o.range,o.bounce,o.circular)})},a}(),tt=function(a,r,t){return Math.max(Math.min(a,t),r)},na=function(){function a(t){var e=t.options,n=t.interruptManager,i=t.eventManager,o=t.axisManager;this._options=e,this.interruptManager=n,this.eventManager=i,this.axisManager=o,this.animationEnd=this.animationEnd.bind(this)}
27var r=a.prototype;return r.getDuration=function(t,e,n){var i=this,o;if(typeof n<"u")o=n;else{var s=$(e,function(l,u){return Wi(Math.abs(l-t[u]),i._options.deceleration)});o=Object.keys(s).reduce(function(l,u){return Math.max(l,s[u])},-1/0)}return tt(o,this._options.minimumDuration,this._options.maximumDuration)},r.getDisplacement=function(t){var e=Math.pow(t.reduce(function(i,o){return i+o*o},0),1/t.length),n=Math.abs(e/-this._options.deceleration);return t.map(function(i){return i/2*n})},r.stopAnimation=function(t){if(this._animateParam){var e=this.axisManager.get(),n=this.axisManager.map(e,function(i,o){return Re(i,o.range,o.circular)});It(n,function(i,o){return e[o]===i})||this.eventManager.triggerChange(n,e,t,!!t),this._animateParam=null,this._raf&&Ni(this._raf),this._raf=null,this.eventManager.triggerAnimationEnd(!!(t!=null&&t.event))}},r.getEventInfo=function(){return this._animateParam&&this._animateParam.input&&this._animateParam.inputEvent?{input:this._animateParam.input,event:this._animateParam.inputEvent}:null},r.restore=function(t){var e=this.axisManager.get(),n=this.axisManager.map(e,function(i,o){return Math.min(o.range[1],Math.max(o.range[0],i))});this.stopAnimation(),this.animateTo(n,this.getDuration(e,n),t)},r.animationEnd=function(){var t=this.getEventInfo();this._animateParam=null;var e=this.axisManager.filter(this.axisManager.get(),function(n,i){return gn(n,i.range,i.circular)});Object.keys(e).length>0&&this.setTo(this.axisManager.map(e,function(n,i){return Re(n,i.range,i.circular)})),this.interruptManager.setInterrupt(!1),this.eventManager.triggerAnimationEnd(!!t),this.axisManager.isOutside()?this.restore(t):this.finish(!!t)},r.finish=function(t){this._animateParam=null,this.interruptManager.setInterrupt(!1),this.eventManager.triggerFinish(t)},r.getUserControl=function(t){var e=t.setTo();return e.destPos=this.axisManager.get(e.destPos),e.duration=tt(e.duration,this._options.minimumDuration,this._options.maximumDuration),e},r.animateTo=function(t,e,n){var i=this;this.stopAnimation();var o=this._createAnimationParam(t,e,n),s=k({},o.depaPos),l=this.eventManager.triggerAnimationStart(o),u=this.getUserControl(o);if(!l&&this.axisManager.every(u.destPos,function(f,d){return gn(f,d.range,d.circular)})&&console.warn("You can't stop the 'animation' event when 'circular' is true."),l&&!Oe(u.destPos,s)){var c=(n==null?void 0:n.event)||null;this._animateLoop({depaPos:s,destPos:u.destPos,duration:u.duration,delta:this.axisManager.getDelta(s,u.destPos),isTrusted:!!c,inputEvent:c,input:(n==null?void 0:n.input)||null},function(){return i.animationEnd()})}},r.setTo=function(t,e){e===void 0&&(e=0);var n=Object.keys(t),i=this.axisManager.get(n);if(Oe(t,i))return this;this.interruptManager.setInterrupt(!0);var o=Bn(t,function(s,l){return i[l]!==s});return Object.keys(o).length?(o=this.axisManager.map(o,function(s,l){var u=l.range,c=l.circular;return c&&(c[0]||c[1])?s:Hn(s,u,c)}),Oe(o,i)?this:(e>0?this.animateTo(o,e):(this.stopAnimation(),this.eventManager.triggerChange(o),this.finish(!1)),this)):this},r.setBy=function(t,e){return e===void 0&&(e=0),this.setTo($(this.axisManager.get(Object.keys(t)),function(n,i){return n+t[i]}),e)},r.setOptions=function(t){this._options=k(k({},this._options),t)},r._createAnimationParam=function(t,e,n){var i=this.axisManager.get(),o=t,s=(n==null?void 0:n.event)||null;return{depaPos:i,destPos:o,duration:tt(e,this._options.minimumDuration,this._options.maximumDuration),delta:this.axisManager.getDelta(i,o),inputEvent:s,input:(n==null?void 0:n.input)||null,isTrusted:!!s,done:this.animationEnd}},r._animateLoop=function(t,e){var n=this;if(t.duration){this._animateParam=k(k({},t),{startTime:new Date().getTime()});var i=$(t.destPos,function(l){return l}),o=this._initState(this._animateParam),s=function(){n._raf=null;var l=n._animateParam,u=n._getNextState(o),c=!n.eventManager.triggerChange(u.pos,o.pos);if(o=u,u.finished){l.destPos=n._getFinalPos(l.destPos,i),Oe(l.destPos,n.axisManager.get(Object.keys(l.destPos)))||n.eventManager.triggerChange(l.destPos,u.pos),e();return}else c?n.finish(!1):n._raf=ki(s)};s()}else this.eventManager.triggerChange(t.destPos),e()},r._getFinalPos=function(t,e){var n=this,i=1e-6,o=$(t,function(s,l){if(s>=e[l]-i&&s<=e[l]+i)return e[l];var u=n._getRoundUnit(s,l),c=Vn(s,u);return c});return o},r._getRoundUnit=function(t,e){var n=this._options.round,i=null;if(!n){var o=this.axisManager.getAxisOptions(e);i=Di(Math.max(Me(o.range[0]),Me(o.range[1]),Me(t)))}return i||n},a}(),ra=function(a){_e(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e._useDuration=!0,e}var t=r.prototype;return t.interpolate=function(e,n){var i=this._easing(1e-5)/1e-5;return this._easing(e/(n*i))*n},t.updateAnimation=function(e){var n,i=this._animateParam;if(i){var o=new Date().getTime()-i.startTime,s=(e==null?void 0:e.destPos)||i.destPos,l=(n=e==null?void 0:e.duration)!==null&&n!==void 0?n:i.duration;if(e!=null&&e.restart||l<=o){this.setTo(s,l-o);return}if(e!=null&&e.destPos){var u=this.axisManager.get();this._initialEasingPer=this._prevEasingPer,i.delta=this.axisManager.getDelta(u,s
27),i.destPos=s}if(e!=null&&e.duration){var c=(o+this._durationOffset)/i.duration;this._durationOffset=c*l-o,i.duration=l}}},t._initState=function(e){return this._initialEasingPer=0,this._prevEasingPer=0,this._durationOffset=0,{pos:e.depaPos,easingPer:0,finished:!1}},t._getNextState=function(e){var n=this,i=this._animateParam,o=e.pos,s=i.destPos,l=$(o,function(h,v){return h<=s[v]?1:-1}),u=new Date().getTime()-i.startTime,c=(u+this._durationOffset)/i.duration,f=this._easing(c),d=this.axisManager.map(o,function(h,v,g){var p=c>=1?s[g]:h+i.delta[g]*(f-n._prevEasingPer)/(1-n._initialEasingPer),_=Re(p,v.range,v.circular);if(p!==_){var m=l[g]*(v.range[1]-v.range[0]);s[g]-=m,o[g]-=m}return _});return this._prevEasingPer=f,{pos:d,easingPer:f,finished:f>=1}},t._easing=function(e){return e>1?1:this._options.easing(e)},r}(na),ia=function(a){_e(r,a);function r(e,n,i){e===void 0&&(e={}),n===void 0&&(n={}),i===void 0&&(i={});var o=a.call(this)||this;return o.axis=e,o._inputs=[],o.options=k({easing:function(s){return 1-Math.pow(1-s,3)},interruptable:!0,maximumDuration:1/0,minimumDuration:0,deceleration:6e-4,round:null,nested:!1}
27,n),Object.keys(i).forEach(function(s){o.axis[s].startPos=i[s]}),o.interruptManager=new Hi(o.options),o.axisManager=new Xi(o.axis),o.eventManager=new Vi(o),o.animationManager=new ra(o),o.inputObserver=new ta(o),o.eventManager.setAnimationManager(o.animationManager),o.eventManager.triggerChange(o.axisManager.get()),o}var t=r.prototype;return Object.defineProperty(t,"holding",{get:function(){return this.eventManager.holdingCount>0},enumerable:!1,configurable:!0}),t.connect=function(e,n){var i;return typeof e=="string"?i=e.split(" "):i=e.concat(),~this._inputs.indexOf(n)&&this.disconnect(n),n.mapAxes(i),n.connect(this.inputObserver),this._inputs.push(n),this},t.disconnect=function(e){if(e){var n=this._inputs.indexOf(e);n>=0&&(this._inputs[n].disconnect(),this._inputs.splice(n,1))}else this._inputs.forEach(function(i){return i.disconnect()}),this._inputs=[];return this},t.get=function(e){return this.axisManager.get(e)},t.setTo=function(e,n){return n===void 0&&(n=0),this.animationManager.setTo(e,n),this},t.setBy=function(e,n){return n===void 0&&(n=0),this.animationManager.setBy(e,n),this},t.setOptions=function(e){return this.options=k(k({},this.options),e),this.animationManager.setOptions(e),this},t.setAxis=function(e){return this.axisManager.setAxis(e),this},t.stopAnimation=function(){return this.animationManager.stopAnimation(),this.animationManager.finish(!1),this},t.updateAnimation=function(e){return this.animationManager.updateAnimation(e),this},t.isBounceArea=function(e){return this.axisManager.isOutside(e)},t.destroy=function(){this.disconnect(),this.eventManager.destroy()},r.VERSION="3.9.1",r.TRANSFORM=Ai,r.DIRECTION_NONE=we,r.DIRECTION_LEFT=bi,r.DIRECTION_RIGHT=Ei,r.DIRECTION_UP=Pi,r.DIRECTION_DOWN=yi,r.DIRECTION_HORIZONTAL=de,r.DIRECTION_VERTICAL=ve,r.DIRECTION_ALL=Ye,ft([mi],r.prototype,"holding",null),r=ft([vi],r),r}(ne),aa=function(a,r){if(r<0||r>90)return we;var t=Math.abs(a);return t>r&&t<180-r?ve:de},oa=function(){function a(t,e){var n=this;this.axes=[],this.element=null,this._enabled=!1,this._activeEvent=null,this._atRightEdge=!1,this._rightEdgeTimer=0,this._dragged=!1,this._isOverThreshold=!1,this._preventClickWhenDragged=function(i){n._dragged&&(i.preventDefault(),i.stopPropagation()),n._dragged=!1},this._voidFunction=function(){},this.element=jn(t),this.options=k({inputType:["touch","mouse","pointer"],inputKey:[Fn],inputButton:[je],scale:[1,1],thresholdAngle:45,threshold:0,preventClickOnDrag:!1,preventDefaultOnDrag:!1,iOSEdgeSwipeThreshold:wi,releaseOnScroll:!1,touchAction:null},e),this._onPanstart=this._onPanstart.bind(this),this._onPanmove=this._onPanmove.bind(this),this._onPanend=this._onPanend.bind(this)}var r=a.prototype;return r.mapAxes=function(t){this._direction=Fi(!!t[0],!!t[1]),this.axes=t},r.connect=function(t){return this._activeEvent&&(this._detachElementEvent(),this._detachWindowEvent(this._activeEvent)),this._attachElementEvent(t),this},r.disconnect=function(){return this._detachElementEvent(),this._detachWindowEvent(this._activeEvent),this._direction=we,this},r.destroy=function(){this.disconnect(),this.element=null},r.enable=function(){return this._enabled||(this._enabled=!0,this._originalCssProps=ji(this.element,this.options,this._direction)),this},r.disable=function(){return this._enabled&&(this._enabled=!1,zi(this._originalCssProps)||Bi(this.element,this._originalCssProps)),this},r.isEnabled=function(){return this._enabled},r.release=function(){var t=this._activeEvent,e=t.prevEvent;return t.onRelease(),this._observer.release(this,e,[0,0]),this._detachWindowEvent(t),this},r._onPanstart=function(t){var e=this.options,n=e.inputKey,i=e.inputButton,o=e.preventDefaultOnDrag,s=this._activeEvent,l=s.onEventStart(t,n,i);if(!(!l||!this._enabled||s.getTouches(t,i)>1)&&l.srcEvent.cancelable!==!1){var u=this.options.iOSEdgeSwipeThreshold;this._dragged=!1,this._isOverThreshold=!1,this._observer.hold(this,l),this._atRightEdge=hn&&l.center.x>window.innerWidth-u,this._attachWindowEvent(s),o&&l.srcEvent.type!=="touchstart"&&l.srcEvent.preventDefault(),s.prevEvent=l}},r._onPanmove=function(t){var e=this,n=this.options,i=n.iOSEdgeSwipeThreshold,o=n.preventClickOnDrag,s=n.releaseOnScroll,l=n.inputKey,u=n.inputButton,c=n.threshold,f=n.thresholdAngle,d=this._activeEvent,h=d.onEventMove(t,l,u),v=d.getTouches(t,u);if(v===0||s&&h&&!h.srcEvent.cancelable){this._onPanend(t);return}if(!(!h||!this._enabled||v>1)){var g=aa(h.angle,f),p=De(de,this._direction,g),_=De(ve,this._direction,g);if(d.prevEvent&&hn){var m=h.center.x<0;if(m){this.release();return}else if(this._atRightEdge){clearTimeout(this._rightEdgeTimer);var b=h.deltaX<-i;b?this._atRightEdge=!1:this._rightEdgeTimer=window.setTimeout(function(){return e.release()},100)}}var y=this._getDistance([h.deltaX,h.deltaY],[p,_]),C=this._getOffset([h.offsetX,h.offsetY],[p,_]),N=C.some(function(z){return z!==0});N&&(h.srcEvent.cancelable!==!1&&h.srcEvent.preventDefault(),h.srcEvent.stopPropagation()),h.preventSystemEvent=N,N&&(this._isOverThreshold||y>=c)&&(this._dragged=o,this._isOverThreshold=!0,this._observer.change(this,h,Wn(this.axes,C))),d.prevEvent=h}},r._onPanend=function(t){var e=this.options.inputButton,n=this._activeEvent;if(n.onEventEnd(t),!(!this._enabled||n.getTouches(t,e)!==0)){this._detachWindowEvent(n),clearTimeout(this._rightEdgeTimer);var i=n.prevEvent,o=this._isOverThreshold?this._getOffset([Math.abs(i.velocityX)*(i.offsetX<0?-1:1),Math.abs(i.velocityY)*(i.offsetY<0?-1:1)],[De(de,this._direction),De(ve,this._direction)]):[0,0];n.onRelease(),this._observer.release(this,i,o)}},r._attachWindowEvent=function(t){var e=this;t==null||t.move.forEach(function(n){window.addEventListener(n,e._onPanmove,_n(n))}
27),t==null||t.end.forEach(function(n){window.addEventListener(n,e._onPanend,_n(n))})},r._detachWindowEvent=function(t){var e=this;t==null||t.move.forEach(function(n){window.removeEventListener(n,e._onPanmove)}),t==null||t.end.forEach(function(n){window.removeEventListener(n,e._onPanend)})},r._getOffset=function(t,e){var n=this.options.scale;return[e[0]?t[0]*n[0]:0,e[1]?t[1]*n[1]:0]},r._getDistance=function(t,e){return Math.sqrt(Number(e[0])*Math.pow(t[0],2)+Number(e[1])*Math.pow(t[1],2))},r._attachElementEvent=function(t){var e=this,n=ea(this.options.inputType),i=this.element;if(n){if(!i)throw new Error("Element to connect input does not exist.");this._observer=t,this.enable(),this._activeEvent=n,i.addEventListener("click",this._preventClickWhenDragged,!0),n.start.forEach(function(o){i.addEventListener(o,e._onPanstart)}),n.move.forEach(function(o){i.addEventListener(o,e._voidFunction)})}},r._detachElementEvent=function(){var t=this,e=this._activeEvent,n=this.element;n&&(n.removeEventListener("click",this._preventClickWhenDragged,!0),e==null||e.start.forEach(function(i){n.removeEventListener(i,t._onPanstart)}),e==null||e.move.forEach(function(i){n.removeEventListener(i,t._voidFunction)})),this.disable(),this._observer=null},a}(),gt=function(a,r){return gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},gt(a,r)};function pe(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");gt(a,r);function t(){this.constructor=a}a.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var ge=function(){return ge=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},ge.apply(this,arguments)};function sa(){for(var a=0,r=0,t=arguments.length;r<t;r++)a+=arguments[r].length;for(var e=Array(a),n=0,r=0;r<t;r++)for(var i=arguments[r],o=0,s=i.length;o<s;o++,n++)e[n]=i[o];return e}var Ct=typeof window<"u",la=Ct?window.navigator.userAgent:"",ua=Ct?"getComputedStyle"in window:!1,ca=/MSIE|Trident|Windows Phone|Edge/.test(la),fa=Ct?"addEventListener"in document:!1,_t="width",xe="height";function Fe(a,r){return a.getAttribute(r)||""}function Be(a){return[].slice.call(a)}function ha(a,r){return r===void 0&&(r="data-"),!!a.getAttribute(r+"width")}function Xn(a,r){return r===void 0&&(r="data-"),"loading"in a&&a.getAttribute("loading")==="lazy"||!!a.getAttribute(r+"lazy")}function da(a,r){return r===void 0&&(r="data-"),!!a.getAttribute(r+"skip")}function Gn(a,r,t){fa?a.addEventListener(r,t,!1):a.attachEvent?a.attachEvent("on"+r,t):a["on"+r]=t}function Yn(a,r,t){a.removeEventListener?a.removeEventListener(r,t,!1):a.detachEvent?a.detachEvent("on"+r,t):a["on"+r]=null}function va(a){return $n(a,"Width")}function ga(a){return $n(a,"Height")}function _a(a){return(ua?window.getComputedStyle(a):a.currentStyle)||{}}function $n(a,r){var t=a["client"+r]||a["offset"+r];return parseFloat(t||_a(a)[r.toLowerCase()])||0}function pa(a,r,t){var e=Be(a.querySelectorAll(sa(["["+t+"skip] ["+t+"width]"],r.map(function(n){return["["+t+"skip] "+n,n+"["+t+"skip]","["+t+"width] "+n].join(", ")})).join(", ")));return Be(a.querySelectorAll("["+t+"width], "+r.join(", "))).filter(function(n){return e.indexOf(n)===-1})}var ce=[];function Kn(a,r){!ce.length&&Gn(window,"resize",Zn),a.__PREFIX__=r,ce.push(a),qn(a)}function ma(a,r){var t=ce.indexOf(a);if(!(t<0)){var e=Fe(a,r+"fixed");delete a.__PREFIX__,a.style[e===xe?_t:xe]="",ce.splice(t,1),!ce.length&&Yn(window,"resize",Zn)}}function qn(a,r){r===void 0&&(r="data-");var t=a.__PREFIX__||r,e=parseInt(Fe(a,""+t+_t),10)||0,n=parseInt(Fe(a,""+t+xe),10)||0,i=Fe(a,t+"fixed");if(i===xe){var o=ga(a)||n;a.style[_t]=e/n*o+"px"}else{var o=va(a)||e;a.style[xe]=n/e*o+"px"}}function Zn(){ce.forEach(function(a){qn(a)})}var wt=function(a){pe(r,a);function r(e,n){n===void 0&&(n={});var i=a.call(this)||this;i.isReady=!1,i.isPreReady=!1,i.hasDataSize=!1,i.hasLoading=!1,i.isSkip=!1,i.onCheck=function(s){if(i.clear(),s&&s.type==="error"&&i.onError(i.element),!(i.hasLoading&&i.checkElement())){var l=!i.hasDataSize&&!i.hasLoading;i.onReady(l)}},i.options=ge({prefix:"data-"},n),i.element=e;var o=i.options.prefix;return i.hasDataSize=ha(e,o),i.isSkip=da(e,o),i.hasLoading=Xn(e,o),i}var t=r.prototype;return t.check=function(){return this.isSkip||!this.checkElement()?(this.onAlreadyReady(!0),!1):(this.hasDataSize&&Kn(this.element,this.options.prefix),(this.hasDataSize||this.hasLoading)&&this.onAlreadyPreReady(),!0)},t.addEvents=function(){var e=this,n=this.element;
vendor: 5,802 bytes, line 27
27this.constructor.EVENTS.forEach(function(i){Gn(n,i,e.onCheck)})},t.clear=function(){var e=this,n=this.element;this.constructor.EVENTS.forEach(function(i){Yn(n,i,e.onCheck)}),this.removeAutoSizer()},t.destroy=function(){this.clear(),this.off()},t.removeAutoSizer=function(){if(this.hasDataSize){var e=this.options.prefix;ma(this.element,e)}},t.onError=function(e){this.trigger("error",{element:this.element,target:e})},t.onPreReady=function(){this.isPreReady||(this.isPreReady=!0,this.trigger("preReady",{element:this.element,hasLoading:this.hasLoading,isSkip:this.isSkip}))},t.onReady=function(e){this.isReady||(e=!this.isPreReady&&e,e&&(this.isPreReady=!0),this.removeAutoSizer(),this.isReady=!0,this.trigger("ready",{element:this.element,withPreReady:e,hasLoading:this.hasLoading,isSkip:this.isSkip}))},t.onAlreadyError=function(e){var n=this;setTimeout(function(){n.onError(e)})},t.onAlreadyPreReady=function(){var e=this;setTimeout(function(){e.onPreReady()})},t.onAlreadyReady=function(e){var n=this;setTimeout(function(){n.onReady(e)})},r.EVENTS=[],r}(ne),ba=function(a){pe(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t.setHasLoading=function(e){this.hasLoading=e},t.check=function(){return this.isSkip?(this.onAlreadyReady(!0),!1):(this.hasDataSize?(Kn(this.element,this.options.prefix),this.onAlreadyPreReady()):this.trigger("requestChildren"),!0)},t.checkElement=function(){return!0},t.destroy=function(){this.clear(),this.trigger("requestDestroy"),this.off()},t.onAlreadyPreReady=function(){a.prototype.onAlreadyPreReady.call(this),this.trigger("reqeustReadyChildren")},r.EVENTS=[],r}(wt),Ea=function(a){pe(r,a);function r(e){e===void 0&&(e={});var n=a.call(this)||this;return n.readyCount=0,n.preReadyCount=0,n.totalCount=0,n.totalErrorCount=0,n.isPreReadyOver=!0,n.elementInfos=[],n.options=ge({loaders:{},prefix:"data-"},e),n}var t=r.prototype;return t.check=function(e){var n=this,i=this.options.prefix;this.clear(),this.elementInfos=Be(e).map(function(s,l){var u=n.getLoader(s,{prefix:i});return u.check(),u.on("error",function(c){n.onError(l,c.target)}).on("preReady",function(c){var f=n.elementInfos[l];f.hasLoading=c.hasLoading,f.isSkip=c.isSkip;var d=n.checkPreReady(l);n.onPreReadyElement(l),d&&n.onPreReady()}).on("ready",function(c){var f=c.withPreReady,d=c.hasLoading,h=c.isSkip,v=n.elementInfos[l];v.hasLoading=d,v.isSkip=h;var g=f&&n.checkPreReady(l),p=n.checkReady(l);f&&n.onPreReadyElement(l),n.onReadyElement(l),g&&n.onPreReady(),p&&n.onReady()}),{loader:u,element:s,hasLoading:!1,hasError:!1,isPreReady:!1,isReady:!1,isSkip:!1}});var o=this.elementInfos.length;return this.totalCount=o,o||setTimeout(function(){n.onPreReady(),n.onReady()}),this},t.getTotalCount=function(){return this.totalCount},t.isPreReady=function(){return this.elementInfos.every(function(e){return e.isPreReady})},t.isReady=function(){return this.elementInfos.every(function(e){return e.isReady})},t.hasError=function(){return this.totalErrorCount>0},t.clear=function(){this.isPreReadyOver=!1,this.totalCount=0,this.preReadyCount=0,this.readyCount=0,this.totalErrorCount=0,this.elementInfos.forEach(function(e){e.loader&&e.loader.destroy()}),this.elementInfos=[]},t.destroy=function(){this.clear(),this.off()},t.getLoader=function(e,n){var i=this,o=e.tagName.toLowerCase(),s=this.options.loaders,l=n.prefix,u=Object.keys(s);if(s[o])return new s[o](e,n);var c=new ba(e,n),f=Be(e.querySelectorAll(u.join(", ")));c.setHasLoading(f.some(function(v){return Xn(v,l)}));var d=!1,h=this.clone().on("error",function(v){c.onError(v.target)}).on("ready",function(){c.onReady(d)});return c.on("requestChildren",function(){var v=pa(e,u,i.options.prefix);h.check(v).on("preReady",function(g){d=g.isReady,d||c.onPreReady()})}).on("reqeustReadyChildren",function(){h.check(f)}).on("requestDestroy",function(){h.destroy()}),c},t.clone=function(){return new r(ge({},this.options))},t.checkPreReady=function(e){return this.elementInfos[e].isPreReady=!0,++this.preReadyCount,!(this.preReadyCount<this.totalCount)},t.checkReady=function(e){return this.elementInfos[e].isReady=!0,++this.readyCount,!(this.readyCount<this.totalCount)},t.onError=function(e,n){var i=this.elementInfos[e];i.hasError=!0,this.trigger(new T("error",{element:i.element,index:e,target:n,errorCount:this.getErrorCount(),totalErrorCount:++this.totalErrorCount}))},t.onPreReadyElement=function(e){var n=this.elementInfos[e];this.trigger(new T("preReadyElement",{element:n.element,index:e,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:n.hasLoading,isSkip:n.isSkip}))},t.onPreReady=function(){this.isPreReadyOver=!0,this.trigger(new T("preReady",{readyCount:this.readyCount,totalCount:this.totalCount,isReady:this.isReady(),hasLoading:this.hasLoading()}))},t.onReadyElement=function(e){var n=this.elementInfos[e];this.trigger(new T("readyElement",{index:e,element:n.element,hasError:n.hasError,errorCount:this.getErrorCount(),totalErrorCount:this.totalErrorCount,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:n.hasLoading,isPreReadyOver:this.isPreReadyOver,isSkip:n.isSkip}))},t.onReady=function(){this.trigger(new T("ready",{errorCount:this.getErrorCount(),totalErrorCount:this.totalErrorCount,totalCount:this.totalCount}))},t.getErrorCount=function(){return this.elementInfos.filter(function(e){return e.hasError}).length},t.hasLoading=function(){return this.elementInfos.some(function(e){return e.hasLoading})},r}(ne),Pa=function(a){pe(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t.checkElement=function(){var e=this.element,n=e.getAttribute("src");
27if(e.complete){if(n)return e.naturalWidth||this.onAlreadyError(e),!1;this.onAlreadyPreReady()}return this.addEvents(),ca&&e.setAttribute("src",n),!0},r.EVENTS=["load","error"],r}(wt),ya=function(a){pe(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t.checkElement=function(){var e=this.element;return e.readyState>=1?!1:e.error?(this.onAlreadyError(e),!1):(this.addEvents(),!0)},r.EVENTS=["loadedmetadata","error"],r}(wt),Oa=function(a){pe(r,a);function r(t){return t===void 0&&(t={}),a.call(this,ge({loaders:{img:Pa,video:ya}},t))||this}return r}(Ea),pt=function(a,r){return pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},pt(a,r)};function H(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");pt(a,r);function t(){this.constructor=a}a.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var U=function(){return U=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},U.apply(this,arguments)};function fe(a,r,t,e){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(e.next(c))}catch(f){o(f)}}function l(c){try{u(e.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):n(c.value).then(s,l)}u((e=e.apply(a,[])).next())})}function he(a,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(e)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(t=0)),t;)try{if(e=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){t.label=u[1];break}if(u[0]===6&&t.label<i[1]){t.label=i[1],i=u;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(u);break}i[2]&&t.ops.pop(),t.trys.pop();continue}u=r.call(a,t)}catch(c){u=[6,c],n=0}finally{e=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Ke(a){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&a[r],e=0;if(t)return t.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&e>=a.length&&(a=void 0),{value:a&&a[e++],done:!a}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function At(a,r){var t=typeof Symbol=="function"&&a[Symbol.iterator];if(!t)return a;var e=t.call(a),n,i=[],o;try{for(;(r===void 0||r-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=e.return)&&t.call(e)}finally{if(o)throw o.error}}return i}function M(){for(var a=[],r=0;r<arguments.length;r++)a=a.concat(At(arguments[r]));return a}var I={WRONG_TYPE:0,ELEMENT_NOT_FOUND:1,VAL_MUST_NOT_NULL:2,NOT_ATTACHED_TO_FLICKING:3,WRONG_OPTION:4,INDEX_OUT_OF_RANGE:5,POSITION_NOT_REACHABLE:6,TRANSFORM_NOT_SUPPORTED:7,STOP_CALLED_BY_USER:8,ANIMATION_INTERRUPTED:9,ANIMATION_ALREADY_PLAYING:10,NOT_ALLOWED_IN_FRAMEWORK:11,NOT_INITIALIZED:12,NO_ACTIVE:13,NOT_ALLOWED_IN_VIRTUAL:14},w={WRONG_TYPE:function(a,r){return a+"("+typeof a+") is not a "+r.map(function(t){return'"'+t+'"'}).join(" or ")+"."},ELEMENT_NOT_FOUND:function(a){return'Element with selector "'+a+'" not found.'},VAL_MUST_NOT_NULL:function(a,r){return r+" should be provided. Given: "+a},NOT_ATTACHED_TO_FLICKING:'This module is not attached to the Flicking instance. "init()" should be called first.',WRONG_OPTION:function(a,r){return'Option "'+a+'" is not in correct format, given: '+r},INDEX_OUT_OF_RANGE:function(a,r,t){return'Index "'+a+'" is out of range: should be between '+r+" and "+t+"."},POSITION_NOT_REACHABLE:function(a){return'Position "'+a+'" is not reachable.'},TRANSFORM_NOT_SUPPORTED:"Browser does not support CSS transform.",STOP_CALLED_BY_USER:"Event stop() is called by user.",ANIMATION_INTERRUPTED:"Animation is interrupted by user input.",ANIMATION_ALREADY_PLAYING:"Animation is already playing.",NOT_ALLOWED_IN_FRAMEWORK:"This behavior is not allowed in the frameworks like React, Vue, or Angular.",NOT_INITIALIZED:"Flicking is not initialized yet, call init() first.",NO_ACTIVE:"There's no active panel that Flicking has selected. This may be due to the absence of any panels.",NOT_ALLOWED_IN_VIRTUAL:"This behavior is not allowed when the virtual option is enabled"},O={READY:"ready",BEFORE_RESIZE:"beforeResize",AFTER_RESIZE:"afterResize",HOLD_START:"holdStart",HOLD_END:"holdEnd",MOVE_START:"moveStart",MOVE:"move",MOVE_END:"moveEnd",WILL_CHANGE:"willChange",CHANGED:"changed",WILL_RESTORE:"willRestore",RESTORED:"restored",SELECT:"select",NEED_PANEL:"needPanel",VISIBLE_CHANGE:"visibleChange",REACH_EDGE:"reachEdge",PANEL_CHANGE:"panelChange"},K={PREV:"prev",CENTER:"center",NEXT:"next"},x={PREV:"PREV",NEXT:"NEXT",NONE:null},se={SNAP:"snap",FREE_SCROLL:"freeScroll",STRICT:"strict"},xa={VERTICAL:"vertical",HIDDEN:"flicking-hidden",DEFAULT_VIRTUAL:"flicking-panel"},Jn={LINEAR:"linear",BOUND:"bound"},ue={LTR:"ltr",RTL:"rtl"},Ta=function(a,r){var t=null;if(te(a)){var e=document,n=e.querySelector(a);if(!n)throw new R(w.ELEMENT_NOT_FOUND(a),I.ELEMENT_NOT_FOUND);t=n}else a&&a.nodeType===Node.ELEMENT_NODE&&(t=a);if(!t)throw new R(w.WRONG_TYPE(a,["HTMLElement","string"]),I.WRONG_TYPE);return t},Ra=function(a,r){if(a==null)throw new R(w.VAL_MUST_NOT_NULL(a,r),I.VAL_MUST_NOT_NULL)},Q=function(a,r,t){return Math.max(Math.min(a,t),r)}
27,P=function(a){if(!a)throw new R(w.NOT_ATTACHED_TO_FLICKING,I.NOT_ATTACHED_TO_FLICKING);return a},St=function(a){return[].slice.call(a)},kt=function(a,r){var t;if(te(a))switch(a){case K.PREV:t=0;break;case K.CENTER:t=.5*r;break;case K.NEXT:t=r;break;default:if(t=mt(a,r),t==null)throw new R(w.WRONG_OPTION("align",a),I.WRONG_OPTION)}else t=a;return t},Ia=function(a,r){var t;if(Array.isArray(a))t=a.map(function(n){return mt(n,r)});else{var e=mt(a,r);t=[e,e]}return t.map(function(n){if(n==null)throw new R(w.WRONG_OPTION("bounce",a),I.WRONG_OPTION);return n})},mt=function(a,r){var t=Qn(a);return t==null?null:t.percentage*r+t.absolute},Qn=function(a){var r=/(?:(\+|\-)\s*)?(\d+(?:\.\d+)?(%|px)?)/g;if(typeof a=="number")return{percentage:0,absolute:a};for(var t={percentage:0,absolute:0},e=0,n=r.exec(a);n!=null;){var i=n[1],o=n[2],s=n[3],l=parseFloat(o);if(e<=0&&(i=i||"+"),!i)return null;var u=i==="+"?1:-1;s==="%"?t.percentage+=u*(l/100):t.absolute+=u*l,++e,n=r.exec(a)}return e===0?null:t},Ve=function(a){return typeof a=="object"?a.panel:a},ee=function(a,r){return a===r?x.NONE:a<r?x.NEXT:x.PREV},pn=function(a){Array.isArray(a)||(a=[a]);var r=[];return a.forEach(function(t){if(te(t)){var e=document.createElement("div");for(e.innerHTML=t,r.push.apply(r,M(St(e.children)));e.firstChild;)e.removeChild(e.firstChild)}else if(t&&t.nodeType===Node.ELEMENT_NODE)r.push(t);else throw new R(w.WRONG_TYPE(t,["HTMLElement","string"]),I.WRONG_TYPE)}),r},He=function(a,r){return a<0?Q(a+r,0,r):Q(a,0,r)},Ue=function(a,r){var t,e;try{for(var n=Ke(a),i=n.next();!i.done;i=n.next()){var o=i.value;if(o===r)return!0}}catch(s){t={error:s}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return!1},te=function(a){return typeof a=="string"},er=function(a,r,t){var e=t-r;if(a<r){var n=(r-a)%e;a=t-n}else if(a>t){var n=(a-t)%e;a=r+n}return a},Ca=function(a,r){var t,e;try{for(var n=Ke(a),i=n.next();!i.done;i=n.next()){var o=i.value;if(r(o))return o}}catch(s){t={error:s}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return null},wa=function(a,r){for(var t=0;t<a.length;t++)if(r(a[t]))return t;return-1},We=function(a,r,t){return(a-r)/(t-r)},Xe=function(a){return window.getComputedStyle(a)||a.currentStyle},tr=function(a,r){var t=r.width,e=r.height;t!=null&&(te(t)?a.style.width=t:a.style.width=t+"px"),e!=null&&(te(e)?a.style.height=e:a.style.height=e+"px")},nt=function(a,r,t){return a>=r&&a<=t},nr=function(a,r){return a>=r?a%r:a<0?He((a+1)%r-1,r):a},Ie=function(a){for(var r=new Array(a),t=0;t<a;t++)r[t]=t;return r},Te=function(a){var r=a.el,t=a.horizontal,e=a.useFractionalSize,n=a.useOffset,i=a.style,o=0;if(e){var s=parseFloat(t?i.width:i.height)||0,l=i.boxSizing==="border-box",u=t?parseFloat(i.borderLeftWidth||"0")+parseFloat(i.borderRightWidth||"0"):parseFloat(i.borderTopWidth||"0")+parseFloat(i.borderBottomWidth||"0");if(l)o=n?s:s-u;else{var c=t?parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"):parseFloat(i.paddingTop||"0")+parseFloat(i.paddingBottom||"0");o=n?s+c+u:s+c}}else{var f=t?"Width":"Height";o=n?r["offset"+f]:r["client"+f]}return Math.max(o,0)},Aa=Object.setPrototypeOf||function(a,r){return a.__proto__=r,a},R=function(a){H(r,a);function r(t,e){var n=a.call(this,t)||this;return Aa(n,r.prototype),n.name="FlickingError",n.code=e,n}return r}(Error),Sa=function(){function a(t,e){this._flicking=t,this._el=e,this._width=0,this._height=0,this._padding={left:0,right:0,top:0,bottom:0},this._isBorderBoxSizing=!1}var r=a.prototype;return Object.defineProperty(r,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(r,"width",{get:function(){return this._width-this._padding.left-this._padding.right},enumerable:!1,configurable:!0}),Object.defineProperty(r,"height",{get:function(){return this._height-this._padding.top-this._padding.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(r,"padding",{get:function(){return this._padding},enumerable:!1,configurable:!0}),r.setSize=function(t){var e=t.width,n=t.height,i=this._el,o=this._padding,s=this._isBorderBoxSizing;if(e!=null)if(te(e))i.style.width=e;else{var l=s?e+o.left+o.right:e;i.style.width=l+"px"}if(n!=null)if(te(n))i.style.height=n;else{var u=s?n+o.top+o.bottom:n;i.style.height=u+"px"}this.resize()},r.resize=function(){var t=this._el,e=Xe(t),n=this._flicking.useFractionalSize;this._width=Te({el:t,horizontal:!0,useFractionalSize:n,useOffset:!1,style:e}),this._height=Te({el:t,horizontal:!1,useFractionalSize:n,useOffset:!1,style:e}),this._padding={left:e.paddingLeft?parseFloat(e.paddingLeft):0,right:e.paddingRight?parseFloat(e.paddingRight):0,top:e.paddingTop?parseFloat(e.paddingTop):0,bottom:e.paddingBottom?parseFloat(e.paddingBottom):0},this._isBorderBoxSizing=e.boxSizing==="border-box"},a}
27(),ka=function(){function a(t){var e=this;this._onResize=function(){var n=e._flicking,i=n.resizeDebounce,o=n.maxResizeDebounce;i<=0?n.resize():(e._maxResizeDebounceTimer<=0&&o>0&&o>=i&&(e._maxResizeDebounceTimer=window.setTimeout(e._doScheduledResize,o)),e._resizeTimer>0&&(clearTimeout(e._resizeTimer),e._resizeTimer=0),e._resizeTimer=window.setTimeout(e._doScheduledResize,i))},this._doScheduledResize=function(){clearTimeout(e._resizeTimer),clearTimeout(e._maxResizeDebounceTimer),e._maxResizeDebounceTimer=-1,e._resizeTimer=-1,e._flicking.resize()},this._skipFirstResize=function(){var n=!0;return function(){if(n){n=!1;return}e._onResize()}}(),this._flicking=t,this._enabled=!1,this._resizeObserver=null,this._resizeTimer=-1,this._maxResizeDebounceTimer=-1}var r=a.prototype;return Object.defineProperty(r,"enabled",{get:function(){return this._enabled},enumerable:!1,configurable:!0}),r.enable=function(){var t=this._flicking,e=t.viewport;if(this._enabled&&this.disable(),t.useResizeObserver&&window.ResizeObserver){var n=e.width!==0||e.height!==0,i=n?new ResizeObserver(this._skipFirstResize):new ResizeObserver(this._onResize);i.observe(t.viewport.element),this._resizeObserver=i}else window.addEventListener("resize",this._onResize);return this._enabled=!0,this},r.disable=function(){if(!this._enabled)return this;var t=this._resizeObserver;return t?(t.disconnect(),this._resizeObserver=null):window.removeEventListener("resize",this._onResize),this._enabled=!1,this},a}(),Na=function(){function a(t){this._element=t,this._rendered=!0}var r=a.prototype;return Object.defineProperty(r,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(r,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),r.show=function(t){var e=this.element,n=t.camera.element;e.parentElement!==n&&(n.appendChild(e),this._rendered=!0)},r.hide=function(t){var e=this.element,n=t.camera.element;e.parentElement===n&&(n.removeChild(e),this._rendered=!1)},a}(),mn=function(){function a(t){this._flicking=t}var r=a.prototype;return Object.defineProperty(r,"element",{get:function(){return this._virtualElement.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(r,"rendered",{get:function(){return this._virtualElement.visible},enumerable:!1,configurable:!0}),Object.defineProperty(r,"_virtualElement",{get:function(){var t=this._flicking,e=this._panel.elementIndex,n=t.virtual.elements;return n[e]},enumerable:!1,configurable:!0}),r.init=function(t){this._panel=t},r.show=function(){},r.hide=function(){},a}(),Da=function(){function a(t,e){var n,i,o,s;this._flicking=t,this._renderPanel=(n=e==null?void 0:e.renderPanel)!==null&&n!==void 0?n:function(){return""},this._initialPanelCount=(i=e==null?void 0:e.initialPanelCount)!==null&&i!==void 0?i:-1,this._cache=(o=e==null?void 0:e.cache)!==null&&o!==void 0?o:!1,this._panelClass=(s=e==null?void 0:e.panelClass)!==null&&s!==void 0?s:xa.DEFAULT_VIRTUAL,this._elements=[]}var r=a.prototype;return Object.defineProperty(r,"elements",{get:function(){return this._elements},enumerable:!1,configurable:!0}),Object.defineProperty(r,"renderPanel",{get:function(){return this._renderPanel},set:function(t){this._renderPanel=t,this._flicking.renderer.panels.forEach(function(e){return e.uncacheRenderResult()})},enumerable:!1,configurable:!0}),Object.defineProperty(r,"initialPanelCount",{get:function(){return this._initialPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(r,"cache",{get:function(){return this._cache},set:function(t){this._cache=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"panelClass",{get:function(){return this._panelClass},set:function(t){this._panelClass=t},enumerable:!1,configurable:!0}),r.init=function(){var t=this._flicking;if(t.virtualEnabled){!t.externalRenderer&&!t.renderExternal&&this._initVirtualElements();var e=t.camera.children;this._elements=e.map(function(n){return{nativeElement:n,visible:!0}})}},r.show=function(t){var e=this._elements[t],n=e.nativeElement;e.visible=!0,n.style.display&&(n.style.display="")},r.hide=function(t){var e=this._elements[t],n=e.nativeElement;e.visible=!1,n.style.display="none"},r.append=function(t){t===void 0&&(t=1);var e=this._flicking;return this.insert(e.panels.length,t)},r.prepend=function(t){return t===void 0&&(t=1),this.insert(0,t)},r.insert=function(t,e){if(e===void 0&&(e=1),e<=0)return[];var n=this._flicking;return n.renderer.batchInsert({index:t,elements:Ie(e),hasDOMInElements:!1})},r.remove=function(t,e){if(e<=0)return[];var n=this._flicking;return n.renderer.batchRemove({index:t,deleteCount:e,hasDOMInElements:!1})}
27,r._initVirtualElements=function(){var t=this,e=this._flicking,n=e.camera.element,i=e.panelsPerView,o=document.createDocumentFragment(),s=Ie(i+1).map(function(l){var u=document.createElement("div");return u.className=t._panelClass,u.dataset.elementIndex=l.toString(),u});s.forEach(function(l){o.appendChild(l)}),n.appendChild(o)},a}(),B={HOLD:"hold",CHANGE:"change",RELEASE:"release",ANIMATION_END:"animationEnd",FINISH:"finish"},S="flick",A;(function(a){a[a.IDLE=0]="IDLE",a[a.HOLDING=1]="HOLDING",a[a.DRAGGING=2]="DRAGGING",a[a.ANIMATING=3]="ANIMATING",a[a.DISABLED=4]="DISABLED"})(A||(A={}));var Ae=function(){function a(){this._delta=0,this._targetPanel=null}var r=a.prototype;return Object.defineProperty(r,"delta",{get:function(){return this._delta},enumerable:!1,configurable:!0}),Object.defineProperty(r,"targetPanel",{get:function(){return this._targetPanel},set:function(t){this._targetPanel=t},enumerable:!1,configurable:!0}),r.onEnter=function(t){this._delta=t._delta,this._targetPanel=t._targetPanel},r.onHold=function(t){},r.onChange=function(t){},r.onRelease=function(t){},r.onAnimationEnd=function(t){},r.onFinish=function(t){},r._moveToChangedPosition=function(t){var e=t.flicking,n=t.axesEvent,i=t.transitTo,o=n.delta[S];if(o){this._delta+=o;var s=e.camera,l=s.position,u=n.pos[S],c=e.circularEnabled?er(u,s.range.min,s.range.max):u;s.lookAt(c);var f=new T(O.MOVE,{isTrusted:n.isTrusted,holding:this.holding,direction:ee(0,n.delta[S]),axesEvent:n});e.trigger(f),f.isCanceled()&&(s.lookAt(l),i(A.DISABLED))}},a}(),bn=function(a){H(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.holding=!1,e.animating=!1,e}var t=r.prototype;return t.onEnter=function(){this._delta=0,this._targetPanel=null},t.onHold=function(e){var n=e.flicking,i=e.axesEvent,o=e.transitTo;if(n.renderer.panelCount<=0){o(A.DISABLED);return}var s=new T(O.HOLD_START,{axesEvent:i});n.trigger(s),s.isCanceled()?o(A.DISABLED):o(A.HOLDING)},t.onChange=function(e){var n=e.flicking,i=e.axesEvent,o=e.transitTo,s=n.control.controller,l=s.animatingContext,u=new T(O.MOVE_START,{isTrusted:i.isTrusted,holding:this.holding,direction:ee(l.start,l.end),axesEvent:i});n.trigger(u),u.isCanceled()?o(A.DISABLED):o(A.ANIMATING).onChange(e)},r}(Ae),La=function(a){H(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.holding=!0,e.animating=!1,e._releaseEvent=null,e}var t=r.prototype;return t.onChange=function(e){var n=e.flicking,i=e.axesEvent,o=e.transitTo,s=i.inputEvent,l=n.horizontal?s.offsetX:s.offsetY,u=new T(O.MOVE_START,{isTrusted:i.isTrusted,holding:this.holding,direction:ee(0,-l),axesEvent:i});n.trigger(u),u.isCanceled()?o(A.DISABLED):o(A.DRAGGING).onChange(e)},t.onRelease=function(e){var n=e.flicking,i=e.axesEvent,o=e.transitTo;if(n.trigger(new T(O.HOLD_END,{axesEvent:i})),i.delta.flick!==0){i.setTo({flick:n.camera.position},0),o(A.IDLE);return}this._releaseEvent=i},t.onFinish=function(e){var n,i,o=e.flicking,s=e.transitTo;if(s(A.IDLE),!!this._releaseEvent){var l=this._releaseEvent,u=l.inputEvent.srcEvent,c;if(u.type==="touchend"){var f=u,d=f.changedTouches[0];c=document.elementFromPoint(d.clientX,d.clientY)}else c=u.target;var h=o.renderer.panels,v=null;try{for(var g=Ke(h),p=g.next();!p.done;p=g.next()){var _=p.value;if(_.contains(c)){v=_;break}}}catch(y){n={error:y}}finally{try{p&&!p.done&&(i=g.return)&&i.call(g)}finally{if(n)throw n.error}}if(v){var m=o.camera.position,b=v.position;o.trigger(new T(O.SELECT,{index:v.index,panel:v,direction:ee(m,b)}))}}},r}(Ae),Ma=function(a){H(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.holding=!0,e.animating=!0,e}var t=r.prototype;return t.onChange=function(e){this._moveToChangedPosition(e)},t.onRelease=function(e){var n,i=e.flicking,o=e.axesEvent,s=e.transitTo;if(i.trigger(new T(O.HOLD_END,{axesEvent:o})),i.renderer.panelCount<=0){s(A.IDLE);return}s(A.ANIMATING);var l=i.control,u=o.destPos[S],c=Math.max(o.duration,i.duration);try{l.moveToPosition(u,c,o)}catch{s(A.IDLE),o.setTo((n={},n[S]=i.camera.position,n),0)}},r}(Ae),za=function(a){H(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.holding=!1,e.animating=!0,e}var t=r.prototype;return t.onHold=function(e){var n=e.flicking,i=e.axesEvent,o=e.transitTo,s=this._targetPanel,l=n.control;
27this._delta=0,n.control.updateInput(),n.changeOnHold&&s&&l.setActive(s,l.activePanel,i.isTrusted);var u=new T(O.HOLD_START,{axesEvent:i});n.trigger(u),u.isCanceled()?o(A.DISABLED):o(A.DRAGGING)},t.onChange=function(e){this._moveToChangedPosition(e)},t.onFinish=function(e){var n=e.flicking,i=e.axesEvent,o=e.transitTo,s=n.control,l=s.controller,u=l.animatingContext;o(A.IDLE),n.trigger(new T(O.MOVE_END,{isTrusted:i.isTrusted,direction:ee(u.start,u.end),axesEvent:i}));var c=this._targetPanel;c&&s.setActive(c,s.activePanel,i.isTrusted)},r}(Ae),Fa=function(a){H(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.holding=!1,e.animating=!0,e}var t=r.prototype;return t.onAnimationEnd=function(e){var n=e.transitTo;n(A.IDLE)},t.onChange=function(e){var n=e.axesEvent,i=e.transitTo;n.stop(),i(A.IDLE)},t.onRelease=function(e){var n=e.axesEvent,i=e.transitTo;n.delta.flick===0&&i(A.IDLE)},r}(Ae),ja=function(){function a(){var t=this;this.transitTo=function(e){var n;switch(e){case A.IDLE:n=new bn;break;case A.HOLDING:n=new La;break;case A.DRAGGING:n=new Ma;break;case A.ANIMATING:n=new za;break;case A.DISABLED:n=new Fa;break}return n.onEnter(t._state),t._state=n,t._state},this._state=new bn}var r=a.prototype;return Object.defineProperty(r,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),r.fire=function(t,e){var n=this._state,i=U(U({},e),{transitTo:this.transitTo});switch(t){case B.HOLD:n.onHold(i);break;case B.CHANGE:n.onChange(i);break;case B.RELEASE:n.onRelease(i);break;case B.ANIMATION_END:n.onAnimationEnd(i);break;case B.FINISH:n.onFinish(i);break}},a}(),Ba=function(){function a(){var t=this;this._onAxesHold=function(){t._dragged=!1},this._onAxesChange=function(){var e;t._dragged=!!(!((e=t._panInput)===null||e===void 0)&&e.isEnabled())},this._preventClickWhenDragged=function(e){t._dragged&&(e.preventDefault(),e.stopPropagation()),t._dragged=!1},this._resetInternalValues(),this._stateMachine=new ja}var r=a.prototype;return Object.defineProperty(r,"axes",{get:function(){return this._axes},enumerable:!1,configurable:!0}),Object.defineProperty(r,"panInput",{get:function(){return this._panInput},enumerable:!1,configurable:!0}),Object.defineProperty(r,"stateMachine",{get:function(){return this._stateMachine},enumerable:!1,configurable:!0}),Object.defineProperty(r,"state",{get:function(){return this._stateMachine.state},enumerable:!1,configurable:!0}),Object.defineProperty(r,"animatingContext",{get:function(){return this._animatingContext},enumerable:!1,configurable:!0}),Object.defineProperty(r,"controlParams",{get:function(){var t=this._axes;if(!t)return{range:{min:0,max:0},position:0,circular:!1};var e=t.axis[S];return{range:{min:e.range[0],max:e.range[1]},circular:e.circular[0],position:this.position}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"enabled",{get:function(){var t,e;return(e=(t=this._panInput)===null||t===void 0?void 0:t.isEnabled())!==null&&e!==void 0?e:!1},enumerable:!1,configurable:!0}),Object.defineProperty(r,"position",{get:function(){var t,e;return(e=(t=this._axes)===null||t===void 0?void 0:t.get([S])[S])!==null&&e!==void 0?e:0},enumerable:!1,configurable:!0}),Object.defineProperty(r,"range",{get:function(){var t,e;return(e=(t=this._axes)===null||t===void 0?void 0:t.axis[S].range)!==null&&e!==void 0?e:[0,0]},enumerable:!1,configurable:!0}),Object.defineProperty(r,"bounce",{get:function(){var t;return(t=this._axes)===null||t===void 0?void 0:t.axis[S].bounce},enumerable:!1,configurable:!0}),r.init=function(t){var e,n=this;this._flicking=t,this._axes=new ia((e={},e[S]={range:[0,0],circular:!1,bounce:[0,0]},e),{deceleration:t.deceleration,interruptable:t.interruptable,nested:t.nested,easing:t.easing}),this._panInput=new oa(t.viewport.element,{inputType:t.inputType,threshold:1,iOSEdgeSwipeThreshold:t.iOSEdgeSwipeThreshold,preventDefaultOnDrag:t.preventDefaultOnDrag,scale:t.horizontal?[t.camera.panelOrder===ue.RTL?1:-1,0]:[0,-1],releaseOnScroll:!0});var i=this._axes;i.connect(t.horizontal?[S,""]:["",S],this._panInput);var o=function(l){var u=B[l];i.on(u,function(c){n._stateMachine.fire(u,{flicking:t,axesEvent:c})})};for(var s in B)o(s);return this},r.destroy=function(){var t;this._axes&&(this.removePreventClickHandler(),this._axes.destroy()),(t=this._panInput)===null||t===void 0||t.destroy(),this._resetInternalValues()},r.enable=function(){var t;return(t=this._panInput)===null||t===void 0||t.enable(),this},r.disable=function(){var t;return(t=this._panInput)===null||t===void 0||t.disable(),this},r.release=function(){var t;return(t=this._panInput)===null||t===void 0||t.release(),this},r.updateAnimation=function(t,e){var n,i;return this._animatingContext=U(U({},this._animatingContext),{end:t}),(i=this._axes)===null||i===void 0||i.updateAnimation({destPos:(n={},n[S]=t,n),duration:e}),this},r.stopAnimation=function(){var t;return(t=this._axes)===null||t===void 0||t.stopAnimation(),this},r.update=function(t){var e,n=P(this._flicking),i=n.camera,o=this._axes,s=o.axis[S];return s.circular=[t.circular,t.circular],s.range=[t.range.min,t.range.max],s.bounce=Ia(n.bounce,i.size),o.axisManager.set((e={},e[S]=t.position,e)),this},r.addPreventClickHandler=function(){var t=P(this._flicking),e=this._axes,n=t.camera.element;return e.on(B.HOLD,this._onAxesHold),e.on(B.CHANGE,this._onAxesChange),n.addEventListener("click",this._preventClickWhenDragged,!0),this},r.removePreventClickHandler=function(){var t=P(this._flicking),e=this._axes,n=t.camera.element;return e.off(B.HOLD,this._onAxesHold),e.off(B.CHANGE,this._onAxesChange),n.removeEventListener("click",this._preventClickWhenDragged,!0),this},r.animateTo=function(t,e,n){var i=this,o,s=this._axes,l=this._stateMachine.state;if(!s)return Promise.reject(new R(w.NOT_ATTACHED_TO_FLICKING,I.NOT_ATTACHED_TO_FLICKING));var u=s.get([S])[S];if(u===t){var c=P(this._flicking);return c.camera.lookAt(t),l.targetPanel&&c.control.setActive(l.targetPanel,c.control.activePanel,(o=n==null?void 0:n.isTrusted)!==null&&o!==void 0?o:!1),Promise.resolve()}this._animatingContext={start:u,end:t,offset:0};var f=function(){var d,h,v=function(){i._animatingContext={start:0,end:0,offset:0}};s.once(B.FINISH,v),n?n.setTo((d={},d[S]=t,d),e):s.setTo((h={},h[S]=t,h),e)};return new Promise(function(d,h){var v=function(){s.off(B.HOLD,g),d()},g=function(){s.off(B.FINISH,v),h(new R(w.ANIMATION_INTERRUPTED,I.ANIMATION_INTERRUPTED))};s.once(B.FINISH,v),s.once(B.HOLD,g),f()})},r.updateDirection=function(){var t=P(this._flicking),e=this._axes,n=this._panInput;e.disconnect(n),e.connect(t.horizontal?[S,""]:["",S],n),n.options.scale=t.horizontal?[t.camera.panelOrder===ue.RTL?1:-1,0]:[0,-1
27]},r._resetInternalValues=function(){this._flicking=null,this._axes=null,this._panInput=null,this._animatingContext={start:0,end:0,offset:0},this._dragged=!1},a}(),Nt=function(){function a(){this._flicking=null,this._controller=new Ba,this._activePanel=null}var r=a.prototype;return Object.defineProperty(r,"controller",{get:function(){return this._controller},enumerable:!1,configurable:!0}),Object.defineProperty(r,"activeIndex",{get:function(){var t,e;return(e=(t=this._activePanel)===null||t===void 0?void 0:t.index)!==null&&e!==void 0?e:-1},enumerable:!1,configurable:!0}),Object.defineProperty(r,"activePanel",{get:function(){return this._activePanel},enumerable:!1,configurable:!0}),Object.defineProperty(r,"animating",{get:function(){return this._controller.state.animating},enumerable:!1,configurable:!0}),Object.defineProperty(r,"holding",{get:function(){return this._controller.state.holding},enumerable:!1,configurable:!0}),r.init=function(t){return this._flicking=t,this._controller.init(t),this},r.destroy=function(){this._controller.destroy(),this._flicking=null,this._activePanel=null},r.enable=function(){return this._controller.enable(),this},r.disable=function(){return this._controller.disable(),this},r.release=function(){return this._controller.release(),this},r.updateAnimation=function(t,e,n){var i=this._controller.state,o=this._getPosition(t,n??x.NONE);return i.targetPanel=t,this._controller.updateAnimation(o,e),this},r.stopAnimation=function(){var t=this._controller.state;return t.targetPanel=null,this._controller.stopAnimation(),this},r.updatePosition=function(t){var e=P(this._flicking),n=e.camera,i=this._activePanel;i&&n.lookAt(n.clampToReachablePosition(i.position))},r.updateInput=function(){var t=P(this._flicking),e=t.camera;return this._controller.update(e.controlParams),this},r.resetActive=function(){return this._activePanel=null,this},r.moveToPanel=function(t,e){var n=e.duration,i=e.direction,o=i===void 0?x.NONE:i,s=e.axesEvent;return fe(this,void 0,void 0,function(){var l;return he(this,function(u){return l=this._getPosition(t,o),this._triggerIndexChangeEvent(t,t.position,s,o),[2,this._animateToPosition({position:l,duration:n,newActivePanel:t,axesEvent:s})]})})},r.setActive=function(t,e,n){var i,o=P(this._flicking);this._activePanel=t,this._nextPanel=null,o.camera.updateAdaptiveHeight(),t!==e?o.trigger(new T(O.CHANGED,{index:t.index,panel:t,prevIndex:(i=e==null?void 0:e.index)!==null&&i!==void 0?i:-1,prevPanel:e,isTrusted:n,direction:e?ee(e.position,t.position):x.NONE})):o.trigger(new T(O.RESTORED,{isTrusted:n}))},r.copy=function(t){this._flicking=t._flicking,this._activePanel=t._activePanel,this._controller=t._controller},r._triggerIndexChangeEvent=function(t,e,n,i){var o,s=P(this._flicking),l=t!==this._activePanel?O.WILL_CHANGE:O.WILL_RESTORE,u=s.camera,c=this._activePanel,f=new T(l,{index:t.index,panel:t,isTrusted:(n==null?void 0:n.isTrusted)||!1,direction:i??ee((o=c==null?void 0:c.position)!==null&&o!==void 0?o:u.position,e)});if(this._nextPanel=t,s.trigger(f),f.isCanceled())throw new R(w.STOP_CALLED_BY_USER,I.STOP_CALLED_BY_USER)},r._animateToPosition=function(t){var e=t.position,n=t.duration,i=t.newActivePanel,o=t.axesEvent;return fe(this,void 0,void 0,function(){var s,l,u,c=this;return he(this,function(f){return s=P(this._flicking),l=function(){return c._controller.animateTo(e,n,o)},u=this._controller.state,u.targetPanel=i,n<=0?[2,l()]:[2,l().then(function(){return fe(c,void 0,void 0,function(){return he(this,function(d){switch(d.label){case 0:return[4,s.renderer.render()];case 1:return d.sent(),[2]}})})}).catch(function(d){if(!(o&&d instanceof R&&d.code===I.ANIMATION_INTERRUPTED))throw d})]})})},r._getPosition=function(t,e){e===void 0&&(e=x.NONE);var n=P(this._flicking),i=n.camera,o=t.position,s=i.findNearestAnchor(o);if(t.removed||!s)throw new R(w.POSITION_NOT_REACHABLE(t.position),I.POSITION_NOT_REACHABLE);if(!i.canReach(t))o=s.position,t=s.panel;else if(n.circularEnabled){var l=this._controller.position,u=i.rangeDiff,c=[o,o+u,o-u].filter(function(f){return e===x.NONE?!0:e===x.PREV?f<=l:f>=l});o=c.reduce(function(f,d){return Math.abs(l-d)<Math.abs(l-f)?d:f},1/0)}return o},a}(),V=function(){function a(t){var e=t.index,n=t.position,i=t.panel;this._index=e,this._pos=n,this._panel=i}var r=a.prototype;return Object.defineProperty(r,"index",{get:function(){return this._index}
27,enumerable:!1,configurable:!0}),Object.defineProperty(r,"position",{get:function(){return this._pos},enumerable:!1,configurable:!0}),Object.defineProperty(r,"panel",{get:function(){return this._panel},enumerable:!1,configurable:!0}),a}(),Va=function(a){H(r,a);function r(e){var n=(e===void 0?{}:e).count,i=n===void 0?1/0:n,o=a.call(this)||this;return o._count=i,o}var t=r.prototype;return Object.defineProperty(t,"count",{get:function(){return this._count},set:function(e){this._count=e},enumerable:!1,configurable:!0}),t.moveToPosition=function(e,n,i){var o=P(this._flicking),s=o.camera,l=s.findActiveAnchor(),u=s.findNearestAnchor(s.position),c=this._controller.state;if(!l||!u)return Promise.reject(new R(w.POSITION_NOT_REACHABLE(e),I.POSITION_NOT_REACHABLE));var f=this._calcSnapThreshold(o.threshold,e,l),d=o.animating?c.delta:e-s.position,h=Math.abs(d),v=i&&i.delta[S]!==0?Math.abs(i.delta[S]):h,g;if(v>=f&&v>0)g=this._findSnappedAnchor(e,u);else if(h>=o.threshold&&h>0)g=this._findAdjacentAnchor(e,d,u);else return this.moveToPanel(u.panel,{duration:n,axesEvent:i});return this._triggerIndexChangeEvent(g.panel,e,i),this._animateToPosition({position:s.clampToReachablePosition(g.position),duration:n,newActivePanel:g.panel,axesEvent:i})},t._findSnappedAnchor=function(e,n){var i=P(this._flicking),o=i.camera,s=this._count,l=o.position,u=o.clampToReachablePosition(e),c=o.findAnchorIncludePosition(u);if(!n||!c)throw new R(w.POSITION_NOT_REACHABLE(e),I.POSITION_NOT_REACHABLE);if(!isFinite(s))return c;var f=i.panelCount,d=o.anchorPoints,h=Math.sign(e-l)*Math.floor(Math.abs(e-l)/o.rangeDiff);e>l&&c.index<n.index||c.position>n.position&&c.index===n.index?h+=1:(e<l&&c.index>n.index||c.position<n.position&&c.index===n.index)&&(h-=1);var v=h*f,g=c.index+v;if(Math.abs(g-n.index)<=s){var p=d[c.index];return new V({index:p.index,position:p.position+h*o.rangeDiff,panel:p.panel})}if(i.circularEnabled){var _=d[nr(n.index+Math.sign(e-l)*s,f)],m=Math.floor(s/f);return e>l&&_.index<n.index?m+=1:e<l&&_.index>n.index&&(m-=1),new V({index:_.index,position:_.position+m*o.rangeDiff,panel:_.panel})}else return d[Q(n.index+Math.sign(e-l)*s,0,d.length-1)]},t._findAdjacentAnchor=function(e,n,i){var o,s=P(this._flicking),l=s.camera;if(l.circularEnabled){var u=l.findAnchorIncludePosition(e);if(u&&u.position!==i.position)return u}var c=(o=n>0?l.getNextAnchor(i):l.getPrevAnchor(i))!==null&&o!==void 0?o:i;return c},t._calcSnapThreshold=function(e,n,i){var o=n>i.position,s=i.panel,l=s.size,u=s.alignPosition;return Math.max(e,o?l-u+s.margin.next:u+s.margin.prev)},r}(Nt),Ha=function(a){H(r,a);function r(e){var n=(e===void 0?{}:e).stopAtEdge,i=n===void 0?!0:n,o=a.call(this)||this;return o._stopAtEdge=i,o}var t=r.prototype;return Object.defineProperty(t,"stopAtEdge",{get:function(){return this._stopAtEdge},set:function(e){this._stopAtEdge=e},enumerable:!1,configurable:!0}),t.updatePosition=function(e){var n=P(this._flicking),i=n.camera,o=this._activePanel;if(o){var s=o.range,l=s.min+(s.max-s.min)*e;i.lookAt(i.clampToReachablePosition(l))}},t.moveToPosition=function(e,n,i){var o=P(this._flicking),s=o.camera,l=s.clampToReachablePosition(e),u=s.findAnchorIncludePosition(l);if(!u)return Promise.reject(new R(w.POSITION_NOT_REACHABLE(e),I.POSITION_NOT_REACHABLE));var c=u.panel;return c!==this._activePanel&&this._triggerIndexChangeEvent(c,e,i),this._animateToPosition({position:this._stopAtEdge?l:e,duration:n,newActivePanel:c,axesEvent:i})},r}(Nt),Ua=function(a){H(r,a);function r(e){var n=(e===void 0?{}:e).count,i=n===void 0?1:n,o=a.call(this)||this;return o.setActive=function(s,l,u){a.prototype.setActive.call(o,s,l,u),o.updateInput()},o._count=i,o._resetIndexRange(),o}var t=r.prototype;return Object.defineProperty(t,"count",{get:function(){return this._count},set:function(e){this._count=e},enumerable:!1,configurable:!0}),t.destroy=function(){a.prototype.destroy.call(this),this._resetIndexRange()},t.updateInput=function(){var e,n=P(this._flicking),i=n.camera,o=n.renderer,s=this._controller,l=i.controlParams,u=this._count,c=s.state.animating?(e=i.findNearestAnchor(i.position))===null||e===void 0?void 0:e.panel:this._activePanel;if(!c)return s.update(l),this._resetIndexRange(),this;var f=l.range,d=c.position,h=c.index,v=o.panelCount,g=h-u,p=h+u;g<0&&(g=n.circularEnabled?He((g+1)%v-1,v):Q(g,0,v-1)),p>=v&&(p=n.circularEnabled?p%v:Q(p,0,v-1));var _=o.panels[g],m=o.panels[p],b=Math.max(_.position,f.min),y=Math.min(m.position,f.max);return b>d&&(b-=i.rangeDiff),y<d&&(y+=i.rangeDiff),l.range={min:b,max:y},l.circular&&(l.position<b&&(l.position+=i.rangeDiff),l.position>y&&(l.position-=i.rangeDiff)),l.circular=!1,s.update(l),this._indexRange={min:_.index,max:m.index},this},t.moveToPanel=function(e,n){return fe(this,void 0,void 0,function(){var i,o,s;return he(this,function(l){return i=P(this._flicking),o=i.camera,s=this._controller,s.update(o.controlParams),[2,a.prototype.moveToPanel.call(this,e,n)]})})},t.moveToPosition=function(e,n,i){var o,s=P(this._flicking),l=s.camera,u=(o=this._nextPanel)!==null&&o!==void 0?o:this._activePanel,c=this._controller.range,f=this._indexRange,d=l.range,h=this._controller.state,v=Q(l.clampToReachablePosition(e),c[
270],c[1]),g=l.findAnchorIncludePosition(v);if(!g||!u)return Promise.reject(new R(w.POSITION_NOT_REACHABLE(e),I.POSITION_NOT_REACHABLE));var p=u.position,_=s.animating?h.delta:e-l.position,m=Math.abs(_)>=s.threshold,b=e>p?l.getNextAnchor(g):l.getPrevAnchor(g),y,C,N=l.anchorPoints,z=N[0],Y=N[N.length-1],j=e<=d.min&&nt(z.panel.index,f.min,f.max),q=e>=d.max&&nt(Y.panel.index,f.min,f.max),L=b&&(f.min<=f.max?nt(b.index,f.min,f.max):b.index>=f.min||b.index<=f.max);if(j||q){var X=e<d.min?z:Y;C=X.panel,y=X.position}else if(m&&g.position!==u.position)C=g.panel,y=g.position;else if(m&&L)C=b.panel,y=b.position;else{var Z=l.findNearestAnchor(l.position);return Z?this.moveToPanel(Z.panel,{duration:n,axesEvent:i}):Promise.reject(new R(w.POSITION_NOT_REACHABLE(e),I.POSITION_NOT_REACHABLE))}return this._triggerIndexChangeEvent(C,e,i),this._animateToPosition({position:y,duration:n,newActivePanel:C,axesEvent:i})},t._resetIndexRange=function(){this._indexRange={min:0,max:0}},r}(Nt),Dt=function(){function a(t){this._flicking=t}var r=a.prototype;return r.getAnchors=function(){var t=this._flicking.renderer.panels;return t.map(function(e,n){return new V({index:n,position:e.position,panel:e})})},r.findAnchorIncludePosition=function(t){var e=this._flicking.camera.anchorPoints,n=e.filter(function(i){return i.panel.includePosition(t,!0)});return n.reduce(function(i,o){return i&&Math.abs(i.position-t)<Math.abs(o.position-t)?i:o},null)},r.findNearestAnchor=function(t){var e=this._flicking.camera.anchorPoints;if(e.length<=0)return null;for(var n=1/0,i=0;i<e.length;i++){var o=e[i],s=Math.abs(o.position-t);if(s>n)return e[i-1];n=s}return e[e.length-1]},r.clampToReachablePosition=function(t){var e=this._flicking.camera,n=e.range;return Q(t,n.min,n.max)},r.getCircularOffset=function(){return 0},r.canReach=function(t){var e=this._flicking.camera,n=e.range;if(t.removed)return!1;var i=t.position;return i>=n.min&&i<=n.max},r.canSee=function(t){var e=this._flicking.camera,n=e.visibleRange;return t.isVisibleOnRange(n.min,n.max)},a}(),En=function(a){H(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t.checkAvailability=function(){return!0},t.getRange=function(){var e,n,i=this._flicking.renderer,o=i.getPanel(0),s=i.getPanel(i.panelCount-1);return{min:(e=o==null?void 0:o.position)!==null&&e!==void 0?e:0,max:(n=s==null?void 0:s.position)!==null&&n!==void 0?n:0}},r}(Dt),Wa=function(a){H(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t.checkAvailability=function(){var e=this._flicking,n=e.renderer,i=n.panels;if(i.length<=0)return!1;var o=i[0],s=i[i.length-1],l=o.range.min-o.margin.prev,u=s.range.max+s.margin.next,c=e.camera.size,f=u-l,d=i.every(function(h){return f-h.size>=c});return d},t.getRange=function(){var e=this._flicking,n=e.renderer.panels;if(n.length<=0)return{min:0,max:0};var i=n[0],o=n[n.length-1],s=i.range.min-i.margin.prev,l=o.range.max+o.margin.next;return{min:s,max:l}},t.getAnchors=function(){var e=this._flicking,n=e.renderer.panels;return n.map(function(i,o){return new V({index:o,position:i.position,panel:i})})},t.findNearestAnchor=function(e){var n=this._flicking.camera,i=n.anchorPoints;if(i.length<=0)return null;for(var o=n.range,s=1/0,l=-1,u=0;u<i.length;u++){var c=i[u],f=Math.min(Math.abs(c.position-e),Math.abs(c.position-o.min+o.max-e),Math.abs(e-o.min+o.max-c.position));f<s&&(s=f,l=u)}return i[l]},t.findAnchorIncludePosition=function(e){var n=this._flicking.camera,i=n.range,o=n.anchorPoints,s=n.rangeDiff,l=o.length,u=er(e,i.min,i.max),c=a.prototype.findAnchorIncludePosition.call(this,u);if(l>0&&(e===i.min||e===i.max)){var f=[c,new V({index:0,position:o[0].position+s,panel:o[0].panel}),new V({index:l-1,position:o[l-1].position-s,panel:o[l-1].panel})].filter(function(h){return!!h});c=f.reduce(function(h,v){return h&&Math.abs(h.position-e)<Math.abs(v.position-e)?h:v},null)}if(!c)return null;if(e<i.min){var d=-Math.floor((i.min-e)/s)-1;return new V({index:c.index,position:c.position+s*d,panel:c.panel})}else if(e>i.max){var d=Math.floor((e-i.max)/s)+1;return new V({index:c.index,position:c.position+s*d,panel:c.panel})}return c},t.getCircularOffset=function(){var e=this._flicking,n=e.camera;if(!n.circularEnabled)return 0;var i=e.panels.filter(function(l){return l.toggled}),o=i.filter(function(l){return l.toggleDirection===x.PREV}),s=i.filter(function(l){return l.toggleDirection===x.NEXT});return this._calcPanelAreaSum(o)-this._calcPanelAreaSum(s)},t.clampToReachablePosition=function(e){return e},t.canReach=function(e){return!e.removed},t.canSee=function(e){var n=this._flicking.camera,i=n.range,o=n.rangeDiff,s=n.visibleRange,l=a.prototype.canSee.call(this,e);return s.min<i.min?l||e.isVisibleOnRange(s.min+o,s.max+o):s.max>
27i.max?l||e.isVisibleOnRange(s.min-o,s.max-o):l},t._calcPanelAreaSum=function(e){return e.reduce(function(n,i){return n+i.sizeIncludingMargin},0)},r}(Dt),Pn=function(a){H(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t.checkAvailability=function(){var e=this._flicking,n=e.renderer,i=n.getPanel(0),o=n.getPanel(n.panelCount-1);if(!i||!o)return!1;var s=e.camera.size,l=i.range.min,u=o.range.max,c=u-l,f=s<c;return f},t.getRange=function(){var e=this._flicking,n=e.renderer,i=e.camera.alignPosition,o=n.getPanel(0),s=n.getPanel(n.panelCount-1);if(!o||!s)return{min:0,max:0};var l=e.camera.size,u=o.range.min,c=s.range.max,f=c-u,d=l<f,h=u+i,v=c-l+i;if(d)return{min:h,max:v};var g=e.camera.align,p=typeof g=="object"?g.camera:g,_=h+kt(p,v-h);return{min:_,max:_}},t.getAnchors=function(){var e=this._flicking,n=e.camera,i=e.renderer.panels;if(i.length<=0)return[];var o=e.camera.range,s=i.filter(function(g){return n.canReach(g)});if(s.length>0){var l=s[0].position!==o.min,u=s[s.length-1].position!==o.max,c=l?1:0,f=s.map(function(g,p){return new V({index:p+c,position:g.position,panel:g})});return l&&f.splice(0,0,new V({index:0,position:o.min,panel:i[s[0].index-1]})),u&&f.push(new V({index:f.length,position:o.max,panel:i[s[s.length-1].index+1]})),f}else if(o.min!==o.max){var d=this._findNearestPanel(o.min,i),h=d.index===i.length-1?d.prev():d,v=h.next();return[new V({index:0,position:o.min,panel:h}),new V({index:1,position:o.max,panel:v})]}else return[new V({index:0,position:o.min,panel:this._findNearestPanel(o.min,i)})]},t.findAnchorIncludePosition=function(e){var n=this._flicking.camera,i=n.range,o=n.anchorPoints;return o.length<=0?null:e<=i.min?o[0]:e>=i.max?o[o.length-1]:a.prototype.findAnchorIncludePosition.call(this,e)},t._findNearestPanel=function(e,n){for(var i=1/0,o=0;o<n.length;o++){var s=n[o],l=Math.abs(s.position-e);if(l>i)return n[o-1];i=l}return n[n.length-1]},r}(Dt),Xa=function(){function a(t,e){var n=this,i=(e===void 0?{}:e).align,o=i===void 0?K.CENTER:i;this._checkTranslateSupport=function(){var s,l,u=["webkitTransform","msTransform","MozTransform","OTransform","transform"],c=document.documentElement.style,f="";try{for(var d=Ke(u),h=d.next();!h.done;h=d.next()){var v=h.value;v in c&&(f=v)}}catch(g){s={error:g}}finally{try{h&&!h.done&&(l=d.return)&&l.call(d)}finally{if(s)throw s.error}}if(!f)throw new R(w.TRANSFORM_NOT_SUPPORTED,I.TRANSFORM_NOT_SUPPORTED);n._transform=f},this._flicking=t,this._resetInternalValues(),this._align=o}var r=a.prototype;return Object.defineProperty(r,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(r,"children",{get:function(){return St(this._el.children)},enumerable:!1,configurable:!0}),Object.defineProperty(r,"position",{get:function(){return this._position},enumerable:!1,configurable:!0}),Object.defineProperty(r,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(r,"offset",{get:function(){return this._offset-this._circularOffset},enumerable:!1,configurable:!0}),Object.defineProperty(r,"circularEnabled",{get:function(){return this._circularEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(r,"mode",{get:function(){return this._mode},enumerable:!1,configurable:!0}),Object.defineProperty(r,"range",{get:function(){return this._range},enumerable:!1,configurable:!0}),Object.defineProperty(r,"rangeDiff",{get:function(){return this._range.max-this._range.min},enumerable:!1,configurable:!0}),Object.defineProperty(r,"visiblePanels",{get:function(){return this._visiblePanels},enumerable:!1,configurable:!0}),Object.defineProperty(r,"visibleRange",{get:function(){return{min:this._position-this._alignPos,max:this._position-this._alignPos+this.size}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"anchorPoints",{get:function(){return this._anchors},enumerable:!1,configurable:!0}),Object.defineProperty(r,"controlParams",{get:function(){return{range:this._range,position:this._position,circular:this._circularEnabled}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"atEdge",{get:function(){return this._position<=this._range.min||this._position>=this._range.max}
27,enumerable:!1,configurable:!0}),Object.defineProperty(r,"size",{get:function(){var t=this._flicking;return t?t.horizontal?t.viewport.width:t.viewport.height:0},enumerable:!1,configurable:!0}),Object.defineProperty(r,"progress",{get:function(){var t=this._flicking,e=this._position+this._offset,n=this.findNearestAnchor(this._position);if(!t||!n)return NaN;var i=n.panel,o=i.position+i.offset,s=t.control.controller.bounce,l=this.range,u=l.min,c=l.max,f=this.rangeDiff;if(e===o)return i.index;if(e<o){var d=i.prev(),h=d?d.position+d.offset:u-s[0];return h>o&&(h-=f),i.index-1+We(e,h,o)}else{var v=i.next(),g=v?v.position+v.offset:c+s[1];return g<o&&(g+=f),i.index+We(e,o,g)}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"panelOrder",{get:function(){return this._panelOrder},enumerable:!1,configurable:!0}),Object.defineProperty(r,"align",{get:function(){return this._align},set:function(t){this._align=t},enumerable:!1,configurable:!0}),r.init=function(){var t=this._flicking.viewport.element;return Ra(t.firstElementChild,"First element child of the viewport element"),this._el=t.firstElementChild,this._checkTranslateSupport(),this._updateMode(),this.updatePanelOrder(),this},r.destroy=function(){return this._resetInternalValues(),this},r.lookAt=function(t){var e=this,n=P(this._flicking),i=this._position;this._position=t;var o=this._togglePanels(i,t);this._refreshVisiblePanels(),this._checkNeedPanel(),this._checkReachEnd(i,t),o?n.renderer.render().then(function(){e.updateOffset()}):this.applyTransform()},r.getPrevAnchor=function(t){if(!this._circularEnabled||t.index!==0)return this._anchors[t.index-1]||null;var e=this._anchors,n=this.rangeDiff,i=e[e.length-1];return new V({index:i.index,position:i.position-n,panel:i.panel})},r.getNextAnchor=function(t){var e=this._anchors;if(!this._circularEnabled||t.index!==e.length-1)return e[t.index+1]||null;var n=this.rangeDiff,i=e[0];return new V({index:i.index,position:i.position+n,panel:i.panel})},r.getProgressInPanel=function(t){var e=t.range;return(this._position-e.min)/(e.max-e.min)},r.findAnchorIncludePosition=function(t){return this._mode.findAnchorIncludePosition(t)},r.findNearestAnchor=function(t){return this._mode.findNearestAnchor(t)},r.findActiveAnchor=function(){var t,e=P(this._flicking),n=e.control.activePanel;return n?(t=Ca(this._anchors,function(i){return i.panel.index===n.index}))!==null&&t!==void 0?t:this.findNearestAnchor(n.position):null},r.clampToReachablePosition=function(t){return this._mode.clampToReachablePosition(t)},r.canReach=function(t){return this._mode.canReach(t)},r.canSee=function(t){return this._mode.canSee(t)},r.updateRange=function(){var t=P(this._flicking),e=t.renderer,n=e.panels;return this._updateMode(),this._range=this._mode.getRange(),n.forEach(function(i){return i.updateCircularToggleDirection()}),this},r.updateAlignPos=function(){var t=this._align,e=typeof t=="object"?t.camera:t;return this._alignPos=kt(e,this.size),this},r.updateAnchors=function(){return this._anchors=this._mode.getAnchors(),this},r.updateAdaptiveHeight=function(){var t=P(this._flicking),e=t.control.activePanel;!t.horizontal||!t.adaptive||!e||t.viewport.setSize({height:e.height})},r.updateOffset=function(){var t=P(this._flicking),e=this._position,n=t.panels.filter(function(i){return!i.rendered});return this._offset=n.filter(function(i){return i.position+i.offset<e}).reduce(function(i,o){return i+o.sizeIncludingMargin},0),this._circularOffset=this._mode.getCircularOffset(),this.applyTransform(),this},r.updatePanelOrder=function(){var t=P(this._flicking);if(!t.horizontal)return this;var e=this._el,n=Xe(e).direction;return n!==this._panelOrder&&(this._panelOrder=n===ue.RTL?ue.RTL:ue.LTR,t.initialized&&t.control.controller.updateDirection()),this},r.resetNeedPanelHistory=function(){return this._needPanelTriggered={prev:!1,next:!1},this},r.applyTransform=function(){var t=this._el,e=P(this._flicking),n=e.renderer;if(n.rendering||!e.initialized)return this;var i=this._position-this._alignPos-this._offset+this._circularOffset;return t.style[this._transform]=e.horizontal?"translate("+(this._panelOrder===ue.RTL?i:-i)+"px)":"translate(0, "+-i+"px)",this},r._resetInternalValues=function(){this._position=0,this._alignPos=0,this._offset=0,this._circularOffset=0,this._circularEnabled=!1,this._range={min:0,max:0},this._visiblePanels=[],this._anchors=[],this._needPanelTriggered={prev:!1,next:!1}},r._refreshVisiblePanels=function(){var t=this,e=P(this._flicking),n=e.renderer.panels,i=n.filter(function(u){return t.canSee(u)}),o=this._visiblePanels;this._visiblePanels=i;var s=i.filter(function(u){return!Ue(o,u)}),l=o.filter(function(u){return!Ue(i,u)});(s.length>0||l.length>0)&&e.renderer.render().then(function(){e.trigger(new T(O.VISIBLE_CHANGE,{added:s,removed:l,visiblePanels:i}))})},r._checkNeedPanel=function(){var t=this._needPanelTriggered;if(!(t.prev&&t.next)){var e=P(this._flicking),n=e.renderer.panels;if(n.length<=0){t.prev||(e.trigger(new T(O.NEED_PANEL,{direction:x.PREV})),t.prev=!0),t.next||(e.trigger(new T(O.NEED_PANEL,{direction:x.NEXT})),t.next=!0);return}var i=this._position,o=this.size,s=this._range,l=e.needPanelThreshold,u=i-this._alignPos,c=u+o,f=n[0],d=n[n.length-1];if(!t.prev){var h=f.range.min;(u<=h+l||i<=s.min+l)&&(e.trigger(new T(O.NEED_PANEL,{direction:x.PREV})),t.prev=!0)}if(!t.next){var v=d.range.max;(c>=v-l||i>=s.max-l)&&(e.trigger(new T(O.NEED_PANEL,{direction:x.NEXT})),t.next=!0)}}},r._checkReachEnd=function(t,e){var n=P(this._flicking),i=this._range,o=t>i.min&&t<i.max,s=e>i.min&&e<i.max;if(!(!o||s)){var l=e<=i.min?x.PREV:x.NEXT;n.trigger(new T(O.REACH_EDGE,{direction:l}))}},r._updateMode=function(){var t=P(this._flicking);if(t.circular){var e=new Wa(t),n=e.checkAvailability();if(n)this._mode=e;else{var i=t.circularFallback;this._mode=i===Jn.BOUND?new Pn(t):new En(t)}this._circularEnabled=n}
27else this._mode=t.bound?new Pn(t):new En(t),this._circularEnabled=!1},r._togglePanels=function(t,e){if(e===t)return!1;var n=P(this._flicking),i=n.renderer.panels,o=i.map(function(s){return s.toggle(t,e)});return o.some(function(s){return s})},a}(),rr=function(){function a(t){var e=t.align,n=e===void 0?K.CENTER:e,i=t.strategy;this._flicking=null,this._panels=[],this._rendering=!1,this._align=n,this._strategy=i}var r=a.prototype;return Object.defineProperty(r,"panels",{get:function(){return this._panels},enumerable:!1,configurable:!0}),Object.defineProperty(r,"rendering",{get:function(){return this._rendering},enumerable:!1,configurable:!0}),Object.defineProperty(r,"panelCount",{get:function(){return this._panels.length},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strategy",{get:function(){return this._strategy},enumerable:!1,configurable:!0}),Object.defineProperty(r,"align",{get:function(){return this._align},set:function(t){this._align=t;var e=Ve(t);this._panels.forEach(function(n){n.align=e})},enumerable:!1,configurable:!0}),r.init=function(t){return this._flicking=t,this._collectPanels(),this},r.destroy=function(){this._flicking=null,this._panels=[]},r.getPanel=function(t){return this._panels[t]||null},r.forceRenderAllPanels=function(){return this._panels.forEach(function(t){return t.markForShow()}),Promise.resolve()},r.updatePanelSize=function(){var t=P(this._flicking),e=this._panels;if(e.length<=0)return this;if(t.panelsPerView>0){var n=e[0];n.resize(),this._updatePanelSizeByGrid(n,e)}else t.panels.forEach(function(i){return i.resize()});return this},r.batchInsert=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.batchInsertDefer.apply(this,M(t));return n.length<=0?[]:(this.updateAfterPanelChange(n,[]),n)},r.batchInsertDefer=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this._panels,o=P(this._flicking),s=i[0],l=Ve(this._align),u=e.reduce(function(c,f){var d,h=He(f.index,i.length),v=i.slice(h),g=f.elements.map(function(_,m){return t._createPanel(_,{index:h+m,align:l,flicking:o})});if(i.splice.apply(i,M([h,0],g)),f.hasDOMInElements&&t._insertPanelElements(g,(d=v[0])!==null&&d!==void 0?d:null),o.panelsPerView>0){var p=s||g[0].resize();t._updatePanelSizeByGrid(p,g)}else g.forEach(function(_){return _.resize()});return v.forEach(function(_){_.increaseIndex(g.length),_.updatePosition()}),M(c,g)},[]);return u},r.batchRemove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.batchRemoveDefer.apply(this,M(t));return n.length<=0?[]:(this.updateAfterPanelChange([],n),n)},r.batchRemoveDefer=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this._panels,o=P(this._flicking),s=o.control,l=s.activePanel,u=e.reduce(function(c,f){var d=f.index,h=f.deleteCount,v=He(d,i.length),g=i.slice(v+h),p=i.splice(v,h);return p.length<=0?[]:(g.forEach(function(_){_.decreaseIndex(p.length),_.updatePosition()}),f.hasDOMInElements&&t._removePanelElements(p),p.forEach(function(_){return _.destroy()}),Ue(p,l)&&s.resetActive(),M(c,p))},[]);return u},r.updateAfterPanelChange=function(t,e){var n,i=P(this._flicking),o=i.camera,s=i.control,l=this._panels,u=s.activePanel;if(this._updateCameraAndControl(),this.render(),!i.animating)if(!u||u.removed)if(l.length<=0)o.lookAt(0);else{var c=(n=u==null?void 0:u.index)!==null&&n!==void 0?n:0;c>l.length-1&&(c=l.length-1),s.moveToPanel(l[c],{duration:0}).catch(function(){})}else s.moveToPanel(u,{duration:0}).catch(function(){});i.camera.updateOffset(),(t.length>0||e.length>0)&&(i.trigger(new T(O.PANEL_CHANGE,{added:t,removed:e})),this.checkPanelContentsReady(M(t,e)))},r.checkPanelContentsReady=function(t){var e=this,n=P(this._flicking),i=n.resizeOnContentsReady,o=this._panels;if(!(!i||n.virtualEnabled)){var s=function(u){return u.element&&!!u.element.querySelector("img, video")};if(t=t.filter(function(u){return s(u)}),!(t.length<=0)){var l=new Oa;t.forEach(function(u){u.loading=!0}),l.on("readyElement",function(u){if(!e._flicking){l.destroy();return}var c=t[u.index],f=n.camera,d=n.control,h=d.activePanel?f.getProgressInPanel(d.activePanel):0;
27c.loading=!1,c.resize(),o.slice(c.index+1).forEach(function(v){return v.updatePosition()}),n.initialized&&(f.updateRange(),f.updateOffset(),f.updateAnchors(),d.animating||(d.updatePosition(h),d.updateInput()))}),l.on("preReady",function(u){e._flicking&&e.render(),u.readyCount===u.totalCount&&l.destroy()}),l.on("ready",function(){e._flicking&&e.render(),l.destroy()}),l.check(t.map(function(u){return u.element}))}}},r._updateCameraAndControl=function(){var t=P(this._flicking),e=t.camera,n=t.control;e.updateRange(),e.updateOffset(),e.updateAnchors(),e.resetNeedPanelHistory(),n.updateInput()},r._showOnlyVisiblePanels=function(t){var e=t.renderer.panels,n=t.camera,i=n.visiblePanels.reduce(function(o,s){return o[s.index]=!0,o},{});e.forEach(function(o){o.index in i||o.loading?o.markForShow():t.holding||o.markForHide()})},r._updatePanelSizeByGrid=function(t,e){var n=P(this._flicking),i=n.panelsPerView;if(i<=0)throw new R(w.WRONG_OPTION("panelsPerView",i),I.WRONG_OPTION);if(!(e.length<=0)){var o=n.camera.size,s=t.margin.prev+t.margin.next,l=(o-s*(i-1))/i,u=n.horizontal?{width:l}:{height:l},c=U({size:l,margin:t.margin},!n.horizontal&&{height:t.height});n.noPanelStyleOverride||this._strategy.updatePanelSizes(n,u),n.panels.forEach(function(f){return f.resize(c)})}},r._removeAllChildsFromCamera=function(){for(var t=P(this._flicking),e=t.camera.element;e.firstChild;)e.removeChild(e.firstChild)},r._insertPanelElements=function(t,e){e===void 0&&(e=null);var n=P(this._flicking),i=n.camera,o=i.element,s=(e==null?void 0:e.element)||null,l=document.createDocumentFragment();t.forEach(function(u){return l.appendChild(u.element)}),o.insertBefore(l,s)},r._removePanelElements=function(t){var e=P(this._flicking),n=e.camera.element;t.forEach(function(i){n.removeChild(i.element)})},r._afterRender=function(){var t=P(this._flicking);t.camera.applyTransform()},a}(),Ga=function(a){H(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t.render=function(){return fe(this,void 0,void 0,function(){var e,n;return he(this,function(i){return e=P(this._flicking),n=this._strategy,n.updateRenderingPanels(e),n.renderPanels(e),this._resetPanelElementOrder(),this._afterRender(),[2]})})},t._collectPanels=function(){var e=P(this._flicking),n=e.camera;this._removeAllTextNodes(),this._panels=this._strategy.collectPanels(e,n.children)},t._createPanel=function(e,n){return this._strategy.createPanel(e,n)},t._resetPanelElementOrder=function(){var e=P(this._flicking),n=e.camera.element,i=this._strategy.getRenderingElementsByOrder(e).reverse();i.forEach(function(o,s){var l=i[s-1]?i[s-1]:null;o.nextElementSibling!==l&&n.insertBefore(o,l)})},t._removeAllTextNodes=function(){var e=P(this._flicking),n=e.camera.element;St(n.childNodes).forEach(function(i){i.nodeType===Node.TEXT_NODE&&n.removeChild(i)})},r}(rr),Ya=function(a){H(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t._removePanelElements=function(e){},t._removeAllChildsFromCamera=function(){},r}(rr),bt=function(){function a(t){var e=t.index,n=t.align,i=t.flicking,o=t.elementProvider;this._index=e,this._flicking=i,this._elProvider=o,this._align=n,this._removed=!1,this._rendered=!0,this._loading=!1,this._resetInternalStates()}var r=a.prototype;return Object.defineProperty(r,"element",{get:function(){return this._elProvider.element},enumerable:!1,configurable:!0}),Object.defineProperty(r,"elementProvider",{get:function(){return this._elProvider},enumerable:!1,configurable:!0}),Object.defineProperty(r,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(r,"position",{get:function(){return this._pos+this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(r,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(r,"sizeIncludingMargin",{get:function(){return this._size+this._margin.prev+this._margin.next},enumerable:!1,configurable:!0}),Object.defineProperty(r,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),Object.defineProperty(r,"margin",{get:function(){return this._margin}
27,enumerable:!1,configurable:!0}),Object.defineProperty(r,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(r,"removed",{get:function(){return this._removed},enumerable:!1,configurable:!0}),Object.defineProperty(r,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),Object.defineProperty(r,"loading",{get:function(){return this._loading},set:function(t){this._loading=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"range",{get:function(){return{min:this._pos,max:this._pos+this._size}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"toggled",{get:function(){return this._toggled},enumerable:!1,configurable:!0}),Object.defineProperty(r,"toggleDirection",{get:function(){return this._toggleDirection},enumerable:!1,configurable:!0}),Object.defineProperty(r,"offset",{get:function(){var t=this._toggleDirection,e=this._flicking.camera.rangeDiff;return t===x.NONE||!this._toggled?0:t===x.PREV?-e:e},enumerable:!1,configurable:!0}),Object.defineProperty(r,"progress",{get:function(){var t=this._flicking;return this.index-t.camera.progress},enumerable:!1,configurable:!0}),Object.defineProperty(r,"outsetProgress",{get:function(){var t=this.position+this.offset,e=this._alignPos,n=this._flicking.camera,i=n.position;if(i===t)return 0;if(i<t){var o=t+(n.size-n.alignPosition)+e;return-We(i,t,o)}else{var s=t-(n.alignPosition+this._size-e);return 1-We(i,s,t)}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"visibleRatio",{get:function(){var t=this.range,e=this._size,n=this.offset,i=this._flicking.camera.visibleRange,o={min:t.min+n,max:t.max+n};if(o.max<=i.min||o.min>=i.max)return 0;var s=e;return i.min>o.min&&(s-=i.min-o.min),i.max<o.max&&(s-=o.max-i.max),s/e},enumerable:!1,configurable:!0}),Object.defineProperty(r,"align",{get:function(){return this._align},set:function(t){this._align=t,this._updateAlignPos()},enumerable:!1,configurable:!0}),r.markForShow=function(){this._rendered=!0,this._elProvider.show(this._flicking)},r.markForHide=function(){this._rendered=!1,this._elProvider.hide(this._flicking)},r.resize=function(t){var e,n=this.element,i=this._flicking,o=i.horizontal,s=i.useFractionalSize;if(t)this._size=t.size,this._margin=U({},t.margin),this._height=(e=t.height)!==null&&e!==void 0?e:Te({el:n,horizontal:!1,useFractionalSize:s,useOffset:!0,style:Xe(n)});else{var l=Xe(n);this._size=Te({el:n,horizontal:o,useFractionalSize:s,useOffset:!0,style:l}),this._margin=o?{prev:parseFloat(l.marginLeft||"0"),next:parseFloat(l.marginRight||"0")}:{prev:parseFloat(l.marginTop||"0"),next:parseFloat(l.marginBottom||"0")},this._height=o?Te({el:n,horizontal:!1,useFractionalSize:s,useOffset:!0,style:l}):this._size}return this.updatePosition(),this._updateAlignPos(),this},r.setSize=function(t){return tr(this.element,t),this},r.contains=function(t){var e;return!!(!((e=this.element)===null||e===void 0)&&e.contains(t))},r.destroy=function(){this._resetInternalStates(),this._removed=!0},r.includePosition=function(t,e){return e===void 0&&(e=!1),this.includeRange(t,t,e)},r.includeRange=function(t,e,n){n===void 0&&(n=!1);var i=this._margin,o=this.range;return n&&(o.min-=i.prev,o.max+=i.next),e>=o.min&&t<=o.max},r.isVisibleOnRange=function(t,e){var n=this.range;return e>n.min&&t<n.max},r.focus=function(t){return this._flicking.moveTo(this._index,t)},r.prev=function(){var t=this._index,e=this._flicking,n=e.renderer,i=n.panelCount;return i===1?null:e.circularEnabled?n.getPanel(t===0?i-1:t-1):n.getPanel(t-1)},r.next=function(){var t=this._index,e=this._flicking,n=e.renderer,i=n.panelCount;return i===1?null:e.circularEnabled?n.getPanel(t===i-1?0:t+1):n.getPanel(t+1)},r.increaseIndex=function(t){return this._index+=Math.max(t,0),this},r.decreaseIndex=function(t){return this._index-=Math.max(t,0),this},r.updatePosition=function(){var t=this._flicking.renderer.panels[this._index-1];return this._pos=t?t.range.max+t.margin.next+this._margin.prev:this._margin.prev,this},r.toggle=function(t,e){var n=this._toggleDirection,i=this._togglePosition;if(n===x.NONE||e===t)return!1;var o=this._toggled;return e>t?i>=t&&i<=e&&(this._toggled=n===x.NEXT):i<=t&&i>=e&&(this._toggled=n!==x.NEXT),o!==this._toggled},r.updateCircularToggleDirection=function(){var t=this._flicking;if(!t.circularEnabled)return this._toggleDirection=x.NONE,this._togglePosition=0,this._toggled=!1,this;var e=t.camera,n=e.range,i=e.alignPosition,o=e.visibleRange,s=o.max-o.min,l=n.min-i,u=n.max-i+s,c=this.includeRange(u-s,u,!1),f=this.includeRange(l,l+s,!1);return this._toggled=!1,c?(this._toggleDirection=x.PREV,this._togglePosition=this.range.max+n.min-n.max+i,this.toggle(1/0,e.position)):f?(this._toggleDirection=x.NEXT,this._togglePosition=this.range.min+n.max-s+i,this.toggle(-1/0,e.position)):(this._toggleDirection=x.NONE,this._togglePosition=0),this},r._updateAlignPos=function(){this._alignPos=kt(this._align,this._size)},r._resetInternalStates=function(){this._size=0,this._pos=0,this._margin={prev:0,next:0},this._height=0,this._alignPos=0,this._toggled=!1,this._togglePosition=0,this._toggleDirection=x.NONE},a}(),ir=function(){function a(t){var e=t.providerCtor;this._providerCtor=e}var r=a.prototype;return r.renderPanels=function(){},r.getRenderingIndexesByOrder=function(t){var e=t.renderer.panels.filter(function(s){return s.rendered}),n=e.filter(function(s){return s.toggled&&s.toggleDirection===x.PREV}),i=e.filter(function(s){return s.toggled&&s.toggleDirection===x.NEXT}),o=e.filter(function(s){return!s.toggled});return M(n,o,i).map(function(s){return s.index})},r.getRenderingElementsByOrder=function(t){var e=t.panels;return this.getRenderingIndexesByOrder(t).map(function(n){return e[n].element})},r.updateRenderingPanels=function(t){t.renderOnlyVisible?this._showOnlyVisiblePanels(t):t.panels.forEac
27h(function(e){return e.markForShow()})},r.collectPanels=function(t,e){var n=this,i=Ve(t.renderer.align);return e.map(function(o,s){return new bt({index:s,elementProvider:new n._providerCtor(o),align:i,flicking:t})})},r.createPanel=function(t,e){return new bt(U(U({},e),{elementProvider:new this._providerCtor(t)}))},r.updatePanelSizes=function(t,e){t.panels.forEach(function(n){return n.setSize(e)})},r._showOnlyVisiblePanels=function(t){var e=t.renderer.panels,n=t.camera,i=n.visiblePanels.reduce(function(o,s){return o[s.index]=!0,o},{});e.forEach(function(o){o.index in i||o.loading?o.markForShow():t.holding||o.markForHide()}),n.updateOffset()},a}(),yn=function(a){H(r,a);function r(e){var n=a.call(this,e)||this;return e.elementProvider.init(n),n._elProvider=e.elementProvider,n._cachedInnerHTML=null,n}var t=r.prototype;return Object.defineProperty(t,"element",{get:function(){return this._elProvider.element},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cachedInnerHTML",{get:function(){return this._cachedInnerHTML},enumerable:!1,configurable:!0}),Object.defineProperty(t,"elementIndex",{get:function(){var e=this._flicking,n=e.panelsPerView+1,i=e.panelCount,o=this._index;return this._toggled&&(o=this._toggleDirection===x.NEXT?o+i:o-i),nr(o,n)},enumerable:!1,configurable:!0}),t.cacheRenderResult=function(e){this._cachedInnerHTML=e},t.uncacheRenderResult=function(){this._cachedInnerHTML=null},t.render=function(){var e=this._flicking,n=e.virtual,i=n.renderPanel,o=n.cache,s=this._elProvider.element,l=this._cachedInnerHTML||i(this,this._index);l!==s.innerHTML&&(s.innerHTML=l,o&&this.cacheRenderResult(l))},t.increaseIndex=function(e){return this.uncacheRenderResult(),a.prototype.increaseIndex.call(this,e)},t.decreaseIndex=function(e){return this.uncacheRenderResult(),a.prototype.decreaseIndex.call(this,e)},r}(bt),ar=function(){function a(){}var r=a.prototype;return r.renderPanels=function(t){var e=t.virtual,n=t.visiblePanels,i=Ie(t.panelsPerView+1);n.forEach(function(o){var s=o.elementIndex;o.render(),e.show(s),i[s]=-1}),i.filter(function(o){return o>=0}).forEach(function(o){e.hide(o)})},r.getRenderingIndexesByOrder=function(t){var e=t.virtual,n=M(t.visiblePanels).filter(function(s){return s.rendered}).sort(function(s,l){return s.position+s.offset-(l.position+l.offset)});if(n.length<=0)return e.elements.map(function(s,l){return l});var i=n.map(function(s){return s.elementIndex}),o=e.elements.map(function(s,l){return U(U({},s),{idx:l})}).filter(function(s){return!s.visible}).map(function(s){return s.idx});return M(i,o)},r.getRenderingElementsByOrder=function(t){var e=t.virtual,n=e.elements;return this.getRenderingIndexesByOrder(t).map(function(i){return n[i].nativeElement})},r.updateRenderingPanels=function(t){var e=t.renderer.panels,n=t.camera,i=n.visiblePanels.reduce(function(o,s){return o[s.index]=!0,o},{});e.forEach(function(o){o.index in i||o.loading?o.markForShow():o.markForHide()}),n.updateOffset()},r.collectPanels=function(t){var e=Ve(t.renderer.align);return Ie(t.virtual.initialPanelCount).map(function(n){return new yn({index:n,elementProvider:new mn(t),align:e,flicking:t})})},r.createPanel=function(t,e){return new yn(U(U({},e),{elementProvider:new mn(e.flicking)}))},r.updatePanelSizes=function(t,e){t.virtual.elements.forEach(function(n){tr(n.nativeElement,e)}),t.panels.forEach(function(n){return n.setSize(e)})},a}(),or=function(a){H(r,a);function r(e,n){var i=n===void 0?{}:n,o=i.align,s=o===void 0?K.CENTER:o,l=i.defaultIndex,u=l===void 0?0:l,c=i.horizontal,f=c===void 0?!0:c,d=i.circular,h=d===void 0?!1:d,v=i.circularFallback,g=v===void 0?Jn.LINEAR:v,p=i.bound,_=p===void 0?!1:p,m=i.adaptive,b=m===void 0?!1:m,y=i.panelsPerView,C=y===void 0?-1:y,N=i.noPanelStyleOverride,z=N===void 0?!1:N,Y=i.resizeOnContentsReady,j=Y===void 0?!1:Y,q=i.nested,L=q===void 0?!1:q,X=i.needPanelThreshold,Z=X===void 0?0:X,me=i.preventEventsBeforeInit,re=me===void 0?!0:me,zt=i.deceleration,lr=zt===void 0?.0075:zt,Ft=i.duration,ur=Ft===void 0?500:Ft,jt=i.easing,cr=jt===void 0?function(Ar){return 1-Math.pow(1-Ar,3)}:jt,Bt=i.inputType,fr=Bt===void 0?["mouse","touch"]:Bt,Vt=i.moveType,hr=Vt===void 0?"snap":Vt,Ht=i.threshold,dr=Ht===void 0?40:Ht,Ut=i.interruptable,vr=Ut===void 0?!0:Ut,Wt=i.bounce,gr=Wt===void 0?"20%":Wt,Xt=i.iOSEdgeSwipeThreshold,_r=Xt===void 0?30:Xt,Gt=i.preventClickOnDrag,pr=Gt===void 0?!0:Gt,Yt=i.preventDefaultOnDrag,mr=Yt===void 0?!1:Yt,$t=i.disableOnInit,br=$t===void 0?!1:$t,Kt=i.changeOnHold,Er=Kt===void 0?!1:Kt,qt=i.renderOnlyVisible,Pr=qt===void 0?!1:qt,Zt=i.virtual,Jt=Zt===void 0?null:Zt,Qt=i.autoInit,yr=Qt===void 0?!0:Qt,en=i.autoResize,Or=en===void 0?!0:en,tn=i.useResizeObserver,xr=tn===void 0?!0:tn,nn=i.resizeDebounce,Tr=nn===void 0?0:nn,rn=i.maxResizeDebounce,Rr=rn===void 0?100:rn,an=i.useFractionalSize,Ir=an===void 0?!1:an,on=i.externalRenderer,Cr=on===void 0?null:on,sn=i.renderExternal,wr=sn===void 0?null:sn,E=a.call(this)||this;return E._initialized=!1,E._plugins=[],E._align=s,E._defaultIndex=u,E._horizontal=f,E._circular=h,E._circularFallback=g,E._bound=_,E._adaptive=b,E._panelsPerVie
27w=C,E._noPanelStyleOverride=z,E._resizeOnContentsReady=j,E._nested=L,E._virtual=Jt,E._needPanelThreshold=Z,E._preventEventsBeforeInit=re,E._deceleration=lr,E._duration=ur,E._easing=cr,E._inputType=fr,E._moveType=hr,E._threshold=dr,E._interruptable=vr,E._bounce=gr,E._iOSEdgeSwipeThreshold=_r,E._preventClickOnDrag=pr,E._preventDefaultOnDrag=mr,E._disableOnInit=br,E._changeOnHold=Er,E._renderOnlyVisible=Pr,E._autoInit=yr,E._autoResize=Or,E._useResizeObserver=xr,E._resizeDebounce=Tr,E._maxResizeDebounce=Rr,E._useFractionalSize=Ir,E._externalRenderer=Cr,E._renderExternal=wr,E._viewport=new Sa(E,Ta(e)),E._autoResizer=new ka(E),E._renderer=E._createRenderer(),E._camera=E._createCamera(),E._control=E._createControl(),E._virtualManager=new Da(E,Jt),E._autoInit&&E.init(),E}var t=r.prototype;return Object.defineProperty(t,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),Object.defineProperty(t,"camera",{get:function(){return this._camera},enumerable:!1,configurable:!0}),Object.defineProperty(t,"renderer",{get:function(){return this._renderer},enumerable:!1,configurable:!0}),Object.defineProperty(t,"viewport",{get:function(){return this._viewport},enumerable:!1,configurable:!0}),Object.defineProperty(t,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(t,"circularEnabled",{get:function(){return this._camera.circularEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t,"virtualEnabled",{get:function(){return this._panelsPerView>0&&this._virtual!=null},enumerable:!1,configurable:!0}),Object.defineProperty(t,"index",{get:function(){return this._control.activeIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t,"element",{get:function(){return this._viewport.element},enumerable:!1,configurable:!0}),Object.defineProperty(t,"currentPanel",{get:function(){return this._control.activePanel},enumerable:!1,configurable:!0}),Object.defineProperty(t,"panels",{get:function(){return this._renderer.panels},enumerable:!1,configurable:!0}),Object.defineProperty(t,"panelCount",{get:function(){return this._renderer.panelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t,"visiblePanels",{get:function(){return this._camera.visiblePanels},enumerable:!1,configurable:!0}),Object.defineProperty(t,"animating",{get:function(){return this._control.animating},enumerable:!1,configurable:!0}),Object.defineProperty(t,"holding",{get:function(){return this._control.holding},enumerable:!1,configurable:!0}),Object.defineProperty(t,"activePlugins",{get:function(){return this._plugins},enumerable:!1,configurable:!0}),Object.defineProperty(t,"align",{get:function(){return this._align},set:function(e){this._align=e,this._renderer.align=e,this._camera.align=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultIndex",{get:function(){return this._defaultIndex},set:function(e){this._defaultIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"horizontal",{get:function(){return this._horizontal},set:function(e){this._horizontal=e,this._control.controller.updateDirection(),this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"circular",{get:function(){return this._circular},set:function(e){this._circular=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"circularFallback",{get:function(){return this._circularFallback},enumerable:!1,configurable:!0}),Object.defineProperty(t,"bound",{get:function(){return this._bound},set:function(e){this._bound=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"adaptive",{get:function(){return this._adaptive},set:function(e){this._adaptive=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"panelsPerView",{get:function(){return this._panelsPerView},set:function(e){this._panelsPerView=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"noPanelStyleOverride",{get:function(){return this._noPanelStyleOverride},set:function(e){this._noPanelStyleOverride=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"resizeOnContentsReady",{get:function(){return this._resizeOnContentsReady},set:function(e){this._resizeOnContentsReady=e,e&&this._renderer.checkPanelContentsReady(this._renderer.panels)}
27,enumerable:!1,configurable:!0}),Object.defineProperty(t,"nested",{get:function(){return this._nested},set:function(e){this._nested=e;var n=this._control.controller.axes;n&&(n.options.nested=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"needPanelThreshold",{get:function(){return this._needPanelThreshold},set:function(e){this._needPanelThreshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventEventsBeforeInit",{get:function(){return this._preventEventsBeforeInit},set:function(e){this._preventEventsBeforeInit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"deceleration",{get:function(){return this._deceleration},set:function(e){this._deceleration=e;var n=this._control.controller.axes;n&&(n.options.deceleration=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"easing",{get:function(){return this._easing},set:function(e){this._easing=e;var n=this._control.controller.axes;n&&(n.options.easing=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"duration",{get:function(){return this._duration},set:function(e){this._duration=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"inputType",{get:function(){return this._inputType},set:function(e){this._inputType=e;var n=this._control.controller.panInput;n&&(n.options.inputType=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"moveType",{get:function(){return this._moveType},set:function(e){this._moveType=e;var n=this._control,i=this._createControl(),o=n.activePanel;i.copy(n);var s=o?this._camera.getProgressInPanel(o):0;this._control=i,this._control.updatePosition(s),this._control.updateInput()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"threshold",{get:function(){return this._threshold},set:function(e){this._threshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"interruptable",{get:function(){return this._interruptable},set:function(e){this._interruptable=e;var n=this._control.controller.axes;n&&(n.options.interruptable=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"bounce",{get:function(){return this._bounce},set:function(e){this._bounce=e,this._control.updateInput()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"iOSEdgeSwipeThreshold",{get:function(){return this._iOSEdgeSwipeThreshold},set:function(e){this._iOSEdgeSwipeThreshold=e;var n=this._control.controller.panInput;n&&(n.options.iOSEdgeSwipeThreshold=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventClickOnDrag",{get:function(){return this._preventClickOnDrag},set:function(e){var n=this._preventClickOnDrag;if(e!==n){var i=this._control.controller;e?i.addPreventClickHandler():i.removePreventClickHandler(),this._preventClickOnDrag=e}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventDefaultOnDrag",{get:function(){return this._preventDefaultOnDrag},set:function(e){this._preventDefaultOnDrag=e;var n=this._control.controller.panInput;n&&(n.options.preventDefaultOnDrag=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"disableOnInit",{get:function(){return this._disableOnInit},set:function(e){this._disableOnInit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"changeOnHold",{get:function(){return this._changeOnHold},set:function(e){this._changeOnHold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"renderOnlyVisible",{get:function(){return this._renderOnlyVisible},set:function(e){this._renderOnlyVisible=e,this._renderer.render()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"virtual",{get:function(){return this._virtualManager},enumerable:!1,configurable:!0}),Object.defineProperty(t,"autoInit",{get:function(){return this._autoInit},enumerable:!1,configurable:!0}),Object.defineProperty(t,"autoResize",{get:function(){return this._autoResize},set:function(e){this._autoResize=e,e?this._autoResizer.enable():this._autoResizer.disable()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"useResizeObserver",{get:function(){return this._useResizeObserver},set:function(e){this._useResizeObserver=e,this._autoResize&&this._autoResizer.enable()}
27,enumerable:!1,configurable:!0}),Object.defineProperty(t,"resizeDebounce",{get:function(){return this._resizeDebounce},enumerable:!1,configurable:!0}),Object.defineProperty(t,"maxResizeDebounce",{get:function(){return this._maxResizeDebounce},enumerable:!1,configurable:!0}),Object.defineProperty(t,"useFractionalSize",{get:function(){return this._useFractionalSize},enumerable:!1,configurable:!0}),Object.defineProperty(t,"externalRenderer",{get:function(){return this._externalRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(t,"renderExternal",{get:function(){return this._renderExternal},enumerable:!1,configurable:!0}),t.init=function(){var e=this;if(this._initialized)return Promise.resolve();var n=this._camera,i=this._renderer,o=this._control,s=this._virtualManager,l=this.trigger,u=this._preventEventsBeforeInit;return n.init(),s.init(),i.init(this),o.init(this),u&&(this.trigger=function(){return e}),this._initialResize(),this._moveToInitialPanel(),this._autoResize&&this._autoResizer.enable(),this._preventClickOnDrag&&o.controller.addPreventClickHandler(),this._disableOnInit&&this.disableInput(),i.checkPanelContentsReady(i.panels),this._initialized=!0,i.render().then(function(){e._plugins.forEach(function(c){return c.init(e)}),u&&(e.trigger=l),e.trigger(new T(O.READY))})},t.destroy=function(){this.off(),this._autoResizer.disable(),this._control.destroy(),this._camera.destroy(),this._renderer.destroy(),this._plugins.forEach(function(e){return e.destroy()}),this._initialized=!1},t.prev=function(e){var n,i,o;return e===void 0&&(e=this._duration),this.moveTo((o=(i=(n=this._control.activePanel)===null||n===void 0?void 0:n.prev())===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:-1,e,x.PREV)},t.next=function(e){var n,i,o;return e===void 0&&(e=this._duration),this.moveTo((o=(i=(n=this._control.activePanel)===null||n===void 0?void 0:n.next())===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:this._renderer.panelCount,e,x.NEXT)},t.moveTo=function(e,n,i){n===void 0&&(n=this._duration),i===void 0&&(i=x.NONE);var o=this._renderer,s=o.panelCount,l=o.getPanel(e);return l?this._control.animating?Promise.reject(new R(w.ANIMATION_ALREADY_PLAYING,I.ANIMATION_ALREADY_PLAYING)):(this._control.holding&&this._control.controller.release(),this._control.moveToPanel(l,{duration:n,direction:i})):Promise.reject(new R(w.INDEX_OUT_OF_RANGE(e,0,s-1),I.INDEX_OUT_OF_RANGE))},t.updateAnimation=function(e,n,i){if(this._control.animating){var o=this._renderer,s=o.panelCount,l=o.getPanel(e);if(!l)throw new R(w.INDEX_OUT_OF_RANGE(e,0,s-1),I.INDEX_OUT_OF_RANGE);this._control.updateAnimation(l,n,i)}},t.stopAnimation=function(){this._control.animating&&this._control.stopAnimation()},t.getPanel=function(e){return this._renderer.getPanel(e)},t.enableInput=function(){return this._control.enable(),this},t.disableInput=function(){return this._control.disable(),this},t.getStatus=function(e){var n,i,o=e===void 0?{}:e,s=o.index,l=s===void 0?!0:s,u=o.position,c=u===void 0?!0:u,f=o.includePanelHTML,d=f===void 0?!1:f,h=o.visiblePanelsOnly,v=h===void 0?!1:h,g=this._camera,p=v?this.visiblePanels:this.panels,_={panels:p.map(function(y){var C={index:y.index};return d&&(C.html=y.element.outerHTML),C})};if(l&&(_.index=this.index),c){var m=g.findNearestAnchor(g.position);m&&(_.position={panel:m.panel.index,progressInPanel:g.getProgressInPanel(m.panel)})}if(v){var b=this.visiblePanels;_.visibleOffset=(i=(n=b[0])===null||n===void 0?void 0:n.index)!==null&&i!==void 0?i:0}return _},t.setStatus=function(e){var n;if(!this._initialized)throw new R(w.NOT_INITIALIZED,I.NOT_INITIALIZED);var i=e.index,o=e.position,s=e.visibleOffset,l=e.panels,u=this._renderer,c=this._control;if(!((n=l[0])===null||n===void 0)&&n.html&&!this._renderExternal&&(u.batchRemove({index:0,deleteCount:this.panels.length,hasDOMInElements:!0}),u.batchInsert({index:0,elements:pn(l.map(function(p){return p.html})),hasDOMInElements:!0})),i!=null){var f=s?i-s:i;this.moveTo(f,0).catch(function(){})}if(o&&this._moveType===se.FREE_SCROLL){var d=o.panel,h=o.progressInPanel,f=s?d-s:d,v=u.panels[f].range,g=v.min+(v.max-v.min)*h;c.moveToPosition(g,0).catch(function(){})}},t.addPlugins=function(){for(var e,n=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];
27return this._initialized&&i.forEach(function(s){return s.init(n)}),(e=this._plugins).push.apply(e,M(i)),this},t.removePlugins=function(){for(var e=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return n.forEach(function(o){var s=wa(e._plugins,function(l){return l===o});s>=0&&(o.destroy(),e._plugins.splice(s,1))}),this},t.resize=function(){return fe(this,void 0,void 0,function(){var e,n,i,o,s,l,u,c,f,d,h;return he(this,function(v){switch(v.label){case 0:return e=this._viewport,n=this._renderer,i=this._camera,o=this._control,s=o.activePanel,l=e.width,u=e.height,c=s?i.getProgressInPanel(s):0,this.trigger(new T(O.BEFORE_RESIZE,{width:l,height:u,element:e.element})),e.resize(),[4,n.forceRenderAllPanels()];case 1:return v.sent(),this._initialized?(n.updatePanelSize(),i.updateAlignPos(),i.updateRange(),i.updateAnchors(),i.updateAdaptiveHeight(),i.updatePanelOrder(),i.updateOffset(),[4,n.render()]):[2];case 2:return v.sent(),this._initialized?(o.animating||(o.updatePosition(c),o.updateInput()),f=e.width,d=e.height,h=f!==l||d!==u,this.trigger(new T(O.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:l,height:u},sizeChanged:h,element:e.element})),[2]):[2]}})})},t.append=function(e){return this.insert(this._renderer.panelCount,e)},t.prepend=function(e){return this.insert(0,e)},t.insert=function(e,n){if(this._renderExternal)throw new R(w.NOT_ALLOWED_IN_FRAMEWORK,I.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchInsert({index:e,elements:pn(n),hasDOMInElements:!0})},t.remove=function(e,n){if(n===void 0&&(n=1),this._renderExternal)throw new R(w.NOT_ALLOWED_IN_FRAMEWORK,I.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchRemove({index:e,deleteCount:n,hasDOMInElements:!0})},t._createControl=function(){var e,n=this._moveType,i=Object.keys(se).map(function(l){return se[l]}),o=Array.isArray(n)?n[0]:n,s=Array.isArray(n)?(e=n[1])!==null&&e!==void 0?e:{}:{};if(!Ue(i,o))throw new R(w.WRONG_OPTION("moveType",JSON.stringify(n)),I.WRONG_OPTION);switch(o){case se.SNAP:return new Va(s);case se.FREE_SCROLL:return new Ha(s);case se.STRICT:return new Ua(s)}},t._createCamera=function(){return this._circular&&this._bound&&console.warn('"circular" and "bound" option cannot be used together, ignoring bound.'),new Xa(this,{align:this._align})},t._createRenderer=function(){var e=this._externalRenderer;return this._virtual&&this._panelsPerView<=0&&console.warn('"virtual" and "panelsPerView" option should be used together, ignoring virtual.'),e||(this._renderExternal?this._createExternalRenderer():this._createVanillaRenderer())},t._createExternalRenderer=function(){var e=this._renderExternal,n=e.renderer,i=e.rendererOptions;return new n(U({align:this._align},i))},t._createVanillaRenderer=function(){var e=this.virtualEnabled;return new Ga({align:this._align,strategy:e?new ar:new ir({providerCtor:Na})})},t._moveToInitialPanel=function(){var e=this._renderer,n=this._control,i=this._camera,o=e.getPanel(this._defaultIndex)||e.getPanel(0);if(o){var s=i.findNearestAnchor(o.position),l=s&&o.index!==s.panel.index?s.panel:o;if(n.setActive(l,null,!1),!s)throw new R(w.POSITION_NOT_REACHABLE(l.position),I.POSITION_NOT_REACHABLE);var u=l.position;i.canReach(l)||(u=s.position),i.lookAt(u),n.updateInput(),i.updateOffset()}},t._initialResize=function(){var e=this._viewport,n=this._renderer,i=this._camera,o=this._control;this.trigger(new T(O.BEFORE_RESIZE,{width:0,height:0,element:e.element})),e.resize(),n.updatePanelSize(),i.updateAlignPos(),i.updateRange(),i.updateAnchors(),i.updateOffset(),o.updateInput();var s=e.width,l=e.height,u=s!==0||l!==0;this.trigger(new T(O.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:0,height:0},sizeChanged:u,element:e.element}))},r.VERSION="4.11.4",r}(ne),$a=function(a,r){[ne.prototype,or.prototype].forEach(function(t){Object.getOwnPropertyNames(t).filter(function(e){return!a[e]&&e.indexOf("_")!==0&&e!=="constructor"}).forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);if(n.value)Object.defineProperty(a,e,{value:function(){for(var o,s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return(o=n.value).call.apply(o,M([this[r]],s))}});else{var i={};n.get&&(i.get=function(){var o,s=this[r];return s&&((o=n.get)===null||o===void 0?void 0:o.call(s))}),n.set&&(i.set=function(){for(var o,s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return(o=n.set)===null||o===void 0?void 0:o.call.apply(o,M([this[r]],s))}),Object.defineProperty(a,e,i)}})})},Ka=function(a,r,t){var e=a.renderer,n=e.panels,i=M(r.prevList),o=[],s=[];if(r.removed.length>0){var l=-1,u=-1;r.removed.forEach(function(h){l<0&&(l=h),u>=0&&h!==u-1&&(s.push.apply(s,M(xn(e,u,l+1))),l=h),u=h,i.splice(h,1)}),s.push.apply(s,M(xn(e,u,l+1)))}if(r.ordered.forEach(function(h){var v=At(h,2),g=v[0],p=v[1],_=n.splice(g,1)[0];n.splice(p,0,_)}),r.ordered.length>0&&(n.forEach(function(h,v){var g=v-h.index;g>0?h.increaseIndex(g):h.decreaseIndex(-g)}),n.sort(function(h,v){return h.index-v.index}
27),n.forEach(function(h){h.updatePosition()})),r.added.length>0){var c=-1,f=-1,d=t.slice(i.length);r.added.forEach(function(h,v){c<0&&(c=v),f>=0&&h!==f+1?(o.push.apply(o,M(On(e,r,d,c,v+1))),c=-1,f=-1):f=h}),c>=0&&o.push.apply(o,M(On(e,r,d,c)))}(r.added.length>0||r.removed.length>0)&&e.updateAfterPanelChange(o,s)},On=function(a,r,t,e,n){return a.batchInsertDefer.apply(a,M(r.added.slice(e,n).map(function(i,o){return{index:i,elements:[t[o]],hasDOMInElements:!1}})))},xn=function(a,r,t){var e=a.panels.slice(r,t);return a.batchRemoveDefer({index:r,deleteCount:e.length,hasDOMInElements:!1})},qa=function(a,r){var t=r.removed.reduce(function(n,i){return n[i]=!0,n},{}),e=r.maintained.reduce(function(n,i){var o=At(i,2),s=o[0],l=o[1];return n[s]=l,n},{});return M(a.panels.filter(function(n){return!t[n.index]}).sort(function(n,i){return n.position+n.offset-(i.position+i.offset)}).map(function(n){return r.list[e[n.index]]}),r.added.map(function(n){return r.list[n]}))},Za=function(a,r,t){a===void 0&&(a=K.CENTER),r===void 0&&(r=!0);var e=Ja(a),n=Qa(a);if(n==null)return"";var i="calc("+e+" - ("+(t||"0px")+" * "+n.percentage+") - "+n.absolute+"px)";return r?"translate("+i+")":"translate(0, "+i+")"},Ja=function(a){var r=typeof a=="object"?a.camera:a;return sr(r)},Qa=function(a){var r=typeof a=="object"?a.panel:a;return Qn(sr(r))},sr=function(a){if(typeof a=="number")return a+"px";switch(a){case K.CENTER:return"50%";case K.NEXT:return"100%";case K.PREV:return"0%";default:return a}};/*! ***************************************************************************** 28Copyright (c) Microsoft Corporation. 29 30Permission to use, copy, modify, and/or distribute this software for any 31purpose with or without fee is hereby granted. 32 33THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 34REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 35AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 36INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 37LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 38OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 39PERFORMANCE OF THIS SOFTWARE. 40***************************************************************************** */var Et=function(a,r){return Et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Et(a,r)};function eo(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Et(a,r);function t(){this.constructor=a}a.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var Ge=function(){return Ge=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},Ge.apply(this,arguments)};function to(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t}function Tn(a,r,t,e){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(e.next(c))}catch(f){o(f)}}function l(c){try{u(e.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):n(c.value).then(s,l)}u((e=e.apply(a,[])).next())})}function Rn(a,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(e)throw new TypeError("Generator is already executing.");for(;t;)try{if(e=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){t.label=u[1];break}if(u[0]===6&&t.label<i[1]){t.label=i[1],i=u;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(u);break}i[2]&&t.ops.pop(),t.trys.pop();continue}u=r.call(a,t)}catch(c){u=[6,c],n=0}finally{e=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function rt(a,r,t){for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))}var no={viewportTag:{type:String,default:"div",required:!1},cameraTag:{type:String,default:"div",required:!1},cameraClass:{type:String,default:"",required:!1},hideBeforeInit:{type:Boolean,default:!1,required:!1},firstPanelSize:{type:String,required:!1},options:{type:Object,default:function(){return{}},required:!1},plugins:{type:Array,default:function(){return[]},required:!1},status:{type:Object,required:!1}},ro=function(a){eo(r,a);function r(e){var n=a.call(this,e)||this;return n._vueFlicking=e.vueFlicking,n}var t=r.prototype;return t.render=function(){return Tn(this,void 0,void 0,function(){var e,n,i,o=this;return Rn(this,function(s){return e=P(this._flicking),n=this._vueFlicking,i=this._strategy,i.updateRenderingPanels(e),i.renderPanels(e),[2,new Promise(function(l){n.renderEmitter.once("render",function(){o._afterRender(),l()}),n.$forceUpdate()})]})})},t.forceRenderAllPanels=function(){return Tn(this,void 0,void 0,function(){var e;return Rn(this,function(n){switch(n.label){case 0:return e=this._vueFlicking,[4,a.prototype.forceRenderAllPanels.call(this)];case 1:return n.sent(),[2,new Promise(function(i){e.renderEmitter.once("render",i),e.$forceUpdate()})]}})})},t._collectPanels=function(){var e=P(this._flicking),n=this._vueFlicking,i=n.$refs,o=Object.keys(i).map(function(s){return i[s]});this._panels=this._strategy.collectPanels(e,o)},t._createPanel=function(e,n){return this._strategy.createPanel(e,n)},r}(Ya),io=yt({data:function(){return{hide:!1}},render:function(){if(!(this.hide||!this.$slots.default))return this.$slots.default()}}),ao=function(){function a(t){this._el=t}var r=a.prototype;return Object.defineProperty(r,"rendered",{get:function(){return!this._el.hide}
40,enumerable:!1,configurable:!0}),Object.defineProperty(r,"element",{get:function(){var t=this._el.$el.nextSibling;return t&&t.nodeType===Node.ELEMENT_NODE&&(this._cachedElement=t),this._cachedElement},enumerable:!1,configurable:!0}),r.show=function(){this._el.hide=!1},r.hide=function(){this._el.hide=!0},a}(),ho=yt({props:no,components:{Panel:io},data:function(){return{}},created:function(){var a=this;this.vanillaFlicking=null,this.renderEmitter=new ne,this.diffResult=null,this.getPanels=function(){var r=jr(),t=r==null?void 0:r.ctx,e=a.vanillaFlicking,n=a.getSlots(),i=t==null?void 0:t.diffResult,o=i?qa(e,i):n,s=Lr("Panel"),l=o.map(function(u,c){return ke(s,{key:u.key,ref:c.toString()},function(){return u})});return l},this.getVirtualPanels=function(){var r=a.options,t=r.virtual.panelClass,e=t===void 0?"flicking-panel":t,n=r.panelsPerView,i=a.vanillaFlicking,o=i&&i.initialized,s=o?i.renderer.strategy.getRenderingIndexesByOrder(i):Ie(n+1),l=o&&i.panels[0],u=l?i.horizontal?{width:l.size}:{height:l.size}:{};return s.map(function(c){return ke("div",{key:c,ref:c.toString(),class:e,style:u,"data-element-index":c})})},$a(this,"vanillaFlicking")},mounted:function(){var a=this,r,t=this.options,e=this.$el,n={vueFlicking:this,align:t.align,strategy:t.virtual&&((r=t.panelsPerView)!==null&&r!==void 0?r:-1)>0?new ar:new ir({providerCtor:ao})},i=new or(e,Ge(Ge({},t),{externalRenderer:new ro(n)}));this.vanillaFlicking=i,i.once(O.READY,function(){a.$forceUpdate()});var o=this.getSlots();this.slotDiffer=new cn(o,function(s){return s.key}),this.pluginsDiffer=new cn,this.bindEvents(),this.checkPlugins(),this.status&&i.setStatus(this.status)},beforeUnmount:function(){var a;(a=this.vanillaFlicking)===null||a===void 0||a.destroy()},beforeMount:function(){this.fillKeys()},beforeUpdate:function(){this.fillKeys(),this.diffResult=this.slotDiffer.update(this.getSlots())},updated:function(){var a=this.vanillaFlicking,r=this.diffResult;if(this.checkPlugins(),this.renderEmitter.trigger("render"),!(!r||!(a!=null&&a.initialized))){var t=this.getChildren();Ka(a,r,t),(r.added.length>0||r.removed.length>0)&&this.$forceUpdate(),this.diffResult=void 0}},render:function(){var a,r,t=this.vanillaFlicking,e=this.options,n=t&&t.initialized,i=t?t.horizontal:(r=this.options.horizontal)!==null&&r!==void 0?r:!0,o={class:{"flicking-viewport":!0,vertical:!i,"flicking-hidden":this.hideBeforeInit&&!n}},s={class:(a={"flicking-camera":!0},a[this.cameraClass]=!!this.cameraClass,a),style:!n&&this.firstPanelSize?{transform:Za(this.options.align,this.options.horizontal,this.firstPanelSize)}:{}},l=e.virtual&&e.panelsPerView&&e.panelsPerView>0?this.getVirtualPanels:this.getPanels,u=this.$slots.viewport?this.$slots.viewport():[];return ke(this.viewportTag,o,rt([ke(this.cameraTag,s,{default:l})],u))},methods:{getSlots:function(){var a=this,r=this.$slots.default?this.$slots.default():[];return r.reduce(function(t,e){return rt(rt([],t,!0),a.getElementVNodes(e))},[]).filter(function(t){return t.type!==Mr&&t.type!==zr})},getElementVNodes:function(a,r){var t=this;return r===void 0&&(r=[]),a.type===Fr&&Array.isArray(a.children)?a.children.filter(function(e){return e&&typeof e=="object"}).forEach(function(e){return t.getElementVNodes(e,r)}):r.push(a),r},bindEvents:function(){var a=this,r=this.vanillaFlicking,t=Object.keys(O).map(function(e){return O[e]});t.forEach(function(e){r.on(e,function(n){n.currentTarget=a,a.$emit(e.replace(/([A-Z])/g,"-$1").toLowerCase(),n)})})},checkPlugins:function(){var a,r,t=this.pluginsDiffer.update(this.plugins),e=t.list,n=t.added,i=t.removed,o=t.prevList;(a=this.vanillaFlicking).addPlugins.apply(a,n.map(function(s){return e[s]})),(r=this.vanillaFlicking).removePlugins.apply(r,i.map(function(s){return o[s]}))},fillKeys:function(){var a=this.getSlots();a.forEach(function(r,t){r.key==null&&(r.key="$_".concat(t))})},getChildren:function(){var a=this.$refs;return Object.keys(a).map(function(r){return a[r]})}},watch:{options:{handler:function(a){var r=this.vanillaFlicking;if(r){a.virtual;var t=to(a,["virtual"]);for(var e in t)e in r&&r[e]!==t[e]&&(r[e]=t[e])}},deep:!0,immediate:!0}}}),G={CLICK:"click",MOUSE_DOWN:"mousedown",TOUCH_START:"touchstart"},it={PREV_SELECTOR:".flicking-arrow-prev",NEXT_SELECTOR:".flicking-arrow-next",DISABLED_CLASS:"flicking-arrow-disabled"},D={SELECTOR:".flicking-pagination",PREFIX:"flicking-pagination",BULLET_WRAPPER_SUFFIX:"bullets",BULLET_SUFFIX:"bullet",BULLET_ACTIVE_SUFFIX:"bullet-active",FRACTION_WRAPPER_SUFFIX:"fraction",FRACTION_CURRENT_SUFFIX:"fraction-current",FRACTION_TOTAL_SUFFIX:"fraction-total",SCROLL_UNINIT_SUFFIX:"uninitialized",SCROLL_WRAPPER_SUFFIX:"scroll",SCROLL_SLIDER_SUFFIX:"slider",SCROLL_PREV_SUFFIX:"bullet-prev",SCROLL_NEXT_SUFFIX:"bullet-next",TYPE:{BULLET:"bullet",FRACTION:"fraction",SCROLL:"scroll"}},W=function(a,r){if(a)if(a.classList)a.classList.add(r);else{var t=a.className.split(" ");t.indexOf(r)<0&&(a.className=a.className+" "+r)}},Ce=function(a,r){if(a)if(a.classList)a.classList.remove(r);else{var t=new RegExp("( |^)"+r+"( |$)","g");a.className.replace(t," ")}},In=function(a,r,t){var e=r.querySelector(a);if(!e)throw new Error("[Flicking-"+t+"] Couldn't find element with the given selector: "+a);return e},vo=function(){function a(t){var e=this,n=t===void 0?{}:t,i=n.parentEl,o=i===void 0?null:i,s=n.prevElSelector,l=s===void 0?it.PREV_SELECTOR:s,u=n.nextElSelector,c=u===void 0?it.NEXT_SELECTOR:u,f=n.disabledClass,d=f===void 0?it.DISABLED_CLASS:f,h=n.moveCount,v=h===void 0?1:h,g=n.moveByViewportSize,p=g===void 0?!1:g;this._flicking=null,this._preventInputPropagation=function(_){_.stopPropagation()},this._onPrevClick=function(){var _=e._flicking,m=_.camera,b=m.anchorPoints;if(!(_.animating||b.length<=0)){var y=b[0],C=e._moveCount;if(e._moveByViewportSize)_.control.moveToPosition(m.position-m.size,_.duration).catch(e._onCatch);else if(_.circularEnabled){for(var N=_.currentPanel,z=0;z<C;z++)N=N.prev();N.focus().catch(e._onCatch)}else _.index>y.panel.index?_.moveTo(Math.max(_.index-C,y.panel.index)).catch(e._onCatch):m.position>m.range.min&&_.moveTo(_.index).catch(e._onCatch)}},this._onNextClick=function(){var _=e._flicking,m=_.camera,b=m.anchorPoints;if(!(_.animating||b.length<=0)){var y=b[b.length-1],C=e._moveCount;if(e._moveByViewportSize)_.control.moveToPosition(m.position+m.size,_.duration).catch(e._onCatch);else if(_.circularEnabled){for(var N=_.currentPanel,z=0;z<C;z++)N=N.next();N.focus().catch(e._onCatch)}else _.index<y.panel.index?_.moveTo(Math.min(_.index+C,y.panel.index)).catch(e._onCatch):m.position>m.range.min&&_.moveTo(_.index).catch(e._onCatch)}},this._onAnimation=function(){var _=e._flicking,m=_.camera,b=_.control.controller;_.holding?e._updateClass(m.position):e._updateClass(b.animatingContext.end)},this._onCatch=function(_){if(!(_ instanceof R))throw _},this._parentEl=o,this._prevElSelector=l,this._nextElSelector=c,this._disabledClass=d,this._moveCount=v,this._moveByViewportSize=p}
40var r=a.prototype;return Object.defineProperty(r,"prevEl",{get:function(){return this._prevEl},enumerable:!1,configurable:!0}),Object.defineProperty(r,"nextEl",{get:function(){return this._nextEl},enumerable:!1,configurable:!0}),Object.defineProperty(r,"parentEl",{get:function(){return this._parentEl},set:function(t){this._parentEl=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"prevElSelector",{get:function(){return this._prevElSelector},set:function(t){this._prevElSelector=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"nextElSelector",{get:function(){return this._nextElSelector},set:function(t){this._nextElSelector=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"disabledClass",{get:function(){return this._disabledClass},set:function(t){this._disabledClass=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"moveCount",{get:function(){return this._moveCount},set:function(t){this._moveCount=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"moveByViewportSize",{get:function(){return this._moveByViewportSize},set:function(t){this._moveByViewportSize=t},enumerable:!1,configurable:!0}),r.init=function(t){var e=this;this._flicking&&this.destroy(),this._flicking=t,t.on(O.MOVE,this._onAnimation);var n=this._parentEl?this._parentEl:t.element,i=In(this._prevElSelector,n,"Arrow"),o=In(this._nextElSelector,n,"Arrow");[G.MOUSE_DOWN,G.TOUCH_START].forEach(function(s){i.addEventListener(s,e._preventInputPropagation,{passive:!0}),o.addEventListener(s,e._preventInputPropagation,{passive:!0})}),i.addEventListener(G.CLICK,this._onPrevClick),o.addEventListener(G.CLICK,this._onNextClick),this._prevEl=i,this._nextEl=o,this.update()},r.destroy=function(){var t=this,e=this._flicking;if(e){e.off(O.MOVE,this._onAnimation);var n=this._prevEl,i=this._nextEl;[G.MOUSE_DOWN,G.TOUCH_START].forEach(function(o){n.removeEventListener(o,t._preventInputPropagation),i.removeEventListener(o,t._preventInputPropagation)}),n.removeEventListener(G.CLICK,this._onPrevClick),i.removeEventListener(G.CLICK,this._onNextClick),this._flicking=null}},r.update=function(){this._updateClass(this._flicking.camera.position)},r._updateClass=function(t){var e=this._flicking,n=this._disabledClass,i=this._prevEl,o=this._nextEl,s=e.camera.range,l=e.circularEnabled?!1:t<=s.min,u=e.circularEnabled?!1:t>=s.max;l?W(i,n):Ce(i,n),u?W(o,n):Ce(o,n)},a}();/*! ***************************************************************************** 41Copyright (c) Microsoft Corporation. 42 43Permission to use, copy, modify, and/or distribute this software for any 44purpose with or without fee is hereby granted. 45 46THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 47REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 48AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 49INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 50LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 51OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 52PERFORMANCE OF THIS SOFTWARE. 53***************************************************************************** */var Pt=function(a,r){return Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Pt(a,r)};function Lt(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Pt(a,r);function t(){this.constructor=a}a.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function oo(a,r,t){if(arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||r)}var Mt=function(){function a(t){var e=t.flicking,n=t.pagination,i=t.wrapper;this._flicking=e,this._pagination=n,this._wrapper=i}var r=a.prototype;return r._createBulletFromString=function(t,e){var n=document.createRange(),i=n.createContextualFragment(t),o=i.firstChild;return this._addBulletEvents(o,e),o},r._addBulletEvents=function(t,e){var n=this,i=this._flicking.camera.anchorPoints,o=i[e].panel.index;t.addEventListener(G.MOUSE_DOWN,function(s){s.stopPropagation()}),t.addEventListener(G.TOUCH_START,function(s){s.stopPropagation()},{passive:!0}),t.addEventListener(G.CLICK,function(){n._flicking.moveTo(o).catch(function(s){if(!(s instanceof R))throw s})})},a}(),so=function(a){Lt(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e._bullets=[],e._prevIndex=-1,e}var t=r.prototype;return Object.defineProperty(t,"_bulletClass",{get:function(){var e=this._pagination;return e.classPrefix+"-"+D.BULLET_SUFFIX}
53,enumerable:!1,configurable:!0}),Object.defineProperty(t,"_activeClass",{get:function(){var e=this._pagination;return e.classPrefix+"-"+D.BULLET_ACTIVE_SUFFIX},enumerable:!1,configurable:!0}),t.destroy=function(){this._bullets=[],this._prevIndex=-1},t.render=function(){var e=this,n=this._flicking,i=this._pagination,o=this._wrapper,s=this._bulletClass,l=this._activeClass,u=i.renderBullet,c=i.renderActiveBullet,f=i.classPrefix+"-"+D.BULLET_WRAPPER_SUFFIX,d=n.camera.anchorPoints;W(o,f),o.innerHTML=d.map(function(v,g){return c&&v.panel.index===n.index?c(s,g):u(s,g)}).join(` 54`);var h=[].slice.call(o.children);h.forEach(function(v,g){var p=d[g];p.panel.index===n.index&&(W(v,l),e._prevIndex=g),e._addBulletEvents(v,g)}),this._bullets=h},t.update=function(e){var n=this._flicking,i=this._pagination,o=this._wrapper,s=this._bullets,l=this._bulletClass,u=this._activeClass,c=this._prevIndex,f=n.camera.anchorPoints,d=i.renderBullet,h=i.renderActiveBullet;if(!(f.length<=0)){var v=f[0].panel.index,g=e-v;if(c!==g){if(h){var p=s[c];if(p){var _=this._createBulletFromString(d(l,c),c);p.parentElement.replaceChild(_,p),s[c]=_}var m=s[g],b=this._createBulletFromString(h(l+" "+u,g),g);o.replaceChild(b,m),s[g]=b}else{var m=s[g],p=s[c];p&&Ce(p,u),W(m,u)}this._prevIndex=g}}},r}(Mt),lo=function(a){Lt(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e._prevIndex=-1,e._prevTotal=-1,e}var t=r.prototype;return t.destroy=function(){this._prevIndex=-1,this._prevTotal=-1},t.render=function(){var e=this._flicking,n=this._wrapper,i=this._pagination,o=i.classPrefix+"-"+D.FRACTION_WRAPPER_SUFFIX,s=i.classPrefix+"-"+D.FRACTION_CURRENT_SUFFIX,l=i.classPrefix+"-"+D.FRACTION_TOTAL_SUFFIX;W(n,o),n.innerHTML=i.renderFraction(s,l),this.update(e.index)},t.update=function(e){var n=this._flicking,i=this._wrapper,o=this._pagination,s=n.camera.anchorPoints,l=s.length>0?e-s[0].panel.index+1:0,u=s.length;if(!(l===this._prevIndex&&u===this._prevTotal)){var c="."+o.classPrefix+"-"+D.FRACTION_CURRENT_SUFFIX,f="."+o.classPrefix+"-"+D.FRACTION_TOTAL_SUFFIX,d=i.querySelector(c),h=i.querySelector(f);d.innerHTML=o.fractionCurrentFormat(l),h.innerHTML=o.fractionTotalFormat(u),this._prevIndex=l,this._prevTotal=u}},r}(Mt),uo=function(a){Lt(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e._bullets=[],e._bulletSize=0,e._previousIndex=-1,e._sliderIndex=-1,e.moveTo=function(n){var i=e._pagination,o=e._wrapper.firstElementChild,s=e._bulletSize,l=s*i.bulletCount;o.style.transform="translate("+(l/2-(n+.5)*s)+"px)",e._sliderIndex=n},e}var t=r.prototype;return t.destroy=function(){this._bullets=[],this._bulletSize=0,this._previousIndex=-1,this._sliderIndex=-1},t.render=function(){var e=this,n=this._wrapper,i=this._flicking,o=this._pagination,s=o.renderBullet,l=i.camera.anchorPoints,u=o.classPrefix+"-"+D.SCROLL_WRAPPER_SUFFIX,c=o.classPrefix+"-"+D.BULLET_SUFFIX,f=o.classPrefix+"-"+D.SCROLL_SLIDER_SUFFIX,d=o.classPrefix+"-"+D.SCROLL_UNINIT_SUFFIX,h=document.createElement("div");W(h,f),W(n,d),W(n,u),n.appendChild(h),h.innerHTML=l.map(function(_,m){return s(c,m)}).join(` 55`);var v=[].slice.call(h.children);if(v.forEach(function(_,m){e._addBulletEvents(_,m)}),!(v.length<=0)){var g=getComputedStyle(v[0]),p=v[0].clientWidth+parseFloat(g.marginLeft)+parseFloat(g.marginRight);n.style.width=p*o.bulletCount+"px",this._bullets=v,this._bulletSize=p,this._previousIndex=-1,this.update(this._flicking.index),window.requestAnimationFrame(function(){Ce(n,d)})}},t.update=function(e){var n=this._pagination,i=this._flicking,o=this._bullets,s=this._previousIndex,l=n.renderBullet,u=n.renderActiveBullet,c=i.camera.anchorPoints,f=c[0].panel.index,d=e-f;if(!(c.length<=0)){var h=n.classPrefix+"-"+D.BULLET_SUFFIX,v=n.classPrefix+"-"+D.BULLET_ACTIVE_SUFFIX,g=n.classPrefix+"-"+D.SCROLL_PREV_SUFFIX,p=n.classPrefix+"-"+D.SCROLL_NEXT_SUFFIX,_=function(j){return""+g+(j>1?j:"")},m=function(j){return""+p+(j>1?j:"")},b=new RegExp("^"+g),y=new RegExp("^"+p);if(u){var C=o[s];if(C){var N=this._createBulletFromString(l(h,s),s);C.parentElement.replaceChild(N,C),o[s]=N}var z=o[d];if(z){var Y=this._createBulletFromString(u(h,d),d);z.parentElement.replaceChild(Y,z),o[d]=Y}}
55o.forEach(function(j,q){for(var L=q-d,X=j.className.split(" "),Z=0,me=X;Z<me.length;Z++){var re=me[Z];(re===v||b.test(re)||y.test(re))&&Ce(j,re)}L===0?W(j,v):L>0?W(j,m(Math.abs(L))):W(j,_(Math.abs(L)))}),n.scrollOnChange(d,{total:o.length,prevIndex:s,sliderIndex:this._sliderIndex,direction:d>s?x.NEXT:x.PREV,bullets:oo([],o),moveTo:this.moveTo}),this._previousIndex=d}},r}(Mt),go=function(){function a(t){var e=this,n=t===void 0?{}:t,i=n.parentEl,o=i===void 0?null:i,s=n.selector,l=s===void 0?D.SELECTOR:s,u=n.type,c=u===void 0?D.TYPE.BULLET:u,f=n.classPrefix,d=f===void 0?D.PREFIX:f,h=n.bulletCount,v=h===void 0?5:h,g=n.renderBullet,p=g===void 0?function(L){return'<span class="'+L+'"></span>'}:g,_=n.renderActiveBullet,m=_===void 0?null:_,b=n.renderFraction,y=b===void 0?function(L,X){return'<span class="'+L+'"></span>/<span class="'+X+'"></span>'}:b,C=n.fractionCurrentFormat,N=C===void 0?function(L){return L.toString()}:C,z=n.fractionTotalFormat,Y=z===void 0?function(L){return L.toString()}:z,j=n.scrollOnChange,q=j===void 0?function(L,X){return X.moveTo(L)}:j;this._flicking=null,this.update=function(){e._removeAllChilds(),e._renderer.render()},this._onIndexChange=function(L){e._renderer.update(L.index)},this._parentEl=o,this._selector=l,this._type=c,this._classPrefix=d,this._bulletCount=v,this._renderBullet=p,this._renderActiveBullet=m,this._renderFraction=y,this._fractionCurrentFormat=N,this._fractionTotalFormat=Y,this._scrollOnChange=q}var r=a.prototype;return Object.defineProperty(r,"parentEl",{get:function(){return this._parentEl},set:function(t){this._parentEl=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"selector",{get:function(){return this._selector},set:function(t){this._selector=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"classPrefix",{get:function(){return this._classPrefix},enumerable:!1,configurable:!0}),Object.defineProperty(r,"bulletCount",{get:function(){return this._bulletCount},set:function(t){this._bulletCount=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"renderBullet",{get:function(){return this._renderBullet},set:function(t){this._renderBullet=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"renderActiveBullet",{get:function(){return this._renderActiveBullet},set:function(t){this._renderActiveBullet=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"renderFraction",{get:function(){return this._renderFraction},set:function(t){this._renderFraction=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"fractionCurrentFormat",{get:function(){return this._fractionCurrentFormat},set:function(t){this._fractionCurrentFormat=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"fractionTotalFormat",{get:function(){return this._fractionTotalFormat},set:function(t){this._fractionTotalFormat=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"scrollOnChange",{get:function(){return this._scrollOnChange},set:function(t){this._scrollOnChange=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"bulletWrapperclassPrefixClass",{set:function(t){this._classPrefix=t},enumerable:!1,configurable:!0}),r.init=function(t){this._flicking&&this.destroy(),this._flicking=t;var e=this._type,n=this._selector,i=this._parentEl?this._parentEl:t.element,o=i.querySelector(n);if(!o)throw new Error("[Flicking-Pagination] Couldn't find element with the given selector: "+n);this._wrapper=o,this._renderer=this._createRenderer(e),t.on(O.WILL_CHANGE,this._onIndexChange),t.on(O.WILL_RESTORE,this._onIndexChange),t.on(O.PANEL_CHANGE,this.update),this.update()},r.destroy=function(){var t=this._flicking;t&&(t.off(O.WILL_CHANGE,this._onIndexChange),t.off(O.WILL_RESTORE,this._onIndexChange),t.off(O.PANEL_CHANGE,this.update),this._renderer.destroy(),this._removeAllChilds(),this._flicking=null)},r._createRenderer=function(t){var e={flicking:this._flicking,pagination:this,wrapper:this._wrapper};switch(t){case D.TYPE.BULLET:return new so(e);case D.TYPE.FRACTION:return new lo(e);case D.TYPE.SCROLL:return new uo(e);default:throw new Error('[Flicking-Pagination] type "'+t+'" is not supported.')}},r._removeAllChilds=function(){for(var t=this._wrapper;t.firstChild;)t.removeChild(t.firstChild)},a}();export{vo as A,ho as F,go as P,fo as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.