var Hn=Object.defineProperty;var jn=(t,e)=>{for(var r in e)Hn(t,r,{get:e[r],enumerable:!0})};var Ce=null,Xt,Yt,Qt,Jt=65,wt,we,Zt=new Set,er=1111;qn();function qn(){if(!document.createElement("link").relList.supports("prefetch"))return;let e="instantVaryAccept"in document.body.dataset||"Shopify"in window,r=navigator.userAgent.indexOf("Chrome/");if(r>-1&&(Ce=parseInt(navigator.userAgent.substring(r+7))),e&&Ce&&Ce<110)return;let n="instantMousedownShortcut"in document.body.dataset;Xt="instantAllowQueryString"in document.body.dataset,Yt="instantAllowExternalLinks"in document.body.dataset,Qt="instantWhitelist"in document.body.dataset;let i={capture:!0,passive:!0},o=!1,s=!1,a=!1;if("instantIntensity"in document.body.dataset){let l=document.body.dataset.instantIntensity;if(l.startsWith("mousedown"))o=!0,l=="mousedown-only"&&(s=!0);else if(l.startsWith("viewport")){let c=navigator.connection&&navigator.connection.saveData,d=navigator.connection&&navigator.connection.effectiveType&&navigator.connection.effectiveType.includes("2g");!c&&!d&&(l=="viewport"?document.documentElement.clientWidth*document.documentElement.clientHeight<45e4&&(a=!0):l=="viewport-all"&&(a=!0))}else{let c=parseInt(l);isNaN(c)||(Jt=c)}}if(s||document.addEventListener("touchstart",Un,i),o?n||document.addEventListener("mousedown",Xn,i):document.addEventListener("mouseover",Zn,i),n&&document.addEventListener("mousedown",Qn,i),a){let l=window.requestIdleCallback;l||(l=c=>{c()}),l(function(){let d=new IntersectionObserver(f=>{f.forEach(m=>{if(m.isIntersecting){let T=m.target;d.unobserve(T),_e(T.href)}})});document.querySelectorAll("a").forEach(f=>{Re(f)&&d.observe(f)})},{timeout:1500})}}function Un(t){wt=performance.now();let e=t.target.closest("a");Re(e)&&_e(e.href,"high")}function Zn(t){if(performance.now()-wt{_e(e.href,"high"),we=void 0},Jt))}function Xn(t){let e=t.target.closest("a");Re(e)&&_e(e.href,"high")}function Yn(t){t.relatedTarget&&t.target.closest("a")==t.relatedTarget.closest("a")||we&&(clearTimeout(we),we=void 0)}function Qn(t){if(performance.now()-wt1||t.metaKey||t.ctrlKey||!e)return;e.addEventListener("click",function(n){n.detail!=1337&&n.preventDefault()},{capture:!0,passive:!1,once:!0});let r=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1,detail:1337});e.dispatchEvent(r)}function Re(t){if(!(!t||!t.href)&&!(Qt&&!("instant"in t.dataset))&&!(t.origin!=location.origin&&(!(Yt||"instant"in t.dataset)||!Ce))&&["http:","https:"].includes(t.protocol)&&!(t.protocol=="http:"&&location.protocol=="https:")&&!(!Xt&&t.search&&!("instant"in t.dataset))&&!(t.hash&&t.pathname+t.search==location.pathname+location.search)&&!("noInstant"in t.dataset))return!0}function _e(t,e="auto"){if(Zt.has(t))return;let r=document.createElement("link");r.rel="prefetch",r.href=t,r.fetchPriority=e,r.as="document",document.head.appendChild(r),Zt.add(t)}var mr={};jn(mr,{createFocusTrap:()=>Oi});var rr=["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])"],Pe=rr.join(","),nr=typeof Element>"u",fe=nr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ze=!nr&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},Be=function t(e,r){var n;r===void 0&&(r=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),o=i===""||i==="true",s=o||r&&e&&t(e.parentNode);return s},Jn=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},ir=function(e,r,n){if(Be(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Pe));return r&&fe.call(e,Pe)&&i.unshift(e),i=i.filter(n),i},sr=function t(e,r,n){for(var i=[],o=Array.from(e);o.length;){var s=o.shift();if(!Be(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,c=t(l,!0,n);n.flatten?i.push.apply(i,c):i.push({scopeParent:s,candidates:c})}else{var d=fe.call(s,Pe);d&&n.filter(s)&&(r||!e.includes(s))&&i.push(s);var f=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),m=!Be(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(f&&m){var T=t(f===!0?s.children:f.children,!0,n);n.flatten?i.push.apply(i,T):i.push({scopeParent:s,candidates:T})}else o.unshift.apply(o,s.children)}}return i},or=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},re=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Jn(e))&&!or(e)?0:e.tabIndex},ei=function(e,r){var n=re(e);return n<0&&r&&!or(e)?0:n},ti=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},ar=function(e){return e.tagName==="INPUT"},ri=function(e){return ar(e)&&e.type==="hidden"},ni=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},ii=function(e,r){for(var n=0;nsummary:first-of-type"),s=o?e.parentElement:e;if(fe.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var a=e;e;){var l=e.parentElement,c=ze(e);if(l&&!l.shadowRoot&&i(l)===!0)return tr(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=a}if(li(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return tr(e);return!1},ui=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},di=function t(e){var r=[],n=[];return e.forEach(function(i,o){var s=!!i.scopeParent,a=s?i.scopeParent:i,l=ei(a,s),c=s?t(i.candidates):a;l===0?s?r.push.apply(r,c):r.push(a):n.push({documentOrder:o,tabIndex:l,item:i,isScope:s,content:c})}),n.sort(ti).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},lr=function(e,r){r=r||{};var n;return r.getShadowRoot?n=sr([e],r.includeContainer,{filter:Et.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:fi}):n=ir(e,r.includeContainer,Et.bind(null,r)),di(n)},cr=function(e,r){r=r||{};var n;return r.getShadowRoot?n=sr([e],r.includeContainer,{filter:We.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=ir(e,r.includeContainer,We.bind(null,r)),n},de=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return fe.call(e,Pe)===!1?!1:Et(r,e)},pi=rr.concat("iframe").join(","),Ve=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return fe.call(e,pi)===!1?!1:We(r,e)};function St(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0){var n=e[e.length-1];n!==r&&n._setPausedState(!0)}var i=e.indexOf(r);i===-1||e.splice(i,1),e.push(r)},deactivateTrap:function(e,r){var n=e.indexOf(r);n!==-1&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},Ei=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Si=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Se=function(e){return e?.key==="Tab"||e?.keyCode===9},Ti=function(e){return Se(e)&&!e.shiftKey},Ii=function(e){return Se(e)&&e.shiftKey},pr=function(e){return setTimeout(e,0)},Ee=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i1&&arguments[1]!==void 0?arguments[1]:{},h=p.hasFallback,w=h===void 0?!1:h,g=p.params,b=g===void 0?[]:g,y=o[u];if(typeof y=="function"&&(y=y.apply(void 0,bi(b))),y===!0&&(y=void 0),!y){if(y===void 0||y===!1)return y;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var M=y;if(typeof y=="string"){try{M=n.querySelector(y)}catch(L){throw new Error("`".concat(u,'` appears to be an invalid selector; error="').concat(L.message,'"'))}if(!M&&!w)throw new Error("`".concat(u,"` as selector refers to no known node"))}return M},f=function(){var u=d("initialFocus",{hasFallback:!0});if(u===!1)return!1;if(u===void 0||u&&!Ve(u,o.tabbableOptions))if(c(n.activeElement)>=0)u=n.activeElement;else{var p=s.tabbableGroups[0],h=p&&p.firstTabbableNode;u=h||d("fallbackFocus")}else u===null&&(u=d("fallbackFocus"));if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},m=function(){if(s.containerGroups=s.containers.map(function(u){var p=lr(u,o.tabbableOptions),h=cr(u,o.tabbableOptions),w=p.length>0?p[0]:void 0,g=p.length>0?p[p.length-1]:void 0,b=h.find(function(L){return de(L)}),y=h.slice().reverse().find(function(L){return de(L)}),M=!!p.find(function(L){return re(L)>0});return{container:u,tabbableNodes:p,focusableNodes:h,posTabIndexesFound:M,firstTabbableNode:w,lastTabbableNode:g,firstDomTabbableNode:b,lastDomTabbableNode:y,nextTabbableNode:function(j){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,$=p.indexOf(j);return $<0?ee?h.slice(h.indexOf(j)+1).find(function(G){return de(G)}):h.slice(0,h.indexOf(j)).reverse().find(function(G){return de(G)}):p[$+(ee?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!d("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(s.containerGroups.find(function(u){return u.posTabIndexesFound})&&s.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.")},T=function(u){var p=u.activeElement;if(p)return p.shadowRoot&&p.shadowRoot.activeElement!==null?T(p.shadowRoot):p},S=function(u){if(u!==!1&&u!==T(document)){if(!u||!u.focus){S(f());return}u.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=u,Ei(u)&&u.select()}},A=function(u){var p=d("setReturnFocus",{params:[u]});return p||(p===!1?!1:u)},N=function(u){var p=u.target,h=u.event,w=u.isBackward,g=w===void 0?!1:w;p=p||Ke(h),m();var b=null;if(s.tabbableGroups.length>0){var y=c(p,h),M=y>=0?s.containerGroups[y]:void 0;if(y<0)g?b=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:b=s.tabbableGroups[0].firstTabbableNode;else if(g){var L=s.tabbableGroups.findIndex(function(te){var Y=te.firstTabbableNode;return p===Y});if(L<0&&(M.container===p||Ve(p,o.tabbableOptions)&&!de(p,o.tabbableOptions)&&!M.nextTabbableNode(p,!1))&&(L=y),L>=0){var j=L===0?s.tabbableGroups.length-1:L-1,ee=s.tabbableGroups[j];b=re(p)>=0?ee.lastTabbableNode:ee.lastDomTabbableNode}else Se(h)||(b=M.nextTabbableNode(p,!1))}else{var $=s.tabbableGroups.findIndex(function(te){var Y=te.lastTabbableNode;return p===Y});if($<0&&(M.container===p||Ve(p,o.tabbableOptions)&&!de(p,o.tabbableOptions)&&!M.nextTabbableNode(p))&&($=y),$>=0){var G=$===s.tabbableGroups.length-1?0:$+1,ue=s.tabbableGroups[G];b=re(p)>=0?ue.firstTabbableNode:ue.firstDomTabbableNode}else Se(h)||(b=M.nextTabbableNode(p))}}else b=d("fallbackFocus");return b},v=function(u){var p=Ke(u);if(!(c(p,u)>=0)){if(Ee(o.clickOutsideDeactivates,u)){a.deactivate({returnFocus:o.returnFocusOnDeactivate});return}Ee(o.allowOutsideClick,u)||u.preventDefault()}},O=function(u){var p=Ke(u),h=c(p,u)>=0;if(h||p instanceof Document)h&&(s.mostRecentlyFocusedNode=p);else{u.stopImmediatePropagation();var w,g=!0;if(s.mostRecentlyFocusedNode)if(re(s.mostRecentlyFocusedNode)>0){var b=c(s.mostRecentlyFocusedNode),y=s.containerGroups[b].tabbableNodes;if(y.length>0){var M=y.findIndex(function(L){return L===s.mostRecentlyFocusedNode});M>=0&&(o.isKeyForward(s.recentNavEvent)?M+1=0&&(w=y[M-1],g=!1))}}else s.containerGroups.some(function(L){return L.tabbableNodes.some(function(j){return re(j)>0})})||(g=!1);else g=!1;g&&(w=N({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),S(w||s.mostRecentlyFocusedNode||f())}s.recentNavEvent=void 0},_=function(u){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=u;var h=N({event:u,isBackward:p});h&&(Se(u)&&u.preventDefault(),S(h))},C=function(u){(o.isKeyForward(u)||o.isKeyBackward(u))&&_(u,o.isKeyBackward(u))},x=function(u){Si(u)&&Ee(o.escapeDeactivates,u)!==!1&&(u.preventDefault(),a.deactivate())},D=function(u){var p=Ke(u);c(p,u)>=0||Ee(o.clickOutsideDeactivates,u)||Ee(o.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},R=function(){if(s.active)return dr.activateTrap(i,a),s.delayInitialFocusTimer=o.delayInitialFocus?pr(function(){S(f())}):S(f()),n.addEventListener("focusin",O,!0),n.addEventListener("mousedown",v,{capture:!0,passive:!1}),n.addEventListener("touchstart",v,{capture:!0,passive:!1}),n.addEventListener("click",D,{capture:!0,passive:!1}),n.addEventListener("keydown",C,{capture:!0,passive:!1}),n.addEventListener("keydown",x),a},W=function(){if(s.active)return n.removeEventListener("focusin",O,!0),n.removeEventListener("mousedown",v,!0),n.removeEventListener("touchstart",v,!0),n.removeEventListener("click",D,!0),n.removeEventListener("keydown",C,!0),n.removeEventListener("keydown",x),a},k=function(u){var p=u.some(function(h){var w=Array.from(h.removedNodes);return w.some(function(g){return g===s.mostRecentlyFocusedNode})});p&&S(f())},ce=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(k):void 0,P=function(){ce&&(ce.disconnect(),s.active&&!s.paused&&s.containers.map(function(u){ce.observe(u,{subtree:!0,childList:!0})}))};return a={get active(){return s.active},get paused(){return s.paused},activate:function(u){if(s.active)return this;var p=l(u,"onActivate"),h=l(u,"onPostActivate"),w=l(u,"checkCanFocusTrap");w||m(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement,p?.();var g=function(){w&&m(),R(),P(),h?.()};return w?(w(s.containers.concat()).then(g,g),this):(g(),this)},deactivate:function(u){if(!s.active)return this;var p=fr({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},u);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,W(),s.active=!1,s.paused=!1,P(),dr.deactivateTrap(i,a);var h=l(p,"onDeactivate"),w=l(p,"onPostDeactivate"),g=l(p,"checkCanReturnFocus"),b=l(p,"returnFocus","returnFocusOnDeactivate");h?.();var y=function(){pr(function(){b&&S(A(s.nodeFocusedBeforeActivation)),w?.()})};return b&&g?(g(A(s.nodeFocusedBeforeActivation)).then(y,y),this):(y(),this)},pause:function(u){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,u)):this},unpause:function(u){return s.active?(s.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,u)):this},updateContainerElements:function(u){var p=[].concat(u).filter(Boolean);return s.containers=p.map(function(h){return typeof h=="string"?n.querySelector(h):h}),s.active&&m(),P(),this}},Object.defineProperties(a,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(u,p){if(s.paused===u)return this;if(s.paused=u,u){var h=l(p,"onPause"),w=l(p,"onPostPause");h?.(),W(),P(),w?.()}else{var g=l(p,"onUnpause"),b=l(p,"onPostUnpause");g?.(),m(),R(),P(),b?.()}return this}}}),a.updateContainerElements(e),a};var z=t=>t;var me=z,H=z;function ne(t){let e;return()=>(e===void 0&&(e=t()),e)}var $e=ne(()=>window.ScrollTimeline!==void 0);var Ge=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,r){for(let n=0;n{if($e()&&i.attachTimeline)return i.attachTimeline(e);if(typeof r=="function")return r(i)});return()=>{n.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let r=0;rr[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var he=class extends Ge{then(e,r){return Promise.all(this.animations).then(e).catch(r)}};var q=(t,e,r)=>{let n=e-t;return n===0?1:(r-t)/n};var B=t=>t*1e3,U=t=>t/1e3;function He(t){let e=0,r=50,n=t.next(e);for(;!n.done&&e<2e4;)e+=r,n=t.next(e);return e>=2e4?1/0:e}function je(t,e=100,r){let n=r({...t,keyframes:[0,e]}),i=Math.min(He(n),2e4);return{type:"keyframes",ease:o=>n.next(i*o).value/e,duration:U(i)}}function qe(t){return typeof t=="function"}var hr=(t,e,r)=>{let n=e-t;return((r-t)%n+n)%n+t};var gr=t=>Array.isArray(t)&&typeof t[0]!="number";function Ue(t,e){return gr(t)?t[hr(0,t.length,e)]:t}var Z=(t,e,r)=>t+(e-t)*r;function Ze(t,e){let r=t[t.length-1];for(let n=1;n<=e;n++){let i=q(0,e,n);t.push(Z(r,1,i))}}function Xe(t){let e=[0];return Ze(e,t.length-1),e}var vr=t=>!!(t&&t.getVelocity);function ie(t,e,r){var n;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;e&&(i=e.current);let o=(n=r?.[t])!==null&&n!==void 0?n:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function br(t){return typeof t=="object"&&!Array.isArray(t)}function yr(t,e,r,n){return typeof t=="string"&&br(e)?ie(t,r,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function xr(t,e,r){return t*(e+1)}function It(t,e,r,n){var i;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?r:(i=n.get(e))!==null&&i!==void 0?i:t}function wr(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Di(t,e,r){for(let n=0;ne&&i.at{let k=Mi(C),{delay:ce=0,times:P=Xe(k),type:I="keyframes",repeat:u,repeatType:p,repeatDelay:h=0,...w}=x,{ease:g=e.ease||"easeOut",duration:b}=x,y=typeof ce=="function"?ce(R,W):ce,M=k.length,L=qe(I)?I:i?.[I];if(M<=2&&L){let G=100;if(M===2&&Ci(k)){let Y=k[1]-k[0];G=Math.abs(Y)}let ue={...w};b!==void 0&&(ue.duration=B(b));let te=je(ue,G,L);g=te.ease,b=te.duration}b??(b=o);let j=f+y;P.length===1&&P[0]===0&&(P[1]=1);let ee=P.length-k.length;if(ee>0&&Ze(P,ee),k.length===1&&k.unshift(null),u){H(u{for(let A in T){let N=T[A];N.sort(Tr);let v=[],O=[],_=[];for(let x=0;xtypeof t=="number",Ci=t=>t.every(ki);function Dr(t,e){return t?t[e]||t.default||t:void 0}function Fr(t,e){t.timeline=e,t.onfinish=null}var Ye=class{constructor(e){this.animation=e}get duration(){var e,r,n;let i=((r=(e=this.animation)===null||e===void 0?void 0:e.effect)===null||r===void 0?void 0:r.getComputedTiming().duration)||((n=this.options)===null||n===void 0?void 0:n.duration)||300;return U(Number(i))}get time(){var e;return this.animation?U(((e=this.animation)===null||e===void 0?void 0:e.currentTime)||0):0}set time(e){this.animation&&(this.animation.currentTime=B(e))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(e){this.animation&&(this.animation.playbackRate=e)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}get finished(){return this.animation?this.animation.finished:Promise.resolve()}play(){this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}stop(){!this.animation||this.state==="idle"||this.state==="finished"||(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}flatten(){var e,r;!this.animation||!(!((e=this.options)===null||e===void 0)&&e.allowFlatten)||(r=this.animation.effect)===null||r===void 0||r.updateTiming({easing:"linear"})}attachTimeline(e){return this.animation&&Fr(this.animation,e),z}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch{}}};var Nr={linearEasing:void 0};function Mr(t,e){let r=ne(t);return()=>{var n;return(n=Nr[e])!==null&&n!==void 0?n:r()}}var Qe=Mr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Je=t=>Array.isArray(t)&&typeof t[0]=="number";var et=(t,e,r=10)=>{let n="",i=Math.max(Math.round(e/r),2);for(let o=0;o`cubic-bezier(${t}, ${e}, ${r}, ${n})`,Lr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Te([0,.65,.55,1]),circOut:Te([.55,0,1,.45]),backIn:Te([.31,.01,.66,-.59]),backOut:Te([.33,1.53,.69,.99])};function At(t,e){if(t)return typeof t=="function"&&Qe()?et(t,e):Je(t)?Te(t):Array.isArray(t)?t.map(r=>At(r,e)||Lr.easeOut):Lr[t]}var ge={value:null,addProjectionMetrics:null};var Ot={layout:0,mainThread:0,waapi:0};function kr(t,e,r,{delay:n=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){let c={[e]:r};l&&(c.offset=l);let d=At(a,i);Array.isArray(d)&&(c.easing=d),ge.value&&Ot.waapi++;let f=t.animate(c,{delay:n,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"});return ge.value&&f.finished.finally(()=>{Ot.waapi--}),f}var Cr=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`});var ve=Cr("%"),E=Cr("px");var xa={...ve,parse:t=>ve.parse(t)/100,transform:t=>ve.transform(t*100)};var Dt={borderWidth:E,borderTopWidth:E,borderRightWidth:E,borderBottomWidth:E,borderLeftWidth:E,borderRadius:E,radius:E,borderTopLeftRadius:E,borderTopRightRadius:E,borderBottomRightRadius:E,borderBottomLeftRadius:E,width:E,maxWidth:E,height:E,maxHeight:E,top:E,right:E,bottom:E,left:E,padding:E,paddingTop:E,paddingRight:E,paddingBottom:E,paddingLeft:E,margin:E,marginTop:E,marginRight:E,marginBottom:E,marginLeft:E,backgroundPositionX:E,backgroundPositionY:E};var Ri=t=>t!==null;function Rr(t,{repeat:e,repeatType:r="loop"},n){let i=t.filter(Ri),o=e&&r!=="loop"&&e%2===1?0:i.length-1;return!o||n===void 0?i[o]:n}function _r(t,e,r){t.style.setProperty(e,r)}function Pr(t,e,r){t.style[e]=r}var zr=ne(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0});var Br=ne(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var tt=new WeakMap;function _i(t,e,r){for(let n=0;nr.startsWith("--")?e.style.getPropertyValue(r):window.getComputedStyle(e)[r];if(Array.isArray(n)||(n=[n]),_i(r,n,a),qe(i.type)){let d=je(i,100,i.type);i.ease=Qe()?d.ease:Wr,i.duration=B(d.duration),i.type="keyframes"}else i.ease=i.ease||Wr;let l=()=>{this.setValue(e,r,Rr(n,i)),this.cancel(),this.resolveFinishedPromise()},c=()=>{this.setValue=o?_r:Pr,this.options=i,this.updateFinishedPromise(),this.removeAnimation=()=>{let d=tt.get(e);d&&d.delete(r)}};Br()?(super(kr(e,r,n,i)),c(),i.autoplay===!1&&this.animation.pause(),this.animation.onfinish=l,Vr(e).set(r,this)):(super(),c(),l())}then(e,r){return this.currentFinishedPromise.then(e,r)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}play(){this.state==="finished"&&this.updateFinishedPromise(),super.play()}cancel(){this.removeAnimation(),super.cancel()}};function nt(t,e,r,n){let i=ie(t,n),o=i.length;H(!!o,"No valid element provided.");let s=[];for(let a=0;a{r.push(...nt(o,n,i))}),new he(r)}var Pi=t=>{function e(r,n,i){return new he(nt(r,n,i,t))}return e},$r=Pi();function it(t,e){return e?t*(1e3/e):0}var Ft={skipAnimations:!1,useManualTiming:!1};var Ie=["read","resolveKeyframes","update","preRender","render","postRender"];function Gr(t,e){let r=new Set,n=new Set,i=!1,o=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(f){s.has(f)&&(d.schedule(f),t()),l++,f(a)}let d={schedule:(f,m=!1,T=!1)=>{let A=T&&i?r:n;return m&&s.add(f),A.has(f)||A.add(f),f},cancel:f=>{n.delete(f),s.delete(f)},process:f=>{if(a=f,i){o=!0;return}i=!0,[r,n]=[n,r],r.forEach(c),e&&ge.value&&ge.value.frameloop[e].push(l),l=0,r.clear(),i=!1,o&&(o=!1,d.process(f))}};return d}var zi=40;function Hr(t,e){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,s=Ie.reduce((v,O)=>(v[O]=Gr(o,e?O:void 0),v),{}),{read:a,resolveKeyframes:l,update:c,preRender:d,render:f,postRender:m}=s,T=()=>{let v=Ft.useManualTiming?i.timestamp:performance.now();r=!1,Ft.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(v-i.timestamp,zi),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),d.process(i),f.process(i),m.process(i),i.isProcessing=!1,r&&e&&(n=!1,t(T))},S=()=>{r=!0,n=!0,i.isProcessing||t(T)};return{schedule:Ie.reduce((v,O)=>{let _=s[O];return v[O]=(C,x=!1,D=!1)=>(r||S(),_.schedule(C,x,D)),v},{}),cancel:v=>{for(let O=0;Or>e?e:r{let d=c*s,f=d*t,m=d-r,T=st(c,s),S=Math.exp(-f);return Mt-m/T*S},o=c=>{let f=c*s*t,m=f*r+r,T=Math.pow(s,2)*Math.pow(c,2)*t,S=Math.exp(-f),A=st(Math.pow(c,2),s);return(-i(c)+Mt>0?-1:1)*((m-T)*S)/A}):(i=c=>{let d=Math.exp(-c*t),f=(c-r)*t+1;return-Mt+d*f},o=c=>{let d=Math.exp(-c*t),f=(r-c)*(t*t);return d*f});let a=5/t,l=Vi(i,o,a);if(t=B(t),isNaN(l))return{stiffness:F.stiffness,damping:F.damping,duration:t};{let c=Math.pow(l,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:t}}}var Wi=12;function Vi(t,e,r){let n=r;for(let i=1;it[r]!==void 0)}function Gi(t){let e={velocity:F.velocity,stiffness:F.stiffness,damping:F.damping,mass:F.mass,isResolvedFromDuration:!1,...t};if(!Ur(t,$i)&&Ur(t,Ki))if(t.visualDuration){let r=t.visualDuration,n=2*Math.PI/(r*1.2),i=n*n,o=2*V(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:F.mass,stiffness:i,damping:o}}else{let r=qr(t);e={...e,...r,mass:F.mass},e.isResolvedFromDuration=!0}return e}function Zr(t=F.visualDuration,e=F.bounce){let r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:i}=r,o=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:d,duration:f,velocity:m,isResolvedFromDuration:T}=Gi({...r,velocity:-U(r.velocity||0)}),S=m||0,A=c/(2*Math.sqrt(l*d)),N=s-o,v=U(Math.sqrt(l/d)),O=Math.abs(N)<5;n||(n=O?F.restSpeed.granular:F.restSpeed.default),i||(i=O?F.restDelta.granular:F.restDelta.default);let _;if(A<1){let x=st(v,A);_=D=>{let R=Math.exp(-A*v*D);return s-R*((S+A*v*N)/x*Math.sin(x*D)+N*Math.cos(x*D))}}else if(A===1)_=x=>s-Math.exp(-v*x)*(N+(S+v*N)*x);else{let x=v*Math.sqrt(A*A-1);_=D=>{let R=Math.exp(-A*v*D),W=Math.min(x*D,300);return s-R*((S+A*v*N)*Math.sinh(W)+x*N*Math.cosh(W))/x}}let C={calculatedDuration:T&&f||null,next:x=>{let D=_(x);if(T)a.done=x>=f;else{let R=0;A<1&&(R=x===0?B(S):jr(_,x,D));let W=Math.abs(R)<=n,k=Math.abs(s-D)<=i;a.done=W&&k}return a.value=a.done?s:D,a},toString:()=>{let x=Math.min(He(C),2e4),D=et(R=>C.next(x*R).value,x,30);return x+"ms "+D}};return C}var Xr=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,Hi=1e-7,ji=12;function qi(t,e,r,n,i){let o,s,a=0;do s=e+(r-e)/2,o=Xr(s,n,i)-t,o>0?r=s:e=s;while(Math.abs(o)>Hi&&++aqi(o,0,1,t,r);return o=>o===0||o===1?o:Xr(i(o),e,n)}var ot=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;var at=t=>e=>1-t(1-e);var Lt=se(.33,1.53,.69,.99),Oe=at(Lt),Yr=ot(Oe);var Qr=t=>(t*=2)<1?.5*Oe(t):.5*(2-Math.pow(2,-10*(t-1)));var lt=t=>1-Math.sin(Math.acos(t)),Jr=at(lt),en=ot(lt);var ct={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ut={...ct,transform:t=>V(0,1,t)},Zl={...ct,default:1};var oe=t=>Math.round(t*1e5)/1e5;var ft=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function tn(t){return t==null}var rn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var be=(t,e)=>r=>!!(typeof r=="string"&&rn.test(r)&&r.startsWith(t)||e&&!tn(r)&&Object.prototype.hasOwnProperty.call(r,e)),dt=(t,e,r)=>n=>{if(typeof n!="string")return n;let[i,o,s,a]=n.match(ft);return{[t]:parseFloat(i),[e]:parseFloat(o),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var Ui=t=>V(0,255,t),kt={...ct,transform:t=>Math.round(Ui(t))},X={test:be("rgb","red"),parse:dt("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+kt.transform(t)+", "+kt.transform(e)+", "+kt.transform(r)+", "+oe(ut.transform(n))+")"};function Zi(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var De={test:be("#"),parse:Zi,transform:X.transform};var ae={test:be("hsl","hue"),parse:dt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+ve.transform(oe(e))+", "+ve.transform(oe(r))+", "+oe(ut.transform(n))+")"};var pe={test:t=>X.test(t)||De.test(t)||ae.test(t),parse:t=>X.test(t)?X.parse(t):ae.test(t)?ae.parse(t):De.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?X.transform(t):ae.transform(t)};var nn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Xi(t){var e,r;return isNaN(t)&&typeof t=="string"&&(((e=t.match(ft))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(nn))===null||r===void 0?void 0:r.length)||0)>0}var on="number",an="color",Yi="var",Qi="var(",sn="${}",Ji=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Fe(t){let e=t.toString(),r=[],n={color:[],number:[],var:[]},i=[],o=0,a=e.replace(Ji,l=>(pe.test(l)?(n.color.push(o),i.push(an),r.push(pe.parse(l))):l.startsWith(Qi)?(n.var.push(o),i.push(Yi),r.push(l)):(n.number.push(o),i.push(on),r.push(parseFloat(l))),++o,sn)).split(sn);return{values:r,split:a,indexes:n,types:i}}function ln(t){return Fe(t).values}function cn(t){let{split:e,types:r}=Fe(t),n=e.length;return i=>{let o="";for(let s=0;stypeof t=="number"?0:t;function ts(t){let e=ln(t);return cn(t)(e.map(es))}var un={test:Xi,parse:ln,createTransformer:cn,getAnimatableNone:ts};var rs=t=>e=>typeof e=="string"&&e.startsWith(t);var ns=rs("var(--"),fn=t=>ns(t)?is.test(t.split("/*")[0].trim()):!1,is=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ct(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function dn({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let i=0,o=0,s=0;if(!e)i=o=s=r;else{let a=r<.5?r*(1+e):r+e-r*e,l=2*r-a;i=Ct(l,a,t+1/3),o=Ct(l,a,t),s=Ct(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}function ye(t,e){return r=>r>0?e:t}var Rt=(t,e,r)=>{let n=t*t,i=r*(e*e-n)+n;return i<0?0:Math.sqrt(i)},ss=[De,X,ae],os=t=>ss.find(e=>e.test(t));function pn(t){let e=os(t);if(me(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let r=e.parse(t);return e===ae&&(r=dn(r)),r}var _t=(t,e)=>{let r=pn(t),n=pn(e);if(!r||!n)return ye(t,e);let i={...r};return o=>(i.red=Rt(r.red,n.red,o),i.green=Rt(r.green,n.green,o),i.blue=Rt(r.blue,n.blue,o),i.alpha=Z(r.alpha,n.alpha,o),X.transform(i))};var as=(t,e)=>r=>e(t(r)),pt=(...t)=>t.reduce(as);var mt=new Set(["none","hidden"]);function mn(t,e){return mt.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function ls(t,e){return r=>Z(t,e,r)}function ht(t){return typeof t=="number"?ls:typeof t=="string"?fn(t)?ye:pe.test(t)?_t:fs:Array.isArray(t)?hn:typeof t=="object"?pe.test(t)?_t:cs:ye}function hn(t,e){let r=[...t],n=r.length,i=t.map((o,s)=>ht(o)(o,e[s]));return o=>{for(let s=0;s{for(let o in n)r[o]=n[o](i);return r}}function us(t,e){var r;let n=[],i={color:0,var:0,number:0};for(let o=0;o{let r=un.createTransformer(e),n=Fe(t),i=Fe(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?mt.has(t)&&!i.values.length||mt.has(e)&&!n.values.length?mn(t,e):pt(hn(us(n,i),i.values),r):(me(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ye(t,e))};function gn(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?Z(t,e,r):ht(t)(t,e)}var vn=se(.42,0,1,1),bn=se(0,0,.58,1),yn=se(.42,0,.58,1);var xn={linear:z,easeIn:vn,easeInOut:yn,easeOut:bn,circIn:lt,circInOut:en,circOut:Jr,backIn:Oe,backInOut:Yr,backOut:Lt,anticipate:Qr},wn=t=>{if(Je(t)){H(t.length===4,"Cubic bezier arrays must contain four numerical values.");let[e,r,n,i]=t;return se(e,r,n,i)}else if(typeof t=="string")return H(xn[t]!==void 0,`Invalid easing type '${t}'`),xn[t];return t};function ds(t,e,r){let n=[],i=r||gn,o=t.length-1;for(let s=0;se[0];if(o===2&&e[0]===e[1])return()=>e[1];let s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=ds(e,n,i),l=a.length,c=d=>{if(s&&d1)for(;fc(V(t[0],t[o-1],d)):c}function Pt(t,e){let r,n=()=>{let{currentTime:i}=e,s=(i===null?0:i.value)/100;r!==s&&t(s),r=s};return Q.update(n,!0),()=>Ae(n)}var gt=new WeakMap,le;function ps(t,e){if(e){let{inlineSize:r,blockSize:n}=e[0];return{width:r,height:n}}else return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}function ms({target:t,contentRect:e,borderBoxSize:r}){var n;(n=gt.get(t))===null||n===void 0||n.forEach(i=>{i({target:t,contentSize:e,get size(){return ps(t,r)}})})}function hs(t){t.forEach(ms)}function gs(){typeof ResizeObserver>"u"||(le=new ResizeObserver(hs))}function Sn(t,e){le||gs();let r=ie(t);return r.forEach(n=>{let i=gt.get(n);i||(i=new Set,gt.set(n,i)),i.add(e),le?.observe(n)}),()=>{r.forEach(n=>{let i=gt.get(n);i?.delete(e),i?.size||le?.unobserve(n)})}}var vt=new Set,Ne;function vs(){Ne=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};vt.forEach(r=>r(e))},window.addEventListener("resize",Ne)}function Tn(t){return vt.add(t),Ne||vs(),()=>{vt.delete(t),!vt.size&&Ne&&(Ne=void 0)}}function In(t,e){return typeof t=="function"?Tn(t):Sn(t,e)}var bs=50,An=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Dn=()=>({time:0,x:An(),y:An()}),ys={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function On(t,e,r,n){let i=r[e],{length:o,position:s}=ys[e],a=i.current,l=r.time;i.current=t[`scroll${s}`],i.scrollLength=t[`scroll${o}`]-t[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=q(0,i.scrollLength,i.current);let c=n-l;i.velocity=c>bs?0:it(i.current-a,c)}function Fn(t,e,r){On(t,"x",e,r),On(t,"y",e,r),e.time=r}function Nn(t,e){let r={x:0,y:0},n=t;for(;n&&n!==e;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n.tagName==="svg"){let i=n.getBoundingClientRect();n=n.parentElement;let o=n.getBoundingClientRect();r.x+=i.left-o.left,r.y+=i.top-o.top}else if(n instanceof SVGGraphicsElement){let{x:i,y:o}=n.getBBox();r.x+=i,r.y+=o;let s=null,a=n.parentNode;for(;!s;)a.tagName==="svg"&&(s=a),a=n.parentNode;n=s}else break;return r}var bt={start:0,center:.5,end:1};function zt(t,e,r=0){let n=0;if(t in bt&&(t=bt[t]),typeof t=="string"){let i=parseFloat(t);t.endsWith("px")?n=i:t.endsWith("%")?t=i/100:t.endsWith("vw")?n=i/100*document.documentElement.clientWidth:t.endsWith("vh")?n=i/100*document.documentElement.clientHeight:t=i}return typeof t=="number"&&(n=e*t),r+n}var xs=[0,0];function Mn(t,e,r,n){let i=Array.isArray(t)?t:xs,o=0,s=0;return typeof t=="number"?i=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?i=t.split(" "):i=[t,bt[t]?t:"0"]),o=zt(i[0],r,n),s=zt(i[1],e),o-s}var Ln={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};var ws={x:0,y:0};function Es(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function kn(t,e,r){let{offset:n=Ln.All}=r,{target:i=t,axis:o="y"}=r,s=o==="y"?"height":"width",a=i!==t?Nn(i,t):ws,l=i===t?{width:t.scrollWidth,height:t.scrollHeight}:Es(i),c={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let d=!e[o].interpolate,f=n.length;for(let m=0;mSs(t,n.target,r),update:i=>{Fn(t,r,i),(n.offset||n.target)&&kn(t,r,n)},notify:()=>e(r)}}var Me=new WeakMap,Rn=new WeakMap,Bt=new WeakMap,_n=t=>t===document.documentElement?window:t;function yt(t,{container:e=document.documentElement,...r}={}){let n=Bt.get(e);n||(n=new Set,Bt.set(e,n));let i=Dn(),o=Cn(e,t,i,r);if(n.add(o),!Me.has(e)){let a=()=>{for(let m of n)m.measure()},l=()=>{for(let m of n)m.update(Nt.timestamp)},c=()=>{for(let m of n)m.notify()},d=()=>{Q.read(a,!1,!0),Q.read(l,!1,!0),Q.update(c,!1,!0)};Me.set(e,d);let f=_n(e);window.addEventListener("resize",d,{passive:!0}),e!==document.documentElement&&Rn.set(e,In(e,d)),f.addEventListener("scroll",d,{passive:!0})}let s=Me.get(e);return Q.read(s,!1,!0),()=>{var a;Ae(s);let l=Bt.get(e);if(!l||(l.delete(o),l.size))return;let c=Me.get(e);Me.delete(e),c&&(_n(e).removeEventListener("scroll",c),(a=Rn.get(e))===null||a===void 0||a(),window.removeEventListener("resize",c))}}function Ts({source:t,container:e,axis:r="y"}){t&&(e=t);let n={value:0},i=yt(o=>{n.value=o[r].progress*100},{container:e,axis:r});return{currentTime:n,cancel:i}}var Wt=new Map;function Pn({source:t,container:e=document.documentElement,axis:r="y"}={}){t&&(e=t),Wt.has(e)||Wt.set(e,{});let n=Wt.get(e);return n[r]||(n[r]=$e()?new ScrollTimeline({source:e,axis:r}):Ts({source:e,axis:r})),n[r]}function Is(t){return t.length===2}function zn(t){return t&&(t.target||t.offset)}function As(t,e){return Is(t)||zn(e)?yt(r=>{t(r[e.axis].progress,r)},e):Pt(t,Pn(e))}function Os(t,e){if(t.flatten(),zn(e))return t.pause(),yt(r=>{t.time=t.duration*r[e.axis].progress},e);{let r=Pn(e);return t.attachTimeline?t.attachTimeline(r,n=>(n.pause(),Pt(i=>{n.time=n.duration*i},r))):z}}function Bn(t,{axis:e="y",...r}={}){let n={axis:e,...r};return typeof t=="function"?As(t,n):Os(t,n)}var Ds={some:0,all:1};function Wn(t,e,{root:r,margin:n,amount:i="some"}={}){let o=ie(t),s=new WeakMap,a=c=>{c.forEach(d=>{let f=s.get(d.target);if(d.isIntersecting!==!!f)if(d.isIntersecting){let m=e(d.target,d);typeof m=="function"?s.set(d.target,m):l.unobserve(d.target)}else typeof f=="function"&&(f(d),s.delete(d.target))})},l=new IntersectionObserver(a,{root:r,rootMargin:n,threshold:typeof i=="number"?i:Ds[i]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function Fs(t,e){if(t==="first")return 0;{let r=e-1;return t==="last"?r:r/2}}function Vn(t=.1,{startDelay:e=0,from:r=0,ease:n}={}){return(i,o)=>{let s=typeof r=="number"?r:Fs(r,o),a=Math.abs(s-i),l=t*a;if(n){let c=o*t;l=wn(n)(l/c)*c}return e+l}}function J(t){this.listenerMap=[{},{}],t&&this.root(t),this.handle=J.prototype.handle.bind(this),this._removedListeners=[]}J.prototype.root=function(t){let e=this.listenerMap,r;if(this.rootElement){for(r in e[1])e[1].hasOwnProperty(r)&&this.rootElement.removeEventListener(r,this.handle,!0);for(r in e[0])e[0].hasOwnProperty(r)&&this.rootElement.removeEventListener(r,this.handle,!1)}if(!t||!t.addEventListener)return this.rootElement&&delete this.rootElement,this;this.rootElement=t;for(r in e[1])e[1].hasOwnProperty(r)&&this.rootElement.addEventListener(r,this.handle,!0);for(r in e[0])e[0].hasOwnProperty(r)&&this.rootElement.addEventListener(r,this.handle,!1);return this};J.prototype.captureForType=function(t){return["blur","error","focus","load","resize","scroll"].indexOf(t)!==-1};J.prototype.on=function(t,e,r,n){let i,o,s,a;if(!t)throw new TypeError("Invalid event type: "+t);if(typeof e=="function"&&(n=r,r=e,e=null),n===void 0&&(n=this.captureForType(t)),typeof r!="function")throw new TypeError("Handler must be a type of Function");return i=this.rootElement,o=this.listenerMap[n?1:0],o[t]||(i&&i.addEventListener(t,this.handle,n),o[t]=[]),e?/^[a-z]+$/i.test(e)?(a=e,s=Ns):/^#[a-z0-9\-_]+$/i.test(e)?(a=e.slice(1),s=Ls):(a=e,s=Element.prototype.matches):(a=null,s=Ms.bind(this)),o[t].push({selector:e,handler:r,matcher:s,matcherParam:a}),this};J.prototype.off=function(t,e,r,n){let i,o,s,a,l;if(typeof e=="function"&&(n=r,r=e,e=null),n===void 0)return this.off(t,e,r,!0),this.off(t,e,r,!1),this;if(s=this.listenerMap[n?1:0],!t){for(l in s)s.hasOwnProperty(l)&&this.off(l,e,r);return this}if(a=s[t],!a||!a.length)return this;for(i=a.length-1;i>=0;i--)o=a[i],(!e||e===o.selector)&&(!r||r===o.handler)&&(this._removedListeners.push(o),a.splice(i,1));return a.length||(delete s[t],this.rootElement&&this.rootElement.removeEventListener(t,this.handle,n)),this};J.prototype.handle=function(t){let e,r,n=t.type,i,o,s,a,l=[],c,d="ftLabsDelegateIgnore";if(t[d]===!0)return;switch(c=t.target,c.nodeType===3&&(c=c.parentNode),c.correspondingUseElement&&(c=c.correspondingUseElement),i=this.rootElement,o=t.eventPhase||(t.target!==t.currentTarget?3:2),o){case 1:l=this.listenerMap[1][n];break;case 2:this.listenerMap[0]&&this.listenerMap[0][n]&&(l=l.concat(this.listenerMap[0][n])),this.listenerMap[1]&&this.listenerMap[1][n]&&(l=l.concat(this.listenerMap[1][n]));break;case 3:l=this.listenerMap[0][n];break}let f=[];for(r=l.length;c&&r;){for(e=0;e-1&&c.hasAttribute("disabled")?f=[]:s.matcher.call(c,s.matcherParam,c)&&f.push([t,c,s]);if(c===i||(r=l.length,c=c.parentElement||c.parentNode,c instanceof HTMLDocument))break}let m;for(e=0;e-1)&&(a=this.fire.apply(this,f[e]),a===!1)){f[e][0][d]=!0,f[e][0].preventDefault(),m=!1;break}return m};J.prototype.fire=function(t,e,r){return r.handler.call(e,t,e)};function Ns(t,e){return t.toLowerCase()===e.tagName.toLowerCase()}function Ms(t,e){return this.rootElement===window?e===document||e===document.documentElement||e===window:this.rootElement===e}function Ls(t,e){return t===e.id}J.prototype.destroy=function(){this.off(),this.root()};var ks=J;function Le(t,e,r){let n=document.createElement(e);return t&&(n.className=t),r&&r.appendChild(n),n}function Cs(t,e,r){let n=`translate3d(${t}px,${e||0}px,0)`;return r!==void 0&&(n+=` scale3d(${r},${r},1)`),n}function Vt(t,e,r){t.style.width=typeof e=="number"?`${e}px`:e,t.style.height=typeof r=="number"?`${r}px`:r}var K={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function Rs(t){return"button"in t&&t.button===1||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function ke(t,e,r=document){let n=[];if(t instanceof Element)n=[t];else if(t instanceof NodeList||Array.isArray(t))n=Array.from(t);else{let i=typeof t=="string"?t:e;i&&(n=Array.from(r.querySelectorAll(i)))}return n}function _s(t){return typeof t=="function"&&t.prototype&&t.prototype.goTo}function Kn(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}var Kt=class{constructor(e,r){this.type=e,this.defaultPrevented=!1,r&&Object.assign(this,r)}preventDefault(){this.defaultPrevented=!0}},$t=class{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,r,n=100){var i,o,s;this._filters[e]||(this._filters[e]=[]),(i=this._filters[e])===null||i===void 0||i.push({fn:r,priority:n}),(o=this._filters[e])===null||o===void 0||o.sort((a,l)=>a.priority-l.priority),(s=this.pswp)===null||s===void 0||s.addFilter(e,r,n)}removeFilter(e,r){this._filters[e]&&(this._filters[e]=this._filters[e].filter(n=>n.fn!==r)),this.pswp&&this.pswp.removeFilter(e,r)}applyFilters(e,...r){var n;return(n=this._filters[e])===null||n===void 0||n.forEach(i=>{r[0]=i.fn.apply(this,r)}),r[0]}on(e,r){var n,i;this._listeners[e]||(this._listeners[e]=[]),(n=this._listeners[e])===null||n===void 0||n.push(r),(i=this.pswp)===null||i===void 0||i.on(e,r)}off(e,r){var n;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(i=>r!==i)),(n=this.pswp)===null||n===void 0||n.off(e,r)}dispatch(e,r){var n;if(this.pswp)return this.pswp.dispatch(e,r);let i=new Kt(e,r);return(n=this._listeners[e])===null||n===void 0||n.forEach(o=>{o.call(this,i)}),i}},Gt=class{constructor(e,r){if(this.element=Le("pswp__img pswp__img--placeholder",e?"img":"div",r),e){let n=this.element;n.decoding="async",n.alt="",n.src=e,n.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,r){this.element&&(this.element.tagName==="IMG"?(Vt(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=Cs(0,0,e/250)):Vt(this.element,e,r))}destroy(){var e;(e=this.element)!==null&&e!==void 0&&e.parentNode&&this.element.remove(),this.element=null}},Ht=class{constructor(e,r,n){this.instance=r,this.data=e,this.index=n,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=K.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(e,r){if(this.slide&&this.usePlaceholder())if(this.placeholder){let n=this.placeholder.element;n&&!n.parentElement&&this.slide.container.prepend(n)}else{let n=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new Gt(n,this.slide.container)}this.element&&!r||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=Le("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=Le("pswp__content","div"),this.element.innerHTML=this.data.html||""),r&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var r,n;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;let i=this.element;this.updateSrcsetSizes(),this.data.srcset&&(i.srcset=this.data.srcset),i.src=(r=this.data.src)!==null&&r!==void 0?r:"",i.alt=(n=this.data.alt)!==null&&n!==void 0?n:"",this.state=K.LOADING,i.complete?this.onLoaded():(i.onload=()=>{this.onLoaded()},i.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=K.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===K.LOADED||this.state===K.ERROR)&&this.removePlaceholder())}onError(){this.state=K.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===K.LOADING,this)}isError(){return this.state===K.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(e,r){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,r),!this.instance.dispatch("contentResize",{content:this,width:e,height:r}).defaultPrevented&&(Vt(this.element,e,r),this.isImageContent()&&!this.isError()))){let n=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=r,n?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:r,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==K.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;let e=this.element,r=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||r>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=r+"px",e.dataset.largestUsedSize=String(r))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,r;let n=Le("pswp__error-msg","div");n.innerText=(e=(r=this.instance.options)===null||r===void 0?void 0:r.errorMsg)!==null&&e!==void 0?e:"",n=this.instance.applyFilters("contentErrorElement",n,this),this.element=Le("pswp__content pswp__error-msg-container","div"),this.element.appendChild(n),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===K.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;let e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||Kn())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!Kn()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===K.LOADED||this.state===K.ERROR)&&this.removePlaceholder()))}};function Ps(t,e){if(t.getViewportSizeFn){let r=t.getViewportSizeFn(t,e);if(r)return r}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function xt(t,e,r,n,i){let o=0;if(e.paddingFn)o=e.paddingFn(r,n,i)[t];else if(e.padding)o=e.padding[t];else{let s="padding"+t[0].toUpperCase()+t.slice(1);e[s]&&(o=e[s])}return Number(o)||0}function zs(t,e,r,n){return{x:e.x-xt("left",t,e,r,n)-xt("right",t,e,r,n),y:e.y-xt("top",t,e,r,n)-xt("bottom",t,e,r,n)}}var $n=4e3,jt=class{constructor(e,r,n,i){this.pswp=i,this.options=e,this.itemData=r,this.index=n,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,r,n){let i={x:e,y:r};this.elementSize=i,this.panAreaSize=n;let o=n.x/i.x,s=n.y/i.y;this.fit=Math.min(1,os?o:s),this.vFill=Math.min(1,s),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){let r=e+"ZoomLevel",n=this.options[r];if(n)return typeof n=="function"?n(this):n==="fill"?this.fill:n==="fit"?this.fit:Number(n)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,this.fit*3),this.elementSize&&e*this.elementSize.x>$n&&(e=$n/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}};function Gn(t,e,r){let n=e.createContentFromData(t,r),i,{options:o}=e;if(o){i=new jt(o,t,-1);let s;e.pswp?s=e.pswp.viewportSize:s=Ps(o,e);let a=zs(o,s,t,r);i.update(n.width,n.height,a)}return n.lazyLoad(),i&&n.setDisplayedSize(Math.ceil(n.width*i.initial),Math.ceil(n.height*i.initial)),n}function Bs(t,e){let r=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:r}).defaultPrevented)return Gn(r,e,t)}var qt=class extends $t{getNumItems(){var e;let r=0,n=(e=this.options)===null||e===void 0?void 0:e.dataSource;n&&"length"in n?r=n.length:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),n.items&&(r=n.items.length));let i=this.dispatch("numItems",{dataSource:n,numItems:r});return this.applyFilters("numItems",i.numItems,n)}createContentFromData(e,r){return new Ht(e,this,r)}getItemData(e){var r;let n=(r=this.options)===null||r===void 0?void 0:r.dataSource,i={};Array.isArray(n)?i=n[e]:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),i=n.items[e]);let o=i;o instanceof Element&&(o=this._domElementToItemData(o));let s=this.dispatch("itemData",{itemData:o||{},index:e});return this.applyFilters("itemData",s.itemData,e)}_getGalleryDOMElements(e){var r,n;return(r=this.options)!==null&&r!==void 0&&r.children||(n=this.options)!==null&&n!==void 0&&n.childSelector?ke(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){let r={element:e},n=e.tagName==="A"?e:e.querySelector("a");if(n){r.src=n.dataset.pswpSrc||n.href,n.dataset.pswpSrcset&&(r.srcset=n.dataset.pswpSrcset),r.width=n.dataset.pswpWidth?parseInt(n.dataset.pswpWidth,10):0,r.height=n.dataset.pswpHeight?parseInt(n.dataset.pswpHeight,10):0,r.w=r.width,r.h=r.height,n.dataset.pswpType&&(r.type=n.dataset.pswpType);let o=e.querySelector("img");if(o){var i;r.msrc=o.currentSrc||o.src,r.alt=(i=o.getAttribute("alt"))!==null&&i!==void 0?i:""}(n.dataset.pswpCropped||n.dataset.cropped)&&(r.thumbCropped=!0)}return this.applyFilters("domItemData",r,e,n)}lazyLoadData(e,r){return Gn(e,this,r)}},Ut=class extends qt{constructor(e){super(),this.options=e||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){ke(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(e){if(Rs(e)||window.pswp)return;let r={x:e.clientX,y:e.clientY};!r.x&&!r.y&&(r=null);let n=this.getClickedIndex(e);n=this.applyFilters("clickedIndex",n,e,this);let i={gallery:e.currentTarget};n>=0&&(e.preventDefault(),this.loadAndOpen(n,i,r))}getClickedIndex(e){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,e);let r=e.target,i=ke(this.options.children,this.options.childSelector,e.currentTarget).findIndex(o=>o===r||o.contains(r));return i!==-1?i:this.options.children||this.options.childSelector?-1:0}loadAndOpen(e,r,n){if(window.pswp||!this.options)return!1;if(!r&&this.options.gallery&&this.options.children){let i=ke(this.options.gallery);i[0]&&(r={gallery:i[0]})}return this.options.index=e,this.options.initialPointerPos=n,this.shouldOpen=!0,this.preload(e,r),!0}preload(e,r){let{options:n}=this;r&&(n.dataSource=r);let i=[],o=typeof n.pswpModule;if(_s(n.pswpModule))i.push(Promise.resolve(n.pswpModule));else{if(o==="string")throw new Error("pswpModule as string is no longer supported");if(o==="function")i.push(n.pswpModule());else throw new Error("pswpModule is not valid")}typeof n.openPromise=="function"&&i.push(n.openPromise()),n.preloadFirstSlide!==!1&&e>=0&&(this._preloadedContent=Bs(e,this));let s=++this._uid;Promise.all(i).then(a=>{if(this.shouldOpen){let l=a[0];this._openPhotoswipe(l,s)}})}_openPhotoswipe(e,r){if(r!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;let n=typeof e=="object"?new e.default(this.options):new e(this.options);this.pswp=n,window.pswp=n,Object.keys(this._listeners).forEach(i=>{var o;(o=this._listeners[i])===null||o===void 0||o.forEach(s=>{n.on(i,s)})}),Object.keys(this._filters).forEach(i=>{var o;(o=this._filters[i])===null||o===void 0||o.forEach(s=>{n.addFilter(i,s.fn,s.priority)})}),this._preloadedContent&&(n.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),n.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),n.init()}destroy(){var e;(e=this.pswp)===null||e===void 0||e.destroy(),this.shouldOpen=!1,this._listeners={},ke(this.options.gallery,this.options.gallerySelector).forEach(r=>{r.removeEventListener("click",this.onThumbnailsClick,!1)})}};export{ks as Delegate,mr as FocusTrap,Ut as PhotoSwipeLightbox,$r as animate,Kr as animateSequence,Q as frame,Wn as inView,Bn as scroll,Zr as spring,Vn as stagger}; /*! Bundled license information: instant.page/instantpage.js: (*! instant.page v5.2.0 - (C) 2019-2023 Alexandre Dieulot - https://instant.page/license *) tabbable/dist/index.esm.js: (*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE *) focus-trap/dist/focus-trap.esm.js: (*! * focus-trap 7.6.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE *) photoswipe/dist/photoswipe-lightbox.esm.js: (*! * PhotoSwipe Lightbox 5.4.4 - https://photoswipe.com * (c) 2024 Dmytro Semenov *) */