PageSourceSearch

https://www.standleeforage.com/js/main.js

js standleeforage.com collected 2026-09-26 10:39:01 UTC 184,630 bytes, 31 lines download raw bytes

1(()=>{var yr=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};yr.SENTRY_RELEASE={id:"5f2e0f3ce55b415cf9ee9efed50022134d0f748c"};(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e64bdaf7-2034-46b2-9d15-572fcf765be6",t._sentryDebugIdIdentifier="sentry-dbid-e64bdaf7-2034-46b2-9d15-572fcf765be6")}catch{}})();var wt=!1,St=!1,ee=[],xt=-1;function _r(t){br(t)}function br(t){ee.includes(t)||ee.push(t),wr()}function ns(t){let e=ee.indexOf(t);e!==-1&&e>xt&&ee.splice(e,1)}function wr(){!St&&!wt&&(wt=!0,queueMicrotask(Sr))}function Sr(){wt=!1,St=!0;for(let t=0;t<ee.length;t++)ee[t](),xt=t;ee.length=0,xt=-1,St=!1}var fe,ne,pe,rs,Et=!0;function xr(t){Et=!1,t(),Et=!0}function Er(t){fe=t.reactive,pe=t.release,ne=e=>t.effect(e,{scheduler:i=>{Et?_r(i):i()}}),rs=t.raw}function Ui(t){ne=t}function Ar(t){let e=()=>{};return[s=>{let n=ne(s);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach(r=>r())}),t._x_effects.add(n),e=()=>{n!==void 0&&(t._x_effects.delete(n),pe(n))},n},()=>{e()}]}function as(t,e){let i=!0,s,n=ne(()=>{let r=t();JSON.stringify(r),i?s=r:queueMicrotask(()=>{e(r,s),s=r}),i=!1});return()=>pe(n)}var os=[],ls=[],cs=[];function Pr(t){cs.push(t)}function Nt(t,e){typeof e=="function"?(t._x_cleanups||(t._x_cleanups=[]),t._x_cleanups.push(e)):(e=t,ls.push(e))}function ds(t){os.push(t)}function hs(t,e,i){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[e]||(t._x_attributeCleanups[e]=[]),t._x_attributeCleanups[e].push(i)}function us(t,e){t._x_attributeCleanups&&Object.entries(t._x_attributeCleanups).forEach(([i,s])=>{(e===void 0||e.includes(i))&&(s.forEach(n=>n()),delete t._x_attributeCleanups[i])})}function Ir(t){if(t._x_cleanups)for(;t._x_cleanups.length;)t._x_cleanups.pop()()}var $t=new MutationObserver(qt),Bt=!1;function Zt(){$t.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Bt=!0}function fs(){Tr(),$t.disconnect(),Bt=!1}var ye=[];function Tr(){let t=$t.takeRecords();ye.push(()=>t.length>0&&qt(t));let e=ye.length;queueMicrotask(()=>{if(ye.length===e)for(;ye.length>0;)ye.shift()()})}function L(t){if(!Bt)return t();fs();let e=t();return Zt(),e}var Ht=!1,je=[];function Cr(){Ht=!0}function Lr(){Ht=!1,qt(je),je=[]}function qt(t){if(Ht){je=je.concat(t);return}let e=new Set,i=new Set,s=new Map,n=new Map;for(let r=0;r<t.length;r++)if(!t[r].target._x_ignoreMutationObserver&&(t[r].type==="childList"&&(t[r].addedNodes.forEach(a=>a.nodeType===1&&e.add(a)),t[r].removedNodes.forEach(a=>a.nodeType===1&&i.add(a))),t[r].type==="attributes")){let a=t[r].target,o=t[r].attributeName,l=t[r].oldValue,c=()=>{s.has(a)||s.set(a,[]),s.get(a).push({name:o,value:a.getAttribute(o)})},d=()=>{n.has(a)||n.set(a,[]),n.get(a).push(o)};a.hasAttribute(o)&&l===null?c():a.hasAttribute(o)?(d(),c()):d()}n.forEach((r,a)=>{us(a,r)}),s.forEach((r,a)=>{os.forEach(o=>o(a,r))});for(let r of i)e.has(r)||ls.forEach(a=>a(r));e.forEach(r=>{r._x_ignoreSelf=!0,r._x_ignore=!0});for(let r of e)i.has(r)||r.isConnected&&(delete r._x_ignoreSelf,delete r._x_ignore,cs.forEach(a=>a(r)),r._x_ignore=!0,r._x_ignoreSelf=!0);e.forEach(r=>{delete r._x_ignoreSelf,delete r._x_ignore}),e=null,i=null,s=null,n=null}function ps(t){return Pe(he(t))}function Ae(t,e,i){return t._x_dataStack=[e,...he(i||t)],()=>{t._x_dataStack=t._x_dataStack.filter(s=>s!==e)}}function he(t){return t._x_dataStack?t._x_dataStack:typeof ShadowRoot=="function"&&t instanceof ShadowRoot?he(t.host):t.parentNode?he(t.parentNode):[]}function Pe(t){return new Proxy({objects:t},Or)}var Or={ownKeys({objects:t}){return Array.from(new Set(t.flatMap(e=>Object.keys(e))))},has({objects:t},e){return e==Symbol.unscopables?!1:t.some(i=>Object.prototype.hasOwnProperty.call(i,e)||Reflect.has(i,e))},get({objects:t},e,i){return e=="toJSON"?Mr:Reflect.get(t.find(s=>Reflect.has(s,e))||{},e,i)},set({objects:t},e,i,s){let n=t.find(a=>Object.prototype.hasOwnProperty.call(a,e))||t[t.length-1],r=Object.getOwnPropertyDescriptor(n,e);return r?.set&&r?.get?r.set.call(s,i)||!0:Reflect.set(n,e,i)}};function Mr(){return Reflect.ownKeys(this).reduce((e,i)=>(e[i]=Reflect.get(this,i),e),{})}function ms(t){let e=s=>typeof s=="object"&&!Array.isArray(s)&&s!==null,i=(s,n="")=>
vendor: 14,572 bytes, lines 1-5
1{Object.entries(Object.getOwnPropertyDescriptors(s)).forEach(([r,{value:a,enumerable:o}])=>{if(o===!1||a===void 0||typeof a=="object"&&a!==null&&a.__v_skip)return;let l=n===""?r:`${n}.${r}`;typeof a=="object"&&a!==null&&a._x_interceptor?s[r]=a.initialize(t,l,r):e(a)&&a!==s&&!(a instanceof Element)&&i(a,l)})};return i(t)}function gs(t,e=()=>{}){let i={initialValue:void 0,_x_interceptor:!0,initialize(s,n,r){return t(this.initialValue,()=>Dr(s,n),a=>At(s,n,a),n,r)}};return e(i),s=>{if(typeof s=="object"&&s!==null&&s._x_interceptor){let n=i.initialize.bind(i);i.initialize=(r,a,o)=>{let l=s.initialize(r,a,o);return i.initialValue=l,n(r,a,o)}}else i.initialValue=s;return i}}function Dr(t,e){return e.split(".").reduce((i,s)=>i[s],t)}function At(t,e,i){if(typeof e=="string"&&(e=e.split(".")),e.length===1)t[e[0]]=i;else{if(e.length===0)throw error;return t[e[0]]||(t[e[0]]={}),At(t[e[0]],e.slice(1),i)}}var vs={};function B(t,e){vs[t]=e}function Pt(t,e){return Object.entries(vs).forEach(([i,s])=>{let n=null;function r(){if(n)return n;{let[a,o]=xs(e);return n={interceptor:gs,...a},Nt(e,o),n}}Object.defineProperty(t,`$${i}`,{get(){return s(e,r())},enumerable:!1})}),t}function zr(t,e,i,...s){try{return i(...s)}catch(n){Ee(n,t,e)}}function Ee(t,e,i=void 0){t=Object.assign(t??{message:"No error message given."},{el:e,expression:i}),console.warn(`Alpine Expression Error: ${t.message}
2
3${i?'Expression: "'+i+`"
4
5`:""}`,e),setTimeout(()=>{throw t},0)}var Ue=!0;function ys(t){let e=Ue;Ue=!1;let i=t();return Ue=e,i}function te(t,e,i={}){let s;return D(t,e)(n=>s=n,i),s}function D(...t){return _s(...t)}var _s=bs;function kr(t){_s=t}function bs(t,e){let i={};Pt(i,t);let s=[i,...he(t)],n=typeof e=="function"?Rr(s,e):Nr(s,e,t);return zr.bind(null,t,e,n)}function Rr(t,e){return(i=()=>{},{scope:s={},params:n=[]}={})=>{let r=e.apply(Pe([s,...t]),n);Ve(i,r)}}var gt={};function Fr(t,e){if(gt[t])return gt[t];let i=Object.getPrototypeOf(async function(){}).constructor,s=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t,r=(()=>{try{let a=new i(["__self","scope"],`with (scope) { __self.result = ${s} }; __self.finished = true; return __self.result;`);return Object.defineProperty(a,"name",{value:`[Alpine] ${t}`}),a}catch(a){return Ee(a,e,t),Promise.resolve()}})();return gt[t]=r,r}function Nr(t,e,i){let s=Fr(e,i);return(n=()=>{},{scope:r={},params:a=[]}={})=>{s.result=void 0,s.finished=!1;let o=Pe([r,...t]);if(typeof s=="function"){let l=s(s,o).catch(c=>Ee(c,i,e));s.finished?(Ve(n,s.result,o,a,i),s.result=void 0):l.then(c=>{Ve(n,c,o,a,i)}).catch(c=>Ee(c,i,e)).finally(()=>s.result=void 0)}}}function Ve(t,e,i,s,n){if(Ue&&typeof e=="function"){let r=e.apply(i,s);r instanceof Promise?r.then(a=>Ve(t,a,i,s)).catch(a=>Ee(a,n,e)):t(r)}else typeof e=="object"&&e instanceof Promise?e.then(r=>t(r)):t(e)}var Ut="x-";function me(t=""){return Ut+t}function $r(t){Ut=t}var Ke={};function I(t,e){return Ke[t]=e,{before(i){if(!Ke[i]){console.warn(String.raw`Cannot find directive \`${i}\`. \`${t}\` will use the default order of execution`);return}let s=Q.indexOf(i);Q.splice(s>=0?s:Q.indexOf("DEFAULT"),0,t)}}}function Br(t){return Object.keys(Ke).includes(t)}function Wt(t,e,i){if(e=Array.from(e),t._x_virtualDirectives){let r=Object.entries(t._x_virtualDirectives).map(([o,l])=>({name:o,value:l})),a=ws(r);r=r.map(o=>a.find(l=>l.name===o.name)?{name:`x-bind:${o.name}`,value:`"${o.value}"`}:o),e=e.concat(r)}let s={};return e.map(Ps((r,a)=>s[r]=a)).filter(Ts).map(qr(s,i)).sort(Ur).map(r=>Hr(t,r))}function ws(t){return Array.from(t).map(Ps()).filter(e=>!Ts(e))}var It=!1,we=new Map,Ss=Symbol();function Zr(t){It=!0;let e=Symbol();Ss=e,we.set(e,[]);let i=()=>{for(;we.get(e).length;)we.get(e).shift()();we.delete(e)},s=()=>{It=!1,i()};t(i),s()}function xs(t){let e=[],i=o=>e.push(o),[s,n]=Ar(t);return e.push(n),[{Alpine:Te,effect:s,cleanup:i,evaluateLater:D.bind(D,t),evaluate:te.bind(te,t)},()=>e.forEach(o=>o())]}function Hr(t,e){let i=()=>{},s=Ke[e.type]||i,[n,r]=xs(t);hs(t,e.original,r);let a=()=>{t._x_ignore||t._x_ignoreSelf||(s.inline&&s.inline(t,e,n),s=s.bind(s,t,e,n),It?we.get(Ss).push(s):s())};return a.runCleanups=r,a}var Es=(t,e)=>({name:i,value:s})=>(i.startsWith(t)&&(i=i.replace(t,e)),{name:i,value:s}),As=t=>t;function Ps(t=()=>{}){return({name:e,value:i})=>{let{name:s,value:n}=Is.reduce((r,a)=>a(r),{name:e,value:i});return s!==e&&t(s,e),{name:s,value:n}}}var Is=[];function jt(t){Is.push(t)}function Ts({name:t}){return Cs().test(t)}var Cs=()=>new RegExp(`^${Ut}([^:^.]+)\\b`);function qr(t,e){return({name:i,value:s})=>{let n=i.match(Cs()),r=i.match(/:([a-zA-Z0-9\-_:]+)/),a=i.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],o=e||t[i]||i;return{type:n?n[1]:null,value:r?r[1]:null,modifiers:a.map(l=>l.replace(".","")),expression:s,original:o}}}var Tt="DEFAULT",Q=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Tt,"teleport"];function Ur(t,e){let i=Q.indexOf(t.type)===-1?Tt:t.type,s=Q.indexOf(e.type)===-1?Tt:e.type;return Q.indexOf(i)-Q.indexOf(s)}function Se(t,e,i={}){t.dispatchEvent(new CustomEvent(e,{detail:i,bubbles:!0,composed:!0,cancelable:!0}))}function K(t,e){if(typeof ShadowRoot=="function"&&t instanceof ShadowRoot){Array.from(t.children).forEach(n=>K(n,e));return}let i=!1;if(e(t,()=>i=!0),i)return;let s=t.firstElementChild;for(;s;)K(s,e,!1),s=s.nextElementSibling}function k(t,...e){console.warn(`Alpine Warning: ${t}`,...e)}var Wi=!1;function Wr(){Wi&&k("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Wi=!0,document.body||k("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Se(document,"alpine:init"),Se(document,"alpine:initializing"),Zt(),Pr(e=>W(e,K)),Nt(e=>Rs(e)),ds((e,i)=>{Wt(e,i).forEach(s=>s())});let t=e=>!Ye(e.parentElement,!0);Array.from(document.querySelectorAll(Ms().join(","))).filter(t).forEach(e=>{W(e)}),Se(document,"alpine:initialized"),setTimeout(()=>{Kr()})}var Vt=[],Ls=[];function Os(){return Vt.map(t=>t())}function Ms(){return Vt.concat(Ls).map(t=>t())}function Ds(t){Vt.push(t)}function zs(t){Ls.push(t)}function Ye(t,e=!1){return Ie(t,i=>{if((e?Ms():Os()).some(n=>i.matches(n)))return!0})}function Ie(t,e){if(t){if(e(t))return t;if(t._x_teleportBack&&(t=t._x_teleportBack),!!t.parentElement)return Ie(t.parentElement,e)}}function jr(t){return Os().some(e=>t.matches(e))}var ks=[];function Vr(t){ks.push(t)}function W(t,e=K,i=()=>{}){Zr(()=>{e(t,(s,n)=>{i(s,n),ks.forEach(r=>r(s,n)),Wt(s,s.attributes).forEach(r=>r()),s._x_ignore&&n()})})}function Rs(t,e=K){e(t,i=>{us(i),Ir(i)})}function Kr(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([e,i,s])=>{Br(i)||s.some(n=>{if(document.querySelector(n))return k(`found "${n}", but missing ${e} plugin`),!0})})}var Ct=[],Kt=!1;function Gt(t=()=>{}){return queueMicrotask(()=>{Kt||setTimeout(()=>{Lt()})}),new Promise(e=>{Ct.push(()=>{t(),e()})})}function Lt(){for(Kt=!1;Ct.length;)Ct.shift()()}function Gr(){Kt=!0}function Yt(t,e){return Array.isArray(e)?ji(t,e.join(" ")):typeof e=="object"&&e!==null?Yr(t,e):typeof e=="function"?Yt(t,e()):ji(t,e)}function ji(t,e){let i=r=>r.split(" ").filter(Boolean),s=r=>r.split(" ").filter(a=>!t.classList.contains(a)).filter(Boolean),n=r=>(t.classList.add(...r),()=>{t.classList.remove(...r)});return e=e===!0?e="":e||"",n(s(e))}function Yr(t,e){let i=o=>o.split(" ").filter(Boolean),s=Object.entries(e).flatMap(([o,l])=>l?i(o):!1).filter(Boolean),n=Object.entries(e).flatMap(([o,l])=>l?!1:i(o)).filter(Boolean),r=[],a=[];return n.forEach(o=>{t.classList.contains(o)&&(t.classList.remove(o),a.push(o))}),s.forEach(o=>{t.classList.contains(o)||(t.classList.add(o),r.push(o))}),()=>{a.forEach(o=>t.classList.add(o)),r.forEach(o=>t.classList.remove(o))}}function Xe(t,e){return typeof e=="object"&&e!==null?Xr(t,e):Jr(t,e)}function Xr(t,e){let i={};return Object.entries(e).forEach(([s,n])=>{i[s]=t.style[s],s.startsWith("--")||(s=Qr(s)),t.style.setProperty(s,n)}),setTimeout(()=>{t.style.length===0&&t.removeAttribute("style")}),()=>{Xe(t,i)}}function Jr(t,e){let i=t.getAttribute("style",e);return t.setAttribute("style",e),()=>{t.setAttribute("style",i||"")}}function Qr(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ot(t,e=()=>{}){let i=!1;return function(){i?e.apply(this,arguments):(i=!0,t.apply(this,arguments))}}I("transition",(t,{value:e,modifiers:i,expression:s},{evaluate:n})=>{typeof s=="function"&&(s=n(s)),s!==!1&&(!s||typeof s=="boolean"?ta(t,i,e):ea(t,s,e))});function ea(t,e,i){Fs(t,Yt,""),{enter:n=>{t._x_transition.enter.during=n},"enter-start":n=>{t._x_transition.enter.start=n},"enter-end":n=>{t._x_transition.enter.end=n},leave:n=>{t._x_transition.leave.during=n},"leave-start":n=>{t._x_transition.leave.start=n},"leave-end":n=>{t._x_transition.leave.end=n}}[i](e)}function ta(t,e,i){Fs(t,Xe);let s=!e.includes("in")&&!e.includes("out")&&!i,n=s||e.includes("in")||["enter"].includes(i),r=s||e.includes("out")||["leave"].includes(i);e.includes("in")&&!s&&(e=e.filter((b,x)=>x<e.indexOf("out"))),e.includes("out")&&!s&&(e=e.filter((b,x)=>x>e.indexOf("out")));let a=!e.includes("opacity")&&!e.includes("scale"),o=a||e.includes("opacity"),l=a||e.includes("scale"),c=o?0:1,d=l?_e(e,"scale",95)/100:1,h=_e(e,"delay",0)/1e3,p=_e(e,"origin","center"),f="opacity, transform",y=_e(e,"duration",150)/1e3,E=_e(e,"duration",75)/1e3,v="cubic-bezier(0.4, 0.0, 0.2, 1)";n&&(t._x_transition.enter.during={transformOrigin:p,transitionDelay:`${h}s`,transitionProperty:f,transitionDuration:`${y}s`,transitionTimingFunction:v},t._x_transition.enter.start={opacity:c,transform:`scale(${d})`},t._x_transition.enter.end={opacity:1,transform:"scale(1)"}),r&&(t._x_transition.leave.during={transformOrigin:p,transitionDelay:`${h}s`,transitionProperty:f,transitionDuration:`${E}s`,transitionTimingFunction:v},t._x_transition.leave.start={opacity:1,transform:"scale(1)"},t._x_transition.leave.end={opacity:c,transform:`scale(${d})`})}function Fs(t,e,i={}){t._x_transition||(t._x_transition={enter:{during:i,start:i,end:i},leave:{during:i,start:i,end:i},in(s=()=>{},n=()=>{}){Mt(t,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},s,n)},out(s=()=>{},n=()=>{}){Mt(t,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},s,n)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(t,e,i,s){let n=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,r=()=>n(i);if(e){t._x_transition&&(t._x_transition.enter||t._x_transition.leave)?t._x_transition.enter&&(Object.entries(t._x_transition.enter.during).length||Object.entries(t._x_transition.enter.start).length||Object.entries(t._x_transition.enter.end).length)?t._x_transition.in(i):r():t._x_transition?t._x_transition.in(i):r();return}t._x_hidePromise=t._x_transition?new Promise((a,o)=>{t._x_transition.out(()=>{},()=>a(s)),t._x_transitioning&&t._x_transitioning.beforeCancel(()=>o({isFromCancelledTransition:!0}))}):Promise.resolve(s),queueMicrotask(()=>{let a=Ns(t);a?(a._x_hideChildren||(a._x_hideChildren=[]),a._x_hideChildren.push(t)):n(()=>{let o=l=>{let c=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(o)]).then(([d])=>d?.());return delete l._x_hidePromise,delete l._x_hideChildren,c};o(t).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function Ns(t){let e=t.parentNode;if(e)return e._x_hidePromise?e:Ns(e)}function Mt(t,e,{during:i,start:s,end:n}={},r=()=>{},a=()=>{}){if(t._x_transitioning&&t._x_transitioning.cancel(),Object.keys(i).length===0&&Object.keys(s).length===0&&Object.keys(n).length===0){r(),a();return}let o,l,c;ia(t,{start(){o=e(t,s)},during(){l=e(t,i)},before:r,end(){o(),c=e(t,n)},after:a,cleanup(){l(),c()}})}function ia(t,e){let i,s,n,r=Ot(()=>{L(()=>{i=!0,s||e.before(),n||(e.end(),Lt()),e.after(),t.isConnected&&e.cleanup(),delete t._x_transitioning})});t._x_transitioning={beforeCancels:[],beforeCancel(a){this.beforeCancels.push(a)},cancel:Ot(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();r()}),finish:r},L(()=>{e.start(),e.during()}),Gr(),requestAnimationFrame(()=>{if(i)return;let a=Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,o=Number(getComputedStyle(t).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;a===0&&(a=Number(getComputedStyle(t).animationDuration.replace("s",""))*1e3),L(()=>{e.before()}),s=!0,requestAnimationFrame(()=>{i||(L(()=>{e.end()}),Lt(),setTimeout(t._x_transitioning.finish,a+o),n=!0)})})}function _e(t,e,i){if(t.indexOf(e)===-1)return i;let s=t[t.indexOf(e)+1];if(!s||e==="scale"&&isNaN(s))return i;if(e==="duration"||e==="delay"){let n=s.match(/([0-9]+)ms/);if(n)return n[1]}return e==="origin"&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[s,t[t.indexOf(e)+2]].join(" "):s}var G=!1;function X(t,e=()=>{}){return(...i)=>G?e(...i):t(...i)}function sa(t){return(...e)=>G&&t(...e)}var $s=[];function Je(t){$s.push(t)}function na(t,e){$s.forEach(i=>i(t,e)),G=!0,Bs(()=>{W(e,(i,s)=>{s(i,()=>{})})}),G=!1}var Dt=!1;function ra(t,e){e._x_dataStack||(e._x_dataStack=t._x_dataStack),G=!0,Dt=!0,Bs(()=>{aa(e)}),G=!1,Dt=!1}function aa(t){let e=!1;W(t,(s,n)=>{K(s,(r,a)=>{if(e&&jr(r))return a();e=!0,n(r,a)})})}function Bs(t){let e=ne;Ui((i,s)=>{let n=e(i);return pe(n),()=>{}}),t(),Ui(e)}function Zs(t,e,i,s=[]){switch(t._x_bindings||(t._x_bindings=fe({})),t._x_bindings[e]=i,e=s.includes("camel")?pa(e):e,e){case"value":oa(t,i);break;case"style":ca(t,i);break;case"class":la(t,i);break;case"selected":case"checked":da(t,e,i);break;default:Hs(t,e,i);break}}function oa(t,e){if(t.type==="radio")t.attributes.value===void 0&&(t.value=e),window.fromModel&&(typeof e=="boolean"?t.checked=We(t.value)===e:t.checked=Vi(t.value,e));else if(t.type==="checkbox")Number.isInteger(e)?t.value=e:!Array.isArray(e)&&typeof e!="boolean"&&![null,void 0].includes(e)?t.value=String(e):Array.isArray(e)?t.checked=e.some(i=>Vi(i,t.value)):t.checked=!!e;else if(t.tagName==="SELECT")fa(t,e);else{if(t.value===e)return;t.value=e===void 0?"":e}}function la(t,e){t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedClasses=Yt(t,e)}function ca(t,e){t._x_undoAddedStyles&&t._x_undoAddedStyles(),t._x_undoAddedStyles=Xe(t,e)}function da(t,e,i){Hs(t,e,i),ua(t,e,i)}function Hs(t,e,i){[null,void 0,!1].includes(i)&&ma(e)?t.removeAttribute(e):(qs(e)&&(i=e),ha(t,e,i))}function ha(t,e,i){t.getAttribute(e)!=i&&t.setAttribute(e,i)}
5function ua(t,e,i){t[e]!==i&&(t[e]=i)}function fa(t,e){let i=[].concat(e).map(s=>s+"");Array.from(t.options).forEach(s=>{s.selected=i.includes(s.value)})}function pa(t){return t.toLowerCase().replace(/-(\w)/g,(e,i)=>i.toUpperCase())}function Vi(t,e){return t==e}function We(t){return[1,"1","true","on","yes",!0].includes(t)?!0:[0,"0","false","off","no",!1].includes(t)?!1:t?!!t:null}function qs(t){return["disabled","checked","required","readonly","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(t)}function ma(t){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(t)}function ga(t,e,i){return t._x_bindings&&t._x_bindings[e]!==void 0?t._x_bindings[e]:Us(t,e,i)}function va(t,e,i,s=!0){if(t._x_bindings&&t._x_bindings[e]!==void 0)return t._x_bindings[e];if(t._x_inlineBindings&&t._x_inlineBindings[e]!==void 0){let n=t._x_inlineBindings[e];return n.extract=s,ys(()=>te(t,n.expression))}return Us(t,e,i)}function Us(t,e,i){let s=t.getAttribute(e);return s===null?typeof i=="function"?i():i:s===""?!0:qs(e)?!![e,"true"].includes(s):s}function Ws(t,e){var i;return function(){var s=this,n=arguments,r=function(){i=null,t.apply(s,n)};clearTimeout(i),i=setTimeout(r,e)}}function js(t,e){let i;return function(){let s=this,n=arguments;i||(t.apply(s,n),i=!0,setTimeout(()=>i=!1,e))}}function Vs({get:t,set:e},{get:i,set:s}){let n=!0,r,a,o=ne(()=>{let l=t(),c=i();if(n)s(vt(l)),n=!1;else{let d=JSON.stringify(l),h=JSON.stringify(c);d!==r?s(vt(l)):d!==h&&e(vt(c))}r=JSON.stringify(t()),a=JSON.stringify(i())});return()=>{pe(o)}}function vt(t){return typeof t=="object"?JSON.parse(JSON.stringify(t)):t}function ya(t){(Array.isArray(t)?t:[t]).forEach(i=>i(Te))}var J={},Ki=!1;function _a(t,e){if(Ki||(J=fe(J),Ki=!0),e===void 0)return J[t];J[t]=e,typeof e=="object"&&e!==null&&e.hasOwnProperty("init")&&typeof e.init=="function"&&J[t].init(),ms(J[t])}function ba(){return J}var Ks={};function wa(t,e){let i=typeof e!="function"?()=>e:e;return t instanceof Element?Gs(t,i()):(Ks[t]=i,()=>{})}function Sa(t){return Object.entries(Ks).forEach(([e,i])=>{Object.defineProperty(t,e,{get(){return(...s)=>i(...s)}})}),t}function Gs(t,e,i){let s=[];for(;s.length;)s.pop()();let n=Object.entries(e).map(([a,o])=>({name:a,value:o})),r=ws(n);return n=n.map(a=>r.find(o=>o.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),Wt(t,n,i).map(a=>{s.push(a.runCleanups),a()}),()=>{for(;s.length;)s.pop()()}}var Ys={};function xa(t,e){Ys[t]=e}function Ea(t,e){return Object.entries(Ys).forEach(([i,s])=>{Object.defineProperty(t,i,{get(){return(...n)=>s.bind(e)(...n)},enumerable:!1})}),t}var Aa={get reactive(){return fe},get release(){return pe},get effect(){return ne},get raw(){return rs},version:"3.14.1",flushAndStopDeferringMutations:Lr,dontAutoEvaluateFunctions:ys,disableEffectScheduling:xr,startObservingMutations:Zt,stopObservingMutations:fs,setReactivityEngine:Er,onAttributeRemoved:hs,onAttributesAdded:ds,closestDataStack:he,skipDuringClone:X,onlyDuringClone:sa,addRootSelector:Ds,addInitSelector:zs,interceptClone:Je,addScopeToNode:Ae,deferMutations:Cr,mapAttributes:jt,evaluateLater:D,interceptInit:Vr,setEvaluator:kr,mergeProxies:Pe,extractProp:va,findClosest:Ie,onElRemoved:Nt,closestRoot:Ye,destroyTree:Rs,interceptor:gs,transition:Mt,setStyles:Xe,mutateDom:L,directive:I,entangle:Vs,throttle:js,debounce:Ws,evaluate:te,initTree:W,nextTick:Gt,prefixed:me,prefix:$r,plugin:ya,magic:B,store:_a,start:Wr,clone:ra,cloneNode:na,bound:ga,$data:ps,watch:as,walk:K,data:xa,bind:wa},Te=Aa;function Xs(t,e){let i=Object.create(null),s=t.split(",");for(let n=0;n<s.length;n++)i[s[n]]=!0;return e?n=>!!i[n.toLowerCase()]:n=>!!i[n]}var Pa="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Hl=Xs(Pa+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),Ia=Object.freeze({}),ql=Object.freeze([]),Ta=Object.prototype.hasOwnProperty,Qe=(t,e)=>Ta.call(t,e),ie=Array.isArray,xe=t=>Js(t)==="[object Map]",Ca=t=>typeof t=="string",Xt=t=>typeof t=="symbol",et=t=>t!==null&&typeof t=="object",La=Object.prototype.toString,Js=t=>La.call(t),Qs=t=>Js(t).slice(8,-1),Jt=t=>Ca(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,tt=t=>{let e=Object.create(null);return i=>e[i]||(e[i]=t(i))},Oa=/-(\w)/g,Ul=tt(t=>t.replace(Oa,(e,i)=>i?i.toUpperCase():"")),Ma=/\B([A-Z])/g,Wl=tt(t=>t.replace(Ma,"-$1").toLowerCase()),en=tt(t=>t.charAt(0).toUpperCase()+t.slice(1)),jl=tt(t=>t?`on${en(t)}`:""),tn=(t,e)=>t!==e&&(t===t||e===e),zt=new WeakMap,be=[],H,se=Symbol("iterate"),kt=Symbol("Map key iterate");function Da(t){return t&&t._isEffect===!0}function za(t,e=Ia){Da(t)&&(t=t.raw);let i=Fa(t,e);return e.lazy||i(),i}function ka(t){t.active&&(sn(t),t.options.onStop&&t.options.onStop(),t.active=!1)}var Ra=0;function Fa(t,e){let i=function(){if(!i.active)return t();if(!be.includes(i)){sn(i);try{return $a(),be.push(i),H=i,t()}finally{be.pop(),nn(),H=be[be.length-1]}}};return i.id=Ra++,i.allowRecurse=!!e.allowRecurse,i._isEffect=!0,i.active=!0,i.raw=t,i.deps=[],i.options=e,i}function sn(t){let{deps:e}=t;if(e.length){for(let i=0;i<e.length;i++)e[i].delete(t);e.length=0}}var ue=!0,Qt=[];function Na(){Qt.push(ue),ue=!1}function $a(){Qt.push(ue),ue=!0}function nn(){let t=Qt.pop();ue=t===void 0?!0:t}function N(t,e,i){if(!ue||H===void 0)return;let s=zt.get(t);s||zt.set(t,s=new Map);let n=s.get(i);n||s.set(i,n=new Set),n.has(H)||(n.add(H),H.deps.push(n),H.options.onTrack&&H.options.onTrack({effect:H,target:t,type:e,key:i}
5))}function Y(t,e,i,s,n,r){let a=zt.get(t);if(!a)return;let o=new Set,l=d=>{d&&d.forEach(h=>{(h!==H||h.allowRecurse)&&o.add(h)})};if(e==="clear")a.forEach(l);else if(i==="length"&&ie(t))a.forEach((d,h)=>{(h==="length"||h>=s)&&l(d)});else switch(i!==void 0&&l(a.get(i)),e){case"add":ie(t)?Jt(i)&&l(a.get("length")):(l(a.get(se)),xe(t)&&l(a.get(kt)));break;case"delete":ie(t)||(l(a.get(se)),xe(t)&&l(a.get(kt)));break;case"set":xe(t)&&l(a.get(se));break}let c=d=>{d.options.onTrigger&&d.options.onTrigger({effect:d,target:t,key:i,type:e,newValue:s,oldValue:n,oldTarget:r}),d.options.scheduler?d.options.scheduler(d):d()};o.forEach(c)}var Ba=Xs("__proto__,__v_isRef,__isVue"),rn=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(Xt)),Za=an(),Ha=an(!0),Gi=qa();function qa(){let t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...i){let s=S(this);for(let r=0,a=this.length;r<a;r++)N(s,"get",r+"");let n=s[e](...i);return n===-1||n===!1?s[e](...i.map(S)):n}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...i){Na();let s=S(this)[e].apply(this,i);return nn(),s}}),t}function an(t=!1,e=!1){return function(s,n,r){if(n==="__v_isReactive")return!t;if(n==="__v_isReadonly")return t;if(n==="__v_raw"&&r===(t?e?ro:dn:e?no:cn).get(s))return s;let a=ie(s);if(!t&&a&&Qe(Gi,n))return Reflect.get(Gi,n,r);let o=Reflect.get(s,n,r);return(Xt(n)?rn.has(n):Ba(n))||(t||N(s,"get",n),e)?o:Rt(o)?!a||!Jt(n)?o.value:o:et(o)?t?hn(o):si(o):o}}var Ua=Wa();function Wa(t=!1){return function(i,s,n,r){let a=i[s];if(!t&&(n=S(n),a=S(a),!ie(i)&&Rt(a)&&!Rt(n)))return a.value=n,!0;let o=ie(i)&&Jt(s)?Number(s)<i.length:Qe(i,s),l=Reflect.set(i,s,n,r);return i===S(r)&&(o?tn(n,a)&&Y(i,"set",s,n,a):Y(i,"add",s,n)),l}}function ja(t,e){let i=Qe(t,e),s=t[e],n=Reflect.deleteProperty(t,e);return n&&i&&Y(t,"delete",e,void 0,s),n}function Va(t,e){let i=Reflect.has(t,e);return(!Xt(e)||!rn.has(e))&&N(t,"has",e),i}function Ka(t){return N(t,"iterate",ie(t)?"length":se),Reflect.ownKeys(t)}var Ga={get:Za,set:Ua,deleteProperty:ja,has:Va,ownKeys:Ka},Ya={get:Ha,set(t,e){return console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0},deleteProperty(t,e){return console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}},ei=t=>et(t)?si(t):t,ti=t=>et(t)?hn(t):t,ii=t=>t,it=t=>Reflect.getPrototypeOf(t);function $e(t,e,i=!1,s=!1){t=t.__v_raw;let n=S(t),r=S(e);e!==r&&!i&&N(n,"get",e),!i&&N(n,"get",r);let{has:a}=it(n),o=s?ii:i?ti:ei;if(a.call(n,e))return o(t.get(e));if(a.call(n,r))return o(t.get(r));t!==n&&t.get(e)}function Be(t,e=!1){let i=this.__v_raw,s=S(i),n=S(t);return t!==n&&!e&&N(s,"has",t),!e&&N(s,"has",n),t===n?i.has(t):i.has(t)||i.has(n)}function Ze(t,e=!1){return t=t.__v_raw,!e&&N(S(t),"iterate",se),Reflect.get(t,"size",t)}function Yi(t){t=S(t);let e=S(this);return it(e).has.call(e,t)||(e.add(t),Y(e,"add",t,t)),this}function Xi(t,e){e=S(e);let i=S(this),{has:s,get:n}=it(i),r=s.call(i,t);r?ln(i,s,t):(t=S(t),r=s.call(i,t));let a=n.call(i,t);return i.set(t,e),r?tn(e,a)&&Y(i,"set",t,e,a):Y(i,"add",t,e),this}function Ji(t){let e=S(this),{has:i,get:s}=it(e),n=i.call(e,t);n?ln(e,i,t):(t=S(t),n=i.call(e,t));
5let r=s?s.call(e,t):void 0,a=e.delete(t);return n&&Y(e,"delete",t,void 0,r),a}function Qi(){let t=S(this),e=t.size!==0,i=xe(t)?new Map(t):new Set(t),s=t.clear();return e&&Y(t,"clear",void 0,void 0,i),s}function He(t,e){return function(s,n){let r=this,a=r.__v_raw,o=S(a),l=e?ii:t?ti:ei;return!t&&N(o,"iterate",se),a.forEach((c,d)=>s.call(n,l(c),l(d),r))}}function qe(t,e,i){return function(...s){let n=this.__v_raw,r=S(n),a=xe(r),o=t==="entries"||t===Symbol.iterator&&a,l=t==="keys"&&a,c=n[t](...s),d=i?ii:e?ti:ei;return!e&&N(r,"iterate",l?kt:se),{next(){let{value:h,done:p}=c.next();return p?{value:h,done:p}:{value:o?[d(h[0]),d(h[1])]:d(h),done:p}},[Symbol.iterator](){return this}}}}function V(t){return function(...e){{let i=e[0]?`on key "${e[0]}" `:"";console.warn(`${en(t)} operation ${i}failed: target is readonly.`,S(this))}return t==="delete"?!1:this}}function Xa(){let t={get(r){return $e(this,r)},get size(){return Ze(this)},has:Be,add:Yi,set:Xi,delete:Ji,clear:Qi,forEach:He(!1,!1)},e={get(r){return $e(this,r,!1,!0)},get size(){return Ze(this)},has:Be,add:Yi,set:Xi,delete:Ji,clear:Qi,forEach:He(!1,!0)},i={get(r){return $e(this,r,!0)},get size(){return Ze(this,!0)},has(r){return Be.call(this,r,!0)},add:V("add"),set:V("set"),delete:V("delete"),clear:V("clear"),forEach:He(!0,!1)},s={get(r){return $e(this,r,!0,!0)},get size(){return Ze(this,!0)},has(r){return Be.call(this,r,!0)},add:V("add"),set:V("set"),delete:V("delete"),clear:V("clear"),forEach:He(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=qe(r,!1,!1),i[r]=qe(r,!0,!1),e[r]=qe(r,!1,!0),s[r]=qe(r,!0,!0)}),[t,i,e,s]}var[Ja,Qa,eo,to]=Xa();function on(t,e){let i=e?t?to:eo:t?Qa:Ja;return(s,n,r)=>n==="__v_isReactive"?!t:n==="__v_isReadonly"?t:n==="__v_raw"?s:Reflect.get(Qe(i,n)&&n in s?i:s,n,r)}var io={get:on(!1,!1)},so={get:on(!0,!1)};function ln(t,e,i){let s=S(i);if(s!==i&&e.call(t,s)){let n=Qs(t);console.warn(`Reactive ${n} contains both the raw and reactive versions of the same object${n==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var cn=new WeakMap,no=new WeakMap,dn=new WeakMap,ro=new WeakMap;function ao(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function oo(t){return t.__v_skip||!Object.isExtensible(t)?0:ao(Qs(t))}function si(t){return t&&t.__v_isReadonly?t:un(t,!1,Ga,io,cn)}function hn(t){return un(t,!0,Ya,so,dn)}function un(t,e,i,s,n){if(!et(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;let r=n.get(t);if(r)return r;let a=oo(t);if(a===0)return t;let o=new Proxy(t,a===2?s:i);return n.set(t,o),o}function S(t){return t&&S(t.__v_raw)||t}function Rt(t){return!!(t&&t.__v_isRef===!0)}B("nextTick",()=>Gt);B("dispatch",t=>Se.bind(Se,t));B("watch",(t,{evaluateLater:e,cleanup:i})=>(s,n)=>{let r=e(s),o=as(()=>{let l;return r(c=>l=c),l},n);i(o)});B("store",ba);B("data",t=>ps(t));B("root",t=>Ye(t));B("refs",t=>(t._x_refs_proxy||(t._x_refs_proxy=Pe(lo(t))),t._x_refs_proxy));function lo(t){let e=[];return Ie(t,i=>{i._x_refs&&e.push(i._x_refs)}),e}var yt={};function fn(t){return yt[t]||(yt[t]=0),++yt[t]}function co(t,e){return Ie(t,i=>{if(i._x_ids&&i._x_ids[e])return!0})}
vendor: 4,456 bytes, line 5
5function ho(t,e){t._x_ids||(t._x_ids={}),t._x_ids[e]||(t._x_ids[e]=fn(e))}B("id",(t,{cleanup:e})=>(i,s=null)=>{let n=`${i}${s?`-${s}`:""}`;return uo(t,n,e,()=>{let r=co(t,i),a=r?r._x_ids[i]:fn(i);return s?`${i}-${a}-${s}`:`${i}-${a}`})});Je((t,e)=>{t._x_id&&(e._x_id=t._x_id)});function uo(t,e,i,s){if(t._x_id||(t._x_id={}),t._x_id[e])return t._x_id[e];let n=s();return t._x_id[e]=n,i(()=>{delete t._x_id[e]}),n}B("el",t=>t);pn("Focus","focus","focus");pn("Persist","persist","persist");function pn(t,e,i){B(e,s=>k(`You can't use [$${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${i}`,s))}I("modelable",(t,{expression:e},{effect:i,evaluateLater:s,cleanup:n})=>{let r=s(e),a=()=>{let d;return r(h=>d=h),d},o=s(`${e} = __placeholder`),l=d=>o(()=>{},{scope:{__placeholder:d}}),c=a();l(c),queueMicrotask(()=>{if(!t._x_model)return;t._x_removeModelListeners.default();let d=t._x_model.get,h=t._x_model.set,p=Vs({get(){return d()},set(f){h(f)}},{get(){return a()},set(f){l(f)}});n(p)})});I("teleport",(t,{modifiers:e,expression:i},{cleanup:s})=>{t.tagName.toLowerCase()!=="template"&&k("x-teleport can only be used on a <template> tag",t);let n=es(i),r=t.content.cloneNode(!0).firstElementChild;t._x_teleport=r,r._x_teleportBack=t,t.setAttribute("data-teleport-template",!0),r.setAttribute("data-teleport-target",!0),t._x_forwardEvents&&t._x_forwardEvents.forEach(o=>{r.addEventListener(o,l=>{l.stopPropagation(),t.dispatchEvent(new l.constructor(l.type,l))})}),Ae(r,{},t);let a=(o,l,c)=>{c.includes("prepend")?l.parentNode.insertBefore(o,l):c.includes("append")?l.parentNode.insertBefore(o,l.nextSibling):l.appendChild(o)};L(()=>{a(r,n,e),X(()=>{W(r),r._x_ignore=!0})()}),t._x_teleportPutBack=()=>{let o=es(i);L(()=>{a(t._x_teleport,o,e)})},s(()=>r.remove())});var fo=document.createElement("div");function es(t){let e=X(()=>document.querySelector(t),()=>fo)();return e||k(`Cannot find x-teleport element for selector: "${t}"`),e}var mn=()=>{};mn.inline=(t,{modifiers:e},{cleanup:i})=>{e.includes("self")?t._x_ignoreSelf=!0:t._x_ignore=!0,i(()=>{e.includes("self")?delete t._x_ignoreSelf:delete t._x_ignore})};I("ignore",mn);I("effect",X((t,{expression:e},{effect:i})=>{i(D(t,e))}));function Ft(t,e,i,s){let n=t,r=l=>s(l),a={},o=(l,c)=>d=>c(l,d);if(i.includes("dot")&&(e=po(e)),i.includes("camel")&&(e=mo(e)),i.includes("passive")&&(a.passive=!0),i.includes("capture")&&(a.capture=!0),i.includes("window")&&(n=window),i.includes("document")&&(n=document),i.includes("debounce")){let l=i[i.indexOf("debounce")+1]||"invalid-wait",c=Ge(l.split("ms")[0])?Number(l.split("ms")[0]):250;r=Ws(r,c)}if(i.includes("throttle")){let l=i[i.indexOf("throttle")+1]||"invalid-wait",c=Ge(l.split("ms")[0])?Number(l.split("ms")[0]):250;r=js(r,c)}return i.includes("prevent")&&(r=o(r,(l,c)=>{c.preventDefault(),l(c)})),i.includes("stop")&&(r=o(r,(l,c)=>{c.stopPropagation(),l(c)})),i.includes("once")&&(r=o(r,(l,c)=>{l(c),n.removeEventListener(e,r,a)})),(i.includes("away")||i.includes("outside"))&&(n=document,r=o(r,(l,c)=>{t.contains(c.target)||c.target.isConnected!==!1&&(t.offsetWidth<1&&t.offsetHeight<1||t._x_isShown!==!1&&l(c))})),i.includes("self")&&(r=o(r,(l,c)=>{c.target===t&&l(c)})),(vo(e)||gn(e))&&(r=o(r,(l,c)=>{yo(c,i)||l(c)})),n.addEventListener(e,r,a),()=>{n.removeEventListener(e,r,a)}}function po(t){return t.replace(/-/g,".")}function mo(t){return t.toLowerCase().replace(/-(\w)/g,(e,i)=>i.toUpperCase())}function Ge(t){return!Array.isArray(t)&&!isNaN(t)}function go(t){return[" ","_"].includes(t)?t:t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function vo(t){return["keydown","keyup"].includes(t)}function gn(t){return["contextmenu","click","mouse"].some(e=>t.includes(e))}function yo(t,e){let i=e.filter(r=>!["window","document","prevent","stop","once","capture","self","away","outside","passive"].includes(r));if(i.includes("debounce")){let r=i.indexOf("debounce");i.splice(r,Ge((i[r+1]||"invalid-wait").split("ms")[0])?2:1)}if(i.includes("throttle")){let r=i.indexOf("throttle");i.splice(r,Ge((i[r+1]||"invalid-wait").split("ms")[0])?2:1)}if(i.length===0||i.length===1&&ts(t.key).includes(i[0]))return!1;let n=["ctrl","shift","alt","meta","cmd","super"].filter(r=>i.includes(r));return i=i.filter(r=>!n.includes(r)),!(n.length>0&&n.filter(a=>((a==="cmd"||a==="super")&&(a="meta"),t[`${a}Key`])).length===n.length&&(gn(t.type)||ts(t.key).includes(i[0])))}function ts(t){if(!t)return[];t=go(t);
5let e={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return e[t]=t,Object.keys(e).map(i=>{if(e[i]===t)return i}).filter(i=>i)}I("model",(t,{modifiers:e,expression:i},{effect:s,cleanup:n})=>{let r=t;e.includes("parent")&&(r=t.parentNode);let a=D(r,i),o;typeof i=="string"?o=D(r,`${i} = __placeholder`):typeof i=="function"&&typeof i()=="string"?o=D(r,`${i()} = __placeholder`):o=()=>{};let l=()=>{let p;return a(f=>p=f),is(p)?p.get():p},c=p=>{let f;a(y=>f=y),is(f)?f.set(p):o(()=>{},{scope:{__placeholder:p}})};typeof i=="string"&&t.type==="radio"&&L(()=>{t.hasAttribute("name")||t.setAttribute("name",i)});var d=t.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(t.type)||e.includes("lazy")?"change":"input";let h=G?()=>{}:Ft(t,d,e,p=>{c(_t(t,e,p,l()))});if(e.includes("fill")&&([void 0,null,""].includes(l())||t.type==="checkbox"&&Array.isArray(l())||t.tagName.toLowerCase()==="select"&&t.multiple)&&c(_t(t,e,{target:t},l())),t._x_removeModelListeners||(t._x_removeModelListeners={}),t._x_removeModelListeners.default=h,n(()=>t._x_removeModelListeners.default()),t.form){let p=Ft(t.form,"reset",[],f=>{Gt(()=>t._x_model&&t._x_model.set(_t(t,e,{target:t},l())))});n(()=>p())}t._x_model={get(){return l()},set(p){c(p)}},t._x_forceModelUpdate=p=>{p===void 0&&typeof i=="string"&&i.match(/\./)&&(p=""),window.fromModel=!0,L(()=>Zs(t,"value",p)),delete window.fromModel},s(()=>{let p=l();e.includes("unintrusive")&&document.activeElement.isSameNode(t)||t._x_forceModelUpdate(p)})});function _t(t,e,i,s){return L(()=>{if(i instanceof CustomEvent&&i.detail!==void 0)return i.detail!==null&&i.detail!==void 0?i.detail:i.target.value;if(t.type==="checkbox")if(Array.isArray(s)){let n=null;return e.includes("number")?n=bt(i.target.value):e.includes("boolean")?n=We(i.target.value):n=i.target.value,i.target.checked?s.includes(n)?s:s.concat([n]):s.filter(r=>!_o(r,n))}else return i.target.checked;else{if(t.tagName.toLowerCase()==="select"&&t.multiple)return e.includes("number")?Array.from(i.target.selectedOptions).map(n=>{let r=n.value||n.text;return bt(r)}):e.includes("boolean")?Array.from(i.target.selectedOptions).map(n=>{let r=n.value||n.text;return We(r)}):Array.from(i.target.selectedOptions).map(n=>n.value||n.text);{let n;return t.type==="radio"?i.target.checked?n=i.target.value:n=s:n=i.target.value,e.includes("number")?bt(n):e.includes("boolean")?We(n):e.includes("trim")?n.trim():n}}})}function bt(t){let e=t?parseFloat(t):null;return bo(e)?e:t}function _o(t,e){return t==e}function bo(t){return!Array.isArray(t)&&!isNaN(t)}function is(t){return t!==null&&typeof t=="object"&&typeof t.get=="function"&&typeof t.set=="function"}I("cloak",t=>queueMicrotask(()=>L(()=>t.removeAttribute(me("cloak")))));zs(()=>`[${me("init")}]`);I("init",X((t,{expression:e},{evaluate:i})=>typeof e=="string"?!!e.trim()&&i(e,{},!1):i(e,{},!1)));I("text",(t,{expression:e},{effect:i,evaluateLater:s})=>{let n=s(e);i(()=>{n(r=>{L(()=>{t.textContent=r})})})});I("html",(t,{expression:e},{effect:i,evaluateLater:s})=>{let n=s(e);i(()=>{n(r=>{L(()=>{t.innerHTML=r,t._x_ignoreSelf=!0,W(t),delete t._x_ignoreSelf})})})});jt(Es(":",As(me("bind:"))));var vn=(t,{value:e,modifiers:i,expression:s,original:n},{effect:r,cleanup:a})=>{if(!e){let l={};Sa(l),D(t,s)(d=>{Gs(t,d,n)},{scope:l});return}if(e==="key")return wo(t,s);if(t._x_inlineBindings&&t._x_inlineBindings[e]&&t._x_inlineBindings[e].extract)return;let o=D(t,s);r(()=>o(l=>{l===void 0&&typeof s=="string"&&s.match(/\./)&&(l=""),L(()=>Zs(t,e,l,i))})),a(()=>{t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedStyles&&t._x_undoAddedStyles()})};vn.inline=(t,{value:e,modifiers:i,expression:s})=>{e&&(t._x_inlineBindings||(t._x_inlineBindings={}),t._x_inlineBindings[e]={expression:s,extract:!1})};I("bind",vn);function wo(t,e){t._x_keyExpression=e}Ds(()=>`[${me("data")}]`);I("data",(t,{expression:e},{cleanup:i})=>{if(So(t))return;e=e===""?"{}":e;let s={};Pt(s,t);let n={};Ea(n,s);let r=te(t,e,{scope:n});(r===void 0||r===!0)&&(r={}),Pt(r,t);let a=fe(r);ms(a);let o=Ae(t,a);a.init&&te(t,a.init),i(()=>{a.destroy&&te(t,a.destroy),o()})});Je((t,e)=>{t._x_dataStack&&(e._x_dataStack=t._x_dataStack,e.setAttribute("data-has-alpine-state",!0))});function So(t){return G?Dt?!0:t.hasAttribute("data-has-alpine-state"):!1}I("show",(t,{modifiers:e,expression:i},{effect:s})=>{let n=D(t,i);t._x_doHide||(t._x_doHide=()=>{L(()=>{t.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),t._x_doShow||(t._x_doShow=()=>{L(()=>{t.style.length===1&&t.style.display==="none"?t.removeAttribute("style"):t.style.removeProperty("display")})});let r=()=>{t._x_doHide(),t._x_isShown=!1},a=()=>{t._x_doShow(),t._x_isShown=!0},o=()=>setTimeout(a),l=Ot(h=>h?a():r(),h=>{typeof t._x_toggleAndCascadeWithTransitions=="function"?t._x_toggleAndCascadeWithTransitions(t,h,a,r):h?o():r()}),c,d=!0;s(()=>n(h=>{!d&&h===c||(e.includes("immediate")&&(h?o():r()),l(h),c=h,d=!1)}))});I("for",(t,{expression:e},{effect:i,cleanup:s})=>{let n=Eo(e),r=D(t,n.items),a=D(t,t._x_keyExpression||"index");t._x_prevKeys=[],t._x_lookup={},i(()=>xo(t,n,r,a)),s(()=>
5{Object.values(t._x_lookup).forEach(o=>o.remove()),delete t._x_prevKeys,delete t._x_lookup})});function xo(t,e,i,s){let n=a=>typeof a=="object"&&!Array.isArray(a),r=t;i(a=>{Ao(a)&&a>=0&&(a=Array.from(Array(a).keys(),v=>v+1)),a===void 0&&(a=[]);let o=t._x_lookup,l=t._x_prevKeys,c=[],d=[];if(n(a))a=Object.entries(a).map(([v,b])=>{let x=ss(e,b,v,a);s(C=>{d.includes(C)&&k("Duplicate key on x-for",t),d.push(C)},{scope:{index:v,...x}}),c.push(x)});else for(let v=0;v<a.length;v++){let b=ss(e,a[v],v,a);s(x=>{d.includes(x)&&k("Duplicate key on x-for",t),d.push(x)},{scope:{index:v,...b}}),c.push(b)}let h=[],p=[],f=[],y=[];for(let v=0;v<l.length;v++){let b=l[v];d.indexOf(b)===-1&&f.push(b)}l=l.filter(v=>!f.includes(v));let E="template";for(let v=0;v<d.length;v++){let b=d[v],x=l.indexOf(b);if(x===-1)l.splice(v,0,b),h.push([E,v]);else if(x!==v){let C=l.splice(v,1)[0],O=l.splice(x-1,1)[0];l.splice(v,0,O),l.splice(x,0,C),p.push([C,O])}else y.push(b);E=b}for(let v=0;v<f.length;v++){let b=f[v];o[b]._x_effects&&o[b]._x_effects.forEach(ns),o[b].remove(),o[b]=null,delete o[b]}for(let v=0;v<p.length;v++){let[b,x]=p[v],C=o[b],O=o[x],w=document.createElement("div");L(()=>{O||k('x-for ":key" is undefined or invalid',r,x,o),O.after(w),C.after(O),O._x_currentIfEl&&O.after(O._x_currentIfEl),w.before(C),C._x_currentIfEl&&C.after(C._x_currentIfEl),w.remove()}),O._x_refreshXForScope(c[d.indexOf(x)])}for(let v=0;v<h.length;v++){let[b,x]=h[v],C=b==="template"?r:o[b];C._x_currentIfEl&&(C=C._x_currentIfEl);
5let O=c[x],w=d[x],u=document.importNode(r.content,!0).firstElementChild,m=fe(O);Ae(u,m,r),u._x_refreshXForScope=_=>{Object.entries(_).forEach(([P,A])=>{m[P]=A})},L(()=>{C.after(u),X(()=>W(u))()}),typeof w=="object"&&k("x-for key cannot be an object, it must be a string or an integer",r),o[w]=u}for(let v=0;v<y.length;v++)o[y[v]]._x_refreshXForScope(c[d.indexOf(y[v])]);r._x_prevKeys=d})}function Eo(t){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,i=/^\s*\(|\)\s*$/g,s=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,n=t.match(s);if(!n)return;let r={};r.items=n[2].trim();let a=n[1].replace(i,"").trim(),o=a.match(e);return o?(r.item=a.replace(e,"").trim(),r.index=o[1].trim(),o[2]&&(r.collection=o[2].trim())):r.item=a,r}function ss(t,e,i,s){let n={};return/^\[.*\]$/.test(t.item)&&Array.isArray(e)?t.item.replace("[","").replace("]","").split(",").map(a=>a.trim()).forEach((a,o)=>{n[a]=e[o]}):/^\{.*\}$/.test(t.item)&&!Array.isArray(e)&&typeof e=="object"?t.item.replace("{","").replace("}","").split(",").map(a=>a.trim()).forEach(a=>{n[a]=e[a]}):n[t.item]=e,t.index&&(n[t.index]=i),t.collection&&(n[t.collection]=s),n}function Ao(t){return!Array.isArray(t)&&!isNaN(t)}function yn(){}yn.inline=(t,{expression:e},{cleanup:i})=>{let s=Ye(t);s._x_refs||(s._x_refs={}),s._x_refs[e]=t,i(()=>delete s._x_refs[e])};I("ref",yn);I("if",(t,{expression:e},{effect:i,cleanup:s})=>{t.tagName.toLowerCase()!=="template"&&k("x-if can only be used on a <template> tag",t);let n=D(t,e),r=()=>{if(t._x_currentIfEl)return t._x_currentIfEl;let o=t.content.cloneNode(!0).firstElementChild;return Ae(o,{},t),L(()=>{t.after(o),X(()=>W(o))()}),t._x_currentIfEl=o,t._x_undoIf=()=>{K(o,l=>{l._x_effects&&l._x_effects.forEach(ns)}),o.remove(),delete t._x_currentIfEl},o},a=()=>{t._x_undoIf&&(t._x_undoIf(),delete t._x_undoIf)};i(()=>n(o=>{o?r():a()})),s(()=>t._x_undoIf&&t._x_undoIf())});I("id",(t,{expression:e},{evaluate:i})=>{i(e).forEach(n=>ho(t,n))});Je((t,e)=>{t._x_ids&&(e._x_ids=t._x_ids)});jt(Es("@",As(me("on:"))));I("on",X((t,{value:e,modifiers:i,expression:s},{cleanup:n})=>{let r=s?D(t,s):()=>{};t.tagName.toLowerCase()==="template"&&(t._x_forwardEvents||(t._x_forwardEvents=[]),t._x_forwardEvents.includes(e)||t._x_forwardEvents.push(e));let a=Ft(t,e,i,o=>{r(()=>{},{scope:{$event:o},params:[o]})});n(()=>a())}));st("Collapse","collapse","collapse");st("Intersect","intersect","intersect");st("Focus","trap","focus");st("Mask","mask","mask");function st(t,e,i){I(e,s=>k(`You can't use [x-${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${i}`,s))}Te.setEvaluator(bs);Te.setReactivityEngine({reactive:si,effect:za,release:ka,raw:S});var Po=Te,g=Po;function Io(t){t.directive("collapse",e),e.inline=(i,{modifiers:s})=>{s.includes("min")&&(i._x_doShow=()=>{},i._x_doHide=()=>{})};function e(i,{modifiers:s}){let n=_n(s,"duration",250)/1e3,r=_n(s,"min",0),a=!s.includes("min");i._x_isShown||(i.style.height=`${r}px`),!i._x_isShown&&a&&(i.hidden=!0),i._x_isShown||(i.style.overflow="hidden");let o=(c,d)=>{let h=t.setStyles(c,d);return d.height?()=>{}:h},l={transitionProperty:"height",transitionDuration:`${n}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};i._x_transition={in(c=()=>{},d=()=>{}){a&&(i.hidden=!1),a&&(i.style.display=null);let h=i.getBoundingClientRect().height;i.style.height="auto";let p=i.getBoundingClientRect().height;h===p&&(h=r),t.transition(i,t.setStyles,{during:l,start:{height:h+"px"},end:{height:p+"px"}},()=>i._x_isShown=!0,()=>{Math.abs(i.getBoundingClientRect().height-p)<1&&(i.style.overflow=null)})},out(c=()=>{},d=()=>{}){let h=i.getBoundingClientRect().height;t.transition(i,o,{during:l,start:{height:h+"px"},end:{height:r+"px"}},()=>i.style.overflow="hidden",()=>{i._x_isShown=!1,i.style.height==`${r}px`&&a&&(i.style.display="none",i.hidden=!0)})}}}}function _n(t,e,i){if(t.indexOf(e)===-1)return i;let s=t[t.indexOf(e)+1];if(!s)return i;if(e==="duration"){let n=s.match(/([0-9]+)ms/);if(n)return n[1]}if(e==="min"){let n=s.match(/([0-9]+)px/);if(n)return n[1]}return s}var bn=Io;var Tn=["input","select","textarea","a[href]","button","[tabindex]:not
5(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],ot=Tn.join(","),Cn=typeof Element>"u",re=Cn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ni=!Cn&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},Ln=function(e,i,s){var n=Array.prototype.slice.apply(e.querySelectorAll(ot));return i&&re.call(e,ot)&&n.unshift(e),n=n.filter(s),n},On=function t(e,i,s){for(var n=[],r=Array.from(e);r.length;){var a=r.shift();if(a.tagName==="SLOT"){var o=a.assignedElements(),l=o.length?o:a.children,c=t(l,!0,s);s.flatten?n.push.apply(n,c):n.push({scope:a,candidates:c})}else{var d=re.call(a,ot);d&&s.filter(a)&&(i||!e.includes(a))&&n.push(a);var h=a.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(a),p=!s.shadowRootFilter||s.shadowRootFilter(a);if(h&&p){var f=t(h===!0?a.children:h.children,!0,s);s.flatten?n.push.apply(n,f):n.push({scope:a,candidates:f})}else r.unshift.apply(r,a.children)}}return n},Mn=function(e,i){return e.tabIndex<0&&(i||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},To=function(e,i){return e.tabIndex===i.tabIndex?e.documentOrder-i.documentOrder:e.tabIndex-i.tabIndex},Dn=function(e){return e.tagName==="INPUT"},Co=function(e){return Dn(e)&&e.type==="hidden"},Lo=function(e){var i=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(s){return s.tagName==="SUMMARY"});return i},Oo=function(e,i){for(var s=0;s<e.length;s++)if(e[s].checked&&e[s].form===i)return e[s]},Mo=function(e){if(!e.name)return!0;var i=e.form||ni(e),s=function(o){return i.querySelectorAll('input[type="radio"][name="'+o+'"]')},n;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")n=s(window.CSS.escape(e.name));else try{n=s(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var r=Oo(n,e.form);return!r||r===e},Do=function(e){return Dn(e)&&e.type==="radio"},zo=function(e){return Do(e)&&!Mo(e)},wn=function(e){var i=e.getBoundingClientRect(),s=i.width,n=i.height;return s===0&&n===0},ko=function(e,i){var s=i.displayCheck,n=i.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var r=re.call(e,"details>summary:first-of-type"),a=r?e.parentElement:e;if(re.call(a,"details:not([open]) *"))return!0;var o=ni(e).host,l=o?.ownerDocument.contains(o)||e.ownerDocument.contains(e);if(!s||s==="full"){if(typeof n=="function"){for(var c=e;e;){var d=e.parentElement,h=ni(e);if(d&&!d.shadowRoot&&n(d)===!0)return wn(e);e.assignedSlot?e=e.assignedSlot:!d&&h!==e.ownerDocument?e=h.host:e=d}e=c}if(l)return!e.getClientRects().length}else if(s==="non-zero-area")return wn(e);return!1},Ro=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var i=e.parentElement;i;){if(i.tagName==="FIELDSET"&&i.disabled){for(var s=0;s<i.children.length;s++){var n=i.children.item(s);if(n.tagName==="LEGEND")return re.call(i,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}i=i.parentElement}return!1},lt=function(e,i){return!(i.disabled||Co(i)||ko(i,e)||Lo(i)||Ro(i))},ri=function(e,i){return!(zo(i)||Mn(i)<0||!lt(e,i))},Fo=function(e){var i=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(i)||i>=0)},No=function t(e){var i=[],s=[];return e.forEach(function(n,r){var a=!!n.scope,o=a?n.scope:n,l=Mn(o,a),c=a?t(n.candidates):o;l===0?a?i.push.apply(i,c):i.push(o):s.push({documentOrder:r,tabIndex:l,item:n,isScope:a,content:c})}),s.sort(To).reduce(function(n,r){return r.isScope?n.push.apply(n,r.content):n.push(r.content),n},[]).concat(i)},$o=function(e,i){i=i||{};var s;return i.getShadowRoot?s=On([e],i.includeContainer,{filter:ri.bind(null,i),flatten:!1,getShadowRoot:i.getShadowRoot,shadowRootFilter:Fo}):s=Ln(e,i.includeContainer,ri.bind(null,i)),No(s)},zn=function(e,i){i=i||{};var s;return i.getShadowRoot?s=On([e],i.includeContainer,{filter:lt.bind(null,i),flatten:!0,getShadowRoot:i.getShadowRoot}):s=Ln(e,i.includeContainer,lt.bind(null,i)),s},nt=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return re.call(e,ot)===!1?!1:ri(i,e)},Bo=Tn.concat("iframe").join(","),at=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return re.call(e,Bo)===!1?!1:lt(i,e)};function Sn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),i.push.apply(i,s)}return i}function xn(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};
vendor: 5,800 bytes, line 5
5e%2?Sn(Object(i),!0).forEach(function(s){Zo(t,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Sn(Object(i)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(i,s))})}return t}function Zo(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var En=function(){var t=[];return{activateTrap:function(i){if(t.length>0){var s=t[t.length-1];s!==i&&s.pause()}var n=t.indexOf(i);n===-1||t.splice(n,1),t.push(i)},deactivateTrap:function(i){var s=t.indexOf(i);s!==-1&&t.splice(s,1),t.length>0&&t[t.length-1].unpause()}}}(),Ho=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},qo=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},Uo=function(e){return e.key==="Tab"||e.keyCode===9},An=function(e){return setTimeout(e,0)},Pn=function(e,i){var s=-1;return e.every(function(n,r){return i(n)?(s=r,!1):!0}),s},Ce=function(e){for(var i=arguments.length,s=new Array(i>1?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];return typeof e=="function"?e.apply(void 0,s):e},rt=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Wo=function(e,i){var s=i?.document||document,n=xn({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},i),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a,o=function(u,m,_){return u&&u[m]!==void 0?u[m]:n[_||m]},l=function(u){return r.containerGroups.findIndex(function(m){var _=m.container,P=m.tabbableNodes;return _.contains(u)||P.find(function(A){return A===u})})},c=function(u){var m=n[u];if(typeof m=="function"){for(var _=arguments.length,P=new Array(_>1?_-1:0),A=1;A<_;A++)P[A-1]=arguments[A];m=m.apply(void 0,P)}if(m===!0&&(m=void 0),!m){if(m===void 0||m===!1)return m;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var M=m;if(typeof m=="string"&&(M=s.querySelector(m),!M))throw new Error("`".concat(u,"` as selector refers to no known node"));return M},d=function(){var u=c("initialFocus");if(u===!1)return!1;if(u===void 0)if(l(s.activeElement)>=0)u=s.activeElement;else{var m=r.tabbableGroups[0],_=m&&m.firstTabbableNode;u=_||c("fallbackFocus")}if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},h=function(){if(r.containerGroups=r.containers.map(function(u){var m=$o(u,n.tabbableOptions),_=zn(u,n.tabbableOptions);return{container:u,tabbableNodes:m,focusableNodes:_,firstTabbableNode:m.length>0?m[0]:null,lastTabbableNode:m.length>0?m[m.length-1]:null,nextTabbableNode:function(A){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,U=_.findIndex(function(j){return j===A});if(!(U<0))return M?_.slice(U+1).find(function(j){return nt(j,n.tabbableOptions)}):_.slice(0,U).reverse().find(function(j){return nt(j,n.tabbableOptions)})}}}),r.tabbableGroups=r.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},p=function w(u){if(u!==!1&&u!==s.activeElement){if(!u||!u.focus){w(d());return}u.focus({preventScroll:!!n.preventScroll}),r.mostRecentlyFocusedNode=u,Ho(u)&&u.select()}},f=function(u){var m=c("setReturnFocus",u);return m||(m===!1?!1:u)},y=function(u){var m=rt(u);if(!(l(m)>=0)){if(Ce(n.clickOutsideDeactivates,u)){a.deactivate({returnFocus:n.returnFocusOnDeactivate&&!at(m,n.tabbableOptions)});return}Ce(n.allowOutsideClick,u)||u.preventDefault()}},E=function(u){var m=rt(u),_=l(m)>=0;_||m instanceof Document?_&&(r.mostRecentlyFocusedNode=m):(u.stopImmediatePropagation(),p(r.mostRecentlyFocusedNode||d()))},v=function(u){var m=rt(u);h();var _=null;if(r.tabbableGroups.length>0){var P=l(m),A=P>=0?r.containerGroups[P]:void 0;if(P<0)u.shiftKey?_=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:_=r.tabbableGroups[0].firstTabbableNode;else if(u.shiftKey){var M=Pn(r.tabbableGroups,function(pt){var mt=pt.firstTabbableNode;return m===mt});if(M<0&&(A.container===m||at(m,n.tabbableOptions)&&!nt(m,n.tabbableOptions)&&!A.nextTabbableNode(m,!1))&&(M=P),M>=0){var U=M===0?r.tabbableGroups.length-1:M-1,j=r.tabbableGroups[U];_=j.lastTabbableNode}}else{var ve=Pn(r.tabbableGroups,function(pt){var mt=pt.lastTabbableNode;return m===mt});if(ve<0&&(A.container===m||at(m,n.tabbableOptions)&&!nt(m,n.tabbableOptions)&&!A.nextTabbableNode(m))&&(ve=P),ve>=0){var gr=ve===r.tabbableGroups.length-1?0:ve+1,vr=r.tabbableGroups[gr];_=vr.firstTabbableNode}}}else _=c("fallbackFocus");_&&(u.preventDefault(),p(_))},b=function(u){if(qo(u)&&Ce(n.escapeDeactivates,u)!==!1){u.preventDefault(),a.deactivate();return}if(Uo(u)){v(u);return}},x=function(u){var m=rt(u);l(m)>=0||Ce(n.clickOutsideDeactivates,u)||Ce(n.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},C=function(){if(r.active)return En.activateTrap(a),r.delayInitialFocusTimer=n.delayInitialFocus?An(function(){p(d())}):p(d()),s.addEventListener("focusin",E,!0),s.addEventListener("mousedown",y,{capture:!0,passive:!1}),s.addEventListener("touchstart",y,{capture:!0,passive:!1}),s.addEventListener("click",x,{capture:!0,passive:!1}),s.addEventListener("keydown",b,{capture:!0,passive:!1}),a},O=function(){if(r.active)return s.removeEventListener("focusin",E,!0),s.removeEventListener("mousedown",y,!0),s.removeEventListener("touchstart",y,!0),s.removeEventListener("click",x,!0),s.removeEventListener("keydown",b,!0),a};return a={get active(){return r.active},get paused(){return r.paused},activate:function(u){if(r.active)return this;
5var m=o(u,"onActivate"),_=o(u,"onPostActivate"),P=o(u,"checkCanFocusTrap");P||h(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=s.activeElement,m&&m();var A=function(){P&&h(),C(),_&&_()};return P?(P(r.containers.concat()).then(A,A),this):(A(),this)},deactivate:function(u){if(!r.active)return this;var m=xn({onDeactivate:n.onDeactivate,onPostDeactivate:n.onPostDeactivate,checkCanReturnFocus:n.checkCanReturnFocus},u);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,O(),r.active=!1,r.paused=!1,En.deactivateTrap(a);var _=o(m,"onDeactivate"),P=o(m,"onPostDeactivate"),A=o(m,"checkCanReturnFocus"),M=o(m,"returnFocus","returnFocusOnDeactivate");_&&_();var U=function(){An(function(){M&&p(f(r.nodeFocusedBeforeActivation)),P&&P()})};return M&&A?(A(f(r.nodeFocusedBeforeActivation)).then(U,U),this):(U(),this)},pause:function(){return r.paused||!r.active?this:(r.paused=!0,O(),this)},unpause:function(){return!r.paused||!r.active?this:(r.paused=!1,h(),C(),this)},updateContainerElements:function(u){var m=[].concat(u).filter(Boolean);return r.containers=m.map(function(_){return typeof _=="string"?s.querySelector(_):_}),r.active&&h(),this}},a.updateContainerElements(e),a};function jo(t){let e,i;window.addEventListener("focusin",()=>{e=i,i=document.activeElement}),t.magic("focus",s=>{let n=s;return{__noscroll:!1,__wrapAround:!1,within(r){return n=r,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(r){return at(r)},previouslyFocused(){return e},lastFocused(){return e},focused(){return i},focusables(){return Array.isArray(n)?n:zn(n,{displayCheck:"none"})},all(){return this.focusables()},isFirst(r){let a=this.all();return a[0]&&a[0].isSameNode(r)},isLast(r){let a=this.all();return a.length&&a.slice(-1)[0].isSameNode(r)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let r=this.all(),a=document.activeElement;if(r.indexOf(a)!==-1)return this.__wrapAround&&r.indexOf(a)===r.length-1?r[0]:r[r.indexOf(a)+1]},getPrevious(){let r=this.all(),a=document.activeElement;if(r.indexOf(a)!==-1)return this.__wrapAround&&r.indexOf(a)===0?r.slice(-1)[0]:r[r.indexOf(a)-1]},first(){this.focus(this.getFirst())},last(){this.focus(this.getLast())},next(){this.focus(this.getNext())},previous(){this.focus(this.getPrevious())},prev(){return this.previous()},focus(r){r&&setTimeout(()=>{r.hasAttribute("tabindex")||r.setAttribute("tabindex","0"),r.focus({preventScroll:this.__noscroll})})}}}),t.directive("trap",t.skipDuringClone((s,{expression:n,modifiers:r},{effect:a,evaluateLater:o,cleanup:l})=>{let c=o(n),d=!1,h={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>s};if(r.includes("noautofocus"))h.initialFocus=!1;else{let v=s.querySelector("[autofocus]");v&&(h.initialFocus=v)}let p=Wo(s,h),f=()=>{},y=()=>{},E=()=>{f(),f=()=>{},y(),y=()=>{},p.deactivate({returnFocus:!r.includes("noreturn")})};a(()=>c(v=>{d!==v&&(v&&!d&&(r.includes("noscroll")&&(y=Vo()),r.includes("inert")&&(f=In(s)),setTimeout(()=>{p.activate()},15)),!v&&d&&E(),d=!!v)})),l(E)},(s,{expression:n,modifiers:r},{evaluate:a})=>{r.includes("inert")&&a(n)&&In(s)}))}function In(t){let e=[];return kn(t,i=>{let s=i.hasAttribute("aria-hidden");i.setAttribute("aria-hidden","true"),e.push(()=>s||i.removeAttribute("aria-hidden"))}),()=>{for(;e.length;)e.pop()()}}function kn(t,e){t.isSameNode(document.body)||!t.parentNode||Array.from(t.parentNode.children).forEach(i=>{i.isSameNode(t)?kn(t.parentNode,e):e(i)})}function Vo(){let t=document.documentElement.style.overflow,e=document.documentElement.style.paddingRight,i=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${i}px`,()=>{document.documentElement.style.overflow=t,document.documentElement.style.paddingRight=e}}var Rn=jo;function Ko(t){let e=()=>{let i,s;try{s=localStorage}catch(n){console.error(n),console.warn("Alpine: $persist is using temporary storage since localStorage is unavailable.");let r=new Map;s={getItem:r.get.bind(r),setItem:r.set.bind(r)}}return t.interceptor((n,r,a,o,l)=>{let c=i||`_x_${o}`,d=Fn(c,s)?Nn(c,s):n;return a(d),t.effect(()=>{let h=r();$n(c,h,s),a(h)}),d},n=>{n.as=r=>(i=r,n),n.using=r=>(s=r,n)})};Object.defineProperty(t,"$persist",{get:()=>e()}),t.magic("persist",e),t.persist=(i,{get:s,set:n},r=localStorage)=>{let a=Fn(i,r)?Nn(i,r):s();n(a),t.effect(()=>{let o=s();$n(i,o,r),n(o)})}}function Fn(t,e){return e.getItem(t)!==null}function Nn(t,e){let i=e.getItem(t,e);if(i!==void 0)return JSON.parse(i)}function $n(t,e,i){i.setItem(t,JSON.stringify(e))}var Bn=Ko;var ai=()=>{},Zn=(t,e=void 0)=>(typeof t=="function"&&(t=t()),typeof t=="object"&&(t=JSON.stringify(t)),e!==void 0?window.navigator.clipboard.write([new ClipboardItem({[e]:new Blob([t],{type:e})})]).then(ai):window.navigator.clipboard.writeText(t).then(ai));function oi(t){t.magic("clipboard",()=>Zn),t.directive("clipboard",(e,{modifiers:i,expression:s},{evaluateLater:n,cleanup:r})=>{let a=i.includes("raw")?l=>l(s):n(s),o=()=>a(Zn);e.addEventListener("click",o),r(()=>{e.removeEventListener("click",o)})})}oi.configure=t=>(t.hasOwnProperty("onCopy")&&typeof t.onCopy=="function"&&(ai=t.onCopy),oi);var Hn=oi;function Le(t,e,i){let s=document.createElement(e);return t&&(s.className=t),i&&i.appendChild(s),s}function Go(t,e,i){let s=`translate3d(${t}px,${e||0}px,0)`;return i!==void 0&&(s+=` scale3d(${i},${i},1)`),s}function li(t,e,i){t.style.width=typeof e=="number"?`${e}px`:e,t.style.height=typeof i=="number"?`${i}px`:i}
vendor: 50,078 bytes, line 5
5var R={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function Yo(t){return"button"in t&&t.button===1||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function Oe(t,e,i=document){let s=[];if(t instanceof Element)s=[t];else if(t instanceof NodeList||Array.isArray(t))s=Array.from(t);else{let n=typeof t=="string"?t:e;n&&(s=Array.from(i.querySelectorAll(n)))}return s}function Xo(t){return typeof t=="function"&&t.prototype&&t.prototype.goTo}function qn(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}var ci=class{constructor(e,i){this.type=e,this.defaultPrevented=!1,i&&Object.assign(this,i)}preventDefault(){this.defaultPrevented=!0}},di=class{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,i,s=100){var n,r,a;this._filters[e]||(this._filters[e]=[]),(n=this._filters[e])===null||n===void 0||n.push({fn:i,priority:s}),(r=this._filters[e])===null||r===void 0||r.sort((o,l)=>o.priority-l.priority),(a=this.pswp)===null||a===void 0||a.addFilter(e,i,s)}removeFilter(e,i){this._filters[e]&&(this._filters[e]=this._filters[e].filter(s=>s.fn!==i)),this.pswp&&this.pswp.removeFilter(e,i)}applyFilters(e,...i){var s;return(s=this._filters[e])===null||s===void 0||s.forEach(n=>{i[0]=n.fn.apply(this,i)}),i[0]}on(e,i){var s,n;this._listeners[e]||(this._listeners[e]=[]),(s=this._listeners[e])===null||s===void 0||s.push(i),(n=this.pswp)===null||n===void 0||n.on(e,i)}off(e,i){var s;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(n=>i!==n)),(s=this.pswp)===null||s===void 0||s.off(e,i)}dispatch(e,i){var s;if(this.pswp)return this.pswp.dispatch(e,i);let n=new ci(e,i);return(s=this._listeners[e])===null||s===void 0||s.forEach(r=>{r.call(this,n)}),n}},hi=class{constructor(e,i){if(this.element=Le("pswp__img pswp__img--placeholder",e?"img":"div",i),e){let s=this.element;s.decoding="async",s.alt="",s.src=e,s.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,i){this.element&&(this.element.tagName==="IMG"?(li(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=Go(0,0,e/250)):li(this.element,e,i))}destroy(){var e;(e=this.element)!==null&&e!==void 0&&e.parentNode&&this.element.remove(),this.element=null}},ui=class{constructor(e,i,s){this.instance=i,this.data=e,this.index=s,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=R.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,i){if(this.slide&&this.usePlaceholder())if(this.placeholder){let s=this.placeholder.element;s&&!s.parentElement&&this.slide.container.prepend(s)}else{let s=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new hi(s,this.slide.container)}this.element&&!i||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||""),i&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var i,s;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;let n=this.element;this.updateSrcsetSizes(),this.data.srcset&&(n.srcset=this.data.srcset),n.src=(i=this.data.src)!==null&&i!==void 0?i:"",n.alt=(s=this.data.alt)!==null&&s!==void 0?s:"",this.state=R.LOADING,n.complete?this.onLoaded():(n.onload=()=>{this.onLoaded()},n.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=R.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===R.LOADED||this.state===R.ERROR)&&this.removePlaceholder())}onError(){this.state=R.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===R.LOADING,this)}isError(){return this.state===R.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(e,i){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,i),!this.instance.dispatch("contentResize",{content:this,width:e,height:i}).defaultPrevented&&(li(this.element,e,i),this.isImageContent()&&!this.isError()))){let s=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=i,s?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:i,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==R.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;let e=this.element,i=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||i>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=i+"px",e.dataset.largestUsedSize=String(i))}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,i;let s=Le("pswp__error-msg","div");s.innerText=(e=(i=this.instance.options)===null||i===void 0?void 0:i.errorMsg)!==null&&e!==void 0?e:"",s=this.instance.applyFilters("contentErrorElement",s,this),this.element=Le("pswp__content pswp__error-msg-container","div"),this.element.appendChild(s),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===R.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||qn())?(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&&!qn()?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===R.LOADED||this.state===R.ERROR)&&this.removePlaceholder()))}};function Jo(t,e){if(t.getViewportSizeFn){let i=t.getViewportSizeFn(t,e);if(i)return i}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function ct(t,e,i,s,n){let r=0;if(e.paddingFn)r=e.paddingFn(i,s,n)[t];else if(e.padding)r=e.padding[t];else{let a="padding"+t[0].toUpperCase()+t.slice(1);e[a]&&(r=e[a])}return Number(r)||0}function Qo(t,e,i,s){return{x:e.x-ct("left",t,e,i,s)-ct("right",t,e,i,s),y:e.y-ct("top",t,e,i,s)-ct("bottom",t,e,i,s)}}var Un=4e3,fi=class{constructor(e,i,s,n){this.pswp=n,this.options=e,this.itemData=i,this.index=s,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,i,s){let n={x:e,y:i};this.elementSize=n,this.panAreaSize=s;let r=s.x/n.x,a=s.y/n.y;this.fit=Math.min(1,r<a?r:a),this.fill=Math.min(1,r>a?r:a),this.vFill=Math.min(1,a),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 i=e+"ZoomLevel",s=this.options[i];if(s)return typeof s=="function"?s(this):s==="fill"?this.fill:s==="fit"?this.fit:Number(s)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,this.fit*3),this.elementSize&&e*this.elementSize.x>Un&&(e=Un/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}};function Wn(t,e,i){let s=e.createContentFromData(t,i),n,{options:r}=e;if(r){n=new fi(r,t,-1);let a;e.pswp?a=e.pswp.viewportSize:a=Jo(r,e);let o=Qo(r,a,t,i);n.update(s.width,s.height,o)}return s.lazyLoad(),n&&s.setDisplayedSize(Math.ceil(s.width*n.initial),Math.ceil(s.height*n.initial)),s}function el(t,e){let i=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:i}).defaultPrevented)return Wn(i,e,t)}var pi=class extends di{getNumItems(){var e;let i=0,s=(e=this.options)===null||e===void 0?void 0:e.dataSource;s&&"length"in s?i=s.length:s&&"gallery"in s&&(s.items||(s.items=this._getGalleryDOMElements(s.gallery)),s.items&&(i=s.items.length));let n=this.dispatch("numItems",{dataSource:s,numItems:i});return this.applyFilters("numItems",n.numItems,s)}createContentFromData(e,i){return new ui(e,this,i)}getItemData(e){var i;let s=(i=this.options)===null||i===void 0?void 0:i.dataSource,n={};Array.isArray(s)?n=s[e]:s&&"gallery"in s&&(s.items||(s.items=this._getGalleryDOMElements(s.gallery)),n=s.items[e]);let r=n;r instanceof Element&&(r=this._domElementToItemData(r));let a=this.dispatch("itemData",{itemData:r||{},index:e});return this.applyFilters("itemData",a.itemData,e)}_getGalleryDOMElements(e){var i,s;return(i=this.options)!==null&&i!==void 0&&i.children||(s=this.options)!==null&&s!==void 0&&s.childSelector?Oe(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){let i={element:e},s=e.tagName==="A"?e:e.querySelector("a");if(s){i.src=s.dataset.pswpSrc||s.href,s.dataset.pswpSrcset&&(i.srcset=s.dataset.pswpSrcset),i.width=s.dataset.pswpWidth?parseInt(s.dataset.pswpWidth,10):0,i.height=s.dataset.pswpHeight?parseInt(s.dataset.pswpHeight,10):0,i.w=i.width,i.h=i.height,s.dataset.pswpType&&(i.type=s.dataset.pswpType);let r=e.querySelector("img");if(r){var n;i.msrc=r.currentSrc||r.src,i.alt=(n=r.getAttribute("alt"))!==null&&n!==void 0?n:""}(s.dataset.pswpCropped||s.dataset.cropped)&&(i.thumbCropped=!0)}return this.applyFilters("domItemData",i,e,s)}lazyLoadData(e,i){return Wn(e,this,i)}},Me=class extends pi{constructor(e){super(),this.options=e||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){Oe(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(e){if(Yo(e)||window.pswp)return;let i={x:e.clientX,y:e.clientY};!i.x&&!i.y&&(i=null);let s=this.getClickedIndex(e);s=this.applyFilters("clickedIndex",s,e,this);let n={gallery:e.currentTarget};s>=0&&(e.preventDefault(),this.loadAndOpen(s,n,i))}getClickedIndex(e){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,e);let i=e.target,n=Oe(this.options.children,this.options.childSelector,e.currentTarget).findIndex(r=>r===i||r.contains(i));return n!==-1?n:this.options.children||this.options.childSelector?-1:0}loadAndOpen(e,i,s){if(window.pswp||!this.options)return!1;if(!i&&this.options.gallery&&this.options.children){let n=Oe(this.options.gallery);n[0]&&(i={gallery:n[0]})}return this.options.index=e,this.options.initialPointerPos=s,this.shouldOpen=!0,this.preload(e,i),!0}preload(e,i){let{options:s}=this;i&&(s.dataSource=i);let n=[],r=typeof s.pswpModule;if(Xo(s.pswpModule))n.push(Promise.resolve(s.pswpModule));else{if(r==="string")throw new Error("pswpModule as string is no longer supported");if(r==="function")n.push(s.pswpModule());else throw new Error("pswpModule is not valid")}typeof s.openPromise=="function"&&n.push(s.openPromise()),s.preloadFirstSlide!==!1&&e>=0&&(this._preloadedContent=el(e,this));let a=++this._uid;Promise.all(n).then(o=>{if(this.shouldOpen){let l=o[0];this._openPhotoswipe(l,a)}})}_openPhotoswipe(e,i){if(i!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;let s=typeof e=="object"?new e.default(this.options):new e(this.options);this.pswp=s,window.pswp=s,Object.keys(this._listeners).forEach(n=>{var r;(r=this._listeners[n])===null||r===void 0||r.forEach(a=>{s.on(n,a)})}),Object.keys(this._filters).forEach(n=>{var r;(r=this._filters[n])===null||r===void 0||r.forEach(a=>{s.addFilter(n,a.fn,a.priority)})}),this._preloadedContent&&(s.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),s.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),s.init()}destroy(){var e;(e=this.pswp)===null||e===void 0||e.destroy(),this.shouldOpen=!1,this._listeners={},Oe(this.options.gallery,this.options.gallerySelector).forEach(i=>{i.removeEventListener("click",this.onThumbnailsClick,!1)})}};function z(t,e,i){let s=document.createElement(e);return t&&(s.className=t),i&&i.appendChild(s),s}function T(t,e){return t.x=e.x,t.y=e.y,e.id!==void 0&&(t.id=e.id),t}function Qn(t){t.x=Math.round(t.x),t.y=Math.round(t.y)}function mi(t,e){let i=Math.abs(t.x-e.x),s=Math.abs(t.y-e.y);return Math.sqrt(i*i+s*s)}function ke(t,e){return t.x===e.x&&t.y===e.y}function Ne(t,e,i){return Math.min(Math.max(t,e),i)}function Re(t,e,i){let s=`translate3d(${t}px,${e||0}px,0)`;return i!==void 0&&(s+=` scale3d(${i},${i},1)`),s}function oe(t,e,i,s){t.style.transform=Re(e,i,s)}var tl="cubic-bezier(.4,0,.22,1)";function er(t,e,i,s){t.style.transition=e?`${e} ${i}ms ${s||tl}`:"none"}function gi(t,e,i){t.style.width=typeof e=="number"?`${e}px`:e,t.style.height=typeof i=="number"?`${i}px`:i}function il(t){er(t)}function sl(t){return"decode"in t?t.decode().catch(()=>{}):t.complete?Promise.resolve(t):new Promise((e,i)=>{t.onload=()=>e(t),t.onerror=i})}var F={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function nl(t){return"button"in t&&t.button===1||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function rl(t,e,i=document){let s=[];if(t instanceof Element)s=[t];else if(t instanceof NodeList||Array.isArray(t))s=Array.from(t);else{let n=typeof t=="string"?t:e;n&&(s=Array.from(i.querySelectorAll(n)))}return s}function jn(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}var tr=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{tr=!0}}))}catch{}var vi=class{constructor(){this._pool=[]}add(e,i,s,n){this._toggleListener(e,i,s,n)}remove(e,i,s,n){this._toggleListener(e,i,s,n,!0)}removeAll(){this._pool.forEach(e=>{this._toggleListener(e.target,e.type,e.listener,e.passive,!0,!0)}),this._pool=[]}_toggleListener(e,i,s,n,r,a){if(!e)return;let o=r?"removeEventListener":"addEventListener";i.split(" ").forEach(c=>{if(c){a||(r?this._pool=this._pool.filter(h=>h.type!==c||h.listener!==s||h.target!==e):this._pool.push({target:e,type:c,listener:s,passive:n}));let d=tr?{passive:n||!1}:!1;e[o](c,s,d)}})}};function ir(t,e){if(t.getViewportSizeFn){let i=t.getViewportSizeFn(t,e);if(i)return i}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function ze(t,e,i,s,n){let r=0;if(e.paddingFn)r=e.paddingFn(i,s,n)[t];else if(e.padding)r=e.padding[t];else{let a="padding"+t[0].toUpperCase()+t.slice(1);e[a]&&(r=e[a])}return Number(r)||0}function sr(t,e,i,s){return{x:e.x-ze("left",t,e,i,s)-ze("right",t,e,i,s),y:e.y-ze("top",t,e,i,s)-ze("bottom",t,e,i,s)}}var yi=class{constructor(e){this.slide=e,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(e){this.currZoomLevel=e,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(e){let{pswp:i}=this.slide,s=this.slide[e==="x"?"width":"height"]*this.currZoomLevel,r=ze(e==="x"?"left":"top",i.options,i.viewportSize,this.slide.data,this.slide.index),a=this.slide.panAreaSize[e];this.center[e]=Math.round((a-s)/2)+r,this.max[e]=s>a?Math.round(a-s)+r:this.center[e],this.min[e]=s>a?r:this.center[e]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(e,i){return Ne(i,this.max[e],this.min[e])}},Vn=4e3,dt=class{constructor(e,i,s,n){this.pswp=n,this.options=e,this.itemData=i,this.index=s,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,i,s){let n={x:e,y:i};this.elementSize=n,this.panAreaSize=s;let r=s.x/n.x,a=s.y/n.y;this.fit=Math.min(1,r<a?r:a),this.fill=Math.min(1,r>a?r:a),this.vFill=Math.min(1,a),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 i=e+"ZoomLevel",s=this.options[i];if(s)return typeof s=="function"?s(this):s==="fill"?this.fill:s==="fit"?this.fit:Number(s)}_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)}},_i=class{constructor(e,i,s){this.data=e,this.index=i,this.pswp=s,this.isActive=i===s.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!s.opener.isOpen,this.zoomLevels=new dt(s.options,e,i,s),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:i}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=z("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new yi(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(e){e&&!this.isActive?this.activate():!e&&this.isActive&&this.deactivate()}append(e){this.holderElement=e,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){let{pswp:e}=this,i=!0;this.heavyAppended||!e.opener.isOpen||e.mainScroll.isShifted()||!this.isActive&&!i||this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this}))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel===this.zoomLevels.initial||!this.isActive?(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize()):(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y))}updateContentSize(e){let i=this.currentResolution||this.zoomLevels.initial;if(!i)return;let s=Math.round(this.width*i)||this.pswp.viewportSize.x,n=Math.round(this.height*i)||this.pswp.viewportSize.y;!this.sizeChanged(s,n)&&!e||this.content.setDisplayedSize(s,n)}sizeChanged(e,i){return e!==this.prevDisplayedWidth||i!==this.prevDisplayedHeight?(this.prevDisplayedWidth=e,this.prevDisplayedHeight=i,!0):!1}getPlaceholderElement(){var e;return(e=this.content.placeholder)===null||e===void 0?void 0:e.element}zoomTo(e,i,s,n){let{pswp:r}=this;if(!this.isZoomable()||r.mainScroll.isShifted())return;r.dispatch("beforeZoomTo",{destZoomLevel:e,centerPoint:i,transitionDuration:s}),r.animations.stopAllPan();let a=this.currZoomLevel;n||(e=Ne(e,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(e),this.pan.x=this.calculateZoomToPanOffset("x",i,a),this.pan.y=this.calculateZoomToPanOffset("y",i,a),Qn(this.pan);let o=()=>{this._setResolution(e),this.applyCurrentZoomPan()};s?r.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:o,duration:s,easing:r.options.easing}):o()}toggleZoom(e){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,e,this.pswp.options.zoomAnimationDuration)}setZoomLevel(e){this.currZoomLevel=e,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(e,i,s){if(this.bounds.max[e]-this.bounds.min[e]===0)return this.bounds.center[e];i||(i=this.pswp.getViewportCenterPoint()),s||(s=this.zoomLevels.initial);let r=this.currZoomLevel/s;return this.bounds.correctPan(e,(this.pan[e]-i[e])*r+i[e])}panTo(e,i){this.pan.x=this.bounds.correctPan("x",e),this.pan.y=this.bounds.correctPan("y",i),this.applyCurrentZoomPan()}isPannable(){return!!this.width&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return!!this.width&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),T(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(e,i,s){s/=this.currentResolution||this.zoomLevels.initial,oe(this.container,e,i,s)}calculateSize(){let{pswp:e}=this;T(this.panAreaSize,sr(e.options,e.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),e.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){let e=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return Re(this.pan.x,this.pan.y,e)}_setResolution(e){e!==this.currentResolution&&(this.currentResolution=e,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}},al=.35,ol=.6,Kn=.4,Gn=.5;function ll(t,e){return t*e/(1-e)}var bi=class{constructor(e){this.gestures=e,this.pswp=e.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&T(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){let{p1:e,prevP1:i,dragAxis:s}=this.gestures,{currSlide:n}=this.pswp;if(s==="y"&&this.pswp.options.closeOnVerticalDrag&&n&&n.currZoomLevel<=n.zoomLevels.fit&&!this.gestures.isMultitouch){let r=n.pan.y+(e.y-i.y);if(!this.pswp.dispatch("verticalDrag",{panY:r}).defaultPrevented){this._setPanWithFriction("y",r,ol);let a=1-Math.abs(this._getVerticalDragRatio(n.pan.y));this.pswp.applyBgOpacity(a),n.applyCurrentZoomPan()}}else this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),n&&(Qn(n.pan),n.applyCurrentZoomPan()))}end(){let{velocity:e}=this.gestures,{mainScroll:i,currSlide:s}=this.pswp,n=0;if(this.pswp.animations.stopAll(),i.isShifted()){let a=(i.x-i.getCurrSlideX())/this.pswp.viewportSize.x;e.x<-Gn&&a<0||e.x<.1&&a<-.5?(n=1,e.x=Math.min(e.x,0)):(e.x>Gn&&a>0||e.x>-.1&&a>.5)&&(n=-1,e.x=Math.max(e.x,0)),i.moveIndexBy(n,!0,e.x)}s&&s.currZoomLevel>s.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(e){let{velocity:i}=this.gestures,{currSlide:s}=this.pswp;if(!s)return;let{pan:n,bounds:r}=s,a=n[e],o=this.pswp.bgOpacity<1&&e==="y",l=.995,c=a+ll(i[e],l);if(o){let y=this._getVerticalDragRatio(a),E=this._getVerticalDragRatio(c);if(y<0&&E<-Kn||y>0&&E>Kn){this.pswp.close();return}}let d=r.correctPan(e,c);if(a===d)return;let h=d===c?1:.82,p=this.pswp.bgOpacity,f=d-a;this.pswp.animations.startSpring({name:"panGesture"+e,isPan:!0,start:a,end:d,velocity:i[e],dampingRatio:h,onUpdate:y=>{if(o&&this.pswp.bgOpacity<1){let E=1-(d-y)/f;this.pswp.applyBgOpacity(Ne(p+(1-p)*E,0,1))}n[e]=Math.floor(y),s.applyCurrentZoomPan()}})}_panOrMoveMainScroll(e){let{p1:i,dragAxis:s,prevP1:n,isMultitouch:r}=this.gestures,{currSlide:a,mainScroll:o}=this.pswp,l=i[e]-n[e],c=o.x+l;if(!l||!a)return!1;if(e==="x"&&!a.isPannable()&&!r)return o.moveTo(c,!0),!0;let{bounds:d}=a,h=a.pan[e]+l;if(this.pswp.options.allowPanToNext&&s==="x"&&e==="x"&&!r){let p=o.getCurrSlideX(),f=o.x-p,y=l>0,E=!y;if(h>d.min[e]&&y){if(d.min[e]<=this.startPan[e])return o.moveTo(c,!0),!0;this._setPanWithFriction(e,h)}else if(h<d.max[e]&&E){if(this.startPan[e]<=d.max[e])return o.moveTo(c,!0),!0;this._setPanWithFriction(e,h)}else if(f!==0){if(f>0)return o.moveTo(Math.max(c,p),!0),!0;if(f<0)return o.moveTo(Math.min(c,p),!0),!0}else this._setPanWithFriction(e,h)}else e==="y"?!o.isShifted()&&d.min.y!==d.max.y&&this._setPanWithFriction(e,h):this._setPanWithFriction(e,h);return!1}_getVerticalDragRatio(e){var i,s;return(e-((i=(s=this.pswp.currSlide)===null||s===void 0?void 0:s.bounds.center.y)!==null&&i!==void 0?i:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(e,i,s){let{currSlide:n}=this.pswp;if(!n)return;let{pan:r,bounds:a}=n;if(a.correctPan(e,i)!==i||s){let l=Math.round(i-r[e]);r[e]+=l*(s||al)}else r[e]=i}},cl=.05,dl=.15;function Yn(t,e,i){return t.x=(e.x+i.x)/2,t.y=(e.y+i.y)/2,t}var wi=class{constructor(e){this.gestures=e,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1}start(){let{currSlide:e}=this.gestures.pswp;e&&(this._startZoomLevel=e.currZoomLevel,T(this._startPan,e.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){let{p1:e,startP1:i,p2:s,startP2:n,pswp:r}=this.gestures,{currSlide:a}=r;if(!a)return;let o=a.zoomLevels.min,l=a.zoomLevels.max;if(!a.isZoomable()||r.mainScroll.isShifted())return;Yn(this._startZoomPoint,i,n),Yn(this._zoomPoint,e,s);let c=1/mi(i,n)*mi(e,s)*this._startZoomLevel;if(c>a.zoomLevels.initial+a.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),c<o)if(r.options.pinchToClose&&!this._wasOverFitZoomLevel&&this._startZoomLevel<=a.zoomLevels.initial){let d=1-(o-c)/(o/1.2);r.dispatch("pinchClose",{bgOpacity:d}).defaultPrevented||r.applyBgOpacity(d)}else c=o-(o-c)*dl;else c>l&&(c=l+(c-l)*cl);a.pan.x=this._calculatePanForZoomLevel("x",c),a.pan.y=this._calculatePanForZoomLevel("y",c),a.setZoomLevel(c),a.applyCurrentZoomPan()}end(){let{pswp:e}=this.gestures,{currSlide:i}=e;(!i||i.currZoomLevel<i.zoomLevels.initial)&&!this._wasOverFitZoomLevel&&e.options.pinchToClose?e.close():this.correctZoomPan()}_calculatePanForZoomLevel(e,i){let s=i/this._startZoomLevel;return this._zoomPoint[e]-(this._startZoomPoint[e]-this._startPan[e])*s}correctZoomPan(e){let{pswp:i}=this.gestures,{currSlide:s}=i;if(!(s!=null&&s.isZoomable()))return;this._zoomPoint.x===0&&(e=!0);let n=s.currZoomLevel,r,a=!0;n<s.zoomLevels.initial?r=s.zoomLevels.initial:n>s.zoomLevels.max?r=s.zoomLevels.max:(a=!1,r=n);let o=i.bgOpacity,l=i.bgOpacity<1,c=T({x:0,y:0},s.pan),d=T({x:0,y:0},c);e&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=n,T(this._startPan,c)),a&&(d={x:this._calculatePanForZoomLevel("x",r),y:this._calculatePanForZoomLevel("y",r)}),s.setZoomLevel(r),d={x:s.bounds.correctPan("x",d.x),y:s.bounds.correctPan("y",d.y)},s.setZoomLevel(n);let h=!ke(d,c);if(!h&&!a&&!l){s._setResolution(r),s.applyCurrentZoomPan();return}i.animations.stopAllPan(),i.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:p=>{if(p/=1e3,h||a){if(h&&(s.pan.x=c.x+(d.x-c.x)*p,s.pan.y=c.y+(d.y-c.y)*p),a){let f=n+(r-n)*p;s.setZoomLevel(f)}s.applyCurrentZoomPan()}l&&i.bgOpacity<1&&i.applyBgOpacity(Ne(o+(1-o)*p,0,1))},onComplete:()=>{s._setResolution(r),s.applyCurrentZoomPan()}})}};function Xn(t){return!!t.target.closest(".pswp__container")}var Si=class{constructor(e){this.gestures=e}click(e,i){let s=i.target.classList,n=s.contains("pswp__img"),r=s.contains("pswp__item")||s.contains("pswp__zoom-wrap");n?this._doClickOrTapAction("imageClick",e,i):r&&this._doClickOrTapAction("bgClick",e,i)}tap(e,i){Xn(i)&&this._doClickOrTapAction("tap",e,i)}doubleTap(e,i){Xn(i)&&this._doClickOrTapAction("doubleTap",e,i)}_doClickOrTapAction(e,i,s){var n;let{pswp:r}=this.gestures,{currSlide:a}=r,o=e+"Action",l=r.options[o];if(!r.dispatch(o,{point:i,originalEvent:s}).defaultPrevented){if(typeof l=="function"){l.call(r,i,s);return}switch(l){case"close":case"next":r[l]();break;case"zoom":a?.toggleZoom(i);break;case"zoom-or-close":a!=null&&a.isZoomable()&&a.zoomLevels.secondary!==a.zoomLevels.initial?a.toggleZoom(i):r.options.clickToCloseNonZoomable&&r.close();break;case"toggle-controls":(n=this.gestures.pswp.element)===null||n===void 0||n.classList.toggle("pswp--ui-visible");break}}}},hl=10,ul=300,fl=25,xi=class{constructor(e){this.pswp=e,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(e.options.allowPanToNext=!1),this.drag=new bi(this),this.zoomLevels=new wi(this),this.tapHandler=new Si(this),e.on("bindEvents",()=>{e.events.add(e.scrollWrap,"click",this._onClick.bind(this)),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),e.scrollWrap&&(e.scrollWrap.ontouchmove=()=>{},e.scrollWrap.ontouchend=()=>{})):this._bindEvents("mouse","down","up")})}_bindEvents(e,i,s,n){let{pswp:r}=this,{events:a}=r,o=n?e+n:"";a.add(r.scrollWrap,e+i,this.onPointerDown.bind(this)),a.add(window,e+"move",this.onPointerMove.bind(this)),a.add(window,e+s,this.onPointerUp.bind(this)),o&&a.add(r.scrollWrap,o,this.onPointerUp.bind(this))}onPointerDown(e){let i=e.type==="mousedown"||e.pointerType==="mouse";if(i&&e.button>0)return;let{pswp:s}=this;if(!s.opener.isOpen){e.preventDefault();return}s.dispatch("pointerDown",{originalEvent:e}).defaultPrevented||(i&&(s.mouseDetected(),this._preventPointerEventBehaviour(e,"down")),s.animations.stopAll(),this._updatePoints(e,"down"),this._numActivePoints===1&&(this.dragAxis=null,T(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1)}onPointerMove(e){this._preventPointerEventBehaviour(e,"move"),this._numActivePoints&&(this._updatePoints(e,"move"),!this.pswp.dispatch("pointerMove",{originalEvent:e}).defaultPrevented&&(this._numActivePoints===1&&!this.isDragging?(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,T(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop())):this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop())))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(e){this._numActivePoints&&(this._updatePoints(e,"up"),!this.pswp.dispatch("pointerUp",{originalEvent:e}).defaultPrevented&&(this._numActivePoints===0&&(this._rafStopLoop(),this.isDragging?this._finishDrag():!this.isZooming&&!this.isMultitouch&&this._finishTap(e)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),this._numActivePoints===1&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?ke(this.p1,this.prevP1)||this.drag.change():(!ke(this.p1,this.prevP1)||!ke(this.p2,this.prevP2))&&this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(e){let i=Date.now(),s=i-this._intervalTime;s<50&&!e||(this.velocity.x=this._getVelocity("x",s),this.velocity.y=this._getVelocity("y",s),this._intervalTime=i,T(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(e){let{mainScroll:i}=this.pswp;if(i.isShifted()){i.moveIndexBy(0,!0);return}if(e.type.indexOf("cancel")>0)return;if(e.type==="mouseup"||e.pointerType==="mouse"){this.tapHandler.click(this.startP1,e);return}let s=this.pswp.options.doubleTapAction?ul:0;this._tapTimer?(this._clearTapTimer(),mi(this._lastStartP1,this.startP1)<fl&&this.tapHandler.doubleTap(this.startP1,e)):(T(this._lastStartP1,this.startP1),this._tapTimer=setTimeout(()=>{this.tapHandler.tap(this.startP1,e),this._clearTapTimer()},s))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(e,i){let s=this.p1[e]-this._intervalP1[e];return Math.abs(s)>1&&i>5?s/i:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(e,i){this.pswp.applyFilters("preventPointerEvent",!0,e,i)&&e.preventDefault()}_updatePoints(e,i){if(this._pointerEventEnabled){let s=e,n=this._ongoingPointers.findIndex(r=>r.id===s.pointerId);i==="up"&&n>-1?this._ongoingPointers.splice(n,1):i==="down"&&n===-1?this._ongoingPointers.push(this._convertEventPosToPoint(s,{x:0,y:0})):n>-1&&this._convertEventPosToPoint(s,this._ongoingPointers[n]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&T(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&T(this.p2,this._ongoingPointers[1])}else{let s=e;this._numActivePoints=0,s.type.indexOf("touch")>-1?s.touches&&s.touches.length>0&&(this._convertEventPosToPoint(s.touches[0],this.p1),this._numActivePoints++,s.touches.length>1&&(this._convertEventPosToPoint(s.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(e,this.p1),i==="up"?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){T(this.prevP1,this.p1),T(this.prevP2,this.p2)}_updateStartPoints(){T(this.startP1,this.p1),T(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{let e=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(e!==0){let i=e>0?"x":"y";Math.abs(this.p1[i]-this.startP1[i])>=hl&&(this.dragAxis=i)}}}_convertEventPosToPoint(e,i){return i.x=e.pageX-this.pswp.offset.x,i.y=e.pageY-this.pswp.offset.y,"pointerId"in e?i.id=e.pointerId:e.identifier!==void 0&&(i.id=e.identifier),i}_onClick(e){this.pswp.mainScroll.isShifted()&&(e.preventDefault(),e.stopPropagation())}},pl=.35,Ei=class{constructor(e){this.pswp=e,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]}resize(e){let{pswp:i}=this,s=Math.round(i.viewportSize.x+i.viewportSize.x*i.options.spacing),n=s!==this.slideWidth;n&&(this.slideWidth=s,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((r,a)=>{n&&oe(r.el,(a+this._containerShiftIndex)*this.slideWidth),e&&r.slide&&r.slide.resize()})}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let e=0;e<3;e++){let i=z("pswp__item","div",this.pswp.container);i.setAttribute("role","group"),i.setAttribute("aria-roledescription","slide"),i.setAttribute("aria-hidden","true"),i.style.display=e===1?"block":"none",this.itemHolders.push({el:i})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(e,i,s){let{pswp:n}=this,r=n.potentialIndex+e,a=n.getNumItems();if(n.canLoop()){r=n.getLoopedIndex(r);let l=(e+a)%a;l<=a/2?e=l:e=l-a}else r<0?r=0:r>=a&&(r=a-1),e=r-n.potentialIndex;n.potentialIndex=r,this._currPositionIndex-=e,n.animations.stopMainScroll();let o=this.getCurrSlideX();if(!i)this.moveTo(o),this.updateCurrItem();else{n.animations.startSpring({isMainScroll:!0,start:this.x,end:o,velocity:s||0,naturalFrequency:30,dampingRatio:1,onUpdate:c=>{this.moveTo(c)},onComplete:()=>{this.updateCurrItem(),n.appendHeavy()}});let l=n.potentialIndex-n.currIndex;if(n.canLoop()){let c=(l+a)%a;c<=a/2?l=c:l=c-a}Math.abs(l)>1&&this.updateCurrItem()}return!!e}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){var e;let{pswp:i}=this,s=this._prevPositionIndex-this._currPositionIndex;if(!s)return;this._prevPositionIndex=this._currPositionIndex,i.currIndex=i.potentialIndex;let n=Math.abs(s),r;n>=3&&(this._containerShiftIndex+=s+(s>0?-3:3),n=3,this.itemHolders.forEach(a=>{var o;(o=a.slide)===null||o===void 0||o.destroy(),a.slide=void 0}));for(let a=0;a<n;a++)s>0?(r=this.itemHolders.shift(),r&&(this.itemHolders[2]=r,this._containerShiftIndex++,oe(r.el,(this._containerShiftIndex+2)*this.slideWidth),i.setContent(r,i.currIndex-n+a+2))):(r=this.itemHolders.pop(),r&&(this.itemHolders.unshift(r),this._containerShiftIndex--,oe(r.el,this._containerShiftIndex*this.slideWidth),i.setContent(r,i.currIndex+n-a-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),i.animations.stopAllPan(),this.itemHolders.forEach((a,o)=>{a.slide&&a.slide.setIsActive(o===1)}),i.currSlide=(e=this.itemHolders[1])===null||e===void 0?void 0:e.slide,i.contentLoader.updateLazy(s),i.currSlide&&i.currSlide.applyCurrentZoomPan(),i.dispatch("change")}moveTo(e,i){if(!this.pswp.canLoop()&&i){let s=(this.slideWidth*this._currPositionIndex-e)/this.slideWidth;s+=this.pswp.currIndex;let n=Math.round(e-this.x);(s<0&&n>0||s>=this.pswp.getNumItems()-1&&n<0)&&(e=this.x+n*pl)}this.x=e,this.pswp.container&&oe(this.pswp.container,e),this.pswp.dispatch("moveMainScroll",{x:e,dragging:i??!1})}},ml={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},ae=(t,e)=>e?t:ml[t],Ai=class{constructor(e){this.pswp=e,this._wasFocused=!1,e.on("bindEvents",()=>{e.options.trapFocus&&(e.options.initialPointerPos||this._focusRoot(),e.events.add(document,"focusin",this._onFocusIn.bind(this))),e.events.add(document,"keydown",this._onKeyDown.bind(this))});let i=document.activeElement;e.on("destroy",()=>{e.options.returnFocus&&i&&this._wasFocused&&i.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(e){let{pswp:i}=this;if(i.dispatch("keydown",{originalEvent:e}).defaultPrevented||nl(e))return;let s,n,r=!1,a="key"in e;switch(a?e.key:e.keyCode){case ae("Escape",a):i.options.escKey&&(s="close");break;case ae("z",a):s="toggleZoom";break;case ae("ArrowLeft",a):n="x";break;case ae("ArrowUp",a):n="y";break;case ae("ArrowRight",a):n="x",r=!0;break;case ae("ArrowDown",a):r=!0,n="y";break;case ae("Tab",a):this._focusRoot();break}if(n){e.preventDefault();let{currSlide:o}=i;i.options.arrowKeys&&n==="x"&&i.getNumItems()>1?s=r?"next":"prev":o&&o.currZoomLevel>o.zoomLevels.fit&&(o.pan[n]+=r?-80:80,o.panTo(o.pan.x,o.pan.y))}s&&(e.preventDefault(),i[s]())}_onFocusIn(e){let{template:i}=this.pswp;i&&document!==e.target&&i!==e.target&&!i.contains(e.target)&&i.focus()}},gl="cubic-bezier(.4,0,.22,1)",Pi=class{constructor(e){var i;this.props=e;let{target:s,onComplete:n,transform:r,onFinish:a=()=>{},duration:o=333,easing:l=gl}=e;this.onFinish=a;let c=r?"transform":"opacity",d=(i=e[c])!==null&&i!==void 0?i:"";this._target=s,this._onComplete=n,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{er(s,c,o,l),this._helperTimeout=setTimeout(()=>{s.addEventListener("transitionend",this._onTransitionEnd,!1),s.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},o+500),s.style[c]=d},30)},0)}_onTransitionEnd(e){e.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._helperTimeout&&clearTimeout(this._helperTimeout),il(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}},vl=12,yl=.75,Ii=class{constructor(e,i,s){this.velocity=e*1e3,this._dampingRatio=i||yl,this._naturalFrequency=s||vl,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(e,i){let s=0,n;i/=1e3;let r=Math.E**(-this._dampingRatio*this._naturalFrequency*i);if(this._dampingRatio===1)n=this.velocity+this._naturalFrequency*e,s=(e+n*i)*r,this.velocity=s*-this._naturalFrequency+n*r;else if(this._dampingRatio<1){n=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*e+this.velocity);let a=Math.cos(this._dampedFrequency*i),o=Math.sin(this._dampedFrequency*i);s=r*(e*a+n*o),this.velocity=s*-this._naturalFrequency*this._dampingRatio+r*(-this._dampedFrequency*e*o+this._dampedFrequency*n*a)}return s}},Ti=class{constructor(e){this.props=e,this._raf=0;let{start:i,end:s,velocity:n,onUpdate:r,onComplete:a,onFinish:o=()=>{},dampingRatio:l,naturalFrequency:c}=e;this.onFinish=o;let d=new Ii(n,l,c),h=Date.now(),p=i-s,f=()=>{this._raf&&(p=d.easeFrame(p,Date.now()-h),Math.abs(p)<1&&Math.abs(d.velocity)<50?(r(s),a&&a(),this.onFinish()):(h=Date.now(),r(p+s),this._raf=requestAnimationFrame(f)))};this._raf=requestAnimationFrame(f)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}},Ci=class{constructor(){this.activeAnimations=[]}startSpring(e){this._start(e,!0)}startTransition(e){this._start(e)}_start(e,i){let s=i?new Ti(e):new Pi(e);return this.activeAnimations.push(s),s.onFinish=()=>this.stop(s),s}stop(e){e.destroy();let i=this.activeAnimations.indexOf(e);i>-1&&this.activeAnimations.splice(i,1)}stopAll(){this.activeAnimations.forEach(e=>{e.destroy()}),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter(e=>e.props.isPan?(e.destroy(),!1):!0)}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter(e=>e.props.isMainScroll?(e.destroy(),!1):!0)}isPanRunning(){return this.activeAnimations.some(e=>e.props.isPan)}},Li=class{constructor(e){this.pswp=e,e.events.add(e.element,"wheel",this._onWheel.bind(this))}_onWheel(e){e.preventDefault();let{currSlide:i}=this.pswp,{deltaX:s,deltaY:n}=e;if(i&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(i.isZoomable()){let r=-n;e.deltaMode===1?r*=.05:r*=e.deltaMode?1:.002,r=2**r;let a=i.currZoomLevel*r;i.zoomTo(a,{x:e.clientX,y:e.clientY})}}else i.isPannable()&&(e.deltaMode===1&&(s*=18,n*=18),i.panTo(i.pan.x-s,i.pan.y-n))}};function _l(t){if(typeof t=="string")return t;if(!t||!t.isCustomSVG)return"";let e=t,i='<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 %d %d" width="%d" height="%d">';return i=i.split("%d").join(e.size||32),e.outlineID&&(i+='<use class="pswp__icn-shadow" xlink:href="#'+e.outlineID+'"/>'),i+=e.inner,i+="</svg>",i}var Oi=class{constructor(e,i){var s;let n=i.name||i.className,r=i.html;if(e.options[n]===!1)return;typeof e.options[n+"SVG"]=="string"&&(r=e.options[n+"SVG"]),e.dispatch("uiElementCreate",{data:i});let a="";i.isButton?(a+="pswp__button ",a+=i.className||`pswp__button--${i.name}`):a+=i.className||`pswp__${i.name}`;let o=i.isButton?i.tagName||"button":i.tagName||"div";o=o.toLowerCase();let l=z(a,o);if(i.isButton){o==="button"&&(l.type="button");let{title:h}=i,{ariaLabel:p}=i;typeof e.options[n+"Title"]=="string"&&(h=e.options[n+"Title"]),h&&(l.title=h);let f=p||h;f&&l.setAttribute("aria-label",f)}l.innerHTML=_l(r),i.onInit&&i.onInit(l,e),i.onClick&&(l.onclick=h=>{typeof i.onClick=="string"?e[i.onClick]():typeof i.onClick=="function"&&i.onClick(h,l,e)});let c=i.appendTo||"bar",d=e.element;c==="bar"?(e.topBar||(e.topBar=z("pswp__top-bar pswp__hide-on-close","div",e.scrollWrap)),d=e.topBar):(l.classList.add("pswp__hide-on-close"),c==="wrapper"&&(d=e.scrollWrap)),(s=d)===null||s===void 0||s.appendChild(e.applyFilters("uiElement",l,i))}};function nr(t,e,i){t.classList.add("pswp__button--arrow"),t.setAttribute("aria-controls","pswp__items"),e.on("change",()=>{e.options.loop||(i?t.disabled=!(e.currIndex<e.getNumItems()-1):t.disabled=!(e.currIndex>0))})}var bl={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:nr},wl={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<use xlink:href="#pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(t,e)=>{nr(t,e,!0)}},Sl={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>',outlineID:"pswp__icn-close"},onClick:"close"},xl={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M17.426 19.926a6 6 0 1 1 1.5-1.5L23 22.5 21.5 24l-4.074-4.074z" id="pswp__icn-zoom"/><path fill="currentColor" class="pswp__zoom-icn-bar-h" d="M11 16v-2h6v2z"/><path fill="currentColor" class="pswp__zoom-icn-bar-v" d="M13 12h2v6h-2z"/>',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},El={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2 16a5.2 5.2 0 1 1-5.2-5.2V8a8 8 0 1 0 8 8h-2.8Z" id="pswp__icn-loading"/>',outlineID:"pswp__icn-loading"},onInit:(t,e)=>{let i,s=null,n=(o,l)=>{t.classList.toggle("pswp__preloader--"+o,l)},r=o=>{i!==o&&(i=o,n("active",o))},a=()=>{var o;if(!((o=e.currSlide)!==null&&o!==void 0&&o.content.isLoading())){r(!1),s&&(clearTimeout(s),s=null);return}s||(s=setTimeout(()=>{var l;r(!!(!((l=e.currSlide)===null||l===void 0)&&l.content.isLoading())),s=null},e.options.preloaderDelay))};e.on("change",a),e.on("loadComplete",o=>{e.currSlide===o.slide&&a()}),e.ui&&(e.ui.updatePreloaderVisibility=a)}},Al={name:"counter",order:5,onInit:(t,e)=>{e.on("change",()=>{t.innerText=e.currIndex+1+e.options.indexIndicatorSep+e.getNumItems()})}};function Jn(t,e){t.classList.toggle("pswp--zoomed-in",e)}var Mi=class{constructor(e){this.pswp=e,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this._lastUpdatedZoomLevel=void 0}init(){let{pswp:e}=this;this.isRegistered=!1,this.uiElementsData=[Sl,bl,wl,xl,El,Al],e.dispatch("uiRegister"),this.uiElementsData.sort((i,s)=>(i.order||0)-(s.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(i=>{this.registerElement(i)}),e.on("change",()=>{var i;(i=e.element)===null||i===void 0||i.classList.toggle("pswp--one-slide",e.getNumItems()===1)}),e.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(e){this.isRegistered?this.items.push(new Oi(this.pswp,e)):this.uiElementsData.push(e)}_onZoomPanUpdate(){let{template:e,currSlide:i,options:s}=this.pswp;if(this.pswp.opener.isClosing||!e||!i)return;let{currZoomLevel:n}=i;if(this.pswp.opener.isOpen||(n=i.zoomLevels.initial),n===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=n;let r=i.zoomLevels.initial-i.zoomLevels.secondary;if(Math.abs(r)<.01||!i.isZoomable()){Jn(e,!1),e.classList.remove("pswp--zoom-allowed");return}e.classList.add("pswp--zoom-allowed");let a=n===i.zoomLevels.initial?i.zoomLevels.secondary:i.zoomLevels.initial;Jn(e,a<=n),(s.imageClickAction==="zoom"||s.imageClickAction==="zoom-or-close")&&e.classList.add("pswp--cl
5ick-to-zoom")}};function Pl(t){let e=t.getBoundingClientRect();return{x:e.left,y:e.top,w:e.width}}function Il(t,e,i){let s=t.getBoundingClientRect(),n=s.width/e,r=s.height/i,a=n>r?n:r,o=(s.width-e*a)/2,l=(s.height-i*a)/2,c={x:s.left+o,y:s.top+l,w:e*a};return c.innerRect={w:s.width,h:s.height,x:o,y:l},c}function Tl(t,e,i){let s=i.dispatch("thumbBounds",{index:t,itemData:e,instance:i});if(s.thumbBounds)return s.thumbBounds;let{element:n}=e,r,a;if(n&&i.options.thumbSelector!==!1){let o=i.options.thumbSelector||"img";a=n.matches(o)?n:n.querySelector(o)}return a=i.applyFilters("thumbEl",a,e,t),a&&(e.thumbCropped?r=Il(a,e.width||e.w||0,e.height||e.h||0):r=Pl(a)),i.applyFilters("thumbBounds",r,e,t)}var Di=class{constructor(e,i){this.type=e,this.defaultPrevented=!1,i&&Object.assign(this,i)}preventDefault(){this.defaultPrevented=!0}},zi=class{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,i,s=100){var n,r,a;this._filters[e]||(this._filters[e]=[]),(n=this._filters[e])===null||n===void 0||n.push({fn:i,priority:s}),(r=this._filters[e])===null||r===void 0||r.sort((o,l)=>o.priority-l.priority),(a=this.pswp)===null||a===void 0||a.addFilter(e,i,s)}removeFilter(e,i){this._filters[e]&&(this._filters[e]=this._filters[e].filter(s=>s.fn!==i)),this.pswp&&this.pswp.removeFilter(e,i)}applyFilters(e,...i){var s;return(s=this._filters[e])===null||s===void 0||s.forEach(n=>{i[0]=n.fn.apply(this,i)}),i[0]}on(e,i){var s,n;this._listeners[e]||(this._listeners[e]=[]),(s=this._listeners[e])===null||s===void 0||s.push(i),(n=this.pswp)===null||n===void 0||n.on(e,i)}off(e,i){var s;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(n=>i!==n)),(s=this.pswp)===null||s===void 0||s.off(e,i)}dispatch(e,i){var s;if(this.pswp)return this.pswp.dispatch(e,i);let n=new Di(e,i);return(s=this._listeners[e])===null||s===void 0||s.forEach(r=>{r.call(this,n)}),n}},ki=class{constructor(e,i){if(this.element=z("pswp__img pswp__img--placeholder",e?"img":"div",i),e){let s=this.element;s.decoding="async",s.alt="",s.src=e,s.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,i){this.element&&(this.element.tagName==="IMG"?(gi(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=Re(0,0,e/250)):gi(this.element,e,i))}destroy(){var e;(e=this.element)!==null&&e!==void 0&&e.parentNode&&this.element.remove(),this.element=null}},Ri=class{constructor(e,i,s){this.instance=i,this.data=e,this.index=s,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=F.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,i){if(this.slide&&this.usePlaceholder())if(this.placeholder){let s=this.placeholder.element;s&&!s.parentElement&&this.slide.container.prepend(s)}else{let s=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new ki(s,this.slide.container)}this.element&&!i||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=z("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=z("pswp__content","div"),this.element.innerHTML=this.data.html||""),i&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var i,s;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;let n=this.element;this.updateSrcsetSizes(),this.data.srcset&&(n.srcset=this.data.srcset),n.src=(i=this.data.src)!==null&&i!==void 0?i:"",n.alt=(s=this.data.alt)!==null&&s!==void 0?s:"",this.state=F.LOADING,n.complete?this.onLoaded():(n.onload=()=>{this.onLoaded()},n.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=F.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===F.LOADED||this.state===F.ERROR)&&this.removePlaceholder())}onError(){this.state=F.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,
vendor: 27,255 bytes, line 5
5content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===F.LOADING,this)}isError(){return this.state===F.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(e,i){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,i),!this.instance.dispatch("contentResize",{content:this,width:e,height:i}).defaultPrevented&&(gi(this.element,e,i),this.isImageContent()&&!this.isError()))){let s=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=i,s?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:i,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==F.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;let e=this.element,i=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||i>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=i+"px",e.dataset.largestUsedSize=String(i))}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,i;let s=z("pswp__error-msg","div");s.innerText=(e=(i=this.instance.options)===null||i===void 0?void 0:i.errorMsg)!==null&&e!==void 0?e:"",s=this.instance.applyFilters("contentErrorElement",s,this),this.element=z("pswp__content pswp__error-msg-container","div"),this.element.appendChild(s),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===F.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||jn())?(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&&!jn()?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===F.LOADED||this.state===F.ERROR)&&this.removePlaceholder()))}},Cl=5;function rr(t,e,i){let s=e.createContentFromData(t,i),n,{options:r}=e;if(r){n=new dt(r,t,-1);let a;e.pswp?a=e.pswp.viewportSize:a=ir(r,e);let o=sr(r,a,t,i);n.update(s.width,s.height,o)}return s.lazyLoad(),n&&s.setDisplayedSize(Math.ceil(s.width*n.initial),Math.ceil(s.height*n.initial)),s}function Ll(t,e){let i=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:i}).defaultPrevented)return rr(i,e,t)}var Fi=class{constructor(e){this.pswp=e,this.limit=Math.max(e.options.preload[0]+e.options.preload[1]+1,Cl),this._cachedItems=[]}updateLazy(e){let{pswp:i}=this;if(i.dispatch("lazyLoad").defaultPrevented)return;let{preload:s}=i.options,n=e===void 0?!0:e>=0,r;for(r=0;r<=s[1];r++)this.loadSlideByIndex(i.currIndex+(n?r:-r));for(r=1;r<=s[0];r++)this.loadSlideByIndex(i.currIndex+(n?-r:r))}loadSlideByIndex(e){let i=this.pswp.getLoopedIndex(e),s=this.getContentByIndex(i);s||(s=Ll(i,this.pswp),s&&this.addToCache(s))}getContentBySlide(e){let i=this.getContentByIndex(e.index);return i||(i=this.pswp.createContentFromData(e.data,e.index),this.addToCache(i)),i.setSlide(e),i}addToCache(e){if(this.removeByIndex(e.index),this._cachedItems.push(e),this._cachedItems.length>this.limit){let i=this._cachedItems.findIndex(s=>!s.isAttached&&!s.hasSlide);i!==-1&&this._cachedItems.splice(i,1)[0].destroy()}}removeByIndex(e){let i=this._cachedItems.findIndex(s=>s.index===e);i!==-1&&this._cachedItems.splice(i,1)}getContentByIndex(e){return this._cachedItems.find(i=>i.index===e)}destroy(){this._cachedItems.forEach(e=>e.destroy()),this._cachedItems=[]}},Ni=class extends zi{getNumItems(){var e;let i=0,s=(e=this.options)===null||e===void 0?void 0:e.dataSource;s&&"length"in s?i=s.length:s&&"gallery"in s&&(s.items||(s.items=this._getGalleryDOMElements(s.gallery)),s.items&&(i=s.items.length));let n=this.dispatch("numItems",{dataSource:s,numItems:i});return this.applyFilters("numItems",n.numItems,s)}createContentFromData(e,i){return new Ri(e,this,i)}getItemData(e){var i;let s=(i=this.options)===null||i===void 0?void 0:i.dataSource,n={};Array.isArray(s)?n=s[e]:s&&"gallery"in s&&(s.items||(s.items=this._getGalleryDOMElements(s.gallery)),n=s.items[e]);let r=n;r instanceof Element&&(r=this._domElementToItemData(r));let a=this.dispatch("itemData",{itemData:r||{},index:e});return this.applyFilters("itemData",a.itemData,e)}_getGalleryDOMElements(e){var i,s;return(i=this.options)!==null&&i!==void 0&&i.children||(s=this.options)!==null&&s!==void 0&&s.childSelector?rl(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){let i={element:e},s=e.tagName==="A"?e:e.querySelector("a");if(s){i.src=s.dataset.pswpSrc||s.href,s.dataset.pswpSrcset&&(i.srcset=s.dataset.pswpSrcset),i.width=s.dataset.pswpWidth?parseInt(s.dataset.pswpWidth,10):0,i.height=s.dataset.pswpHeight?parseInt(s.dataset.pswpHeight,10):0,i.w=i.width,i.h=i.height,s.dataset.pswpType&&(i.type=s.dataset.pswpType);let r=e.querySelector("img");if(r){var n;i.msrc=r.currentSrc||r.src,i.alt=(n=r.getAttribute("alt"))!==null&&n!==void 0?n:""}(s.dataset.pswpCropped||s.dataset.cropped)&&(i.thumbCropped=!0)}return this.applyFilters("domItemData",i,e,s)}lazyLoadData(e,i){return rr(e,this,i)}},De=.003,$i=class{constructor(e){this.pswp=e,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),e.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return;let e=this.pswp.currSlide;this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,e&&e.currZoomLevel*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout(()=>{this._start()},this._croppedZoom?30:0)}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){let e=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,e&&e.zoomLevels.initial*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){let{pswp:e}=this,i=this.pswp.currSlide,{options:s}=e;if(s.showHideAnimationType==="fade"?(s.showHideOpacity=!0,this._thumbBounds=void 0):s.showHideAnimationType==="none"?(s.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=i?.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=!!(this._duration&&this._duration>50),this._animateZoom=!!this._thumbBounds&&i?.content.usePlaceholder()&&(!this.isClosing||!e.mainScroll.isShifted()),!this._animateZoom)this._animateRootOpacity=!0,this.isOpening&&i&&(i.zoomAndPanToInitial(),i.applyCurrentZoomPan());else{var n;this._animateRootOpacity=(n=s.showHideOpacity)!==null&&n!==void 0?n:!1}if(this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>De,this._opacityElement=this._animateRootOpacity?e.element:e.bg,!this._useAnimation){this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,this.isOpening&&(e.element&&(e.element.style.opacity=String(De)),e.applyBgOpacity(1));return}if(this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect){var r;this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=(r=this.pswp.currSlide)===null||r===void 0?void 0:r.holderElement,e.container&&(e.container.style.overflow="hidden",e.container.style.width=e.viewportSize.x+"px")}else this._croppedZoom=!1;this.isOpening?(this._animateRootOpacity?(e.element&&(e.element.style.opacity=String(De)),e.applyBgOpacity(1)):(this._animateBgOpacity&&e.bg&&(e.bg.style.opacity=String(De)),e.element&&(e.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(De)))):this.isClosing&&(e.mainScroll.itemHolders[0]&&(e.mainScroll.itemHolders[0].el.style.display="none"),e.mainScroll.itemHolders[2]&&(e.mainScroll.itemHolders[2].el.style.display="none"),this._croppedZoom&&e.mainScroll.x!==0&&(e.mainScroll.resetPosition(),e.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&this._placeholder.tagName==="IMG"?new Promise(e=>{let i=!1,s=!0;sl(this._placeholder).finally(()=>{i=!0,s||e(!0)}),setTimeout(()=>{s=!1,i&&e(!0)},50),setTimeout(e,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var e,i;(e=this.pswp.element)===null||e===void 0||e.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),(i=this.pswp.element)===null||i===void 0||i.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){let{pswp:e}=this;if(this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,e.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),e.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed)e.destroy();else if(this.isOpen){var i;this._animateZoom&&e.container&&(e.container.style.overflow="visible",e.container.style.width="100%"),(i=e.currSlide)===null||i===void 0||i.applyCurrentZoomPan()}}_animateToOpenState(){let{pswp:e}=this;this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,0,0)"),this._animateTo(this._cropContainer2,"transform","none")),e.currSlide&&(e.currSlide.zoomAndPanToInitial(),this._animateTo(e.currSlide.container,"transform",e.currSlide.getCurrentTransform()))),this._animateBgOpacity&&e.bg&&this._animateTo(e.bg,"opacity",String(e.options.bgOpacity)),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","1")}_animateToClosedState(){let{pswp:e}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&e.bgOpacity>.01&&e.bg&&this._animateTo(e.bg,"opacity","0"),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","0")}_setClosedStateZoomPan(e){if(!this._thumbBounds)return;let{pswp:i}=this,{innerRect:s}=this._thumbBounds,{currSlide:n,viewportSize:r}=i;if(this._croppedZoom&&s&&this._cropContainer1&&this._cropContainer2){let a=-r.x+(this._thumbBounds.x-s.x)+s.w,o=-r.y+(this._thumbBounds.y-s.y)+s.h,l=r.x-s.w,c=r.y-s.h;e?(this._animateTo(this._cropContainer1,"transform",Re(a,o)),this._animateTo(this._cropContainer2,"transform",Re(l,c))):(oe(this._cropContainer1,a,o),oe(this._cropContainer2,l,c))}n&&(T(n.pan,s||this._thumbBounds),n.currZoomLevel=this._thumbBounds.w/n.width,e?this._animateTo(n.container,"transform",n.getCurrentTransform()):n.applyCurrentZoomPan())}_animateTo(e,i,s){if(!this._duration){e.style[i]=s;return}let{animations:n}=this.pswp,r={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{n.activeAnimations.length||this._onAnimationComplete()},target:e};r[i]=s,n.startTransition(r)}},Ol={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"},Fe=class extends Ni{constructor(e){super(),this.options=this._prepareOptions(e||{}),this.offset={x:0,y:0},this._prevViewportSize={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this._initialItemData={},this._initialThumbBounds=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new vi,this.animations=new Ci,this.mainScroll=new Ei(this),this.gestures=new xi(this),this.opener=new $i(this),this.keyboard=new Ai(this),this.contentLoader=new Fi(this)}init(){if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let e="pswp--open";return this.gestures.supportsTouch&&(e+=" pswp--touch"),this.options.mainClass&&(e+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+e),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new Li(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",()=>{let{itemHolders:i}=this.mainScroll;i[0]&&(i[0].el.style.display="block",this.setContent(i[0],this.currIndex-1)),i[2]&&(i[2].el.style.display="block",this.setContent(i[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")}),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(e){let i=this.getNumItems();return this.options.loop&&(e>i-1&&(e-=i),e<0&&(e+=i)),Ne(e,0,i-1)}appendHeavy(){this.mainScroll.itemHolders.forEach(e=>{var i;(i=e.slide)===null||i===void 0||i.appendHeavy()})}goTo(e){this.mainScroll.moveIndexBy(this.getLoopedIndex(e)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...e){var i;(i=this.currSlide)===null||i===void 0||i.zoomTo(...e)}toggleZoom(){var e;(e=this.currSlide)===null||e===void 0||e.toggleZoom()}close(){!this.opener.isOpen||this.isDestroying||(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){var e;if(!this.isDestroying){this.options.showHideAnimationType="none",this.close();return}this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),(e=this.element)===null||e===void 0||e.remove(),this.mainScroll.itemHolders.forEach(i=>{var s;(s=i.slide)===null||s===void 0||s.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(e){this.contentLoader.removeByIndex(e),this.mainScroll.itemHolders.forEach((i,s)=>{var n,r;let a=((n=(r=this.currSlide)===null||r===void 0?void 0:r.index)!==null&&n!==void 0?n:0)-1+s;if(this.canLoop()&&(a=this.getLoopedIndex(a)),a===e&&(this.setContent(i,e,!0),s===1)){var o;this.currSlide=i.slide,(o=i.slide)===null||o===void 0||o.setIsActive(!0)}}),this.dispatch("change")}setContent(e,i,s){if(this.canLoop()&&(i=this.getLoopedIndex(i)),e.slide){if(e.slide.index===i&&!s)return;e.slide.destroy(),e.slide=void 0}if(!this.canLoop()&&(i<0||i>=this.getNumItems()))return;let n=this.getItemData(i);e.slide=new _i(n,i,this),i===this.currIndex&&(this.currSlide=e.slide),e.slide.append(e.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(e){if(this.isDestroying)return;let i=ir(this.options,this);!e&&ke(i,this._prevViewportSize)||(T(this._prevViewportSize,i),this.dispatch("beforeResize"),T(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(e){this.bgOpacity=Math.max(e,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){if(!this.hasMouse){var e;this.hasMouse=!0,(e=this.element)===null||e===void 0||e.classList.add("pswp--has_mouse")}}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout(()=>{this.updateSize()},500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(e,i){this.offset.x=e,this.offset.y=i,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=z("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=z("pswp__bg","div",this.element),this.scrollWrap=z("pswp__scroll-wrap","section",this.element),this.container=z("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new Mi(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return Tl(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(e){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(e.showHideAnimationType="none",e.zoomAnimationDuration=0),{...Ol,...e}}};var ge=[{id:"lifestyle",label:"What is your horse\u2019s lifestyle?",type:"single",options:[{id:"growing-breeding",label:"Growing / Breeding",icon:{name:"growing_breeding",alt:"Growing and breeding icon.",width:"26",height:"30"},desc:"Young, pregnant, or nursing horses building muscle and bone.",points:{"alfalfa-chopped":10,"alfalfa-compressed-bale":10,"alfalfa-cubes":10,"alfalfa-grab-go-compressed-bale":10,"alfalfa-mini-cubes":10,"alfalfa-mini-pellets":10,"alfalfa-oat-pellets":10,"alfalfa-orchard-compressed-bale":10,"alfalfa-orchard-grab-go-compressed-bale":10,"alfalfa-pellets":10,"alfalfa-timothy-chopped":10,"alfalfa-timothy-cubes":10,"alfalfa-timothy-pellets":10,"certified-alfalfa-compressed-bale":10,"certified-alfalfa-cubes":10,"certified-alfalfa-grab-go-compressed-bale":10,"forage-plus-gastric-support":10,"organic-alfalfa-grab-go-compressed-bale":10,"organic-alfalfa-pellets":10},exclude:[]},{id:"pleasure-maintenance",label:"Pleasure / Maintenance",icon:{name:"pleasure_maintenance",alt:"Pleasure and maintenance icon.",width:"34",height:"30"},desc:"Light riding and everyday companionship at a steady energy level.",points:{"certified-timothy-grass-compressed-bale":10,"certified-timothy-grass-pellets":10,"forage-plus-gastric-support":10,"orchard-grass-compressed-bale":10,"orchard-grass-grab-go-compressed-bale":10,"orchard-grass-pellets":10,"teff-grass-pellets":10,"timothy-grass-chopped":10,"timothy-grass-compressed-bale":10,"timothy-grass-grab-go-compressed-bale":10,"timothy-grass-mini-cubes":10},exclude:[]},{id:"performance",label:"Performance",icon:{name:"performance",alt:"Performance icon.",width:"30",height:"30"},desc:"Hard-working athletes in regular training or competition.",points:{"alfalfa-chopped":10,"alfalfa-compressed-bale":10,"alfalfa-cubes":10,"alfalfa-grab-go-compressed-bale":10,"alfalfa-mini-cubes":10,"alfalfa-mini-pellets":10,"alfalfa-pellets":10,"certified-alfalfa-compressed-bale":10,"certified-alfalfa-cubes":10,"certified-alfalfa-grab-go-compressed-bale":10,"forage-plus-gastric-support":10,"organic-alfalfa-grab-go-compressed-bale":10,"organic-alfalfa-pellets":10,"smart-beet-pellets":10,"smart-beet-shreds":10,"smart-carb-performance":10},exclude:[]},{id:"senior",label:"Senior",icon:{name:"senior",alt:"Senior horse icon.",width:"35",height:"30"},desc:"Older horses that do best on softer, easy-to-digest forage.",points:{"alfalfa-chopped":10,"alfalfa-compressed-bale":10,"alfalfa-cubes":10,"alfalfa-grab-go-compressed-bale":10,"alfalfa-mini-cubes":10,"alfalfa-mini-pellets":10,"alfalfa-oat-pellets":10,"alfalfa-orchard-compressed-bale":10,"alfalfa-orchard-grab-go-compressed-bale":10,"alfalfa-pellets":10,"alfalfa-timothy-chopped":10,"alfalfa-timothy-cubes":10,"alfalfa-timothy-pellets":10,"certified-alfalfa-compressed-bale":10,"certified-alfalfa-cubes":10,"certified-alfalfa-grab-go-compressed-bale":10,"certified-timothy-grass-compressed-bale":10,"certified-timothy-grass-pellets":10,"forage-plus-gastric-support":10,"orchard-grass-compressed-bale":10,"orchard-grass-grab-go-compressed-bale":10,"orchard-grass-pellets":10,"organic-alfalfa-grab-go-compressed-bale":10,"organic-alfalfa-pellets":10,"smart-beet-pellets":10,"smart-beet-shreds":10,"smart-carb-performance":10,"teff-grass-pellets":10,"timothy-grass-chopped":10,"timothy-grass-compressed-bale":10,"timothy-grass-grab-go-compressed-bale":10,"timothy-grass-mini-cubes":10},exclude:[]}]},{id:"activity",label:"What is the activity level of your horse?",type:"single",options:[{id:"maintenance",label:"Maintenance",icon:{name:"maintenance",alt:"Maintenance activity icon.",width:"36",height:"30"},desc:"Little to no work \u2014 kept comfortably at a steady, stable weight.",points:{"alfalfa-chopped":10,"alfalfa-compressed-bale":10,"alfalfa-cubes":10,"alfalfa-grab-go-compressed-bale":10,"alfalfa-mini-cubes":10,"alfalfa-mini-pellets":10,"alfalfa-pellets":10,"certified-alfalfa-compressed-bale":10,"certified-alfalfa-cubes":10,"certified-alfalfa-grab-go-compressed-bale":10,"certified-timothy-grass-compressed-bale":10,"certified-timothy-grass-pellets":10,"orchard-grass-compressed-bale":10,"orchard-grass-grab-go-compressed-bale":10,"orchard-grass-pellets":10,"organic-alfalfa-grab-go-compressed-bale":10,"organic-alfalfa-pellets":10,"teff-grass-pellets":10,"timothy-grass-chopped":10,"timothy-grass-compressed-bale":10,"timothy-grass-grab-go-compressed-bale":10,"timothy-grass-mini-cubes":10},exclude:[]},{id:"light",label:"Light",icon:{name:"light",alt:"Light activity icon.",width:"36",height:"30"},desc:"Occasional rides or turnout \u2014 a few light sessions a week.",points:{"forage-plus-gastric-support":10,"orchard-grass-compressed-bale":10,"orchard-grass-grab-go-compressed-bale":10,"orchard-grass-pellets":10,"teff-grass-pellets":10},exclude:[]},{id:"moderate",label:"Moderate",icon:{name:"moderate",alt:"Moderate activity icon.",width:"36",height:"30"},desc:"Consistent work most days, like steady trail or arena time.",points:{"alfalfa-oat-pellets":10,"alfalfa-orchard-compressed-bale":10,"alfalfa-orchard-grab-go-compressed-bale":10,"alfalfa-timothy-chopped":10,"alfalfa-timothy-cubes":10,"alfalfa-timothy-pellets":10,"smart-beet-pellets":5,"smart-beet-shreds":5,"smart-carb-performance":10},exclude:[]},{id:"heavy",label:"Heavy",icon:{name:"heavy",alt:"Heavy activity icon.",width:"36",height:"30"},desc:"Intense, frequent training or demanding competition.",points:{"alfalfa-chopped":10,"alfalfa-compressed-bale":10,"alfalfa-cubes":10,"alfalfa-grab-go-compressed-bale":10,"alfalfa-mini-cubes":10,"alfalfa-mini-pellets":10,"alfalfa-pellets":10,"certified-alfalfa-compressed-bale":10,"certified-alfalfa-cubes":10,"certified-alfalfa-grab-go-compressed-bale":10,"organic-alfalfa-grab-go-compressed-bale":10,"organic-alfalfa-pellets":10,"smart-beet-pellets":10,"smart-beet-shreds":10,"smart-carb-performance":10},exclude:[]}]},{id:"health",label:"Does your horse have any health considerations or feeding challenges?",type:"multi",options:[{id:"easy-keeper",label:"Easy Keeper",icon:{name:"easy_keeper",alt:"Easy keeper icon.",width:"30",height:"30"},desc:"Gains weight easily \u2014 does best on lower-calorie forage.",points:{"alfalfa-oat-pellets":10,"alfalfa-orchard-compressed-bale":10,"alfalfa-orchard-grab-go-compressed-bale":10,"alfalfa-timothy-chopped":10,"alfalfa-timothy-cubes":10,"alfalfa-timothy-pellets":10,"certified-timothy-grass-compressed-bale":10,"certified-timothy-grass-pellets":10,"orchard-grass-compressed-bale":10,"orchard-grass-grab-go-compressed-bale":10,"orchard-grass-pellets":10,"teff-grass-pellets":10,"timothy-grass-chopped":10,"timothy-grass-compressed-bale":10,"timothy-grass-grab-go-compressed-bale":10,"timothy-grass-mini-cubes":10},exclude:[]},{id:"hard-keeper",label:"Hard Keeper",icon:{name:"hard_keeper",alt:"Hard keeper icon.",width:"30",height:"30"},desc:"Struggles to keep weight on \u2014 needs calorie-dense forage.",points:{"alfalfa-chopped":10,"alfalfa-compressed-bale":10,"alfalfa-cubes":10,"alfalfa-grab-go-compressed-bale":10,"alfalfa-mini-cubes":10,"alfalfa-mini-pellets":10,"alfalfa-pellets":10,"certified-alfalfa-compressed-bale":10,"certified-alfalfa-cubes":10,"certified-alfalfa-grab-go-compressed-bale":10,"organic-alfalfa-grab-go-compressed-bale":10,"organic-alfalfa-pellets":10,"smart-beet-pellets":5,"smart-beet-shreds":5},exclude:[]},{id:"sugar-starch-sensitive",label:"Sugar / Starch Sensitivities",icon:{name:"sugar_starch_sensitive",alt:"Sugar and starch sensitivity icon.",width:"30",height:"30"}
5,desc:"Best kept on low-sugar, low-starch forage.",points:{"alfalfa-chopped":10,"alfalfa-compressed-bale":10,"alfalfa-cubes":10,"alfalfa-grab-go-compressed-bale":10,"alfalfa-mini-cubes":10,"alfalfa-mini-pellets":10,"alfalfa-pellets":10,"certified-alfalfa-compressed-bale":10,"certified-alfalfa-cubes":10,"certified-alfalfa-grab-go-compressed-bale":10,"organic-alfalfa-grab-go-compressed-bale":10,"organic-alfalfa-pellets":10,"smart-carb-performance":20},exclude:[]},{id:"gastric-sensitive",label:"Gastric Health / Sensitive Gut",icon:{name:"gastric_health_sensitive_gut",alt:"Gastric health and sensitive gut icon.",width:"30",height:"30"},desc:"Prone to ulcers or a sensitive, easily-upset gut.",points:{"alfalfa-chopped":10,"alfalfa-compressed-bale":10,"alfalfa-cubes":10,"alfalfa-grab-go-compressed-bale":10,"alfalfa-mini-cubes":10,"alfalfa-mini-pellets":10,"alfalfa-pellets":10,"certified-alfalfa-compressed-bale":10,"certified-alfalfa-cubes":10,"certified-alfalfa-grab-go-compressed-bale":10,"forage-plus-gastric-support":20,"organic-alfalfa-grab-go-compressed-bale":10,"organic-alfalfa-pellets":10,"smart-carb-performance":10},exclude:[]},{id:"limited-chewing",label:"Limited Chewing Ability",icon:{name:"limited_chewing_ability",alt:"Limited chewing ability icon.",width:"27",height:"30"},desc:"Dental wear makes long-stem hay hard to chew.",points:{"alfalfa-chopped":10,"alfalfa-cubes":10,"alfalfa-mini-cubes":10,"alfalfa-mini-pellets":10,"alfalfa-oat-pellets":10,"alfalfa-pellets":10,"alfalfa-timothy-chopped":10,"alfalfa-timothy-cubes":10,"alfalfa-timothy-pellets":10,"certified-alfalfa-cubes":10,"certified-timothy-grass-pellets":10,"forage-plus-gastric-support":10,"orchard-grass-pellets":10,"organic-alfalfa-pellets":10,"smart-beet-pellets":10,"smart-beet-shreds":10,"smart-carb-performance":10,"teff-grass-pellets":10,"timothy-grass-chopped":10,"timothy-grass-mini-cubes":10},exclude:[]},{id:"none",label:"None",icon:{name:"none",alt:"No health considerations icon.",width:"30",height:"30"},exclusive:!0,desc:"No special health concerns to feed around.",points:{},exclude:[]}]},{id:"form",label:"What form of forage do you prefer to feed?",type:"multi",options:[{id:"bales",label:"Bales",icon:{name:"bales",alt:"Hay bales icon.",width:"35",height:"21"},desc:"Traditional long-stem hay in compressed bales.",points:{"alfalfa-compressed-bale":10,"alfalfa-grab-go-compressed-bale":10,"alfalfa-orchard-compressed-bale":10,"alfalfa-orchard-grab-go-compressed-bale":10,"certified-alfalfa-compressed-bale":10,"certified-alfalfa-grab-go-compressed-bale":10,"certified-timothy-grass-compressed-bale":10,"orchard-grass-compressed-bale":10,"orchard-grass-grab-go-compressed-bale":10,"organic-alfalfa-grab-go-compressed-bale":10,"timothy-grass-compressed-bale":10,"timothy-grass-grab-go-compressed-bale":10},exclude:[]},{id:"cubes",label:"Cubes",icon:{name:"cubes",alt:"Forage cubes icon.",width:"31",height:"30"},desc:"Dense cubes that are easy to portion and store.",points:{"alfalfa-cubes":10,"alfalfa-mini-cubes":10,"alfalfa-timothy-cubes":10,"certified-alfalfa-cubes":10,"timothy-grass-mini-cubes":10},exclude:[]},{id:"pellets",label:"Pellets",icon:{name:"pellets",alt:"Forage pellets icon.",width:"32",height:"30"},desc:"Bite-sized pellets that soak down quickly.",points:{"alfalfa-mini-pellets":10,"alfalfa-oat-pellets":10,"alfalfa-pellets":10,"alfalfa-timothy-pellets":10,"certified-timothy-grass-pellets":10,"forage-plus-gastric-support":10,"orchard-grass-pellets":10,"organic-alfalfa-pellets":10,"smart-beet-pellets":10,"smart-carb-performance":10,"teff-grass-pellets":10},exclude:[]},{id:"chopped",label:"Chopped",icon:{name:"chopped",alt:"Chopped forage icon.",width:"39",height:"21"},desc:"Short-cut forage that\u2019s ready to feed straight away.",points:{"alfalfa-chopped":10,"alfalfa-timothy-chopped":10,"timothy-grass-chopped":10},exclude:[]},{id:"no-preference",label:"No Preference",icon:{name:"no_preference",alt:"No forage preference icon.",width:"30",height:"30"},exclusive:!0,desc:"Open to whichever forage form fits best.",points:{},exclude:[]}]}],ht={"alfalfa-pellets":10,"alfalfa-mini-pellets":20,"certified-timothy-grass-pellets":30,"timothy-grass-grab-go-compressed-bale":40,"alfalfa-grab-go-compressed-bale":50,"alfalfa-timothy-pellets":60,"alfalfa-cubes":70,"alfalfa-mini-cubes":80,"smart-beet-pellets":90,"smart-beet-shreds":100,"alfalfa-orchard-compressed-bale":110,"orchard-grass-pellets":120,"teff-grass-pellets":130,"alfalfa-timothy-cubes":14
50,"certified-alfalfa-grab-go-compressed-bale":150,"alfalfa-chopped":160,"orchard-grass-grab-go-compressed-bale":170,"alfalfa-compressed-bale":180,"timothy-grass-compressed-bale":190,"timothy-grass-chopped":200,"organic-alfalfa-pellets":210,"alfalfa-timothy-chopped":220,"alfalfa-orchard-grab-go-compressed-bale":230,"certified-timothy-grass-compressed-bale":240,"alfalfa-oat-pellets":250,"certified-alfalfa-cubes":260,"certified-alfalfa-compressed-bale":270,"forage-plus-gastric-support":280,"orchard-grass-compressed-bale":290,"smart-carb-performance":300,"timothy-grass-mini-cubes":310,"organic-alfalfa-grab-go-compressed-bale":320},ar=[600,700,800,900,1e3,1100,1200,1300,1400];var ut={};for(let t of ge){ut[t.id]={};for(let e of t.options)ut[t.id][e.id]=e}function or(t){return t==null?[]:Array.isArray(t)?t.filter(Boolean):[t]}function Ml(t){let e=[];for(let i of ge)for(let s of or(t[i.id])){let n=ut[i.id][s];n&&e.push(n)}return e}function Dl(t){let e={},i=new Set;for(let s of Ml(t)){for(let[n,r]of Object.entries(s.points||{}))e[n]=(e[n]||0)+r;for(let n of s.exclude||[])i.add(n)}for(let s of i)delete e[s];return{scores:e,excluded:[...i]}}function zl(t,e){let i=0,s=0;for(let n of ge){let r=or(t[n.id]);if(r.length===0)continue;s++,r.some(o=>{let l=ut[n.id][o];return l&&(l.points||{})[e]>0})&&i++}return{matched:i,total:s}}function lr(t,e){let{scores:i}=Dl(t),s=[];return{ranked:Object.keys(i).filter(r=>i[r]>0).filter(r=>e&&!e.has(r)?(s.push(r),!1):!0).map(r=>({slug:r,score:i[r],hierarchy:ht[r]??1/0,...zl(t,r)})).sort((r,a)=>a.score-r.score||r.hierarchy-a.hierarchy),missing:s}}function cr(t){let e=Math.round(t*.02),i=s=>({standlee:Math.round(e*s*10)/10,hay:Math.round(e*(1-s)*10)/10});return{total:e,replace75:i(.75),replace50:i(.5),replace25:i(.25)}}var kl="/.netlify/functions/forage_finder_results",Rl="/tools/store-locator/",Bi="There was an issue with your email, please contact [email protected] if this persists.";function Zi(t,e){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:t,...e})}function dr(){return{questions:ge,weightOptions:ar,storeUrl:Rl,step:0,name:"",weight:null,answers:{},replacePercent:25,replaceOptions:[25,50,75],bvStarted:!1,email:"",submitting:!1,emailSent:!1,emailError:"",productsBySlug:{},liveSlugs:new Set,reportedMissing:!1,announce:"",viewportHeight:null,viewportAnimated:!1,panelTransition:{["x-transition:enter"]:"forage-finder-fade",["x-transition:enter-start"]:"forage-finder-fade-hidden",["x-transition:enter-end"]:"forage-finder-fade-shown",["x-transition:leave"]:"forage-finder-fade forage-finder-leaving",["x-transition:leave-start"]:"forage-finder-fade-shown",["x-transition:leave-end"]:"forage-finder-fade-hidden"},weightButton(t){return{type:"button",[":class"](){return this.weight===t&&"is-selected"},[":aria-pressed"](){return this.weight===t},[":tabindex"](){return this.slideIndex===0?0:-1},["@click"](){this.weight=t}}},init(){let t=Array.isArray(window.forageFinderProducts)?window.forageFinderProducts:[];for(let e of t)this.productsBySlug[e.slug]=e,this.liveSlugs.add(e.slug);window.addEventListener("resize",()=>this.measureViewport()),this.$nextTick(()=>{this.measureViewport();let e=this.$refs.track;if(e&&window.ResizeObserver){let i=new ResizeObserver(()=>this.measureViewport());e.querySelectorAll(".forage-finder-slide").forEach(s=>i.observe(s))}})},measureViewport(){let t=this.$refs.track;if(!t)return;let e=t.querySelectorAll(".forage-finder-slide")[this.slideIndex];e&&e.offsetHeight>0&&(this.viewportHeight=e.offsetHeight,this.viewportAnimated||this.$nextTick(()=>{this.viewportAnimated=!0}))},get totalQuestions(){return this.questions.length},get isStart(){return this.step===0},get isResults(){return this.step>this.totalQuestions},get currentQuestion(){return this.isStart||this.isResults?null:this.questions[this.step-1]},get slideIndex(){return Math.min(this.step,this.totalQuestions)},get answeredCount(){return this.questions.filter(t=>this.hasAnswer(t)).length},get progressPercent(){return Math.round(this.answeredCount/this.totalQuestions*100)},get displayName(){return this.name.trim()||"your horse"}
5,iconUrl(t){return"/images/icons/forage-finder/"+t+".svg"},hasAnswer(t){let e=this.answers[t.id];return t.type==="multi"?Array.isArray(e)&&e.length>0:e!=null&&e!==""},isSelected(t,e){let i=this.answers[t.id];return t.type==="multi"?Array.isArray(i)&&i.includes(e):i===e},selectOption(t,e){t.type==="multi"?this.toggleMultiOption(t,e):this.answers[t.id]=e.id},toggleMultiOption(t,e){let i=Array.isArray(this.answers[t.id])?[...this.answers[t.id]]:[],s=i.includes(e.id);if(e.exclusive){this.answers[t.id]=s?[]:[e.id];return}i=i.filter(n=>!this.optionById(t,n)?.exclusive),s?i=i.filter(n=>n!==e.id):i.push(e.id),this.answers[t.id]=i},optionById(t,e){return t.options.find(i=>i.id===e)},get canProceed(){return this.isStart?this.name.trim()!==""&&this.weight!=null:this.currentQuestion?this.hasAnswer(this.currentQuestion):!0},scrollToTop(){this.$root.scrollIntoView({behavior:"smooth",block:"start"})},next(){this.canProceed&&(this.isStart&&(Zi("forage_finder_start",{}),this.startRatings()),this.step+=1,this.scrollToTop(),this.isResults?this.onEnterResults():(this.setAnnounce(),this.$nextTick(()=>this.measureViewport())))},back(){this.step!==0&&(this.step-=1,this.scrollToTop(),this.setAnnounce(),this.$nextTick(()=>this.measureViewport()))},restart(){this.step=0,this.name="",this.weight=null,this.answers={},this.replacePercent=25,this.emailSent=!1,this.emailError="",this.reportedMissing=!1,this.viewportAnimated=!1,this.$nextTick(()=>{this.measureViewport(),this.scrollToTop()})},setAnnounce(){this.currentQuestion&&(this.announce="Question "+this.step+" of "+this.totalQuestions+": "+this.currentQuestion.label)},get results(){return lr(this.answers,this.liveSlugs)},get topPick(){return this.results.ranked[0]||null},get otherPicks(){return this.results.ranked.slice(1).filter(t=>t.score>0).slice(0,3)},get intake(){return this.weight?cr(this.weight):null},get supplementTier(){return this.intake&&{25:this.intake.replace25,50:this.intake.replace50,75:this.intake.replace75}[this.replacePercent]||null},get ratingProducts(){return Object.keys(ht).map(t=>this.productsBySlug[t]).filter(t=>t&&t.sku)},startRatings(){this.bvStarted||(this.bvStarted=!0,this.$nextTick(()=>this.loadBazaarvoice()))},loadBazaarvoice(){if(document.getElementById("forage-finder-bv"))return;let t=document.createElement("script");t.id="forage-finder-bv",t.async=!0,t.src="https://apps.bazaarvoice.com/deployments/standleeforage/main_site/production/en_US/bv.js",document.body.appendChild(t)},ratingFor(t){let e=this.productFor(t);if(!e||!e.sku)return"";let i=document.querySelector('[data-forage-bv-sku="'+e.sku+'"]');return i?i.innerHTML:""},productFor(t){return this.productsBySlug[t]||null},productUrl(t){return"/products/"+t+"/"},cdn:"https://images.standlee.com",imageSrc(t,e){return this.cdn+t+"?auto=format&w="+e},imageSrcset(t,e){return this.cdn+t+"?auto=format&w="+e+"&dpr=2&q=50 2x"},onEnterResults(){let{ranked:t,missing:e}=this.results;this.announce="Your forage plan for "+this.displayName+" is ready.",Zi("forage_finder_complete",{recommended:t.slice(0,4).map(i=>i.slug)}),this.reportMissing(e)},reportMissing(t){!t||t.length===0||this.reportedMissing||(this.reportedMissing=!0,window.Sentry&&typeof window.Sentry.captureMessage=="function"&&window.Sentry.captureMessage("Forage Finder: recommended product missing from live feed",{level:"warning",extra:{missingSlugs:t,answers:this.answers,weight:this.weight}}))},async submitEmail(){if(this.emailError="",!this.email.trim()){this.emailError=Bi;return}this.submitting=!0;try{let{ranked:t}=this.results,e=t.slice(0,4).map(s=>{let n=this.productFor(s.slug);return{slug:s.slug,name:n.name,url:this.productUrl(s.slug),image:this.cdn+n.image.previewPath,imageAlt:n.image.alt,description:n.forageFinderDescription}});(await fetch(kl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:this.email.trim(),horseName:this.name.trim(),weight:this.weight,forageLbs:this.intake?this.intake.total:null,supplement:this.intake?{replace75:this.intake.replace75,replace50:this.intake.replace50,replace25:this.intake.replace25}:null,recommended:e})})).ok?(this.emailSent=!0,Zi("forage_finder_email_capture",{})):this.emailError=Bi}catch{this.emailError=Bi}finally{this.submitting=!1}}}}g.plugin(Hn);var Hi="https://images.standlee.com";g.plugin(bn);g.plugin(Rn);g.plugin(Bn);window.Alpine=g;g.store("sideNav",{open:!1,close(){this.open=!1},toggle(){if(this.open=!this.open,this.open){document.body.classList.add("offscreen-nav-visible"),g.store("siteSearch").closeSearch();return}document.body.classList.remove("offscreen-nav-visible")}});g.store("siteSearch",{init(){let t=document.querySelector(".large-nav").getBoundingClientRect().width,i=new URLSearchParams(window.location.search).get("search");i&&(ft?this.blogSearchTerm=i:t?(this.openHeaderSearch(),this.headerSearchTerm=i):(this.openSearch(),this.searchTerm=i))},open:!1,headerSearchOpen:!1,currentScroll:0,blogSearchTerm:"",headerSearchTerm:"",searchTerm:"",clearBlogSearch(){this.resetSearch()},clearHeaderSearch(){this.resetSearch()},clearSearch(){this.resetSearch()},closeSearch(){this.open=!1,this.resetSearch(),g.store("sideNav").open||document.body.classList.remove("offscreen-nav-visible","search-overlay")},openHeaderSearch(){this.headerSearchOpen=!0},openSearch(){g.store("sideNav").close(),this.open=!0,document.body.classList.add("offscreen-nav-visible","search-overlay")},resetSearch(){this.currentScroll=window.scrollY,this.searchTerm="",this.headerSearchTerm="",this.blogSearchTerm="",le&&le.clear(),ce&&ce.clear(),ft&&de&&(de.clear(),window.scrollTo(0,this.currentScroll))}});g.data("headerSearch",()=>({init(){g.effect(()=>{g.store("siteSearch").headerSearchOpen&&this.open()})},close(){g.store("siteSearch").headerSearchOpen&&(g.store("siteSearch").headerSearchOpen=!1,g.store("siteSearch").resetSearch(),this.$focus.focus(document.querySelector("#header-search-toggle")))},open(){g.store("siteSearch").headerSearchOpen||(g.store("siteSearch").headerSearchOpen=!0,document.body.classList.remove("offscreen-nav-visible","search-overlay"),this.$focus.focus(document.querySelector("#header-search-input")))},toggle(){g.store("siteSearch").headerSearchOpen?this.close():this.open()}}));g.data("headerSearchToggle",()=>
5({toggle(){this.$dispatch("toggle-header-search")}}));g.data("sideNav",()=>({init(){this.currentLocation=window.location.pathname},active:null,currentLocation:""}));g.data("thumbnailGallery",(t,e,i)=>({init(){t&&(this.currentImage=t,this.alt=e,this.width=i),this.currentImageZoom()},selectImage(s,n,r,a){if(s===this.currentImage)return;this.loading=!0,document.querySelector("#main-product-image").addEventListener("load",()=>{this.loading=!1},{once:!0}),r?this.width=r:this.width="656",a?this.height=a:this.height="656",this.currentImage=s,this.alt=n,this.currentImageZoom()},currentImageSrc(){return{src:`${Hi}${this.currentImage}?auto=format&width=${this.width}`,srcset:`${Hi}${this.currentImage}?auto=format&width=${this.width}&dpr=2&q=40 2x`}},currentImageZoom(){let s=this,n=new Image;n.onload=function(){s.zoomWidth=this.naturalWidth,s.zoomHeight=this.naturalHeight,s.zoomSrc=n.src},n.src=`${Hi}${s.currentImage}?auto=format&width=1600&q=60`},currentImage:"",alt:"",height:"",width:"",loading:!1,zoomWidth:0,zoomHeight:0,zoomSrc:""}));g.data("sideNavDropdown",(t="")=>({get expanded(){return this.active===t},set expanded(e){this.active=e?t:null}}));g.data("siteSearch",()=>({open:!1,openSearch(){this.open=!0}}));g.data("transcriptToggle",()=>({expanded:!1,toggle(){this.expanded=!this.expanded}}));g.data("emailSubscribe",t=>({init(){this.thanksUrl=t.dataset.redirect,t.dataset.nestedModal&&(this.inModal=t.dataset.nestedModal)},async handleSubmit(e){this.submitting=!0,await fetch("/.netlify/functions/email_subscribe",{method:"POST",body:JSON.stringify(this.inputs)}).then(i=>{if(i.ok){this.inModal&&this.closeModal();let s=e.target.dataset.gtmModalEvent;s&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:s})),window.location=this.thanksUrl}}).catch(()=>{this.submitting=!1})},inputs:{birthday:null,email:"",interests:[]},thanksUrl:"",inModal:!1,submitting:!1}));g.data("grazleeSubscribe",()=>({email:"",submitting:!1,submitted:!1,async handleSubmit(){this.submitting=!0,(await fetch("/.netlify/functions/email_subscribe",{method:"POST",body:JSON.stringify({email:this.email,interests:["LIVESTOCK","GRAZLEE"]})})).ok&&(this.submitted=!0,window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"grazlee_email_subscribe"})),this.submitting=!1}}));g.data("promoEmailSubscribe",t=>({init(){this.thanksUrl=t.dataset.redirect,t.dataset.nestedModal&&(this.inModal=t.dataset.nestedModal)},async handleSubmit(e){this.submitting=!0;let i=await fetch("/.netlify/functions/promo_email_subscribe",{method:"POST",body:JSON.stringify(this.inputs)}).then(s=>{if(s.ok){this.inModal&&this.closeModal();let n=e.target.dataset.gtmModalEvent;n&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:n})),window.location=this.thanksUrl}})},inputs:{email:""},thanksUrl:"",submitting:!1}));g.data("feedTrialEmailSubscribe",t=>({init(){this.thanksUrl=t.dataset.redirect},async handleSubmit(e){this.submitting=!0;let i=await fetch("/.netlify/functions/feed_trial_email_subscribe",{method:"POST",body:JSON.stringify(this.inputs)}).then(s=>{if(s.ok){this.inModal&&this.closeModal();let n=e.target.dataset.gtmModalEvent;n&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:n})),window.location=this.thanksUrl}})},inputs:{email:""},thanksUrl:"",submitting:!1}));g.data("formSelector",()=>({init(){let t=new URLSearchParams(location.search).get("form");t&&this.showForm(t)},showForm(t){this.selectedForm=t;let e=new URL(location.href);e.searchParams.set("form",t),history.replaceState(null,"",e),document.querySelector("#contact-form-selector")?.scrollIntoView({behavior:"smooth"});let i=document.querySelector(`#${t}`);i&&(i.dataset.loaded?this.loading=!1:(this.loading=!0,i.addEventListener("load",()=>{i.dataset.loaded="1",this.loading=!1},{once:!0}),i.src||(i.src=i.dataset.src,iFrameResize({log:!1},`#${i.id}`))))},selectedForm:"",loading:!1}));g.data("filterProducts",t=>({init(){if(this.hideEmptyCategories(),this.urlParams=new URLSearchParams(location.search),this.urlParams.has("species")){let e=this.urlParams.get("species");this.speciesList.includes(e)&&(this.currentSpecies=e)}}
5,filterBySpecies(e){this.currentSpecies=e,this.urlParams.set("species",e),history.replaceState(null,null,"?"+this.urlParams.toString()),this.$nextTick(()=>{this.hideEmptyCategories()})},hideEmptyCategories(){this.$nextTick(()=>{document.querySelectorAll(".product-card-section").forEach(e=>{!Array.from(e.querySelectorAll(".product-card")).every(s=>s.style.display=="none")?e.classList.remove("hide"):e.classList.add("hide")})})},isCurrentSpecies(e){return!!e.dataset.species.includes(this.currentSpecies)},currentSpecies:"",speciesList:["cattle","chinchilla","goat","guinea-pig","hamster-gerbil","mouse-rat","other-livestock","other-small-animal","pig","rabbit","sheep"],urlParams:""}));g.data("tabs",()=>({selectedId:null,init(){this.$nextTick(()=>this.select(this.$id("tab",1)))},select(t){this.selectedId=t},isSelected(t){return this.selectedId===t},whichChild(t,e){return Array.from(e.children).indexOf(t)+1}}));g.bind("TabButton",()=>({type:"button","@click"(){return this.select(this.$el.id)},":aria-selected"(){return this.isSelected(this.$el.id)},":class"(){return this.isSelected(this.$el.id)?"active":""},":id"(){return this.$id("tab",this.whichChild(this.$el.parentElement,this.$refs.tablist))},":tabindex"(){return this.isSelected(this.$el.id)?0:-1}}));g.bind("TabList",()=>({"@keydown.right.prevent.stop"(){return this.$focus.wrap().next()},"@keydown.home.prevent.stop"(){return this.$focus.first()},"@keydown.pageup.prevent.stop"(){return this.$focus.first()},"@keydown.left.prevent.stop"(){return this.$focus.wrap().prev()},"@keydown.end.prevent.stop"(){return this.$focus.last()},"@keydown.page-down.prevent.stop"(){return this.$focus.last()}}));g.bind("TabPanel",()=>({"x-show"(){return this.isSelected(this.$id("tab",this.whichChild(this.$el,this.$el.parentElement)))},":aria-labelledby"(){return this.$id("tab",this.whichChild(this.$el,this.$el.parentElement))}}));g.data("timeline",()=>({selectedId:null,init(){this.$nextTick(()=>this.select(this.$id("timeline-section",1)));let t=document.querySelector("#stick-timeline");new IntersectionObserver(([i])=>i.target.classList.toggle("is-stuck",i.intersectionRatio<1),{threshold:[1]}).observe(t)},select(t){this.selectedId=t},isSelected(t){return this.selectedId===t},whichChild(t,e){return Array.from(e.children).indexOf(t)+1}}));g.bind("TimelineButton",()=>({type:"button","@click"(){return document.querySelector("#timeline-top").scrollIntoView({behavior:"smooth"}),this.select(this.$el.id)},":aria-selected"(){return this.isSelected(this.$el.id)},":class"(){return this.isSelected(this.$el.id)?"active":""},":id"(){return this.$id("timeline-section",this.whichChild(this.$el.parentElement,this.$refs.timelinelist))},":tabindex"(){return this.isSelected(this.$el.id)?0:-1}}));g.bind("TimelineList",()=>({"@keydown.right.prevent.stop"(){return this.$focus.wrap().next()},"@keydown.home.prevent.stop"(){return this.$focus.first()},"@keydown.pageup.prevent.stop"(){return this.$focus.first()},"@keydown.left.prevent.stop"(){return this.$focus.wrap().prev()},"@keydown.end.prevent.stop"(){return this.$focus.last()},"@keydown.page-down.prevent.stop"(){return this.$focus.last()}}));g.bind("TimelinePanel",()=>({"x-show"(){return this.isSelected(this.$id("timeline-section",this.whichChild(this.$el,this.$el.parentElement)))},":aria-labelledby"(){return this.$id("timeline-section",this.whichChild(this.$el,this.$el.parentElement))}}));g.data("promoModal",()=>({init(){this.openModal()},closeModal(){document.body.classList.remove("modal-visible","modal-overlay"),this.open=!1;try{localStorage.setItem(this.modalName,"shown")}catch{}},openModal(){let t=null;try{t=localStorage.getItem(this.modalName)}catch{}t!=="shown"&&(this.open=!0,document.body.classList.add("modal-visible","modal-overlay"))},open:!1,modalName:"harvest-savings-promo-modal"}));g.data("roadblockModal",(t="roadblockModal")=>({init(){this.openModal()},closeModal(){document.body.classList.remove("modal-visible","modal-overlay"),this.open=!1;try{localStorage.setItem(this.modalName,"shown")}catch{}},openModal(){let e=null;try{e=localStorage.getItem(this.modalName)}catch{}e!=="shown"&&(this.open=!0,document.body.classList.add("modal-visible","modal
5-overlay"))},open:!1,modalName:t}));g.data("accordion",()=>({init(){this.expandFromUrlAnchor(),window.addEventListener("hashchange",()=>this.expandFromUrlAnchor())},expandFromUrlAnchor(){let t=window.location.hash.slice(1);if(!t)return;let e=this.$el.id===t?this.$el:this.$el.querySelector(`#${CSS.escape(t)}`);e&&this.$nextTick(()=>{this.expanded=!0,this.scrollToAnchorOnceScrollingIsUnlocked(e)})},scrollToAnchorOnceScrollingIsUnlocked(t){if(!document.body.classList.contains("modal-visible")){this.scrollToAnchor(t);return}let e=new MutationObserver(()=>{document.body.classList.contains("modal-visible")||(e.disconnect(),this.scrollToAnchor(t))});e.observe(document.body,{attributeFilter:["class"]})},scrollToAnchor(t){let e=5,i=null,s=()=>{t.scrollIntoView({behavior:"instant",block:"start"}),e-=1;let n=Math.round(t.getBoundingClientRect().top),r=n===i;i=n,e>0&&!r&&window.setTimeout(s,150)};s()},expanded:!1}));g.bind("AccordionContent",()=>({"x-collapse":"","x-show":"expanded"}));g.bind("AccordionTrigger",()=>({"@click":"expanded = !expanded"}));g.store("personalityQuizAnswers",{init(){this.answers=window.quizAnswerKey,this.resultsPath=window.quizResultsPath},answers:[],selections:[0,0,0,0,0,0,0,0,0,0],result:"",resultsPath:"",calculateAnswers(){this.selections.forEach(i=>{let s=this.answers.find(n=>n.value==i);s&&s.count++});let e=[...this.answers].sort((i,s)=>i.count<s.count?1:i.count>s.count?-1:0);this.result=e[0].slug,window.location=`${this.resultsPath}${this.result}`},selectionsIncomplete(){return this.selections.some(t=>t==0)}});g.data("personalityQuiz",()=>({selectedId:"",selected(t,e){if(g.store("personalityQuizAnswers").selections[e-1]&&t!=this.selectedId)return!0},selectAnswer(){let t=this.$el.dataset.questionNumber,e=this.$el.dataset.optionValue;this.selectedId=e,g.store("personalityQuizAnswers").selections[t-1]=e}}));g.data("copyToClipboard",(t,e="Copy Link")=>({init(){this.copyText=t,this.buttonText=e,this.initialButtonText=e},copyText:"",buttonText:"Copy Link",initialButtonText:"",copied(){this.buttonText="Copied!",window.dataLayer.push({event:"quiz_copy_code"}),setTimeout(()=>{this.buttonText=this.initialButtonText,document.activeElement.blur()},3e3)}}));g.data("christmasGivingEmailSubscribe",(t=0)=>({init(){this.inputs.currentDay=t},async handleSubmit(e){this.submitting=!0;let i=await fetch("/.netlify/functions/christmas_giving_email_subscribe",{method:"POST",body:JSON.stringify(this.inputs)}).then(s=>{s.ok&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"12_days_of_giving_signup"}),this.submitting=!1,this.submitted=!0)})},inputs:{currentDay:"",email:""},submitting:!1,submitted:!1}));g.data("nfrGetAwayEmailSubscribe",(t=0)=>({init(){this.inputs.currentWeek=t.weekNumber,this.inputs.questionOfTheWeek=t.questionOfTheWeek},async handleSubmit(e){console.log(JSON.stringify(this.inputs)),this.submitting=!0;let i=await fetch("/.netlify/functions/nfr_gold_buckle_getaway",{method:"POST",body:JSON.stringify(this.inputs)}).then(s=>{s.ok&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"nfr_gold_belt_buckle_getaway_signup"}),this.submitting=!1,this.submitted=!0)})},inputs:{currentWeek:"",email:"",firstName:"",lastName:"",phone:"",zip:"",questionOfTheWeek:"",questionOfTheWeekChoice:null,species:"",herdSize:""},submitting:!1,submitted:!1}));g.store("feedTrialFormData",{inputs:{first_name:"",last_name:"",email:"",products_to_try:"",current_hay_source:"",horse_suffer:""},options:{current_hay_source:{multiple:!0,options:[{value:"Locally produced hay",label:"Locally produced hay"},{value:"Pasture",label:"Pasture"},{value:"Manufactured pellets or cubes \u2013 competitor brand",label:"Manufactured pellets or cubes \u2013 competitor brand"},{value:"Manufactured pellets or cubes - Standlee",label:"Manufactured pellets or cubes - Standlee"}]},products_to_try:{multiple:!0,options:[{value:"Alfalfa",label:"Alfalfa"},{value:"Timothy Grass",label:"Timothy Grass"},{value:"Orchard Grass",label:"Orchard Grass"},{value:"Mixed",label:"Mixed"},{value:"Pellets",label:"Pellets"},{value:"Cubes",label:"Cubes"},{value:"Chopped",label:"Chopped"},{value:"Compressed Bales",label:"Compressed Bales (includes Grab & Go)"}]},horse_suffer:{multiple:!0,options:[{value:"Laminitis",label:"Laminitis"},{value:"Gastric ulcers",label:"Gastric ulcers"},{value:"Navicular syndrome",label:"Navicular syndrome"},{value:"Cushing's disease",label:"Cushing's disease"},{value:"Equine Metabolic Syndrome",label:"Equine Metabolic Syndrome"},{value:"Prone to colic",label:"Prone to colic"}]}}});g.data("multiSelectBox",(t,e,i=!0)=>({init(){this.multiple=i,this.options=g.store("feedTrialFormData").options[e].options;let s=()=>{let r=this.multiple?this.value:[this.value];$(this.$refs[t]).select2({placeholder:"Select options",multiple:this.multiple,data:this.options.map(a=>({id:a.value,text:a.label,selected:r.map(o=>String(o)).includes(String(a.value))}))})},n=()=>{$(this.$refs[t]).select2("destroy"),this.$refs[t].innerHTML="",s()};s(),$(this.$refs[t]).on("change",()=>{let r=$(this.$refs[t]).select2("data");this.value=this.multiple?r.map(a=>a.id):r[0].id}),this.$watch("value",(r,a)=>{g.store("feedTrialFormData").inputs[e]=r,console.log("Select values",g.store("feedTrialFormData").inputs[e]),n()}),this.$watch("options",()=>n())},multiple:!0,value:[],options:[]}));g.data("feedTrialSignupForm",t=>({init(){this.thanksUrl=t.action},async handleSubmit(e){this.submitting=!0;let i=await fetch("/.netlify/functions/feed_trial_signup",{method:"POST",body:JSON.stringify(g.store("feedTrialFormData").inputs)}).then(async s=>{if(!s.ok){let n=await s.json();throw this.error=n.message,new Error(`${n.message}`)}s.ok?window.location=this.thanksUrl:console.log(s.json())}).catch(s=>{this.error=s,console.error("There was a problem with the fetch operation:",s),console.log(this.error)})},error:"",thanksUrl:"",submitting:!1}));g.data("forageFinder",dr);g.start();var fr=window.matchMedia("(min-width: 950px)"),pr=t=>{t.matches&&(g.store("sideNav").open=!1,document.body.classList.remove("offscreen-nav-visible"),g.store("siteSearch").open&&g.store("siteSearch").closeSearch())};fr.addEventListener("change",t=>pr(t));pr(fr);var Fl=new Me({gallery:".photo-gallery",children:"a",pswpModule:Fe});Fl.init();var Nl=new Me({gallery:".main-image-wrapper a",pswpModule:Fe});Nl.init();window.addEventListener("DOMContentLoaded",()=>{let t=new IntersectionObserver(e=>{e.forEach(i=>
5{let s=i.target.getAttribute("id");i.intersectionRatio>0?document.querySelectorAll(`nav.toc li a[href="#${s}"]`).forEach(n=>{n.classList.add("active")}):document.querySelectorAll(`nav.toc li a[href="#${s}"]`).forEach(n=>{n.classList.remove("active")})})});document.querySelectorAll("section[id]").forEach(e=>{t.observe(e)})});var hr=Array.from(document.querySelectorAll(".file-upload-form"));hr.length&&hr.forEach(t=>{t.querySelectorAll(".file-input").forEach(e=>e.addEventListener("change",$l))});function $l(t){let i=document.querySelector(`form[name="${t.target.form.name}"]`).querySelectorAll(".file-input"),s=[],n=0;i.forEach(r=>{if(r.files[0]){let a=Number((r.files[0].size/1024/1024).toFixed(2));if(s.push({name:r.files[0].name,size:a}),n+a<=8)n+=a,r.nextElementSibling.textContent=`${a} MB`;else{let o="";return s.forEach(l=>o+=`${l.name} - ${l.size} MB
6`),alert(`The maximum combined filesize is 8 MB.
7
8You attempted to attach:
9${o}`),r.value="",s=[],!1}}})}var Bl=document.querySelector(".benefits-container");if(Bl){let a=function(f){let y=Math.max(0,Math.min(f,e.offsetWidth));i.style.width=y+"px",f>e.offsetWidth?n.style.left=y-4+"px":n.style.left=y-0+"px"},o=function(f){return f.stopPropagation&&f.stopPropagation(),f.preventDefault&&f.preventDefault(),f.cancelBubble=!0,f.returnValue=!1,!1},t=f=>{let y=f.target.parentElement;y.parentElement.querySelectorAll(".benefits-hotspot").forEach(b=>{b===y?b.classList.toggle("benefits-hotspot--selected"):b.classList.remove("benefits-hotspot--selected")})};document.querySelectorAll(".benefits-hotspot__button").forEach(y=>{y.addEventListener("click",t)});let e=document.querySelector(".before-after-slider"),i=document.querySelector(".before-image"),s=i.querySelector("img"),n=document.querySelector(".resizer"),r=!1;document.addEventListener("DOMContentLoaded",function(){let f=e.offsetWidth;f!=0&&(s.style.width=f+"px")}),window.addEventListener("resize",function(){let f=e.offsetWidth;f!=0&&(s.style.width=f+"px")}),n.addEventListener("mousedown",function(){r=!0,n.classList.add("resize")}),document.body.addEventListener("mouseup",function(){r=!1,n.classList.remove("resize")}),document.body.addEventListener("mouseleave",function(){r=!1,n.classList.remove("resize")}),document.body.addEventListener("mousemove",function(f){if(!r)return;let y=f.pageX;y-=e.getBoundingClientRect().left,a(y),o(f)}),n.addEventListener("touchstart",function(){r=!0,n.classList.add("resize")}),document.body.addEventListener("touchend",function(){r=!1,n.classList.remove("resize")}),document.body.addEventListener("touchcancel",function(){r=!1,n.classList.remove("resize")}),document.body.addEventListener("touchmove",function(f){if(!r)return;let y,E;for(E=0;E<f.changedTouches.length;E++)y=f.changedTouches[E].pageX;y-=e.getBoundingClientRect().left,a(y),o(f)});let l=document.querySelectorAll(".button-group button"),c=document.querySelector(".before-after-slider"),d=document.querySelector("#show-before-after"),h=document.querySelector(".benefits-container"),p=document.querySelector("#show-key-benefits");l.forEach(f=>f.addEventListener("click",function(y){if(y.target.classList.add("active"),y.target.id==="show-before-after"){p.classList.remove("active"),h.classList.remove("show"),h.classList.add("unshow"),c.classList.remove("unshow"),c.classList.add("show");return}d.classList.remove("active"),c.classList.remove("show"),c.classList.add("unshow"),h.classList.remove("unshow"),h.classList.add("show")}))}var qi=`
10  <div class="addsearch-searchresults">
11    {{#if resultcount}}
12      {{> numberOfResultsTemplate }}
13    {{/if}}
14    {{#each hits}}
15      <a href="{{url}}" data-analytics-click="{{id}}" class="hit{{#equals type "PROMOTED"}} promoted{{/equals}}">
16          <h3>{{#if custom_fields.heading}}{{{ custom_fields.heading }}} {{else if title}} {{{ title }}}{{else}} {{{removeTrailingQueriesFromUrl url}}}{{/if}}</h3>
17          <div class="highlight">
18            {{> searchResultImageTemplate}}
19            {{#if meta_description}}{{{meta_description}}}{{else}}{{{highlight}}}{{/if}}{{#not type "PROMOTED"}}&#8230;{{/not}}
20          </div>
21          {{#gt categories.length 1}}
22            <div class="category">
23              <span class="category-heading">Found in:</span>{{selectCategory ..}}
24            </div>
25          {{/gt}}
26      </a>
27    {{/each}}
28  </div>
29`;function ur(t){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"view_search_results",num_results:t.numberOfResults,search_or_click:t.action,search_term:t.keyword})}var le,ce,ft,de;if(typeof AddSearchClient<"u"&&typeof AddSearchUI<"u"){let t=new AddSearchClient("1c3dceec7956ba41bdea0eab9529082c"),e={analyticsCallback:ur};if(le=new AddSearchUI(t,e),le.searchField({selectorToBind:"#site-search-input",searchAsYouType:!0,autofocus:!1}),le.searchResults({containerId:"site-search-autocomplete",template:qi}),le.loadMore({containerId:"site-search-load-more",type:AddSearchUI.LOAD_MORE_TYPE.BUTTON}),le.start(),ce=new AddSearchUI(t,e),ce.searchField({selectorToBind:"#header-search-input",searchAsYouType:!0,autofocus:!1}),ce.searchResults({containerId:"header-search-autocomplete",template:qi}),ce.loadMore({containerId:"header-search-load-more",type:AddSearchUI.LOAD_MORE_TYPE.BUTTON}),ce.start(),ft=document.querySelector("#blog-search"),ft){let i={updateBrowserHistory:!1,baseFilters:{category:"1xstandlee-barn-bulletin"},analyticsCallback:ur};de=new AddSearchUI(t,i),de.searchField({selectorToBind:"#blog-search",searchAsYouType:!0,autofocus:!1}),de.searchResults({containerId:"blog-search-autocomplete",template:qi}),de.loadMore({containerId:"blog-search-load-more",type:AddSearchUI.LOAD_MORE_TYPE.BUTTON}),de.start()}}var Z=class extends HTMLElement{connectedCallback(){this.videoId=this.getAttribute("videoid");let e=this.querySelector(".lty-playbtn");if(this.playLabel=e&&e.textContent.trim()||this.getAttribute("playlabel")||"Play",this.style.backgroundImage||(this.style.backgroundImage=`url("https://i.ytimg.com/vi/${this.videoId}/hqdefault.jpg")`),e||(e=document.createElement("button"),e.type="button",e.classList.add("lty-playbtn"),this.append(e)),!e.textContent){let i=document.createElement("span");i.className="lyt-visually-hidden",i.textContent=this.playLabel,e.append(i)}e.removeAttribute("href"),this.addEventListener("pointerover",Z.warmConnections,{once:!0}),this.addEventListener("click",this.addIframe),this.needsYTApiForAutoplay=navigator.vendor.includes("Apple")||navigator.userAgent.includes("Mobi")}static addPrefetch(e,i,s){let n=document.createElement("link");n.rel=e,n.href=i,s&&(n.as=s),document.head.append(n)}static warmConnections(){Z.preconnected||(Z.addPrefetch("preconnect","https://www.youtube-nocookie.com"),Z.addPrefetch("preconnect","https://www.google.com"),Z.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),Z.addPrefetch("preconnect","https://static.doubleclick.net"),Z.preconnected=!0)}fetchYTPlayerApi(){window.YT||window.YT&&window.YT.Player||(this.ytApiPromise=new Promise((e,i)=>{var s=document.createElement("script");s.src="https://www.youtube.com/iframe_api",s.async=!0,s.onload=n=>{YT.ready(e)},s.onerror=i,this.append(s)}))}async addYTPlayerIframe(e){this.fetchYTPlayerApi(),await this.ytApiPromise;let i=document.createElement("div");this.append(i);let s=Object.fromEntries(e.entries());new YT.Player(i,{width:"100%",videoId:this.videoId,playerVars:s,events:{onReady:n=>{n.target.playVideo()}}})}async addIframe(){if(this.classList.contains("lyt-activated"))return;this.classList.add("lyt-activated");let e=new URLSearchParams(this.getAttribute("params")||[]);if(e.append("autoplay","1"),e.append("playsinline","1"),this.needsYTApiForAutoplay)return this.addYTPlayerIframe(e);let i=document.createElement("iframe");i.width=560,i.height=315,i.title=this.playLabel,i.allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",i.allowFullscreen=!0,i.src=`https://www.youtube-nocookie.com/embed/${encodeURIComponent(this.videoId)}?rel=0&enablejsapi=1&${e.toString()}`,this.append(i),i.focus()}};customElements.define("lite-youtube",Z);var q=class extends HTMLElement{connectedCallback(){this.videoId=this.getAttribute("videoid"),this.videoHash=this.getAttribute("videohash");let e=this.querySelector(".ltv-playbtn");if(this.playLabel=e&&e.textContent.trim()||this.getAttribute("playlabel")||"Play",this.style.backgroundImage||(this.style.backgroundImage=`url("https://vumbnail.com/${this.videoId}.jpg")`),e||(e=document.createElement("button"),e.type="button",e.classList.add("ltv-playbtn"),this.append(e)),!e.textContent){let i=document.createElement("span");i.className="ltv-visually-hidden",i.textContent=this.playLabel,e.append(i)}e.removeAttribute("href"),this.addEventListener("pointerover",q.warmConnections,{once:!0}),this.addEventListener("click",()=>this.addIframe())}static addPrefetch(e,i){let s=document.createElement("link");s.rel=e,s.href=i,document.head.append(s)}static warmConnections(){q.preconnected||(q.addPrefetch("preconnect","https://player.vimeo.com"),q.addPrefetch("preconnect","https://i.vimeocdn.com"),q.addPrefetch("preconnect","https://f.vimeocdn.com"),q.preconnected=!0)}addIframe(){if(this.classList.contains("ltv-activated"))return;this.classList.add("ltv-activated");let e=new URLSearchParams(this.getAttribute("params")||[]);
29e.append("autoplay","1"),e.append("playsinline","1"),this.videoHash&&e.append("h",this.videoHash);let i=document.createElement("iframe");i.title=this.playLabel,i.allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen",i.allowFullscreen=!0,i.src=`https://player.vimeo.com/video/${encodeURIComponent(this.videoId)}?${e.toString()}`,this.append(i),i.focus()}};customElements.define("lite-vimeo",q);document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".js-cookie-prefs").forEach(function(t){t.addEventListener("click",function(e){e.preventDefault(),typeof window.Cookiebot<"u"&&(window.cookieBannerOpenDetails=!0,window.Cookiebot.renew())})})});var Ic=void 0;})();
30/*! For license information please see main.js.LEGAL.txt */
31//# sourceMappingURL=main.js.map

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.