1var e,t,n,i,r=!1,o=!1,s=[],a=-1,l=!1;function c(e){!function(e){s.includes(e)||s.push(e);d()}(e)}function u(e){let t=s.indexOf(e);-1!==t&&t>a&&s.splice(t,1)}function d(){if(!o&&!r){if(l)return;r=!0,queueMicrotask(f)}}function f(){r=!1,o=!0;for(let e=0;e<s.length;e++)s[e](),a=e;s.length=0,a=-1,o=!1}var p=!0;function _(e){t=e}function h(e,i){let r,o=!0,s=t(()=>{let t=e();if(JSON.stringify(t),!o&&("object"==typeof t||t!==r)){let e=r;queueMicrotask(()=>{i(t,e)})}r=t,o=!1});return()=>n(s)}async function m(e){l=!0;try{await e(),await Promise.resolve()}finally{l=!1,d()}}var g=[],x=[],v=[];function y(e,t){"function"==typeof t?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,x.push(t))}function b(e){g.push(e)}function w(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function E(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,i])=>{(void 0===t||t.includes(n))&&(i.forEach(e=>e()),delete e._x_attributeCleanups[n])})}var O=new MutationObserver(N),S=!1;function A(){O.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),S=!0}function k(){!function(){let e=O.takeRecords();M.push(()=>e.length>0&&N(e));let t=M.length;queueMicrotask(()=>{if(M.length===t)for(;M.length>0;)M.shift()()})}(),O.disconnect(),S=!1}var M=[];function j(e){if(!S)return e();k();let t=e();return A(),t}var $=!1,C=[];function N(e){if($)return void(C=C.concat(e));let t=[],n=new Set,i=new Map,r=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&("childList"===e[o].type&&(e[o].removedNodes.forEach(e=>{1===e.nodeType&&e._x_marker&&n.add(e)}),e[o].addedNodes.forEach(e=>{1===e.nodeType&&(n.has(e)?n.delete(e):e._x_marker||t.push(e))})),"attributes"===e[o].type)){let t=e[o].target,n=e[o].attributeName,s=e[o].oldValue,a=()=>{i.has(t)||i.set(t,[]),i.get(t).push({name:n,value:t.getAttribute(n)})},l=()=>{r.has(t)||r.set(t,[]),r.get(t).push(n)};t.hasAttribute(n)&&null===s?a():t.hasAttribute(n)?(l(),a()):l()}r.forEach((e,t)=>{E(t,e)}),i.forEach((e,t)=>{g.forEach(n=>n(t,e))});for(let o of n)t.some(e=>e.contains(o))||x.forEach(e=>e(o));for(let o of t)o.isConnected&&v.forEach(e=>e(o));t=null,n=null,i=null,r=null}function P(e){return z(R(e))}function T(e,t,n){return e._x_dataStack=[t,...R(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(e=>e!==t)}}function R(e){return e._x_dataStack?e._x_dataStack:"function"==typeof ShadowRoot&&e instanceof ShadowRoot?R(e.host):e.parentNode?R(e.parentNode):[]}function z(e){return new Proxy({objects:e},I)}var I={ownKeys:({objects:e})=>Array.from(new Set(e.flatMap(e=>Object.keys(e)))),has:({objects:e},t)=>t!=Symbol.unscopables&&e.some(e=>Object.prototype.hasOwnProperty.call(e,t)||Reflect.has(e,t)),get:({objects:e},t,n)=>"toJSON"==t?D:Reflect.get(e.find(e=>Reflect.has(e,t))||{},t,n),set({objects:e},t,n,i){const r=e.find(e=>Object.prototype.hasOwnProperty.call(e,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(r,t);return(null==o?void 0:o.set)&&(null==o?void 0:o.get)?o.set.call(i,n)||!0:Reflect.set(r,t,n)}};function D(){return Reflect.ownKeys(this).reduce((e,t)=>(e[t]=Reflect.get(this,t),e),{})}function B(e){let t=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([r,{value:o,enumerable:s}])=>{if(!1===s||void 0===o)return;if("object"==typeof o&&null!==o&&o.__v_skip)return;let a=""===i?r:`${i}.${r}`;var l;"object"==typeof o&&null!==o&&o._x_interceptor?n[r]=o.initialize(e,a,r):"object"!=typeof(l=o)||Array.isArray(l)||null===l||o===n||o instanceof Element||t(o,a)})};return t(e)}function F(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,i){return e(this.initialValue,()=>function(e,t){return t.split(".").reduce((e,t)=>e[t],e)}(t,n),e=>U(t,n,e),n,i)}};return t(n),e=>{if("object"==typeof e&&null!==e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(i,r,o)=>{let s=e.initialize(i,r,o);return n.initialValue=s,t(i,r,o)}}else n.initialValue=e;return n}}function U(e,t,n){if("string"==typeof t&&(t=t.split(".")),1!==t.length){if(0===t.length)throw error;return e[t[0]]||(e[t[0]]={}),U(e[t[0]],t.slice(1),n)}e[t[0]]=n}var q={};function W(e,t){q[e]=t}function Z(e,t){let n=function(e){let[t,n]=pe(e),i={interceptor:F,...t};return y(e,n),i}(t);return Object.entries(q).forEach(([i,r])=>{Object.defineProperty(e,`$${i}`,{get:()=>r(t,n),enumerable:!1})}),e}function J(e,t,n,...i){try{return n(...i)}catch(r){K(r,e,t)}}function K(...e){return V(...e)}var V=function(e,t,n=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}\n\n${n?'Expression: "'+n+'"\n\n':""}`,t),setTimeout(()=>{throw e},0)};var H=!0;function Y(e){let t=H;H=!1;let n=e();return H=t,n}function X(e,t,n={}){let i;return G(e,t)(e=>i=e,n),i}function G(...e){return ee(...e)}var Q,ee=te;function te(e,t){let n={};Z(n,e);let i=[n,...R(e)],r="function"==typeof t?function(e,t){return(n=()=>{},{scope:i={},params:r=[],context:o}={})=>
1{if(!H)return void ie(n,t,z([i,...e]),r);ie(n,t.apply(z([i,...e]),r))}}(i,t):function(e,t,n){let i=function(e,t){if(ne[e])return ne[e];let n=Object.getPrototypeOf(async function(){}).constructor,i=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e;const r=()=>{try{let t=new n(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`);return Object.defineProperty(t,"name",{value:`[Alpine] ${e}`}),t}catch(r){return K(r,t,e),Promise.resolve()}};let o=r();return ne[e]=o,o}(t,n);return(r=()=>{},{scope:o={},params:s=[],context:a}={})=>{i.result=void 0,i.finished=!1;let l=z([o,...e]);if("function"==typeof i){let e=i.call(a,i,l).catch(e=>K(e,n,t));i.finished?(ie(r,i.result,l,s,n),i.result=void 0):e.then(e=>{ie(r,e,l,s,n)}).catch(e=>K(e,n,t)).finally(()=>i.result=void 0)}}}(i,t,e);return J.bind(null,e,t,r)}var ne={};function ie(e,t,n,i,r){if(H&&"function"==typeof t){let o=t.apply(n,i);o instanceof Promise?o.then(t=>ie(e,t,n,i)).catch(e=>K(e,r,t)):e(o)}else"object"==typeof t&&t instanceof Promise?t.then(t=>e(t)):e(t)}var re="x-";function oe(e=""){return re+e}var se={};function ae(e,t){return se[e]=t,{before(t){if(!se[t])return void console.warn(String.raw`Cannot find directive \`${t}\`. \`${e}\` will use the default order of execution`);const n=be.indexOf(t);be.splice(n>=0?n:be.indexOf("DEFAULT"),0,e)}}}function le(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let n=Object.entries(e._x_virtualDirectives).map(([e,t])=>({name:e,value:t})),i=ce(n);n=n.map(e=>i.find(t=>t.name===e.name)?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e),t=t.concat(n)}let i={},r=t.map(he((e,t)=>i[e]=t)).filter(xe).map(function(e,t){return({name:n,value:i})=>{n===i&&(i="");let r=n.match(ve()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:r?r[1]:null,value:o?o[1]:null,modifiers:s.map(e=>e.replace(".","")),expression:i,original:a}}}(i,n)).sort(we);return r.map(t=>function(e,t){let n=()=>{},i=se[t.type]||n,[r,o]=pe(e);w(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,t,r),i=i.bind(i,e,t,r),ue?de.get(fe).push(i):i())};return s.runCleanups=o,s}(e,t))}function ce(e){return Array.from(e).map(he()).filter(e=>!xe(e))}var ue=!1,de=new Map,fe=Symbol();function pe(e){let i=[],[r,o]=function(e){let i=()=>{};return[r=>{let o=t(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(e=>e())}),e._x_effects.add(o),i=()=>{void 0!==o&&(e._x_effects.delete(o),n(o))},o},()=>{i()}]}(e);i.push(o);return[{Alpine:bt,effect:r,cleanup:e=>i.push(e),evaluateLater:G.bind(G,e),evaluate:X.bind(X,e)},()=>i.forEach(e=>e())]}var _e=(e,t)=>({name:n,value:i})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:i});function he(e=()=>{}){return({name:t,value:n})=>{let{name:i,value:r}=me.reduce((e,t)=>t(e),{name:t,value:n});return i!==t&&e(i,t),{name:i,value:r}}}var me=[];function ge(e){me.push(e)}function xe({name:e}){return ve().test(e)}var ve=()=>new RegExp(`^${re}([^:^.]+)\\b`);var ye="DEFAULT",be=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",ye,"teleport"];function we(e,t){let n=-1===be.indexOf(e.type)?ye:e.type,i=-1===be.indexOf(t.type)?ye:t.type;return be.indexOf(n)-be.indexOf(i)}function Ee(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function Oe(e,t){if("function"==typeof ShadowRoot&&e instanceof ShadowRoot)return void Array.from(e.children).forEach(e=>Oe(e,t));let n=!1;if(t(e,()=>n=!0),n)return;let i=e.firstElementChild;for(;i;)Oe(i,t),i=i.nextElementSibling}function Se(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var Ae=!1;var ke=[],Me=[];function je(){return ke.map(e=>e())}function $e(){return ke.concat(Me).map(e=>e())}function Ce(e){ke.push(e)}function Ne(e){Me.push(e)}function Le(e,t=!1){return Pe(e,e=>{if((t?$e():je()).some(t=>e.matches(t)))return!0})}function Pe(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentNode instanceof ShadowRoot)return Pe(e.parentNode.host,t);if(e.parentElement)return Pe(e.parentElement,t)}}var Te=[];var Re=1;
1function ze(e,t=Oe,n=()=>{}){Pe(e,e=>e._x_ignore)||function(e){ue=!0;let t=Symbol();fe=t,de.set(t,[]);let n=()=>{for(;de.get(t).length;)de.get(t).shift()();de.delete(t)};e(n),ue=!1,n()}(()=>{t(e,(e,t)=>{e._x_marker||(n(e,t),Te.forEach(n=>n(e,t)),le(e,e.attributes).forEach(e=>e()),e._x_ignore||(e._x_marker=Re++),e._x_ignore&&t())})})}function Ie(e,t=Oe){t(e,e=>{!function(e){var t,n;for(null==(t=e._x_effects)||t.forEach(u);null==(n=e._x_cleanups)?void 0:n.length;)e._x_cleanups.pop()()}(e),E(e),delete e._x_marker})}var De=[],Be=!1;function Fe(e=()=>{}){return queueMicrotask(()=>{Be||setTimeout(()=>{Ue()})}),new Promise(t=>{De.push(()=>{e(),t()})})}function Ue(){for(Be=!1;De.length;)De.shift()()}function qe(e,t){return Array.isArray(t)?We(e,t.join(" ")):"object"==typeof t&&null!==t?function(e,t){let n=e=>e.split(" ").filter(Boolean),i=Object.entries(t).flatMap(([e,t])=>!!t&&n(e)).filter(Boolean),r=Object.entries(t).flatMap(([e,t])=>!t&&n(e)).filter(Boolean),o=[],s=[];return r.forEach(t=>{e.classList.contains(t)&&(e.classList.remove(t),s.push(t))}
1),i.forEach(t=>{e.classList.contains(t)||(e.classList.add(t),o.push(t))}),()=>{s.forEach(t=>e.classList.add(t)),o.forEach(t=>e.classList.remove(t))}}(e,t):"function"==typeof t?qe(e,t()):We(e,t)}function We(e,t){return t=!0===t?t="":t||"",n=t.split(" ").filter(t=>!e.classList.contains(t)).filter(Boolean),e.classList.add(...n),()=>{e.classList.remove(...n)};var n}function Ze(e,t){return"object"==typeof t&&null!==t?function(e,t){let n={};return Object.entries(t).forEach(([t,i])=>{n[t]=e.style[t],t.startsWith("--")||(t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),e.style.setProperty(t,i)}),setTimeout(()=>{0===e.style.length&&e.removeAttribute("style")}),()=>{Ze(e,n)}}(e,t):function(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}(e,t)}function Je(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}function Ke(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=()=>{},i=()=>{}){He(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=()=>{},i=()=>{}){He(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}function Ve(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:Ve(t)}function He(e,t,{during:n,start:i,end:r}={},o=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),0===Object.keys(n).length&&0===Object.keys(i).length&&0===Object.keys(r).length)return o(),void s();let a,l,c;!function(e,t){let n,i,r,o=Je(()=>{j(()=>{n=!0,i||t.before(),r||(t.end(),Ue()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:Je(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},j(()=>{t.start(),t.during()}),Be=!0,requestAnimationFrame(()=>{if(n)return;let o=1e3*Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s","")),s=1e3*Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""));0===o&&(o=1e3*Number(getComputedStyle(e).animationDuration.replace("s",""))),j(()=>{t.before()}),i=!0,requestAnimationFrame(()=>{n||(j(()=>{t.end()}),Ue(),setTimeout(e._x_transitioning.finish,o+s),r=!0)})})}(e,{start(){a=t(e,i)},during(){l=t(e,n)},before:o,end(){a(),c=t(e,r)},after:s,cleanup(){l(),c()}})}function Ye(e,t,n){if(-1===e.indexOf(t))return n;const i=e[e.indexOf(t)+1];if(!i)return n;if("scale"===t&&isNaN(i))return n;if("duration"===t||"delay"===t){let e=i.match(/([0-9]+)ms/);if(e)return e[1]}return"origin"===t&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[i,e[e.indexOf(t)+2]].join(" "):i}ae("transition",(e,{value:t,modifiers:n,expression:i},{evaluate:r})=>{"function"==typeof i&&(i=r(i)),!1!==i&&(i&&"boolean"!=typeof i?function(e,t,n){Ke(e,qe,"");let i={enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}};i[n](t)}(e,i,t):function(e,t,n){Ke(e,Ze);let i=!t.includes("in")&&!t.includes("out")&&!n,r=i||t.includes("in")||["enter"].includes(n),o=i||t.includes("out")||["leave"].includes(n);t.includes("in")&&!i&&(t=t.filter((e,n)=>n<t.indexOf("out")));t.includes("out")&&!i&&(t=t.filter((e,n)=>n>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),l=s||t.includes("scale"),c=a?0:1,u=l?Ye(t,"scale",95)/100:1,d=Ye(t,"delay",0)/1e3,f=Ye(t,"origin","center"),p="opacity, transform",_=Ye(t,"duration",150)/1e3,h=Ye(t,"duration",75)/1e3,m="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(e._x_transition.enter.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${_}s`,transitionTimingFunction:m},e._x_transition.enter.start={opacity:c,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"});o&&(e._x_transition.leave.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${h}s`,transitionTimingFunction:m},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:c,transform:`scale(${u})`})}(e,n,t))}),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,i){const r="visible"===document.visibilityState?requestAnimationFrame:setTimeout;let o=()=>r(n);t?e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):o():e._x_transition?e._x_transition.in(n):o():(e._x_hidePromise=e._x_transition?new Promise((t,n)=>{e._x_transition.out(()=>{},()=>t(i)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>n({isFromCancelledTransition:!0}))}):Promise.resolve(i),queueMicrotask(()=>{let t=Ve(e);t?(t._x_hideChildren||(t._x_hideChildren=[]),t._x_hideChildren.push(e)):r(()=>{let t=e=>{let n=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then(([e])=>null==e?void 0:e());return delete e._x_hidePromise,delete e._x_hideChildren,n};t(e).catch(e=>{if(!e.isFromCancelledTransition)throw e})})}))};var Xe=!1;function Ge(e,t=()=>{}){return(...n)=>Xe?t(...n):e(...n)}var Qe=[];function et(e){Qe.push(e)}var tt=!1;function nt(e){let i=t;_((e,t)=>{let r=i(e);return n(r),()=>{}}),e(),_(i)}function it(t,n,i,r=[]){switch(t._x_bindings||(t._x_bindings=e({})),t._x_bindings[n]=i,n=r.includes("camel")?n.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase()):n){case"value":!function(e,t){if(dt(e))void 0===e.attributes.value&&(e.value=t),window.fromModel&&(e.checked="boolean"==typeof t?st(e.value)===t:ot(e.value,t));else if(ut(e))Number.isInteger(t)?e.value=t:Array.isArray(t)||"boolean"==typeof t||[null,void 0].includes(t)?Array.isArray(t)?e.checked=t.some(t=>ot(t,e.value)):e.checked=!!t:e.value=String(t);else if("SELECT"===e.tagName)!function(e,t){const n=[].concat(t).map(e=>e+"");
1Array.from(e.options).forEach(e=>{e.selected=n.includes(e.value)})}(e,t);else{if(e.value===t)return;e.value=void 0===t?"":t}}(t,i);break;case"style":!function(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles();e._x_undoAddedStyles=Ze(e,t)}(t,i);break;case"class":!function(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses();e._x_undoAddedClasses=qe(e,t)}(t,i);break;case"selected":case"checked":!function(e,t,n){rt(e,t,n),function(e,t,n){e[t]!==n&&(e[t]=n)}(e,t,n)}(t,n,i);break;default:rt(t,n,i)}}function rt(e,t,n){[null,void 0,!1].includes(n)&&function(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}(t)?e.removeAttribute(t):(lt(t)&&(n=t),function(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}(e,t,n))}function ot(e,t){return e==t}function st(e){return!![1,"1","true","on","yes",!0].includes(e)||![0,"0","false","off","no",!1].includes(e)&&(e?Boolean(e):null)}var at=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function lt(e){return at.has(e)}function ct(e,t,n){let i=e.getAttribute(t);return null===i?"function"==typeof n?n():n:""===i||(lt(t)?!![t,"true"].includes(i):i)}function ut(e){return"checkbox"===e.type||"ui-checkbox"===e.localName||"ui-switch"===e.localName}function dt(e){return"radio"===e.type||"ui-radio"===e.localName}function ft(e,t){let n;return function(){const i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,r)},t)}}function pt(e,t){let n;return function(){let i=this,r=arguments;n||(e.apply(i,r),n=!0,setTimeout(()=>n=!1,t))}}function _t({get:e,set:i},{get:r,set:o}){let s,a=!0,l=t(()=>{let t=e(),n=r();if(a)o(ht(t)),a=!1;else{let e=JSON.stringify(t),r=JSON.stringify(n);e!==s?o(ht(t)):e!==r&&i(ht(n))}s=JSON.stringify(e()),JSON.stringify(r())});return()=>{n(l)}}function ht(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}var mt={},gt=!1;var xt={};function vt(e,t,n){let i=[];for(;i.length;)i.pop()();let r=Object.entries(t).map(([e,t])=>({name:e,value:t})),o=ce(r);return r=r.map(e=>o.find(t=>t.name===e.name)?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e),le(e,r,n).map(e=>{i.push(e.runCleanups),e()}),()=>{for(;i.length;)i.pop()()}}var yt={};var bt={get reactive(){return e},get release(){return n},get effect(){return t},get raw(){return i},get transaction(){return m},version:"3.15.8",flushAndStopDeferringMutations:function(){$=!1,N(C),C=[]},dontAutoEvaluateFunctions:Y,disableEffectScheduling:function(e){p=!1,e(),p=!0},startObservingMutations:A,stopObservingMutations:k,setReactivityEngine:function(r){e=r.reactive,n=r.release,t=e=>r.effect(e,{scheduler:e=>{p?c(e):e()}}),i=r.raw},onAttributeRemoved:w,onAttributesAdded:b,closestDataStack:R,skipDuringClone:Ge,onlyDuringClone:function(e){return(...t)=>Xe&&e(...t)},addRootSelector:Ce,addInitSelector:Ne,setErrorHandler:function(e){V=e},interceptClone:et,addScopeToNode:T,deferMutations:function(){$=!0},mapAttributes:ge,evaluateLater:G,interceptInit:function(e){Te.push(e)},initInterceptors:B,injectMagics:Z,setEvaluator:function(e){ee=e},setRawEvaluator:function(e){Q=e},mergeProxies:z,extractProp:function(e,t,n,i=!0){if(e._x_bindings&&void 0!==e._x_bindings[t])return e._x_bindings[t];if(e._x_inlineBindings&&void 0!==e._x_inlineBindings[t]){let n=e._x_inlineBindings[t];return n.extract=i,Y(()=>X(e,n.expression))}return ct(e,t,n)},findClosest:Pe,onElRemoved:y,closestRoot:Le,destroyTree:Ie,interceptor:F,transition:He,setStyles:Ze,mutateDom:j,directive:ae,entangle:_t,throttle:pt,debounce:ft,evaluate:X,evaluateRaw:function(...e){return Q(...e)},initTree:ze,nextTick:Fe,prefixed:oe,prefix:function(e){re=e},plugin:function(e){(Array.isArray(e)?e:[e]).forEach(e=>e(bt))},magic:W,store:function(t,n){if(gt||(mt=e(mt),gt=!0),void 0===n)return mt[t];mt[t]=n,B(mt[t]),"object"==typeof n&&null!==n&&n.hasOwnProperty("init")&&"function"==typeof n.init&&mt[t].init()},start:function(){var e;Ae&&Se("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Ae=!0,document.body||Se("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Ee(document,"alpine:init"),Ee(document,"alpine:initializing"),A(),e=e=>ze(e,Oe),v.push(e),y(e=>Ie(e)),b((e,t)=>
1{le(e,t).forEach(e=>e())}),Array.from(document.querySelectorAll($e().join(","))).filter(e=>!Le(e.parentElement,!0)).forEach(e=>{ze(e)}),Ee(document,"alpine:initialized"),setTimeout(()=>{[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([e,t,n])=>{var i;i=t,Object.keys(se).includes(i)||n.some(t=>{if(document.querySelector(t))return Se(`found "${t}", but missing ${e} plugin`),!0})})})},clone:function(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),Xe=!0,tt=!0,nt(()=>{!function(e){let t=!1;ze(e,(e,n)=>{Oe(e,(e,i)=>{if(t&&function(e){return je().some(t=>e.matches(t))}(e))return i();t=!0,n(e,i)})})}(t)}),Xe=!1,tt=!1},cloneNode:function(e,t){Qe.forEach(n=>n(e,t)),Xe=!0,nt(()=>{ze(t,(e,t)=>{t(e,()=>{})})}),Xe=!1},bound:function(e,t,n){return e._x_bindings&&void 0!==e._x_bindings[t]?e._x_bindings[t]:ct(e,t,n)},$data:P,watch:h,walk:Oe,data:function(e,t){yt[e]=t},bind:function(e,t){let n="function"!=typeof t?()=>t:t;return e instanceof Element?vt(e,n()):(xt[e]=n,()=>{})}};function wt(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r<i.length;r++)n[i[r]]=!0;return e=>!!n[e]}var Et,Ot=Object.freeze({}),St=Object.prototype.hasOwnProperty,At=(e,t)=>St.call(e,t),kt=Array.isArray,Mt=e=>"[object Map]"===Nt(e),jt=e=>"symbol"==typeof e,$t=e=>null!==e&&"object"==typeof e,Ct=Object.prototype.toString,Nt=e=>Ct.call(e),Lt=e=>Nt(e).slice(8,-1),Pt=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Tt=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.charAt(0).toUpperCase()+e.slice(1)),Rt=(e,t)=>e!==t&&(e==e||t==t),zt=new WeakMap,It=[],Dt=Symbol("iterate"),Bt=Symbol("Map key iterate");var Ft=0;function Ut(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var qt=!0,Wt=[];function Zt(){const e=Wt.pop();qt=void 0===e||e}function Jt(e,t,n){if(!qt||void 0===Et)return;let i=zt.get(e);i||zt.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=new Set),r.has(Et)||(r.add(Et),Et.deps.push(r),Et.options.onTrack&&Et.options.onTrack({effect:Et,target:e,type:t,key:n}))}function Kt(e,t,n,i,r,o){const s=zt.get(e);if(!s)return;const a=new Set,l=e=>{e&&e.forEach(e=>{(e!==Et||e.allowRecurse)&&a.add(e)})};if("clear"===t)s.forEach(l);else if("length"===n&&kt(e))s.forEach((e,t)=>{("length"===t||t>=i)&&l(e)});else switch(void 0!==n&&l(s.get(n)),t){case"add":kt(e)?Pt(n)&&l(s.get("length")):(l(s.get(Dt)),Mt(e)&&l(s.get(Bt)));break;case"delete":kt(e)||(l(s.get(Dt)),Mt(e)&&l(s.get(Bt)));break;case"set":Mt(e)&&l(s.get(Dt))}a.forEach(s=>{s.options.onTrigger&&s.options.onTrigger({effect:s,target:e,key:n,type:t,newValue:i,oldValue:r,oldTarget:o}),s.options.scheduler?s.options.scheduler(s):s()})}var Vt=wt("__proto__,__v_isRef,__isVue"),Ht=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(jt)),Yt=en(),Xt=en(!0),Gt=Qt();function Qt(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Ln(this);for(let t=0,r=this.length;t<r;t++)Jt(n,"get",t+"");const i=n[t](...e);return-1===i||!1===i?n[t](...e.map(Ln)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){Wt.push(qt),qt=!1;const n=Ln(this)[t].apply(this,e);return Zt(),n}}),e}function en(e=!1,t=!1){return function(n,i,r){if("__v_isReactive"===i)return!e;if("__v_isReadonly"===i)return e;if("__v_raw"===i&&r===(e?t?jn:Mn:t?kn:An).get(n))return n;const o=kt(n);if(!e&&o&&At(Gt,i))return Reflect.get(Gt,i,r);const s=Reflect.get(n,i,r);if(jt(i)?Ht.has(i):Vt(i))return s;if(e||Jt(n,"get",i),t)return s;if(Pn(s)){return!o||!Pt(i)?s.value:s}return $t(s)?e?Cn(s):$n(s):s}}function tn(e=!1){return function(t,n,i,r){let o=t[n];if(!e&&(i=Ln(i),o=Ln(o),!kt(t)&&Pn(o)&&!Pn(i)))return o.value=i,!0;const s=kt(t)&&Pt(n)?Number(n)<t.length:At(t,n),a=Reflect.set(t,n,i,r);return t===Ln(r)&&(s?Rt(i,o)&&Kt(t,"set",n,i,o):Kt(t,"add",n,i)),a}}var nn={get:Yt,set:tn(),deleteProperty:function(e,t){const n=At(e,t),i=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&Kt(e,"delete",t,void 0,i),r},has:function(e,t){const n=Reflect.has(e,t);return jt(t)&&Ht.has(t)||Jt(e,"has",t),n},ownKeys:function(e){return Jt(e,"iterate",kt(e)?"length":Dt),Reflect.ownKeys(e)}},rn={get:Xt,set:(e,t)=>(console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>(console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},on=e=>$t(e)?$n(e):e,sn=e=>$t(e)?Cn(e):e,an=e=>e,ln=e=>Reflect.getPrototypeOf(e);function cn(e,t,n=!1,i=!1){const r=Ln(e=e.__v_raw),o=Ln(t);t!==o&&!n&&Jt(r,"get",t),!n&&Jt(r,"get",o);const{has:s}=ln(r),a=i?an:n?sn:on;return s.call(r,t)?a(e.get(t)):s.call(r,o)?a(e.get(o)):void(e!==r&&e.get(t))}function un(e,t=!1){const n=this.__v_raw,i=Ln(n),r=Ln(e);return e!==r&&!t&&Jt(i,"has",e),!t&&Jt(i,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function dn(e,t=!1){return e=e.__v_raw,!t&&Jt(Ln(e),"iterate",Dt),Reflect.get(e,"size",e)}function fn(e){e=Ln(e);const t=Ln(this);return ln(t).has.call(t,e)||(t.add(e),Kt(t,"add",e,e)),this}function pn(e,t){t=Ln(t);const n=Ln(this),{has:i,get:r}=ln(n);let o=i.call(n,e);o?Sn(n,i,e):(e=Ln(e),o=i.call(n,e));const s=r.call(n,e);
1return n.set(e,t),o?Rt(t,s)&&Kt(n,"set",e,t,s):Kt(n,"add",e,t),this}function _n(e){const t=Ln(this),{has:n,get:i}=ln(t);let r=n.call(t,e);r?Sn(t,n,e):(e=Ln(e),r=n.call(t,e));const o=i?i.call(t,e):void 0,s=t.delete(e);return r&&Kt(t,"delete",e,void 0,o),s}function hn(){const e=Ln(this),t=0!==e.size,n=Mt(e)?new Map(e):new Set(e),i=e.clear();return t&&Kt(e,"clear",void 0,void 0,n),i}function mn(e,t){return function(n,i){const r=this,o=r.__v_raw,s=Ln(o),a=t?an:e?sn:on;return!e&&Jt(s,"iterate",Dt),o.forEach((e,t)=>n.call(i,a(e),a(t),r))}}function gn(e,t,n){return function(...i){const r=this.__v_raw,o=Ln(r),s=Mt(o),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=r[e](...i),u=n?an:t?sn:on;return!t&&Jt(o,"iterate",l?Bt:Dt),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function xn(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${Tt(e)} operation ${n}failed: target is readonly.`,Ln(this))}return"delete"!==e&&this}}function vn(){const e={get(e){return cn(this,e)},get size(){return dn(this)},has:un,add:fn,set:pn,delete:_n,clear:hn,forEach:mn(!1,!1)},t={get(e){return cn(this,e,!1,!0)},get size(){return dn(this)},has:un,add:fn,set:pn,delete:_n,clear:hn,forEach:mn(!1,!0)},n={get(e){return cn(this,e,!0)},get size(){return dn(this,!0)},has(e){return un.call(this,e,!0)},add:xn("add"),set:xn("set"),delete:xn("delete"),clear:xn("clear"),forEach:mn(!0,!1)},i={get(e){return cn(this,e,!0,!0)},get size(){return dn(this,!0)},has(e){return un.call(this,e,!0)},add:xn("add"),set:xn("set"),delete:xn("delete"),clear:xn("clear"),forEach:mn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=gn(r,!1,!1),n[r]=gn(r,!0,!1),t[r]=gn(r,!1,!0),i[r]=gn(r,!0,!0)}),[e,n,t,i]}var[yn,bn]=vn();function wn(e,t){const n=e?bn:yn;return(t,i,r)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(At(n,i)&&i in t?n:t,i,r)}var En={get:wn(!1)},On={get:wn(!0)};function Sn(e,t,n){const i=Ln(n);if(i!==n&&t.call(e,i)){const t=Lt(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" 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 An=new WeakMap,kn=new WeakMap,Mn=new WeakMap,jn=new WeakMap;function $n(e){return e&&e.__v_isReadonly?e:Nn(e,!1,nn,En,An)}function Cn(e){return Nn(e,!0,rn,On,Mn)}function Nn(e,t,n,i,r){if(!$t(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Lt(a));var a;if(0===s)return e;const l=new Proxy(e,2===s?i:n);return r.set(e,l),l}function Ln(e){return e&&Ln(e.__v_raw)||e}function Pn(e){return Boolean(e&&!0===e.__v_isRef)}W("nextTick",()=>Fe),W("dispatch",e=>Ee.bind(Ee,e)),W("watch",(e,{evaluateLater:t,cleanup:n})=>(e,i)=>{let r=t(e),o=h(()=>{let e;return r(t=>e=t),e},i);n(o)}),W("store",function(){return mt}),W("data",e=>P(e)),W("root",e=>Le(e)),W("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=z(function(e){let t=[];return Pe(e,e=>{e._x_refs&&t.push(e._x_refs)}),t}(e))),e._x_refs_proxy));var Tn={};function Rn(e){return Tn[e]||(Tn[e]=0),++Tn[e]}function zn(e,t,n){W(t,i=>Se(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,i))}W("id",(e,{cleanup:t})=>(n,i=null)=>function(e,t,n,i){e._x_id||(e._x_id={});if(e._x_id[t])return e._x_id[t];let r=i();return e._x_id[t]=r,n(()=>{delete e._x_id[t]}),r}(e,`${n}${i?`-${i}`:""}`,t,()=>{let t=function(e,t){return Pe(e,e=>{if(e._x_ids&&e._x_ids[t])return!0})}(e,n),r=t?t._x_ids[n]:Rn(n);return i?`${n}-${r}-${i}`:`${n}-${r}`})),et((e,t)=>{e._x_id&&(t._x_id=e._x_id)}),W("el",e=>e),zn("Focus","focus","focus"),zn("Persist","persist","persist"),ae("modelable",(e,{expression:t},{effect:n,evaluateLater:i,cleanup:r})=>{let o=i(t),s=()=>{let e;return o(t=>e=t),e},a=i(`${t} = __placeholder`),l=e=>a(()=>{},{scope:{__placeholder:e}}),c=s();l(c),queueMicrotask(()=>
1{if(!e._x_model)return;e._x_removeModelListeners.default();let t=e._x_model.get,n=e._x_model.set,i=_t({get:()=>t(),set(e){n(e)}},{get:()=>s(),set(e){l(e)}});r(i)})}),ae("teleport",(e,{modifiers:t,expression:n},{cleanup:i})=>{"template"!==e.tagName.toLowerCase()&&Se("x-teleport can only be used on a <template> tag",e);let r=Dn(n),o=e.content.cloneNode(!0).firstElementChild;e._x_teleport=o,o._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(t=>{o.addEventListener(t,t=>{t.stopPropagation(),e.dispatchEvent(new t.constructor(t.type,t))})}),T(o,{},e);let s=(e,t,n)=>{n.includes("prepend")?t.parentNode.insertBefore(e,t):n.includes("append")?t.parentNode.insertBefore(e,t.nextSibling):t.appendChild(e)};j(()=>{s(o,r,t),Ge(()=>{ze(o)})()}),e._x_teleportPutBack=()=>{let i=Dn(n);j(()=>{s(e._x_teleport,i,t)})},i(()=>j(()=>{o.remove(),Ie(o)}))});var In=document.createElement("div");function Dn(e){let t=Ge(()=>document.querySelector(e),()=>In)();return t||Se(`Cannot find x-teleport element for selector: "${e}"`),t}var Bn=()=>{};function Fn(e,t,n,i){let r=e,o=e=>i(e),s={},a=(e,t)=>n=>t(e,n);if(n.includes("dot")&&(t=t.replace(/-/g,".")),n.includes("camel")&&(t=function(e){return e.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}(t)),n.includes("passive")&&(s.passive=!0),n.includes("capture")&&(s.capture=!0),n.includes("window")&&(r=window),n.includes("document")&&(r=document),n.includes("debounce")){let e=n[n.indexOf("debounce")+1]||"invalid-wait",t=Un(e.split("ms")[0])?Number(e.split("ms")[0]):250;o=ft(o,t)}if(n.includes("throttle")){let e=n[n.indexOf("throttle")+1]||"invalid-wait",t=Un(e.split("ms")[0])?Number(e.split("ms")[0]):250;o=pt(o,t)}return n.includes("prevent")&&(o=a(o,(e,t)=>{t.preventDefault(),e(t)})),n.includes("stop")&&(o=a(o,(e,t)=>{t.stopPropagation(),e(t)})),n.includes("once")&&(o=a(o,(e,n)=>{e(n),r.removeEventListener(t,o,s)})),(n.includes("away")||n.includes("outside"))&&(r=document,o=a(o,(t,n)=>{e.contains(n.target)||!1!==n.target.isConnected&&(e.offsetWidth<1&&e.offsetHeight<1||!1!==e._x_isShown&&t(n))})),n.includes("self")&&(o=a(o,(t,n)=>{n.target===e&&t(n)})),"submit"===t&&(o=a(o,(e,t)=>{t.target._x_pendingModelUpdates&&t.target._x_pendingModelUpdates.forEach(e=>e()),e(t)})),(function(e){return["keydown","keyup"].includes(e)}(t)||qn(t))&&(o=a(o,(e,t)=>{(function(e,t){let n=t.filter(e=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll","blur","change","lazy"].includes(e));if(n.includes("debounce")){let e=n.indexOf("debounce");n.splice(e,Un((n[e+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let e=n.indexOf("throttle");n.splice(e,Un((n[e+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===n.length)return!1;if(1===n.length&&Wn(e.key).includes(n[0]))return!1;const i=["ctrl","shift","alt","meta","cmd","super"].filter(e=>n.includes(e));if(n=n.filter(e=>!i.includes(e)),i.length>0){if(i.filter(t=>("cmd"!==t&&"super"!==t||(t="meta"),e[`${t}Key`])).length===i.length){if(qn(e.type))return!1;if(Wn(e.key).includes(n[0]))return!1}}return!0})(t,n)||e(t)})),r.addEventListener(t,o,s),()=>{r.removeEventListener(t,o,s)}}function Un(e){return!Array.isArray(e)&&!isNaN(e)}function qn(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}function Wn(e){if(!e)return[];var t;e=[" ","_"].includes(t=e)?t:t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();let n={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 n[e]=e,Object.keys(n).map(t=>{if(n[t]===e)return t}).filter(e=>e)}function Zn(e,t,n,i){return j(()=>{if(n instanceof CustomEvent&&void 0!==n.detail)return null!==n.detail&&void 0!==n.detail?n.detail:n.target.value;if(ut(e)){if(Array.isArray(i)){let e=null;return e=t.includes("number")?Jn(n.target.value):t.includes("boolean")?st(n.target.value):n.target.value,n.target.checked?i.includes(e)?i:i.concat([e]):i.filter(t=>!(t==e))}return n.target.checked}if("select"===e.tagName.toLowerCase()&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(e=>Jn(e.value||e.text)):t.includes("boolean")?Array.from(n.target.selectedOptions).map(e=>st(e.value||e.text)):Array.from(n.target.selectedOptions).map(e=>e.value||e.text);{let r;return r=dt(e)?n.target.checked?n.target.value:i:n.target.value,t.includes("number")?Jn(r):t.includes("boolean")?st(r):t.includes("trim")?r.trim():r}})}function Jn(e){let t=e?parseFloat(e):null;return n=t,Array.isArray(n)||isNaN(n)?e:t;var n}function Kn(e){return null!==e&&"object"==typeof e&&"function"==typeof e.get&&"function"==typeof e.set}Bn.inline=(e,{modifiers:t},{cleanup:n})=>
1{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})},ae("ignore",Bn),ae("effect",Ge((e,{expression:t},{effect:n})=>{n(G(e,t))})),ae("model",(e,{modifiers:t,expression:n},{effect:i,cleanup:r})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let s,a=G(o,n);s="string"==typeof n?G(o,`${n} = __placeholder`):"function"==typeof n&&"string"==typeof n()?G(o,`${n()} = __placeholder`):()=>{};let l=()=>{let e;return a(t=>e=t),Kn(e)?e.get():e},c=e=>{let t;a(e=>t=e),Kn(t)?t.set(e):s(()=>{},{scope:{__placeholder:e}})};"string"==typeof n&&"radio"===e.type&&j(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});let u,d=t.includes("change")||t.includes("lazy"),f=t.includes("blur"),p=t.includes("enter");if(Xe)u=()=>{};else if(d||f||p){let n=[],i=n=>c(Zn(e,t,n,l()));if(d&&n.push(Fn(e,"change",t,i)),f&&(n.push(Fn(e,"blur",t,i)),e.form)){let t=()=>i({target:e});e.form._x_pendingModelUpdates||(e.form._x_pendingModelUpdates=[]),e.form._x_pendingModelUpdates.push(t),r(()=>e.form._x_pendingModelUpdates.splice(e.form._x_pendingModelUpdates.indexOf(t),1))}p&&n.push(Fn(e,"keydown",t,e=>{"Enter"===e.key&&i(e)})),u=()=>n.forEach(e=>e())}else{let n="select"===e.tagName.toLowerCase()||["checkbox","radio"].includes(e.type)?"change":"input";u=Fn(e,n,t,n=>{c(Zn(e,t,n,l()))})}if(t.includes("fill")&&([void 0,null,""].includes(l())||ut(e)&&Array.isArray(l())||"select"===e.tagName.toLowerCase()&&e.multiple)&&c(Zn(e,t,{target:e},l())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=u,r(()=>e._x_removeModelListeners.default()),e.form){let n=Fn(e.form,"reset",[],n=>{Fe(()=>e._x_model&&e._x_model.set(Zn(e,t,{target:e},l())))});r(()=>n())}e._x_model={get:()=>l(),set(e){c(e)}},e._x_forceModelUpdate=t=>{void 0===t&&"string"==typeof n&&n.match(/\./)&&(t=""),window.fromModel=!0,j(()=>it(e,"value",t)),delete window.fromModel},i(()=>{let n=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(n)})}),ae("cloak",e=>queueMicrotask(()=>j(()=>e.removeAttribute(oe("cloak"))))),Ne(()=>`[${oe("init")}]`),ae("init",Ge((e,{expression:t},{evaluate:n})=>"string"==typeof t?!!t.trim()&&n(t,{},!1):n(t,{},!1))),ae("text",(e,{expression:t},{effect:n,evaluateLater:i})=>{let r=i(t);n(()=>{r(t=>{j(()=>{e.textContent=t})})})}),ae("html",(e,{expression:t},{effect:n,evaluateLater:i})=>{let r=i(t);n(()=>{r(t=>{j(()=>{e.innerHTML=t,e._x_ignoreSelf=!0,ze(e),delete e._x_ignoreSelf})})})}),ge(_e(":",oe("bind:")));var Vn=(e,{value:t,modifiers:n,expression:i,original:r},{effect:o,cleanup:s})=>{if(!t){let t={};return a=t,Object.entries(xt).forEach(([e,t])=>{Object.defineProperty(a,e,{get:()=>(...e)=>t(...e)})}),void G(e,i)(t=>{vt(e,t,r)},{scope:t})}var a;if("key"===t)return function(e,t){e._x_keyExpression=t}(e,i);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let l=G(e,i);o(()=>l(r=>{void 0===r&&"string"==typeof i&&i.match(/\./)&&(r=""),j(()=>it(e,t,r,n))})),s(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};function Hn(e,t,n,i){let r={};if(/^\[.*\]$/.test(e.item)&&Array.isArray(t)){e.item.replace("[","").replace("]","").split(",").map(e=>e.trim()).forEach((e,n)=>{r[e]=t[n]})}else if(/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&"object"==typeof t){e.item.replace("{","").replace("}","").split(",").map(e=>e.trim()).forEach(e=>{r[e]=t[e]})}else r[e.item]=t;return e.index&&(r[e.index]=n),e.collection&&(r[e.collection]=i),r}function Yn(){}function Xn(e,t,n){ae(t,i=>Se(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,i))}Vn.inline=(e,{value:t,modifiers:n,expression:i})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:i,extract:!1})},ae("bind",Vn),Ce(()=>`[${oe("data")}]`),ae("data",(t,{expression:n},{cleanup:i})=>{if(function(e){return!!Xe&&(!!tt||e.hasAttribute("data-has-alpine-state"))}(t))return;n=""===n?"{}":n;let r={};Z(r,t);let o={};var s,a;s=o,a=r,Object.entries(yt).forEach(([e,t])=>{Object.defineProperty(s,e,{get:()=>(...e)=>t.bind(a)(...e),enumerable:!1})});let l=X(t,n,{scope:o});void 0!==l&&!0!==l||(l={}),Z(l,t);let c=e(l);B(c);let u=T(t,c);c.init&&X(t,c.init),i(()=>{c.destroy&&X(t,c.destroy),u()})}),et((e,t)=>
1{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))}),ae("show",(e,{modifiers:t,expression:n},{effect:i})=>{let r=G(e,n);e._x_doHide||(e._x_doHide=()=>{j(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{j(()=>{1===e.style.length&&"none"===e.style.display?e.removeAttribute("style"):e.style.removeProperty("display")})});let o,s=()=>{e._x_doHide(),e._x_isShown=!1},a=()=>{e._x_doShow(),e._x_isShown=!0},l=()=>setTimeout(a),c=Je(e=>e?a():s(),t=>{"function"==typeof e._x_toggleAndCascadeWithTransitions?e._x_toggleAndCascadeWithTransitions(e,t,a,s):t?l():s()}),u=!0;i(()=>r(e=>{(u||e!==o)&&(t.includes("immediate")&&(e?l():s()),c(e),o=e,u=!1)}))}),ae("for",(t,{expression:n},{effect:i,cleanup:r})=>{let o=function(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,i=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,r=e.match(i);if(!r)return;let o={};o.items=r[2].trim();let s=r[1].replace(n,"").trim(),a=s.match(t);a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s;return o}(n),s=G(t,o.items),a=G(t,t._x_keyExpression||"index");t._x_prevKeys=[],t._x_lookup={},i(()=>function(t,n,i,r){let o=e=>"object"==typeof e&&!Array.isArray(e),s=t;i(i=>{var a;a=i,!Array.isArray(a)&&!isNaN(a)&&i>=0&&(i=Array.from(Array(i).keys(),e=>e+1)),void 0===i&&(i=[]);let l=t._x_lookup,c=t._x_prevKeys,u=[],d=[];if(o(i))i=Object.entries(i).map(([e,o])=>{let s=Hn(n,o,e,i);r(e=>{d.includes(e)&&Se("Duplicate key on x-for",t),d.push(e)},{scope:{index:e,...s}}),u.push(s)});else for(let e=0;e<i.length;e++){let o=Hn(n,i[e],e,i);r(e=>{d.includes(e)&&Se("Duplicate key on x-for",t),d.push(e)},{scope:{index:e,...o}}),u.push(o)}let f=[],p=[],_=[],h=[];for(let e=0;e<c.length;e++){let t=c[e];-1===d.indexOf(t)&&_.push(t)}c=c.filter(e=>!_.includes(e));let m="template";for(let e=0;e<d.length;e++){let t=d[e],n=c.indexOf(t);if(-1===n)c.splice(e,0,t),f.push([m,e]);else if(n!==e){let t=c.splice(e,1)[0],i=c.splice(n-1,1)[0];c.splice(e,0,i),c.splice(n,0,t),p.push([t,i])}else h.push(t);m=t}for(let e=0;e<_.length;e++){let t=_[e];t in l&&(j(()=>{Ie(l[t]),l[t].remove()}),delete l[t])}for(let e=0;e<p.length;e++){let[t,n]=p[e],i=l[t],r=l[n],o=document.createElement("div");j(()=>{r||Se('x-for ":key" is undefined or invalid',s,n,l),r.after(o),i.after(r),r._x_currentIfEl&&r.after(r._x_currentIfEl),o.before(i),i._x_currentIfEl&&i.after(i._x_currentIfEl),o.remove()}),r._x_refreshXForScope(u[d.indexOf(n)])}for(let t=0;t<f.length;t++){let[n,i]=f[t],r="template"===n?s:l[n];r._x_currentIfEl&&(r=r._x_currentIfEl);let o=u[i],a=d[i],c=document.importNode(s.content,!0).firstElementChild,p=e(o);T(c,p,s),c._x_refreshXForScope=e=>{Object.entries(e).forEach(([e,t])=>{p[e]=t})},j(()=>{r.after(c),Ge(()=>ze(c))()}),"object"==typeof a&&Se("x-for key cannot be an object, it must be a string or an integer",s),l[a]=c}for(let e=0;e<h.length;e++)l[h[e]]._x_refreshXForScope(u[d.indexOf(h[e])]);s._x_prevKeys=d})}(t,o,s,a)),r(()=>{Object.values(t._x_lookup).forEach(e=>j(()=>{Ie(e),e.remove()})),delete t._x_prevKeys,delete t._x_lookup})}),Yn.inline=(e,{expression:t},{cleanup:n})=>{let i=Le(e);i._x_refs||(i._x_refs={}),i._x_refs[t]=e,n(()=>delete i._x_refs[t])},ae("ref",Yn),ae("if",(e,{expression:t},{effect:n,cleanup:i})=>{"template"!==e.tagName.toLowerCase()&&Se("x-if can only be used on a <template> tag",e);let r=G(e,t);n(()=>r(t=>{t?(()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let t=e.content.cloneNode(!0).firstElementChild;T(t,{},e),j(()=>{e.after(t),Ge(()=>ze(t))()}),e._x_currentIfEl=t,e._x_undoIf=()=>{j(()=>{Ie(t),t.remove()}),delete e._x_currentIfEl}})():e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)})),i(()=>e._x_undoIf&&e._x_undoIf())}),ae("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(t=>function(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Rn(t))}(e,t))}),et((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)}),ge(_e("@",oe("on:"))),ae("on",Ge((e,{value:t,modifiers:n,expression:i},{cleanup:r})=>{let o=i?G(e,i):()=>{};"template"===e.tagName.toLowerCase()&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=Fn(e,t,n,e=>{o(()=>{},{scope:{$event:e},params:[e]})});r(()=>s())})),Xn("Collapse","collapse","collapse"),Xn("Intersect","intersect","intersect"),Xn("Focus","trap","focus"),Xn("Mask","mask","mask"),bt.setEvaluator(te),bt.setRawEvaluator(function(e,t,n={}){let i={};Z(i,e);let r=[i,...R(e)],o=z([n.scope??{},...r]),s=n.params??[];if(t.includes("await")){return new(0,Object.getPrototypeOf(async function(){}).constructor)(["scope"],`with (scope) { let __result = ${/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t}; return __result }`).call(n.context,o)}{let e=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(()=>{ ${t} })()`:t,i=new Function(["scope"],`with (scope) { let __result = ${e}; return __result }`).call(n.context,o);return"function"==typeof i&&H?i.apply(o,s):i}}),bt.setReactivityEngine({reactive:$n,effect:function(e,t=Ot){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return e();if(!It.includes(n)){Ut(n);try{return Wt.push(qt),qt=!0,It.push(n),Et=n,e()}finally{It.pop(),Zt(),Et=It[It.length-1]}}};return n.id=Ft++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n},release:function(e){e.active&&(Ut(e),e.options.onStop&&e.options.onStop(),e.active=!1)},raw:Ln});var Gn=bt;window.Alpine=Gn,Gn.store("nav",{mobileMenuOpen:!1,mobileSearchOpen:!1,expandedItems:[],toggleMobileMenu(){this.mobileMenuOpen=!this.mobileMenuOpen,this.mobileMenuOpen&&
1(this.mobileSearchOpen=!1),this.mobileMenuOpen||(this.expandedItems=[]),document.body.classList.toggle("mobile-menu-open",this.mobileMenuOpen)},closeMobileMenu(){this.mobileMenuOpen&&(this.mobileMenuOpen=!1,this.expandedItems=[],document.body.classList.remove("mobile-menu-open"))},toggleMobileSearch(){this.mobileSearchOpen=!this.mobileSearchOpen,this.mobileSearchOpen&&this.closeMobileMenu()},toggleSubmenu(e){const t=[...this.expandedItems],n=t.indexOf(e);n>-1?t.splice(n,1):t.push(e),this.expandedItems=t},isExpanded(e){return this.expandedItems.includes(e)}}),Gn.data("navigation",()=>({mobileSearchOpen:!1,get mobileMenuOpen(){return this.$store.nav.mobileMenuOpen},toggleMobileMenu(){this.$store.nav.toggleMobileMenu()},closeMobileMenu(){this.$store.nav.closeMobileMenu()},toggleSubmenu(e){this.$store.nav.toggleSubmenu(e)},isExpanded(e){return this.$store.nav.isExpanded(e)}})),Gn.data("newsletterForm",e=>({email:"",firstName:"",submitting:!1,success:!1,error:"",async submit(){var t;if(this.email&&this.email.includes("@")){this.submitting=!0,this.error="";try{const n=new FormData;n.append("action","gcat_newsletter_subscribe"),n.append("email",this.email),this.firstName&&n.append("first_name",this.firstName);const i=await fetch(e,{method:"POST",body:n}),r=await i.json();r.success?(this.success=!0,this.email="",this.firstName=""):this.error=(null==(t=r.data)?void 0:t.message)||"Subscription failed. Please try again."}catch(n){this.error="An error occurred. Please try again."}finally{this.submitting=!1}}else this.error="Please enter a valid email address."},reset(){this.success=!1,this.error=""}})),Gn.data("contactForm",e=>({name:"",email:"",subject:"",message:"",honeypot:"",loadedAt:Math.floor(Date.now()/1e3),submitting:!1,success:!1,successMessage:"",error:"",async submit(){var t,n;if(this.name.trim()&&this.email.trim()&&this.message.trim())if(this.email.includes("@")){this.submitting=!0,this.error="";try{const i=new FormData;i.append("action","gcat_contact_submit"),i.append("name",this.name),i.append("email",this.email),i.append("subject",this.subject),i.append("message",this.message),i.append("website_url",this.honeypot),i.append("_loaded",this.loadedAt);const r=await fetch(e,{method:"POST",body:i}),o=await r.json();o.success?(this.success=!0,this.successMessage=(null==(t=o.data)?void 0:t.message)||"Your message has been sent!",this.name="",this.email="",this.subject="",this.message=""):this.error=(null==(n=o.data)?void 0:n.message)||"Failed to send message. Please try again."}catch(i){this.error="An error occurred. Please try again."}finally{this.submitting=!1}}else this.error="Please enter a valid email address.";else this.error="Please fill in all required fields."},reset(){this.success=!1,this.successMessage="",this.error=""}})),Gn.data("leafletMap",()=>({loading:!0,error:!1,map:null,config:{center:[43.5423735,-80.2460718],zoom:13,minZoom:10,maxZoom:18,baseTileUrl:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",cycleOverlayUrl:"https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm-lite/{z}/{x}/{y}.png",cycleHealthTileUrl:"https://a.tile-cyclosm.openstreetmap.fr/cyclosm-lite/13/2269/2984.png",subdomains:"abc",baseAttribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',cycleAttribution:'<a href="https://www.cyclosm.org/">CyclOSM</a>'},init(){"complete"===document.readyState?this.initMap():window.addEventListener("load",()=>{setTimeout(()=>this.initMap(),100)})},initMap(){if("undefined"==typeof L)return console.error("Leaflet library not loaded"),void this.fail();if(!document.getElementById("gcat-cycling-map"))return console.error("Map container #gcat-cycling-map not found"),void this.fail();try{this.map=L.map("gcat-cycling-map",{center:this.config.center,zoom:this.config.zoom,minZoom:this.config.minZoom,maxZoom:this.config.maxZoom,scrollWheelZoom:!0,zoomControl:!0});const e=L.tileLayer(this.config.baseTileUrl,{subdomains:this.config.subdomains,attribution:this.config.baseAttribution,maxZoom:this.config.maxZoom});e.on("load",()=>{this.loading=!1}),e.on("tileerror",e=>{console.warn("OpenStreetMap tile loading error:",e)}),e.addTo(this.map),this.probeTile(this.config.cycleHealthTileUrl,2500).then(e=>{if(!e||!this.map)return void console.warn("CyclOSM tiles unavailable; using OpenStreetMap fallback layer.");const t=L.tileLayer(this.config.cycleOverlayUrl,{subdomains:this.config.subdomains,attribution:this.config.cycleAttribution,maxZoom:this.config.maxZoom});t.on("tileerror",e=>{console.warn("CyclOSM tile loading error:",e)}),t.addTo(this.map)}),setTimeout(()=>{this.loading&&(this.loading=!1)},3e3),window.addEventListener("resize",()=>{this.map&&this.map.invalidateSize()})}catch(e){console.error("Error initializing Leaflet map:",e),this.fail()}},probeTile:(e,t=2500)=>new Promise(n=>{const i=new Image,r=setTimeout(()=>{i.onload=null,i.onerror=null,i.src="",n(!1)},t);i.onload=()=>{clearTimeout(r),n(!0)},i.onerror=()=>{clearTimeout(r),n(!1)},i.src=e}),fail(){this.loading=!1,this.error=!0}})),Gn.data("announcementBanner",(e,t)=>({visible:!0,init(){if(t&&e){"true"===localStorage.getItem(`dismissed_${e}`)&&(this.visible=!1)}}
1,dismiss(){this.visible=!1,e&&localStorage.setItem(`dismissed_${e}`,"true")}})),Gn.start(),document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelector(".header-main");if(e){const t=()=>{window.scrollY>50?e.classList.add("scrolled"):e.classList.remove("scrolled")};t(),window.addEventListener("scroll",t,{passive:!0})}}),console.log("GCAT theme JavaScript loaded with Alpine.js");
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.