@konnectio/core 4.0.7 → 4.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/ActionField-b87d2fd7.cjs +1 -0
  2. package/dist/{ActionField-5ecfc9dc.js → ActionField-f3d5b218.js} +4 -4
  3. package/dist/ActionField-f3d5b218.js.br +0 -0
  4. package/dist/AvailabilitySkeleton-019ec202.js +150 -0
  5. package/dist/AvailabilitySkeleton-019ec202.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-e288f5be.cjs +1 -0
  7. package/dist/Field-21bb32d7.cjs +1 -0
  8. package/dist/Field-6bfeedce.js +59 -0
  9. package/dist/Field-6bfeedce.js.br +0 -0
  10. package/dist/{NumberField.vue_vue_type_style_index_0_lang-ab747739.js → SelectField.vue_vue_type_style_index_0_lang-701aecad.js} +7743 -6953
  11. package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js.br +0 -0
  12. package/dist/SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs +797 -0
  13. package/dist/TextField-99e69631.cjs +54 -0
  14. package/dist/TextField-b8f4462a.js +9343 -0
  15. package/dist/TextField-b8f4462a.js.br +0 -0
  16. package/dist/ThankYou-add684c1.cjs +66 -0
  17. package/dist/ThankYou-edbf753b.js +14279 -0
  18. package/dist/ThankYou-edbf753b.js.br +0 -0
  19. package/dist/{_commonjsHelpers-aeeeeb92.js → _commonjsHelpers-c5d32002.js} +2 -2
  20. package/dist/{applyGiftCard-d9ab3dcf.cjs → applyGiftCard-c21f13ac.cjs} +1 -1
  21. package/dist/{applyGiftCard-c5e4aaad.js → applyGiftCard-dea77ba6.js} +7 -7
  22. package/dist/applyGiftCard-dea77ba6.js.br +0 -0
  23. package/dist/availability.cjs +2 -0
  24. package/dist/availability.js +236 -0
  25. package/dist/availability.js.br +0 -0
  26. package/dist/components/ErrorMessage.vue.d.ts +5 -0
  27. package/dist/components/ErrorMessage.vue.d.ts.map +1 -0
  28. package/dist/components/Icon.vue.d.ts +1 -1
  29. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
  30. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
  31. package/dist/components/forms/MultiStepForm.vue.d.ts +1 -1
  32. package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
  33. package/dist/components/forms/ReservationFormTest.vue.d.ts +5 -0
  34. package/dist/components/forms/ReservationFormTest.vue.d.ts.map +1 -0
  35. package/dist/components/inputs/grouped/CountryField.vue.d.ts +1 -1
  36. package/dist/components/listings/Base.vue.d.ts +1 -1
  37. package/dist/components/listings/Test.vue.d.ts +1 -1
  38. package/dist/components/side-panels/Base.vue.d.ts +1 -1
  39. package/dist/components/side-panels/Hotel.vue.d.ts +3 -2
  40. package/dist/components/side-panels/Hotel.vue.d.ts.map +1 -1
  41. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +5 -0
  42. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +1 -0
  43. package/dist/components/skeletons/Field.vue.d.ts +5 -0
  44. package/dist/components/skeletons/Field.vue.d.ts.map +1 -0
  45. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +5 -0
  46. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +1 -0
  47. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +5 -0
  48. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +1 -0
  49. package/dist/components/skeletons/Listing.vue.d.ts +5 -0
  50. package/dist/components/skeletons/Listing.vue.d.ts.map +1 -0
  51. package/dist/components/skeletons/_.vue.d.ts +5 -0
  52. package/dist/components/skeletons/_.vue.d.ts.map +1 -0
  53. package/dist/entries/availability.d.ts +3 -2
  54. package/dist/entries/gift-card.d.ts +1 -2
  55. package/dist/entries/hotel.d.ts +0 -2
  56. package/dist/event-2c6a2138.cjs +1 -0
  57. package/dist/{event-a70cffeb.js → event-a9067cf5.js} +91 -91
  58. package/dist/event-a9067cf5.js.br +0 -0
  59. package/dist/event.cjs +2 -0
  60. package/dist/event.js +867 -0
  61. package/dist/event.js.br +0 -0
  62. package/dist/gift-card-validation.cjs +1 -0
  63. package/dist/{gift-card-validation.es.js → gift-card-validation.js} +42 -42
  64. package/dist/gift-card-validation.js.br +0 -0
  65. package/dist/gift-card.cjs +1 -0
  66. package/dist/gift-card.d.ts +0 -2
  67. package/dist/gift-card.js +590 -0
  68. package/dist/gift-card.js.br +0 -0
  69. package/dist/hotel.cjs +19 -0
  70. package/dist/hotel.d.ts +0 -2
  71. package/dist/hotel.js +2981 -0
  72. package/dist/hotel.js.br +0 -0
  73. package/dist/{index-00262c16.js → index-d080b5a0.js} +5 -7
  74. package/dist/index-d080b5a0.js.br +0 -0
  75. package/dist/index-ec04c269.cjs +1 -0
  76. package/dist/layouts/Availability.vue.d.ts +42 -217
  77. package/dist/layouts/GiftCard.vue.d.ts +130 -99
  78. package/dist/layouts/Hotel.vue.d.ts +162 -57
  79. package/dist/{payment-fbffaa6d.cjs → payment-95b2392a.cjs} +2 -2
  80. package/dist/{payment-9e219e9b.js → payment-cce506b8.js} +930 -929
  81. package/dist/payment-cce506b8.js.br +0 -0
  82. package/dist/polyfill.cjs +4 -0
  83. package/dist/polyfill.js +6815 -0
  84. package/dist/polyfill.js.br +0 -0
  85. package/dist/store/availability.d.ts +4 -1
  86. package/dist/style.css +1 -1
  87. package/dist/style.css.br +0 -0
  88. package/package.json +11 -21
  89. package/dist/ActionField-5ecfc9dc.js.br +0 -0
  90. package/dist/ActionField-ae9b1adf.cjs +0 -1
  91. package/dist/HotelAvailabilityForm-0cd1abda.cjs +0 -1
  92. package/dist/HotelAvailabilityForm-a7b6f17e.js +0 -97
  93. package/dist/HotelAvailabilityForm-a7b6f17e.js.br +0 -0
  94. package/dist/NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs +0 -793
  95. package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js.br +0 -0
  96. package/dist/ReCaptchaVuePlugin-05b8ec39.js +0 -376
  97. package/dist/ReCaptchaVuePlugin-05b8ec39.js.br +0 -0
  98. package/dist/ReCaptchaVuePlugin-08ee5d62.cjs +0 -1
  99. package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js +0 -10107
  100. package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js.br +0 -0
  101. package/dist/SelectField.vue_vue_type_style_index_0_lang-5f1087dc.cjs +0 -56
  102. package/dist/ThankYou-1866d8db.js +0 -8547
  103. package/dist/ThankYou-1866d8db.js.br +0 -0
  104. package/dist/ThankYou-5741bcb6.cjs +0 -15
  105. package/dist/applyGiftCard-c5e4aaad.js.br +0 -0
  106. package/dist/availability.cjs.js +0 -1
  107. package/dist/availability.cjs.js.br +0 -0
  108. package/dist/availability.es.js +0 -183
  109. package/dist/availability.es.js.br +0 -0
  110. package/dist/components/LoadingBlock.vue.d.ts +0 -4
  111. package/dist/components/LoadingBlock.vue.d.ts.map +0 -1
  112. package/dist/event-39706438.cjs +0 -1
  113. package/dist/event-a70cffeb.js.br +0 -0
  114. package/dist/event.cjs.js +0 -1
  115. package/dist/event.cjs.js.br +0 -0
  116. package/dist/event.es.js +0 -645
  117. package/dist/event.es.js.br +0 -0
  118. package/dist/gift-card-validation.cjs.js +0 -1
  119. package/dist/gift-card-validation.cjs.js.br +0 -0
  120. package/dist/gift-card-validation.es.js.br +0 -0
  121. package/dist/gift-card.cjs.js +0 -1
  122. package/dist/gift-card.cjs.js.br +0 -0
  123. package/dist/gift-card.es.js +0 -584
  124. package/dist/gift-card.es.js.br +0 -0
  125. package/dist/hotel.cjs.js +0 -19
  126. package/dist/hotel.cjs.js.br +0 -0
  127. package/dist/hotel.es.js +0 -2394
  128. package/dist/hotel.es.js.br +0 -0
  129. package/dist/index-00262c16.js.br +0 -0
  130. package/dist/index-58f3b0cc.cjs +0 -1
  131. package/dist/payment-9e219e9b.js.br +0 -0
  132. package/dist/polyfill.cjs.js +0 -4
  133. package/dist/polyfill.cjs.js.br +0 -0
  134. package/dist/polyfill.es.js +0 -6764
  135. package/dist/polyfill.es.js.br +0 -0
  136. /package/dist/{navigation.cjs.js → navigation.cjs} +0 -0
  137. /package/dist/{navigation.es.js → navigation.js} +0 -0
@@ -0,0 +1,66 @@
1
+ "use strict";const s=require("./SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs"),Br=require("./_commonjsHelpers-6763f629.cjs"),fr=require("./applyGiftCard-c21f13ac.cjs"),es=require("./ActionField-b87d2fd7.cjs"),ts=require("./index-ec04c269.cjs"),dr=require("./payment-95b2392a.cjs");var fi;const _o=typeof window<"u",ns=r=>typeof r=="string",rs=()=>{};_o&&((fi=window?.navigator)!=null&&fi.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Eo(r){return typeof r=="function"?r():s.unref(r)}function is(r){return r}function os(r){return s.getCurrentScope()?(s.onScopeDispose(r),!0):!1}function as(r){s.getCurrentInstance()&&s.onUnmounted(r)}function ss(r){var n;const t=Eo(r);return(n=t?.$el)!=null?n:t}const ls=_o?window:void 0;function Se(...r){let n,t,e,i;if(ns(r[0])||Array.isArray(r[0])?([t,e,i]=r,n=ls):[n,t,e,i]=r,!n)return rs;Array.isArray(t)||(t=[t]),Array.isArray(e)||(e=[e]);const o=[],a=()=>{o.forEach(f=>f()),o.length=0},l=(f,d,v,h)=>(f.addEventListener(d,v,h),()=>f.removeEventListener(d,v,h)),u=s.watch(()=>[ss(n),Eo(i)],([f,d])=>{a(),f&&o.push(...t.flatMap(v=>e.map(h=>l(f,v,h,d))))},{immediate:!0,flush:"post"}),c=()=>{u(),a()};return os(c),c}const di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hi="__vueuse_ssr_handlers__";di[hi]=di[hi]||{};var vi;(function(r){r.UP="UP",r.RIGHT="RIGHT",r.DOWN="DOWN",r.LEFT="LEFT",r.NONE="NONE"})(vi||(vi={}));var us=Object.defineProperty,pi=Object.getOwnPropertySymbols,cs=Object.prototype.hasOwnProperty,fs=Object.prototype.propertyIsEnumerable,gi=(r,n,t)=>n in r?us(r,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[n]=t,ds=(r,n)=>{for(var t in n||(n={}))cs.call(n,t)&&gi(r,t,n[t]);if(pi)for(var t of pi(n))fs.call(n,t)&&gi(r,t,n[t]);return r};const hs={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};ds({linear:is},hs);var mi;const vs=typeof window<"u";vs&&((mi=window?.navigator)!=null&&mi.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ps(r){return typeof r=="function"?r():s.unref(r)}function gs(r){return r}function ms(r){return s.getCurrentScope()?(s.onScopeDispose(r),!0):!1}function ys(r){var n;const t=ps(r);return(n=t?.$el)!=null?n:t}const yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bi="__vueuse_ssr_handlers__";yi[bi]=yi[bi]||{};var _i;(function(r){r.UP="UP",r.RIGHT="RIGHT",r.DOWN="DOWN",r.LEFT="LEFT",r.NONE="NONE"})(_i||(_i={}));var bs=Object.defineProperty,Ei=Object.getOwnPropertySymbols,_s=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Pi=(r,n,t)=>n in r?bs(r,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[n]=t,Ps=(r,n)=>{for(var t in n||(n={}))_s.call(n,t)&&Pi(r,t,n[t]);if(Ei)for(var t of Ei(n))Es.call(n,t)&&Pi(r,t,n[t]);return r};const ws={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Ps({linear:gs},ws);/*!
2
+ * tabbable 6.2.0
3
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
+ */var Po=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],vn=Po.join(","),wo=typeof Element>"u",He=wo?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,pn=!wo&&Element.prototype.getRootNode?function(r){var n;return r==null||(n=r.getRootNode)===null||n===void 0?void 0:n.call(r)}:function(r){return r?.ownerDocument},gn=function r(n,t){var e;t===void 0&&(t=!0);var i=n==null||(e=n.getAttribute)===null||e===void 0?void 0:e.call(n,"inert"),o=i===""||i==="true",a=o||t&&n&&r(n.parentNode);return a},Os=function(n){var t,e=n==null||(t=n.getAttribute)===null||t===void 0?void 0:t.call(n,"contenteditable");return e===""||e==="true"},Oo=function(n,t,e){if(gn(n))return[];var i=Array.prototype.slice.apply(n.querySelectorAll(vn));return t&&He.call(n,vn)&&i.unshift(n),i=i.filter(e),i},To=function r(n,t,e){for(var i=[],o=Array.from(n);o.length;){var a=o.shift();if(!gn(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),u=l.length?l:a.children,c=r(u,!0,e);e.flatten?i.push.apply(i,c):i.push({scopeParent:a,candidates:c})}else{var f=He.call(a,vn);f&&e.filter(a)&&(t||!n.includes(a))&&i.push(a);var d=a.shadowRoot||typeof e.getShadowRoot=="function"&&e.getShadowRoot(a),v=!gn(d,!1)&&(!e.shadowRootFilter||e.shadowRootFilter(a));if(d&&v){var h=r(d===!0?a.children:d.children,!0,e);e.flatten?i.push.apply(i,h):i.push({scopeParent:a,candidates:h})}else o.unshift.apply(o,a.children)}}return i},So=function(n){return!isNaN(parseInt(n.getAttribute("tabindex"),10))},ze=function(n){if(!n)throw new Error("No node provided");return n.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||Os(n))&&!So(n)?0:n.tabIndex},Ts=function(n,t){var e=ze(n);return e<0&&t&&!So(n)?0:e},Ss=function(n,t){return n.tabIndex===t.tabIndex?n.documentOrder-t.documentOrder:n.tabIndex-t.tabIndex},xo=function(n){return n.tagName==="INPUT"},xs=function(n){return xo(n)&&n.type==="hidden"},Cs=function(n){var t=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(e){return e.tagName==="SUMMARY"});return t},ks=function(n,t){for(var e=0;e<n.length;e++)if(n[e].checked&&n[e].form===t)return n[e]},Is=function(n){if(!n.name)return!0;var t=n.form||pn(n),e=function(l){return t.querySelectorAll('input[type="radio"][name="'+l+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=e(window.CSS.escape(n.name));else try{i=e(n.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=ks(i,n.form);return!o||o===n},Ns=function(n){return xo(n)&&n.type==="radio"},Rs=function(n){return Ns(n)&&!Is(n)},As=function(n){var t,e=n&&pn(n),i=(t=e)===null||t===void 0?void 0:t.host,o=!1;if(e&&e!==n){var a,l,u;for(o=!!((a=i)!==null&&a!==void 0&&(l=a.ownerDocument)!==null&&l!==void 0&&l.contains(i)||n!=null&&(u=n.ownerDocument)!==null&&u!==void 0&&u.contains(n));!o&&i;){var c,f,d;e=pn(i),i=(c=e)===null||c===void 0?void 0:c.host,o=!!((f=i)!==null&&f!==void 0&&(d=f.ownerDocument)!==null&&d!==void 0&&d.contains(i))}}return o},wi=function(n){var t=n.getBoundingClientRect(),e=t.width,i=t.height;return e===0&&i===0},Ds=function(n,t){var e=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(n).visibility==="hidden")return!0;var o=He.call(n,"details>summary:first-of-type"),a=o?n.parentElement:n;if(He.call(a,"details:not([open]) *"))return!0;if(!e||e==="full"||e==="legacy-full"){if(typeof i=="function"){for(var l=n;n;){var u=n.parentElement,c=pn(n);if(u&&!u.shadowRoot&&i(u)===!0)return wi(n);n.assignedSlot?n=n.assignedSlot:!u&&c!==n.ownerDocument?n=c.host:n=u}n=l}if(As(n))return!n.getClientRects().length;if(e!=="legacy-full")return!0}else if(e==="non-zero-area")return wi(n);return!1},Ms=function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var t=n.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var e=0;e<t.children.length;e++){var i=t.children.item(e);if(i.tagName==="LEGEND")return He.call(t,"fieldset[disabled] *")?!0:!i.contains(n)}return!0}t=t.parentElement}return!1},mn=function(n,t){return!(t.disabled||gn(t)||xs(t)||Ds(t,n)||Cs(t)||Ms(t))},hr=function(n,t){return!(Rs(t)||ze(t)<0||!mn(n,t))},Bs=function(n){var t=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Ls=function r(n){var t=[],e=[];return n.forEach(function(i,o){var a=!!i.scopeParent,l=a?i.scopeParent:i,u=Ts(l,a),c=a?r(i.candidates):l;u===0?a?t.push.apply(t,c):t.push(l):e.push({documentOrder:o,tabIndex:u,item:i,isScope:a,content:c})}),e.sort(Ss).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(t)},zs=function(n,t){t=t||{};var e;return t.getShadowRoot?e=To([n],t.includeContainer,{filter:hr.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Bs}):e=Oo(n,t.includeContainer,hr.bind(null,t)),Ls(e)},Vs=function(n,t){t=t||{};var e;return t.getShadowRoot?e=To([n],t.includeContainer,{filter:mn.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):e=Oo(n,t.includeContainer,mn.bind(null,t)),e},Qe=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return He.call(n,vn)===!1?!1:hr(t,n)},Fs=Po.concat("iframe").join(","),Jn=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return He.call(n,Fs)===!1?!1:mn(t,n)};/*!
5
+ * focus-trap 7.5.3
6
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
7
+ */function Oi(r,n){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);n&&(e=e.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,e)}return t}function Ti(r){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Oi(Object(t),!0).forEach(function(e){js(r,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Oi(Object(t)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))})}return r}function js(r,n,t){return n=Hs(n),n in r?Object.defineProperty(r,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[n]=t,r}function $s(r,n){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var e=t.call(r,n||"default");if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(r)}function Hs(r){var n=$s(r,"string");return typeof n=="symbol"?n:String(n)}var Si={activateTrap:function(n,t){if(n.length>0){var e=n[n.length-1];e!==t&&e.pause()}var i=n.indexOf(t);i===-1||n.splice(i,1),n.push(t)},deactivateTrap:function(n,t){var e=n.indexOf(t);e!==-1&&n.splice(e,1),n.length>0&&n[n.length-1].unpause()}},Gs=function(n){return n.tagName&&n.tagName.toLowerCase()==="input"&&typeof n.select=="function"},Us=function(n){return n?.key==="Escape"||n?.key==="Esc"||n?.keyCode===27},Et=function(n){return n?.key==="Tab"||n?.keyCode===9},Ws=function(n){return Et(n)&&!n.shiftKey},Xs=function(n){return Et(n)&&n.shiftKey},xi=function(n){return setTimeout(n,0)},Ci=function(n,t){var e=-1;return n.every(function(i,o){return t(i)?(e=o,!1):!0}),e},ht=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];return typeof n=="function"?n.apply(void 0,e):n},tn=function(n){return n.target.shadowRoot&&typeof n.composedPath=="function"?n.composedPath()[0]:n.target},Ys=[],Ks=function(n,t){var e=t?.document||document,i=t?.trapStack||Ys,o=Ti({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ws,isKeyBackward:Xs},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l,u=function(_,E,N){return _&&_[E]!==void 0?_[E]:o[N||E]},c=function(_,E){var N=typeof E?.composedPath=="function"?E.composedPath():void 0;return a.containerGroups.findIndex(function(D){var M=D.container,C=D.tabbableNodes;return M.contains(_)||N?.includes(M)||C.find(function(w){return w===_})})},f=function(_){var E=o[_];if(typeof E=="function"){for(var N=arguments.length,D=new Array(N>1?N-1:0),M=1;M<N;M++)D[M-1]=arguments[M];E=E.apply(void 0,D)}if(E===!0&&(E=void 0),!E){if(E===void 0||E===!1)return E;throw new Error("`".concat(_,"` was specified but was not a node, or did not return a node"))}var C=E;if(typeof E=="string"&&(C=e.querySelector(E),!C))throw new Error("`".concat(_,"` as selector refers to no known node"));return C},d=function(){var _=f("initialFocus");if(_===!1)return!1;if(_===void 0||!Jn(_,o.tabbableOptions))if(c(e.activeElement)>=0)_=e.activeElement;else{var E=a.tabbableGroups[0],N=E&&E.firstTabbableNode;_=N||f("fallbackFocus")}if(!_)throw new Error("Your focus-trap needs to have at least one focusable element");return _},v=function(){if(a.containerGroups=a.containers.map(function(_){var E=zs(_,o.tabbableOptions),N=Vs(_,o.tabbableOptions),D=E.length>0?E[0]:void 0,M=E.length>0?E[E.length-1]:void 0,C=N.find(function(z){return Qe(z)}),w=N.slice().reverse().find(function(z){return Qe(z)}),I=!!E.find(function(z){return ze(z)>0});return{container:_,tabbableNodes:E,focusableNodes:N,posTabIndexesFound:I,firstTabbableNode:D,lastTabbableNode:M,firstDomTabbableNode:C,lastDomTabbableNode:w,nextTabbableNode:function(B){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Y=E.indexOf(B);return Y<0?V?N.slice(N.indexOf(B)+1).find(function(ee){return Qe(ee)}):N.slice(0,N.indexOf(B)).reverse().find(function(ee){return Qe(ee)}):E[Y+(V?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(_){return _.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!f("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find(function(_){return _.posTabIndexesFound})&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function A(_){if(_!==!1&&_!==e.activeElement){if(!_||!_.focus){A(d());return}_.focus({preventScroll:!!o.preventScroll}),a.mostRecentlyFocusedNode=_,Gs(_)&&_.select()}},p=function(_){var E=f("setReturnFocus",_);return E||(E===!1?!1:_)},g=function(_){var E=_.target,N=_.event,D=_.isBackward,M=D===void 0?!1:D;E=E||tn(N),v();var C=null;if(a.tabbableGroups.length>0){var w=c(E,N),I=w>=0?a.containerGroups[w]:void 0;if(w<0)M?C=a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:C=a.tabbableGroups[0].firstTabbableNode;else if(M){var z=Ci(a.tabbableGroups,function(he){var fe=he.firstTabbableNode;return E===fe});if(z<0&&(I.container===E||Jn(E,o.tabbableOptions)&&!Qe(E,o.tabbableOptions)&&!I.nextTabbableNode(E,!1))&&(z=w),z>=0){var B=z===0?a.tabbableGroups.length-1:z-1,V=a.tabbableGroups[B];C=ze(E)>=0?V.lastTabbableNode:V.lastDomTabbableNode}else Et(N)||(C=I.nextTabbableNode(E,!1))}else{var Y=Ci(a.tabbableGroups,function(he){var fe=he.lastTabbableNode;return E===fe});if(Y<0&&(I.container===E||Jn(E,o.tabbableOptions)&&!Qe(E,o.tabbableOptions)&&!I.nextTabbableNode(E))&&(Y=w),Y>=0){var ee=Y===a.tabbableGroups.length-1?0:Y+1,de=a.tabbableGroups[ee];C=ze(E)>=0?de.firstTabbableNode:de.firstDomTabbableNode}else Et(N)||(C=I.nextTabbableNode(E))}}else C=f("fallbackFocus");return C},m=function(_){var E=tn(_);if(!(c(E,_)>=0)){if(ht(o.clickOutsideDeactivates,_)){l.deactivate({returnFocus:o.returnFocusOnDeactivate});return}ht(o.allowOutsideClick,_)||_.preventDefault()}},y=function(_){var E=tn(_),N=c(E,_)>=0;if(N||E instanceof Document)N&&(a.mostRecentlyFocusedNode=E);else{_.stopImmediatePropagation();var D,M=!0;if(a.mostRecentlyFocusedNode)if(ze(a.mostRecentlyFocusedNode)>0){var C=c(a.mostRecentlyFocusedNode),w=a.containerGroups[C].tabbableNodes;if(w.length>0){var I=w.findIndex(function(z){return z===a.mostRecentlyFocusedNode});I>=0&&(o.isKeyForward(a.recentNavEvent)?I+1<w.length&&(D=w[I+1],M=!1):I-1>=0&&(D=w[I-1],M=!1))}}else a.containerGroups.some(function(z){return z.tabbableNodes.some(function(B){return ze(B)>0})})||(M=!1);else M=!1;M&&(D=g({target:a.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(a.recentNavEvent)})),h(D||a.mostRecentlyFocusedNode||d())}a.recentNavEvent=void 0},b=function(_){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;a.recentNavEvent=_;var N=g({event:_,isBackward:E});N&&(Et(_)&&_.preventDefault(),h(N))},O=function(_){if(Us(_)&&ht(o.escapeDeactivates,_)!==!1){_.preventDefault(),l.deactivate();return}(o.isKeyForward(_)||o.isKeyBackward(_))&&b(_,o.isKeyBackward(_))},T=function(_){var E=tn(_);c(E,_)>=0||ht(o.clickOutsideDeactivates,_)||ht(o.allowOutsideClick,_)||(_.preventDefault(),_.stopImmediatePropagation())},P=function(){if(a.active)return Si.activateTrap(i,l),a.delayInitialFocusTimer=o.delayInitialFocus?xi(function(){h(d())}):h(d()),e.addEventListener("focusin",y,!0),e.addEventListener("mousedown",m,{capture:!0,passive:!1}),e.addEventListener("touchstart",m,{capture:!0,passive:!1}),e.addEventListener("click",T,{capture:!0,passive:!1}),e.addEventListener("keydown",O,{capture:!0,passive:!1}),l},k=function(){if(a.active)return e.removeEventListener("focusin",y,!0),e.removeEventListener("mousedown",m,!0),e.removeEventListener("touchstart",m,!0),e.removeEventListener("click",T,!0),e.removeEventListener("keydown",O,!0),l},x=function(_){var E=_.some(function(N){var D=Array.from(N.removedNodes);return D.some(function(M){return M===a.mostRecentlyFocusedNode})});E&&h(d())},S=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(x):void 0,R=function(){S&&(S.disconnect(),a.active&&!a.paused&&a.containers.map(function(_){S.observe(_,{subtree:!0,childList:!0})}))};return l={get active(){return a.active},get paused(){return a.paused},activate:function(_){if(a.active)return this;var E=u(_,"onActivate"),N=u(_,"onPostActivate"),D=u(_,"checkCanFocusTrap");D||v(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=e.activeElement,E?.();var M=function(){D&&v(),P(),R(),N?.()};return D?(D(a.containers.concat()).then(M,M),this):(M(),this)},deactivate:function(_){if(!a.active)return this;var E=Ti({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},_);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,k(),a.active=!1,a.paused=!1,R(),Si.deactivateTrap(i,l);var N=u(E,"onDeactivate"),D=u(E,"onPostDeactivate"),M=u(E,"checkCanReturnFocus"),C=u(E,"returnFocus","returnFocusOnDeactivate");N?.();var w=function(){xi(function(){C&&h(p(a.nodeFocusedBeforeActivation)),D?.()})};return C&&M?(M(p(a.nodeFocusedBeforeActivation)).then(w,w),this):(w(),this)},pause:function(_){if(a.paused||!a.active)return this;var E=u(_,"onPause"),N=u(_,"onPostPause");return a.paused=!0,E?.(),k(),R(),N?.(),this},unpause:function(_){if(!a.paused||!a.active)return this;var E=u(_,"onUnpause"),N=u(_,"onPostUnpause");return a.paused=!1,E?.(),v(),P(),R(),N?.(),this},updateContainerElements:function(_){var E=[].concat(_).filter(Boolean);return a.containers=E.map(function(N){return typeof N=="string"?e.querySelector(N):N}),a.active&&v(),R(),this}},l.updateContainerElements(n),l},Zs=Object.defineProperty,Qs=Object.defineProperties,Js=Object.getOwnPropertyDescriptors,yn=Object.getOwnPropertySymbols,Co=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,ki=(r,n,t)=>n in r?Zs(r,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[n]=t,qs=(r,n)=>{for(var t in n||(n={}))Co.call(n,t)&&ki(r,t,n[t]);if(yn)for(var t of yn(n))ko.call(n,t)&&ki(r,t,n[t]);return r},el=(r,n)=>Qs(r,Js(n)),tl=(r,n)=>{var t={};for(var e in r)Co.call(r,e)&&n.indexOf(e)<0&&(t[e]=r[e]);if(r!=null&&yn)for(var e of yn(r))n.indexOf(e)<0&&ko.call(r,e)&&(t[e]=r[e]);return t};function nl(r,n={}){let t;const e=n,{immediate:i}=e,o=tl(e,["immediate"]),a=s.ref(!1),l=s.ref(!1),u=v=>t&&t.activate(v),c=v=>t&&t.deactivate(v),f=()=>{t&&(t.pause(),l.value=!0)},d=()=>{t&&(t.unpause(),l.value=!1)};return s.watch(()=>ys(r),v=>{v&&(t=Ks(v,el(qs({},o),{onActivate(){a.value=!0,n.onActivate&&n.onActivate()},onDeactivate(){a.value=!1,n.onDeactivate&&n.onDeactivate()}})),i&&u())},{flush:"post"}),ms(()=>c()),{hasFocus:a,isPaused:l,activate:u,deactivate:c,pause:f,unpause:d}}const rl=r=>(...n)=>{r&&(r?.(...n),r=null)},ye=()=>{};function nn(r,n,t){return r>t?t:r<n?n:r}const Lr=r=>typeof r=="string",zr={modalId:{type:[String,Number,Symbol],default:void 0},modelValue:{type:Boolean,default:void 0},displayDirective:{type:String,default:"if",validator:r=>["if","show","visible"].includes(r)},hideOverlay:{type:Boolean,default:void 0},overlayTransition:{type:[String,Object],default:void 0},contentTransition:{type:[String,Object],default:void 0},overlayClass:{type:void 0,default:void 0},contentClass:{type:void 0,default:void 0},overlayStyle:{type:[String,Object,Array],default:void 0},contentStyle:{type:[String,Object,Array],default:void 0},clickToClose:{type:Boolean,default:!0},escToClose:{type:Boolean,default:!0},background:{type:String,default:"non-interactive",validator:r=>["interactive","non-interactive"].includes(r)},focusTrap:{type:[Boolean,Object],default:()=>({allowOutsideClick:!0})},lockScroll:{type:Boolean,default:!0},reserveScrollBarGap:{type:Boolean,default:!0},zIndexFn:{type:Function,default:({index:r})=>1e3+2*r},swipeToClose:{type:String,default:"none",validator:r=>["none","up","right","down","left"].includes(r)},threshold:{type:Number,default:0},showSwipeBanner:{type:Boolean,default:void 0},preventNavigationGestures:{type:Boolean,default:void 0}};function Ii(r=!1){const n=s.ref(r),t=s.ref(n.value?0:void 0);return[n,t,{beforeEnter(){t.value=1},afterEnter(){t.value=0},beforeLeave(){t.value=3},afterLeave(){t.value=2}}]}function il(r,n){const{modelValueLocal:t,onEntering:e,onEnter:i,onLeaving:o,onLeave:a}=n,l=s.ref(t.value),[u,c,f]=Ii(l.value),[d,v,h]=Ii(l.value),p=s.computed(()=>typeof r.contentTransition=="string"?{name:r.contentTransition}:{...r.contentTransition}),g=s.computed(()=>typeof r.overlayTransition=="string"?{name:r.overlayTransition}:{...r.overlayTransition}),m=s.computed(()=>(r.hideOverlay||v.value===2)&&c.value===2);s.watch(m,O=>{O&&(l.value=!1)}),s.watch(c,O=>{if(O===1){if(!l.value)return;e?.()}else if(O===0){if(!l.value)return;i?.()}else O===3?o?.():O===2&&a?.()});async function y(){l.value=!0,await s.nextTick(),u.value=!0,d.value=!0}function b(){u.value=!1,d.value=!1}return{visible:l,contentVisible:u,contentListeners:f,contentTransition:p,overlayVisible:d,overlayListeners:h,overlayTransition:g,enterTransition:y,leaveTransition:b}}function ol(r,n,t){const{vfmRootEl:e,vfmContentEl:i,visible:o,modelValueLocal:a}=t,l=s.ref();function u(){o.value&&r.escToClose&&(a.value=!1)}function c(d){l.value=d?.target}function f(){var d;l.value===e.value&&(r.clickToClose?a.value=!1:((d=i.value)==null||d.focus(),n("clickOutside")))}return{onEsc:u,onMouseupRoot:f,onMousedown:c}}function al(r,n){const t=s.ref(!!r.modelValue);return s.watch(()=>r.modelValue,e=>{t.value=!!e}),s.watch(t,e=>{e!==r.modelValue&&n("update:modelValue",e)}),{modelValueLocal:t}}function sl(r,n){if(r.focusTrap===!1)return{focus(){},blur(){}};const{focusEl:t}=n,{hasFocus:e,activate:i,deactivate:o}=nl(t,r.focusTrap);function a(){requestAnimationFrame(()=>{i()})}function l(){e.value&&o()}return{focus:a,blur:l}}let Vr=!1;if(typeof window<"u"){const r={get passive(){Vr=!0}};window.addEventListener("testPassive",null,r),window.removeEventListener("testPassive",null,r)}const Io=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1);let ke=[],bn=!1,sn=0,No=-1,Pt,wt;const ll=r=>{if(!r||r.nodeType!==Node.ELEMENT_NODE)return!1;const n=window.getComputedStyle(r);return["auto","scroll"].includes(n.overflowY)&&r.scrollHeight>r.clientHeight},ul=(r,n)=>!(r.scrollTop===0&&n<0||r.scrollTop+r.clientHeight+n>=r.scrollHeight&&n>0),cl=r=>{const n=[];for(;r;){if(n.push(r),r.classList.contains("vfm"))return n;r=r.parentElement}return n},fl=(r,n)=>{let t=!1;return cl(r).forEach(e=>{ll(e)&&ul(e,n)&&(t=!0)}),t},Ro=r=>ke.some(()=>fl(r,-sn)),Fr=r=>{const n=r||window.event;return Ro(n.target)||n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)},dl=r=>{if(wt===void 0){const n=!!r&&r.reserveScrollBarGap===!0,t=window.innerWidth-document.documentElement.clientWidth;if(n&&t>0){const e=parseInt(getComputedStyle(document.body).getPropertyValue("padding-right"),10);wt=document.body.style.paddingRight,document.body.style.paddingRight=`${e+t}px`}}Pt===void 0&&(Pt=document.body.style.overflow,document.body.style.overflow="hidden")},hl=()=>{wt!==void 0&&(document.body.style.paddingRight=wt,wt=void 0),Pt!==void 0&&(document.body.style.overflow=Pt,Pt=void 0)},vl=r=>r?r.scrollHeight-r.scrollTop<=r.clientHeight:!1,pl=(r,n)=>(sn=r.targetTouches[0].clientY-No,Ro(r.target)?!1:n&&n.scrollTop===0&&sn>0||vl(n)&&sn<0?Fr(r):(r.stopPropagation(),!0)),gl=(r,n)=>{if(!r){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(ke.some(e=>e.targetElement===r))return;const t={targetElement:r,options:n||{}};ke=[...ke,t],Io?(r.ontouchstart=e=>{e.targetTouches.length===1&&(No=e.targetTouches[0].clientY)},r.ontouchmove=e=>{e.targetTouches.length===1&&pl(e,r)},bn||(document.addEventListener("touchmove",Fr,Vr?{passive:!1}:void 0),bn=!0)):dl(n)},ml=r=>{if(!r){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}ke=ke.filter(n=>n.targetElement!==r),Io?(r.ontouchstart=null,r.ontouchmove=null,bn&&ke.length===0&&(document.removeEventListener("touchmove",Fr,Vr?{passive:!1}:void 0),bn=!1)):ke.length||hl()};function yl(r,n){const{lockScrollEl:t,modelValueLocal:e}=n;let i;s.watch(t,l=>{l&&(i=l)},{immediate:!0}),s.watch(()=>r.lockScroll,l=>{l?a():o()}),s.onBeforeUnmount(()=>{o()});function o(){i&&ml(i)}function a(){e.value&&r.lockScroll&&i&&gl(i,{reserveScrollBarGap:r.reserveScrollBarGap,allowTouchMove:l=>{for(;l&&l!==document.body;){if(l.getAttribute("vfm-scroll-lock-ignore")!==null)return!0;l=l.parentElement}return!1}})}return{enableBodyScroll:o,disableBodyScroll:a}}function bl(r){function n(t){switch(t){case"beforeOpen":r(t);break;case"beforeClose":r(t);break;case"opened":r(t);break;case"closed":r(t);break}}return{emitEvent:n}}function _l(r){const n=s.ref();function t(i){var o;n.value=(o=r.zIndexFn)==null?void 0:o.call(r,{index:i<=-1?0:i})}function e(){n.value=void 0}return{zIndex:n,refreshZIndex:t,resetZIndex:e}}const qn={beforeMount(r,{value:n},{transition:t}){r._vov=r.style.visibility==="hidden"?"":r.style.visibility,t&&n?t.beforeEnter(r):vt(r,n)},mounted(r,{value:n},{transition:t}){t&&n&&t.enter(r)},updated(r,{value:n,oldValue:t},{transition:e}){!n!=!t&&(e?n?(e.beforeEnter(r),vt(r,!0),e.enter(r)):e.leave(r,()=>{vt(r,!1)}):vt(r,n))},beforeUnmount(r,{value:n}){vt(r,n)}};function vt(r,n){r.style.visibility=n?r._vov:"hidden"}const Ni=r=>{if(r instanceof MouseEvent){const{clientX:n,clientY:t}=r;return{x:n,y:t}}else{const{clientX:n,clientY:t}=r.targetTouches[0];return{x:n,y:t}}};function El(r){if(!r)return!1;let n=!1;const t={get passive(){return n=!0,!1}};return r.addEventListener("x",ye,t),r.removeEventListener("x",ye),n}function Pl(r,{threshold:n=0,onSwipeStart:t,onSwipe:e,onSwipeEnd:i,passive:o=!0}){const a=s.reactive({x:0,y:0}),l=s.reactive({x:0,y:0}),u=s.computed(()=>a.x-l.x),c=s.computed(()=>a.y-l.y),{max:f,abs:d}=Math,v=s.computed(()=>f(d(u.value),d(c.value))>=n),h=s.ref(!1),p=s.computed(()=>v.value?d(u.value)>d(c.value)?u.value>0?"left":"right":c.value>0?"up":"down":"none"),g=(x,S)=>{a.x=x,a.y=S},m=(x,S)=>{l.x=x,l.y=S};let y,b;function O(x){y.capture&&!y.passive&&x.preventDefault();const{x:S,y:R}=Ni(x);g(S,R),m(S,R),t?.(x),b=[Se(r,"mousemove",T,y),Se(r,"touchmove",T,y),Se(r,"mouseup",P,y),Se(r,"touchend",P,y),Se(r,"touchcancel",P,y)]}function T(x){const{x:S,y:R}=Ni(x);m(S,R),!h.value&&v.value&&(h.value=!0),h.value&&e?.(x)}function P(x){h.value&&i?.(x,p.value),h.value=!1,b.forEach(S=>S())}let k=[];return s.onMounted(()=>{const x=El(window?.document);o?y=x?{passive:!0}:{capture:!1}:y=x?{passive:!1,capture:!0}:{capture:!0},k=[Se(r,"mousedown",O,y),Se(r,"touchstart",O,y)]}),{isSwiping:h,direction:p,coordsStart:a,coordsEnd:l,lengthX:u,lengthY:c,stop:()=>{k.forEach(x=>x()),b.forEach(x=>x())}}}function wl(r,n){const{vfmContentEl:t,modelValueLocal:e}=n,i=.1,o=300,a=s.ref(),l=s.computed(()=>{if(!(r.swipeToClose===void 0||r.swipeToClose==="none"))return r.showSwipeBanner?a.value:t.value}),u=s.ref(0),c=s.ref(!0);let f=ye,d=!0,v,h=!1;const{lengthX:p,lengthY:g,direction:m,isSwiping:y}=Pl(l,{threshold:r.threshold,onSwipeStart(P){f=Se(document,"selectionchange",()=>{var k;c.value=(k=window.getSelection())==null?void 0:k.isCollapsed}),v=new Date().getTime(),h=T(P?.target)},onSwipe(){var P,k,x,S;if(h&&c.value&&m.value===r.swipeToClose){if(m.value==="up"){const R=nn(Math.abs(g.value||0),0,((P=l.value)==null?void 0:P.offsetHeight)||0)-(r.threshold||0);u.value=R}else if(m.value==="down"){const R=nn(Math.abs(g.value||0),0,((k=l.value)==null?void 0:k.offsetHeight)||0)-(r.threshold||0);u.value=-R}else if(m.value==="right"){const R=nn(Math.abs(p.value||0),0,((x=l.value)==null?void 0:x.offsetWidth)||0)-(r.threshold||0);u.value=-R}else if(m.value==="left"){const R=nn(Math.abs(p.value||0),0,((S=l.value)==null?void 0:S.offsetWidth)||0)-(r.threshold||0);u.value=R}}},onSwipeEnd(P,k){if(f(),!c.value){c.value=!0;return}const x=new Date().getTime(),S=k===r.swipeToClose,R=(()=>{var _,E;if(k==="up"||k==="down")return Math.abs(g?.value||0)>i*(((_=l.value)==null?void 0:_.offsetHeight)||0);if(k==="left"||k==="right")return Math.abs(p?.value||0)>i*(((E=l.value)==null?void 0:E.offsetWidth)||0)})(),A=x-v<=o;if(d&&h&&S&&(R||A)){e.value=!1;return}u.value=0}}),b=s.computed(()=>{if(r.swipeToClose==="none")return;const P=(()=>{switch(r.swipeToClose){case"up":case"down":return"translateY";case"left":case"right":return"translateX"}})();return{class:{"vfm-bounce-back":!y.value},style:{transform:`${P}(${-u.value}px)`}}});s.watch(()=>c.value,P=>{P||(u.value=0)}),s.watch(()=>e.value,P=>{P&&(u.value=0)}),s.watch(()=>u.value,(P,k)=>{switch(r.swipeToClose){case"down":case"right":d=P<k;break;case"up":case"left":d=P>k;break}});function O(P){r.preventNavigationGestures&&P.preventDefault()}function T(P){const k=P?.tagName;if(!k||["INPUT","TEXTAREA"].includes(k))return!1;const x=(()=>{switch(r.swipeToClose){case"up":return P?.scrollTop+P?.clientHeight===P?.scrollHeight;case"left":return P?.scrollLeft+P?.clientWidth===P?.scrollWidth;case"down":return P?.scrollTop===0;case"right":return P?.scrollLeft===0;default:return!1}})();return P===l.value?x:x&&T(P?.parentElement)}return{vfmContentEl:t,swipeBannerEl:a,bindSwipe:b,onTouchStartSwipeBanner:O}}const jr=Symbol("vfm"),$r=Symbol("internalVfm"),Ol=s.defineComponent({__name:"CoreModal",props:zr,emits:["update:modelValue","beforeOpen","opened","beforeClose","closed","clickOutside"],setup(r,{emit:n}){const t=r,{modals:e,openedModals:i}=s.inject(jr,{modals:[],openedModals:[]}),{openLastOverlay:o,moveToLastOpenedModals:a,deleteFromOpenedModals:l,moveToLastOpenedModalOverlays:u,deleteFromOpenedModalOverlays:c,deleteFromModals:f}=s.inject($r,{openLastOverlay:ye,moveToLastOpenedModals:ye,deleteFromOpenedModals:ye,moveToLastOpenedModalOverlays:ye,deleteFromOpenedModalOverlays:ye,deleteFromModals:ye}),d=s.ref(),v=s.ref(),{focus:h,blur:p}=sl(t,{focusEl:d}),{zIndex:g,refreshZIndex:m,resetZIndex:y}=_l(t),{modelValueLocal:b}=al(t,n),{enableBodyScroll:O,disableBodyScroll:T}=yl(t,{lockScrollEl:d,modelValueLocal:b}),{emitEvent:P}=bl(n);let k=ye;const{visible:x,contentVisible:S,contentListeners:R,contentTransition:A,overlayVisible:_,overlayListeners:E,overlayTransition:N,enterTransition:D,leaveTransition:M}=il(t,{modelValueLocal:b,onEntering(){s.nextTick(()=>{T(),h()})},onEnter(){P("opened"),k("opened")},onLeave(){l(de()),y(),O(),P("closed"),k("closed")}}),{onEsc:C,onMouseupRoot:w,onMousedown:I}=ol(t,n,{vfmRootEl:d,vfmContentEl:v,visible:x,modelValueLocal:b}),{swipeBannerEl:z,bindSwipe:B,onTouchStartSwipeBanner:V}=wl(t,{vfmContentEl:v,modelValueLocal:b}),Y=s.toRef(t,"hideOverlay"),ee=s.computed(()=>({modalId:t.modalId,hideOverlay:Y,overlayVisible:_,focus:h,toggle(G){return new Promise(Q=>{k=rl(ut=>Q(ut));const re=typeof G=="boolean"?G:!b.value;b.value=re,n("update:modelValue",re)})}}));function de(){return ee}const he=s.computed(()=>i.indexOf(ee));s.watch(()=>[t.zIndexFn,he.value],()=>{x.value&&m(he.value)}),s.onMounted(()=>{e.push(ee)}),b.value&&fe(),s.watch(b,G=>{G?fe():Ke()});async function fe(){P("beforeOpen"),a(ee),u(ee),m(he.value),o(),D()}function Ke(){P("beforeClose"),c(ee),o(),p(),M()}return s.onBeforeUnmount(()=>{O(),f(ee),l(ee),c(ee),p(),o()}),(G,Q)=>G.displayDirective!=="if"||s.unref(x)?s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"vfmRootEl",ref:d,class:s.normalizeClass(["vfm vfm--fixed vfm--inset",{"vfm--prevent-none":G.background==="interactive"}]),style:s.normalizeStyle({zIndex:s.unref(g)}),role:"dialog","aria-modal":"true",onKeydown:Q[7]||(Q[7]=s.withKeys(()=>s.unref(C)(),["esc"])),onMouseup:Q[8]||(Q[8]=s.withModifiers(()=>s.unref(w)(),["self"])),onMousedown:Q[9]||(Q[9]=s.withModifiers(re=>s.unref(I)(re),["self"]))},[Y.value?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.Transition,s.mergeProps({key:0},s.unref(N),{appear:!0},s.toHandlers(s.unref(E))),{default:s.withCtx(()=>[G.displayDirective!=="if"||s.unref(_)?s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["vfm__overlay vfm--overlay vfm--absolute vfm--inset vfm--prevent-none",G.overlayClass]),style:s.normalizeStyle(G.overlayStyle),"aria-hidden":"true"},null,6)),[[s.vShow,G.displayDirective!=="show"||s.unref(_)],[s.unref(qn),G.displayDirective!=="visible"||s.unref(_)]]):s.createCommentVNode("",!0)]),_:1},16)),s.createVNode(s.Transition,s.mergeProps(s.unref(A),{appear:!0},s.toHandlers(s.unref(R))),{default:s.withCtx(()=>[G.displayDirective!=="if"||s.unref(S)?s.withDirectives((s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,ref_key:"vfmContentEl",ref:v,class:["vfm__content vfm--outline-none",[G.contentClass,{"vfm--prevent-auto":G.background==="interactive"}]],style:G.contentStyle,tabindex:"0"},s.unref(B),{onMousedown:Q[6]||(Q[6]=()=>s.unref(I)())}),[s.renderSlot(G.$slots,"default"),G.showSwipeBanner?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"swipeBannerEl",ref:z,class:"vfm-swipe-banner-container",onTouchstart:Q[2]||(Q[2]=re=>s.unref(V)(re))},[s.renderSlot(G.$slots,"swipe-banner",{},()=>[s.createBaseVNode("div",{class:"vfm-swipe-banner-back",onTouchstart:Q[0]||(Q[0]=re=>G.swipeToClose==="left"&&re.preventDefault())},null,32),s.createBaseVNode("div",{class:"vfm-swipe-banner-forward",onTouchstart:Q[1]||(Q[1]=re=>G.swipeToClose==="right"&&re.preventDefault())},null,32)])],544)):!G.showSwipeBanner&&G.preventNavigationGestures?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vfm-swipe-banner-container",onTouchstart:Q[5]||(Q[5]=re=>s.unref(V)(re))},[s.createBaseVNode("div",{class:"vfm-swipe-banner-back",onTouchstart:Q[3]||(Q[3]=re=>G.swipeToClose==="left"&&re.preventDefault())},null,32),s.createBaseVNode("div",{class:"vfm-swipe-banner-forward",onTouchstart:Q[4]||(Q[4]=re=>G.swipeToClose==="right"&&re.preventDefault())},null,32)],32)):s.createCommentVNode("",!0)],16)),[[s.vShow,G.displayDirective!=="show"||s.unref(S)],[s.unref(qn),G.displayDirective!=="visible"||s.unref(S)]]):s.createCommentVNode("",!0)]),_:3},16)],38)),[[s.vShow,G.displayDirective!=="show"||s.unref(x)],[s.unref(qn),G.displayDirective!=="visible"||s.unref(x)]]):s.createCommentVNode("",!0)}}),Tl={...zr,teleportTo:{type:[String,null,Boolean,Object],default:"body"}},Sl=s.defineComponent({inheritAttrs:!1}),Ao=s.defineComponent({...Sl,__name:"VueFinalModal",props:Tl,emits:["update:modelValue","beforeOpen","opened","beforeClose","closed","clickOutside"],setup(r,{emit:n}){const t=Dl({props:r,modalProps:zr,emit:n});return(e,i)=>(s.openBlock(),s.createBlock(s.Teleport,{to:e.teleportTo?e.teleportTo:void 0,disabled:!e.teleportTo},[s.createVNode(Ol,s.normalizeProps(s.guardReactiveProps(s.unref(t))),{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default")]),_:3},16)],8,["to","disabled"]))}});let Ve;const xl=r=>Ve=r,Cl=()=>s.getCurrentInstance()&&s.inject(jr)||Ve;function kl(){const r=s.shallowReactive([]),n=s.shallowReactive([]),t=s.shallowReactive([]),e=s.shallowReactive([]),i=s.ref([]),o=s.markRaw({install(a){a.provide(jr,o),a.config.globalProperties.$vfm=o;const l=Il(o);a.provide($r,l)},modals:r,openedModals:n,openedModalOverlays:t,dynamicModals:e,modalsContainers:i,get(a){return r.find(l=>l.value.modalId&&a===l.value.modalId)},toggle(a,l){const u=o.get(a);return u?.value.toggle(l)},open(a){return o.toggle(a,!0)},close(a){return o.toggle(a,!1)},closeAll(){return Promise.allSettled([n.map(a=>a.value.toggle(!1))])}});return xl(o),o}function Il(r){const{modals:n,openedModals:t,openedModalOverlays:e,dynamicModals:i}=r,o={deleteFromModals(a){const l=n.findIndex(u=>u.value===a.value);l!==-1&&n.splice(l,1)},moveToLastOpenedModals(a){o.deleteFromOpenedModals(a),t.push(a)},deleteFromOpenedModals(a){const l=t.findIndex(u=>u.value===a.value);l!==-1&&t.splice(l,1)},moveToLastOpenedModalOverlays(a){o.deleteFromOpenedModalOverlays(a),e.push(a)},deleteFromOpenedModalOverlays(a){const l=e.findIndex(u=>u.value===a.value);l!==-1&&e.splice(l,1)},async openLastOverlay(){var a;if(await s.nextTick(),e.forEach(l=>l.value.overlayVisible.value=!1),e.length>0){const l=e[e.length-1];!((a=l.value.hideOverlay)!=null&&a.value)&&(l.value.overlayVisible.value=!0)}},resolvedClosed(a){var l,u,c;(u=(l=i[a])==null?void 0:l.resolveClosed)==null||u.call(l),(c=i[a])!=null&&c.keepAlive||i.splice(a,1)},resolvedOpened(a){var l,u;(u=(l=i[a])==null?void 0:l.resolveOpened)==null||u.call(l)}};return o}function ln(){const r=Cl();if(!r)throw new Error(`[Vue Final Modal]: getActiveVfm was called with no active Vfm. Did you forget to install vfm?
8
+ const vfm = createVfm()
9
+ app.use(vfm)
10
+ This will fail in production.`);return r}function Nl(){return s.inject($r)}function Ri(r,n=Ao){const{component:t,slots:e,...i}=r,o=typeof e>"u"?{}:Object.fromEntries(Object.entries(e).map(([a,l])=>Lr(l)?[a,l]:"component"in l?[a,{...l,component:s.markRaw(l.component)}]:[a,s.markRaw(l)]));return{...i,component:s.markRaw(t||n),slots:o}}function Do(r){const n=s.reactive({id:Symbol("useModal"),modelValue:!!(r!=null&&r.defaultModelValue),resolveOpened:()=>{},resolveClosed:()=>{},attrs:{},...Ri(r)});as(()=>{n!=null&&n.keepAlive||l()}),n.modelValue===!0&&(Ve?Ve?.dynamicModals.push(n):s.nextTick(()=>{const u=ln();u?.dynamicModals.push(n)}));async function t(){let u;return Ve?u=Ve:(await s.nextTick(),u=ln()),n.modelValue?Promise.resolve("[Vue Final Modal] modal is already opened."):(l(),n.modelValue=!0,u.dynamicModals.push(n),new Promise(c=>{n.resolveOpened=()=>c("opened")}))}function e(){return n.modelValue?(n.modelValue=!1,new Promise(u=>{n.resolveClosed=()=>u("closed")})):Promise.resolve("[Vue Final Modal] modal is already closed.")}function i(u){const{slots:c,...f}=Ri(u,n.component);u.defaultModelValue!==void 0&&(n.defaultModelValue=u.defaultModelValue),u?.keepAlive!==void 0&&(n.keepAlive=u?.keepAlive),o(n,f),c&&Object.entries(c).forEach(([d,v])=>{const h=n.slots[d];Lr(h)?n.slots[d]=v:Ai(h)&&Ai(v)?o(h,v):n.slots[d]=v})}function o(u,c){c.component&&(u.component=c.component),c.attrs&&a(u.attrs,c.attrs)}function a(u,c){return Object.entries(c).forEach(([f,d])=>{u[f]=d}),u}function l(){const u=ln(),c=u.dynamicModals.indexOf(n);c!==-1&&u.dynamicModals.splice(c,1)}return{options:n,open:t,close:e,patchOptions:i,destroy:l}}function Ai(r){return"component"in r||"attrs"in r}function Rl(r,n){return Object.keys(n).reduce((t,e)=>(t[e]=r[e],t),{})}function Al(r){return r?{"onUpdate:modelValue":n=>r("update:modelValue",n),onBeforeClose:()=>r("beforeClose"),onClosed:()=>r("closed"),onBeforeOpen:()=>r("beforeOpen"),onOpened:()=>r("opened"),onClickOutside:()=>r("clickOutside")}:{}}function Dl(r){const{props:n,modalProps:t,emit:e}=r,i=s.computed(()=>Rl(n,t)),o=Al(e),a=s.useAttrs();return s.computed(()=>({...i.value,...o,...a}))}const Ml=["innerHTML"],Bl=s.defineComponent({__name:"ModalsContainer",setup(r){const n=ln(),t=Nl(),e=Symbol("ModalsContainer"),i=s.computed(()=>{var o;return e===((o=n.modalsContainers.value)==null?void 0:o[0])});return n.modalsContainers.value.push(e),s.onBeforeUnmount(()=>{n.modalsContainers.value=n.modalsContainers.value.filter(o=>o!==e)}),(o,a)=>i.value?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(s.unref(n).dynamicModals,(l,u)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(l.component),s.mergeProps({key:l.id},{displayDirective:l!=null&&l.keepAlive?"show":void 0,...l.attrs},{modelValue:l.modelValue,"onUpdate:modelValue":c=>l.modelValue=c,onClosed:()=>{var c,f;return(f=(c=s.unref(t)).resolvedClosed)==null?void 0:f.call(c,u)},onOpened:()=>{var c,f;return(f=(c=s.unref(t)).resolvedOpened)==null?void 0:f.call(c,u)}}),s.createSlots({_:2},[s.renderList(l.slots,(c,f)=>({name:f,fn:s.withCtx(()=>[s.unref(Lr)(c)?(s.openBlock(),s.createElementBlock("div",{key:0,innerHTML:c},null,8,Ml)):"component"in c?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(c.component),s.normalizeProps(s.mergeProps({key:1},c.attrs)),null,16)):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(c),{key:2}))])}))]),1040,["modelValue","onUpdate:modelValue","onClosed","onOpened"]))),128)):s.createCommentVNode("",!0)}}),Ll=["top","right","bottom","left"],Di=["start","end"],Mi=Ll.reduce((r,n)=>r.concat(n,n+"-"+Di[0],n+"-"+Di[1]),[]),Rt=Math.min,Le=Math.max,zl={left:"right",right:"left",bottom:"top",top:"bottom"},Vl={start:"end",end:"start"};function vr(r,n,t){return Le(r,Rt(n,t))}function Xe(r,n){return typeof r=="function"?r(n):r}function we(r){return r.split("-")[0]}function ge(r){return r.split("-")[1]}function Mo(r){return r==="x"?"y":"x"}function Hr(r){return r==="y"?"height":"width"}function Vt(r){return["top","bottom"].includes(we(r))?"y":"x"}function Gr(r){return Mo(Vt(r))}function Bo(r,n,t){t===void 0&&(t=!1);const e=ge(r),i=Gr(r),o=Hr(i);let a=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return n.reference[o]>n.floating[o]&&(a=En(a)),[a,En(a)]}function Fl(r){const n=En(r);return[_n(r),n,_n(n)]}function _n(r){return r.replace(/start|end/g,n=>Vl[n])}function jl(r,n,t){const e=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(r){case"top":case"bottom":return t?n?i:e:n?e:i;case"left":case"right":return n?o:a;default:return[]}}function $l(r,n,t,e){const i=ge(r);let o=jl(we(r),t==="start",e);return i&&(o=o.map(a=>a+"-"+i),n&&(o=o.concat(o.map(_n)))),o}function En(r){return r.replace(/left|right|bottom|top/g,n=>zl[n])}function Hl(r){return{top:0,right:0,bottom:0,left:0,...r}}function Lo(r){return typeof r!="number"?Hl(r):{top:r,right:r,bottom:r,left:r}}function Ot(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Bi(r,n,t){let{reference:e,floating:i}=r;const o=Vt(n),a=Gr(n),l=Hr(a),u=we(n),c=o==="y",f=e.x+e.width/2-i.width/2,d=e.y+e.height/2-i.height/2,v=e[l]/2-i[l]/2;let h;switch(u){case"top":h={x:f,y:e.y-i.height};break;case"bottom":h={x:f,y:e.y+e.height};break;case"right":h={x:e.x+e.width,y:d};break;case"left":h={x:e.x-i.width,y:d};break;default:h={x:e.x,y:e.y}}switch(ge(n)){case"start":h[a]-=v*(t&&c?-1:1);break;case"end":h[a]+=v*(t&&c?-1:1);break}return h}const Gl=async(r,n,t)=>{const{placement:e="bottom",strategy:i="absolute",middleware:o=[],platform:a}=t,l=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(n));let c=await a.getElementRects({reference:r,floating:n,strategy:i}),{x:f,y:d}=Bi(c,e,u),v=e,h={},p=0;for(let g=0;g<l.length;g++){const{name:m,fn:y}=l[g],{x:b,y:O,data:T,reset:P}=await y({x:f,y:d,initialPlacement:e,placement:v,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:r,floating:n}});if(f=b??f,d=O??d,h={...h,[m]:{...h[m],...T}},P&&p<=50){p++,typeof P=="object"&&(P.placement&&(v=P.placement),P.rects&&(c=P.rects===!0?await a.getElementRects({reference:r,floating:n,strategy:i}):P.rects),{x:f,y:d}=Bi(c,v,u)),g=-1;continue}}return{x:f,y:d,placement:v,strategy:i,middlewareData:h}};async function Dn(r,n){var t;n===void 0&&(n={});const{x:e,y:i,platform:o,rects:a,elements:l,strategy:u}=r,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:v=!1,padding:h=0}=Xe(n,r),p=Lo(h),m=l[v?d==="floating"?"reference":"floating":d],y=Ot(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(m)))==null||t?m:m.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:u})),b=d==="floating"?{...a.floating,x:e,y:i}:a.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),T=await(o.isElement==null?void 0:o.isElement(O))?await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1}:{x:1,y:1},P=Ot(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:O,strategy:u}):b);return{top:(y.top-P.top+p.top)/T.y,bottom:(P.bottom-y.bottom+p.bottom)/T.y,left:(y.left-P.left+p.left)/T.x,right:(P.right-y.right+p.right)/T.x}}const Ul=r=>({name:"arrow",options:r,async fn(n){const{x:t,y:e,placement:i,rects:o,platform:a,elements:l,middlewareData:u}=n,{element:c,padding:f=0}=Xe(r,n)||{};if(c==null)return{};const d=Lo(f),v={x:t,y:e},h=Gr(i),p=Hr(h),g=await a.getDimensions(c),m=h==="y",y=m?"top":"left",b=m?"bottom":"right",O=m?"clientHeight":"clientWidth",T=o.reference[p]+o.reference[h]-v[h]-o.floating[p],P=v[h]-o.reference[h],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let x=k?k[O]:0;(!x||!await(a.isElement==null?void 0:a.isElement(k)))&&(x=l.floating[O]||o.floating[p]);const S=T/2-P/2,R=x/2-g[p]/2-1,A=Rt(d[y],R),_=Rt(d[b],R),E=A,N=x-g[p]-_,D=x/2-g[p]/2+S,M=vr(E,D,N),C=!u.arrow&&ge(i)!=null&&D!=M&&o.reference[p]/2-(D<E?A:_)-g[p]/2<0,w=C?D<E?D-E:D-N:0;return{[h]:v[h]+w,data:{[h]:M,centerOffset:D-M-w,...C&&{alignmentOffset:w}},reset:C}}});function Wl(r,n,t){return(r?[...t.filter(i=>ge(i)===r),...t.filter(i=>ge(i)!==r)]:t.filter(i=>we(i)===i)).filter(i=>r?ge(i)===r||(n?_n(i)!==i:!1):!0)}const Xl=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(n){var t,e,i;const{rects:o,middlewareData:a,placement:l,platform:u,elements:c}=n,{crossAxis:f=!1,alignment:d,allowedPlacements:v=Mi,autoAlignment:h=!0,...p}=Xe(r,n),g=d!==void 0||v===Mi?Wl(d||null,h,v):v,m=await Dn(n,p),y=((t=a.autoPlacement)==null?void 0:t.index)||0,b=g[y];if(b==null)return{};const O=Bo(b,o,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(l!==b)return{reset:{placement:g[0]}};const T=[m[we(b)],m[O[0]],m[O[1]]],P=[...((e=a.autoPlacement)==null?void 0:e.overflows)||[],{placement:b,overflows:T}],k=g[y+1];if(k)return{data:{index:y+1,overflows:P},reset:{placement:k}};const x=P.map(A=>{const _=ge(A.placement);return[A.placement,_&&f?A.overflows.slice(0,2).reduce((E,N)=>E+N,0):A.overflows[0],A.overflows]}).sort((A,_)=>A[1]-_[1]),R=((i=x.filter(A=>A[2].slice(0,ge(A[0])?2:3).every(_=>_<=0))[0])==null?void 0:i[0])||x[0][0];return R!==l?{data:{index:y+1,overflows:P},reset:{placement:R}}:{}}}},Yl=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(n){var t,e;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:u,elements:c}=n,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=Xe(r,n);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const y=we(i),b=we(l)===l,O=await(u.isRTL==null?void 0:u.isRTL(c.floating)),T=v||(b||!g?[En(l)]:Fl(l));!v&&p!=="none"&&T.push(...$l(l,g,p,O));const P=[l,...T],k=await Dn(n,m),x=[];let S=((e=o.flip)==null?void 0:e.overflows)||[];if(f&&x.push(k[y]),d){const E=Bo(i,a,O);x.push(k[E[0]],k[E[1]])}if(S=[...S,{placement:i,overflows:x}],!x.every(E=>E<=0)){var R,A;const E=(((R=o.flip)==null?void 0:R.index)||0)+1,N=P[E];if(N)return{data:{index:E,overflows:S},reset:{placement:N}};let D=(A=S.filter(M=>M.overflows[0]<=0).sort((M,C)=>M.overflows[1]-C.overflows[1])[0])==null?void 0:A.placement;if(!D)switch(h){case"bestFit":{var _;const M=(_=S.map(C=>[C.placement,C.overflows.filter(w=>w>0).reduce((w,I)=>w+I,0)]).sort((C,w)=>C[1]-w[1])[0])==null?void 0:_[0];M&&(D=M);break}case"initialPlacement":D=l;break}if(i!==D)return{reset:{placement:D}}}return{}}}};async function Kl(r,n){const{placement:t,platform:e,elements:i}=r,o=await(e.isRTL==null?void 0:e.isRTL(i.floating)),a=we(t),l=ge(t),u=Vt(t)==="y",c=["left","top"].includes(a)?-1:1,f=o&&u?-1:1,d=Xe(n,r);let{mainAxis:v,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof p=="number"&&(h=l==="end"?p*-1:p),u?{x:h*f,y:v*c}:{x:v*c,y:h*f}}const Zl=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(n){const{x:t,y:e}=n,i=await Kl(n,r);return{x:t+i.x,y:e+i.y,data:i}}}},Ql=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(n){const{x:t,y:e,placement:i}=n,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:m=>{let{x:y,y:b}=m;return{x:y,y:b}}},...u}=Xe(r,n),c={x:t,y:e},f=await Dn(n,u),d=Vt(we(i)),v=Mo(d);let h=c[v],p=c[d];if(o){const m=v==="y"?"top":"left",y=v==="y"?"bottom":"right",b=h+f[m],O=h-f[y];h=vr(b,h,O)}if(a){const m=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=p+f[m],O=p-f[y];p=vr(b,p,O)}const g=l.fn({...n,[v]:h,[d]:p});return{...g,data:{x:g.x-t,y:g.y-e}}}}},Jl=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(n){const{placement:t,rects:e,platform:i,elements:o}=n,{apply:a=()=>{},...l}=Xe(r,n),u=await Dn(n,l),c=we(t),f=ge(t),d=Vt(t)==="y",{width:v,height:h}=e.floating;let p,g;c==="top"||c==="bottom"?(p=c,g=f===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(g=c,p=f==="end"?"top":"bottom");const m=h-u[p],y=v-u[g],b=!n.middlewareData.shift;let O=m,T=y;if(d){const k=v-u.left-u.right;T=f||b?Rt(y,k):k}else{const k=h-u.top-u.bottom;O=f||b?Rt(m,k):k}if(b&&!f){const k=Le(u.left,0),x=Le(u.right,0),S=Le(u.top,0),R=Le(u.bottom,0);d?T=v-2*(k!==0||x!==0?k+x:Le(u.left,u.right)):O=h-2*(S!==0||R!==0?S+R:Le(u.top,u.bottom))}await a({...n,availableWidth:T,availableHeight:O});const P=await i.getDimensions(o.floating);return v!==P.width||h!==P.height?{reset:{rects:!0}}:{}}}};function ve(r){var n;return((n=r.ownerDocument)==null?void 0:n.defaultView)||window}function _e(r){return ve(r).getComputedStyle(r)}const Li=Math.min,Tt=Math.max,Pn=Math.round;function zo(r){const n=_e(r);let t=parseFloat(n.width),e=parseFloat(n.height);const i=r.offsetWidth,o=r.offsetHeight,a=Pn(t)!==i||Pn(e)!==o;return a&&(t=i,e=o),{width:t,height:e,fallback:a}}function Ae(r){return Fo(r)?(r.nodeName||"").toLowerCase():""}let rn;function Vo(){if(rn)return rn;const r=navigator.userAgentData;return r&&Array.isArray(r.brands)?(rn=r.brands.map(n=>n.brand+"/"+n.version).join(" "),rn):navigator.userAgent}function Ee(r){return r instanceof ve(r).HTMLElement}function Ie(r){return r instanceof ve(r).Element}function Fo(r){return r instanceof ve(r).Node}function zi(r){return typeof ShadowRoot>"u"?!1:r instanceof ve(r).ShadowRoot||r instanceof ShadowRoot}function Mn(r){const{overflow:n,overflowX:t,overflowY:e,display:i}=_e(r);return/auto|scroll|overlay|hidden|clip/.test(n+e+t)&&!["inline","contents"].includes(i)}function ql(r){return["table","td","th"].includes(Ae(r))}function pr(r){const n=/firefox/i.test(Vo()),t=_e(r),e=t.backdropFilter||t.WebkitBackdropFilter;return t.transform!=="none"||t.perspective!=="none"||!!e&&e!=="none"||n&&t.willChange==="filter"||n&&!!t.filter&&t.filter!=="none"||["transform","perspective"].some(i=>t.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const o=t.contain;return o!=null&&o.includes(i)})}function jo(){return!/^((?!chrome|android).)*safari/i.test(Vo())}function Ur(r){return["html","body","#document"].includes(Ae(r))}function $o(r){return Ie(r)?r:r.contextElement}const Ho={x:1,y:1};function et(r){const n=$o(r);if(!Ee(n))return Ho;const t=n.getBoundingClientRect(),{width:e,height:i,fallback:o}=zo(n);let a=(o?Pn(t.width):t.width)/e,l=(o?Pn(t.height):t.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function At(r,n,t,e){var i,o;n===void 0&&(n=!1),t===void 0&&(t=!1);const a=r.getBoundingClientRect(),l=$o(r);let u=Ho;n&&(e?Ie(e)&&(u=et(e)):u=et(r));const c=l?ve(l):window,f=!jo()&&t;let d=(a.left+(f&&((i=c.visualViewport)==null?void 0:i.offsetLeft)||0))/u.x,v=(a.top+(f&&((o=c.visualViewport)==null?void 0:o.offsetTop)||0))/u.y,h=a.width/u.x,p=a.height/u.y;if(l){const g=ve(l),m=e&&Ie(e)?ve(e):e;let y=g.frameElement;for(;y&&e&&m!==g;){const b=et(y),O=y.getBoundingClientRect(),T=getComputedStyle(y);O.x+=(y.clientLeft+parseFloat(T.paddingLeft))*b.x,O.y+=(y.clientTop+parseFloat(T.paddingTop))*b.y,d*=b.x,v*=b.y,h*=b.x,p*=b.y,d+=O.x,v+=O.y,y=ve(y).frameElement}}return{width:h,height:p,top:v,right:d+h,bottom:v+p,left:d,x:d,y:v}}function Ne(r){return((Fo(r)?r.ownerDocument:r.document)||window.document).documentElement}function Bn(r){return Ie(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function Go(r){return At(Ne(r)).left+Bn(r).scrollLeft}function Dt(r){if(Ae(r)==="html")return r;const n=r.assignedSlot||r.parentNode||zi(r)&&r.host||Ne(r);return zi(n)?n.host:n}function Uo(r){const n=Dt(r);return Ur(n)?n.ownerDocument.body:Ee(n)&&Mn(n)?n:Uo(n)}function wn(r,n){var t;n===void 0&&(n=[]);const e=Uo(r),i=e===((t=r.ownerDocument)==null?void 0:t.body),o=ve(e);return i?n.concat(o,o.visualViewport||[],Mn(e)?e:[]):n.concat(e,wn(e))}function Vi(r,n,t){return n==="viewport"?Ot(function(e,i){const o=ve(e),a=Ne(e),l=o.visualViewport;let u=a.clientWidth,c=a.clientHeight,f=0,d=0;if(l){u=l.width,c=l.height;const v=jo();(v||!v&&i==="fixed")&&(f=l.offsetLeft,d=l.offsetTop)}return{width:u,height:c,x:f,y:d}}(r,t)):Ie(n)?Ot(function(e,i){const o=At(e,!0,i==="fixed"),a=o.top+e.clientTop,l=o.left+e.clientLeft,u=Ee(e)?et(e):{x:1,y:1};return{width:e.clientWidth*u.x,height:e.clientHeight*u.y,x:l*u.x,y:a*u.y}}(n,t)):Ot(function(e){const i=Ne(e),o=Bn(e),a=e.ownerDocument.body,l=Tt(i.scrollWidth,i.clientWidth,a.scrollWidth,a.clientWidth),u=Tt(i.scrollHeight,i.clientHeight,a.scrollHeight,a.clientHeight);let c=-o.scrollLeft+Go(e);const f=-o.scrollTop;return _e(a).direction==="rtl"&&(c+=Tt(i.clientWidth,a.clientWidth)-l),{width:l,height:u,x:c,y:f}}(Ne(r)))}function Fi(r){return Ee(r)&&_e(r).position!=="fixed"?r.offsetParent:null}function ji(r){const n=ve(r);let t=Fi(r);for(;t&&ql(t)&&_e(t).position==="static";)t=Fi(t);return t&&(Ae(t)==="html"||Ae(t)==="body"&&_e(t).position==="static"&&!pr(t))?n:t||function(e){let i=Dt(e);for(;Ee(i)&&!Ur(i);){if(pr(i))return i;i=Dt(i)}return null}(r)||n}function eu(r,n,t){const e=Ee(n),i=Ne(n),o=At(r,!0,t==="fixed",n);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(e||!e&&t!=="fixed")if((Ae(n)!=="body"||Mn(i))&&(a=Bn(n)),Ee(n)){const u=At(n,!0);l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}else i&&(l.x=Go(i));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}const tu={getClippingRect:function(r){let{element:n,boundary:t,rootBoundary:e,strategy:i}=r;const o=t==="clippingAncestors"?function(c,f){const d=f.get(c);if(d)return d;let v=wn(c).filter(m=>Ie(m)&&Ae(m)!=="body"),h=null;const p=_e(c).position==="fixed";let g=p?Dt(c):c;for(;Ie(g)&&!Ur(g);){const m=_e(g),y=pr(g);(p?y||h:y||m.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=m:v=v.filter(b=>b!==g),g=Dt(g)}return f.set(c,v),v}(n,this._c):[].concat(t),a=[...o,e],l=a[0],u=a.reduce((c,f)=>{const d=Vi(n,f,i);return c.top=Tt(d.top,c.top),c.right=Li(d.right,c.right),c.bottom=Li(d.bottom,c.bottom),c.left=Tt(d.left,c.left),c},Vi(n,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(r){let{rect:n,offsetParent:t,strategy:e}=r;const i=Ee(t),o=Ne(t);if(t===o)return n;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const u={x:0,y:0};if((i||!i&&e!=="fixed")&&((Ae(t)!=="body"||Mn(o))&&(a=Bn(t)),Ee(t))){const c=At(t);l=et(t),u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+u.x,y:n.y*l.y-a.scrollTop*l.y+u.y}},isElement:Ie,getDimensions:function(r){return Ee(r)?zo(r):r.getBoundingClientRect()},getOffsetParent:ji,getDocumentElement:Ne,getScale:et,async getElementRects(r){let{reference:n,floating:t,strategy:e}=r;const i=this.getOffsetParent||ji,o=this.getDimensions;return{reference:eu(n,await i(t),e),floating:{x:0,y:0,...await o(t)}}},getClientRects:r=>Array.from(r.getClientRects()),isRTL:r=>_e(r).direction==="rtl"},nu=(r,n,t)=>{const e=new Map,i={platform:tu,...t},o={...i.platform,_c:e};return Gl(r,n,{...i,platform:o})};function Wo(r,n){for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(typeof n[t]=="object"&&r[t]?Wo(r[t],n[t]):r[t]=n[t])}const Oe={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:r=>[...r,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function Mt(r,n){let t=Oe.themes[r]||{},e;do e=t[n],typeof e>"u"?t.$extend?t=Oe.themes[t.$extend]||{}:(t=null,e=Oe[n]):t=null;while(t);return e}function ru(r){const n=[r];let t=Oe.themes[r]||{};do t.$extend&&!t.$resetCss?(n.push(t.$extend),t=Oe.themes[t.$extend]||{}):t=null;while(t);return n.map(e=>`v-popper--theme-${e}`)}function $i(r){const n=[r];let t=Oe.themes[r]||{};do t.$extend?(n.push(t.$extend),t=Oe.themes[t.$extend]||{}):t=null;while(t);return n}let Ge=!1;if(typeof window<"u"){Ge=!1;try{const r=Object.defineProperty({},"passive",{get(){Ge=!0}});window.addEventListener("test",null,r)}catch{}}let Xo=!1;typeof window<"u"&&typeof navigator<"u"&&(Xo=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Yo=["auto","top","bottom","left","right"].reduce((r,n)=>r.concat([n,`${n}-start`,`${n}-end`]),[]),Hi={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Gi={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Ui(r,n){const t=r.indexOf(n);t!==-1&&r.splice(t,1)}function er(){return new Promise(r=>requestAnimationFrame(()=>{requestAnimationFrame(r)}))}const pe=[];let Be=null;const Wi={};function Xi(r){let n=Wi[r];return n||(n=Wi[r]=[]),n}let gr=function(){};typeof window<"u"&&(gr=window.Element);function U(r){return function(n){return Mt(n.theme,r)}}const tr="__floating-vue__popper",Ko=()=>s.defineComponent({name:"VPopper",provide(){return{[tr]:{parentPopper:this}}},inject:{[tr]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:U("disabled")},positioningDisabled:{type:Boolean,default:U("positioningDisabled")},placement:{type:String,default:U("placement"),validator:r=>Yo.includes(r)},delay:{type:[String,Number,Object],default:U("delay")},distance:{type:[Number,String],default:U("distance")},skidding:{type:[Number,String],default:U("skidding")},triggers:{type:Array,default:U("triggers")},showTriggers:{type:[Array,Function],default:U("showTriggers")},hideTriggers:{type:[Array,Function],default:U("hideTriggers")},popperTriggers:{type:Array,default:U("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:U("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:U("popperHideTriggers")},container:{type:[String,Object,gr,Boolean],default:U("container")},boundary:{type:[String,gr],default:U("boundary")},strategy:{type:String,validator:r=>["absolute","fixed"].includes(r),default:U("strategy")},autoHide:{type:[Boolean,Function],default:U("autoHide")},handleResize:{type:Boolean,default:U("handleResize")},instantMove:{type:Boolean,default:U("instantMove")},eagerMount:{type:Boolean,default:U("eagerMount")},popperClass:{type:[String,Array,Object],default:U("popperClass")},computeTransformOrigin:{type:Boolean,default:U("computeTransformOrigin")},autoMinSize:{type:Boolean,default:U("autoMinSize")},autoSize:{type:[Boolean,String],default:U("autoSize")},autoMaxSize:{type:Boolean,default:U("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:U("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:U("preventOverflow")},overflowPadding:{type:[Number,String],default:U("overflowPadding")},arrowPadding:{type:[Number,String],default:U("arrowPadding")},arrowOverflow:{type:Boolean,default:U("arrowOverflow")},flip:{type:Boolean,default:U("flip")},shift:{type:Boolean,default:U("shift")},shiftCrossAxis:{type:Boolean,default:U("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:U("noAutoFocus")},disposeTimeout:{type:Number,default:U("disposeTimeout")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var r;return(r=this[tr])==null?void 0:r.parentPopper},hasPopperShowTriggerHover(){var r,n;return((r=this.popperTriggers)==null?void 0:r.includes("hover"))||((n=this.popperShowTriggers)==null?void 0:n.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(r){r?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce((r,n)=>(r[n]="$_refreshListeners",r),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((r,n)=>(r[n]="$_computePosition",r),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(r=>r.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:r=null,skipDelay:n=!1,force:t=!1}={}){var e,i;(e=this.parentPopper)!=null&&e.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(t||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(r,n),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:r=null,skipDelay:n=!1}={}){var t;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:n}),this.parentPopper.lockedChild=null)},1e3));return}((t=this.parentPopper)==null?void 0:t.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(r,n),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var r;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((r=this.referenceNode)==null?void 0:r.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(n=>n.nodeType===n.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const r={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&r.middleware.push(Zl({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");if(n?r.middleware.push(Xl({alignment:this.placement.split("-")[1]??""})):r.placement=this.placement,this.preventOverflow&&(this.shift&&r.middleware.push(Ql({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&r.middleware.push(Yl({padding:this.overflowPadding,boundary:this.boundary}))),r.middleware.push(Ul({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&r.middleware.push({name:"arrowOverflow",fn:({placement:e,rects:i,middlewareData:o})=>{let a;const{centerOffset:l}=o.arrow;return e.startsWith("top")||e.startsWith("bottom")?a=Math.abs(l)>i.reference.width/2:a=Math.abs(l)>i.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const e=this.autoSize?this.autoSize:this.autoMinSize?"min":null;r.middleware.push({name:"autoSize",fn:({rects:i,placement:o,middlewareData:a})=>{var l;if((l=a.autoSize)!=null&&l.skip)return{};let u,c;return o.startsWith("top")||o.startsWith("bottom")?u=i.reference.width:c=i.reference.height,this.$_innerNode.style[e==="min"?"minWidth":e==="max"?"maxWidth":"width"]=u!=null?`${u}px`:null,this.$_innerNode.style[e==="min"?"minHeight":e==="max"?"maxHeight":"height"]=c!=null?`${c}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,r.middleware.push(Jl({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:i})=>{this.$_innerNode.style.maxWidth=e!=null?`${e}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const t=await nu(this.$_referenceNode,this.$_popperNode,r);Object.assign(this.result,{x:t.x,y:t.y,placement:t.placement,strategy:t.strategy,arrow:{...t.middlewareData.arrow,...t.middlewareData.arrowOverflow}})},$_scheduleShow(r=null,n=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Be&&this.instantMove&&Be.instantMove&&Be!==this.parentPopper){Be.$_applyHide(!0),this.$_applyShow(!0);return}n?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(r=null,n=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Be=this),n?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(r){const n=this.delay;return parseInt(n&&n[r]||n||0)},async $_applyShow(r=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=r,!this.isShown&&(this.$_ensureTeleport(),await er(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...wn(this.$_referenceNode),...wn(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const n=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(".v-popper__wrapper"),e=t.parentNode.getBoundingClientRect(),i=n.x+n.width/2-(e.left+t.offsetLeft),o=n.y+n.height/2-(e.top+t.offsetTop);this.result.transformOrigin=`${i}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const r=this.showGroup;if(r){let n;for(let t=0;t<pe.length;t++)n=pe[t],n.showGroup!==r&&(n.hide(),n.$emit("close-group"))}pe.push(this),document.body.classList.add("v-popper--some-open");for(const n of $i(this.theme))Xi(n).push(this),document.body.classList.add(`v-popper--some-open--${n}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await er(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(r=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=r,Ui(pe,this),pe.length===0&&document.body.classList.remove("v-popper--some-open");for(const t of $i(this.theme)){const e=Xi(t);Ui(e,this),e.length===0&&document.body.classList.remove(`v-popper--some-open--${t}`)}Be===this&&(Be=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const n=this.disposeTimeout;n!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},n)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await er(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let r=this.container;if(typeof r=="string"?r=window.document.querySelector(r):r===!1&&(r=this.$_targetNodes[0].parentNode),!r)throw new Error("No container for popover: "+this.container);r.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const r=t=>{this.isShown&&!this.$_hideInProgress||(t.usedByTooltip=!0,!this.$_preventShow&&this.show({event:t}))};this.$_registerTriggerListeners(this.$_targetNodes,Hi,this.triggers,this.showTriggers,r),this.$_registerTriggerListeners([this.$_popperNode],Hi,this.popperTriggers,this.popperShowTriggers,r);const n=t=>{t.usedByTooltip||this.hide({event:t})};this.$_registerTriggerListeners(this.$_targetNodes,Gi,this.triggers,this.hideTriggers,n),this.$_registerTriggerListeners([this.$_popperNode],Gi,this.popperTriggers,this.popperHideTriggers,n)},$_registerEventListeners(r,n,t){this.$_events.push({targetNodes:r,eventType:n,handler:t}),r.forEach(e=>e.addEventListener(n,t,Ge?{passive:!0}:void 0))},$_registerTriggerListeners(r,n,t,e,i){let o=t;e!=null&&(o=typeof e=="function"?e(o):e),o.forEach(a=>{const l=n[a];l&&this.$_registerEventListeners(r,l,i)})},$_removeEventListeners(r){const n=[];this.$_events.forEach(t=>{const{targetNodes:e,eventType:i,handler:o}=t;!r||r===i?e.forEach(a=>a.removeEventListener(i,o)):n.push(t)}),this.$_events=n},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(r,n=!1){this.$_showFrameLocked||(this.hide({event:r}),r.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(r,n){for(const t of this.$_targetNodes){const e=t.getAttribute(r);e&&(t.removeAttribute(r),t.setAttribute(n,e))}},$_applyAttrsToTarget(r){for(const n of this.$_targetNodes)for(const t in r){const e=r[t];e==null?n.removeAttribute(t):n.setAttribute(t,e)}},$_updateParentShownChildren(r){let n=this.parentPopper;for(;n;)r?n.shownChildren.add(this.randomId):(n.shownChildren.delete(this.randomId),n.$_pendingHide&&n.hide()),n=n.parentPopper},$_isAimingPopper(){const r=this.$_referenceNode.getBoundingClientRect();if(St>=r.left&&St<=r.right&&xt>=r.top&&xt<=r.bottom){const n=this.$_popperNode.getBoundingClientRect(),t=St-xe,e=xt-Ce,i=n.left+n.width/2-xe+(n.top+n.height/2)-Ce+n.width+n.height,o=xe+t*i,a=Ce+e*i;return on(xe,Ce,o,a,n.left,n.top,n.left,n.bottom)||on(xe,Ce,o,a,n.left,n.top,n.right,n.top)||on(xe,Ce,o,a,n.right,n.top,n.right,n.bottom)||on(xe,Ce,o,a,n.left,n.bottom,n.right,n.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(Xo?(document.addEventListener("touchstart",Yi,Ge?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",ou,Ge?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Yi,!0),window.addEventListener("click",iu,!0)),window.addEventListener("resize",lu));function Yi(r){for(let n=0;n<pe.length;n++){const t=pe[n];try{const e=t.popperNode();t.$_mouseDownContains=e.contains(r.target)}catch{}}}function iu(r){Zo(r)}function ou(r){Zo(r,!0)}function Zo(r,n=!1){const t={};for(let e=pe.length-1;e>=0;e--){const i=pe[e];try{const o=i.$_containsGlobalTarget=au(i,r);i.$_pendingHide=!1,requestAnimationFrame(()=>{if(i.$_pendingHide=!1,!t[i.randomId]&&Ki(i,o,r)){if(i.$_handleGlobalClose(r,n),!r.closeAllPopover&&r.closePopover&&o){let l=i.parentPopper;for(;l;)t[l.randomId]=!0,l=l.parentPopper;return}let a=i.parentPopper;for(;a&&Ki(a,a.$_containsGlobalTarget,r);)a.$_handleGlobalClose(r,n),a=a.parentPopper}})}catch{}}}function au(r,n){const t=r.popperNode();return r.$_mouseDownContains||t.contains(n.target)}function Ki(r,n,t){return t.closeAllPopover||t.closePopover&&n||su(r,t)&&!n}function su(r,n){if(typeof r.autoHide=="function"){const t=r.autoHide(n);return r.lastAutoHide=t,t}return r.autoHide}function lu(r){for(let n=0;n<pe.length;n++)pe[n].$_computePosition(r)}let xe=0,Ce=0,St=0,xt=0;typeof window<"u"&&window.addEventListener("mousemove",r=>{xe=St,Ce=xt,St=r.clientX,xt=r.clientY},Ge?{passive:!0}:void 0);function on(r,n,t,e,i,o,a,l){const u=((a-i)*(n-o)-(l-o)*(r-i))/((l-o)*(t-r)-(a-i)*(e-n)),c=((t-r)*(n-o)-(e-n)*(r-i))/((l-o)*(t-r)-(a-i)*(e-n));return u>=0&&u<=1&&c>=0&&c<=1}const uu={extends:Ko()},Ln=(r,n)=>{const t=r.__vccOpts||r;for(const[e,i]of n)t[e]=i;return t};function cu(r,n,t,e,i,o){return s.openBlock(),s.createElementBlock("div",{ref:"reference",class:s.normalizeClass(["v-popper",{"v-popper--shown":r.slotData.isShown}])},[s.renderSlot(r.$slots,"default",s.normalizeProps(s.guardReactiveProps(r.slotData)))],2)}const fu=Ln(uu,[["render",cu]]);function du(){var r=window.navigator.userAgent,n=r.indexOf("MSIE ");if(n>0)return parseInt(r.substring(n+5,r.indexOf(".",n)),10);var t=r.indexOf("Trident/");if(t>0){var e=r.indexOf("rv:");return parseInt(r.substring(e+3,r.indexOf(".",e)),10)}var i=r.indexOf("Edge/");return i>0?parseInt(r.substring(i+5,r.indexOf(".",i)),10):-1}let un;function mr(){mr.init||(mr.init=!0,un=du()!==-1)}var zn={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){mr(),s.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const r=document.createElement("object");this._resizeObject=r,r.setAttribute("aria-hidden","true"),r.setAttribute("tabindex",-1),r.onload=this.addResizeHandlers,r.type="text/html",un&&this.$el.appendChild(r),r.data="about:blank",un||this.$el.appendChild(r)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!un&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const hu=s.withScopeId();s.pushScopeId("data-v-b329ee4c");const vu={class:"resize-observer",tabindex:"-1"};s.popScopeId();const pu=hu((r,n,t,e,i,o)=>(s.openBlock(),s.createBlock("div",vu)));zn.render=pu;zn.__scopeId="data-v-b329ee4c";zn.__file="src/components/ResizeObserver.vue";const Qo=(r="theme")=>({computed:{themeClass(){return ru(this[r])}}}),gu=s.defineComponent({name:"VPopperContent",components:{ResizeObserver:zn},mixins:[Qo()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(r){return r!=null&&!isNaN(r)?`${r}px`:null}}}),mu=["id","aria-hidden","tabindex","data-popper-placement"],yu={ref:"inner",class:"v-popper__inner"},bu=s.createBaseVNode("div",{class:"v-popper__arrow-outer"},null,-1),_u=s.createBaseVNode("div",{class:"v-popper__arrow-inner"},null,-1),Eu=[bu,_u];function Pu(r,n,t,e,i,o){const a=s.resolveComponent("ResizeObserver");return s.openBlock(),s.createElementBlock("div",{id:r.popperId,ref:"popover",class:s.normalizeClass(["v-popper__popper",[r.themeClass,r.classes.popperClass,{"v-popper__popper--shown":r.shown,"v-popper__popper--hidden":!r.shown,"v-popper__popper--show-from":r.classes.showFrom,"v-popper__popper--show-to":r.classes.showTo,"v-popper__popper--hide-from":r.classes.hideFrom,"v-popper__popper--hide-to":r.classes.hideTo,"v-popper__popper--skip-transition":r.skipTransition,"v-popper__popper--arrow-overflow":r.result&&r.result.arrow.overflow,"v-popper__popper--no-positioning":!r.result}]]),style:s.normalizeStyle(r.result?{position:r.result.strategy,transform:`translate3d(${Math.round(r.result.x)}px,${Math.round(r.result.y)}px,0)`}:void 0),"aria-hidden":r.shown?"false":"true",tabindex:r.autoHide?0:void 0,"data-popper-placement":r.result?r.result.placement:void 0,onKeyup:n[2]||(n[2]=s.withKeys(l=>r.autoHide&&r.$emit("hide"),["esc"]))},[s.createBaseVNode("div",{class:"v-popper__backdrop",onClick:n[0]||(n[0]=l=>r.autoHide&&r.$emit("hide"))}),s.createBaseVNode("div",{class:"v-popper__wrapper",style:s.normalizeStyle(r.result?{transformOrigin:r.result.transformOrigin}:void 0)},[s.createBaseVNode("div",yu,[r.mounted?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createBaseVNode("div",null,[s.renderSlot(r.$slots,"default")]),r.handleResize?(s.openBlock(),s.createBlock(a,{key:0,onNotify:n[1]||(n[1]=l=>r.$emit("resize",l))})):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0)],512),s.createBaseVNode("div",{ref:"arrow",class:"v-popper__arrow-container",style:s.normalizeStyle(r.result?{left:r.toPx(r.result.arrow.x),top:r.toPx(r.result.arrow.y)}:void 0)},Eu,4)],4)],46,mu)}const Jo=Ln(gu,[["render",Pu]]),qo={methods:{show(...r){return this.$refs.popper.show(...r)},hide(...r){return this.$refs.popper.hide(...r)},dispose(...r){return this.$refs.popper.dispose(...r)},onResize(...r){return this.$refs.popper.onResize(...r)}}},wu=s.defineComponent({name:"VPopperWrapper",components:{Popper:fu,PopperContent:Jo},mixins:[qo,Qo("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(r=>r!==this.$refs.popperContent.$el)}}});function Ou(r,n,t,e,i,o){const a=s.resolveComponent("PopperContent"),l=s.resolveComponent("Popper");return s.openBlock(),s.createBlock(l,{ref:"popper",theme:r.finalTheme,"target-nodes":r.getTargetNodes,"popper-node":()=>r.$refs.popperContent.$el,class:s.normalizeClass([r.themeClass])},{default:s.withCtx(({popperId:u,isShown:c,shouldMountContent:f,skipTransition:d,autoHide:v,show:h,hide:p,handleResize:g,onResize:m,classes:y,result:b})=>[s.renderSlot(r.$slots,"default",{shown:c,show:h,hide:p}),s.createVNode(a,{ref:"popperContent","popper-id":u,theme:r.finalTheme,shown:c,mounted:f,"skip-transition":d,"auto-hide":v,"handle-resize":g,classes:y,result:b,onHide:p,onResize:m},{default:s.withCtx(()=>[s.renderSlot(r.$slots,"popper",{shown:c,hide:p})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}const Wr=Ln(wu,[["render",Ou]]),Tu={...Wr,name:"VDropdown",vPopperTheme:"dropdown"},Su={...Wr,name:"VMenu",vPopperTheme:"menu"},xu={...Wr,name:"VTooltip",vPopperTheme:"tooltip"},Cu=s.defineComponent({name:"VTooltipDirective",components:{Popper:Ko(),PopperContent:Jo},mixins:[qo],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:r=>Mt(r.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:r=>Mt(r.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(r){if(typeof this.content=="function"&&this.$_isShown&&(r||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const n=++this.$_fetchId,t=this.content(this);t.then?t.then(e=>this.onResult(n,e)):this.onResult(n,t)}},onResult(r,n){r===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=n)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),ku=["innerHTML"],Iu=["textContent"];function Nu(r,n,t,e,i,o){const a=s.resolveComponent("PopperContent"),l=s.resolveComponent("Popper");return s.openBlock(),s.createBlock(l,s.mergeProps({ref:"popper"},r.$attrs,{theme:r.theme,"target-nodes":r.targetNodes,"popper-node":()=>r.$refs.popperContent.$el,onApplyShow:r.onShow,onApplyHide:r.onHide}),{default:s.withCtx(({popperId:u,isShown:c,shouldMountContent:f,skipTransition:d,autoHide:v,hide:h,handleResize:p,onResize:g,classes:m,result:y})=>[s.createVNode(a,{ref:"popperContent",class:s.normalizeClass({"v-popper--tooltip-loading":r.loading}),"popper-id":u,theme:r.theme,shown:c,mounted:f,"skip-transition":d,"auto-hide":v,"handle-resize":p,classes:m,result:y,onHide:h,onResize:g},{default:s.withCtx(()=>[r.html?(s.openBlock(),s.createElementBlock("div",{key:0,innerHTML:r.finalContent},null,8,ku)):(s.openBlock(),s.createElementBlock("div",{key:1,textContent:s.toDisplayString(r.finalContent)},null,8,Iu))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const Ru=Ln(Cu,[["render",Nu]]),ea="v-popper--has-tooltip";function Au(r,n){let t=r.placement;if(!t&&n)for(const e of Yo)n[e]&&(t=e);return t||(t=Mt(r.theme||"tooltip","placement")),t}function ta(r,n,t){let e;const i=typeof n;return i==="string"?e={content:n}:n&&i==="object"?e=n:e={content:!1},e.placement=Au(e,t),e.targetNodes=()=>[r],e.referenceNode=()=>r,e}let nr,Bt,Du=0;function Mu(){if(nr)return;Bt=s.ref([]),nr=s.createApp({name:"VTooltipDirectiveApp",setup(){return{directives:Bt}},render(){return this.directives.map(n=>s.h(Ru,{...n.options,shown:n.shown||n.options.shown,key:n.id}))},devtools:{hide:!0}});const r=document.createElement("div");document.body.appendChild(r),nr.mount(r)}function Bu(r,n,t){Mu();const e=s.ref(ta(r,n,t)),i=s.ref(!1),o={id:Du++,options:e,shown:i};return Bt.value.push(o),r.classList&&r.classList.add(ea),r.$_popper={options:e,item:o,show(){i.value=!0},hide(){i.value=!1}}}function na(r){if(r.$_popper){const n=Bt.value.indexOf(r.$_popper.item);n!==-1&&Bt.value.splice(n,1),delete r.$_popper,delete r.$_popperOldShown,delete r.$_popperMountTarget}r.classList&&r.classList.remove(ea)}function Zi(r,{value:n,modifiers:t}){const e=ta(r,n,t);if(!e.content||Mt(e.theme||"tooltip","disabled"))na(r);else{let i;r.$_popper?(i=r.$_popper,i.options.value=e):i=Bu(r,n,t),typeof n.shown<"u"&&n.shown!==r.$_popperOldShown&&(r.$_popperOldShown=n.shown,n.shown?i.show():i.hide())}}const Lu={beforeMount:Zi,updated:Zi,beforeUnmount(r){na(r)}};function Qi(r){r.addEventListener("click",ra),r.addEventListener("touchstart",ia,Ge?{passive:!0}:!1)}function Ji(r){r.removeEventListener("click",ra),r.removeEventListener("touchstart",ia),r.removeEventListener("touchend",oa),r.removeEventListener("touchcancel",aa)}function ra(r){const n=r.currentTarget;r.closePopover=!n.$_vclosepopover_touch,r.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}function ia(r){if(r.changedTouches.length===1){const n=r.currentTarget;n.$_vclosepopover_touch=!0;const t=r.changedTouches[0];n.$_vclosepopover_touchPoint=t,n.addEventListener("touchend",oa),n.addEventListener("touchcancel",aa)}}function oa(r){const n=r.currentTarget;if(n.$_vclosepopover_touch=!1,r.changedTouches.length===1){const t=r.changedTouches[0],e=n.$_vclosepopover_touchPoint;r.closePopover=Math.abs(t.screenY-e.screenY)<20&&Math.abs(t.screenX-e.screenX)<20,r.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}}function aa(r){const n=r.currentTarget;n.$_vclosepopover_touch=!1}const zu={beforeMount(r,{value:n,modifiers:t}){r.$_closePopoverModifiers=t,(typeof n>"u"||n)&&Qi(r)},updated(r,{value:n,oldValue:t,modifiers:e}){r.$_closePopoverModifiers=e,n!==t&&(typeof n>"u"||n?Qi(r):Ji(r))},beforeUnmount(r){Ji(r)}};function Vu(r,n={}){r.$_vTooltipInstalled||(r.$_vTooltipInstalled=!0,Wo(Oe,n),r.directive("tooltip",Lu),r.directive("close-popper",zu),r.component("VTooltip",xu),r.component("VDropdown",Tu),r.component("VMenu",Su))}const Fu={version:"2.0.0-beta.24",install:Vu,options:Oe};var sa={exports:{}};const la=Br.getAugmentedNamespace(s.vue_esmBundler);(function(r,n){(function(e,i){r.exports=i(la)})(typeof self<"u"?self:Br.commonjsGlobal,function(t){return function(e){var i={};function o(a){if(i[a])return i[a].exports;var l=i[a]={i:a,l:!1,exports:{}};return e[a].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=e,o.c=i,o.d=function(a,l,u){o.o(a,l)||Object.defineProperty(a,l,{enumerable:!0,get:u})},o.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},o.t=function(a,l){if(l&1&&(a=o(a)),l&8||l&4&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),l&2&&typeof a!="string")for(var c in a)o.d(u,c,function(f){return a[f]}.bind(null,c));return u},o.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return o.d(l,"a",l),l},o.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},o.p="",o(o.s="fb15")}({"00ee":function(e,i,o){var a=o("b622"),l=a("toStringTag"),u={};u[l]="z",e.exports=String(u)==="[object z]"},"0366":function(e,i,o){var a=o("1c0b");e.exports=function(l,u,c){if(a(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(f){return l.call(u,f)};case 2:return function(f,d){return l.call(u,f,d)};case 3:return function(f,d,v){return l.call(u,f,d,v)}}return function(){return l.apply(u,arguments)}}},"06cf":function(e,i,o){var a=o("83ab"),l=o("d1e7"),u=o("5c6c"),c=o("fc6a"),f=o("c04e"),d=o("5135"),v=o("0cfb"),h=Object.getOwnPropertyDescriptor;i.f=a?h:function(g,m){if(g=c(g),m=f(m,!0),v)try{return h(g,m)}catch{}if(d(g,m))return u(!l.f.call(g,m),g[m])}},"0cfb":function(e,i,o){var a=o("83ab"),l=o("d039"),u=o("cc12");e.exports=!a&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"1be4":function(e,i,o){var a=o("d066");e.exports=a("document","documentElement")},"1c0b":function(e,i){e.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},"1d80":function(e,i){e.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"1dde":function(e,i,o){var a=o("d039"),l=o("b622"),u=o("2d00"),c=l("species");e.exports=function(f){return u>=51||!a(function(){var d=[],v=d.constructor={};return v[c]=function(){return{foo:1}},d[f](Boolean).foo!==1})}},"23cb":function(e,i,o){var a=o("a691"),l=Math.max,u=Math.min;e.exports=function(c,f){var d=a(c);return d<0?l(d+f,0):u(d,f)}},"23e7":function(e,i,o){var a=o("da84"),l=o("06cf").f,u=o("9112"),c=o("6eeb"),f=o("ce4e"),d=o("e893"),v=o("94ca");e.exports=function(h,p){var g=h.target,m=h.global,y=h.stat,b,O,T,P,k,x;if(m?O=a:y?O=a[g]||f(g,{}):O=(a[g]||{}).prototype,O)for(T in p){if(k=p[T],h.noTargetGet?(x=l(O,T),P=x&&x.value):P=O[T],b=v(m?T:g+(y?".":"#")+T,h.forced),!b&&P!==void 0){if(typeof k==typeof P)continue;d(k,P)}(h.sham||P&&P.sham)&&u(k,"sham",!0),c(O,T,k,h)}}},"241c":function(e,i,o){var a=o("ca84"),l=o("7839"),u=l.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(f){return a(f,u)}},"2d00":function(e,i,o){var a=o("da84"),l=o("342f"),u=a.process,c=u&&u.versions,f=c&&c.v8,d,v;f?(d=f.split("."),v=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(v=d[1]))),e.exports=v&&+v},"342f":function(e,i,o){var a=o("d066");e.exports=a("navigator","userAgent")||""},"37e8":function(e,i,o){var a=o("83ab"),l=o("9bf2"),u=o("825a"),c=o("df75");e.exports=a?Object.defineProperties:function(d,v){u(d);for(var h=c(v),p=h.length,g=0,m;p>g;)l.f(d,m=h[g++],v[m]);return d}},"3bbe":function(e,i,o){var a=o("861d");e.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"428f":function(e,i,o){var a=o("da84");e.exports=a},"44ad":function(e,i,o){var a=o("d039"),l=o("c6b6"),u="".split;e.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object},4930:function(e,i,o){var a=o("d039");e.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(e,i,o){var a=o("fc6a"),l=o("50c4"),u=o("23cb"),c=function(f){return function(d,v,h){var p=a(d),g=l(p.length),m=u(h,g),y;if(f&&v!=v){for(;g>m;)if(y=p[m++],y!=y)return!0}else for(;g>m;m++)if((f||m in p)&&p[m]===v)return f||m||0;return!f&&-1}};e.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(e,i,o){var a=o("23e7"),l=o("b727").filter,u=o("1dde"),c=o("ae40"),f=u("filter"),d=c("filter");a({target:"Array",proto:!0,forced:!f||!d},{filter:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})},"50c4":function(e,i,o){var a=o("a691"),l=Math.min;e.exports=function(u){return u>0?l(a(u),9007199254740991):0}},5135:function(e,i){var o={}.hasOwnProperty;e.exports=function(a,l){return o.call(a,l)}},5692:function(e,i,o){var a=o("c430"),l=o("c6cd");(e.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,i,o){var a=o("d066"),l=o("241c"),u=o("7418"),c=o("825a");e.exports=a("Reflect","ownKeys")||function(d){var v=l.f(c(d)),h=u.f;return h?v.concat(h(d)):v}},5899:function(e,i){e.exports=`
11
+ \v\f\r                 \u2028\u2029\uFEFF`},"58a8":function(e,i,o){var a=o("1d80"),l=o("5899"),u="["+l+"]",c=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),d=function(v){return function(h){var p=String(a(h));return v&1&&(p=p.replace(c,"")),v&2&&(p=p.replace(f,"")),p}};e.exports={start:d(1),end:d(2),trim:d(3)}},"5c6c":function(e,i){e.exports=function(o,a){return{enumerable:!(o&1),configurable:!(o&2),writable:!(o&4),value:a}}},"652c":function(e,i,o){},"65f0":function(e,i,o){var a=o("861d"),l=o("e8b5"),u=o("b622"),c=u("species");e.exports=function(f,d){var v;return l(f)&&(v=f.constructor,typeof v=="function"&&(v===Array||l(v.prototype))?v=void 0:a(v)&&(v=v[c],v===null&&(v=void 0))),new(v===void 0?Array:v)(d===0?0:d)}},"69f3":function(e,i,o){var a=o("7f9a"),l=o("da84"),u=o("861d"),c=o("9112"),f=o("5135"),d=o("f772"),v=o("d012"),h=l.WeakMap,p,g,m,y=function(S){return m(S)?g(S):p(S,{})},b=function(S){return function(R){var A;if(!u(R)||(A=g(R)).type!==S)throw TypeError("Incompatible receiver, "+S+" required");return A}};if(a){var O=new h,T=O.get,P=O.has,k=O.set;p=function(S,R){return k.call(O,S,R),R},g=function(S){return T.call(O,S)||{}},m=function(S){return P.call(O,S)}}else{var x=d("state");v[x]=!0,p=function(S,R){return c(S,x,R),R},g=function(S){return f(S,x)?S[x]:{}},m=function(S){return f(S,x)}}e.exports={set:p,get:g,has:m,enforce:y,getterFor:b}},"6b0d":function(e,i,o){Object.defineProperty(i,"__esModule",{value:!0}),i.default=(a,l)=>{const u=a.__vccOpts||a;for(const[c,f]of l)u[c]=f;return u}},"6eeb":function(e,i,o){var a=o("da84"),l=o("9112"),u=o("5135"),c=o("ce4e"),f=o("8925"),d=o("69f3"),v=d.get,h=d.enforce,p=String(String).split("String");(e.exports=function(g,m,y,b){var O=b?!!b.unsafe:!1,T=b?!!b.enumerable:!1,P=b?!!b.noTargetGet:!1;if(typeof y=="function"&&(typeof m=="string"&&!u(y,"name")&&l(y,"name",m),h(y).source=p.join(typeof m=="string"?m:"")),g===a){T?g[m]=y:c(m,y);return}else O?!P&&g[m]&&(T=!0):delete g[m];T?g[m]=y:l(g,m,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||f(this)})},7156:function(e,i,o){var a=o("861d"),l=o("d2bb");e.exports=function(u,c,f){var d,v;return l&&typeof(d=c.constructor)=="function"&&d!==f&&a(v=d.prototype)&&v!==f.prototype&&l(u,v),u}},7418:function(e,i){i.f=Object.getOwnPropertySymbols},7839:function(e,i){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7ae1":function(e,i,o){o("652c")},"7b0b":function(e,i,o){var a=o("1d80");e.exports=function(l){return Object(a(l))}},"7c73":function(e,i,o){var a=o("825a"),l=o("37e8"),u=o("7839"),c=o("d012"),f=o("1be4"),d=o("cc12"),v=o("f772"),h=">",p="<",g="prototype",m="script",y=v("IE_PROTO"),b=function(){},O=function(S){return p+m+h+S+p+"/"+m+h},T=function(S){S.write(O("")),S.close();var R=S.parentWindow.Object;return S=null,R},P=function(){var S=d("iframe"),R="java"+m+":",A;return S.style.display="none",f.appendChild(S),S.src=String(R),A=S.contentWindow.document,A.open(),A.write(O("document.F=Object")),A.close(),A.F},k,x=function(){try{k=document.domain&&new ActiveXObject("htmlfile")}catch{}x=k?T(k):P();for(var S=u.length;S--;)delete x[g][u[S]];return x()};c[y]=!0,e.exports=Object.create||function(R,A){var _;return R!==null?(b[g]=a(R),_=new b,b[g]=null,_[y]=R):_=x(),A===void 0?_:l(_,A)}},"7f9a":function(e,i,o){var a=o("da84"),l=o("8925"),u=a.WeakMap;e.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(e,i,o){var a=o("861d");e.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(e,i,o){var a=o("d039");e.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(e,i,o){var a=o("c04e"),l=o("9bf2"),u=o("5c6c");e.exports=function(c,f,d){var v=a(f);v in c?l.f(c,v,u(0,d)):c[v]=d}},"861d":function(e,i){e.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},8875:function(e,i,o){var a,l,u;(function(c,f){l=[],a=f,u=typeof a=="function"?a.apply(i,l):a,u!==void 0&&(e.exports=u)})(typeof self<"u"?self:this,function(){function c(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(k){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,v=/@([^@]*):(\d+):(\d+)\s*$/ig,h=d.exec(k.stack)||v.exec(k.stack),p=h&&h[1]||!1,g=h&&h[2]||!1,m=document.location.href.replace(document.location.hash,""),y,b,O,T=document.getElementsByTagName("script");p===m&&(y=document.documentElement.outerHTML,b=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),O=y.replace(b,"$1").trim());for(var P=0;P<T.length;P++)if(T[P].readyState==="interactive"||T[P].src===p||p===m&&T[P].innerHTML&&T[P].innerHTML.trim()===O)return T[P];return null}}return c})},8925:function(e,i,o){var a=o("c6cd"),l=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(u){return l.call(u)}),e.exports=a.inspectSource},"8bbf":function(e,i){e.exports=t},"90e3":function(e,i){var o=0,a=Math.random();e.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++o+a).toString(36)}},9112:function(e,i,o){var a=o("83ab"),l=o("9bf2"),u=o("5c6c");e.exports=a?function(c,f,d){return l.f(c,f,u(1,d))}:function(c,f,d){return c[f]=d,c}},"94ca":function(e,i,o){var a=o("d039"),l=/#|\.prototype\./,u=function(h,p){var g=f[c(h)];return g==v?!0:g==d?!1:typeof p=="function"?a(p):!!p},c=u.normalize=function(h){return String(h).replace(l,".").toLowerCase()},f=u.data={},d=u.NATIVE="N",v=u.POLYFILL="P";e.exports=u},"99af":function(e,i,o){var a=o("23e7"),l=o("d039"),u=o("e8b5"),c=o("861d"),f=o("7b0b"),d=o("50c4"),v=o("8418"),h=o("65f0"),p=o("1dde"),g=o("b622"),m=o("2d00"),y=g("isConcatSpreadable"),b=9007199254740991,O="Maximum allowed index exceeded",T=m>=51||!l(function(){var S=[];return S[y]=!1,S.concat()[0]!==S}),P=p("concat"),k=function(S){if(!c(S))return!1;var R=S[y];return R!==void 0?!!R:u(S)},x=!T||!P;a({target:"Array",proto:!0,forced:x},{concat:function(R){var A=f(this),_=h(A,0),E=0,N,D,M,C,w;for(N=-1,M=arguments.length;N<M;N++)if(w=N===-1?A:arguments[N],k(w)){if(C=d(w.length),E+C>b)throw TypeError(O);for(D=0;D<C;D++,E++)D in w&&v(_,E,w[D])}else{if(E>=b)throw TypeError(O);v(_,E++,w)}return _.length=E,_}})},"9bf2":function(e,i,o){var a=o("83ab"),l=o("0cfb"),u=o("825a"),c=o("c04e"),f=Object.defineProperty;i.f=a?f:function(v,h,p){if(u(v),h=c(h,!0),u(p),l)try{return f(v,h,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(v[h]=p.value),v}},a691:function(e,i){var o=Math.ceil,a=Math.floor;e.exports=function(l){return isNaN(l=+l)?0:(l>0?a:o)(l)}},a9e3:function(e,i,o){var a=o("83ab"),l=o("da84"),u=o("94ca"),c=o("6eeb"),f=o("5135"),d=o("c6b6"),v=o("7156"),h=o("c04e"),p=o("d039"),g=o("7c73"),m=o("241c").f,y=o("06cf").f,b=o("9bf2").f,O=o("58a8").trim,T="Number",P=l[T],k=P.prototype,x=d(g(k))==T,S=function(N){var D=h(N,!1),M,C,w,I,z,B,V,Y;if(typeof D=="string"&&D.length>2){if(D=O(D),M=D.charCodeAt(0),M===43||M===45){if(C=D.charCodeAt(2),C===88||C===120)return NaN}else if(M===48){switch(D.charCodeAt(1)){case 66:case 98:w=2,I=49;break;case 79:case 111:w=8,I=55;break;default:return+D}for(z=D.slice(2),B=z.length,V=0;V<B;V++)if(Y=z.charCodeAt(V),Y<48||Y>I)return NaN;return parseInt(z,w)}}return+D};if(u(T,!P(" 0o1")||!P("0b1")||P("+0x1"))){for(var R=function(D){var M=arguments.length<1?0:D,C=this;return C instanceof R&&(x?p(function(){k.valueOf.call(C)}):d(C)!=T)?v(new P(S(M)),C,R):S(M)},A=a?m(P):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0,E;A.length>_;_++)f(P,E=A[_])&&!f(R,E)&&b(R,E,y(P,E));R.prototype=k,k.constructor=R,c(l,T,R)}},ae40:function(e,i,o){var a=o("83ab"),l=o("d039"),u=o("5135"),c=Object.defineProperty,f={},d=function(v){throw v};e.exports=function(v,h){if(u(f,v))return f[v];h||(h={});var p=[][v],g=u(h,"ACCESSORS")?h.ACCESSORS:!1,m=u(h,0)?h[0]:d,y=u(h,1)?h[1]:void 0;return f[v]=!!p&&!l(function(){if(g&&!a)return!0;var b={length:-1};g?c(b,1,{enumerable:!0,get:d}):b[1]=1,p.call(b,m,y)})}},b041:function(e,i,o){var a=o("00ee"),l=o("f5df");e.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}},b622:function(e,i,o){var a=o("da84"),l=o("5692"),u=o("5135"),c=o("90e3"),f=o("4930"),d=o("fdbf"),v=l("wks"),h=a.Symbol,p=d?h:h&&h.withoutSetter||c;e.exports=function(g){return u(v,g)||(f&&u(h,g)?v[g]=h[g]:v[g]=p("Symbol."+g)),v[g]}},b727:function(e,i,o){var a=o("0366"),l=o("44ad"),u=o("7b0b"),c=o("50c4"),f=o("65f0"),d=[].push,v=function(h){var p=h==1,g=h==2,m=h==3,y=h==4,b=h==6,O=h==5||b;return function(T,P,k,x){for(var S=u(T),R=l(S),A=a(P,k,3),_=c(R.length),E=0,N=x||f,D=p?N(T,_):g?N(T,0):void 0,M,C;_>E;E++)if((O||E in R)&&(M=R[E],C=A(M,E,S),h)){if(p)D[E]=C;else if(C)switch(h){case 3:return!0;case 5:return M;case 6:return E;case 2:d.call(D,M)}else if(y)return!1}return b?-1:m||y?y:D}};e.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6)}},c04e:function(e,i,o){var a=o("861d");e.exports=function(l,u){if(!a(l))return l;var c,f;if(u&&typeof(c=l.toString)=="function"&&!a(f=c.call(l))||typeof(c=l.valueOf)=="function"&&!a(f=c.call(l))||!u&&typeof(c=l.toString)=="function"&&!a(f=c.call(l)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(e,i){e.exports=!1},c6b6:function(e,i){var o={}.toString;e.exports=function(a){return o.call(a).slice(8,-1)}},c6cd:function(e,i,o){var a=o("da84"),l=o("ce4e"),u="__core-js_shared__",c=a[u]||l(u,{});e.exports=c},c8ba:function(e,i){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}e.exports=o},ca84:function(e,i,o){var a=o("5135"),l=o("fc6a"),u=o("4d64").indexOf,c=o("d012");e.exports=function(f,d){var v=l(f),h=0,p=[],g;for(g in v)!a(c,g)&&a(v,g)&&p.push(g);for(;d.length>h;)a(v,g=d[h++])&&(~u(p,g)||p.push(g));return p}},cc12:function(e,i,o){var a=o("da84"),l=o("861d"),u=a.document,c=l(u)&&l(u.createElement);e.exports=function(f){return c?u.createElement(f):{}}},ce4e:function(e,i,o){var a=o("da84"),l=o("9112");e.exports=function(u,c){try{l(a,u,c)}catch{a[u]=c}return c}},d012:function(e,i){e.exports={}},d039:function(e,i){e.exports=function(o){try{return!!o()}catch{return!0}}},d066:function(e,i,o){var a=o("428f"),l=o("da84"),u=function(c){return typeof c=="function"?c:void 0};e.exports=function(c,f){return arguments.length<2?u(a[c])||u(l[c]):a[c]&&a[c][f]||l[c]&&l[c][f]}},d1e7:function(e,i,o){var a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!a.call({1:2},1);i.f=u?function(f){var d=l(this,f);return!!d&&d.enumerable}:a},d2bb:function(e,i,o){var a=o("825a"),l=o("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,c={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(c,[]),u=c instanceof Array}catch{}return function(v,h){return a(v),l(h),u?f.call(v,h):v.__proto__=h,v}}():void 0)},d3b7:function(e,i,o){var a=o("00ee"),l=o("6eeb"),u=o("b041");a||l(Object.prototype,"toString",u,{unsafe:!0})},da84:function(e,i,o){(function(a){var l=function(u){return u&&u.Math==Math&&u};e.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof a=="object"&&a)||Function("return this")()}).call(this,o("c8ba"))},df75:function(e,i,o){var a=o("ca84"),l=o("7839");e.exports=Object.keys||function(c){return a(c,l)}},e893:function(e,i,o){var a=o("5135"),l=o("56ef"),u=o("06cf"),c=o("9bf2");e.exports=function(f,d){for(var v=l(d),h=c.f,p=u.f,g=0;g<v.length;g++){var m=v[g];a(f,m)||h(f,m,p(d,m))}}},e8b5:function(e,i,o){var a=o("c6b6");e.exports=Array.isArray||function(u){return a(u)=="Array"}},f5df:function(e,i,o){var a=o("00ee"),l=o("c6b6"),u=o("b622"),c=u("toStringTag"),f=l(function(){return arguments}())=="Arguments",d=function(v,h){try{return v[h]}catch{}};e.exports=a?l:function(v){var h,p,g;return v===void 0?"Undefined":v===null?"Null":typeof(p=d(h=Object(v),c))=="string"?p:f?l(h):(g=l(h))=="Object"&&typeof h.callee=="function"?"Arguments":g}},f772:function(e,i,o){var a=o("5692"),l=o("90e3"),u=a("keys");e.exports=function(c){return u[c]||(u[c]=l(c))}},fb15:function(e,i,o){if(o.r(i),o.d(i,"InnerImageZoom",function(){return D}),typeof window<"u"){var a=window.document.currentScript;{var l=o("8875");a=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(o.p=u[1])}function c(C,w,I){return w in C?Object.defineProperty(C,w,{value:I,enumerable:!0,configurable:!0,writable:!0}):C[w]=I,C}o("99af");var f=o("8bbf"),d={key:0},v=["srcSet","sizes","media","type"],h=["src","srcSet","sizes","alt"],p=["src","srcSet","sizes","alt"],g={class:"iiz__zoom-portal"},m=["src"],y=["src"],b={key:1,class:"iiz__btn iiz__hint"};function O(C,w,I,z,B,V){var Y;return Object(f.openBlock)(),Object(f.createElementBlock)("figure",Object(f.mergeProps)({class:["iiz",(Y={},c(Y,I.className,I.className),c(Y,"iiz--drag",B.currentMoveType==="drag"),Y)],ref:"img",style:{width:"".concat(I.width,"px")}},Object(f.toHandlers)({touchstart:B.isZoomed?function(){}:V.handleTouchStart,click:V.handleClick,mouseenter:B.isTouch?function(){}:V.handleMouseEnter,mousemove:B.currentMoveType==="drag"||!B.isZoomed?function(){}:V.handleMouseMove,mouseleave:B.isTouch?function(){}:V.handleMouseLeave})),[Object(f.createElementVNode)("div",{style:Object(f.normalizeStyle)({paddingTop:V.createSpacer?"".concat(I.height/I.width*100,"%"):null})},[V.validSources?(Object(f.openBlock)(),Object(f.createElementBlock)("picture",d,[(Object(f.openBlock)(!0),Object(f.createElementBlock)(f.Fragment,null,Object(f.renderList)(V.validSources,function(ee,de){return Object(f.openBlock)(),Object(f.createElementBlock)("source",{key:de,srcSet:ee.srcSet,sizes:ee.sizes,media:ee.media,type:ee.type},null,8,v)}),128)),Object(f.createElementVNode)("img",{class:Object(f.normalizeClass)(["iiz__img",{"iiz__img--hidden":B.isZoomed,"iiz__img--abs":V.createSpacer}]),style:Object(f.normalizeStyle)({transition:"linear 0ms opacity ".concat(B.isZoomed?I.fadeDuration:0,"ms, linear 0ms visibility ").concat(B.isZoomed?I.fadeDuration:0,"ms")}),src:I.src,srcSet:I.srcSet,sizes:I.sizes,alt:I.alt},null,14,h)])):(Object(f.openBlock)(),Object(f.createElementBlock)("img",{key:1,class:Object(f.normalizeClass)(["iiz__img",{"iiz__img--hidden":B.isZoomed,"iiz__img--abs":V.createSpacer}]),style:Object(f.normalizeStyle)({transition:"linear 0ms opacity ".concat(B.isZoomed?I.fadeDuration:0,"ms, linear 0ms visibility ").concat(B.isZoomed?I.fadeDuration:0,"ms")}),src:I.src,srcSet:I.srcSet,sizes:I.sizes,alt:I.alt},null,14,p))],4),B.isActive?(Object(f.openBlock)(),Object(f.createElementBlock)(f.Fragment,{key:0},[B.isFullscreen?(Object(f.openBlock)(),Object(f.createBlock)(f.Teleport,{key:0,to:"body"},[Object(f.createElementVNode)("div",g,[Object(f.createElementVNode)("img",Object(f.mergeProps)({class:["iiz__zoom-img",{"iiz__zoom-img--visible":B.isZoomed}],alt:"",draggable:!1,style:{top:"".concat(B.top,"px"),left:"".concat(B.left,"px"),transition:"linear ".concat(B.isFullscreen?0:I.fadeDuration,"ms opacity, linear ").concat(B.isFullscreen?0:I.fadeDuration,"ms visibility")},src:I.zoomSrc||I.src},Object(f.toHandlers)({load:V.handleLoad,touchstart:V.handleDragStart,touchend:V.handleDragEnd,mousedown:V.handleDragStart,mouseup:V.handleDragEnd,click:V.handleClick})),null,16,m),B.isTouch&&!I.hideCloseButton?(Object(f.openBlock)(),Object(f.createElementBlock)("button",{key:0,type:"button",class:Object(f.normalizeClass)(["iiz__btn iiz__close",{"iiz__close--visible":B.isZoomed}]),"aria-label":"Zoom Out",style:Object(f.normalizeStyle)({transition:"linear ".concat(B.isFullscreen?0:I.fadeDuration,"ms opacity, linear ").concat(B.isFullscreen?0:I.fadeDuration,"ms visibility")}),onClick:w[0]||(w[0]=Object(f.withModifiers)(function(){return V.handleClose&&V.handleClose.apply(V,arguments)},["stop"]))},null,6)):Object(f.createCommentVNode)("",!0)])])):(Object(f.openBlock)(),Object(f.createElementBlock)(f.Fragment,{key:1},[Object(f.createElementVNode)("img",Object(f.mergeProps)({class:["iiz__zoom-img",{"iiz__zoom-img--visible":B.isZoomed}],alt:"",draggable:!1,style:{top:"".concat(B.top,"px"),left:"".concat(B.left,"px"),transition:"linear ".concat(B.isFullscreen?0:I.fadeDuration,"ms opacity, linear ").concat(B.isFullscreen?0:I.fadeDuration,"ms visibility")},src:I.zoomSrc||I.src},Object(f.toHandlers)({load:V.handleLoad,touchstart:V.handleDragStart,touchend:V.handleDragEnd,mousedown:V.handleDragStart,mouseup:V.handleDragEnd})),null,16,y),B.isTouch&&!I.hideCloseButton?(Object(f.openBlock)(),Object(f.createElementBlock)("button",{key:0,class:Object(f.normalizeClass)(["iiz__btn iiz__close",{"iiz__close--visible":B.isZoomed}]),type:"button","aria-label":"Zoom Out",style:Object(f.normalizeStyle)({transition:"linear ".concat(B.isFullscreen?0:I.fadeDuration,"ms opacity, linear ").concat(B.isFullscreen?0:I.fadeDuration,"ms visibility")}),onClick:w[1]||(w[1]=Object(f.withModifiers)(function(){return V.handleClose&&V.handleClose.apply(V,arguments)},["stop"]))},null,6)):Object(f.createCommentVNode)("",!0)],64))],64)):Object(f.createCommentVNode)("",!0),!B.isZoomed&&!I.hideHint?(Object(f.openBlock)(),Object(f.createElementBlock)("span",b)):Object(f.createCommentVNode)("",!0)],16)}o("a9e3"),o("4de4"),o("d3b7");var T={name:"InnerImageZoom",props:{moveType:{type:String,default:"pan"},zoomType:{type:String,default:"click"},src:{type:String,required:!0},srcSet:String,sizes:String,sources:Array,width:Number,height:Number,hasSpacer:Boolean,zoomSrc:String,zoomScale:{type:Number,default:1},zoomPreload:Boolean,alt:String,fadeDuration:{type:Number,default:150},fullscreenOnMobile:Boolean,mobileBreakpoint:{type:Number,default:640},hideHint:Boolean,hideCloseButton:Boolean,className:String,afterZoomIn:Function,afterZoomOut:Function},data:function(){return{isActive:this.zoomPreload||!1,isTouch:!1,isZoomed:!1,isFullscreen:!1,isDragging:!1,currentMoveType:this.moveType,left:0,top:0,imgProps:{}}},created:function(){this.setDefaults(),S(this.fullscreenOnMobile,this.mobileBreakpoint)&&(this.isActive=!1)},computed:{validSources:function(){return this.sources?this.sources.filter(function(w){return w.srcSet}):[]},createSpacer:function(){return this.width&&this.height&&this.hasSpacer}},methods:{handleMouseEnter:function(w){this.isActive=!0,this.zoomType==="hover"&&!this.isZoomed&&this.handleClick(w)},handleTouchStart:function(){this.isTouch=!0,this.isFullscreen=S(this.fullscreenOnMobile,this.mobileBreakpoint),this.currentMoveType="drag"},handleClick:function(w){if(this.isZoomed){this.isTouch?this.hideCloseButton&&this.handleClose():!this.isDragging&&this.zoomOut();return}this.isTouch&&(this.isActive=!0),this.imgProps.zoomImg?(this.handleLoad({target:this.imgProps.zoomImg}),this.zoomIn(w.pageX,w.pageY)):this.imgProps.onLoadCallback=this.zoomIn.bind(this,w.pageX,w.pageY)},handleLoad:function(w){var I=R(w.target,this.zoomScale);this.imgProps.zoomImg=w.target,this.imgProps.zoomImg.setAttribute("width",I.width),this.imgProps.zoomImg.setAttribute("height",I.height),this.imgProps.scaledDimensions=I,this.imgProps.bounds=P(this.$refs.img,!1),this.imgProps.ratios=x(this.imgProps.bounds,I),this.imgProps.onLoadCallback&&(this.imgProps.onLoadCallback(),this.imgProps.onLoadCallback=null)},handleMouseMove:function(w){var I=w.pageX-this.imgProps.offsets.x,z=w.pageY-this.imgProps.offsets.y;I=Math.max(Math.min(I,this.imgProps.bounds.width),0),z=Math.max(Math.min(z,this.imgProps.bounds.height),0),this.left=I*-this.imgProps.ratios.x,this.top=z*-this.imgProps.ratios.y},handleDragStart:function(w){this.imgProps.offsets=k(w.pageX||w.changedTouches[0].pageX,w.pageY||w.changedTouches[0].pageY,this.imgProps.zoomImg.offsetLeft,this.imgProps.zoomImg.offsetTop),this.imgProps.zoomImg.addEventListener(this.isTouch?"touchmove":"mousemove",this.handleDragMove,{passive:!0}),this.isTouch||(this.imgProps.eventPosition={x:w.pageX,y:w.pageY})},handleDragMove:function(w){var I=(w.pageX||w.changedTouches[0].pageX)-this.imgProps.offsets.x,z=(w.pageY||w.changedTouches[0].pageY)-this.imgProps.offsets.y;I=Math.max(Math.min(I,0),(this.imgProps.scaledDimensions.width-this.imgProps.bounds.width)*-1),z=Math.max(Math.min(z,0),(this.imgProps.scaledDimensions.height-this.imgProps.bounds.height)*-1),this.left=I,this.top=z},handleDragEnd:function(w){if(this.imgProps.zoomImg.removeEventListener(this.isTouch?"touchmove":"mousemove",this.handleDragMove),!this.isTouch){var I=Math.abs(w.pageX-this.imgProps.eventPosition.x),z=Math.abs(w.pageY-this.imgProps.eventPosition.y);this.isDragging=I>5||z>5}},handleMouseLeave:function(w){this.currentMoveType==="drag"&&this.isZoomed?this.handleDragEnd(w):this.handleClose()},handleClose:function(){var w=this;this.zoomOut(function(){setTimeout(function(){(w.zoomPreload&&w.isTouch||!w.zoomPreload)&&(w.isActive=!1,w.setDefaults()),w.isTouch=!1,w.isFullscreen=!1,w.currentMoveType=w.moveType},w.isFullscreen?0:w.fadeDuration)})},initialMove:function(w,I){this.imgProps.offsets=k(window.pageXOffset,window.pageYOffset,-this.imgProps.bounds.left,-this.imgProps.bounds.top),this.handleMouseMove({pageX:w,pageY:I})},initialDragMove:function(w,I){var z=(w-(window.pageXOffset+this.imgProps.bounds.left))*-this.imgProps.ratios.x,B=(I-(window.pageYOffset+this.imgProps.bounds.top))*-this.imgProps.ratios.y;z=z+(this.isFullscreen?(window.innerWidth-this.imgProps.bounds.width)/2:0),B=B+(this.isFullscreen?(window.innerHeight-this.imgProps.bounds.height)/2:0),this.imgProps.bounds=P(this.$refs.img,this.isFullscreen),this.imgProps.offsets=k(0,0,0,0),this.handleDragMove({changedTouches:[{pageX:z,pageY:B}],preventDefault:function(){},stopPropagation:function(){}})},zoomIn:function(w,I){var z=this.currentMoveType==="drag"?this.initialDragMove:this.initialMove;this.isZoomed=!0,z(w,I),this.afterZoomIn&&this.afterZoomIn()},zoomOut:function(w){this.isZoomed=!1,this.afterZoomOut&&this.afterZoomOut(),w&&w()},setDefaults:function(){this.imgProps.onLoadCallback=null,this.imgProps.zoomImg=null,this.imgProps.bounds={},this.imgProps.offsets={},this.imgProps.ratios={},this.imgProps.eventPosition={},this.imgProps.scaledDimensions={}}}};function P(C,w){return w?{width:window.innerWidth,height:window.innerHeight,left:0,top:0}:C.getBoundingClientRect()}function k(C,w,I,z){return{x:C-I,y:w-z}}function x(C,w){return{x:(w.width-C.width)/C.width,y:(w.height-C.height)/C.height}}function S(C,w){return C&&window.matchMedia&&window.matchMedia("(max-width: ".concat(w,"px)")).matches}function R(C,w){return{width:C.naturalWidth*w,height:C.naturalHeight*w}}o("7ae1");var A=o("6b0d"),_=o.n(A),N=_()(T,[["render",O],["__scopeId","data-v-d1255c78"]]),D=N,M=D;i.default=M},fc6a:function(e,i,o){var a=o("44ad"),l=o("1d80");e.exports=function(u){return a(l(u))}},fdbf:function(e,i,o){var a=o("4930");e.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}})})})(sa);var ju=sa.exports;const qi=Br.getDefaultExportFromCjs(ju);var $u=function(){function r(){this.keys=[],this.values=[]}var n=r.prototype;return n.get=function(t){return this.values[this.keys.indexOf(t)]},n.set=function(t,e){var i=this.keys,o=this.values,a=i.indexOf(t),l=a===-1?i.length:a;i[l]=t,o[l]=e},r}(),Hu=function(){function r(){this.object={}}var n=r.prototype;return n.get=function(t){return this.object[t]},n.set=function(t,e){this.object[t]=e},r}(),Gu=typeof Map=="function",Uu=function(){function r(){}var n=r.prototype;return n.connect=function(t,e){this.prev=t,this.next=e,t&&(t.next=this),e&&(e.prev=this)},n.disconnect=function(){var t=this.prev,e=this.next;t&&(t.next=e),e&&(e.prev=t)},n.getIndex=function(){for(var t=this,e=-1;t;)t=t.prev,++e;return e},r}();function Wu(r,n){var t=[],e=[];return r.forEach(function(i){var o=i[0],a=i[1],l=new Uu;t[o]=l,e[a]=l}),t.forEach(function(i,o){i.connect(t[o-1])}),r.filter(function(i,o){return!n[o]}).map(function(i,o){var a=i[0],l=i[1];if(a===l)return[0,0];var u=t[a],c=e[l-1],f=u.getIndex();u.disconnect(),c?u.connect(c,c.next):u.connect(void 0,t[0]);var d=u.getIndex();return[f,d]})}var Xu=function(){function r(t,e,i,o,a,l,u,c){this.prevList=t,this.list=e,this.added=i,this.removed=o,this.changed=a,this.maintained=l,this.changedBeforeAdded=u,this.fixed=c}var n=r.prototype;return Object.defineProperty(n,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(n,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),n.caculateOrdered=function(){var t=Wu(this.changedBeforeAdded,this.fixed),e=this.changed,i=[];this.cacheOrdered=t.filter(function(o,a){var l=o[0],u=o[1],c=e[a],f=c[0],d=c[1];if(l!==u)return i.push([f,d]),!0}),this.cachePureChanged=i},r}();function Yu(r,n,t){var e=Gu?Map:t?Hu:$u,i=t||function(b){return b},o=[],a=[],l=[],u=r.map(i),c=n.map(i),f=new e,d=new e,v=[],h=[],p={},g=[],m=0,y=0;return u.forEach(function(b,O){f.set(b,O)}),c.forEach(function(b,O){d.set(b,O)}),u.forEach(function(b,O){var T=d.get(b);typeof T>"u"?(++y,a.push(O)):p[T]=y}),c.forEach(function(b,O){var T=f.get(b);typeof T>"u"?(o.push(O),++m):(l.push([T,O]),y=p[O]||0,v.push([T-y,O-m]),h.push(O===T),T!==O&&g.push([T,O]))}),a.reverse(),new Xu(r,n,o,a,g,l,v,h)}var Ku=function(){function r(t,e){t===void 0&&(t=[]),this.findKeyCallback=e,this.list=[].slice.call(t)}var n=r.prototype;return n.update=function(t){var e=[].slice.call(t),i=Yu(this.list,e,this.findKeyCallback);return this.list=e,i},r}();const eo=Ku;/*! *****************************************************************************
12
+ Copyright (c) Microsoft Corporation.
13
+
14
+ Permission to use, copy, modify, and/or distribute this software for any
15
+ purpose with or without fee is hereby granted.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
18
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
20
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
21
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
+ PERFORMANCE OF THIS SOFTWARE.
24
+ ***************************************************************************** */function ua(r){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&r[n],e=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Zu(r,n){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var e=t.call(r),i,o=[],a;try{for(;(n===void 0||n-- >0)&&!(i=e.next()).done;)o.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(t=e.return)&&t.call(e)}finally{if(a)throw a.error}}return o}function rr(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Zu(arguments[n]));return r}var pt=function(r){return typeof r>"u"},yr=function(){function r(t,e){var i,o;if(this._canceled=!1,e)try{for(var a=ua(Object.keys(e)),l=a.next();!l.done;l=a.next()){var u=l.value;this[u]=e[u]}}catch(c){i={error:c}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}this.eventType=t}var n=r.prototype;return n.stop=function(){this._canceled=!0},n.isCanceled=function(){return this._canceled},r}(),Ye=function(){function r(){this._eventHandler={}}var n=r.prototype;return n.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o=t instanceof yr?t.eventType:t,a=rr(this._eventHandler[o]||[]);return a.length<=0?this:(t instanceof yr?(t.currentTarget=this,a.forEach(function(l){l(t)})):a.forEach(function(l){l.apply(void 0,rr(e))}),this)},n.once=function(t,e){var i=this;if(typeof t=="object"&&pt(e)){var o=t;for(var a in o)this.once(a,o[a]);return this}else if(typeof t=="string"&&typeof e=="function"){var l=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];e.apply(void 0,rr(u)),i.off(t,l)};this.on(t,l)}return this},n.hasOn=function(t){return!!this._eventHandler[t]},n.on=function(t,e){if(typeof t=="object"&&pt(e)){var i=t;for(var o in i)this.on(o,i[o]);return this}else if(typeof t=="string"&&typeof e=="function"){var a=this._eventHandler[t];pt(a)&&(this._eventHandler[t]=[],a=this._eventHandler[t]),a.push(e)}return this},n.off=function(t,e){var i,o;if(pt(t))return this._eventHandler={},this;if(pt(e)){if(typeof t=="string")return delete this._eventHandler[t],this;var a=t;for(var l in a)this.off(l,a[l]);return this}var u=this._eventHandler[t];if(u){var c=0;try{for(var f=ua(u),d=f.next();!d.done;d=f.next()){var v=d.value;if(v===e){u.splice(c,1),u.length<=0&&delete this._eventHandler[t];break}c++}}catch(h){i={error:h}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}}return this},r.VERSION="3.0.4",r}(),H=yr;function Xr(r,n){for(var t=r.length,e=0;e<t;++e)if(n(r[e],e))return!0;return!1}function ca(r,n){for(var t=r.length,e=0;e<t;++e)if(n(r[e],e))return r[e];return null}function fa(r){var n=r;if(typeof n>"u"){if(typeof navigator>"u"||!navigator)return"";n=navigator.userAgent||""}return n.toLowerCase()}function Yr(r,n){try{return new RegExp(r,"g").exec(n)}catch{return null}}function Qu(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;var r=navigator.userAgentData,n=r.brands||r.uaList;return!!(n&&n.length)}function Ju(r,n){var t=Yr("("+r+")((?:\\/|\\s|:)([0-9|\\.|_]+))",n);return t?t[3]:""}function br(r){return r.replace(/_/g,".")}function yt(r,n){var t=null,e="-1";return Xr(r,function(i){var o=Yr("("+i.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",n);return!o||i.brand?!1:(t=i,e=o[3]||"-1",i.versionAlias?e=i.versionAlias:i.versionTest&&(e=Ju(i.versionTest.toLowerCase(),n)||e),e=br(e),!0)}),{preset:t,version:e}}function gt(r,n){var t={brand:"",version:"-1"};return Xr(r,function(e){var i=da(n,e);return i?(t.brand=e.id,t.version=e.versionAlias||i.version,t.version!=="-1"):!1}),t}function da(r,n){return ca(r,function(t){var e=t.brand;return Yr(""+n.test,e.toLowerCase())})}var _r=[{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"}],ha=[{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}],Er=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],va=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],pa=[{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 ga(r){return!!yt(va,r).preset}function qu(r){var n=fa(r),t=!!/mobi/g.exec(n),e={name:"unknown",version:"-1",majorVersion:-1,webview:ga(n),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},i={name:"unknown",version:"-1",majorVersion:-1},o=yt(_r,n),a=o.preset,l=o.version,u=yt(pa,n),c=u.preset,f=u.version,d=yt(ha,n);if(e.chromium=!!d.preset,e.chromiumVersion=d.version,!e.chromium){var v=yt(Er,n);e.webkit=!!v.preset,e.webkitVersion=v.version}return c&&(i.name=c.id,i.version=f,i.majorVersion=parseInt(f,10)),a&&(e.name=a.id,e.version=l,e.webview&&i.name==="ios"&&e.name!=="safari"&&(e.webview=!1)),e.majorVersion=parseInt(e.version,10),{browser:e,os:i,isMobile:t,isHints:!1}}function ec(r){var n=navigator.userAgentData,t=(n.uaList||n.brands).slice(),e=r&&r.fullVersionList,i=n.mobile||!1,o=t[0],a=(r&&r.platform||n.platform||navigator.platform).toLowerCase(),l={name:o.brand,version:o.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!gt(va,t).brand||ga(fa())},u={name:"unknown",version:"-1",majorVersion:-1};l.webkit=!l.chromium&&Xr(Er,function(p){return da(t,p)});var c=gt(ha,t);if(l.chromium=!!c.brand,l.chromiumVersion=c.version,!l.chromium){var f=gt(Er,t);l.webkit=!!f.brand,l.webkitVersion=f.version}var d=ca(pa,function(p){return new RegExp(""+p.test,"g").exec(a)});if(u.name=d?d.id:"",r&&(u.version=r.platformVersion),e&&e.length){var v=gt(_r,e);l.name=v.brand||l.name,l.version=v.version||l.version}else{var h=gt(_r,t);l.name=h.brand||l.name,l.version=h.brand&&r?r.uaFullVersion:h.version}return l.webkit&&(u.name=i?"ios":"mac"),u.name==="ios"&&l.webview&&(l.version="-1"),u.version=br(u.version),l.version=br(l.version),u.majorVersion=parseInt(u.version,10),l.majorVersion=parseInt(l.version,10),{browser:l,os:u,isMobile:i,isHints:!0}}function tc(r){return typeof r>"u"&&Qu()?ec():qu(r)}function nc(r){return Object.keys(r)}var Pr="__observers__",cn="__computed__",ir=1,or="__CFCS_DETECTED_DEPENDENCIES__",wr=function(r,n){return wr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},wr(r,n)};function rc(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");wr(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function Kr(){Object[or]=Object[or]||{};var r=Object[or];return r[ir]=r[ir]||[],r[ir]}function ic(){var r=Kr();return r[r.length-1]}function oc(r){var n=Kr(),t=[],e={host:r,observers:t,push:function(i){r!==i&&t.indexOf(i)===-1&&t.push(i)}};return n.push(e),e}function ac(){var r=Kr();return r.pop()}var ma=function(){function r(t){this._emitter=new Ye,this._current=t}var n=r.prototype;return Object.defineProperty(n,"current",{get:function(){var t=ic();return t?.push(this),this._current},set:function(t){this._setCurrent(t)},enumerable:!1,configurable:!0}),n.subscribe=function(t){return this.current,this._emitter.on("update",t),this},n.unsubscribe=function(t){return this._emitter.off("update",t),this},n._setCurrent=function(t){var e=this._current,i=t!==e;this._current=t,i&&this._emitter.trigger("update",t,e)},n.toString=function(){return"".concat(this.current)},n.valueOf=function(){return this.current},r}(),sc=function(r){rc(n,r);function n(e){var i=r.call(this)||this;return i._computedCallback=e,i._registered=[],i._onCheckUpdate=function(){i._setCurrent(i.current)},i._current=i.current,i}var t=n.prototype;return Object.defineProperty(t,"current",{get:function(){var e=this;oc(this);var i=this._computedCallback(),o=ac();return this._registered.forEach(function(a){a.unsubscribe(e._onCheckUpdate)}),o.observers.forEach(function(a){a.subscribe(e._onCheckUpdate)}),this._registered=o.observers,i},enumerable:!1,configurable:!0}),n}(ma);function to(r,n,t){t===void 0&&(t=n);var e={configurable:!0,get:function(){return je(this,t).current},set:function(i){je(this,t,i).current=i}};Object.defineProperty(r,n,e),t!==n&&Object.defineProperty(r,t,{configurable:!0,get:function(){return je(this,t).current}})}function lc(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length>1?to(r[0],r[1]):function(t,e){return to(t,e,r[0])}}function uc(r){r.subscribe=function(n,t){this[n],je(this,n).subscribe(t)},r.unsubscribe=function(n,t){var e=this;if(!n){nc(Zr(this)).forEach(function(i){e.unsubscribe(i)});return}n in this&&je(this,n).unsubscribe(t)}}function cc(r){var n=r.prototype;uc(n)}function fc(r){return new ma(r)}function dc(r){return new sc(r)}function hc(r){var n={};return Object.defineProperty(r,Pr,{get:function(){return n}}),n}function Zr(r,n){var t,e;r[Pr]||hc(r);var i=r[Pr];if(!n){var o=(e=(t=r?.constructor)===null||t===void 0?void 0:t.prototype)===null||e===void 0?void 0:e[cn];o&&o.forEach(function(a){!(a in i)&&a in r&&r[a]})}return i}function je(r,n,t){var e=Zr(r);return e[n]||(e[n]=fc(t)),e[n]}function vc(r,n,t){var e=t.get;function i(){var l=Zr(this,!0);return n in l||(l[n]=dc(e.bind(this))),je(this,n).current}var o={configurable:!0,get:i};r[cn]||(r[cn]=[]);var a=r[cn];return a.indexOf(n)===-1&&a.push(n),Object.defineProperty(r,n,o),o}/*! *****************************************************************************
25
+ Copyright (c) Microsoft Corporation. All rights reserved.
26
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
27
+ this file except in compliance with the License. You may obtain a copy of the
28
+ License at http://www.apache.org/licenses/LICENSE-2.0
29
+
30
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
31
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
32
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
33
+ MERCHANTABLITY OR NON-INFRINGEMENT.
34
+
35
+ See the Apache Version 2.0 License for specific language governing permissions
36
+ and limitations under the License.
37
+ ***************************************************************************** */var Or=function(r,n){return Or=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},Or(r,n)};function st(r,n){Or(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var ne=function(){return ne=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},ne.apply(this,arguments)};function Tr(r,n,t,e){var i=arguments.length,o=i<3?n:e===null?e=Object.getOwnPropertyDescriptor(n,t):e,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,e);else for(var l=r.length-1;l>=0;l--)(a=r[l])&&(o=(i<3?a(o):i>3?a(n,t,o):a(n,t))||o);return i>3&&o&&Object.defineProperty(n,t,o),o}var ae;typeof window>"u"?ae={navigator:{userAgent:""}}:ae=window;var Ft=1,pc=2,gc=4,it=6,mc=8,yc=16,ot=24,Vn=30,On="left",Sr="right",xr="middle",ya={1:On,2:xr,3:Sr},ba="any",bc="none",_c="shift",Ec="ctrl",Pc="alt",wc="meta",Oc=16,Tc=30,no="ontouchstart"in ae&&tc().browser.name==="safari",Sc=function(){if(typeof document>"u")return"";for(var r=(document.head||document.getElementsByTagName("head")[0]).style,n=["transform","webkitTransform","msTransform","mozTransform"],t=0,e=n.length;t<e;t++)if(n[t]in r)return n[t];return""}(),Cr={"-webkit-user-select":"none","-ms-user-select":"none","-moz-user-select":"none","user-select":"none","-webkit-user-drag":"none"},ro=function(r){for(var n=[],t=0,e=r.length;t<e;t++)n.push(r[t]);return n},_a=function(r,n){n===void 0&&(n=!1);var t;if(typeof r=="string"){var e=r.match(/^<([a-z]+)\s*([^>]*)>/);if(e){var i=document.createElement("div");i.innerHTML=r,t=ro(i.childNodes)}else t=ro(document.querySelectorAll(r));n||(t=t.length>=1?t[0]:void 0)}else r===ae?t=r:"value"in r||"current"in r?t=r.value||r.current:r.nodeName&&(r.nodeType===1||r.nodeType===9)?t=r:"jQuery"in ae&&r instanceof jQuery||r.constructor.prototype.jquery?t=n?r.toArray():r.get(0):Array.isArray(r)&&(t=r.map(function(o){return _a(o)}),n||(t=t.length>=1?t[0]:void 0));return t},qe=ae.requestAnimationFrame||ae.webkitRequestAnimationFrame,bt=ae.cancelAnimationFrame||ae.webkitCancelAnimationFrame;if(qe&&!bt){var ar={},xc=qe;qe=function(r){var n=function(e){ar[t]&&r(e)},t=xc(n);return ar[t]=!0,t},bt=function(r){delete ar[r]}}else qe&&bt||(qe=function(r){return ae.setTimeout(function(){r(ae.performance&&ae.performance.now&&ae.performance.now()||new Date().getTime())},16)},bt=ae.clearTimeout);var Cc=function(r){return qe(r)},kc=function(r){bt(r)},be=function(r,n){var t={};for(var e in r)e&&(t[e]=n(r[e],e));return t},Ea=function(r,n){var t={};for(var e in r)e&&n(r[e],e)&&(t[e]=r[e]);return t},Qr=function(r,n){for(var t in r)if(t&&!n(r[t],t))return!1;return!0},_t=function(r,n){return Qr(r,function(t,e){return t===n[e]})},sr={},Pa=function(r,n){return sr[n]||(sr[n]=Nc(n)),sr[n](r)},io=function(r,n){return!r||!n?r:be(r,function(t,e){return Pa(t,typeof n=="number"?n:n[e])})},fn=function(r){if(!isFinite(r))return 0;var n="".concat(r);if(n.indexOf("e")>=0){for(var t=0,e=1;Math.round(r*e)/e!==r;)e*=10,t++;return t}return n.indexOf(".")>=0?n.length-n.indexOf(".")-1:0},Ic=function(r){return 1/Math.pow(10,r)},Nc=function(r){var n=r<1?Math.pow(10,fn(r)):1;return function(t){return r===0?0:Math.round(Math.round(t/r)*r*n)/n}},Rc=function(r,n){return Math.atan2(n,r)*180/Math.PI},Ac=function(r){var n=!0;return Object.keys(Cr).forEach(function(t){(!r||r[t]!==Cr[t])&&(n=!1)}),n},Dc=function(r,n){return r&&n?Vn:r?it:n?ot:Ft},an=function(r,n,t){return t?!!(n===Vn||n&r&&t&r):!!(n&r)},Mc=function(r,n,t){var e,i=(e={},e[Ft]="auto",e[Vn]="none",e[ot]="pan-x",e[it]="pan-y",e),o={};if(r&&r.style){var a=n.touchAction?n.touchAction:i[t],l=ne(ne({},Cr),{"touch-action":r.style["touch-action"]==="none"?"none":a});Object.keys(l).forEach(function(u){o[u]=r.style[u],r.style[u]=l[u]})}return o},Bc=function(r,n){r&&r.style&&n&&Object.keys(n).forEach(function(t){r.style[t]=n[t]})},Lc=function(){function r(t){this._axes=t,this.holdingCount=0}var n=r.prototype;return n.hold=function(t,e){var i=this._getRoundPos(t).roundPos;this._axes.trigger(new H("hold",{pos:i,input:e.input||null,inputEvent:e.event||null,isTrusted:!0}))},n.triggerRelease=function(t){var e=this._getRoundPos(t.destPos,t.depaPos),i=e.roundPos,o=e.roundDepa;t.destPos=i,t.depaPos=o,t.setTo=this._createUserControll(t.destPos,t.duration),this._axes.trigger(new H("release",ne(ne({},t),{bounceRatio:this._getBounceRatio(i)})))},n.triggerChange=function(t,e,i,o){var a=this;o===void 0&&(o=!1);var l=this.animationManager,u=l.axisManager,c=l.getEventInfo(),f=this._getRoundPos(t,e),d=f.roundPos,v=f.roundDepa,h=u.moveTo(d,v),p=i?.event||c?.event||null,g={pos:h.pos,delta:h.delta,bounceRatio:this._getBounceRatio(h.pos),holding:o,inputEvent:p,isTrusted:!!p,input:i?.input||c?.input||null,set:p?this._createUserControll(h.pos):function(){}},m=new H("change",g);return this._axes.trigger(m),Object.keys(h.pos).forEach(function(y){var b=h.pos[y];je(a._axes,y,b).current=b}),p&&u.set(g.set().destPos),!m.isCanceled()},n.triggerAnimationStart=function(t){var e=this._getRoundPos(t.destPos,t.depaPos),i=e.roundPos,o=e.roundDepa;t.destPos=i,t.depaPos=o,t.setTo=this._createUserControll(t.destPos,t.duration);var a=new H("animationStart",t);return this._axes.trigger(a),!a.isCanceled()},n.triggerAnimationEnd=function(t){t===void 0&&(t=!1),this._axes.trigger(new H("animationEnd",{isTrusted:t}))},n.triggerFinish=function(t){t===void 0&&(t=!1),this._axes.trigger(new H("finish",{isTrusted:t}))},n.setAnimationManager=function(t){this.animationManager=t},n.destroy=function(){this._axes.off()},n._createUserControll=function(t,e){e===void 0&&(e=0);var i={destPos:ne({},t),duration:e};return function(o,a){return o&&(i.destPos=ne({},o)),a!==void 0&&(i.duration=a),i}},n._getRoundPos=function(t,e){var i=this._axes.options.round;return{roundPos:io(t,i),roundDepa:io(e,i)}},n._getBounceRatio=function(t){return this._axes.axisManager.map(t,function(e,i){return e<i.range[0]&&i.bounce[0]!==0?(i.range[0]-e)/i.bounce[0]:e>i.range[1]&&i.bounce[1]!==0?(e-i.range[1])/i.bounce[1]:0})},Tr([lc],r.prototype,"holdingCount",void 0),r}(),zc=function(){function r(t){this._options=t,this._prevented=!1}var n=r.prototype;return n.isInterrupting=function(){return this._options.interruptable||this._prevented},n.isInterrupted=function(){return!this._options.interruptable&&this._prevented},n.setInterrupt=function(t){this._options.interruptable||(this._prevented=t)},r}(),wa=function(r,n,t,e){var i=r,o=[t[0]?n[0]:e?n[0]-e[0]:n[0],t[1]?n[1]:e?n[1]+e[1]:n[1]];return i=Math.max(o[0],i),i=Math.min(o[1],i),i},Oa=function(r,n){return r<n[0]||r>n[1]},Vc=function(r,n,t,e){return!e[0]&&r===n[0]-t[0]||!e[1]&&r===n[1]+t[1]},Fc=function(r,n){var t=Math.sqrt(r/n*2);return t<100?0:t},oo=function(r,n,t){return t[1]&&r>n[1]||t[0]&&r<n[0]},Lt=function(r,n,t){var e=r,i=n[0],o=n[1],a=o-i;return t[1]&&r>o&&(e=(e-o)%a+i),t[0]&&r<i&&(e=(e-i)%a+o),e},jc=function(){function r(t){var e=this;this._axis=t,this._complementOptions(),this._pos=Object.keys(this._axis).reduce(function(i,o){return i[o]=e._axis[o].startPos,i},{})}var n=r.prototype;return n.getDelta=function(t,e){var i=this.get(t);return be(this.get(e),function(o,a){return o-i[a]})},n.get=function(t){var e=this;return t&&Array.isArray(t)?t.reduce(function(i,o){return o&&o in e._pos&&(i[o]=e._pos[o]),i},{}):ne(ne({},this._pos),t||{})},n.moveTo=function(t,e){e===void 0&&(e=this._pos);var i=be(this._pos,function(o,a){return a in t&&a in e?t[a]-e[a]:0});return this.set(this.map(t,function(o,a){return a?Lt(o,a.range,a.circular):0})),{pos:ne({},this._pos),delta:i}},n.set=function(t){for(var e in t)e&&e in this._pos&&(this._pos[e]=t[e])},n.every=function(t,e){var i=this._axis;return Qr(t,function(o,a){return e(o,i[a],a)})},n.filter=function(t,e){var i=this._axis;return Ea(t,function(o,a){return e(o,i[a],a)})},n.map=function(t,e){var i=this._axis;return be(t,function(o,a){return e(o,i[a],a)})},n.isOutside=function(t){return!this.every(t?this.get(t):this._pos,function(e,i){return!Oa(e,i.range)})},n.getAxisOptions=function(t){return this._axis[t]},n.setAxis=function(t){var e=this;Object.keys(t).forEach(function(i){if(!e._axis[i])throw new Error("Axis ".concat(i," does not exist in Axes instance"));e._axis[i]=ne(ne({},e._axis[i]),t[i])}),this._complementOptions()},n._complementOptions=function(){var t=this;Object.keys(this._axis).forEach(function(e){t._axis[e]=ne({range:[0,100],startPos:t._axis[e].range[0],bounce:[0,0],circular:[!1,!1]},t._axis[e]),["bounce","circular"].forEach(function(i){var o=t._axis,a=o[e][i];/string|number|boolean/.test(typeof a)&&(o[e][i]=[a,a])})})},r}(),$c="ontouchstart"in ae,dn="PointerEvent"in ae,Hc="MSPointerEvent"in ae,Gc=dn||Hc,Uc=function(r,n){return!!(!n||n.indexOf(ba)>-1||n.indexOf(bc)>-1&&!r.shiftKey&&!r.ctrlKey&&!r.altKey&&!r.metaKey||n.indexOf(_c)>-1&&r.shiftKey||n.indexOf(Ec)>-1&&r.ctrlKey||n.indexOf(Pc)>-1&&r.altKey||n.indexOf(wc)>-1&&r.metaKey)},Fn=function(){function r(){var t=this;this._stopContextMenu=function(e){e.preventDefault(),ae.removeEventListener("contextmenu",t._stopContextMenu)}}var n=r.prototype;return n.extendEvent=function(t){var e,i=this.prevEvent,o=this._getCenter(t),a=i?this._getMovement(t):{x:0,y:0},l=i?this._getScale(t):1,u=i?Rc(o.x-i.center.x,o.y-i.center.y):0,c=i?i.deltaX+a.x:a.x,f=i?i.deltaY+a.y:a.y,d=a.x,v=a.y,h=this._latestInterval,p=Date.now(),g=h?p-h.timestamp:0,m=i?i.velocityX:0,y=i?i.velocityY:0;return(!h||g>=Oc)&&(h&&(e=[(c-h.deltaX)/g,(f-h.deltaY)/g],m=e[0],y=e[1]),this._latestInterval={timestamp:p,deltaX:c,deltaY:f}),{srcEvent:t,scale:l,angle:u,center:o,deltaX:c,deltaY:f,offsetX:d,offsetY:v,velocityX:m,velocityY:y,preventSystemEvent:!0}},n._getDistance=function(t,e){var i=e.clientX-t.clientX,o=e.clientY-t.clientY;return Math.sqrt(i*i+o*o)},n._getButton=function(t){var e={1:On,2:Sr,4:xr},i=this._isTouchEvent(t)?On:e[t.buttons];return i||null},n._isTouchEvent=function(t){return t.type&&t.type.indexOf("touch")>-1},n._isValidButton=function(t,e){return e.indexOf(t)>-1},n._isValidEvent=function(t,e,i){return(!e||Uc(t,e))&&(!i||this._isValidButton(this._getButton(t),i))},n._preventMouseButton=function(t,e){e===Sr?ae.addEventListener("contextmenu",this._stopContextMenu):e===xr&&t.preventDefault()},r}(),Wc=function(r){st(n,r);function n(){var e=r!==null&&r.apply(this,arguments)||this;return e.start=["mousedown"],e.move=["mousemove"],e.end=["mouseup"],e}var t=n.prototype;return t.onEventStart=function(e,i,o){var a=this._getButton(e);return this._isValidEvent(e,i,o)?(this._preventMouseButton(e,a),this.extendEvent(e)):null},t.onEventMove=function(e,i,o){return this._isValidEvent(e,i,o)?this.extendEvent(e):null},t.onEventEnd=function(){},t.onRelease=function(){this.prevEvent=null},t.getTouches=function(e,i){return i&&this._isValidButton(ya[e.which],i)&&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 i=this.prevEvent.srcEvent;return{x:e.clientX-i.clientX,y:e.clientY-i.clientY}},n}(Fn),Xc=function(r){st(n,r);function n(){var e=r!==null&&r.apply(this,arguments)||this;return e.start=["touchstart"],e.move=["touchmove"],e.end=["touchend","touchcancel"],e}var t=n.prototype;return t.onEventStart=function(e,i){return this._baseTouches=e.touches,this._isValidEvent(e,i)?this.extendEvent(e):null},t.onEventMove=function(e,i){return this._isValidEvent(e,i)?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 i=this.prevEvent.srcEvent;return e.touches[0].identifier!==i.touches[0].identifier?{x:0,y:0}:{x:e.touches[0].clientX-i.touches[0].clientX,y:e.touches[0].clientY-i.touches[0].clientY}},n}(Fn),Yc=function(r){st(n,r);function n(){var e=r!==null&&r.apply(this,arguments)||this;return e.start=dn?["pointerdown"]:["MSPointerDown"],e.move=dn?["pointermove"]:["MSPointerMove"],e.end=dn?["pointerup","pointercancel"]:["MSPointerUp","MSPointerCancel"],e._firstInputs=[],e._recentInputs=[],e}var t=n.prototype;return t.onEventStart=function(e,i,o){var a=this._getButton(e);return this._isValidEvent(e,i,o)?(this._preventMouseButton(e,a),this._updatePointerEvent(e),this.extendEvent(e)):null},t.onEventMove=function(e,i,o){return this._isValidEvent(e,i,o)?(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 i=this.prevEvent.srcEvent;return e.pointerId!==i.pointerId?{x:0,y:0}:{x:e.clientX-i.clientX,y:e.clientY-i.clientY}},t._updatePointerEvent=function(e){var i=this,o=!1;this._recentInputs.forEach(function(a,l){a.pointerId===e.pointerId&&(o=!0,i._recentInputs[l]=e)}),o||(this._firstInputs.push(e),this._recentInputs.push(e))},t._removePointerEvent=function(e){this._firstInputs=this._firstInputs.filter(function(i){return i.pointerId!==e.pointerId}),this._recentInputs=this._recentInputs.filter(function(i){return i.pointerId!==e.pointerId})},n}(Fn),Kc=function(r){st(n,r);function n(){var e=r!==null&&r.apply(this,arguments)||this;return e.start=["mousedown","touchstart"],e.move=["mousemove","touchmove"],e.end=["mouseup","touchend","touchcancel"],e}var t=n.prototype;return t.onEventStart=function(e,i,o){var a=this._getButton(e);return this._isTouchEvent(e)&&(this._baseTouches=e.touches),this._isValidEvent(e,i,o)?(this._preventMouseButton(e,a),this.extendEvent(e)):null},t.onEventMove=function(e,i,o){return this._isValidEvent(e,i,o)?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,i){return this._isTouchEvent(e)?e.touches.length:this._isValidButton(ya[e.which],i)&&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 i=this,o=this.prevEvent.srcEvent,a=[e,o].map(function(c){return i._isTouchEvent(c)?{id:c.touches[0].identifier,x:c.touches[0].clientX,y:c.touches[0].clientY}:{id:null,x:c.clientX,y:c.clientY}}),l=a[0],u=a[1];return l.id===u.id?{x:l.x-u.x,y:l.y-u.y}:{x:0,y:0}},n}(Fn),Ta=function(r,n){return n.reduce(function(t,e,i){return r[i]&&(t[r[i]]=e),t},{})},Zc=function(r){r===void 0&&(r=[]);var n=!1,t=!1,e=!1;return r.forEach(function(i){switch(i){case"mouse":t=!0;break;case"touch":n=$c;break;case"pointer":e=Gc}}),e?new Yc:n&&t?new Kc:n?new Xc:t?new Wc:null};function ao(r){return r.indexOf("touch")>-1?{passive:!1}:!1}var Qc=function(){function r(t){var e=t.options,i=t.interruptManager,o=t.eventManager,a=t.axisManager,l=t.animationManager;this._isOutside=!1,this._moveDistance=null,this._isStopped=!1,this.options=e,this._interruptManager=i,this._eventManager=o,this._axisManager=a,this._animationManager=l}var n=r.prototype;return n.get=function(t){return this._axisManager.get(t.axes)},n.hold=function(t,e){if(!(this._interruptManager.isInterrupted()||!t.axes.length)){var i={input:t,event:e};this._isStopped=!1,this._interruptManager.setInterrupt(!0),this._animationManager.stopAnimation(i),++this._eventManager.holdingCount,this._moveDistance||this._eventManager.hold(this._axisManager.get(),i),this._isOutside=this._axisManager.isOutside(t.axes),this._moveDistance=this._axisManager.get(t.axes)}},n.change=function(t,e,i,o){if(!(this._isStopped||!this._interruptManager.isInterrupting()||this._axisManager.every(i,function(v){return v===0}))){var a=e.srcEvent?e.srcEvent:e;if(!a.__childrenAxesAlreadyChanged){var l=this._moveDistance||this._axisManager.get(t.axes),u;u=be(l,function(v,h){return v+(i[h]||0)}),this._moveDistance&&(this._moveDistance=this._axisManager.map(u,function(v,h){var p=h.circular,g=h.range;return p&&(p[0]||p[1])?Lt(v,g,p):v})),this._isOutside&&this._axisManager.every(l,function(v,h){return!Oa(v,h.range)})&&(this._isOutside=!1),l=this._atOutside(l),u=this._atOutside(u),(!this.options.nested||!this._isEndofAxis(i,l,u))&&(a.__childrenAxesAlreadyChanged=!0);var c={input:t,event:e};if(o){var f=this._animationManager.getDuration(u,l);this._animationManager.animateTo(u,f,c)}else{var d=!this._eventManager.triggerChange(u,l,c,!0);d&&(this._isStopped=!0,this._moveDistance=null,this._animationManager.finish(!1))}}}},n.release=function(t,e,i,o){if(!(this._isStopped||!this._interruptManager.isInterrupting()||!this._moveDistance)){var a=e.srcEvent?e.srcEvent:e;a.__childrenAxesAlreadyReleased&&(i=i.map(function(){return 0}));var l=this._axisManager.get(t.axes),u=this._axisManager.get(),c=this._animationManager.getDisplacement(i),f=Ta(t.axes,c),d=this._axisManager.get(this._axisManager.map(f,function(y,b,O){return b.circular&&(b.circular[0]||b.circular[1])?l[O]+y:wa(l[O]+y,b.range,b.circular,b.bounce)}));a.__childrenAxesAlreadyReleased=!0;var v=this._animationManager.getDuration(d,l,o);v===0&&(d=ne({},u));var h={depaPos:u,destPos:d,duration:v,delta:this._axisManager.getDelta(u,d),inputEvent:e,input:t,isTrusted:!0};--this._eventManager.holdingCount,this._eventManager.triggerRelease(h),this._eventManager.holdingCount===0&&(this._moveDistance=null);var p=this._animationManager.getUserControl(h),g=_t(p.destPos,u),m={input:t,event:e};g||p.duration===0?(g||this._eventManager.triggerChange(p.destPos,u,m,!0),this._interruptManager.setInterrupt(!1),this._axisManager.isOutside()?this._animationManager.restore(m):this._eventManager.triggerFinish(!0)):this._animationManager.animateTo(p.destPos,p.duration,m)}},n._atOutside=function(t){var e=this;return this._isOutside?this._axisManager.map(t,function(i,o){var a=o.range[0]-o.bounce[0],l=o.range[1]+o.bounce[1];return i>l?l:i<a?a:i}):this._axisManager.map(t,function(i,o){var a=o.range[0],l=o.range[1],u=o.bounce,c=o.circular;return c[0]&&i<a||c[1]&&i>l?i:i<a?a-e._animationManager.interpolate(a-i,u[0]):i>l?l+e._animationManager.interpolate(i-l,u[1]):i})},n._isEndofAxis=function(t,e,i){return this._axisManager.every(e,function(o,a,l){return t[l]===0||e[l]===i[l]&&Vc(o,a.range,a.bounce,a.circular)})},r}(),lr=function(r,n,t){return Math.max(Math.min(r,t),n)},Jc=function(){function r(t){var e=t.options,i=t.interruptManager,o=t.eventManager,a=t.axisManager;this._options=e,this.interruptManager=i,this.eventManager=o,this.axisManager=a,this.animationEnd=this.animationEnd.bind(this)}var n=r.prototype;return n.getDuration=function(t,e,i){var o=this,a;if(typeof i<"u")a=i;else{var l=be(e,function(u,c){return Fc(Math.abs(u-t[c]),o._options.deceleration)});a=Object.keys(l).reduce(function(u,c){return Math.max(u,l[c])},-1/0)}return lr(a,this._options.minimumDuration,this._options.maximumDuration)},n.getDisplacement=function(t){var e=Math.pow(t.reduce(function(o,a){return o+a*a},0),1/t.length),i=Math.abs(e/-this._options.deceleration);return t.map(function(o){return o/2*i})},n.stopAnimation=function(t){if(this._animateParam){var e=this.axisManager.get(),i=this.axisManager.map(e,function(o,a){return Lt(o,a.range,a.circular)});Qr(i,function(o,a){return e[a]===o})||this.eventManager.triggerChange(i,e,t,!!t),this._animateParam=null,this._raf&&kc(this._raf),this._raf=null,this.eventManager.triggerAnimationEnd(!!t?.event)}},n.getEventInfo=function(){return this._animateParam&&this._animateParam.input&&this._animateParam.inputEvent?{input:this._animateParam.input,event:this._animateParam.inputEvent}:null},n.restore=function(t){var e=this.axisManager.get(),i=this.axisManager.map(e,function(o,a){return Math.min(a.range[1],Math.max(a.range[0],o))});this.stopAnimation(),this.animateTo(i,this.getDuration(e,i),t)},n.animationEnd=function(){var t=this.getEventInfo();this._animateParam=null;var e=this.axisManager.filter(this.axisManager.get(),function(i,o){return oo(i,o.range,o.circular)});Object.keys(e).length>0&&this.setTo(this.axisManager.map(e,function(i,o){return Lt(i,o.range,o.circular)})),this.interruptManager.setInterrupt(!1),this.eventManager.triggerAnimationEnd(!!t),this.axisManager.isOutside()?this.restore(t):this.finish(!!t)},n.finish=function(t){this._animateParam=null,this.interruptManager.setInterrupt(!1),this.eventManager.triggerFinish(t)},n.getUserControl=function(t){var e=t.setTo();return e.destPos=this.axisManager.get(e.destPos),e.duration=lr(e.duration,this._options.minimumDuration,this._options.maximumDuration),e},n.animateTo=function(t,e,i){var o=this;this.stopAnimation();var a=this._createAnimationParam(t,e,i),l=ne({},a.depaPos),u=this.eventManager.triggerAnimationStart(a),c=this.getUserControl(a);if(!u&&this.axisManager.every(c.destPos,function(d,v){return oo(d,v.range,v.circular)})&&console.warn("You can't stop the 'animation' event when 'circular' is true."),u&&!_t(c.destPos,l)){var f=i?.event||null;this._animateLoop({depaPos:l,destPos:c.destPos,duration:c.duration,delta:this.axisManager.getDelta(l,c.destPos),isTrusted:!!f,inputEvent:f,input:i?.input||null},function(){return o.animationEnd()})}},n.setTo=function(t,e){e===void 0&&(e=0);var i=Object.keys(t),o=this.axisManager.get(i);if(_t(t,o))return this;this.interruptManager.setInterrupt(!0);var a=Ea(t,function(l,u){return o[u]!==l});return Object.keys(a).length?(a=this.axisManager.map(a,function(l,u){var c=u.range,f=u.circular;return f&&(f[0]||f[1])?l:wa(l,c,f)}),_t(a,o)?this:(e>0?this.animateTo(a,e):(this.stopAnimation(),this.eventManager.triggerChange(a),this.finish(!1)),this)):this},n.setBy=function(t,e){return e===void 0&&(e=0),this.setTo(be(this.axisManager.get(Object.keys(t)),function(i,o){return i+t[o]}),e)},n.setOptions=function(t){this._options=ne(ne({},this._options),t)},n._createAnimationParam=function(t,e,i){var o=this.axisManager.get(),a=t,l=i?.event||null;return{depaPos:o,destPos:a,duration:lr(e,this._options.minimumDuration,this._options.maximumDuration),delta:this.axisManager.getDelta(o,a),inputEvent:l,input:i?.input||null,isTrusted:!!l,done:this.animationEnd}},n._animateLoop=function(t,e){var i=this;if(t.duration){this._animateParam=ne(ne({},t),{startTime:new Date().getTime()});var o=be(t.destPos,function(u){return u}),a=this._initState(this._animateParam),l=function(){i._raf=null;var u=i._animateParam,c=i._getNextState(a),f=!i.eventManager.triggerChange(c.pos,a.pos);if(a=c,c.finished){u.destPos=i._getFinalPos(u.destPos,o),_t(u.destPos,i.axisManager.get(Object.keys(u.destPos)))||i.eventManager.triggerChange(u.destPos,c.pos),e();return}else f?i.finish(!1):i._raf=Cc(l)};l()}else this.eventManager.triggerChange(t.destPos),e()},n._getFinalPos=function(t,e){var i=this,o=1e-6,a=be(t,function(l,u){if(l>=e[u]-o&&l<=e[u]+o)return e[u];var c=i._getRoundUnit(l,u),f=Pa(l,c);return f});return a},n._getRoundUnit=function(t,e){var i=this._options.round,o=null;if(!i){var a=this.axisManager.getAxisOptions(e);o=Ic(Math.max(fn(a.range[0]),fn(a.range[1]),fn(t)))}return o||i},r}(),qc=function(r){st(n,r);function n(){var e=r!==null&&r.apply(this,arguments)||this;return e._useDuration=!0,e}var t=n.prototype;return t.interpolate=function(e,i){var o=this._easing(1e-5)/1e-5;return this._easing(e/(i*o))*i},t.updateAnimation=function(e){var i,o=this._animateParam;if(o){var a=new Date().getTime()-o.startTime,l=e?.destPos||o.destPos,u=(i=e?.duration)!==null&&i!==void 0?i:o.duration;if(e?.restart||u<=a){this.setTo(l,u-a);return}if(e?.destPos){var c=this.axisManager.get();this._initialEasingPer=this._prevEasingPer,o.delta=this.axisManager.getDelta(c,l),o.destPos=l}if(e?.duration){var f=(a+this._durationOffset)/o.duration;this._durationOffset=f*u-a,o.duration=u}}},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 i=this,o=this._animateParam,a=e.pos,l=o.destPos,u=be(a,function(h,p){return h<=l[p]?1:-1}),c=new Date().getTime()-o.startTime,f=(c+this._durationOffset)/o.duration,d=this._easing(f),v=this.axisManager.map(a,function(h,p,g){var m=f>=1?l[g]:h+o.delta[g]*(d-i._prevEasingPer)/(1-i._initialEasingPer),y=Lt(m,p.range,p.circular);if(m!==y){var b=u[g]*(p.range[1]-p.range[0]);l[g]-=b,a[g]-=b}return y});return this._prevEasingPer=d,{pos:v,easingPer:d,finished:d>=1}},t._easing=function(e){return e>1?1:this._options.easing(e)},n}(Jc),ef=function(r){st(n,r);function n(e,i,o){e===void 0&&(e={}),i===void 0&&(i={}),o===void 0&&(o={});var a=r.call(this)||this;return a.axis=e,a._inputs=[],a.options=ne({easing:function(l){return 1-Math.pow(1-l,3)},interruptable:!0,maximumDuration:1/0,minimumDuration:0,deceleration:6e-4,round:null,nested:!1},i),Object.keys(o).forEach(function(l){a.axis[l].startPos=o[l]}),a.interruptManager=new zc(a.options),a.axisManager=new jc(a.axis),a.eventManager=new Lc(a),a.animationManager=new qc(a),a.inputObserver=new Qc(a),a.eventManager.setAnimationManager(a.animationManager),a.eventManager.triggerChange(a.axisManager.get()),a}var t=n.prototype;return Object.defineProperty(t,"holding",{get:function(){return this.eventManager.holdingCount>0},enumerable:!1,configurable:!0}),t.connect=function(e,i){var o;return typeof e=="string"?o=e.split(" "):o=e.concat(),~this._inputs.indexOf(i)&&this.disconnect(i),i.mapAxes(o),i.connect(this.inputObserver),this._inputs.push(i),this},t.disconnect=function(e){if(e){var i=this._inputs.indexOf(e);i>=0&&(this._inputs[i].disconnect(),this._inputs.splice(i,1))}else this._inputs.forEach(function(o){return o.disconnect()}),this._inputs=[];return this},t.get=function(e){return this.axisManager.get(e)},t.setTo=function(e,i){return i===void 0&&(i=0),this.animationManager.setTo(e,i),this},t.setBy=function(e,i){return i===void 0&&(i=0),this.animationManager.setBy(e,i),this},t.setOptions=function(e){return this.options=ne(ne({},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()},n.VERSION="3.9.0",n.TRANSFORM=Sc,n.DIRECTION_NONE=Ft,n.DIRECTION_LEFT=pc,n.DIRECTION_RIGHT=gc,n.DIRECTION_UP=mc,n.DIRECTION_DOWN=yc,n.DIRECTION_HORIZONTAL=it,n.DIRECTION_VERTICAL=ot,n.DIRECTION_ALL=Vn,Tr([vc],n.prototype,"holding",null),n=Tr([cc],n),n}(Ye),tf=function(r,n){if(n<0||n>90)return Ft;var t=Math.abs(r);return t>n&&t<180-n?ot:it},nf=function(){function r(t,e){var i=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(o){i._dragged&&(o.preventDefault(),o.stopPropagation()),i._dragged=!1},this._voidFunction=function(){},this.element=_a(t),this.options=ne({inputType:["touch","mouse","pointer"],inputKey:[ba],inputButton:[On],scale:[1,1],thresholdAngle:45,threshold:0,preventClickOnDrag:!1,preventDefaultOnDrag:!1,iOSEdgeSwipeThreshold:Tc,releaseOnScroll:!1,touchAction:null},e),this._onPanstart=this._onPanstart.bind(this),this._onPanmove=this._onPanmove.bind(this),this._onPanend=this._onPanend.bind(this)}var n=r.prototype;return n.mapAxes=function(t){this._direction=Dc(!!t[0],!!t[1]),this.axes=t},n.connect=function(t){return this._activeEvent&&(this._detachElementEvent(),this._detachWindowEvent(this._activeEvent)),this._attachElementEvent(t),this._originalCssProps=Mc(this.element,this.options,this._direction),this},n.disconnect=function(){return this._detachElementEvent(),this._detachWindowEvent(this._activeEvent),Ac(this._originalCssProps)||Bc(this.element,this._originalCssProps),this._direction=Ft,this},n.destroy=function(){this.disconnect(),this.element=null},n.enable=function(){return this._enabled=!0,this},n.disable=function(){return this._enabled=!1,this},n.isEnabled=function(){return this._enabled},n.release=function(){var t=this._activeEvent,e=t.prevEvent;return t.onRelease(),this._observer.release(this,e,[0,0]),this._detachWindowEvent(t),this},n._onPanstart=function(t){var e=this.options,i=e.inputKey,o=e.inputButton,a=e.preventDefaultOnDrag,l=this._activeEvent,u=l.onEventStart(t,i,o);if(!(!u||!this._enabled||l.getTouches(t,o)>1)&&u.srcEvent.cancelable!==!1){var c=this.options.iOSEdgeSwipeThreshold;this._dragged=!1,this._isOverThreshold=!1,this._observer.hold(this,u),this._atRightEdge=no&&u.center.x>window.innerWidth-c,this._attachWindowEvent(l),a&&u.srcEvent.type!=="touchstart"&&u.srcEvent.preventDefault(),l.prevEvent=u}},n._onPanmove=function(t){var e=this,i=this.options,o=i.iOSEdgeSwipeThreshold,a=i.preventClickOnDrag,l=i.releaseOnScroll,u=i.inputKey,c=i.inputButton,f=i.threshold,d=i.thresholdAngle,v=this._activeEvent,h=v.onEventMove(t,u,c),p=v.getTouches(t,c);if(p===0||l&&h&&!h.srcEvent.cancelable){this._onPanend(t);return}if(!(!h||!this._enabled||p>1)){var g=tf(h.angle,d),m=an(it,this._direction,g),y=an(ot,this._direction,g);if(v.prevEvent&&no){var b=h.center.x<0;if(b){this.release();return}else if(this._atRightEdge){clearTimeout(this._rightEdgeTimer);var O=h.deltaX<-o;O?this._atRightEdge=!1:this._rightEdgeTimer=window.setTimeout(function(){return e.release()},100)}}var T=this._getDistance([h.deltaX,h.deltaY],[m,y]),P=this._getOffset([h.offsetX,h.offsetY],[m,y]),k=P.some(function(x){return x!==0});k&&(h.srcEvent.cancelable!==!1&&h.srcEvent.preventDefault(),h.srcEvent.stopPropagation()),h.preventSystemEvent=k,k&&(this._isOverThreshold||T>=f)&&(this._dragged=a,this._isOverThreshold=!0,this._observer.change(this,h,Ta(this.axes,P))),v.prevEvent=h}},n._onPanend=function(t){var e=this.options.inputButton,i=this._activeEvent;if(i.onEventEnd(t),!(!this._enabled||i.getTouches(t,e)!==0)){this._detachWindowEvent(i),clearTimeout(this._rightEdgeTimer);var o=i.prevEvent,a=this._isOverThreshold?this._getOffset([Math.abs(o.velocityX)*(o.offsetX<0?-1:1),Math.abs(o.velocityY)*(o.offsetY<0?-1:1)],[an(it,this._direction),an(ot,this._direction)]):[0,0];i.onRelease(),this._observer.release(this,o,a)}},n._attachWindowEvent=function(t){var e=this;t?.move.forEach(function(i){window.addEventListener(i,e._onPanmove,ao(i))}),t?.end.forEach(function(i){window.addEventListener(i,e._onPanend,ao(i))})},n._detachWindowEvent=function(t){var e=this;t?.move.forEach(function(i){window.removeEventListener(i,e._onPanmove)}),t?.end.forEach(function(i){window.removeEventListener(i,e._onPanend)})},n._getOffset=function(t,e){var i=this.options.scale;return[e[0]?t[0]*i[0]:0,e[1]?t[1]*i[1]:0]},n._getDistance=function(t,e){return Math.sqrt(Number(e[0])*Math.pow(t[0],2)+Number(e[1])*Math.pow(t[1],2))},n._attachElementEvent=function(t){var e=this,i=Zc(this.options.inputType),o=this.element;if(i){if(!o)throw new Error("Element to connect input does not exist.");this._observer=t,this._enabled=!0,this._activeEvent=i,o.addEventListener("click",this._preventClickWhenDragged,!0),i.start.forEach(function(a){o.addEventListener(a,e._onPanstart)}),i.move.forEach(function(a){o.addEventListener(a,e._voidFunction)})}},n._detachElementEvent=function(){var t=this,e=this._activeEvent,i=this.element;i&&(i.removeEventListener("click",this._preventClickWhenDragged,!0),e?.start.forEach(function(o){i.removeEventListener(o,t._onPanstart)}),e?.move.forEach(function(o){i.removeEventListener(o,t._voidFunction)})),this._enabled=!1,this._observer=null},r}();const rf=ef;var kr=function(r,n){return kr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},kr(r,n)};function lt(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");kr(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var at=function(){return at=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},at.apply(this,arguments)};function of(){for(var r=0,n=0,t=arguments.length;n<t;n++)r+=arguments[n].length;for(var e=Array(r),i=0,n=0;n<t;n++)for(var o=arguments[n],a=0,l=o.length;a<l;a++,i++)e[i]=o[a];return e}var Jr=typeof window<"u",af=Jr?window.navigator.userAgent:"",sf=Jr?"getComputedStyle"in window:!1,lf=/MSIE|Trident|Windows Phone|Edge/.test(af),uf=Jr?"addEventListener"in document:!1,Ir="width",Ct="height";function hn(r,n){return r.getAttribute(n)||""}function Tn(r){return[].slice.call(r)}function cf(r,n){return n===void 0&&(n="data-"),!!r.getAttribute(n+"width")}function Sa(r,n){return n===void 0&&(n="data-"),"loading"in r&&r.getAttribute("loading")==="lazy"||!!r.getAttribute(n+"lazy")}function ff(r,n){return n===void 0&&(n="data-"),!!r.getAttribute(n+"skip")}function xa(r,n,t){uf?r.addEventListener(n,t,!1):r.attachEvent?r.attachEvent("on"+n,t):r["on"+n]=t}function Ca(r,n,t){r.removeEventListener?r.removeEventListener(n,t,!1):r.detachEvent?r.detachEvent("on"+n,t):r["on"+n]=null}function df(r){return ka(r,"Width")}function hf(r){return ka(r,"Height")}function vf(r){return(sf?window.getComputedStyle(r):r.currentStyle)||{}}function ka(r,n){var t=r["client"+n]||r["offset"+n];return parseFloat(t||vf(r)[n.toLowerCase()])||0}function pf(r,n,t){var e=Tn(r.querySelectorAll(of(["["+t+"skip] ["+t+"width]"],n.map(function(i){return["["+t+"skip] "+i,i+"["+t+"skip]","["+t+"width] "+i].join(", ")})).join(", ")));return Tn(r.querySelectorAll("["+t+"width], "+n.join(", "))).filter(function(i){return e.indexOf(i)===-1})}var tt=[];function Ia(r,n){!tt.length&&xa(window,"resize",Ra),r.__PREFIX__=n,tt.push(r),Na(r)}function gf(r,n){var t=tt.indexOf(r);if(!(t<0)){var e=hn(r,n+"fixed");delete r.__PREFIX__,r.style[e===Ct?Ir:Ct]="",tt.splice(t,1),!tt.length&&Ca(window,"resize",Ra)}}function Na(r,n){n===void 0&&(n="data-");var t=r.__PREFIX__||n,e=parseInt(hn(r,""+t+Ir),10)||0,i=parseInt(hn(r,""+t+Ct),10)||0,o=hn(r,t+"fixed");if(o===Ct){var a=hf(r)||i;r.style[Ir]=e/i*a+"px"}else{var a=df(r)||e;r.style[Ct]=i/e*a+"px"}}function Ra(){tt.forEach(function(r){Na(r)})}var qr=function(r){lt(n,r);function n(e,i){i===void 0&&(i={});var o=r.call(this)||this;o.isReady=!1,o.isPreReady=!1,o.hasDataSize=!1,o.hasLoading=!1,o.isSkip=!1,o.onCheck=function(l){if(o.clear(),l&&l.type==="error"&&o.onError(o.element),!(o.hasLoading&&o.checkElement())){var u=!o.hasDataSize&&!o.hasLoading;o.onReady(u)}},o.options=at({prefix:"data-"},i),o.element=e;var a=o.options.prefix;return o.hasDataSize=cf(e,a),o.isSkip=ff(e,a),o.hasLoading=Sa(e,a),o}var t=n.prototype;return t.check=function(){return this.isSkip||!this.checkElement()?(this.onAlreadyReady(!0),!1):(this.hasDataSize&&Ia(this.element,this.options.prefix),(this.hasDataSize||this.hasLoading)&&this.onAlreadyPreReady(),!0)},t.addEvents=function(){var e=this,i=this.element;this.constructor.EVENTS.forEach(function(o){xa(i,o,e.onCheck)})},t.clear=function(){var e=this,i=this.element;this.constructor.EVENTS.forEach(function(o){Ca(i,o,e.onCheck)}),this.removeAutoSizer()},t.destroy=function(){this.clear(),this.off()},t.removeAutoSizer=function(){if(this.hasDataSize){var e=this.options.prefix;gf(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 i=this;setTimeout(function(){i.onError(e)})},t.onAlreadyPreReady=function(){var e=this;setTimeout(function(){e.onPreReady()})},t.onAlreadyReady=function(e){var i=this;setTimeout(function(){i.onReady(e)})},n.EVENTS=[],n}(Ye),mf=function(r){lt(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}var t=n.prototype;return t.setHasLoading=function(e){this.hasLoading=e},t.check=function(){return this.isSkip?(this.onAlreadyReady(!0),!1):(this.hasDataSize?(Ia(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(){r.prototype.onAlreadyPreReady.call(this),this.trigger("reqeustReadyChildren")},n.EVENTS=[],n}(qr),yf=function(r){lt(n,r);function n(e){e===void 0&&(e={});var i=r.call(this)||this;return i.readyCount=0,i.preReadyCount=0,i.totalCount=0,i.totalErrorCount=0,i.isPreReadyOver=!0,i.elementInfos=[],i.options=at({loaders:{},prefix:"data-"},e),i}var t=n.prototype;return t.check=function(e){var i=this,o=this.options.prefix;this.clear(),this.elementInfos=Tn(e).map(function(l,u){var c=i.getLoader(l,{prefix:o});return c.check(),c.on("error",function(f){i.onError(u,f.target)}).on("preReady",function(f){var d=i.elementInfos[u];d.hasLoading=f.hasLoading,d.isSkip=f.isSkip;var v=i.checkPreReady(u);i.onPreReadyElement(u),v&&i.onPreReady()}).on("ready",function(f){var d=f.withPreReady,v=f.hasLoading,h=f.isSkip,p=i.elementInfos[u];p.hasLoading=v,p.isSkip=h;var g=d&&i.checkPreReady(u),m=i.checkReady(u);d&&i.onPreReadyElement(u),i.onReadyElement(u),g&&i.onPreReady(),m&&i.onReady()}),{loader:c,element:l,hasLoading:!1,hasError:!1,isPreReady:!1,isReady:!1,isSkip:!1}});var a=this.elementInfos.length;return this.totalCount=a,a||setTimeout(function(){i.onPreReady(),i.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,i){var o=this,a=e.tagName.toLowerCase(),l=this.options.loaders,u=i.prefix,c=Object.keys(l);if(l[a])return new l[a](e,i);var f=new mf(e,i),d=Tn(e.querySelectorAll(c.join(", ")));f.setHasLoading(d.some(function(p){return Sa(p,u)}));var v=!1,h=this.clone().on("error",function(p){f.onError(p.target)}).on("ready",function(){f.onReady(v)});return f.on("requestChildren",function(){var p=pf(e,c,o.options.prefix);h.check(p).on("preReady",function(g){v=g.isReady,v||f.onPreReady()})}).on("reqeustReadyChildren",function(){h.check(d)}).on("requestDestroy",function(){h.destroy()}),f},t.clone=function(){return new n(at({},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,i){var o=this.elementInfos[e];o.hasError=!0,this.trigger(new H("error",{element:o.element,index:e,target:i,errorCount:this.getErrorCount(),totalErrorCount:++this.totalErrorCount}))},t.onPreReadyElement=function(e){var i=this.elementInfos[e];this.trigger(new H("preReadyElement",{element:i.element,index:e,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:i.hasLoading,isSkip:i.isSkip}))},t.onPreReady=function(){this.isPreReadyOver=!0,this.trigger(new H("preReady",{readyCount:this.readyCount,totalCount:this.totalCount,isReady:this.isReady(),hasLoading:this.hasLoading()}))},t.onReadyElement=function(e){var i=this.elementInfos[e];this.trigger(new H("readyElement",{index:e,element:i.element,hasError:i.hasError,errorCount:this.getErrorCount(),totalErrorCount:this.totalErrorCount,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:i.hasLoading,isPreReadyOver:this.isPreReadyOver,isSkip:i.isSkip}))},t.onReady=function(){this.trigger(new H("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})},n}(Ye),bf=function(r){lt(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}var t=n.prototype;return t.checkElement=function(){var e=this.element,i=e.getAttribute("src");if(e.complete){if(i)return e.naturalWidth||this.onAlreadyError(e),!1;this.onAlreadyPreReady()}return this.addEvents(),lf&&e.setAttribute("src",i),!0},n.EVENTS=["load","error"],n}(qr),_f=function(r){lt(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}var t=n.prototype;return t.checkElement=function(){var e=this.element;return e.readyState>=1?!1:e.error?(this.onAlreadyError(e),!1):(this.addEvents(),!0)},n.EVENTS=["loadedmetadata","error"],n}(qr),Ef=function(r){lt(n,r);function n(t){return t===void 0&&(t={}),r.call(this,at({loaders:{img:bf,video:_f}},t))||this}return n}(yf);const Pf=Ef;/*! *****************************************************************************
38
+ Copyright (c) Microsoft Corporation.
39
+
40
+ Permission to use, copy, modify, and/or distribute this software for any
41
+ purpose with or without fee is hereby granted.
42
+
43
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
44
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
45
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
46
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
47
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
48
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
49
+ PERFORMANCE OF THIS SOFTWARE.
50
+ ***************************************************************************** */var Nr=function(r,n){return Nr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Nr(r,n)};function ue(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Nr(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var ce=function(){return ce=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},ce.apply(this,arguments)};function nt(r,n,t,e){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function l(f){try{c(e.next(f))}catch(d){a(d)}}function u(f){try{c(e.throw(f))}catch(d){a(d)}}function c(f){f.done?o(f.value):i(f.value).then(l,u)}c((e=e.apply(r,n||[])).next())})}function rt(r,n){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,i,o,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(c){return function(f){return u([c,f])}}function u(c){if(e)throw new TypeError("Generator is already executing.");for(;t;)try{if(e=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,i=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){t.label=c[1];break}if(c[0]===6&&t.label<o[1]){t.label=o[1],o=c;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(c);break}o[2]&&t.ops.pop(),t.trys.pop();continue}c=n.call(r,t)}catch(f){c=[6,f],i=0}finally{e=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function jn(r){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&r[n],e=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function ei(r,n){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var e=t.call(r),i,o=[],a;try{for(;(n===void 0||n-- >0)&&!(i=e.next()).done;)o.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(t=e.return)&&t.call(e)}finally{if(a)throw a.error}}return o}function ie(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(ei(arguments[n]));return r}var K={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},J={WRONG_TYPE:function(r,n){return r+"("+typeof r+") is not a "+n.map(function(t){return'"'+t+'"'}).join(" or ")+"."},ELEMENT_NOT_FOUND:function(r){return'Element with selector "'+r+'" not found.'},VAL_MUST_NOT_NULL:function(r,n){return n+" should be provided. Given: "+r},NOT_ATTACHED_TO_FLICKING:'This module is not attached to the Flicking instance. "init()" should be called first.',WRONG_OPTION:function(r,n){return'Option "'+r+'" is not in correct format, given: '+n},INDEX_OUT_OF_RANGE:function(r,n,t){return'Index "'+r+'" is out of range: should be between '+n+" and "+t+"."},POSITION_NOT_REACHABLE:function(r){return'Position "'+r+'" 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"},$={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"},Pe={PREV:"prev",CENTER:"center",NEXT:"next"},W={PREV:"PREV",NEXT:"NEXT",NONE:null},Je={SNAP:"snap",FREE_SCROLL:"freeScroll",STRICT:"strict"},wf={VERTICAL:"vertical",HIDDEN:"flicking-hidden",DEFAULT_VIRTUAL:"flicking-panel"},Aa={LINEAR:"linear",BOUND:"bound"},Of=function(r,n){var t=null;if(We(r)){var e=n||document,i=e.querySelector(r);if(!i)throw new Z(J.ELEMENT_NOT_FOUND(r),K.ELEMENT_NOT_FOUND);t=i}else r&&r.nodeType===Node.ELEMENT_NODE&&(t=r);if(!t)throw new Z(J.WRONG_TYPE(r,["HTMLElement","string"]),K.WRONG_TYPE);return t},Tf=function(r,n){if(r==null)throw new Z(J.VAL_MUST_NOT_NULL(r,n),K.VAL_MUST_NOT_NULL)},Re=function(r,n,t){return Math.max(Math.min(r,t),n)},F=function(r){if(!r)throw new Z(J.NOT_ATTACHED_TO_FLICKING,K.NOT_ATTACHED_TO_FLICKING);return r},ti=function(r){return[].slice.call(r)},ni=function(r,n){var t;if(We(r))switch(r){case Pe.PREV:t=0;break;case Pe.CENTER:t=.5*n;break;case Pe.NEXT:t=n;break;default:if(t=Rr(r,n),t==null)throw new Z(J.WRONG_OPTION("align",r),K.WRONG_OPTION)}else t=r;return t},Sf=function(r,n){var t;if(Array.isArray(r))t=r.map(function(i){return Rr(i,n)});else{var e=Rr(r,n);t=[e,e]}return t.map(function(i){if(i==null)throw new Z(J.WRONG_OPTION("bounce",r),K.WRONG_OPTION);return i})},Rr=function(r,n){var t=Da(r);return t==null?null:t.percentage*n+t.absolute},Da=function(r){var n=/(?:(\+|\-)\s*)?(\d+(?:\.\d+)?(%|px)?)/g;if(typeof r=="number")return{percentage:0,absolute:r};for(var t={percentage:0,absolute:0},e=0,i=n.exec(r);i!=null;){var o=i[1],a=i[2],l=i[3],u=parseFloat(a);if(e<=0&&(o=o||"+"),!o)return null;var c=o==="+"?1:-1;l==="%"?t.percentage+=c*(u/100):t.absolute+=c*u,++e,i=n.exec(r)}return e===0?null:t},Sn=function(r){return typeof r=="object"?r.panel:r},Ue=function(r,n){return r===n?W.NONE:r<n?W.NEXT:W.PREV},so=function(r){Array.isArray(r)||(r=[r]);var n=[];return r.forEach(function(t){if(We(t)){var e=document.createElement("div");for(e.innerHTML=t,n.push.apply(n,ie(ti(e.children)));e.firstChild;)e.removeChild(e.firstChild)}else if(t&&t.nodeType===Node.ELEMENT_NODE)n.push(t);else throw new Z(J.WRONG_TYPE(t,["HTMLElement","string"]),K.WRONG_TYPE)}),n},xn=function(r,n){return r<0?Re(r+n,0,n):Re(r,0,n)},Cn=function(r,n){var t,e;try{for(var i=jn(r),o=i.next();!o.done;o=i.next()){var a=o.value;if(a===n)return!0}}catch(l){t={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return!1},We=function(r){return typeof r=="string"},Ma=function(r,n,t){var e=t-n;if(r<n){var i=(n-r)%e;r=t-i}else if(r>t){var i=(r-t)%e;r=n+i}return r},xf=function(r,n){var t,e;try{for(var i=jn(r),o=i.next();!o.done;o=i.next()){var a=o.value;if(n(a))return a}}catch(l){t={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return null},Cf=function(r,n){for(var t=0;t<r.length;t++)if(n(r[t]))return t;return-1},kn=function(r,n,t){return(r-n)/(t-n)},Ar=function(r){return window.getComputedStyle(r)||r.currentStyle},Ba=function(r,n){var t=n.width,e=n.height;t!=null&&(We(t)?r.style.width=t:r.style.width=t+"px"),e!=null&&(We(e)?r.style.height=e:r.style.height=e+"px")},ur=function(r,n,t){return r>=n&&r<=t},La=function(r,n){return r>=n?r%n:r<0?xn((r+1)%n-1,n):r},zt=function(r){for(var n=new Array(r),t=0;t<r;t++)n[t]=t;return n},kt=function(r){var n=r.el,t=r.horizontal,e=r.useFractionalSize,i=r.useOffset,o=r.style;if(e){var a=parseFloat(t?o.width:o.height),l=o.boxSizing==="border-box",u=t?parseFloat(o.borderLeftWidth||"0")+parseFloat(o.borderRightWidth||"0"):parseFloat(o.borderTopWidth||"0")+parseFloat(o.borderBottomWidth||"0");if(l)return i?a:a-u;var c=t?parseFloat(o.paddingLeft||"0")+parseFloat(o.paddingRight||"0"):parseFloat(o.paddingTop||"0")+parseFloat(o.paddingBottom||"0");return i?a+c+u:a+c}else{var f=t?"Width":"Height";return i?n["offset"+f]:n["client"+f]}},kf=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Z=function(r){ue(n,r);function n(t,e){var i=r.call(this,t)||this;return kf(i,n.prototype),i.name="FlickingError",i.code=e,i}return n}(Error),If=function(){function r(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 n=r.prototype;return Object.defineProperty(n,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(n,"width",{get:function(){return this._width-this._padding.left-this._padding.right},enumerable:!1,configurable:!0}),Object.defineProperty(n,"height",{get:function(){return this._height-this._padding.top-this._padding.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(n,"padding",{get:function(){return this._padding},enumerable:!1,configurable:!0}),n.setSize=function(t){var e=t.width,i=t.height,o=this._el,a=this._padding,l=this._isBorderBoxSizing;if(e!=null)if(We(e))o.style.width=e;else{var u=l?e+a.left+a.right:e;o.style.width=u+"px"}if(i!=null)if(We(i))o.style.height=i;else{var c=l?i+a.top+a.bottom:i;o.style.height=c+"px"}this.resize()},n.resize=function(){var t=this._el,e=Ar(t),i=this._flicking.useFractionalSize;this._width=kt({el:t,horizontal:!0,useFractionalSize:i,useOffset:!1,style:e}),this._height=kt({el:t,horizontal:!1,useFractionalSize:i,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"},r}(),Nf=function(){function r(t){var e=this;this._onResize=function(){var i=e._flicking,o=i.resizeDebounce,a=i.maxResizeDebounce;o<=0?i.resize():(e._maxResizeDebounceTimer<=0&&a>0&&a>=o&&(e._maxResizeDebounceTimer=window.setTimeout(e._doScheduledResize,a)),e._resizeTimer>0&&(clearTimeout(e._resizeTimer),e._resizeTimer=0),e._resizeTimer=window.setTimeout(e._doScheduledResize,o))},this._doScheduledResize=function(){clearTimeout(e._resizeTimer),clearTimeout(e._maxResizeDebounceTimer),e._maxResizeDebounceTimer=-1,e._resizeTimer=-1,e._flicking.resize()},this._skipFirstResize=function(){var i=!0;return function(){if(i){i=!1;return}e._onResize()}}(),this._flicking=t,this._enabled=!1,this._resizeObserver=null,this._resizeTimer=-1,this._maxResizeDebounceTimer=-1}var n=r.prototype;return Object.defineProperty(n,"enabled",{get:function(){return this._enabled},enumerable:!1,configurable:!0}),n.enable=function(){var t=this._flicking,e=t.viewport;if(this._enabled&&this.disable(),t.useResizeObserver&&window.ResizeObserver){var i=e.width!==0||e.height!==0,o=i?new ResizeObserver(this._skipFirstResize):new ResizeObserver(this._onResize);o.observe(t.viewport.element),this._resizeObserver=o}else window.addEventListener("resize",this._onResize);return this._enabled=!0,this},n.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},r}(),Rf=function(){function r(t){this._element=t,this._rendered=!0}var n=r.prototype;return Object.defineProperty(n,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),n.show=function(t){var e=this.element,i=t.camera.element;e.parentElement!==i&&(i.appendChild(e),this._rendered=!0)},n.hide=function(t){var e=this.element,i=t.camera.element;e.parentElement===i&&(i.removeChild(e),this._rendered=!1)},r}(),lo=function(){function r(t){this._flicking=t}var n=r.prototype;return Object.defineProperty(n,"element",{get:function(){return this._virtualElement.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rendered",{get:function(){return this._virtualElement.visible},enumerable:!1,configurable:!0}),Object.defineProperty(n,"_virtualElement",{get:function(){var t=this._flicking,e=this._panel.elementIndex,i=t.virtual.elements;return i[e]},enumerable:!1,configurable:!0}),n.init=function(t){this._panel=t},n.show=function(){},n.hide=function(){},r}(),Af=function(){function r(t,e){var i,o,a,l;this._flicking=t,this._renderPanel=(i=e?.renderPanel)!==null&&i!==void 0?i:function(){return""},this._initialPanelCount=(o=e?.initialPanelCount)!==null&&o!==void 0?o:-1,this._cache=(a=e?.cache)!==null&&a!==void 0?a:!1,this._panelClass=(l=e?.panelClass)!==null&&l!==void 0?l:wf.DEFAULT_VIRTUAL,this._elements=[]}var n=r.prototype;return Object.defineProperty(n,"elements",{get:function(){return this._elements},enumerable:!1,configurable:!0}),Object.defineProperty(n,"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(n,"initialPanelCount",{get:function(){return this._initialPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(n,"cache",{get:function(){return this._cache},set:function(t){this._cache=t},enumerable:!1,configurable:!0}),Object.defineProperty(n,"panelClass",{get:function(){return this._panelClass},set:function(t){this._panelClass=t},enumerable:!1,configurable:!0}),n.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(i){return{nativeElement:i,visible:!0}})}},n.show=function(t){var e=this._elements[t],i=e.nativeElement;e.visible=!0,i.style.display&&(i.style.display="")},n.hide=function(t){var e=this._elements[t],i=e.nativeElement;e.visible=!1,i.style.display="none"},n.append=function(t){t===void 0&&(t=1);var e=this._flicking;return this.insert(e.panels.length,t)},n.prepend=function(t){return t===void 0&&(t=1),this.insert(0,t)},n.insert=function(t,e){if(e===void 0&&(e=1),e<=0)return[];var i=this._flicking;return i.renderer.batchInsert({index:t,elements:zt(e),hasDOMInElements:!1})},n.remove=function(t,e){if(e<=0)return[];var i=this._flicking;return i.renderer.batchRemove({index:t,deleteCount:e,hasDOMInElements:!1})},n._initVirtualElements=function(){var t=this,e=this._flicking,i=e.camera.element,o=e.panelsPerView,a=document.createDocumentFragment(),l=zt(o+1).map(function(u){var c=document.createElement("div");return c.className=t._panelClass,c.dataset.elementIndex=u.toString(),c});l.forEach(function(u){a.appendChild(u)}),i.appendChild(a)},r}(),se={HOLD:"hold",CHANGE:"change",RELEASE:"release",ANIMATION_END:"animationEnd",FINISH:"finish"},te="flick",q;(function(r){r[r.IDLE=0]="IDLE",r[r.HOLDING=1]="HOLDING",r[r.DRAGGING=2]="DRAGGING",r[r.ANIMATING=3]="ANIMATING",r[r.DISABLED=4]="DISABLED"})(q||(q={}));var jt=function(){function r(){this._delta=0,this._targetPanel=null}var n=r.prototype;return Object.defineProperty(n,"delta",{get:function(){return this._delta},enumerable:!1,configurable:!0}),Object.defineProperty(n,"targetPanel",{get:function(){return this._targetPanel},set:function(t){this._targetPanel=t},enumerable:!1,configurable:!0}),n.onEnter=function(t){this._delta=t._delta,this._targetPanel=t._targetPanel},n.onHold=function(t){},n.onChange=function(t){},n.onRelease=function(t){},n.onAnimationEnd=function(t){},n.onFinish=function(t){},n._moveToChangedPosition=function(t){var e=t.flicking,i=t.axesEvent,o=t.transitTo,a=i.delta[te];if(a){this._delta+=a;var l=e.camera,u=l.position,c=i.pos[te],f=e.circularEnabled?Ma(c,l.range.min,l.range.max):c;l.lookAt(f);var d=new H($.MOVE,{isTrusted:i.isTrusted,holding:this.holding,direction:Ue(0,i.delta[te]),axesEvent:i});e.trigger(d),d.isCanceled()&&(l.lookAt(u),o(q.DISABLED))}},r}(),uo=function(r){ue(n,r);function n(){var e=r!==null&&r.apply(this,arguments)||this;return e.holding=!1,e.animating=!1,e}var t=n.prototype;return t.onEnter=function(){this._delta=0,this._targetPanel=null},t.onHold=function(e){var i=e.flicking,o=e.axesEvent,a=e.transitTo;if(i.renderer.panelCount<=0){a(q.DISABLED);return}var l=new H($.HOLD_START,{axesEvent:o});i.trigger(l),l.isCanceled()?a(q.DISABLED):a(q.HOLDING)},t.onChange=function(e){var i=e.flicking,o=e.axesEvent,a=e.transitTo,l=i.control.controller,u=l.animatingContext,c=new H($.MOVE_START,{isTrusted:o.isTrusted,holding:this.holding,direction:Ue(u.start,u.end),axesEvent:o});i.trigger(c),c.isCanceled()?a(q.DISABLED):a(q.ANIMATING).onChange(e)},n}(jt),Df=function(r){ue(n,r);function n(){var e=r!==null&&r.apply(this,arguments)||this;return e.holding=!0,e.animating=!1,e._releaseEvent=null,e}var t=n.prototype;return t.onChange=function(e){var i=e.flicking,o=e.axesEvent,a=e.transitTo,l=o.inputEvent,u=i.horizontal?l.offsetX:l.offsetY,c=new H($.MOVE_START,{isTrusted:o.isTrusted,holding:this.holding,direction:Ue(0,-u),axesEvent:o});i.trigger(c),c.isCanceled()?a(q.DISABLED):a(q.DRAGGING).onChange(e)},t.onRelease=function(e){var i=e.flicking,o=e.axesEvent,a=e.transitTo;if(i.trigger(new H($.HOLD_END,{axesEvent:o})),o.delta.flick!==0){o.setTo({flick:i.camera.position},0),a(q.IDLE);return}this._releaseEvent=o},t.onFinish=function(e){var i,o,a=e.flicking,l=e.transitTo;if(l(q.IDLE),!!this._releaseEvent){var u=this._releaseEvent,c=u.inputEvent.srcEvent,f;if(c.type==="touchend"){var d=c,v=d.changedTouches[0];f=document.elementFromPoint(v.clientX,v.clientY)}else f=c.target;var h=a.renderer.panels,p=null;try{for(var g=jn(h),m=g.next();!m.done;m=g.next()){var y=m.value;if(y.contains(f)){p=y;break}}}catch(T){i={error:T}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}if(p){var b=a.camera.position,O=p.position;a.trigger(new H($.SELECT,{index:p.index,panel:p,direction:Ue(b,O)}))}}},n}(jt),Mf=function(r){ue(n,r);function n(){var e=r!==null&&r.apply(this,arguments)||this;return e.holding=!0,e.animating=!0,e}var t=n.prototype;return t.onChange=function(e){this._moveToChangedPosition(e)},t.onRelease=function(e){var i,o=e.flicking,a=e.axesEvent,l=e.transitTo;if(o.trigger(new H($.HOLD_END,{axesEvent:a})),o.renderer.panelCount<=0){l(q.IDLE);return}l(q.ANIMATING);var u=o.control,c=a.destPos[te],f=Math.max(a.duration,o.duration);try{u.moveToPosition(c,f,a)}catch{l(q.IDLE),a.setTo((i={},i[te]=o.camera.position,i),0)}},n}(jt),Bf=function(r){ue(n,r);function n(){var e=r!==null&&r.apply(this,arguments)||this;return e.holding=!1,e.animating=!0,e}var t=n.prototype;return t.onHold=function(e){var i=e.flicking,o=e.axesEvent,a=e.transitTo,l=this._targetPanel,u=i.control;this._delta=0,i.control.updateInput(),i.changeOnHold&&l&&u.setActive(l,u.activePanel,o.isTrusted);var c=new H($.HOLD_START,{axesEvent:o});i.trigger(c),c.isCanceled()?a(q.DISABLED):a(q.DRAGGING)},t.onChange=function(e){this._moveToChangedPosition(e)},t.onFinish=function(e){var i=e.flicking,o=e.axesEvent,a=e.transitTo,l=i.control,u=l.controller,c=u.animatingContext;a(q.IDLE),i.trigger(new H($.MOVE_END,{isTrusted:o.isTrusted,direction:Ue(c.start,c.end),axesEvent:o}));var f=this._targetPanel;f&&l.setActive(f,l.activePanel,o.isTrusted)},n}(jt),Lf=function(r){ue(n,r);function n(){var e=r!==null&&r.apply(this,arguments)||this;return e.holding=!1,e.animating=!0,e}var t=n.prototype;return t.onAnimationEnd=function(e){var i=e.transitTo;i(q.IDLE)},t.onChange=function(e){var i=e.axesEvent,o=e.transitTo;i.stop(),o(q.IDLE)},t.onRelease=function(e){var i=e.axesEvent,o=e.transitTo;i.delta.flick===0&&o(q.IDLE)},n}(jt),zf=function(){function r(){var t=this;this.transitTo=function(e){var i;switch(e){case q.IDLE:i=new uo;break;case q.HOLDING:i=new Df;break;case q.DRAGGING:i=new Mf;break;case q.ANIMATING:i=new Bf;break;case q.DISABLED:i=new Lf;break}return i.onEnter(t._state),t._state=i,t._state},this._state=new uo}var n=r.prototype;return Object.defineProperty(n,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),n.fire=function(t,e){var i=this._state,o=ce(ce({},e),{transitTo:this.transitTo});switch(t){case se.HOLD:i.onHold(o);break;case se.CHANGE:i.onChange(o);break;case se.RELEASE:i.onRelease(o);break;case se.ANIMATION_END:i.onAnimationEnd(o);break;case se.FINISH:i.onFinish(o);break}},r}(),Vf=function(){function r(){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 zf}var n=r.prototype;return Object.defineProperty(n,"axes",{get:function(){return this._axes},enumerable:!1,configurable:!0}),Object.defineProperty(n,"panInput",{get:function(){return this._panInput},enumerable:!1,configurable:!0}),Object.defineProperty(n,"stateMachine",{get:function(){return this._stateMachine},enumerable:!1,configurable:!0}),Object.defineProperty(n,"state",{get:function(){return this._stateMachine.state},enumerable:!1,configurable:!0}),Object.defineProperty(n,"animatingContext",{get:function(){return this._animatingContext},enumerable:!1,configurable:!0}),Object.defineProperty(n,"controlParams",{get:function(){var t=this._axes;if(!t)return{range:{min:0,max:0},position:0,circular:!1};var e=t.axis[te];return{range:{min:e.range[0],max:e.range[1]},circular:e.circular[0],position:this.position}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"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(n,"position",{get:function(){var t,e;return(e=(t=this._axes)===null||t===void 0?void 0:t.get([te])[te])!==null&&e!==void 0?e:0},enumerable:!1,configurable:!0}),Object.defineProperty(n,"range",{get:function(){var t,e;return(e=(t=this._axes)===null||t===void 0?void 0:t.axis[te].range)!==null&&e!==void 0?e:[0,0]},enumerable:!1,configurable:!0}),Object.defineProperty(n,"bounce",{get:function(){var t;return(t=this._axes)===null||t===void 0?void 0:t.axis[te].bounce},enumerable:!1,configurable:!0}),n.init=function(t){var e,i=this;this._flicking=t,this._axes=new rf((e={},e[te]={range:[0,0],circular:!1,bounce:[0,0]},e),{deceleration:t.deceleration,interruptable:t.interruptable,nested:t.nested,easing:t.easing}),this._panInput=new nf(t.viewport.element,{inputType:t.inputType,threshold:1,iOSEdgeSwipeThreshold:t.iOSEdgeSwipeThreshold,preventDefaultOnDrag:t.preventDefaultOnDrag,scale:t.horizontal?[-1,0]:[0,-1],releaseOnScroll:!0});var o=this._axes;o.connect(t.horizontal?[te,""]:["",te],this._panInput);var a=function(u){var c=se[u];o.on(c,function(f){i._stateMachine.fire(c,{flicking:t,axesEvent:f})})};for(var l in se)a(l);return this},n.destroy=function(){var t;this._axes&&(this.removePreventClickHandler(),this._axes.destroy()),(t=this._panInput)===null||t===void 0||t.destroy(),this._resetInternalValues()},n.enable=function(){var t;return(t=this._panInput)===null||t===void 0||t.enable(),this},n.disable=function(){var t;return(t=this._panInput)===null||t===void 0||t.disable(),this},n.release=function(){var t;return(t=this._panInput)===null||t===void 0||t.release(),this},n.updateAnimation=function(t,e){var i,o;return this._animatingContext=ce(ce({},this._animatingContext),{end:t}),(o=this._axes)===null||o===void 0||o.updateAnimation({destPos:(i={},i[te]=t,i),duration:e}),this},n.stopAnimation=function(){var t;return(t=this._axes)===null||t===void 0||t.stopAnimation(),this},n.update=function(t){var e,i=F(this._flicking),o=i.camera,a=this._axes,l=a.axis[te];return l.circular=[t.circular,t.circular],l.range=[t.range.min,t.range.max],l.bounce=Sf(i.bounce,o.size),a.axisManager.set((e={},e[te]=t.position,e)),this},n.addPreventClickHandler=function(){var t=F(this._flicking),e=this._axes,i=t.camera.element;return e.on(se.HOLD,this._onAxesHold),e.on(se.CHANGE,this._onAxesChange),i.addEventListener("click",this._preventClickWhenDragged,!0),this},n.removePreventClickHandler=function(){var t=F(this._flicking),e=this._axes,i=t.camera.element;return e.off(se.HOLD,this._onAxesHold),e.off(se.CHANGE,this._onAxesChange),i.removeEventListener("click",this._preventClickWhenDragged,!0),this},n.animateTo=function(t,e,i){var o=this,a,l=this._axes,u=this._stateMachine.state;if(!l)return Promise.reject(new Z(J.NOT_ATTACHED_TO_FLICKING,K.NOT_ATTACHED_TO_FLICKING));var c=l.get([te])[te];if(c===t){var f=F(this._flicking);return f.camera.lookAt(t),u.targetPanel&&f.control.setActive(u.targetPanel,f.control.activePanel,(a=i?.isTrusted)!==null&&a!==void 0?a:!1),Promise.resolve()}this._animatingContext={start:c,end:t,offset:0};var d=function(){var v,h,p=function(){o._animatingContext={start:0,end:0,offset:0}};l.once(se.FINISH,p),i?i.setTo((v={},v[te]=t,v),e):l.setTo((h={},h[te]=t,h),e)};return new Promise(function(v,h){var p=function(){l.off(se.HOLD,g),v()},g=function(){l.off(se.FINISH,p),h(new Z(J.ANIMATION_INTERRUPTED,K.ANIMATION_INTERRUPTED))};l.once(se.FINISH,p),l.once(se.HOLD,g),d()})},n.updateDirection=function(){var t=F(this._flicking),e=this._axes,i=this._panInput;e.disconnect(i),e.connect(t.horizontal?[te,""]:["",te],i),i.options.scale=t.horizontal?[-1,0]:[0,-1]},n._resetInternalValues=function(){this._flicking=null,this._axes=null,this._panInput=null,this._animatingContext={start:0,end:0,offset:0},this._dragged=!1},r}(),ri=function(){function r(){this._flicking=null,this._controller=new Vf,this._activePanel=null}var n=r.prototype;return Object.defineProperty(n,"controller",{get:function(){return this._controller},enumerable:!1,configurable:!0}),Object.defineProperty(n,"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(n,"activePanel",{get:function(){return this._activePanel},enumerable:!1,configurable:!0}),Object.defineProperty(n,"animating",{get:function(){return this._controller.state.animating},enumerable:!1,configurable:!0}),Object.defineProperty(n,"holding",{get:function(){return this._controller.state.holding},enumerable:!1,configurable:!0}),n.init=function(t){return this._flicking=t,this._controller.init(t),this},n.destroy=function(){this._controller.destroy(),this._flicking=null,this._activePanel=null},n.enable=function(){return this._controller.enable(),this},n.disable=function(){return this._controller.disable(),this},n.release=function(){return this._controller.release(),this},n.updateAnimation=function(t,e,i){var o=this._controller.state,a=this._getPosition(t,i??W.NONE);return o.targetPanel=t,this._controller.updateAnimation(a,e),this},n.stopAnimation=function(){var t=this._controller.state;return t.targetPanel=null,this._controller.stopAnimation(),this},n.updatePosition=function(t){var e=F(this._flicking),i=e.camera,o=this._activePanel;o&&i.lookAt(i.clampToReachablePosition(o.position))},n.updateInput=function(){var t=F(this._flicking),e=t.camera;return this._controller.update(e.controlParams),this},n.resetActive=function(){return this._activePanel=null,this},n.moveToPanel=function(t,e){var i=e.duration,o=e.direction,a=o===void 0?W.NONE:o,l=e.axesEvent;return nt(this,void 0,void 0,function(){var u;return rt(this,function(c){return u=this._getPosition(t,a),this._triggerIndexChangeEvent(t,t.position,l),[2,this._animateToPosition({position:u,duration:i,newActivePanel:t,axesEvent:l})]})})},n.setActive=function(t,e,i){var o,a=F(this._flicking);this._activePanel=t,a.camera.updateAdaptiveHeight(),t!==e?a.trigger(new H($.CHANGED,{index:t.index,panel:t,prevIndex:(o=e?.index)!==null&&o!==void 0?o:-1,prevPanel:e,isTrusted:i,direction:e?Ue(e.position,t.position):W.NONE})):a.trigger(new H($.RESTORED,{isTrusted:i}))},n.copy=function(t){this._flicking=t._flicking,this._activePanel=t._activePanel,this._controller=t._controller},n._triggerIndexChangeEvent=function(t,e,i){var o,a=F(this._flicking),l=t!==this._activePanel?$.WILL_CHANGE:$.WILL_RESTORE,u=a.camera,c=this._activePanel,f=new H(l,{index:t.index,panel:t,isTrusted:i?.isTrusted||!1,direction:Ue((o=c?.position)!==null&&o!==void 0?o:u.position,e)});if(a.trigger(f),f.isCanceled())throw new Z(J.STOP_CALLED_BY_USER,K.STOP_CALLED_BY_USER)},n._animateToPosition=function(t){var e=t.position,i=t.duration,o=t.newActivePanel,a=t.axesEvent;return nt(this,void 0,void 0,function(){var l,u,c,f=this;return rt(this,function(d){return l=F(this._flicking),u=function(){return f._controller.animateTo(e,i,a)},c=this._controller.state,c.targetPanel=o,i<=0?[2,u()]:[2,u().then(function(){return nt(f,void 0,void 0,function(){return rt(this,function(v){switch(v.label){case 0:return[4,l.renderer.render()];case 1:return v.sent(),[2]}})})}).catch(function(v){if(!(a&&v instanceof Z&&v.code===K.ANIMATION_INTERRUPTED))throw v})]})})},n._getPosition=function(t,e){e===void 0&&(e=W.NONE);var i=F(this._flicking),o=i.camera,a=t.position,l=o.findNearestAnchor(a);if(t.removed||!l)throw new Z(J.POSITION_NOT_REACHABLE(t.position),K.POSITION_NOT_REACHABLE);if(!o.canReach(t))a=l.position,t=l.panel;else if(i.circularEnabled){var u=this._controller.position,c=o.rangeDiff,f=[a,a+c,a-c].filter(function(d){return e===W.NONE?!0:e===W.PREV?d<=u:d>=u});a=f.reduce(function(d,v){return Math.abs(u-v)<Math.abs(u-d)?v:d},1/0)}return a},r}(),le=function(){function r(t){var e=t.index,i=t.position,o=t.panel;this._index=e,this._pos=i,this._panel=o}var n=r.prototype;return Object.defineProperty(n,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(n,"position",{get:function(){return this._pos},enumerable:!1,configurable:!0}),Object.defineProperty(n,"panel",{get:function(){return this._panel},enumerable:!1,configurable:!0}),r}(),Ff=function(r){ue(n,r);function n(e){var i=(e===void 0?{}:e).count,o=i===void 0?1/0:i,a=r.call(this)||this;return a._count=o,a}var t=n.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,i,o){var a=F(this._flicking),l=a.camera,u=l.findActiveAnchor(),c=l.findNearestAnchor(l.position),f=this._controller.state;if(!u||!c)return Promise.reject(new Z(J.POSITION_NOT_REACHABLE(e),K.POSITION_NOT_REACHABLE));var d=this._calcSnapThreshold(e,u),v=a.animating?f.delta:e-l.position,h=Math.abs(v),p=o&&o.delta[te]!==0?Math.abs(o.delta[te]):h,g;if(p>=d&&p>0)g=this._findSnappedAnchor(e,c);else if(h>=a.threshold&&h>0)g=this._findAdjacentAnchor(e,v,c);else return this.moveToPanel(c.panel,{duration:i,axesEvent:o});return this._triggerIndexChangeEvent(g.panel,e,o),this._animateToPosition({position:l.clampToReachablePosition(g.position),duration:i,newActivePanel:g.panel,axesEvent:o})},t._findSnappedAnchor=function(e,i){var o=F(this._flicking),a=o.camera,l=this._count,u=a.position,c=a.clampToReachablePosition(e),f=a.findAnchorIncludePosition(c);if(!i||!f)throw new Z(J.POSITION_NOT_REACHABLE(e),K.POSITION_NOT_REACHABLE);if(!isFinite(l))return f;var d=o.panelCount,v=a.anchorPoints,h=Math.sign(e-u)*Math.floor(Math.abs(e-u)/a.rangeDiff);e>u&&f.index<i.index||f.position>i.position&&f.index===i.index?h+=1:(e<u&&f.index>i.index||f.position<i.position&&f.index===i.index)&&(h-=1);var p=h*d,g=f.index+p;if(Math.abs(g-i.index)<=l){var m=v[f.index];return new le({index:m.index,position:m.position+h*a.rangeDiff,panel:m.panel})}if(o.circularEnabled){var y=v[La(i.index+Math.sign(e-u)*l,d)],b=Math.floor(l/d);return e>u&&y.index<i.index?b+=1:e<u&&y.index>i.index&&(b-=1),new le({index:y.index,position:y.position+b*a.rangeDiff,panel:y.panel})}else return v[Re(i.index+Math.sign(e-u)*l,0,v.length-1)]},t._findAdjacentAnchor=function(e,i,o){var a,l=F(this._flicking),u=l.camera;if(u.circularEnabled){var c=u.findAnchorIncludePosition(e);if(c&&c.position!==o.position)return c}var f=(a=i>0?u.getNextAnchor(o):u.getPrevAnchor(o))!==null&&a!==void 0?a:o;return f},t._calcSnapThreshold=function(e,i){var o=e>i.position,a=i.panel,l=a.size,u=a.alignPosition;return o?l-u+a.margin.next:u+a.margin.prev},n}(ri),jf=function(r){ue(n,r);function n(e){var i=(e===void 0?{}:e).stopAtEdge,o=i===void 0?!0:i,a=r.call(this)||this;return a._stopAtEdge=o,a}var t=n.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 i=F(this._flicking),o=i.camera,a=this._activePanel;if(a){var l=a.range,u=l.min+(l.max-l.min)*e;o.lookAt(o.clampToReachablePosition(u))}},t.moveToPosition=function(e,i,o){var a=F(this._flicking),l=a.camera,u=l.clampToReachablePosition(e),c=l.findAnchorIncludePosition(u);if(!c)return Promise.reject(new Z(J.POSITION_NOT_REACHABLE(e),K.POSITION_NOT_REACHABLE));var f=c.panel;return f!==this._activePanel&&this._triggerIndexChangeEvent(f,e,o),this._animateToPosition({position:this._stopAtEdge?u:e,duration:i,newActivePanel:f,axesEvent:o})},n}(ri),$f=function(r){ue(n,r);function n(e){var i=(e===void 0?{}:e).count,o=i===void 0?1:i,a=r.call(this)||this;return a.setActive=function(l,u,c){r.prototype.setActive.call(a,l,u,c),a.updateInput()},a._count=o,a._resetIndexRange(),a}var t=n.prototype;return Object.defineProperty(t,"count",{get:function(){return this._count},set:function(e){this._count=e},enumerable:!1,configurable:!0}),t.destroy=function(){r.prototype.destroy.call(this),this._resetIndexRange()},t.updateInput=function(){var e,i=F(this._flicking),o=i.camera,a=i.renderer,l=this._controller,u=o.controlParams,c=this._count,f=l.state.animating?(e=o.findNearestAnchor(o.position))===null||e===void 0?void 0:e.panel:this._activePanel;if(!f)return l.update(u),this._resetIndexRange(),this;var d=u.range,v=f.position,h=f.index,p=a.panelCount,g=h-c,m=h+c;g<0&&(g=i.circularEnabled?xn((g+1)%p-1,p):Re(g,0,p-1)),m>=p&&(m=i.circularEnabled?m%p:Re(m,0,p-1));var y=a.panels[g],b=a.panels[m],O=Math.max(y.position,d.min),T=Math.min(b.position,d.max);return O>v&&(O-=o.rangeDiff),T<v&&(T+=o.rangeDiff),u.range={min:O,max:T},u.circular&&(u.position<O&&(u.position+=o.rangeDiff),u.position>T&&(u.position-=o.rangeDiff)),u.circular=!1,l.update(u),this._indexRange={min:y.index,max:b.index},this},t.moveToPanel=function(e,i){return nt(this,void 0,void 0,function(){var o,a,l;return rt(this,function(u){return o=F(this._flicking),a=o.camera,l=this._controller,l.update(a.controlParams),[2,r.prototype.moveToPanel.call(this,e,i)]})})},t.moveToPosition=function(e,i,o){var a=F(this._flicking),l=a.camera,u=this._activePanel,c=this._controller.range,f=this._indexRange,d=l.range,v=this._controller.state,h=Re(l.clampToReachablePosition(e),c[0],c[1]),p=l.findAnchorIncludePosition(h);if(!p||!u)return Promise.reject(new Z(J.POSITION_NOT_REACHABLE(e),K.POSITION_NOT_REACHABLE));var g=u.position,m=a.animating?v.delta:e-l.position,y=Math.abs(m)>=a.threshold,b=e>g?l.getNextAnchor(p):l.getPrevAnchor(p),O,T,P=l.anchorPoints,k=P[0],x=P[P.length-1],S=e<=d.min&&ur(k.panel.index,f.min,f.max),R=e>=d.max&&ur(x.panel.index,f.min,f.max),A=b&&(f.min<=f.max?ur(b.index,f.min,f.max):b.index>=f.min||b.index<=f.max);if(S||R){var _=e<d.min?k:x;T=_.panel,O=_.position}else if(y&&p.position!==u.position)T=p.panel,O=p.position;else if(y&&A)T=b.panel,O=b.position;else{var E=l.findNearestAnchor(l.position);return E?this.moveToPanel(E.panel,{duration:i,axesEvent:o}):Promise.reject(new Z(J.POSITION_NOT_REACHABLE(e),K.POSITION_NOT_REACHABLE))}return this._triggerIndexChangeEvent(T,e,o),this._animateToPosition({position:O,duration:i,newActivePanel:T,axesEvent:o})},t._resetIndexRange=function(){this._indexRange={min:0,max:0}},n}(ri),ii=function(){function r(t){this._flicking=t}var n=r.prototype;return n.getAnchors=function(){var t=this._flicking.renderer.panels;return t.map(function(e,i){return new le({index:i,position:e.position,panel:e})})},n.findAnchorIncludePosition=function(t){var e=this._flicking.camera.anchorPoints,i=e.filter(function(o){return o.panel.includePosition(t,!0)});return i.reduce(function(o,a){return o&&Math.abs(o.position-t)<Math.abs(a.position-t)?o:a},null)},n.findNearestAnchor=function(t){var e=this._flicking.camera.anchorPoints;if(e.length<=0)return null;for(var i=1/0,o=0;o<e.length;o++){var a=e[o],l=Math.abs(a.position-t);if(l>i)return e[o-1];i=l}return e[e.length-1]},n.clampToReachablePosition=function(t){var e=this._flicking.camera,i=e.range;return Re(t,i.min,i.max)},n.getCircularOffset=function(){return 0},n.canReach=function(t){var e=this._flicking.camera,i=e.range;if(t.removed)return!1;var o=t.position;return o>=i.min&&o<=i.max},n.canSee=function(t){var e=this._flicking.camera,i=e.visibleRange;return t.isVisibleOnRange(i.min,i.max)},r}(),co=function(r){ue(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}var t=n.prototype;return t.checkAvailability=function(){return!0},t.getRange=function(){var e,i,o=this._flicking.renderer,a=o.getPanel(0),l=o.getPanel(o.panelCount-1);return{min:(e=a?.position)!==null&&e!==void 0?e:0,max:(i=l?.position)!==null&&i!==void 0?i:0}},n}(ii),Hf=function(r){ue(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}var t=n.prototype;return t.checkAvailability=function(){var e=this._flicking,i=e.renderer,o=i.panels;if(o.length<=0)return!1;var a=o[0],l=o[o.length-1],u=a.range.min-a.margin.prev,c=l.range.max+l.margin.next,f=e.camera.size,d=c-u,v=o.every(function(h){return d-h.size>=f});return v},t.getRange=function(){var e=this._flicking,i=e.renderer.panels;if(i.length<=0)return{min:0,max:0};var o=i[0],a=i[i.length-1],l=o.range.min-o.margin.prev,u=a.range.max+a.margin.next;return{min:l,max:u}},t.getAnchors=function(){var e=this._flicking,i=e.renderer.panels;return i.map(function(o,a){return new le({index:a,position:o.position,panel:o})})},t.findNearestAnchor=function(e){var i=this._flicking.camera,o=i.anchorPoints;if(o.length<=0)return null;for(var a=i.range,l=1/0,u=-1,c=0;c<o.length;c++){var f=o[c],d=Math.min(Math.abs(f.position-e),Math.abs(f.position-a.min+a.max-e),Math.abs(e-a.min+a.max-f.position));d<l&&(l=d,u=c)}return o[u]},t.findAnchorIncludePosition=function(e){var i=this._flicking.camera,o=i.range,a=i.anchorPoints,l=i.rangeDiff,u=a.length,c=Ma(e,o.min,o.max),f=r.prototype.findAnchorIncludePosition.call(this,c);if(u>0&&(e===o.min||e===o.max)){var d=[f,new le({index:0,position:a[0].position+l,panel:a[0].panel}),new le({index:u-1,position:a[u-1].position-l,panel:a[u-1].panel})].filter(function(h){return!!h});f=d.reduce(function(h,p){return h&&Math.abs(h.position-e)<Math.abs(p.position-e)?h:p},null)}if(!f)return null;if(e<o.min){var v=-Math.floor((o.min-e)/l)-1;return new le({index:f.index,position:f.position+l*v,panel:f.panel})}else if(e>o.max){var v=Math.floor((e-o.max)/l)+1;return new le({index:f.index,position:f.position+l*v,panel:f.panel})}return f},t.getCircularOffset=function(){var e=this._flicking,i=e.camera;if(!i.circularEnabled)return 0;var o=e.panels.filter(function(u){return u.toggled}),a=o.filter(function(u){return u.toggleDirection===W.PREV}),l=o.filter(function(u){return u.toggleDirection===W.NEXT});return this._calcPanelAreaSum(a)-this._calcPanelAreaSum(l)},t.clampToReachablePosition=function(e){return e},t.canReach=function(e){return!e.removed},t.canSee=function(e){var i=this._flicking.camera,o=i.range,a=i.rangeDiff,l=i.visibleRange,u=r.prototype.canSee.call(this,e);return l.min<o.min?u||e.isVisibleOnRange(l.min+a,l.max+a):l.max>o.max?u||e.isVisibleOnRange(l.min-a,l.max-a):u},t._calcPanelAreaSum=function(e){return e.reduce(function(i,o){return i+o.sizeIncludingMargin},0)},n}(ii),fo=function(r){ue(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}var t=n.prototype;return t.checkAvailability=function(){var e=this._flicking,i=e.renderer,o=i.getPanel(0),a=i.getPanel(i.panelCount-1);if(!o||!a)return!1;var l=e.camera.size,u=o.range.min,c=a.range.max,f=c-u,d=l<f;return d},t.getRange=function(){var e=this._flicking,i=e.renderer,o=e.camera.alignPosition,a=i.getPanel(0),l=i.getPanel(i.panelCount-1);if(!a||!l)return{min:0,max:0};var u=e.camera.size,c=a.range.min,f=l.range.max,d=f-c,v=u<d,h=c+o,p=f-u+o;if(v)return{min:h,max:p};var g=e.camera.align,m=typeof g=="object"?g.camera:g,y=h+ni(m,p-h);return{min:y,max:y}},t.getAnchors=function(){var e=this._flicking,i=e.camera,o=e.renderer.panels;if(o.length<=0)return[];var a=e.camera.range,l=o.filter(function(g){return i.canReach(g)});if(l.length>0){var u=l[0].position!==a.min,c=l[l.length-1].position!==a.max,f=u?1:0,d=l.map(function(g,m){return new le({index:m+f,position:g.position,panel:g})});return u&&d.splice(0,0,new le({index:0,position:a.min,panel:o[l[0].index-1]})),c&&d.push(new le({index:d.length,position:a.max,panel:o[l[l.length-1].index+1]})),d}else if(a.min!==a.max){var v=this._findNearestPanel(a.min,o),h=v.index===o.length-1?v.prev():v,p=h.next();return[new le({index:0,position:a.min,panel:h}),new le({index:1,position:a.max,panel:p})]}else return[new le({index:0,position:a.min,panel:this._findNearestPanel(a.min,o)})]},t.findAnchorIncludePosition=function(e){var i=this._flicking.camera,o=i.range,a=i.anchorPoints;return a.length<=0?null:e<=o.min?a[0]:e>=o.max?a[a.length-1]:r.prototype.findAnchorIncludePosition.call(this,e)},t._findNearestPanel=function(e,i){for(var o=1/0,a=0;a<i.length;a++){var l=i[a],u=Math.abs(l.position-e);if(u>o)return i[a-1];o=u}return i[i.length-1]},n}(ii),Gf=function(){function r(t,e){var i=this,o=(e===void 0?{}:e).align,a=o===void 0?Pe.CENTER:o;this._checkTranslateSupport=function(){var l,u,c=["webkitTransform","msTransform","MozTransform","OTransform","transform"],f=document.documentElement.style,d="";try{for(var v=jn(c),h=v.next();!h.done;h=v.next()){var p=h.value;p in f&&(d=p)}}catch(g){l={error:g}}finally{try{h&&!h.done&&(u=v.return)&&u.call(v)}finally{if(l)throw l.error}}if(!d)throw new Z(J.TRANSFORM_NOT_SUPPORTED,K.TRANSFORM_NOT_SUPPORTED);i._transform=d},this._flicking=t,this._resetInternalValues(),this._align=a}var n=r.prototype;return Object.defineProperty(n,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(n,"children",{get:function(){return ti(this._el.children)},enumerable:!1,configurable:!0}),Object.defineProperty(n,"position",{get:function(){return this._position},enumerable:!1,configurable:!0}),Object.defineProperty(n,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(n,"offset",{get:function(){return this._offset-this._circularOffset},enumerable:!1,configurable:!0}),Object.defineProperty(n,"circularEnabled",{get:function(){return this._circularEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(n,"mode",{get:function(){return this._mode},enumerable:!1,configurable:!0}),Object.defineProperty(n,"range",{get:function(){return this._range},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rangeDiff",{get:function(){return this._range.max-this._range.min},enumerable:!1,configurable:!0}),Object.defineProperty(n,"visiblePanels",{get:function(){return this._visiblePanels},enumerable:!1,configurable:!0}),Object.defineProperty(n,"visibleRange",{get:function(){return{min:this._position-this._alignPos,max:this._position-this._alignPos+this.size}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"anchorPoints",{get:function(){return this._anchors},enumerable:!1,configurable:!0}),Object.defineProperty(n,"controlParams",{get:function(){return{range:this._range,position:this._position,circular:this._circularEnabled}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"atEdge",{get:function(){return this._position<=this._range.min||this._position>=this._range.max},enumerable:!1,configurable:!0}),Object.defineProperty(n,"size",{get:function(){var t=this._flicking;return t?t.horizontal?t.viewport.width:t.viewport.height:0},enumerable:!1,configurable:!0}),Object.defineProperty(n,"progress",{get:function(){var t=this._flicking,e=this._position+this._offset,i=this.findNearestAnchor(this._position);if(!t||!i)return NaN;var o=i.panel,a=o.position+o.offset,l=t.control.controller.bounce,u=this.range,c=u.min,f=u.max,d=this.rangeDiff;if(e===a)return o.index;if(e<a){var v=o.prev(),h=v?v.position+v.offset:c-l[0];return h>a&&(h-=d),o.index-1+kn(e,h,a)}else{var p=o.next(),g=p?p.position+p.offset:f+l[1];return g<a&&(g+=d),o.index+kn(e,a,g)}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"align",{get:function(){return this._align},set:function(t){this._align=t},enumerable:!1,configurable:!0}),n.init=function(){var t=this._flicking.viewport.element;return Tf(t.firstElementChild,"First element child of the viewport element"),this._el=t.firstElementChild,this._checkTranslateSupport(),this._updateMode(),this},n.destroy=function(){return this._resetInternalValues(),this},n.lookAt=function(t){var e=this,i=F(this._flicking),o=this._position;this._position=t;var a=this._togglePanels(o,t);this._refreshVisiblePanels(),this._checkNeedPanel(),this._checkReachEnd(o,t),a?i.renderer.render().then(function(){e.updateOffset()}):this.applyTransform()},n.getPrevAnchor=function(t){if(!this._circularEnabled||t.index!==0)return this._anchors[t.index-1]||null;var e=this._anchors,i=this.rangeDiff,o=e[e.length-1];return new le({index:o.index,position:o.position-i,panel:o.panel})},n.getNextAnchor=function(t){var e=this._anchors;if(!this._circularEnabled||t.index!==e.length-1)return e[t.index+1]||null;var i=this.rangeDiff,o=e[0];return new le({index:o.index,position:o.position+i,panel:o.panel})},n.getProgressInPanel=function(t){var e=t.range;return(this._position-e.min)/(e.max-e.min)},n.findAnchorIncludePosition=function(t){return this._mode.findAnchorIncludePosition(t)},n.findNearestAnchor=function(t){return this._mode.findNearestAnchor(t)},n.findActiveAnchor=function(){var t=F(this._flicking),e=t.control.activeIndex;return xf(this._anchors,function(i){return i.panel.index===e})},n.clampToReachablePosition=function(t){return this._mode.clampToReachablePosition(t)},n.canReach=function(t){return this._mode.canReach(t)},n.canSee=function(t){return this._mode.canSee(t)},n.updateRange=function(){var t=F(this._flicking),e=t.renderer,i=e.panels;return this._updateMode(),this._range=this._mode.getRange(),i.forEach(function(o){return o.updateCircularToggleDirection()}),this},n.updateAlignPos=function(){var t=this._align,e=typeof t=="object"?t.camera:t;return this._alignPos=ni(e,this.size),this},n.updateAnchors=function(){return this._anchors=this._mode.getAnchors(),this},n.updateAdaptiveHeight=function(){var t=F(this._flicking),e=t.control.activePanel;!t.horizontal||!t.adaptive||!e||t.viewport.setSize({height:e.height})},n.updateOffset=function(){var t=F(this._flicking),e=this._position,i=t.panels.filter(function(o){return!o.rendered});return this._offset=i.filter(function(o){return o.position+o.offset<e}).reduce(function(o,a){return o+a.sizeIncludingMargin},0),this._circularOffset=this._mode.getCircularOffset(),this.applyTransform(),this},n.resetNeedPanelHistory=function(){return this._needPanelTriggered={prev:!1,next:!1},this},n.applyTransform=function(){var t=this._el,e=F(this._flicking),i=e.renderer;if(i.rendering||!e.initialized)return this;var o=this._position-this._alignPos-this._offset+this._circularOffset;return t.style[this._transform]=e.horizontal?"translate("+-o+"px)":"translate(0, "+-o+"px)",this},n._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}},n._refreshVisiblePanels=function(){var t=this,e=F(this._flicking),i=e.renderer.panels,o=i.filter(function(c){return t.canSee(c)}),a=this._visiblePanels;this._visiblePanels=o;var l=o.filter(function(c){return!Cn(a,c)}),u=a.filter(function(c){return!Cn(o,c)});(l.length>0||u.length>0)&&e.renderer.render().then(function(){e.trigger(new H($.VISIBLE_CHANGE,{added:l,removed:u,visiblePanels:o}))})},n._checkNeedPanel=function(){var t=this._needPanelTriggered;if(!(t.prev&&t.next)){var e=F(this._flicking),i=e.renderer.panels;if(i.length<=0){t.prev||(e.trigger(new H($.NEED_PANEL,{direction:W.PREV})),t.prev=!0),t.next||(e.trigger(new H($.NEED_PANEL,{direction:W.NEXT})),t.next=!0);return}var o=this._position,a=this.size,l=this._range,u=e.needPanelThreshold,c=o-this._alignPos,f=c+a,d=i[0],v=i[i.length-1];if(!t.prev){var h=d.range.min;(c<=h+u||o<=l.min+u)&&(e.trigger(new H($.NEED_PANEL,{direction:W.PREV})),t.prev=!0)}if(!t.next){var p=v.range.max;(f>=p-u||o>=l.max-u)&&(e.trigger(new H($.NEED_PANEL,{direction:W.NEXT})),t.next=!0)}}},n._checkReachEnd=function(t,e){var i=F(this._flicking),o=this._range,a=t>o.min&&t<o.max,l=e>o.min&&e<o.max;if(!(!a||l)){var u=e<=o.min?W.PREV:W.NEXT;i.trigger(new H($.REACH_EDGE,{direction:u}))}},n._updateMode=function(){var t=F(this._flicking);if(t.circular){var e=new Hf(t),i=e.checkAvailability();if(i)this._mode=e;else{var o=t.circularFallback;this._mode=o===Aa.BOUND?new fo(t):new co(t)}this._circularEnabled=i}else this._mode=t.bound?new fo(t):new co(t),this._circularEnabled=!1},n._togglePanels=function(t,e){if(e===t)return!1;var i=F(this._flicking),o=i.renderer.panels,a=o.map(function(l){return l.toggle(t,e)});return a.some(function(l){return l})},r}(),za=function(){function r(t){var e=t.align,i=e===void 0?Pe.CENTER:e,o=t.strategy;this._flicking=null,this._panels=[],this._rendering=!1,this._align=i,this._strategy=o}var n=r.prototype;return Object.defineProperty(n,"panels",{get:function(){return this._panels},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rendering",{get:function(){return this._rendering},enumerable:!1,configurable:!0}),Object.defineProperty(n,"panelCount",{get:function(){return this._panels.length},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strategy",{get:function(){return this._strategy},enumerable:!1,configurable:!0}),Object.defineProperty(n,"align",{get:function(){return this._align},set:function(t){this._align=t;var e=Sn(t);this._panels.forEach(function(i){i.align=e})},enumerable:!1,configurable:!0}),n.init=function(t){return this._flicking=t,this._collectPanels(),this},n.destroy=function(){this._flicking=null,this._panels=[]},n.getPanel=function(t){return this._panels[t]||null},n.forceRenderAllPanels=function(){return this._panels.forEach(function(t){return t.markForShow()}),Promise.resolve()},n.updatePanelSize=function(){var t=F(this._flicking),e=this._panels;if(e.length<=0)return this;if(t.panelsPerView>0){var i=e[0];i.resize(),this._updatePanelSizeByGrid(i,e)}else t.panels.forEach(function(o){return o.resize()});return this},n.batchInsert=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=this.batchInsertDefer.apply(this,ie(t));return i.length<=0?[]:(this.updateAfterPanelChange(i,[]),i)},n.batchInsertDefer=function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=this._panels,a=F(this._flicking),l=o[0],u=Sn(this._align),c=e.reduce(function(f,d){var v,h=xn(d.index,o.length),p=o.slice(h),g=d.elements.map(function(y,b){return t._createPanel(y,{index:h+b,align:u,flicking:a})});if(o.splice.apply(o,ie([h,0],g)),d.hasDOMInElements&&t._insertPanelElements(g,(v=p[0])!==null&&v!==void 0?v:null),a.panelsPerView>0){var m=l||g[0].resize();t._updatePanelSizeByGrid(m,g)}else g.forEach(function(y){return y.resize()});return p.forEach(function(y){y.increaseIndex(g.length),y.updatePosition()}),ie(f,g)},[]);return c},n.batchRemove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=this.batchRemoveDefer.apply(this,ie(t));return i.length<=0?[]:(this.updateAfterPanelChange([],i),i)},n.batchRemoveDefer=function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=this._panels,a=F(this._flicking),l=a.control,u=l.activePanel,c=e.reduce(function(f,d){var v=d.index,h=d.deleteCount,p=xn(v,o.length),g=o.slice(p+h),m=o.splice(p,h);return m.length<=0?[]:(g.forEach(function(y){y.decreaseIndex(m.length),y.updatePosition()}),d.hasDOMInElements&&t._removePanelElements(m),m.forEach(function(y){return y.destroy()}),Cn(m,u)&&l.resetActive(),ie(f,m))},[]);return c},n.updateAfterPanelChange=function(t,e){var i,o=F(this._flicking),a=o.camera,l=o.control,u=this._panels,c=l.activePanel;if(this._updateCameraAndControl(),this.render(),!o.animating)if(!c||c.removed)if(u.length<=0)a.lookAt(0);else{var f=(i=c?.index)!==null&&i!==void 0?i:0;f>u.length-1&&(f=u.length-1),l.moveToPanel(u[f],{duration:0}).catch(function(){})}else l.moveToPanel(c,{duration:0}).catch(function(){});o.camera.updateOffset(),(t.length>0||e.length>0)&&(o.trigger(new H($.PANEL_CHANGE,{added:t,removed:e})),this.checkPanelContentsReady(ie(t,e)))},n.checkPanelContentsReady=function(t){var e=this,i=F(this._flicking),o=i.resizeOnContentsReady,a=this._panels;if(!(!o||i.virtualEnabled)){var l=function(c){return c.element&&!!c.element.querySelector("img, video")};if(t=t.filter(function(c){return l(c)}),!(t.length<=0)){var u=new Pf;t.forEach(function(c){c.loading=!0}),u.on("readyElement",function(c){if(!e._flicking){u.destroy();return}var f=t[c.index],d=i.camera,v=i.control,h=v.activePanel?d.getProgressInPanel(v.activePanel):0;f.loading=!1,f.resize(),a.slice(f.index+1).forEach(function(p){return p.updatePosition()}),i.initialized&&(d.updateRange(),d.updateOffset(),d.updateAnchors(),v.animating||(v.updatePosition(h),v.updateInput()))}),u.on("preReady",function(c){e._flicking&&e.render(),c.readyCount===c.totalCount&&u.destroy()}),u.on("ready",function(){e._flicking&&e.render(),u.destroy()}),u.check(t.map(function(c){return c.element}))}}},n._updateCameraAndControl=function(){var t=F(this._flicking),e=t.camera,i=t.control;e.updateRange(),e.updateOffset(),e.updateAnchors(),e.resetNeedPanelHistory(),i.updateInput()},n._showOnlyVisiblePanels=function(t){var e=t.renderer.panels,i=t.camera,o=i.visiblePanels.reduce(function(a,l){return a[l.index]=!0,a},{});e.forEach(function(a){a.index in o||a.loading?a.markForShow():t.holding||a.markForHide()})},n._updatePanelSizeByGrid=function(t,e){var i=F(this._flicking),o=i.panelsPerView;if(o<=0)throw new Z(J.WRONG_OPTION("panelsPerView",o),K.WRONG_OPTION);if(!(e.length<=0)){var a=i.camera.size,l=t.margin.prev+t.margin.next,u=(a-l*(o-1))/o,c=i.horizontal?{width:u}:{height:u},f=ce({size:u,margin:t.margin},!i.horizontal&&{height:t.height});i.noPanelStyleOverride||this._strategy.updatePanelSizes(i,c),i.panels.forEach(function(d){return d.resize(f)})}},n._removeAllChildsFromCamera=function(){for(var t=F(this._flicking),e=t.camera.element;e.firstChild;)e.removeChild(e.firstChild)},n._insertPanelElements=function(t,e){e===void 0&&(e=null);var i=F(this._flicking),o=i.camera,a=o.element,l=e?.element||null,u=document.createDocumentFragment();t.forEach(function(c){return u.appendChild(c.element)}),a.insertBefore(u,l)},n._removePanelElements=function(t){var e=F(this._flicking),i=e.camera.element;t.forEach(function(o){i.removeChild(o.element)})},n._afterRender=function(){var t=F(this._flicking);t.camera.applyTransform()},r}(),Uf=function(r){ue(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}var t=n.prototype;return t.render=function(){return nt(this,void 0,void 0,function(){var e,i;return rt(this,function(o){return e=F(this._flicking),i=this._strategy,i.updateRenderingPanels(e),i.renderPanels(e),this._resetPanelElementOrder(),this._afterRender(),[2]})})},t._collectPanels=function(){var e=F(this._flicking),i=e.camera;this._removeAllTextNodes(),this._panels=this._strategy.collectPanels(e,i.children)},t._createPanel=function(e,i){return this._strategy.createPanel(e,i)},t._resetPanelElementOrder=function(){var e=F(this._flicking),i=e.camera.element,o=this._strategy.getRenderingElementsByOrder(e).reverse();o.forEach(function(a,l){var u=o[l-1]?o[l-1]:null;a.nextElementSibling!==u&&i.insertBefore(a,u)})},t._removeAllTextNodes=function(){var e=F(this._flicking),i=e.camera.element;ti(i.childNodes).forEach(function(o){o.nodeType===Node.TEXT_NODE&&i.removeChild(o)})},n}(za),Wf=function(r){ue(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}var t=n.prototype;return t._removePanelElements=function(e){},t._removeAllChildsFromCamera=function(){},n}(za),Dr=function(){function r(t){var e=t.index,i=t.align,o=t.flicking,a=t.elementProvider;this._index=e,this._flicking=o,this._elProvider=a,this._align=i,this._removed=!1,this._rendered=!0,this._loading=!1,this._resetInternalStates()}var n=r.prototype;return Object.defineProperty(n,"element",{get:function(){return this._elProvider.element},enumerable:!1,configurable:!0}),Object.defineProperty(n,"elementProvider",{get:function(){return this._elProvider},enumerable:!1,configurable:!0}),Object.defineProperty(n,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(n,"position",{get:function(){return this._pos+this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(n,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(n,"sizeIncludingMargin",{get:function(){return this._size+this._margin.prev+this._margin.next},enumerable:!1,configurable:!0}),Object.defineProperty(n,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),Object.defineProperty(n,"margin",{get:function(){return this._margin},enumerable:!1,configurable:!0}),Object.defineProperty(n,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(n,"removed",{get:function(){return this._removed},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),Object.defineProperty(n,"loading",{get:function(){return this._loading},set:function(t){this._loading=t},enumerable:!1,configurable:!0}),Object.defineProperty(n,"range",{get:function(){return{min:this._pos,max:this._pos+this._size}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"toggled",{get:function(){return this._toggled},enumerable:!1,configurable:!0}),Object.defineProperty(n,"toggleDirection",{get:function(){return this._toggleDirection},enumerable:!1,configurable:!0}),Object.defineProperty(n,"offset",{get:function(){var t=this._toggleDirection,e=this._flicking.camera.rangeDiff;return t===W.NONE||!this._toggled?0:t===W.PREV?-e:e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"progress",{get:function(){var t=this._flicking;return this.index-t.camera.progress},enumerable:!1,configurable:!0}),Object.defineProperty(n,"outsetProgress",{get:function(){var t=this.position+this.offset,e=this._alignPos,i=this._flicking.camera,o=i.position;if(o===t)return 0;if(o<t){var a=t+(i.size-i.alignPosition)+e;return-kn(o,t,a)}else{var l=t-(i.alignPosition+this._size-e);return 1-kn(o,l,t)}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"visibleRatio",{get:function(){var t=this.range,e=this._size,i=this.offset,o=this._flicking.camera.visibleRange,a={min:t.min+i,max:t.max+i};if(a.max<=o.min||a.min>=o.max)return 0;var l=e;return o.min>a.min&&(l-=o.min-a.min),o.max<a.max&&(l-=a.max-o.max),l/e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"align",{get:function(){return this._align},set:function(t){this._align=t,this._updateAlignPos()},enumerable:!1,configurable:!0}),n.markForShow=function(){this._rendered=!0,this._elProvider.show(this._flicking)},n.markForHide=function(){this._rendered=!1,this._elProvider.hide(this._flicking)},n.resize=function(t){var e,i=this.element,o=this._flicking,a=o.horizontal,l=o.useFractionalSize;if(t)this._size=t.size,this._margin=ce({},t.margin),this._height=(e=t.height)!==null&&e!==void 0?e:kt({el:i,horizontal:!1,useFractionalSize:l,useOffset:!0,style:Ar(i)});else{var u=Ar(i);this._size=kt({el:i,horizontal:a,useFractionalSize:l,useOffset:!0,style:u}),this._margin=a?{prev:parseFloat(u.marginLeft||"0"),next:parseFloat(u.marginRight||"0")}:{prev:parseFloat(u.marginTop||"0"),next:parseFloat(u.marginBottom||"0")},this._height=a?kt({el:i,horizontal:!1,useFractionalSize:l,useOffset:!0,style:u}):this._size}return this.updatePosition(),this._updateAlignPos(),this},n.setSize=function(t){return Ba(this.element,t),this},n.contains=function(t){var e;return!!(!((e=this.element)===null||e===void 0)&&e.contains(t))},n.destroy=function(){this._resetInternalStates(),this._removed=!0},n.includePosition=function(t,e){return e===void 0&&(e=!1),this.includeRange(t,t,e)},n.includeRange=function(t,e,i){i===void 0&&(i=!1);var o=this._margin,a=this.range;return i&&(a.min-=o.prev,a.max+=o.next),e>=a.min&&t<=a.max},n.isVisibleOnRange=function(t,e){var i=this.range;return e>i.min&&t<i.max},n.focus=function(t){return this._flicking.moveTo(this._index,t)},n.prev=function(){var t=this._index,e=this._flicking,i=e.renderer,o=i.panelCount;return o===1?null:e.circularEnabled?i.getPanel(t===0?o-1:t-1):i.getPanel(t-1)},n.next=function(){var t=this._index,e=this._flicking,i=e.renderer,o=i.panelCount;return o===1?null:e.circularEnabled?i.getPanel(t===o-1?0:t+1):i.getPanel(t+1)},n.increaseIndex=function(t){return this._index+=Math.max(t,0),this},n.decreaseIndex=function(t){return this._index-=Math.max(t,0),this},n.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},n.toggle=function(t,e){var i=this._toggleDirection,o=this._togglePosition;if(i===W.NONE||e===t)return!1;var a=this._toggled;return e>t?o>=t&&o<=e&&(this._toggled=i===W.NEXT):o<=t&&o>=e&&(this._toggled=i!==W.NEXT),a!==this._toggled},n.updateCircularToggleDirection=function(){var t=this._flicking;if(!t.circularEnabled)return this._toggleDirection=W.NONE,this._togglePosition=0,this._toggled=!1,this;var e=t.camera,i=e.range,o=e.alignPosition,a=e.visibleRange,l=a.max-a.min,u=i.min-o,c=i.max-o+l,f=this.includeRange(c-l,c,!1),d=this.includeRange(u,u+l,!1);return this._toggled=!1,f?(this._toggleDirection=W.PREV,this._togglePosition=this.range.max+i.min-i.max+o,this.toggle(1/0,e.position)):d?(this._toggleDirection=W.NEXT,this._togglePosition=this.range.min+i.max-l+o,this.toggle(-1/0,e.position)):(this._toggleDirection=W.NONE,this._togglePosition=0),this},n._updateAlignPos=function(){this._alignPos=ni(this._align,this._size)},n._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=W.NONE},r}(),Va=function(){function r(t){var e=t.providerCtor;this._providerCtor=e}var n=r.prototype;return n.renderPanels=function(){},n.getRenderingIndexesByOrder=function(t){var e=t.renderer.panels.filter(function(l){return l.rendered}),i=e.filter(function(l){return l.toggled&&l.toggleDirection===W.PREV}),o=e.filter(function(l){return l.toggled&&l.toggleDirection===W.NEXT}),a=e.filter(function(l){return!l.toggled});return ie(i,a,o).map(function(l){return l.index})},n.getRenderingElementsByOrder=function(t){var e=t.panels;return this.getRenderingIndexesByOrder(t).map(function(i){return e[i].element})},n.updateRenderingPanels=function(t){t.renderOnlyVisible?this._showOnlyVisiblePanels(t):t.panels.forEach(function(e){return e.markForShow()})},n.collectPanels=function(t,e){var i=this,o=Sn(t.renderer.align);return e.map(function(a,l){return new Dr({index:l,elementProvider:new i._providerCtor(a),align:o,flicking:t})})},n.createPanel=function(t,e){return new Dr(ce(ce({},e),{elementProvider:new this._providerCtor(t)}))},n.updatePanelSizes=function(t,e){t.panels.forEach(function(i){return i.setSize(e)})},n._showOnlyVisiblePanels=function(t){var e=t.renderer.panels,i=t.camera,o=i.visiblePanels.reduce(function(a,l){return a[l.index]=!0,a},{});e.forEach(function(a){a.index in o||a.loading?a.markForShow():t.holding||a.markForHide()}),i.updateOffset()},r}(),ho=function(r){ue(n,r);function n(e){var i=r.call(this,e)||this;return e.elementProvider.init(i),i._elProvider=e.elementProvider,i._cachedInnerHTML=null,i}var t=n.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,i=e.panelsPerView+1,o=e.panelCount,a=this._index;return this._toggled&&(a=this._toggleDirection===W.NEXT?a+o:a-o),La(a,i)},enumerable:!1,configurable:!0}),t.cacheRenderResult=function(e){this._cachedInnerHTML=e},t.uncacheRenderResult=function(){this._cachedInnerHTML=null},t.render=function(){var e=this._flicking,i=e.virtual,o=i.renderPanel,a=i.cache,l=this._elProvider.element,u=this._cachedInnerHTML||o(this,this._index);u!==l.innerHTML&&(l.innerHTML=u,a&&this.cacheRenderResult(u))},t.increaseIndex=function(e){return this.uncacheRenderResult(),r.prototype.increaseIndex.call(this,e)},t.decreaseIndex=function(e){return this.uncacheRenderResult(),r.prototype.decreaseIndex.call(this,e)},n}(Dr),Fa=function(){function r(){}var n=r.prototype;return n.renderPanels=function(t){var e=t.virtual,i=t.visiblePanels,o=zt(t.panelsPerView+1);i.forEach(function(a){var l=a.elementIndex;a.render(),e.show(l),o[l]=-1}),o.filter(function(a){return a>=0}).forEach(function(a){e.hide(a)})},n.getRenderingIndexesByOrder=function(t){var e=t.virtual,i=ie(t.visiblePanels).filter(function(l){return l.rendered}).sort(function(l,u){return l.position+l.offset-(u.position+u.offset)});if(i.length<=0)return e.elements.map(function(l,u){return u});var o=i.map(function(l){return l.elementIndex}),a=e.elements.map(function(l,u){return ce(ce({},l),{idx:u})}).filter(function(l){return!l.visible}).map(function(l){return l.idx});return ie(o,a)},n.getRenderingElementsByOrder=function(t){var e=t.virtual,i=e.elements;return this.getRenderingIndexesByOrder(t).map(function(o){return i[o].nativeElement})},n.updateRenderingPanels=function(t){var e=t.renderer.panels,i=t.camera,o=i.visiblePanels.reduce(function(a,l){return a[l.index]=!0,a},{});e.forEach(function(a){a.index in o||a.loading?a.markForShow():a.markForHide()}),i.updateOffset()},n.collectPanels=function(t){var e=Sn(t.renderer.align);return zt(t.virtual.initialPanelCount).map(function(i){return new ho({index:i,elementProvider:new lo(t),align:e,flicking:t})})},n.createPanel=function(t,e){return new ho(ce(ce({},e),{elementProvider:new lo(e.flicking)}))},n.updatePanelSizes=function(t,e){t.virtual.elements.forEach(function(i){Ba(i.nativeElement,e)}),t.panels.forEach(function(i){return i.setSize(e)})},r}(),ja=function(r){ue(n,r);function n(e,i){var o=i===void 0?{}:i,a=o.align,l=a===void 0?Pe.CENTER:a,u=o.defaultIndex,c=u===void 0?0:u,f=o.horizontal,d=f===void 0?!0:f,v=o.circular,h=v===void 0?!1:v,p=o.circularFallback,g=p===void 0?Aa.LINEAR:p,m=o.bound,y=m===void 0?!1:m,b=o.adaptive,O=b===void 0?!1:b,T=o.panelsPerView,P=T===void 0?-1:T,k=o.noPanelStyleOverride,x=k===void 0?!1:k,S=o.resizeOnContentsReady,R=S===void 0?!1:S,A=o.nested,_=A===void 0?!1:A,E=o.needPanelThreshold,N=E===void 0?0:E,D=o.preventEventsBeforeInit,M=D===void 0?!0:D,C=o.deceleration,w=C===void 0?.0075:C,I=o.duration,z=I===void 0?500:I,B=o.easing,V=B===void 0?function(Te){return 1-Math.pow(1-Te,3)}:B,Y=o.inputType,ee=Y===void 0?["mouse","touch"]:Y,de=o.moveType,he=de===void 0?"snap":de,fe=o.threshold,Ke=fe===void 0?40:fe,G=o.interruptable,Q=G===void 0?!0:G,re=o.bounce,ut=re===void 0?"20%":re,$t=o.iOSEdgeSwipeThreshold,$n=$t===void 0?30:$t,Ht=o.preventClickOnDrag,Hn=Ht===void 0?!0:Ht,Gt=o.preventDefaultOnDrag,De=Gt===void 0?!1:Gt,Ut=o.disableOnInit,Gn=Ut===void 0?!1:Ut,Wt=o.changeOnHold,Xt=Wt===void 0?!1:Wt,ct=o.renderOnlyVisible,Un=ct===void 0?!1:ct,Yt=o.virtual,Kt=Yt===void 0?null:Yt,ft=o.autoInit,Wn=ft===void 0?!0:ft,Zt=o.autoResize,Xn=Zt===void 0?!0:Zt,Qt=o.useResizeObserver,Yn=Qt===void 0?!0:Qt,dt=o.resizeDebounce,Kn=dt===void 0?0:dt,Jt=o.maxResizeDebounce,Zn=Jt===void 0?100:Jt,qt=o.useFractionalSize,Qn=qt===void 0?!1:qt,j=o.externalRenderer,X=j===void 0?null:j,oe=o.renderExternal,me=oe===void 0?null:oe,L=r.call(this)||this;return L._initialized=!1,L._plugins=[],L._align=l,L._defaultIndex=c,L._horizontal=d,L._circular=h,L._circularFallback=g,L._bound=y,L._adaptive=O,L._panelsPerView=P,L._noPanelStyleOverride=x,L._resizeOnContentsReady=R,L._nested=_,L._virtual=Kt,L._needPanelThreshold=N,L._preventEventsBeforeInit=M,L._deceleration=w,L._duration=z,L._easing=V,L._inputType=ee,L._moveType=he,L._threshold=Ke,L._interruptable=Q,L._bounce=ut,L._iOSEdgeSwipeThreshold=$n,L._preventClickOnDrag=Hn,L._preventDefaultOnDrag=De,L._disableOnInit=Gn,L._changeOnHold=Xt,L._renderOnlyVisible=Un,L._autoInit=Wn,L._autoResize=Xn,L._useResizeObserver=Yn,L._resizeDebounce=Kn,L._maxResizeDebounce=Zn,L._useFractionalSize=Qn,L._externalRenderer=X,L._renderExternal=me,L._viewport=new If(L,Of(e)),L._autoResizer=new Nf(L),L._renderer=L._createRenderer(),L._camera=L._createCamera(),L._control=L._createControl(),L._virtualManager=new Af(L,Kt),L._autoInit&&L.init(),L}var t=n.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)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"nested",{get:function(){return this._nested},set:function(e){this._nested=e;var i=this._control.controller.axes;i&&(i.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 i=this._control.controller.axes;i&&(i.options.deceleration=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"easing",{get:function(){return this._easing},set:function(e){this._easing=e;var i=this._control.controller.axes;i&&(i.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 i=this._control.controller.panInput;i&&(i.options.inputType=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"moveType",{get:function(){return this._moveType},set:function(e){this._moveType=e;var i=this._control,o=this._createControl(),a=i.activePanel;o.copy(i);var l=a?this._camera.getProgressInPanel(a):0;this._control=o,this._control.updatePosition(l),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 i=this._control.controller.axes;i&&(i.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 i=this._control.controller.panInput;i&&(i.options.iOSEdgeSwipeThreshold=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventClickOnDrag",{get:function(){return this._preventClickOnDrag},set:function(e){var i=this._preventClickOnDrag;if(e!==i){var o=this._control.controller;e?o.addPreventClickHandler():o.removePreventClickHandler(),this._preventClickOnDrag=e}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventDefaultOnDrag",{get:function(){return this._preventDefaultOnDrag},set:function(e){this._preventDefaultOnDrag=e;var i=this._control.controller.panInput;i&&(i.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()},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 i=this._camera,o=this._renderer,a=this._control,l=this._virtualManager,u=this.trigger,c=this._preventEventsBeforeInit;return i.init(),l.init(),o.init(this),a.init(this),c&&(this.trigger=function(){return e}),this._initialResize(),this._moveToInitialPanel(),this._autoResize&&this._autoResizer.enable(),this._preventClickOnDrag&&a.controller.addPreventClickHandler(),this._disableOnInit&&this.disableInput(),o.checkPanelContentsReady(o.panels),this._initialized=!0,o.render().then(function(){e._plugins.forEach(function(f){return f.init(e)}),c&&(e.trigger=u),e.trigger(new H($.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 i,o,a;return e===void 0&&(e=this._duration),this.moveTo((a=(o=(i=this._control.activePanel)===null||i===void 0?void 0:i.prev())===null||o===void 0?void 0:o.index)!==null&&a!==void 0?a:-1,e,W.PREV)},t.next=function(e){var i,o,a;return e===void 0&&(e=this._duration),this.moveTo((a=(o=(i=this._control.activePanel)===null||i===void 0?void 0:i.next())===null||o===void 0?void 0:o.index)!==null&&a!==void 0?a:this._renderer.panelCount,e,W.NEXT)},t.moveTo=function(e,i,o){i===void 0&&(i=this._duration),o===void 0&&(o=W.NONE);var a=this._renderer,l=a.panelCount,u=a.getPanel(e);return u?this._control.animating?Promise.reject(new Z(J.ANIMATION_ALREADY_PLAYING,K.ANIMATION_ALREADY_PLAYING)):(this._control.holding&&this._control.controller.release(),this._control.moveToPanel(u,{duration:i,direction:o})):Promise.reject(new Z(J.INDEX_OUT_OF_RANGE(e,0,l-1),K.INDEX_OUT_OF_RANGE))},t.updateAnimation=function(e,i,o){if(this._control.animating){var a=this._renderer,l=a.panelCount,u=a.getPanel(e);if(!u)throw new Z(J.INDEX_OUT_OF_RANGE(e,0,l-1),K.INDEX_OUT_OF_RANGE);this._control.updateAnimation(u,i,o)}},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 i,o,a=e===void 0?{}:e,l=a.index,u=l===void 0?!0:l,c=a.position,f=c===void 0?!0:c,d=a.includePanelHTML,v=d===void 0?!1:d,h=a.visiblePanelsOnly,p=h===void 0?!1:h,g=this._camera,m=p?this.visiblePanels:this.panels,y={panels:m.map(function(T){var P={index:T.index};return v&&(P.html=T.element.outerHTML),P})};if(u&&(y.index=this.index),f){var b=g.findNearestAnchor(g.position);b&&(y.position={panel:b.panel.index,progressInPanel:g.getProgressInPanel(b.panel)})}if(p){var O=this.visiblePanels;y.visibleOffset=(o=(i=O[0])===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:0}return y},t.setStatus=function(e){var i;if(!this._initialized)throw new Z(J.NOT_INITIALIZED,K.NOT_INITIALIZED);var o=e.index,a=e.position,l=e.visibleOffset,u=e.panels,c=this._renderer,f=this._control;if(!((i=u[0])===null||i===void 0)&&i.html&&!this._renderExternal&&(c.batchRemove({index:0,deleteCount:this.panels.length,hasDOMInElements:!0}),c.batchInsert({index:0,elements:so(u.map(function(m){return m.html})),hasDOMInElements:!0})),o!=null){var d=l?o-l:o;this.moveTo(d,0).catch(function(){})}if(a&&this._moveType===Je.FREE_SCROLL){var v=a.panel,h=a.progressInPanel,d=l?v-l:v,p=c.panels[d].range,g=p.min+(p.max-p.min)*h;f.moveToPosition(g,0).catch(function(){})}},t.addPlugins=function(){for(var e,i=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return this._initialized&&o.forEach(function(l){return l.init(i)}),(e=this._plugins).push.apply(e,ie(o)),this},t.removePlugins=function(){for(var e=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return i.forEach(function(a){var l=Cf(e._plugins,function(u){return u===a});l>=0&&(a.destroy(),e._plugins.splice(l,1))}),this},t.resize=function(){return nt(this,void 0,void 0,function(){var e,i,o,a,l,u,c,f,d,v,h;return rt(this,function(p){switch(p.label){case 0:return e=this._viewport,i=this._renderer,o=this._camera,a=this._control,l=a.activePanel,u=e.width,c=e.height,f=l?o.getProgressInPanel(l):0,this.trigger(new H($.BEFORE_RESIZE,{width:u,height:c,element:e.element})),e.resize(),[4,i.forceRenderAllPanels()];case 1:return p.sent(),i.updatePanelSize(),o.updateAlignPos(),o.updateRange(),o.updateAnchors(),o.updateAdaptiveHeight(),o.updateOffset(),[4,i.render()];case 2:return p.sent(),a.animating||(a.updatePosition(f),a.updateInput()),d=e.width,v=e.height,h=d!==u||v!==c,this.trigger(new H($.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:u,height:c},sizeChanged:h,element:e.element})),[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,i){if(this._renderExternal)throw new Z(J.NOT_ALLOWED_IN_FRAMEWORK,K.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchInsert({index:e,elements:so(i),hasDOMInElements:!0})},t.remove=function(e,i){if(i===void 0&&(i=1),this._renderExternal)throw new Z(J.NOT_ALLOWED_IN_FRAMEWORK,K.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchRemove({index:e,deleteCount:i,hasDOMInElements:!0})},t._createControl=function(){var e,i=this._moveType,o=Object.keys(Je).map(function(u){return Je[u]}),a=Array.isArray(i)?i[0]:i,l=Array.isArray(i)?(e=i[1])!==null&&e!==void 0?e:{}:{};if(!Cn(o,a))throw new Z(J.WRONG_OPTION("moveType",JSON.stringify(i)),K.WRONG_OPTION);switch(a){case Je.SNAP:return new Ff(l);case Je.FREE_SCROLL:return new jf(l);case Je.STRICT:return new $f(l)}},t._createCamera=function(){return this._circular&&this._bound&&console.warn('"circular" and "bound" option cannot be used together, ignoring bound.'),new Gf(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,i=e.renderer,o=e.rendererOptions;return new i(ce({align:this._align},o))},t._createVanillaRenderer=function(){var e=this.virtualEnabled;return new Uf({align:this._align,strategy:e?new Fa:new Va({providerCtor:Rf})})},t._moveToInitialPanel=function(){var e=this._renderer,i=this._control,o=this._camera,a=e.getPanel(this._defaultIndex)||e.getPanel(0);if(a){var l=o.findNearestAnchor(a.position),u=l&&a.index!==l.panel.index?l.panel:a;if(i.setActive(u,null,!1),!l)throw new Z(J.POSITION_NOT_REACHABLE(u.position),K.POSITION_NOT_REACHABLE);var c=u.position;o.canReach(u)||(c=l.position),o.lookAt(c),i.updateInput(),o.updateOffset()}},t._initialResize=function(){var e=this._viewport,i=this._renderer,o=this._camera,a=this._control;this.trigger(new H($.BEFORE_RESIZE,{width:0,height:0,element:e.element})),e.resize(),i.updatePanelSize(),o.updateAlignPos(),o.updateRange(),o.updateAnchors(),o.updateOffset(),a.updateInput();var l=e.width,u=e.height,c=l!==0||u!==0;this.trigger(new H($.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:0,height:0},sizeChanged:c,element:e.element}))},n.VERSION="4.11.0",n}(Ye),Xf=function(r,n){[Ye.prototype,ja.prototype].forEach(function(t){Object.getOwnPropertyNames(t).filter(function(e){return!r[e]&&e.indexOf("_")!==0&&e!=="constructor"}).forEach(function(e){var i=Object.getOwnPropertyDescriptor(t,e);if(i.value)Object.defineProperty(r,e,{value:function(){for(var a,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return(a=i.value).call.apply(a,ie([this[n]],l))}});else{var o={};i.get&&(o.get=function(){var a,l=this[n];return l&&((a=i.get)===null||a===void 0?void 0:a.call(l))}),i.set&&(o.set=function(){for(var a,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return(a=i.set)===null||a===void 0?void 0:a.call.apply(a,ie([this[n]],l))}),Object.defineProperty(r,e,o)}})})},Yf=function(r,n,t){var e=r.renderer,i=e.panels,o=ie(n.prevList),a=[],l=[];if(n.removed.length>0){var u=-1,c=-1;n.removed.forEach(function(h){u<0&&(u=h),c>=0&&h!==c-1&&(l.push.apply(l,ie(po(e,c,u+1))),u=h),c=h,o.splice(h,1)}),l.push.apply(l,ie(po(e,c,u+1)))}if(n.ordered.forEach(function(h){var p=ei(h,2),g=p[0],m=p[1],y=i.splice(g,1)[0];i.splice(m,0,y)}),n.ordered.length>0&&(i.forEach(function(h,p){var g=p-h.index;g>0?h.increaseIndex(g):h.decreaseIndex(-g)}),i.sort(function(h,p){return h.index-p.index}),i.forEach(function(h){h.updatePosition()})),n.added.length>0){var f=-1,d=-1,v=t.slice(o.length);n.added.forEach(function(h,p){f<0&&(f=p),d>=0&&h!==d+1?(a.push.apply(a,ie(vo(e,n,v,f,p+1))),f=-1,d=-1):d=h}),f>=0&&a.push.apply(a,ie(vo(e,n,v,f)))}(n.added.length>0||n.removed.length>0)&&e.updateAfterPanelChange(a,l)},vo=function(r,n,t,e,i){return r.batchInsertDefer.apply(r,ie(n.added.slice(e,i).map(function(o,a){return{index:o,elements:[t[a]],hasDOMInElements:!1}})))},po=function(r,n,t){var e=r.panels.slice(n,t);return r.batchRemoveDefer({index:n,deleteCount:e.length,hasDOMInElements:!1})},Kf=function(r,n){var t=n.removed.reduce(function(i,o){return i[o]=!0,i},{}),e=n.maintained.reduce(function(i,o){var a=ei(o,2),l=a[0],u=a[1];return i[l]=u,i},{});return ie(r.panels.filter(function(i){return!t[i.index]}).sort(function(i,o){return i.position+i.offset-(o.position+o.offset)}).map(function(i){return n.list[e[i.index]]}),n.added.map(function(i){return n.list[i]}))},Zf=function(r,n,t){r===void 0&&(r=Pe.CENTER),n===void 0&&(n=!0);var e=Qf(r),i=Jf(r);if(i==null)return"";var o="calc("+e+" - ("+(t||"0px")+" * "+i.percentage+") - "+i.absolute+"px)";return n?"translate("+o+")":"translate(0, "+o+")"},Qf=function(r){var n=typeof r=="object"?r.camera:r;return $a(n)},Jf=function(r){var n=typeof r=="object"?r.panel:r;return Da($a(n))},$a=function(r){if(typeof r=="number")return r+"px";switch(r){case Pe.CENTER:return"50%";case Pe.NEXT:return"100%";case Pe.PREV:return"0%";default:return r}};/*! *****************************************************************************
51
+ Copyright (c) Microsoft Corporation.
52
+
53
+ Permission to use, copy, modify, and/or distribute this software for any
54
+ purpose with or without fee is hereby granted.
55
+
56
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
57
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
58
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
59
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
60
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
61
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
62
+ PERFORMANCE OF THIS SOFTWARE.
63
+ ***************************************************************************** */var Mr=function(r,n){return Mr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Mr(r,n)};function qf(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Mr(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var In=function(){return In=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},In.apply(this,arguments)};function ed(r,n){var t={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&n.indexOf(e)<0&&(t[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,e=Object.getOwnPropertySymbols(r);i<e.length;i++)n.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(r,e[i])&&(t[e[i]]=r[e[i]]);return t}function go(r,n,t,e){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function l(f){try{c(e.next(f))}catch(d){a(d)}}function u(f){try{c(e.throw(f))}catch(d){a(d)}}function c(f){f.done?o(f.value):i(f.value).then(l,u)}c((e=e.apply(r,n||[])).next())})}function mo(r,n){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,i,o,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(c){return function(f){return u([c,f])}}function u(c){if(e)throw new TypeError("Generator is already executing.");for(;t;)try{if(e=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,i=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){t.label=c[1];break}if(c[0]===6&&t.label<o[1]){t.label=o[1],o=c;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(c);break}o[2]&&t.ops.pop(),t.trys.pop();continue}c=n.call(r,t)}catch(f){c=[6,f],i=0}finally{e=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function cr(r,n,t){if(t||arguments.length===2)for(var e=0,i=n.length,o;e<i;e++)(o||!(e in n))&&(o||(o=Array.prototype.slice.call(n,0,e)),o[e]=n[e]);return r.concat(o||Array.prototype.slice.call(n))}var td={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}},nd=function(r){qf(n,r);function n(e){var i=r.call(this,e)||this;return i._vueFlicking=e.vueFlicking,i}var t=n.prototype;return t.render=function(){return go(this,void 0,void 0,function(){var e,i,o,a=this;return mo(this,function(l){return e=F(this._flicking),i=this._vueFlicking,o=this._strategy,o.updateRenderingPanels(e),o.renderPanels(e),[2,new Promise(function(u){i.renderEmitter.once("render",function(){a._afterRender(),u()}),i.$forceUpdate()})]})})},t.forceRenderAllPanels=function(){return go(this,void 0,void 0,function(){var e;return mo(this,function(i){switch(i.label){case 0:return e=this._vueFlicking,[4,r.prototype.forceRenderAllPanels.call(this)];case 1:return i.sent(),[2,new Promise(function(o){e.renderEmitter.once("render",o),e.$forceUpdate()})]}})})},t._collectPanels=function(){var e=F(this._flicking),i=this._vueFlicking,o=i.$refs,a=Object.keys(o).map(function(l){return o[l]});this._panels=this._strategy.collectPanels(e,a)},t._createPanel=function(e,i){return this._strategy.createPanel(e,i)},n}(Wf),rd=s.defineComponent({data:function(){return{hide:!1}},render:function(){if(!(this.hide||!this.$slots.default))return this.$slots.default()}}),id=function(){function r(t){this._el=t}var n=r.prototype;return Object.defineProperty(n,"rendered",{get:function(){return!this._el.hide},enumerable:!1,configurable:!0}),Object.defineProperty(n,"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}),n.show=function(){this._el.hide=!1},n.hide=function(){this._el.hide=!0},r}(),yo=s.defineComponent({props:td,components:{Panel:rd},data:function(){return{}},created:function(){var r=this;this.vanillaFlicking=null,this.renderEmitter=new Ye,this.diffResult=null,this.getPanels=function(){var n=s.getCurrentInstance(),t=n?.ctx,e=r.vanillaFlicking,i=r.getSlots(),o=t?.diffResult,a=o?Kf(e,o):i,l=s.resolveComponent("Panel"),u=a.map(function(c,f){return s.h(l,{key:c.key,ref:f.toString()},function(){return c})});return u},this.getVirtualPanels=function(){var n=r.options,t=n.virtual.panelClass,e=t===void 0?"flicking-panel":t,i=n.panelsPerView,o=r.vanillaFlicking,a=o&&o.initialized,l=a?o.renderer.strategy.getRenderingIndexesByOrder(o):zt(i+1),u=a&&o.panels[0],c=u?o.horizontal?{width:u.size}:{height:u.size}:{};return l.map(function(f){return s.h("div",{key:f,ref:f.toString(),class:e,style:c,"data-element-index":f})})},Xf(this,"vanillaFlicking")},mounted:function(){var r=this,n,t=this.options,e=this.$el,i={vueFlicking:this,align:t.align,strategy:t.virtual&&((n=t.panelsPerView)!==null&&n!==void 0?n:-1)>0?new Fa:new Va({providerCtor:id})},o=new ja(e,In(In({},t),{externalRenderer:new nd(i)}));this.vanillaFlicking=o,o.once($.READY,function(){r.$forceUpdate()});var a=this.getSlots();this.slotDiffer=new eo(a,function(l){return l.key}),this.pluginsDiffer=new eo,this.bindEvents(),this.checkPlugins(),this.status&&o.setStatus(this.status)},beforeUnmount:function(){var r;(r=this.vanillaFlicking)===null||r===void 0||r.destroy()},beforeMount:function(){this.fillKeys()},beforeUpdate:function(){this.fillKeys(),this.diffResult=this.slotDiffer.update(this.getSlots())},updated:function(){var r=this.vanillaFlicking,n=this.diffResult;if(this.checkPlugins(),this.renderEmitter.trigger("render"),!(!n||!r?.initialized)){var t=this.getChildren();Yf(r,n,t),(n.added.length>0||n.removed.length>0)&&this.$forceUpdate(),this.diffResult=void 0}},render:function(){var r,n,t=this.vanillaFlicking,e=this.options,i=t&&t.initialized,o=t?t.horizontal:(n=this.options.horizontal)!==null&&n!==void 0?n:!0,a={class:{"flicking-viewport":!0,vertical:!o,"flicking-hidden":this.hideBeforeInit&&!i}},l={class:(r={"flicking-camera":!0},r[this.cameraClass]=!!this.cameraClass,r),style:!i&&this.firstPanelSize?{transform:Zf(this.options.align,this.options.horizontal,this.firstPanelSize)}:{}},u=e.virtual&&e.panelsPerView&&e.panelsPerView>0?this.getVirtualPanels:this.getPanels,c=this.$slots.viewport?this.$slots.viewport():[];return s.h(this.viewportTag,a,cr([s.h(this.cameraTag,l,{default:u})],c,!0))},methods:{getSlots:function(){var r=this,n=this.$slots.default?this.$slots.default():[];return n.reduce(function(t,e){return cr(cr([],t,!0),r.getElementVNodes(e),!0)},[]).filter(function(t){return t.type!==s.Comment&&t.type!==s.Text})},getElementVNodes:function(r,n){var t=this;return n===void 0&&(n=[]),r.type===s.Fragment&&Array.isArray(r.children)?r.children.filter(function(e){return e&&typeof e=="object"}).forEach(function(e){return t.getElementVNodes(e,n)}):n.push(r),n},bindEvents:function(){var r=this,n=this.vanillaFlicking,t=Object.keys($).map(function(e){return $[e]});t.forEach(function(e){n.on(e,function(i){i.currentTarget=r,r.$emit(e.replace(/([A-Z])/g,"-$1").toLowerCase(),i)})})},checkPlugins:function(){var r,n,t=this.pluginsDiffer.update(this.plugins),e=t.list,i=t.added,o=t.removed,a=t.prevList;(r=this.vanillaFlicking).addPlugins.apply(r,i.map(function(l){return e[l]})),(n=this.vanillaFlicking).removePlugins.apply(n,o.map(function(l){return a[l]}))},fillKeys:function(){var r=this.getSlots();r.forEach(function(n,t){n.key==null&&(n.key="$_".concat(t))})},getChildren:function(){var r=this.$refs;return Object.keys(r).map(function(n){return r[n]})}},watch:{options:{handler:function(r){var n=this.vanillaFlicking;if(n){r.virtual;var t=ed(r,["virtual"]);for(var e in t)e in n&&n[e]!==t[e]&&(n[e]=t[e])}},deep:!0,immediate:!0}}}),mt={TYPE:{CAMERA:"camera",INDEX:"index"}},od=function(r,n){if(r)if(r.classList)r.classList.add(n);else{var t=r.className.split(" ");t.indexOf(n)<0&&(r.className=r.className+" "+n)}},ad=function(r,n){if(r)if(r.classList)r.classList.remove(n);else{var t=new RegExp("( |^)"+n+"( |$)","g");r.className.replace(t," ")}},sd=function(){function r(t){var e=this,i=t===void 0?{}:t,o=i.type,a=o===void 0?mt.TYPE.CAMERA:o,l=i.synchronizedFlickingOptions,u=l===void 0?[]:l;this._flicking=null,this._addEvents=function(){var c=e._type,f=e._synchronizedFlickingOptions;f.forEach(function(d){var v=d.flicking,h=d.isSlidable,p=d.isClickable;c===mt.TYPE.CAMERA&&(v.on($.MOVE,e._onMove),v.on($.MOVE_START,e._onMoveStart),v.on($.MOVE_END,e._onMoveEnd)),c===mt.TYPE.INDEX&&h&&(v.on($.WILL_CHANGE,e._onIndexChange),v.on($.WILL_RESTORE,e._onIndexChange)),p&&v.on($.SELECT,e._onSelect)})},this._removeEvents=function(){var c=e._type,f=e._synchronizedFlickingOptions;f.forEach(function(d){var v=d.flicking,h=d.isSlidable,p=d.isClickable;c===mt.TYPE.CAMERA&&(v.off($.MOVE,e._onMove),v.off($.MOVE_START,e._onMoveStart),v.off($.MOVE_END,e._onMoveEnd)),c===mt.TYPE.INDEX&&h&&(v.off($.WILL_CHANGE,e._onIndexChange),v.off($.WILL_RESTORE,e._onIndexChange)),p&&v.off($.SELECT,e._onSelect)})},this._onIndexChange=function(c){var f=c.currentTarget;f.initialized&&e._synchronizeByIndex(f,c.index)},this._onMove=function(c){var f=c.currentTarget.camera,d=(f.position-f.range.min)/f.rangeDiff;e._synchronizedFlickingOptions.forEach(function(v){var h=v.flicking;if(h!==c.currentTarget){var p=0;f.position<f.range.min?p=f.position:f.position>f.range.max?p=h.camera.range.max+f.position-f.range.max:p=h.camera.range.min+h.camera.rangeDiff*d,h.camera.lookAt(p)}})},this._onMoveStart=function(c){e._synchronizedFlickingOptions.forEach(function(f){var d=f.flicking;d!==c.currentTarget&&d.disableInput()})},this._onMoveEnd=function(c){e._synchronizedFlickingOptions.forEach(function(f){var d=f.flicking;d!==c.currentTarget&&(d.enableInput(),d.control.updateInput())})},this._onSelect=function(c){c.currentTarget.moveTo(c.index).catch(function(){}),e._synchronizeByIndex(c.currentTarget,c.index)},this._synchronizeByIndex=function(c,f){var d=e._synchronizedFlickingOptions;e._preventEvent(function(){d.forEach(function(v){e._updateClass(v,f);var h=v.flicking;if(h!==c){var p=Re(f,0,h.panels.length);h.animating?h.once($.MOVE_END,function(){h.moveTo(p).catch(function(){})}):h.moveTo(p)}})})},this._updateClass=function(c,f){var d=c.flicking,v=c.activeClass;v&&d.panels.forEach(function(h){h.index===f?od(h.element,v):ad(h.element,v)})},this._type=a,this._synchronizedFlickingOptions=u}var n=r.prototype;return Object.defineProperty(n,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!1,configurable:!0}),Object.defineProperty(n,"synchronizedFlickingOptions",{get:function(){return this._synchronizedFlickingOptions},set:function(t){this._synchronizedFlickingOptions=t},enumerable:!1,configurable:!0}),n.init=function(t){var e=this,i=this._synchronizedFlickingOptions;this._flicking&&this.destroy(),this._flicking=t,this._addEvents(),i.forEach(function(o){var a=o.flicking;e._updateClass(o,a.defaultIndex)})},n.destroy=function(){var t=this._flicking;t&&(this._removeEvents(),this._flicking=null)},n.update=function(){var t=this;this._synchronizedFlickingOptions.forEach(function(e){t._updateClass(e,e.flicking.index)})},n._preventEvent=function(t){this._removeEvents(),t(),this._addEvents()},r}();function ld(r){if(Array.isArray(r)){for(var n=0,t=Array(r.length);n<r.length;n++)t[n]=r[n];return t}else return Array.from(r)}var oi=!1;if(typeof window<"u"){var bo={get passive(){oi=!0}};window.addEventListener("testPassive",null,bo),window.removeEventListener("testPassive",null,bo)}var Nn=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),$e=[],Rn=!1,Ha=-1,It=void 0,Fe=void 0,Nt=void 0,Ga=function(n){return $e.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(n))})},An=function(n){var t=n||window.event;return Ga(t.target)||t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)},ud=function(n){if(Nt===void 0){var t=!!n&&n.reserveScrollBarGap===!0,e=window.innerWidth-document.documentElement.clientWidth;if(t&&e>0){var i=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);Nt=document.body.style.paddingRight,document.body.style.paddingRight=i+e+"px"}}It===void 0&&(It=document.body.style.overflow,document.body.style.overflow="hidden")},cd=function(){Nt!==void 0&&(document.body.style.paddingRight=Nt,Nt=void 0),It!==void 0&&(document.body.style.overflow=It,It=void 0)},fd=function(){return window.requestAnimationFrame(function(){if(Fe===void 0){Fe={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var n=window,t=n.scrollY,e=n.scrollX,i=n.innerHeight;document.body.style.position="fixed",document.body.style.top=-t,document.body.style.left=-e,setTimeout(function(){return window.requestAnimationFrame(function(){var o=i-window.innerHeight;o&&t>=i&&(document.body.style.top=-(t+o))})},300)}})},dd=function(){if(Fe!==void 0){var n=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.body.style.position=Fe.position,document.body.style.top=Fe.top,document.body.style.left=Fe.left,window.scrollTo(t,n),Fe=void 0}},hd=function(n){return n?n.scrollHeight-n.scrollTop<=n.clientHeight:!1},vd=function(n,t){var e=n.targetTouches[0].clientY-Ha;return Ga(n.target)?!1:t&&t.scrollTop===0&&e>0||hd(t)&&e<0?An(n):(n.stopPropagation(),!0)},pd=function(n,t){if(!n){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!$e.some(function(i){return i.targetElement===n})){var e={targetElement:n,options:t||{}};$e=[].concat(ld($e),[e]),Nn?fd():ud(t),Nn&&(n.ontouchstart=function(i){i.targetTouches.length===1&&(Ha=i.targetTouches[0].clientY)},n.ontouchmove=function(i){i.targetTouches.length===1&&vd(i,n)},Rn||(document.addEventListener("touchmove",An,oi?{passive:!1}:void 0),Rn=!0))}},gd=function(n){if(!n){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}$e=$e.filter(function(t){return t.targetElement!==n}),Nn&&(n.ontouchstart=null,n.ontouchmove=null,Rn&&$e.length===0&&(document.removeEventListener("touchmove",An,oi?{passive:!1}:void 0),Rn=!1)),Nn?dd():cd()},ai=s.defineComponent({name:"SidePanelCloseButton",emits:["close"]});const md=s.createBaseVNode("span",{class:"vsp-close__x"},null,-1),yd=[md];function bd(r,n,t,e,i,o){return s.openBlock(),s.createElementBlock("div",{class:"vsp-close",onClick:n[0]||(n[0]=a=>r.$emit("close"))},yd)}ai.render=bd;ai.__file="src/components/SidePanelCloseButton.vue";var si=s.defineComponent({name:"VueSidePanel",components:{SidePanelCloseButton:ai},props:{idName:{type:String,default:"vsp-container"},hideCloseBtn:{type:Boolean,default:!1},noClose:{type:Boolean,default:!1},side:{type:String,validator:r=>["top","right","bottom","left"].includes(r),default:"right"},rerender:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:"auto"},width:{type:String,default:"auto"},height:{type:String,default:"auto"},lockScroll:{type:Boolean,default:!1},lockScrollHtml:{type:Boolean,default:!0},modelValue:{type:Boolean,default:!1,required:!0},overlayColor:{type:String,default:"black"},overlayOpacity:{type:Number,default:.5},overlayDuration:{type:Number,default:500},panelColor:{type:String,default:"white"},panelDuration:{type:Number,default:300},transitionName:{type:String,default:void 0},headerClass:{type:String,default:""},bodyClass:{type:String,default:""},footerClass:{type:String,default:""}},emits:["update:modelValue"],setup(r,{emit:n,attrs:t}){let e;const i=s.ref(null),o=s.ref(null),a=s.ref(null),l=s.ref(null),u=s.ref(null),c=s.ref(0),f=s.ref(0),d=s.ref(0),v=s.ref(0),h=s.ref(0),p=s.ref(),g=s.ref(!1),m=async()=>{window?.innerHeight>0&&(h.value=window.innerHeight),c.value=a.value?a.value.clientHeight:0,d.value=l.value?l.value.clientHeight:0,f.value=u.value?u.value.scrollHeight:0,v.value=i.value?i.value.clientHeight:0},y=()=>n("update:modelValue",!1),b=(x,S)=>{if(S){setTimeout(()=>{pd(x,{reserveScrollBarGap:!0}),r.lockScrollHtml&&(document.documentElement.style.overflow="hidden")},0);return}gd(x),r.lockScrollHtml&&document.documentElement.style.removeProperty("overflow")},O=()=>Math.max(...Array.from(document.querySelectorAll("body *"),x=>parseFloat(window.getComputedStyle(x).zIndex)).filter(x=>!Number.isNaN(x)),0);s.onMounted(()=>{p.value=r.zIndex==="auto"?O():r.zIndex}),s.onBeforeMount(()=>{document.getElementById(r.idName)||(e=document.createElement("div"),e.setAttribute("id",r.idName),document.body.appendChild(e))}),s.onBeforeUnmount(()=>{const{modelValue:x,lockScroll:S}=r;S&&i.value&&x&&b(i.value,!1),e&&document.body.removeChild(e),window.removeEventListener("resize",m)}),s.watch(()=>[l.value,a.value,r.height,r.width,r.side,r.modelValue],()=>{s.nextTick(()=>m())}),s.watch(()=>[r.modelValue,i.value],(x,S)=>{const R=S?S[0]:!1,[A,_]=x,E=A,N=R&&!A;if(_){if(E&&(g.value=!!document.body.style.overflow),A){r.lockScroll&&b(_,!0),m(),window.addEventListener("resize",m);return}!r.lockScroll||!N||g.value||(setTimeout(()=>{_&&b(_,!1)},r.panelDuration),window.removeEventListener("resize",m))}},{immediate:!0});const T=s.computed(()=>{if(!v.value)return;const x=f.value+d.value+c.value;let S=v.value-d.value-c.value;return["top","bottom"].includes(r.side)&&r.height==="auto"&&(S=h.value>=x?f.value:h.value-d.value-c.value),S}),P=s.computed(()=>({zIndex:p.value,animationDuration:`${r.overlayDuration}ms`,"--overlay-opacity":r.overlayOpacity,opacity:r.modelValue?r.overlayOpacity:0,backgroundColor:r.overlayColor,pointerEvents:r.modelValue?"all":"none"})),k=s.computed(()=>({width:["left","right"].includes(r.side)?r.width:void 0,maxWidth:"100%",...["top","bottom"].includes(r.side)?{height:r.height,maxHeight:"100%"}:{},zIndex:p.value,backgroundColor:r.panelColor,animationDuration:`${r.panelDuration}ms`,...Object.assign({},t.style)}));return{body:u,panel:i,overlay:o,overlayStyles:P,header:l,footer:a,closePanel:y,panelStyles:k,bodyHeight:T}}});function _d(r,n,t,e,i,o){const a=s.resolveComponent("SidePanelCloseButton");return s.openBlock(),s.createBlock(s.Teleport,{to:`#${r.idName}`},[s.createBaseVNode("div",{class:s.normalizeClass(["vsp-wrapper",[r.modelValue&&"vsp-wrapper--active"]])},[s.createVNode(s.Transition,{name:"overlay",persisted:""},{default:s.withCtx(()=>[s.withDirectives(s.createBaseVNode("div",{ref:"overlay",class:"vsp-overlay",style:s.normalizeStyle(r.overlayStyles),onClick:n[0]||(n[0]=()=>r.noClose?void 0:r.closePanel())},null,4),[[s.vShow,r.modelValue]])]),_:1}),s.createVNode(s.Transition,{name:r.transitionName||`slide-${r.side}`},{default:s.withCtx(()=>[!r.rerender||r.modelValue?s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:0,ref:"panel",class:s.normalizeClass(["vsp",[`vsp--${r.side}-side`,r.$attrs.class]]),style:s.normalizeStyle(r.panelStyles)},[r.$slots.header?(s.openBlock(),s.createElementBlock("div",{key:0,ref:"header",class:s.normalizeClass([r.headerClass,"vsp__header"])},[s.renderSlot(r.$slots,"header",{close:r.closePanel})],2)):s.createCommentVNode("v-if",!0),s.createBaseVNode("div",{ref:"body",class:s.normalizeClass([r.bodyClass,"vsp__body"]),style:s.normalizeStyle({height:`${r.bodyHeight}px`})},[s.renderSlot(r.$slots,"default",{close:r.closePanel}),r.hideCloseBtn?s.createCommentVNode("v-if",!0):(s.openBlock(),s.createBlock(a,{key:0,onClose:r.closePanel},null,8,["onClose"]))],6),r.$slots.footer?(s.openBlock(),s.createElementBlock("div",{key:1,ref:"footer",class:s.normalizeClass([r.footerClass,"vsp__footer"])},[s.renderSlot(r.$slots,"footer")],2)):s.createCommentVNode("v-if",!0)],6)),[[s.vShow,r.rerender?!0:r.modelValue]]):s.createCommentVNode("v-if",!0)]),_:3},8,["name"])],2)],8,["to"])}si.render=_d;si.__file="src/components/SidePanel.vue";const Ed=["innerHTML"],Pd=s.defineComponent({__name:"Base",props:{title:{},description:{},side:{default:"right"},lockScroll:{type:Boolean,default:!0},hideCloseButton:{type:Boolean,default:!1}},setup(r){const n=s.ref(!1);return(t,e)=>(s.openBlock(),s.createBlock(s.unref(si),{modelValue:n.value,"onUpdate:modelValue":e[1]||(e[1]=i=>n.value=i),"lock-scroll":t.lockScroll,"hide-close-btn":t.hideCloseButton,width:"500px"},{header:s.withCtx(()=>[s.createBaseVNode("h2",null,[s.createBaseVNode("span",null,s.toDisplayString(t.title),1)]),s.createBaseVNode("span",{onClick:e[0]||(e[0]=i=>n.value=!1)}," X ")]),default:s.withCtx(()=>[s.createBaseVNode("div",null,[s.createBaseVNode("div",{class:"konnectio-side-panel-description",innerHTML:t.description},null,8,Ed),s.renderSlot(t.$slots,"default",{},void 0,!0)])]),_:3},8,["modelValue","lock-scroll","hide-close-btn"]))}});const wd=s._export_sfc(Pd,[["__scopeId","data-v-14bfb74a"]]),Od={key:0,class:"fresh-booking-modal-facilities"},Td={class:"fresh-booking-modal-facilities-masonry","transition-duration":"0s","destroy-delay":0,"percent-position":!0,"column-width":".grid-sizer","item-selector":".fresh-booking-modal-facility"},Sd={class:"grid-sizer"},xd=s.defineComponent({__name:"Hotel",props:{title:{},description:{},facilities:{}},setup(r){return(n,t)=>{const e=s.resolveDirective("masonry-tile"),i=s.resolveDirective("masonry");return s.openBlock(),s.createBlock(wd,{title:n.title,description:n.description},{default:s.withCtx(()=>[n.facilities&&n.facilities.length!==0?(s.openBlock(),s.createElementBlock("div",Od,[s.withDirectives((s.openBlock(),s.createElementBlock("ul",Td,[s.withDirectives(s.createBaseVNode("div",Sd,null,512),[[e]]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.facilities,({name:o,subFacilities:a},l)=>s.withDirectives((s.openBlock(),s.createElementBlock("li",{key:l,class:"fresh-booking-modal-facility"},[s.createBaseVNode("h6",null,[s.createBaseVNode("span",null,s.toDisplayString(o),1)]),s.createBaseVNode("ul",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a,({name:u},c)=>(s.openBlock(),s.createElementBlock("li",{key:c},s.toDisplayString(u),1))),128))])])),[[e]])),128))])),[[i]])])):s.createCommentVNode("",!0)]),_:1},8,["title","description"])}}});const Cd=s._export_sfc(xd,[["__scopeId","data-v-c66a3c20"]]),kd=r=>(s.pushScopeId("data-v-48f272c2"),r=r(),s.popScopeId(),r),Id={key:0,class:"booking-availability-listing-featured"},Nd=["src"],Rd={class:"booking-availability-listing-content"},Ad={class:"booking-availability-listing-details"},Dd={class:"fresh-booking-listing-sub-title"},Md={key:0},Bd={key:1},Ld={class:"booking-availability-listing-description"},zd={key:0},Vd=["innerHTML"],Fd={key:0},jd=["innerHTML"],$d={key:0,class:"booking-availability-listing-details-facilities"},Hd={class:"booking-availability-listing-action"},Gd=kd(()=>s.createBaseVNode("span",null,"TEST",-1)),Ud=s.defineComponent({__name:"Base",props:{name:{},currency:{},description:{},listingId:{},includesBreakfast:{type:Boolean,default:!1},gallery:{},styling:{},layout:{default:s.BookingLayout.Selective},pricesFrom:{},trackingEnabled:{type:Boolean,default:!1},facilities:{},callback:{}},setup(r){const n=r,{t}=s.useI18n(),{disablePricesFrom:e}=s.useUtilityStore(),i=s.ref(!1),o=s.ref(!e&&!!n.pricesFrom),a=s.ref(!1),l=s.ref(null),u=s.ref(null),c=s.ref();function f(d){let v="";return d.forEach(({name:h})=>{v+=`<li>${h}</li>`}),`<ul>${v}</ul>`}return s.onMounted(()=>{c.value=[new sd({type:"index",synchronizedFlickingOptions:[{flicking:l.value,isSlidable:!0},{flicking:u.value,isClickable:!0,activeClass:"active"}]})]}),(d,v)=>{const h=s.resolveDirective("tooltip");return s.openBlock(),s.createElementBlock("li",{class:s.normalizeClass(["booking-availability-listing",{"no-gallery":d.gallery===void 0||d.gallery.length===0}])},[d.gallery?(s.openBlock(),s.createElementBlock("div",Id,[d.gallery.length===1?(s.openBlock(),s.createBlock(s.unref(qi),{key:0,src:d.gallery[0].medium,zoomSrc:d.gallery[0].large,zoomScale:1,zoomType:"hover",width:280,height:153,zoomPreload:!0,fullscreenOnMobile:!1},null,8,["src","zoomSrc"])):d.gallery.length>1?(s.openBlock(),s.createBlock(s.unref(yo),{ref_key:"slideshow",ref:l,key:d.gallery.length,options:{align:"prev",circular:!0,bounce:30},plugins:c.value},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.gallery,({medium:p,large:g},m)=>(s.openBlock(),s.createElementBlock("div",{key:m,class:"booking-availability-listing-featured-img",style:{maxHeight:"153px",maxWidth:"280px"}},[s.createVNode(s.unref(qi),{src:p,zoomSrc:g,zoomScale:1,zoomType:"hover",width:280,height:153,zoomPreload:!0,fullscreenOnMobile:!1},null,8,["src","zoomSrc"])]))),128))]),_:1},8,["plugins"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),d.gallery&&typeof d.gallery!="string"&&d.gallery.length>1?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["booking-availability-listing-gallery",{"small-gallery":d.gallery.length>6}])},[s.createVNode(s.unref(yo),{ref_key:"thumbnails",ref:u,options:{bound:!0,bounce:30}},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.gallery,(p,g)=>(s.openBlock(),s.createElementBlock("div",{key:g},[s.createBaseVNode("img",{src:p.thumb,width:"88",height:"48"},null,8,Nd)]))),128))]),_:1},512)],2)):s.createCommentVNode("",!0),s.createBaseVNode("div",Rd,[s.createBaseVNode("div",Ad,[s.createBaseVNode("div",{class:s.normalizeClass(["fresh-booking-listing-title",{"has-from-price":o.value}])},[s.createBaseVNode("h3",null,[s.createBaseVNode("span",null,s.toDisplayString(d.name),1),d.layout!==s.unref(s.BookingLayout).Event&&d.description!==void 0?(s.openBlock(),s.createElementBlock("button",{key:0,class:"booking-availability-listing-read-more",type:"button",onClick:v[0]||(v[0]=s.withModifiers(p=>i.value=!i.value,["prevent"]))},[s.createVNode(s.Icon,{icon:"info-circle","icon-color":d.styling.headerColor},null,8,["icon-color"])])):s.createCommentVNode("",!0)]),s.createBaseVNode("ul",Dd,[o.value?(s.openBlock(),s.createElementBlock("li",Md,[s.createBaseVNode("span",null,s.toDisplayString(`${s.unref(t)("general.pricesFrom")}: ${s.unref(s.showPrice)(d.pricesFrom,d.currency)}`),1)])):s.createCommentVNode("",!0),d.includesBreakfast?(s.openBlock(),s.createElementBlock("li",Bd,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(t)("general.breakfastIncluded")),1),s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])],2),s.createBaseVNode("div",Ld,[d.layout!==s.unref(s.BookingLayout).Event&&d.description?(s.openBlock(),s.createElementBlock("div",zd,[s.createBaseVNode("p",{innerHTML:s.unref(s.convertDescription)(d.description)},null,8,Vd),a.value?(s.openBlock(),s.createElementBlock("span",Fd,[s.createBaseVNode("a",{href:"#",onClick:v[1]||(v[1]=s.withModifiers(p=>d.callback(),["prevent"]))},s.toDisplayString(s.unref(t)("general.readMore")),1)])):s.createCommentVNode("",!0)])):d.description?(s.openBlock(),s.createElementBlock("p",{key:1,innerHTML:s.unref(s.convertDescription)(d.description)},null,8,jd)):s.createCommentVNode("",!0)]),d.layout!==s.unref(s.BookingLayout).Event?(s.openBlock(),s.createElementBlock("ul",$d,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.facilities,({icon:p,name:g,subFacilities:m})=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[p?s.withDirectives((s.openBlock(),s.createElementBlock("li",{key:g},[s.createVNode(s.Icon,{icon:p,"icon-color":d.styling.headerColor},null,8,["icon","icon-color"])])),[[h,{content:f(m),classes:["tooltip","freshcase-octopus-tooltip"],container:"#fresh-booking-hotel-module",html:!0}]]):s.createCommentVNode("",!0)],64))),256))])):s.createCommentVNode("",!0),s.renderSlot(d.$slots,"description")]),s.createBaseVNode("div",Hd,[s.renderSlot(d.$slots,"action")])]),s.createVNode(Cd,{modelValue:i.value,"onUpdate:modelValue":v[2]||(v[2]=p=>i.value=p),title:d.name,description:d.description,facilities:d.facilities},{default:s.withCtx(()=>[Gd]),_:1},8,["modelValue","title","description","facilities"])],2)}}});const Wd=s._export_sfc(Ud,[["__scopeId","data-v-48f272c2"]]),Xd={id:"fresh-booking-multi-step-form-content"},Yd=s.defineComponent({__name:"MultiStepForm",props:{slideshow:{},layout:{default:s.BookingHeaderLayout.Default},title:{},subtitle:{}},setup(r){const n=s.ref(0),t=s.ref(),{t:e}=s.useI18n(),i=[{id:"availability",label:e("booking.availability.title"),icon:"search"},{id:"reservation",label:e("booking.reservation.title"),icon:"concierge-bell"},{id:"payment",hidden:!0},{id:"confirmation",label:e("booking.confirmation.title"),icon:"calendar-check"}];s.computed(()=>i.filter(c=>!c.hidden));const o=s.computed(()=>i[n.value].id),a=()=>{t.value!==void 0&&t.value.scrollIntoView({behavior:"smooth"})},l=(c=1)=>{a(),n.value=n.value+c},u=()=>{a(),n.value--};return(c,f)=>(s.openBlock(),s.createElementBlock("div",{id:"fresh-booking-multi-step-form",ref_key:"multiStepForm",ref:t,class:s.normalizeClass({minimal:c.layout===s.unref(s.BookingHeaderLayout).Minimal})},[s.createBaseVNode("div",null,[s.createCommentVNode("",!0),s.createBaseVNode("ul",Xd,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(i,d=>s.createBaseVNode("li",{key:d.id,class:"fresh-booking-multi-step-form-content-tab"},[s.withDirectives(s.createBaseVNode("div",null,[s.renderSlot(c.$slots,d.id,{next:l,prev:u},void 0,!0)],512),[[s.vShow,o.value===d.id]])])),64))])])],2))}});const Kd=s._export_sfc(Yd,[["__scopeId","data-v-23a528eb"]]);const Zd={class:"fresh-booking-modal-title modal__title"},Qd={class:"modal__content"},Jd=["innerHTML"],Ua=s.defineComponent({__name:"Base",props:{title:{},description:{},styling:{}},emits:["confirm"],setup(r,{emit:n}){return(t,e)=>(s.openBlock(),s.createBlock(s.unref(Ao),{class:"modal-container","content-class":"fresh-booking-modal",style:s.normalizeStyle({"z-index":1e5,"--headerColor":t.styling.headerColor,"--fontColor":t.styling.fontColor,"--fontSize":t.styling.fontSize,"--fontFamily":t.styling.fontFamily,"--panelPadding":t.styling.panelPadding})},{default:s.withCtx(()=>[s.createBaseVNode("h3",Zd,[s.createBaseVNode("span",null,s.toDisplayString(t.title),1)]),s.createBaseVNode("div",Qd,[t.description?(s.openBlock(),s.createElementBlock("p",{key:0,class:"fresh-booking-modal-description",innerHTML:t.description},null,8,Jd)):s.createCommentVNode("",!0),s.renderSlot(t.$slots,"default")]),s.createBaseVNode("button",{class:"fresh-booking-modal-close",onClick:e[0]||(e[0]=i=>n("confirm"))},[s.createVNode(s.Icon,{icon:"times",type:"fas"})])]),_:3},8,["style"]))}});const qd=s.defineComponent({__name:"Terms",props:{description:{},styling:{}},setup(r){const{t:n}=s.useI18n();return(t,e)=>(s.openBlock(),s.createBlock(Ua,{title:s.unref(n)("general.termsAndConditions"),description:t.description,styling:t.styling},null,8,["title","description","styling"]))}}),Wa=s.defineStore("hotel",()=>{const r=dr.usePaymentStore(),{voucher:n}=s.storeToRefs(fr.useApplyGiftCardStore()),{display:t}=s.useAlertStore(),{adults:e,children:i,arrivalDate:o,departureDate:a,fromDate:l,toDate:u,nights:c}=s.storeToRefs(dr.useAvailabilityStore()),{metaData:f,bearerToken:d,arrivalDefault:v,departureDefault:h,disableArrivalUserSelection:p,disableDepartureUserSelection:g}=s.storeToRefs(s.useUtilityStore()),m=s.reactive({});function y(j,X){console.log(m[j][X]),m[j][X].units=0}const b=s.computed(()=>{const j=[];for(const X in m){const oe=parseInt(X),me=T.value.roomGroups.find(Te=>Te.id===oe),L=me?.addons;for(const Te in m[X]){const Ze=parseInt(Te),li=me?.rates.find(en=>en.id===Ze);if(li&&m[X][Ze]){const en=m[X][Ze].units,Xa=m[X][Ze].config,Ya=m[X][Ze].addons,{name:Ka,occupantRates:Za}=li,ui=Za.find(Me=>Me.index===Xa);if(!ui)continue;const{adultsCount:Qa,childrenCount:Ja,totalPrice:qa}=ui,ci=[];for(const Me in Ya)ci.push({addonID:parseInt(Me),quantity:1});if(en>0)for(let Me=1;Me<en+1;Me++)j.push({index:Me,name:Ka,roomGroupID:oe,ratePlanID:Ze,addons:L,totalPrice:qa,adultsCount:Qa,childrenCount:Ja,roomAddons:ci})}}}return j}),O=s.computed(()=>b.value.reduce((oe,{totalPrice:me})=>oe+me,0)),T=s.ref({}),P=s.ref(!0),k=s.ref(0),x=s.ref({}),S=s.ref({}),R=s.ref(NaN),A=s.ref(NaN),_=s.ref(""),E=s.ref(""),N=s.ref(""),D=s.useStorage("freshBookingName","",void 0,{serializer:s.StorageSerializers.string}),M=s.useStorage("freshBookingNameTitle",2,void 0,{serializer:s.StorageSerializers.number}),C=s.useStorage("freshBookingEmail","",void 0,{serializer:s.StorageSerializers.string}),w=s.useStorage("freshBookingPhone","",void 0,{serializer:s.StorageSerializers.string}),I=s.useStorage("freshBookingFirmName","",void 0,{serializer:s.StorageSerializers.string}),z=s.useStorage("freshBookingPostal","",void 0,{serializer:s.StorageSerializers.string}),B=s.useStorage("freshBookingCity","",void 0,{serializer:s.StorageSerializers.string}),V=s.useStorage("freshBookingCountry",57,void 0,{serializer:s.StorageSerializers.number}),Y=s.useStorage("freshBookingAddress","",void 0,{serializer:s.StorageSerializers.string}),ee=s.ref(""),de=s.ref(""),he=s.ref(!1),fe=s.ref({}),Ke=s.ref(!1),G=s.computed(()=>f.value.termsOfService),Q=s.computed(()=>f.value.country?f.value.country.name:""),re=s.computed(()=>f.value.countries?f.value.countries:[]),ut=s.computed(()=>f.value.name?f.value.name:""),$t=s.computed(()=>f.value.hotelImages?f.value.hotelImages:[]),$n=s.computed(()=>f.value&&Object.keys(f.value).length!==0),Ht=s.computed(()=>Object.keys(T.value).length!==0),Hn=s.computed(()=>!(!D.value[1]||!C.value||!(w.value.length>=5)||!z.value||!B.value||!Y.value)),Gt=s.computed(()=>k.value===3&&P.value),De=s.computed(()=>{if(T.value.templates)return T.value.templates.find(j=>j.id===R.value)});function Ut(j){if(De.value)return De.value.avilableRoomGroups.find(X=>X.roomGroupID===j)}const Gn=s.computed(()=>{if(De.value)return De.value.avilableRoomGroups.find(j=>j.roomGroupID===A.value)});function Wt(j){return T.value.availableRoomGroups.find(X=>X.roomGroupId===j)}const Xt=s.computed(()=>{for(const j in x.value)if(x.value[j]!==0){const X=j.split("."),oe=parseInt(X[1]);if(isNaN(oe))return!1}return!0}),ct=s.computed(()=>{for(const j in x.value)if(x.value[j]!==0)return!0;return!1}),Un=s.computed(()=>ct.value&&Xt.value);function Yt(j){let X="";const oe=T.value.availableRoomGroups.find(me=>me.roomGroupId===j);return oe&&oe.name&&(X=oe.name),X}function Kt(j,X){return`[REMARKS]: ${ee.value} \r
64
+ [ALLERGIES]: ${de.value} \r
65
+ [REQUESTED ARRIVAL]: ${j} \r
66
+ [REQUESTED DEPARTURE]: ${X}`}function ft(j,X,oe,me){const Te=(X?oe:me?E.value:N.value).split(":");return s.convertTimestampToISOString(new Date(j).setUTCHours(parseInt(Te[0]),parseInt(Te[1]),0,0))}function Wn(j){return s.daysBetweenDates(o.value,a.value)*j}function Zt(j,X){return 0}function Xn(j,X=!1){return{}}const Qt=s.computed(()=>{});async function Yn(){try{const j=(await s.axios.get("https://stage.hotel-service.freshbooking.dk/api/hotel/metadata",{params:{language:s.getUserLanguage()},headers:{Authorization:d.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.9"}})).data;f.value=j,P.value=!1}catch{t({message:s.i18n.t("alert.error.couldntFetchMetadata"),type:"warning"})}}async function dt(){k.value=1,P.value=!0;try{const j=await s.axios.get("https://stage.hotel-service.freshbooking.dk/api/hotel/availability",{params:{fromDate:o.value,toDate:a.value,adultsCount:e.value,childrenCount:i.value,language:s.getUserLanguage()},headers:{Authorization:d.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.9"}});j.status!==200?t({message:`${s.i18n.t("booking.other.errorMessage")} (HTTP: ${j.status})`,type:"warning"}):(T.value=j.data,P.value=!1)}catch{t({message:s.i18n.t("alert.error.couldntFetchListings"),type:"warning"})}}async function Kn(j){k.value=3,P.value=!0,await s.axios.post("https://stage.hotel-service.freshbooking.dk/api/hotel/create-reservation",{fromDate:l.value,toDate:u.value,guest:{travellingFor:_.value,title:s.convertIdToNameTitle(M.value),guestID:0,name:D.value,email:C.value,firmName:I.value,phone:w.value,country:V.value,address1:Y.value,postal:z.value,city:B.value,newsmails:he.value},giftCardCode:n.value,selectedRooms:b.value,remark:Kt(ft(o.value,p.value,v.value,!0),ft(a.value,g.value,h.value,!1)),checkoutUrl:"https://freshbooking.dk",privacyUrl:"https://freshbooking.dk"},{headers:{Authorization:d.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.9"}}).then(X=>{Ke.value=!1,P.value=!1,r.pay({callback:j,response:X.data})}).catch(X=>{if(P.value=!1,k.value=2,X.response){const{status:oe}=X.response;t(oe===433?{message:s.i18n.t("alert.error.noRoomAvailable"),type:"error"}:{message:s.i18n.t("booking.other.errorMessage"),type:"warning"})}else t({message:s.i18n.t("booking.other.errorMessage"),type:"warning"})})}function Jt(){R.value=NaN,A.value=NaN}function Zn(){for(const j in x.value)x.value[j]=0}function qt(){for(const j in fe.value)fe.value[j]=!1}function Qn(){dt()}return{removeRoom:y,fetchAddons:b,finalSelection:m,termsOfService:G,metaData:f,availabilityData:T,isLoading:P,moduleState:k,selection:x,roomSelection:S,templateID:R,roomGroupID:A,travelingFor:_,arrivalTime:E,departureTime:N,name:D,nameTitle:M,email:C,phone:w,firmName:I,postal:z,city:B,country:V,address:Y,remark:ee,allergies:de,newsMails:he,addons:fe,isPaymentInitialized:Ke,nights:c,calculateRoomPrice:Zt,hotelCountry:Q,countries:re,title:ut,slideshow:$t,isMetaDataAvailable:$n,isAvailabilityDataAvailable:Ht,totalPrice:O,selectedPackage:De,getFacilities:Xn,oneTimePaymentAddons:Qt,isPaymentLoading:Gt,getSingleListing:Wt,getSpecifiedPackageRoom:Ut,getRoomName:Yt,getBasePrice:Wn,getSelectedPackageRoom:Gn,hasSelectedRooms:ct,isReservationFormFilled:Hn,canStartReservation:Un,correctRoomConfiguration:Xt,fetchMetaData:Yn,fetchAvailabilityData:dt,createReservation:Kn,resetTemplate:Jt,resetBookingSelection:Zn,resetAddonSelection:qt,initialize:Qn}}),eh={class:"fresh-booking-accept-terms"},th=s.defineComponent({__name:"TermsOfService",props:{styling:{}},setup(r){const n=r,{termsOfService:t}=s.storeToRefs(Wa()),{t:e}=s.useI18n(),{open:i,close:o}=Do({component:qd,attrs:{description:t.value,styling:n.styling,onConfirm(){o()}}});return(a,l)=>{const u=s.resolveComponent("i18n-t");return s.openBlock(),s.createElementBlock("div",eh,[s.createVNode(u,{keypath:"general.termsAndConditionsNotice",tag:"span",scope:"global"},{button:s.withCtx(()=>[s.createBaseVNode("i",null,'"'+s.toDisplayString(s.unref(e)("general.confirmReservation"))+'"',1)]),terms:s.withCtx(()=>[s.createBaseVNode("a",{class:"fresh-booking-accept-terms-link",target:"_blank",onClick:l[0]||(l[0]=s.withModifiers((...c)=>s.unref(i)&&s.unref(i)(...c),["prevent"]))},[s.createBaseVNode("span",null,s.toDisplayString(s.unref(e)("general.termsAndConditions")),1)])]),_:1})])}}});const nh=s._export_sfc(th,[["__scopeId","data-v-36b4f686"]]),rh={id:"fresh-booking-reservation-layout","sticky-container":""},ih={id:"fresh-booking-reservation-layout-content"},oh={id:"fresh-booking-reservation-layout-form"},ah={id:"fresh-booking-reservation-layout-aside"},sh={class:"fresh-booking-panel"},lh={id:"fresh-booking-reservation-layout-aside-resume"},uh={key:0},ch={key:1},fh={key:2},dh={key:3},hh={key:0,class:"fresh-booking-panel"},vh={id:"fresh-booking-reservation-layout-aside-addons"},ph={key:1,class:"fresh-booking-panel"},gh={id:"fresh-booking-reservation-layout-aside-gift-card"},mh=["innerHTML"],yh={key:0,id:"fresh-booking-reservation-layout-recaptcha"},bh={id:"fresh-booking-reservation-layout-footer","sticky-side":"bottom"},_h={id:"fresh-booking-reservation-layout-footer-navigation"},Eh={key:0,id:"fresh-booking-reservation-layout-footer-terms"},Ph=s.defineComponent({__name:"ReservationForm",props:{isFilled:{type:Boolean},isLoading:{type:Boolean,default:!1},currency:{},totalPrice:{},basePrice:{default:0},weekendFee:{default:0},roomUpgrade:{default:0},buttonIconColor:{},notice:{},styling:{}},emits:["update:remark","next","prev"],setup(r,{emit:n}){const t=r,{t:e}=s.useI18n(),{disableGiftCardVoucher:i,isRecaptchaEnabled:o}=s.storeToRefs(s.useUtilityStore()),{amount:a,voucher:l}=s.storeToRefs(fr.useApplyGiftCardStore()),{apply:u,reset:c}=fr.useApplyGiftCardStore(),f=s.useSlots(),d=()=>n("next"),v=()=>n("prev"),h=s.computed(()=>t.basePrice-t.weekendFee-t.roomUpgrade);return(p,g)=>{const m=s.resolveDirective("sticky");return s.openBlock(),s.createElementBlock("div",rh,[s.createBaseVNode("div",ih,[s.createBaseVNode("div",oh,[s.createCommentVNode("",!0),s.createBaseVNode("form",null,[s.renderSlot(p.$slots,"form")])]),s.createBaseVNode("aside",ah,[s.createBaseVNode("div",sh,[s.createBaseVNode("h5",null,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(e)("booking.reservation.resumeTitle")),1)]),s.createBaseVNode("ul",lh,[s.renderSlot(p.$slots,"resume"),h.value>0?(s.openBlock(),s.createElementBlock("li",uh,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(e)("booking.availability.basePrice")),1),s.createBaseVNode("b",null,s.toDisplayString(s.unref(s.showPrice)(h.value,p.currency)),1)])):s.createCommentVNode("",!0),p.weekendFee>0?(s.openBlock(),s.createElementBlock("li",ch,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(e)("general.weekendFee")),1),s.createBaseVNode("b",null,s.toDisplayString(s.unref(s.showPrice)(p.weekendFee,p.currency)),1)])):s.createCommentVNode("",!0),p.roomUpgrade>0?(s.openBlock(),s.createElementBlock("li",fh,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(e)("general.roomUpgrade")),1),s.createBaseVNode("b",null,s.toDisplayString(s.unref(s.showPrice)(p.roomUpgrade,p.currency)),1)])):s.createCommentVNode("",!0),s.renderSlot(p.$slots,"expenses"),s.unref(a)!==0?(s.openBlock(),s.createElementBlock("li",dh,[s.createBaseVNode("span",null,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(e)("booking.reservation.giftCardDiscount")),1),s.createBaseVNode("a",{class:"resume-item-remove",onClick:g[0]||(g[0]=s.withModifiers(y=>s.unref(c)(),["prevent"]))},[s.createVNode(s.Icon,{icon:"times",type:"fas","icon-color":"#ff0000"})])]),s.createBaseVNode("b",null,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(s.showPrice)(-s.unref(a),p.currency)),1)])])):s.createCommentVNode("",!0),s.createBaseVNode("li",null,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(e)("booking.reservation.totalPrice")),1),s.createBaseVNode("b",null,[s.createBaseVNode("u",null,s.toDisplayString(s.unref(s.showPrice)(p.totalPrice,p.currency)),1)])])])]),s.unref(f).addons?(s.openBlock(),s.createElementBlock("div",hh,[s.createBaseVNode("h5",null,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(e)("booking.reservation.addons")),1)]),s.createBaseVNode("ul",vh,[s.renderSlot(p.$slots,"addons")])])):s.createCommentVNode("",!0),s.unref(a)===0&&!s.unref(i)?(s.openBlock(),s.createElementBlock("div",ph,[s.createBaseVNode("h5",null,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(e)("booking.reservation.giftCardCode")),1)]),s.createBaseVNode("div",gh,[s.createVNode(es.ActionField,{modelValue:s.unref(l),"onUpdate:modelValue":g[1]||(g[1]=y=>s.isRef(l)?l.value=y:null),icon:"gift-card","button-icon":"paper-plane-top","button-icon-color":p.buttonIconColor,placeholder:"XXXXXXXX",action:"success",secondary:!0,onAction:g[2]||(g[2]=y=>s.unref(u)())},null,8,["modelValue","button-icon-color"])])])):s.createCommentVNode("",!0),p.notice?(s.openBlock(),s.createElementBlock("p",{key:2,innerHTML:p.notice,class:"fresh-booking-wysiwyg"},null,8,mh)):s.createCommentVNode("",!0)]),s.unref(o)?(s.openBlock(),s.createElementBlock("div",yh,[s.createVNode(ts._sfc_main)])):s.createCommentVNode("",!0)]),s.withDirectives((s.openBlock(),s.createElementBlock("div",bh,[s.createBaseVNode("div",_h,[s.createBaseVNode("ul",null,[s.createVNode(s.Clickable,{label:s.unref(e)("general.abortReservation"),secondary:"",onClickEvent:v},null,8,["label"]),s.createVNode(s.Clickable,{label:s.unref(e)("general.confirmReservation"),disabled:!p.isFilled,"is-loading":p.isLoading,onClickEvent:d},null,8,["label","disabled","is-loading"])])]),p.styling?(s.openBlock(),s.createElementBlock("div",Eh,[s.createVNode(nh,{styling:p.styling},null,8,["styling"])])):s.createCommentVNode("",!0)])),[[m]])])}}});const wh=s._export_sfc(Ph,[["__scopeId","data-v-d46208ad"]]),Oh=r=>(s.pushScopeId("data-v-09238e60"),r=r(),s.popScopeId(),r),Th=Oh(()=>s.createBaseVNode("div",{id:"fresh-booking-payment-checkout"},null,-1)),Sh=[Th],xh=s.defineComponent({__name:"CheckoutWindow",setup(r){const{paymentGatewayId:n}=s.storeToRefs(s.useUtilityStore());return(t,e)=>(s.openBlock(),s.createElementBlock("div",null,[s.createBaseVNode("div",{id:"fresh-booking-payment-checkout-wrapper",class:s.normalizeClass({reePay:s.unref(n)===s.unref(s.PaymentGateway).ReePay})},Sh,2)]))}});const Ch=s._export_sfc(xh,[["__scopeId","data-v-09238e60"]]),kh={id:"fresh-booking-confirmation"},Ih={id:"fresh-booking-confirmation-introduction"},Nh={id:"fresh-booking-confirmation-title"},Rh=["innerHTML"],Ah={class:"fresh-booking-order-panel"},Dh={key:0},Mh={class:"fresh-booking-order-panel"},Bh={class:"fresh-booking-order-lines"},Lh={key:0},zh={key:1},Vh={key:0,class:"fresh-booking-order-panel"},Fh={class:"fresh-booking-table with-lines"},jh={class:"fresh-booking-order-lines"},$h={key:0},Hh={key:1},Gh={key:2,class:"highlighted-line"},Uh=s.defineComponent({__name:"ThankYou",props:{message:{},currency:{}},setup(r){const{t:n}=s.useI18n(),{hasOrderLines:t,orderSummary:e,name:i,email:o,phone:a,adults:l,children:u,offerDate:c,totalPrice:f,totalVAT:d,subTotalPrice:v}=s.storeToRefs(dr.usePaymentStore());return(h,p)=>(s.openBlock(),s.createElementBlock("div",kh,[s.createBaseVNode("div",Ih,[s.createBaseVNode("h2",Nh,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(n)("general.thankYou")),1)]),s.createBaseVNode("div",{id:"fresh-booking-confirmation-message",innerHTML:h.message},null,8,Rh)]),s.createBaseVNode("div",Ah,[s.createBaseVNode("h5",null,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(n)("general.primaryContact")),1)]),s.createBaseVNode("div",null,s.toDisplayString(s.unref(i)),1),s.createBaseVNode("div",null,s.toDisplayString(s.unref(o)),1),s.unref(a)?(s.openBlock(),s.createElementBlock("div",Dh,s.toDisplayString(s.unref(a)),1)):s.createCommentVNode("",!0)]),s.createBaseVNode("div",Mh,[s.createBaseVNode("h5",null,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(n)("booking.reservation.detailsTitle")),1)]),s.createBaseVNode("ul",Bh,[s.unref(c)?(s.openBlock(),s.createElementBlock("li",Lh,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(n)("general.date")),1),s.createBaseVNode("b",null,s.toDisplayString(s.unref(s.showDate)(s.unref(c))),1)])):s.createCommentVNode("",!0),s.createBaseVNode("li",null,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(n)("availability.adults")),1),s.createBaseVNode("b",null,s.toDisplayString(s.unref(l)),1)]),s.unref(u)&&s.unref(u)>0?(s.openBlock(),s.createElementBlock("li",zh,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(n)("availability.children")),1),s.createBaseVNode("b",null,s.toDisplayString(s.unref(u)),1)])):s.createCommentVNode("",!0)])]),s.unref(t)?(s.openBlock(),s.createElementBlock("div",Vh,[s.createBaseVNode("h5",null,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(n)("general.orderDetails")),1)]),s.createBaseVNode("table",Fh,[s.createBaseVNode("thead",null,[s.createBaseVNode("tr",null,[s.createBaseVNode("th",null,s.toDisplayString(s.unref(n)("general.orderItem")),1),s.createBaseVNode("th",null,s.toDisplayString(s.unref(n)("general.quantity")),1),s.createBaseVNode("th",null,s.toDisplayString(s.unref(n)("booking.availability.price")),1),s.createBaseVNode("th",null,s.toDisplayString(s.unref(n)("booking.reservation.totalPrice")),1)])]),s.createBaseVNode("tbody",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(e),({productName:g,quantity:m,unitPrice:y,totalPrice:b})=>(s.openBlock(),s.createElementBlock("tr",{key:g},[s.createBaseVNode("td",null,[s.createBaseVNode("span",null,s.toDisplayString(g),1)]),s.createBaseVNode("td",null,[s.createBaseVNode("span",null,s.toDisplayString(m),1)]),s.createBaseVNode("td",null,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(s.showPrice)(y,h.currency)),1)]),s.createBaseVNode("td",null,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(s.showPrice)(b,h.currency)),1)])]))),128))])])])):s.createCommentVNode("",!0),s.createBaseVNode("ul",jh,[s.unref(v)?(s.openBlock(),s.createElementBlock("li",$h,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(n)("general.subTotal")),1),s.createBaseVNode("b",null,s.toDisplayString(s.unref(s.showPrice)(s.unref(v),h.currency)),1)])):s.createCommentVNode("",!0),s.unref(d)?(s.openBlock(),s.createElementBlock("li",Hh,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(n)("general.vat")),1),s.createBaseVNode("b",null,s.toDisplayString(s.unref(s.showPrice)(s.unref(d),h.currency)),1)])):s.createCommentVNode("",!0),s.unref(f)?(s.openBlock(),s.createElementBlock("li",Gh,[s.createBaseVNode("span",null,s.toDisplayString(s.unref(n)("booking.reservation.totalPrice")),1),s.createBaseVNode("b",null,s.toDisplayString(s.unref(s.showPrice)(s.unref(f),h.currency)),1)])):s.createCommentVNode("",!0)])]))}});const Wh=s._export_sfc(Uh,[["__scopeId","data-v-99fdfb9e"]]);exports.Base=Wd;exports.CheckoutWindow=Ch;exports.Go=Do;exports.MultiStepForm=Kd;exports.ReservationForm=wh;exports.ThankYou=Wh;exports.Wo=Bl;exports._sfc_main=Ua;exports.require$$1=la;exports.useHotelStore=Wa;exports.xt=Fu;exports.zo=kl;