1var Fn=Object.create;var Mt=Object.defineProperty;var Ln=Object.getOwnPropertyDescriptor;var Cn=Object.getOwnPropertyNames;var Mn=Object.getPrototypeOf,Rn=Object.prototype.hasOwnProperty;var kn=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),jn=(t,e)=>{for(var r in e)Mt(t,r,{get:e[r],enumerable:!0})},zn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Cn(e))!Rn.call(t,i)&&i!==r&&Mt(t,i,{get:()=>e[i],enumerable:!(n=Ln(e,i))||n.enumerable});return t};var $n=(t,e,r)=>(r=t!=null?Fn(Mn(t)):{},zn(e||!t||!t.__esModule?Mt(r,"default",{value:t,enumerable:!0}):r,t));var Rr=kn(()=>{(function(){"use strict";var t=function(h,l){var p=function(D){for(var E=0,P=D.length;E<P;E++)b(D[E])},b=function(D){var E=D.target,P=D.attributeName,q=D.oldValue;E.attributeChangedCallback(P,q,E.getAttribute(P))};return function(w,D){var E=w.constructor.observedAttributes;return E&&h(D).then(function(){new l(p).observe(w,{attributes:!0,attributeOldValue:!0,attributeFilter:E});for(var P=0,q=E.length;P<q;P++)w.hasAttribute(E[P])&&b({target:w,attributeName:E[P],oldValue:null})}),w}};function e(h,l){if(h){if(typeof h=="string")return r(h,l);var p=Object.prototype.toString.call(h).slice(8,-1);if(p==="Object"&&h.constructor&&(p=h.constructor.name),p==="Map"||p==="Set")return Array.from(h);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return r(h,l)}}function r(h,l){(l==null||l>h.length)&&(l=h.length);for(var p=0,b=new Array(l);p<l;p++)b[p]=h[p];return b}function n(h,l){var p=typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(!p){if(Array.isArray(h)||(p=e(h))||l&&h&&typeof h.length=="number"){p&&(h=p);var b=0,w=function(){};return{s:w,n:function(){return b>=h.length?{done:!0}:{done:!1,value:h[b++]}},e:function(q){throw q},f:w}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D=!0,E=!1,P;return{s:function(){p=p.call(h)},n:function(){var q=p.next();return D=q.done,q},e:function(q){E=!0,P=q},f:function(){try{!D&&p.return!=null&&p.return()}finally{if(E)throw P}}}}var i=!0,a=!1,o="querySelectorAll",c=function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:MutationObserver,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:["*"],D=function q(me,ve,ee,O,V,G){var ne=n(me),De;try{for(ne.s();!(De=ne.n()).done;){var Q=De.value;(G||o in Q)&&(V?ee.has(Q)||(ee.add(Q),O.delete(Q),l(Q,V)):O.has(Q)||(O.add(Q),ee.delete(Q),l(Q,V)),G||q(Q[o](ve),ve,ee,O,V,i))}}catch(Ct){ne.e(Ct)}finally{ne.f()}},E=new b(function(q){if(w.length){var me=w.join(","),ve=new Set,ee=new Set,O=n(q),V;try{for(O.s();!(V=O.n()).done;){var G=V.value,ne=G.addedNodes,De=G.removedNodes;D(De,me,ve,ee,a,a),D(ne,me,ve,ee,i,a)}}catch(Q){O.e(Q)}finally{O.f()}}}),P=E.observe;return(E.observe=function(q){return P.call(E,q,{subtree:i,childList:i})})(p),E},f="querySelectorAll",u=self,y=u.document,g=u.Element,m=u.MutationObserver,M=u.Set,I=u.WeakMap,k=function(l){return f in l},j=[].filter,R=function(h){var l=new I,p=function(O){for(var V=0,G=O.length;V<G;V++)l.delete(O[V])},b=function(){for(var O=me.takeRecords(),V=0,G=O.length;V<G;V++)E(j.call(O[V].removedNodes,k),!1),E(j.call(O[V].addedNodes,k),!0)},w=function(O){return O.matches||O.webkitMatchesSelector||O.msMatchesSelector},D=function(O,V){var G;if(V)for(var ne,De=w(O),Q=0,Ct=P.length;Q<Ct;Q++)De.call(O,ne=P[Q])&&(l.has(O)||l.set(O,new M),G=l.get(O),G.has(ne)||(G.add(ne),h.handle(O,V,ne)));else l.has(O)&&(G=l.get(O),l.delete(O),G.forEach(function(Dn){h.handle(O,V,Dn)}))},E=function(O){for(var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,G=0,ne=O.length;G<ne;G++)D(O[G],V)},P=h.query,q=h.root||y,me=c(D,q,m,P),ve=g.prototype.attachShadow;return ve&&(g.prototype.attachShadow=function(ee){var O=ve.call(this,ee);return me.observe(O),O}),P.length&&E(q[f](P)),{drop:p,flush:b,observer:me,parse:E}},F=self,L=F.document,z=F.Map,B=F.MutationObserver,K=F.Object,Y=F.Set,U=F.WeakMap,C=F.Element,te=F.HTMLElement,A=F.Node,S=F.Error,s=F.TypeError,d=F.Reflect,v=K.defineProperty,T=K.keys,_=K.getOwnPropertyNames,N=K.setPrototypeOf,x=!self.customElements,$=function(l){for(var p=T(l),b=[],w=new Y,D=p.length,E=0;E<D;E++){b[E]=l[p[E]];try{delete l[p[E]]}catch{w.add(E)}}return function(){for(var P=0;P<D;P++)w.has(P)||(l[p[P]]=b[P])}};if(x){var W=function(){var l=this.constructor;if(!ce.has(l))throw new s("Illegal constructor");var p=ce.get(l);if(Je)return or(Je,p);var b=ae.call(L,p);return or(N(b,l.prototype),p)},ae=L.createElement,ce=new z,re=new z,he=new z,pe=new z,Pe=[],Ce=function(l,p,b){var w=he.get(b);if(p&&!w.isPrototypeOf(l)){var D=$(l);Je=N(l,w);try{new w.constructor}finally{Je=null,D()}}var E="".concat(p?"":"dis","connectedCallback");E in w&&l[E]()},yn=R({query:Pe,handle:Ce}),bn=yn.parse,Je=null,Nt=function(l){if(!re.has(l)){var p,b=new Promise(function(w){p=w});re.set(l,{$:b,_:p})}return re.get(l).$},or=t(Nt,B);self.customElements={define:function(l,p){if(pe.has(l))throw new S('the name "'.concat(l,'" has already been used with this registry'));ce.set(p,l),he.set(l,p.prototype),pe.set(l,p),Pe.push(l),Nt(l).then(function(){bn(L.querySelectorAll(l))}),re.get(l)._(p)},get:function(l){return pe.get(l)},whenDefined:Nt},v(W.prototype=te.prototype,"constructor",{value:W}),self.HTMLElement=W,L.createElement=function(h,l){var p=l&&l.is,b=p?pe.get(p):pe.get(h);return b?new b:ae.call(L,h)},"isConnected"in A.prototype||v(A.prototype,"isConnected",{configurable:!0,get:function(){return!(this.ownerDocument.compareDocumentPosition(this)&this.DOCUMENT_POSITION_DISCONNECTED)}})}else if(x=!self.customElements.get("extends-br"),x)try{var ar=function h(){return self.Reflect.construct(HTMLBRElement,[],h)};ar.prototype=HTMLLIElement.prototype;var sr="extends-br";self.customElements.define("extends-br",ar,{extends:"br"}),x=L.createElement("br",{is:sr}).outerHTML.indexOf(sr)<0;var lr=self.customElements,wn=lr.get,En=lr.whenDefined;self.customElements.whenDefined=function(h){var l=this;return En.call(this,h).then(function(p){return p||wn.call(l,h)})}}catch{}if(x){var cr=function(l){var p=Pt.get(l);pr(p.querySelectorAll(this),l.isConnected)}
2,se=self.customElements,ur=L.createElement,xn=se.define,Sn=se.get,On=se.upgrade,Tn=d||{construct:function(l){return l.call(this)}},_n=Tn.construct,Pt=new U,Dt=new Y,et=new z,tt=new z,fr=new z,rt=new z,dr=[],nt=[],hr=function(l){return rt.get(l)||Sn.call(se,l)},An=function(l,p,b){var w=fr.get(b);if(p&&!w.isPrototypeOf(l)){var D=$(l);it=N(l,w);try{new w.constructor}finally{it=null,D()}}var E="".concat(p?"":"dis","connectedCallback");E in w&&l[E]()},In=R({query:nt,handle:An}),pr=In.parse,Nn=R({query:dr,handle:function(l,p){Pt.has(l)&&(p?Dt.add(l):Dt.delete(l),nt.length&&cr.call(nt,l))}}),Pn=Nn.parse,mr=C.prototype.attachShadow;mr&&(C.prototype.attachShadow=function(h){var l=mr.call(this,h);return Pt.set(this,l),l});var Ft=function(l){if(!tt.has(l)){var p,b=new Promise(function(w){p=w});tt.set(l,{$:b,_:p})}return tt.get(l).$},Lt=t(Ft,B),it=null;_(self).filter(function(h){return/^HTML.*Element$/.test(h)}).forEach(function(h){var l=self[h];function p(){var b=this.constructor;if(!et.has(b))throw new s("Illegal constructor");var w=et.get(b),D=w.is,E=w.tag;if(D){if(it)return Lt(it,D);var P=ur.call(L,E);return P.setAttribute("is",D),Lt(N(P,b.prototype),D)}else return _n.call(this,l,[],b)}v(p.prototype=l.prototype,"constructor",{value:p}),v(self,h,{value:p})}),L.createElement=function(h,l){var p=l&&l.is;if(p){var b=rt.get(p);if(b&&et.get(b).tag===h)return new b}var w=ur.call(L,h);return p&&w.setAttribute("is",p),w},se.get=hr,se.whenDefined=Ft,se.upgrade=function(h){var l=h.getAttribute("is");if(l){var p=rt.get(l);if(p){Lt(N(h,p.prototype),l);return}}On.call(se,h)},se.define=function(h,l,p){if(hr(h))throw new S("'".concat(h,"' has already been defined as a custom element"));var b,w=p&&p.extends;et.set(l,w?{is:h,tag:w}:{is:"",tag:h}),w?(b="".concat(w,'[is="').concat(h,'"]'),fr.set(b,l.prototype),rt.set(h,l),nt.push(b)):(xn.apply(se,arguments),dr.push(b=h)),Ft(h).then(function(){w?(pr(L.querySelectorAll(b)),Dt.forEach(cr,[b])):Pn(L.querySelectorAll(b))}),tt.get(h)._(l)}}})()});var ot=null,gr,yr,br,wr=65,Rt,Me,vr=new Set,Er=1111;Wn();function Wn(){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>
2-1&&(ot=parseInt(navigator.userAgent.substring(r+7))),e&&ot&&ot<110)return;let n="instantMousedownShortcut"in document.body.dataset;gr="instantAllowQueryString"in document.body.dataset,yr="instantAllowExternalLinks"in document.body.dataset,br="instantWhitelist"in document.body.dataset;let i={capture:!0,passive:!0},a=!1,o=!1,c=!1;if("instantIntensity"in document.body.dataset){let f=document.body.dataset.instantIntensity;if(f.startsWith("mousedown"))a=!0,f=="mousedown-only"&&(o=!0);else if(f.startsWith("viewport")){let u=navigator.connection&&navigator.connection.saveData,y=navigator.connection&&navigator.connection.effectiveType&&navigator.connection.effectiveType.includes("2g");!u&&!y&&(f=="viewport"?document.documentElement.clientWidth*document.documentElement.clientHeight<45e4&&(c=!0):f=="viewport-all"&&(c=!0))}else{let u=parseInt(f);isNaN(u)||(wr=u)}}if(o||document.addEventListener("touchstart",Vn,i),a?n||document.addEventListener("mousedown",Hn,i):document.addEventListener("mouseover",Bn,i),n&&document.addEventListener("mousedown",Un,i),c){let f=window.requestIdleCallback;f||(f=u=>{u()}),f(function(){let y=new IntersectionObserver(g=>{g.forEach(m=>{if(m.isIntersecting){let M=m.target;y.unobserve(M),st(M.href)}})});document.querySelectorAll("a").forEach(g=>{at(g)&&y.observe(g)})},{timeout:1500})}}function Vn(t){Rt=performance.now();let e=t.target.closest("a");at(e)&&st(e.href,"high")}function Bn(t){if(performance.now()-Rt<Er||!("closest"in t.target))return;let e=t.target.closest("a");at(e)&&(e.addEventListener("mouseout",Kn,{passive:!0}),Me=setTimeout(()=>{st(e.href,"high"),Me=void 0},wr))}function Hn(t){let e=t.target.closest("a");at(e)&&st(e.href,"high")}function Kn(t){t.relatedTarget&&t.target.closest("a")==t.relatedTarget.closest("a")||Me&&(clearTimeout(Me),Me=void 0)}function Un(t){if(performance.now()-Rt<Er)return;let e=t.target.closest("a");if(t.which>1||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 at(t){if(!(!t||!t.href)&&!(br&&!("instant"in t.dataset))&&!(t.origin!=location.origin&&(!(yr||"instant"in t.dataset)||!ot))&&["http:","https:"].includes(t.protocol)&&!(t.protocol=="http:"&&location.protocol=="https:")&&!(!gr&&t.search&&!("instant"in t.dataset))&&!(t.hash&&t.pathname+t.search==location.pathname+location.search)&&!("noInstant"in t.dataset))return!0}function st(t,e="auto"){if(vr.has(t))return;let r=document.createElement("link");r.rel="prefetch",r.href=t,r.fetchPriority=e,r.as="document",document.head.appendChild(r),vr.add(t)}var Mr={};jn(Mr,{createFocusTrap:()=>Ei});var Sr=["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])"],lt=Sr.join(","),Or=typeof Element>"u",Oe=Or?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ct=!Or&&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},ut=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"),a=i===""||i==="true",o=a||r&&e&&t(e.parentNode);return o},qn=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},Tr=function(e,r,n){if(ut(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(lt));return r&&Oe.call(e,lt)&&i.unshift(e),i=i.filter(n),i},_r=function t(e,r,n){for(var i=[],a=Array.from(e);a.length;){var o=a.shift();if(!ut(o,!1))if(o.tagName==="SLOT"){var c=o.assignedElements(),f=c.length?c:o.children,u=t(f,!0,n);n.flatten?i.push.apply(i,u):i.push({scopeParent:o,candidates:u})}else{var y=Oe.call(o,lt);y&&n.filter(o)&&(r||!e.includes(o))&&i.push(o);var g=o.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(o),m=!ut(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(o
vendor: 15,694 bytes, lines 2-3
2));if(g&&m){var M=t(g===!0?o.children:g.children,!0,n);n.flatten?i.push.apply(i,M):i.push({scopeParent:o,candidates:M})}else a.unshift.apply(a,o.children)}}return i},Ar=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ge=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||qn(e))&&!Ar(e)?0:e.tabIndex},Gn=function(e,r){var n=ge(e);return n<0&&r&&!Ar(e)?0:n},Zn=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Ir=function(e){return e.tagName==="INPUT"},Xn=function(e){return Ir(e)&&e.type==="hidden"},Yn=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},Qn=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},Jn=function(e){if(!e.name)return!0;var r=e.form||ct(e),n=function(c){return r.querySelectorAll('input[type="radio"][name="'+c+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(o){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",o.message),!1}var a=Qn(i,e.form);return!a||a===e},ei=function(e){return Ir(e)&&e.type==="radio"},ti=function(e){return ei(e)&&!Jn(e)},ri=function(e){var r,n=e&&ct(e),i=(r=n)===null||r===void 0?void 0:r.host,a=!1;if(n&&n!==e){var o,c,f;for(a=!!((o=i)!==null&&o!==void 0&&(c=o.ownerDocument)!==null&&c!==void 0&&c.contains(i)||e!=null&&(f=e.ownerDocument)!==null&&f!==void 0&&f.contains(e));!a&&i;){var u,y,g;n=ct(i),i=(u=n)===null||u===void 0?void 0:u.host,a=!!((y=i)!==null&&y!==void 0&&(g=y.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return a},xr=function(e){var r=e.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},ni=function(e,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var a=Oe.call(e,"details>summary:first-of-type"),o=a?e.parentElement:e;if(Oe.call(o,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var c=e;e;){var f=e.parentElement,u=ct(e);if(f&&!f.shadowRoot&&i(f)===!0)return xr(e);e.assignedSlot?e=e.assignedSlot:!f&&u!==e.ownerDocument?e=u.host:e=f}e=c}if(ri(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return xr(e);return!1},ii=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<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return Oe.call(r,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}r=r.parentElement}return!1},ft=function(e,r){return!(r.disabled||ut(r)||Xn(r)||ni(r,e)||Yn(r)||ii(r))},kt=function(e,r){return!(ti(r)||ge(r)<0||!ft(e,r))},oi=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},ai=function t(e){var r=[],n=[];return e.forEach(function(i,a){var o=!!i.scopeParent,c=o?i.scopeParent:i,f=Gn(c,o),u=o?t(i.candidates):c;f===0?o?r.push.apply(r,u):r.push(c):n.push({documentOrder:a,tabIndex:f,item:i,isScope:o,content:u})}),n.sort(Zn).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(r)},Nr=function(e,r){r=r||{};var n;return r.getShadowRoot?n=_r([e],r.includeContainer,{filter:kt.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:oi}):n=Tr(e,r.includeContainer,kt.bind(null,r)),ai(n)},Pr=function(e,r){r=r||{};var n;return r.getShadowRoot?n=_r([e],r.includeContainer,{filter:ft.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=Tr(e,r.includeContainer,ft.bind(null,r)),n},Te=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Oe.call(e,lt)===!1?!1:kt(r,e)},si=Sr.concat("iframe").join(","),dt=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Oe.call(e,si)===!1?!1:ft(r,e)};function jt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function li(t){if(Array.isArray(t))return jt(t)}function ci(t,e,r){return(e=pi(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ui(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function fi(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Fr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Dr(Object(r),!0).forEach(function(n){ci(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dr(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function di(t){return li(t)||ui(t)||mi(t)||fi()}function hi(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function pi(t){var e=hi(t,"string");return typeof e=="symbol"?e:e+""}function mi(t,e){if(t){if(typeof t=="string")return jt(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jt(t,e):void 0}}var Lr={activateTrap:function(e,r){if(e.length>0){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)}},vi=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},gi=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},ke=function(e){return e?.key==="Tab"||e?.keyCode===9},yi=function(e){return ke(e)&&!e.shiftKey},bi=function(e){return ke(e)&&e.shiftKey},Cr=function(e){return setTimeout(e,0)},Re=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,n):e},ht=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},wi=[],Ei=function(e,r){var n=r?.document||document,i=r?.trapStack||wi,a=Fr({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:yi,isKeyBackward:bi},r),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},c,f=function(s,d,v){return s&&s[d]!==void 0?s[d]:a[v||d]},u=function(s,d){var v=typeof d?.composedPath=="function"?d.composedPath():void 0;return o.containerGroups.findIndex(function(T){var _=T.container,N=T.tabbableNodes;return _.contains(s)||v?.includes(_)||N.find(function(x){return x===s})})},y=function(s){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=d.hasFallback,T=v===void 0?!1:v,_=d.params,N=_===void 0?[]:_,x=a[s];if(typeof x=="function"&&(x=x.apply(void 0,di(N))),x===!0&&(x=void 0),!x){if(x===void 0||x===!1)return x;throw new Error("`".concat(s,"` was specified but was not a node, or did not return a node"))}var $=x;if(typeof x=="string"){try{$=n.querySelector(x)}catch(W){throw new Error("`".concat(s,'` appears to be an invalid selector; error="').concat(W.message,'"'))}if(!$&&!T)throw new Error("`".concat(s,"` as selector refers to no known node"))}return $},g=function(){var s=y("initialFocus",{hasFallback:!0});if(s===!1)return!1;if(s===void 0||s&&!dt(s,a.tabbableOptions))if(u(n.activeElement)>=0)s=n.activeElement;else{var d=o.tabbableGroups[0],v=d&&d.firstTabbableNode;s=v||y("fallbackFocus")}else s===null&&(s=y("fallbackFocus"));if(!s)throw new Error("Your focus-trap needs to have at least one focusable element");return s},m=function(){if(o.containerGroups=o.containers.map(function(s){var d=Nr(s,a.tabbableOptions),v=Pr(s,a.tabbableOptions),T=d.length>0?d[0]:void 0,_=d.length>0?d[d.length-1]:void 0,N=v.find(function(W){return Te(W)}),x=v.slice().reverse().find(function(W){return Te(W)}),$=!!d.find(function(W){return ge(W)>0});return{container:s,tabbableNodes:d,focusableNodes:v,posTabIndexesFound:$,firstTabbableNode:T,lastTabbableNode:_,firstDomTabbableNode:N,lastDomTabbableNode:x,nextTabbableNode:function(ae){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,re=d.indexOf(ae);return re<0?ce?v.slice(v.indexOf(ae)+1).find(function(he){return Te(he)}):v.slice(0,v.indexOf(ae)).reverse().find(function(he){return Te(he)}):d[re+(ce?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(s){return s.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!y("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(o.containerGroups.find(function(s){return s.posTabIndexesFound})&&o.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.")},M=function(s){var d=s.activeElement;if(d)return d.shadowRoot&&d.shadowRoot.activeElement!==null?M(d.shadowRoot):d},I=function(s){if(s!==!1&&s!==M(document)){if(!s||!s.focus){I(g());return}s.focus({preventScroll:!!a.preventScroll}),o.mostRecentlyFocusedNode=s,vi(s)&&s.select()}},k=function(s){var d=y("setReturnFocus",{params:[s]});return d||(d===!1?!1:s)},j=function(s){var d=s.target,v=s.event,T=s.isBackward,_=T===void 0?!1:T;d=d||ht(v),m();var N=null;if(o.tabbableGroups.length>0){var x=u(d,v),$=x>=0?o.containerGroups[x]:void 0;if(x<0)_?N=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:N=o.tabbableGroups[0].firstTabbableNode;else if(_){var W=o.tabbableGroups.findIndex(function(Pe){var Ce=Pe.firstTabbableNode;return d===Ce});if(W<0&&($.container===d||dt(d,a.tabbableOptions)&&!Te(d,a.tabbableOptions)&&!$.nextTabbableNode(d,!1))&&(W=x),W>=0){var ae=W===0?o.tabbableGroups.length-1:W-1,ce=o.tabbableGroups[ae];N=ge(d)>=0?ce.lastTabbableNode:ce.lastDomTabbableNode}else ke(v)||(N=$.nextTabbableNode(d,!1))}else{var re=o.tabbableGroups.findIndex(function(Pe){var Ce=Pe.lastTabbableNode;return d===Ce});if(re<0&&($.container===d||dt(d,a.tabbableOptions)&&!Te(d,a.tabbableOptions)&&!$.nextTabbableNode(d))&&(re=x),re>=0){var he=re===o.tabbableGroups.length-1?0:re+1,pe=o.tabbableGroups[he];N=ge(d)>=0?pe.firstTabbableNode:pe.firstDomTabbableNode}else ke(v)||(N=$.nextTabbableNode(d))}}else N=y("fallbackFocus");return N},R=function(s){var d=ht(s);if(!(u(d,s)>=0)){if(Re(a.clickOutsideDeactivates,s)){c.deactivate({returnFocus:a.returnFocusOnDeactivate});return}Re(a.allowOutsideClick,s)||s.preventDefault()}},F=function(s){var d=ht(s),v=u(d,s)>=0;if(v||d instanceof Document)v&&(o.mostRecentlyFocusedNode=d);else{s.stopImmediatePropagation();var T,_=!0;if(o.mostRecentlyFocusedNode)if(ge(o.mostRecentlyFocusedNode)>0){var N=u(o.mostRecentlyFocusedNode),x=o.containerGroups[N].tabbableNodes;if(x.length>0){var $=x.findIndex(function(W){return W===o.mostRecentlyFocusedNode});$>=0&&(a.isKeyForward(o.recentNavEvent)?$+1<x.length&&(T=x[$+1],_=!1):$-1>=0&&(T=x[$-1],_=!1))}}else o.containerGroups.some(function(W){return W.tabbableNodes.some(function(ae){return ge(ae)>0})})||(_=!1);else _=!1;_&&(T=j({target:o.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(o.recentNavEvent)})),I(T||o.mostRecentlyFocusedNode||g())}o.recentNavEvent=void 0},L=function(s){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=s;var v=j({event:s,isBackward:d});v&&(ke(s)&&s.preventDefault(),I(v))},z=function(s){(a.isKeyForward(s)||a.isKeyBackward(s))&&L(s,a.isKeyBackward(s))},B=function(s){gi(s)&&Re(a.escapeDeactivates,s)!==!1&&(s.preventDefault(),c.deactivate())},K=function(s){var d=ht(s);u(d,s)>=0||Re(a.clickOutsideDeactivates,s)||Re(a.allowOutsideClick,s)||(s.preventDefault(),s.stopImmediatePropagation())},Y=function(){if(o.active)return Lr.activateTrap(i,c),o.delayInitialFocusTimer=a.delayInitialFocus?Cr(function(){I(g())}):I(g()),n.addEventListener("focusin",F,!0),n.addEventListener("mousedown",R,{capture:!0,passive:!1}),n.addEventListener("touchstart",R,{capture:!0,passive:!1}),n.addEventListener("click",K,{capture:!0,passive:!1}),n.addEventListener("keydown",z,{capture:!0,passive:!1}),n.addEventListener("keydown",B),c},U=function(){if(o.active)return n.removeEventListener("focusin",F,!0),n.removeEventListener("mousedown",R,!0),n.removeEventListener("touchstart",R,!0),n.removeEventListener("click",K,!0),n.removeEventListener("keydown",z,!0),n.removeEventListener("keydown",B),c},C=function(s){var d=s.some(function(v){var T=Array.from(v.removedNodes);return T.some(function(_){return _===o.mostRecentlyFocusedNode})});d&&I(g())},te=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(C):void 0,A=function(){te&&(te.disconnect(),o.active&&!o.paused&&o.containers.map(function(s){te.observe(s,{subtree:!0,childList:!0})}))};return c={get active(){return o.active},get paused(){return o.paused},activate:function(s){if(o.active)return this;var d=f(s,"onActivate"),v=f(s,"onPostActivate"),T=f(s,"checkCanFocusTrap");T||m(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=n.activeElement,d?.();var _=function(){T&&m(),Y(),A(),v?.()};return T?(T(o.containers.concat()).then(_,_),this):(_(),this)},deactivate:function(s){if(!o.active)return this;var d=Fr({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},s);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,U(),o.active=!1,o.paused=!1,A(),Lr.deactivateTrap(i,c);var v=f(d,"onDeactivate"),T=f(d,"onPostDeactivate"),_=f(d,"checkCanReturnFocus"),N=f(d,"returnFocus","returnFocusOnDeactivate");v?.();var x=function(){Cr(function(){N&&I(k(o.nodeFocusedBeforeActivation)),T?.()})};return N&&_?(_(k(o.nodeFocusedBeforeActivation)).then(x,x),this):(x(),this)},pause:function(s){return o.active?(o.manuallyPaused=!0,this._setPausedState(!0,s)):this},unpause:function(s){return o.active?(o.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,s)):this},updateContainerElements:function(s){var d=[].concat(s).filter(Boolean);return o.containers=d.map(function(v){return typeof v=="string"?n.querySelector(v):v}),o.active&&m(),A(),this}},Object.defineProperties(c,{_isManuallyPaused:{value:function(){return o.manuallyPaused}},_setPausedState:{value:function(s,d){if(o.paused===s)return this;if(o.paused=s,s){var v=f(d,"onPause"),T=f(d,"onPostPause");v?.(),U(),A(),T?.()}else{var _=f(d,"onUnpause"),N=f(d,"onPostUnpause");_?.(),m(),Y(),A(),N?.()}return this}}}),c.updateContainerElements(e),c};var Ql=$n(Rr());function zt(t,e){t.indexOf(e)===-1&&t.push(e)}function $t(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var je=(t,e,r)=>Math.min(Math.max(r,t),e);var H={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"};var J=t=>typeof t=="number";var le=t=>Array.isArray(t)&&!J(t[0]);var kr=(t,e,r)=>{let n=e-t;return((r-t)%n+n)%n+t};function ze(t,e){return le(t)?t[kr(0,t.length,e)]:t}var _e=(t,e,r)=>
vendor: 8,689 bytes, line 3
3-r*t+r*e+t;var $e=()=>{},X=t=>t;var oe=(t,e,r)=>e-t===0?1:(r-t)/(e-t);function Fe(t,e){let r=t[t.length-1];for(let n=1;n<=e;n++){let i=oe(0,e,n);t.push(_e(r,1,i))}}function Ae(t){let e=[0];return Fe(e,t-1),e}function We(t,e=Ae(t.length),r=X){let n=t.length,i=n-e.length;return i>0&&Fe(e,i),a=>{let o=0;for(;o<n-2&&!(a<e[o+1]);o++);let c=je(0,1,oe(e[o],e[o+1],a));return c=ze(r,o)(c),_e(t[o],t[o+1],c)}}var Ve=t=>Array.isArray(t)&&J(t[0]);var ye=t=>typeof t=="object"&&!!t.createAnimation;var Z=t=>typeof t=="function";var ue=t=>typeof t=="string";var be={ms:t=>t*1e3,s:t=>t/1e3};function Wt(t,e){return e?t*(1e3/e):0}var jr=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,xi=1e-7,Si=12;function Oi(t,e,r,n,i){let a,o,c=0;do o=e+(r-e)/2,a=jr(o,n,i)-t,a>0?r=o:e=o;while(Math.abs(a)>xi&&++c<Si);return o}function Ie(t,e,r,n){if(t===e&&r===n)return X;let i=a=>Oi(a,0,1,t,r);return a=>a===0||a===1?a:jr(i(a),e,n)}var Vt=(t,e="end")=>r=>{r=e==="end"?Math.min(r,.999):Math.max(r,.001);let n=r*t,i=e==="end"?Math.floor(n):Math.ceil(n);return je(0,1,i/t)};var Ti={ease:Ie(.25,.1,.25,1),"ease-in":Ie(.42,0,1,1),"ease-in-out":Ie(.42,0,.58,1),"ease-out":Ie(0,0,.58,1)},_i=/\((.*?)\)/;function Le(t){if(Z(t))return t;if(Ve(t))return Ie(...t);let e=Ti[t];if(e)return e;if(t.startsWith("steps")){let r=_i.exec(t);if(r){let n=r[1].split(",");return Vt(parseFloat(n[0]),n[1].trim())}}return X}var fe=class{constructor(e,r=[0,1],{easing:n,duration:i=H.duration,delay:a=H.delay,endDelay:o=H.endDelay,repeat:c=H.repeat,offset:f,direction:u="normal",autoplay:y=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=X,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((m,M)=>{this.resolve=m,this.reject=M}),n=n||H.easing,ye(n)){let m=n.createAnimation(r);n=m.easing,r=m.keyframes||r,i=m.duration||i}this.repeat=c,this.easing=le(n)?X:Le(n),this.updateDuration(i);let g=We(r,f,le(n)?n.map(Le):X);this.tick=m=>{var M;a=a;let I=0;this.pauseTime!==void 0?I=this.pauseTime:I=(m-this.startTime)*this.rate,this.t=I,I/=1e3,I=Math.max(I-a,0),this.playState==="finished"&&this.pauseTime===void 0&&(I=this.totalDuration);let k=I/this.duration,j=Math.floor(k),R=k%1;!R&&k>=1&&(R=1),R===1&&j--;let F=j%2;(u==="reverse"||u==="alternate"&&F||u==="alternate-reverse"&&!F)&&(R=1-R);let L=I>=this.totalDuration?1:Math.min(R,1),z=g(this.easing(L));e(z),this.pauseTime===void 0&&(this.playState==="finished"||I>=this.totalDuration+o)?(this.playState="finished",(M=this.resolve)===null||M===void 0||M.call(this,z)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},y&&this.play()}play(){let e=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(e=this.reject)===null||e===void 0||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){this.pauseTime!==void 0||this.rate===0?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}};var Be=function(){};var He=class{setAnimation(e){this.animation=e,e?.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}};var Bt=new WeakMap;function pt(t){return Bt.has(t)||Bt.set(t,{transforms:[],values:new Map}),Bt.get(t)}function zr(t,e){return t.has(e)||t.set(e,new He),t.get(e)}var Ai=["","X","Y","Z"],Ii=["translate","scale","rotate","skew"],Ke={x:"translateX",y:"translateY",z:"translateZ"},$r={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},Ni={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:$r,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:X},skew:$r},we=new Map,vt=t=>`--motion-${t}`,mt=["x","y","z"];Ii.forEach(t=>{Ai.forEach(e=>{mt.push(t+e),we.set(vt(t+e),Ni[t])})});var Pi=(t,e)=>mt.indexOf(t)-mt.indexOf(e),Di=new Set(mt),gt=t=>Di.has(t),Wr=(t,e)=>{Ke[e]&&(e=Ke[e]);let{transforms:r}=pt(t);zt(r,e),t.style.transform=Fi(r)},Fi=t=>t.sort(Pi).reduce(Li,"").trim(),Li=(t,e)=>`${t} ${e}(var(${vt(e)}))`;var Ue=t=>t.startsWith("--"),Vr=new Set;function Br(t){if(!Vr.has(t)){Vr.add(t);try{let{syntax:e,initialValue:r}=we.has(t)?we.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:r})}catch{}}}var Ht=(t,e)=>document.createElement("div").animate(t,e),Hr={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{Ht({opacity:[1]})}catch{return!1}return!0},finished:()=>!!Ht({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{Ht({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},Kt={},Ee={};for(let t in Hr)Ee[t]=()=>(Kt[t]===void 0&&(Kt[t]=Hr[t]()),Kt[t]);var Ci=.015,Mi=(t,e)=>{let r="",n=Math.round(e/Ci);for(let i=0;i<n;i++)r+=t(oe(0,n-1,i))+", ";return r.substring(0,r.length-2)},Ut=(t,e)=>Z(t)?Ee.linearEasing()?`linear(${Mi(t,e)})`:H.easing:Ve(t)?Ri(t):t,Ri=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`;function Kr(t,e){for(let r=0;r<t.length;r++)t[r]===null&&(t[r]=r?t[r-1]:e());return t}var yt=t=>Array.isArray(t)?t:[t];function qe(t){return Ke[t]&&(t=Ke[t]),gt(t)?vt(t):t}var Ge={get:(t,e)=>{e=qe(e);let r=Ue(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!r&&r!==0){let n=we.get(e);n&&(r=n.initialValue)}return r},set:(t,e,r)=>{e=qe(e),Ue(e)?t.style.setProperty(e,r):t.style[e]=r}};function bt(t,e=!0){if(!(!t||t.playState==="finished"))try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch{}}function Ur(t,e){var r;let n=e?.toDefaultUnit||X,i=t[t.length-1];if(ue(i)){let a=((r=i.match(/(-?[\d.]+)([a-z%]*)/))===null||r===void 0?void 0:r[2])||"";a&&(n=o=>o+a)}return n}function ki(){return window.__MOTION_DEV_TOOLS_RECORD}function wt(t,e,r,n={},i){let a=ki(),o=n.record!==!1&&a,c,{duration:f=H.duration,delay:u=H.delay,endDelay:y=H.endDelay,repeat:g=H.repeat,easing:m=H.easing,persist:M=!1,direction:I,offset:k,allowWebkitAcceleration:j=!1,autoplay:R=!0}=n,F=pt(t),L=gt(e),z=Ee.waapi();L&&Wr(t,e);let B=qe(e),K=zr(F.values,B),Y=we.get(B);return bt(K.animation,!(ye(m)&&K.generator)&&n.record!==!1),()=>{let U=()=>{var A,S;return(S=(A=Ge.get(t,B))!==null&&A!==void 0?A:Y?.initialValue)!==null&&S!==void 0?S:0},C=Kr(yt(r),U),te=Ur(C,Y);if(ye(m)){let A=m.createAnimation(C,e!=="opacity",U,B,K);m=A.easing,C=A.keyframes||C,f=A.duration||f}if(Ue(B)&&(Ee.cssRegisterProperty()?Br(B):z=!1),L&&!Ee.linearEasing()&&(Z(m)||le(m)&&m.some(Z))&&(z=!1),z){Y&&(C=C.map(s=>J(s)?Y.toDefaultUnit(s):s)),C.length===1&&(!Ee.partialKeyframes()||o)&&C.unshift(U());let A={delay:be.ms(u),duration:be.ms(f),endDelay:be.ms(y),easing:le(m)?void 0:Ut(m,f),direction:I,iterations:g+1,fill:"both"};c=t.animate({[B]:C,offset:k,easing:le(m)?m.map(s=>Ut(s,f)):void 0},A),c.finished||(c.finished=new Promise((s,d)=>{c.onfinish=s,c.oncancel=d}));let S=C[C.length-1];c.finished.then(()=>{M||(Ge.set(t,B,S),c.cancel())}).catch($e),j||(c.playbackRate=1.000001)}else if(i&&L)C=C.map(A=>typeof A=="string"?parseFloat(A):A),C.length===1&&C.unshift(parseFloat(U())),c=new i(A=>{Ge.set(t,B,te?te(A):A)},C,Object.assign(Object.assign({},n),{duration:f,easing:m}));else{let A=C[C.length-1];Ge.set(t,B,Y&&J(A)?Y.toDefaultUnit(A):A)}return o&&a(t,e,C,{duration:f,delay:u,easing:m,repeat:g,offset:k},"motion-one"),K.setAnimation(c),c&&!R&&c.pause(),c}}var Et=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function xe(t,e){var r;return typeof t=="string"?e?((r=e[t])!==null&&r!==void 0||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}var ji=t=>t(),Ne=(t,e,r=H.duration)=>new Proxy({animations:t.map(ji).filter(Boolean),duration:r,options:e},$i),zi=t=>t.animations[0],$i={get:(t,e)=>{let r=zi(t);switch(e){case"duration":return t.duration;case"currentTime":return be.s(r?.[e]||0);case"playbackRate":case"playState":return r?.[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(Wi)).catch($e)),t.finished;case"stop":return()=>{t.animations.forEach(n=>bt(n))};case"forEachNative":return n=>{t.animations.forEach(i=>
3n(i,t))};default:return typeof r?.[e]>"u"?void 0:()=>t.animations.forEach(n=>n[e]())}},set:(t,e,r)=>{switch(e){case"currentTime":r=be.ms(r);case"playbackRate":for(let n=0;n<t.animations.length;n++)t.animations[n][e]=r;return!0}return!1}},Wi=t=>t.finished;function qr(t=.1,{start:e=0,from:r=0,easing:n}={}){return(i,a)=>{let o=J(r)?r:Vi(r,a),c=Math.abs(o-i),f=t*c;if(n){let u=a*t;f=Le(n)(f/u)*u}return e+f}}function Vi(t,e){if(t==="first")return 0;{let r=e-1;return t==="last"?r:r/2}}function xt(t,e,r){return Z(t)?t(e,r):t}function Gr(t){return function(r,n,i={}){r=xe(r);let a=r.length;Be(!!a,"No valid element provided."),Be(!!n,"No keyframes defined.");let o=[];for(let c=0;c<a;c++){let f=r[c];for(let u in n){let y=Et(i,u);y.delay=xt(y.delay,c,a);let g=wt(f,u,n[u],y,t);o.push(g)}}return Ne(o,i,i.duration)}}var qt=Gr(fe);function St(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function Gt(t,e,r,n){var i;return J(e)?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?r:(i=n.get(e))!==null&&i!==void 0?i:t}function Bi(t,e,r){for(let n=0;n<t.length;n++){let i=t[n];i.at>e&&i.at<r&&($t(t,i),n--)}}function Zr(t,e,r,n,i,a){Bi(t,i,a);for(let o=0;o<e.length;o++)t.push({value:e[o],at:_e(i,a,n[o]),easing:ze(r,o)})}function Xr(t,e){return t.at===e.at?t.value===null?1:-1:t.at-e.at}function Yr(t,e={}){var r;let n=Hi(t,e),i=n.map(a=>wt(...a,fe)).filter(Boolean);return Ne(i,e,(r=n[0])===null||r===void 0?void 0:r[3].duration)}function Hi(t,e={}){var{defaultOptions:r={}}=e,n=St(e,["defaultOptions"]);let i=[],a=new Map,o={},c=new Map,f=0,u=0,y=0;for(let g=0;g<t.length;g++){let m=t[g];if(ue(m)){c.set(m,u);continue}else if(!Array.isArray(m)){c.set(m.name,Gt(u,m.at,f,c));continue}let[M,I,k={}]=m;k.at!==void 0&&(u=Gt(u,k.at,f,c));let j=0,R=xe(M,o),F=R.length;for(let L=0;L<F;L++){let z=R[L],B=Ki(z,a);for(let K in I){let Y=Ui(K,B),U=yt(I[K]),C=Et(k,K),{duration:te=r.duration||H.duration,easing:A=r.easing||H.easing}=C;if(ye(A)){Be(K==="opacity"||U.length>1,"spring must be provided 2 keyframes within timeline()");let _=A.createAnimation(U,K!=="opacity",()=>0,K);A=_.easing,U=_.keyframes||U,te=_.duration||te}let S=xt(k.delay,L,F)||0,s=u+S,d=s+te,{offset:v=Ae(U.length)}=C;v.length===1&&v[0]===0&&(v[1]=1);let T=v.length-U.length;T>0&&Fe(v,T),U.length===1&&U.unshift(null),Zr(Y,U,A,v,s,d),j=Math.max(S+te,j),y=Math.max(d,y)}}f=u,u+=j}return a.forEach((g,m)=>{for(let M in g){let I=g[M];I.sort(Xr);let k=[],j=[],R=[];for(let F=0;F<I.length;F++){let{at:L,value:z,easing:B}=I[F];k.push(z),j.push(oe(0,y,L)),R.push(B||H.easing)}j[0]!==0&&(j.unshift(0),k.unshift(k[0]),R.unshift("linear")),j[j.length-1]!==1&&(j.push(1),k.push(null)),i.push([m,M,k,Object.assign(Object.assign(Object.assign({},r),{duration:y,easing:R,offset:j}),n)])}}),i}function Ki(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Ui(t,e){return e[t]||(e[t]=[]),e[t]}var qi={any:0,all:1};function Qr(t,e,{root:r,margin:n,amount:i="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};let a=xe(t),o=new WeakMap,c=u=>{u.forEach(y=>{let g=o.get(y.target);if(y.isIntersecting!==!!g)if(y.isIntersecting){let m=e(y);Z(m)?o.set(y.target,m):f.unobserve(y.target)}else g&&(g(y),o.delete(y.target))})},f=new IntersectionObserver(c,{root:r,rootMargin:n,threshold:typeof i=="number"?i:qi[i]});return a.forEach(u=>f.observe(u)),()=>f.disconnect()}var Ot=new WeakMap,Se;function Gi(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 Zi({target:t,contentRect:e,borderBoxSize:r}){var n;(n=Ot.get(t))===null||n===void 0||n.forEach(i=>{i({target:t,contentSize:e,get size(){return Gi(t,r)}})})}function Xi(t){t.forEach(Zi)}function Yi(){typeof ResizeObserver>"u"||(Se=new ResizeObserver(Xi))}function Jr(t,e){Se||Yi();let r=xe(t);return r.forEach(n=>{let i=Ot.get(n);i||(i=new Set,Ot.set(n,i)),i.add(e),Se?.observe(n)}),()=>{r.forEach(n=>{let i=Ot.get(n);i?.delete(e),i?.size||Se?.unobserve(n)})}}var Tt=new Set,Ze;function Qi(){Ze=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};Tt.forEach(r=>r(e))},window.addEventListener("resize",Ze)}function en(t){return Tt.add(t),Ze||Qi(),()=>{Tt.delete(t),!Tt.size&&Ze&&(Ze=void 0)}}function tn(t,e){return Z(t)?en(t):Jr(t,e)}var Ji=50,rn=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),on=()=>({time:0,x:rn(),y:rn()}),eo={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function nn(t,e,r,n){let i=r[e],{length:a,position:o}=eo[e],c=i.current,f=r.time;i.current=t[`scroll${o}`],i.scrollLength=t[`scroll${a}`]-t[`client${a}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=oe(0,i.scrollLength,i.current);let u=n-f;i.velocity=u>Ji?0:Wt(i.current-c,u)}function an(t,e,r){nn(t,"x",e,r),nn(t,"y",e,r),e.time=r}function sn(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 instanceof SVGGraphicsElement&&"getBBox"in n){let{top:i,left:a}=n.getBBox();for(r.x+=a,r.y+=i;n&&n.tagName!=="svg";)n=n.parentNode}return r}var _t={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};var At={start:0,center:.5,end:1};function Zt(t,e,r=0){let n=0;if(At[t]!==void 0&&(t=At[t]),ue(t)){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 J(t)&&(n=e*t),r+n}var to=[0,0];function ln(t,e,r,n){let i=Array.isArray(t)?t:to,a=0,o=0;return J(t)?i=[t,t]:ue(t)&&(t=t.trim(),t.includes(" ")?i=t.split(" "):i=[t,At[t]?t:"0"]),a=Zt(i[0],r,n
3),o=Zt(i[1],e),a-o}var ro={x:0,y:0};function cn(t,e,r){let{offset:n=_t.All}=r,{target:i=t,axis:a="y"}=r,o=a==="y"?"height":"width",c=i!==t?sn(i,t):ro,f=i===t?{width:t.scrollWidth,height:t.scrollHeight}:{width:i.clientWidth,height:i.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[a].offset.length=0;let y=!e[a].interpolate,g=n.length;for(let m=0;m<g;m++){let M=ln(n[m],u[o],f[o],c[a]);!y&&M!==e[a].interpolatorOffsets[m]&&(y=!0),e[a].offset[m]=M}y&&(e[a].interpolate=We(Ae(g),e[a].offset),e[a].interpolatorOffsets=[...e[a].offset]),e[a].progress=e[a].interpolate(e[a].current)}function no(t,e=t,r){if(r.x.targetOffset=0,r.y.targetOffset=0,e!==t){let n=e;for(;n&&n!=t;)r.x.targetOffset+=n.offsetLeft,r.y.targetOffset+=n.offsetTop,n=n.offsetParent}r.x.targetLength=e===t?e.scrollWidth:e.clientWidth,r.y.targetLength=e===t?e.scrollHeight:e.clientHeight,r.x.containerLength=t.clientWidth,r.y.containerLength=t.clientHeight}function un(t,e,r,n={}){let i=n.axis||"y";return{measure:()=>no(t,n.target,r),update:a=>{an(t,r,a),(n.offset||n.target)&&cn(t,r,n)},notify:Z(e)?()=>e(r):io(e,r[i])}}function io(t,e){return t.pause(),t.forEachNative((r,{easing:n})=>{var i,a;if(r.updateDuration)n||(r.easing=X),r.updateDuration(1);else{let o={duration:1e3};n||(o.easing="linear"),(a=(i=r.effect)===null||i===void 0?void 0:i.updateTiming)===null||a===void 0||a.call(i,o)}}),()=>{t.currentTime=e.progress}}var Xe=new WeakMap,fn=new WeakMap,Xt=new WeakMap,dn=t=>t===document.documentElement?window:t;function hn(t,e={}){var{container:r=document.documentElement}=e,n=St(e,["container"]);let i=Xt.get(r);i||(i=new Set,Xt.set(r,i));let a=on(),o=un(r,t,a,n);if(i.add(o),!Xe.has(r)){let u=()=>{let g=performance.now();for(let m of i)m.measure();for(let m of i)m.update(g);for(let m of i)m.notify()};Xe.set(r,u);let y=dn(r);window.addEventListener("resize",u,{passive:!0}),r!==document.documentElement&&fn.set(r,tn(r,u)),y.addEventListener("scroll",u,{passive:!0})}let c=Xe.get(r),f=requestAnimationFrame(c);return()=>{var u;typeof t!="function"&&t.stop(),cancelAnimationFrame(f);let y=Xt.get(r);if(!y||(y.delete(o),y.size))return;let g=Xe.get(r);Xe.delete(r),g&&(dn(r).removeEventListener("scroll",g),(u=fn.get(r))===null||u===void 0||u(),window.removeEventListener("resize",g))}}function oo(t,e={}){return Ne([()=>{let r=new fe(t,[0,1],e);return r.finished.catch(()=>{}),r}],e,e.duration)}function pn(t,e,r){return(Z(t)?oo:qt)(t,e,r)}function de(t){this.listenerMap=[{},{}],t&&this.root(t),this.handle=de.prototype.handle.bind(this),this._removedListeners=[]}de.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};de.prototype.captureForType=function(t){return["blur","error","focus","load","resize","scroll"].indexOf(t)!==-1};de.prototype.on=function(t,e,r,n){let i,a,o,c;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,a=this.listenerMap[n?1:0],a[t]||(i&&i.addEventListener(t,this.handle,n),a[t]=[]),e?/^[a-z]+$/i.test(e)?(c=e,o=ao):/^#[a-z0-9\-_]+$/i.test(e)?(c=e.slice(1),o=lo):(c=e,o=Element.prototype.matches):(c=null,o=so.bind(this)),a[t].push({selector:e,handler:r,matcher:o,matcherParam:c}),this};de.prototype.off=function(t,e,r,n){let i,a,o,c,f;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(o=this.listenerMap[n?1:0],!t){for(f in o)o.hasOwnProperty(f)&&this.off(f,e,r);return this}if(c=o[t],!c||!c.length)return this;for(i=c.length-1;i>=0;i--)a=c[i],(!e||e===a.selector)&&(!r||r===a.handler)&&(this._removedListeners.push(a),c.splice(i,1));return c.length||(delete o[t],this.rootElement&&this.rootElement.removeEventListener(t,this.handle,n)),this};de.prototype.handle=function(t){let e,r,n=t.type,i,a,o,c,f=[],u,y="ftLabsDelegateIgnore";if(t[y]===!0)return;switch(u=t.target,u.nodeType===3&&(u=u.parentNode),u.correspondingUseElement&&(u=u.correspondingUseElement),i=this.rootElement,a=t.eventPhase||(t.target!==t.currentTarget?3:2),a){case 1:f=this.listenerMap[1][n];break;case 2:this.listenerMap[0]&&this.listenerMap[0][n]&&(f=f.concat(this.listenerMap[0][n])),this.listenerMap[1]&&this.listenerMap[1][n]&&(f=f.concat(this.listenerMap[1][n]));break;case 3:f=this.listenerMap[0][n];break}let g=[];for(r=f.length;u&&r;){for(e=0;e<r&&(o=f[e],!!o);e++)u.tagName&&["button","input","select","textarea"].indexOf(u.tagName.toLowerCase())>-1&&u.hasAttribute("disabled")?g=[]:o.matcher.call(u,o.matcherParam,u)&&g.push([t,u,o]);if(u===i||(r=f.length,u=u.parentElement||u.parentNode,u instanceof HTMLDocument))break}let m;
3for(e=0;e<g.length;e++)if(!(this._removedListeners.indexOf(g[e][2])>-1)&&(c=this.fire.apply(this,g[e]),c===!1)){g[e][0][y]=!0,g[e][0].preventDefault(),m=!1;break}return m};de.prototype.fire=function(t,e,r){return r.handler.call(e,t,e)};function ao(t,e){return t.toLowerCase()===e.tagName.toLowerCase()}function so(t,e){return this.rootElement===window?e===document||e===document.documentElement||e===window:this.rootElement===e}function lo(t,e){return t===e.id}de.prototype.destroy=function(){this.off(),this.root()};var co=de;function Ye(t,e,r){let n=document.createElement(e);return t&&(n.className=t),r&&r.appendChild(n),n}function uo(t,e,r){let n=`translate3d(${t}px,${e||0}px,0)`;return r!==void 0&&(n+=` scale3d(${r},${r},1)`),n}function Yt(t,e,r){t.style.width=typeof e=="number"?`${e}px`:e,t.style.height=typeof r=="number"?`${r}px`:r}var ie={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function fo(t){return"button"in t&&t.button===1||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function Qe(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 ho(t){return typeof t=="function"&&t.prototype&&t.prototype.goTo}function mn(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}var Qt=class{constructor(e,r){this.type=e,this.defaultPrevented=!1,r&&Object.assign(this,r)}preventDefault(){this.defaultPrevented=!0}},Jt=class{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,r,n=100){var i,a,o;this._filters[e]||(this._filters[e]=[]),(i=this._filters[e])===null||i===void 0||i.push({fn:r,priority:n}),(a=this._filters[e])===null||a===void 0||a.sort((c,f)=>c.priority-f.priority),(o=this.pswp)===null||o===void 0||o.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 Qt(e,r);return(n=this._listeners[e])===null||n===void 0||n.forEach(a=>{a.call(this,i)}),i}},er=class{constructor(e,r){if(this.element=Ye("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"?(Yt(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=uo(0,0,e/250)):Yt(this.element,e,r))}destroy(){var e;(e=this.element)!==null&&e!==void 0&&e.parentNode&&this.element.remove(),this.element=null}},tr=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=ie.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 er(n,this.slide.container)}this.element&&!r||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=Ye("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=Ye("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=ie.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=ie.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===ie.LOADED||this.state===ie.ERROR)&&this.removePlaceholder())}onError(){this.state=ie.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,
3content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===ie.LOADING,this)}isError(){return this.state===ie.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&&(Yt(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!==ie.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=Ye("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=Ye("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===ie.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||mn())?(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&&!mn()?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===ie.LOADED||this.state===ie.ERROR)&&this.removePlaceholder()))}};function po(t,e){if(t.getViewportSizeFn){let r=t.getViewportSizeFn(t,e);if(r)return r}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function It(t,e,r,n,i){let a=0;if(e.paddingFn)a=e.paddingFn(r,n,i)[t];else if(e.padding)a=e.padding[t];else{let o="padding"+t[0].toUpperCase()+t.slice(1);e[o]&&(a=e[o])}return Number(a)||0}function mo(t,e,r,n){return{x:e.x-It("left",t,e,r,n)-It("right",t,e,r,n),y:e.y-It("top",t,e,r,n)-It("bottom",t,e,r,n)}}var vn=4e3,rr=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 a=n.x/i.x,o=n.y/i.y;this.fit=Math.min(1,a<o?a:o),this.fill=Math.min(1,a>o?a:o),this.vFill=Math.min(1,o),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>vn&&(e=vn/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:a}=e;if(a){i=new rr(a,t,-1);let o;
3e.pswp?o=e.pswp.viewportSize:o=po(a,e);let c=mo(a,o,t,r);i.update(n.width,n.height,c)}return n.lazyLoad(),i&&n.setDisplayedSize(Math.ceil(n.width*i.initial),Math.ceil(n.height*i.initial)),n}function vo(t,e){let r=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:r}).defaultPrevented)return gn(r,e,t)}var nr=class extends Jt{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 tr(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 a=i;a instanceof Element&&(a=this._domElementToItemData(a));let o=this.dispatch("itemData",{itemData:a||{},index:e});return this.applyFilters("itemData",o.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?Qe(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 a=e.querySelector("img");if(a){var i;r.msrc=a.currentSrc||a.src,r.alt=(i=a.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)}},ir=class extends nr{constructor(e){super(),this.options=e||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){Qe(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(e){if(fo(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=Qe(this.options.children,this.options.childSelector,e.currentTarget).findIndex(a=>a===r||a.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=Qe(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=[],a=typeof n.pswpModule;if(ho(n.pswpModule))i.push(Promise.resolve(n.pswpModule));else{if(a==="string")throw new Error("pswpModule as string is no longer supported");if(a==="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=vo(e,this));let o=++this._uid;Promise.all(i).then(c=>{if(this.shouldOpen){let f=c[0];this._openPhotoswipe(f,o)}})}_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 a;(a=this._listeners[i])===null||a===void 0||a.forEach(o=>{n.on(i,o)})}),Object.keys(this._filters).forEach(i=>{var a;(a=this._filters[i])===null||a===void 0||a.forEach(o=>{n.addFilter(i,o.fn,o.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={},Qe(this.options.gallery,this.options.gallerySelector).forEach(r=>{r.removeEventListener("click",this.onThumbnailsClick,!1)})}};(function(){Node.prototype.replaceChildren===void 0&&(Node.prototype.replaceChildren=t=>{for(;this.lastChild;)this.removeChild(this.lastChild);t!==void 0&&this.append(t)})})();(function(){let t=!1;if(document.createElement("i").addEventListener("click",()=>{},{get signal(){t=!0}}),t||!window.AbortController)return;let e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(r,n,i){if(i&&i.signal){if(i.signal.aborted)return;i.signal.addEventListener("abort",()=>this.removeEventListener(r,n,{...i}))}return e.call(this,r,n,i)}})();export{Ql as CustomElementsPolyfill,co as Delegate,Mr as FocusTrap,ir as PhotoSwipeLightbox,_t as ScrollOffset,pn as animate,Qr as inView,hn as scroll,qr as stagger,Yr as timeline}; 4/*! Bundled license information: 5 6@ungap/custom-elements/index.js: 7 (*! (c) Andrea Giammarchi @webreflection ISC *) 8 (*! (c) Andrea Giammarchi - ISC *) 9 10instant.page/instantpage.js: 11 (*! instant.page v5.2.0 - (C) 2019-2023 Alexandre Dieulot - https://instant.page/license *) 12 13tabbable/dist/index.esm.js: 14 (*! 15 * tabbable 6.2.0 16 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 17 *) 18 19focus-trap/dist/focus-trap.esm.js: 20 (*! 21 * focus-trap 7.6.4 22 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 23 *) 24 25photoswipe/dist/photoswipe-lightbox.esm.js: 26 (*! 27 * PhotoSwipe Lightbox 5.4.4 - https://photoswipe.com 28 * (c) 2024 Dmytro Semenov 29 *) 30*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.