var Ie=!1,$e=!1,N=[],Pe=-1;function Wn(e){Un(e)}function Un(e){N.includes(e)||N.push(e),Vn()}function Jn(e){let t=N.indexOf(e);t!==-1&&t>Pe&&N.splice(t,1)}function Vn(){!$e&&!Ie&&(Ie=!0,queueMicrotask(Yn))}function Yn(){Ie=!1,$e=!0;for(let e=0;ee.effect(t,{scheduler:n=>{Re?Wn(n):n()}}),Tt=e.raw}function ht(e){B=e}function Zn(e){let t=()=>{};return[r=>{let i=B(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),W(i))},i},()=>{t()}]}function It(e,t){let n=!0,r,i=B(()=>{let o=e();JSON.stringify(o),n?r=o:queueMicrotask(()=>{t(o,r),r=o}),n=!1});return()=>W(i)}var $t=[],Pt=[],Rt=[];function Qn(e){Rt.push(e)}function Je(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Pt.push(t))}function jt(e){$t.push(e)}function Nt(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function Lt(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}function er(e){var t,n;for((t=e._x_effects)==null||t.forEach(Jn);(n=e._x_cleanups)!=null&&n.length;)e._x_cleanups.pop()()}var Ve=new MutationObserver(Ze),Ye=!1;function Ge(){Ve.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Ye=!0}function Ft(){tr(),Ve.disconnect(),Ye=!1}var G=[];function tr(){let e=Ve.takeRecords();G.push(()=>e.length>0&&Ze(e));let t=G.length;queueMicrotask(()=>{if(G.length===t)for(;G.length>0;)G.shift()()})}function g(e){if(!Ye)return e();Ft();let t=e();return Ge(),t}var Xe=!1,_e=[];function nr(){Xe=!0}function rr(){Xe=!1,Ze(_e),_e=[]}function Ze(e){if(Xe){_e=_e.concat(e);return}let t=[],n=new Set,r=new Map,i=new Map;for(let o=0;o{s.nodeType===1&&s._x_marker&&n.add(s)}),e[o].addedNodes.forEach(s=>{if(s.nodeType===1){if(n.has(s)){n.delete(s);return}s._x_marker||t.push(s)}})),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,u=e[o].oldValue,c=()=>{r.has(s)||r.set(s,[]),r.get(s).push({name:a,value:s.getAttribute(a)})},l=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&u===null?c():s.hasAttribute(a)?(l(),c()):l()}i.forEach((o,s)=>{Lt(s,o)}),r.forEach((o,s)=>{$t.forEach(a=>a(s,o))});for(let o of n)t.some(s=>s.contains(o))||Pt.forEach(s=>s(o));for(let o of t)o.isConnected&&Rt.forEach(s=>s(o));t=null,n=null,r=null,i=null}function kt(e){return ie(z(e))}function re(e,t,n){return e._x_dataStack=[t,...z(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function z(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?z(e.host):e.parentNode?z(e.parentNode):[]}function ie(e){return new Proxy({objects:e},ir)}var ir={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(n=>Object.prototype.hasOwnProperty.call(n,t)||Reflect.has(n,t))},get({objects:e},t,n){return t=="toJSON"?or:Reflect.get(e.find(r=>Reflect.has(r,t))||{},t,n)},set({objects:e},t,n,r){const i=e.find(s=>Object.prototype.hasOwnProperty.call(s,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(i,t);return o!=null&&o.set&&(o!=null&&o.get)?o.set.call(r,n)||!0:Reflect.set(i,t,n)}};function or(){return Reflect.ownKeys(this).reduce((t,n)=>(t[n]=Reflect.get(this,n),t),{})}function Dt(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0||typeof s=="object"&&s!==null&&s.__v_skip)return;let u=i===""?o:`${i}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?r[o]=s.initialize(e,u,o):t(s)&&s!==r&&!(s instanceof Element)&&n(s,u)})};return n(e)}function Bt(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o){return e(this.initialValue,()=>sr(r,i),s=>je(r,i,s),i,o)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,s,a)=>{let u=r.initialize(o,s,a);return n.initialValue=u,i(o,s,a)}}else n.initialValue=r;return n}}function sr(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function je(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),je(e[t[0]],t.slice(1),n)}}var Kt={};function A(e,t){Kt[e]=t}function Ne(e,t){let n=ar(t);return Object.entries(Kt).forEach(([r,i])=>{Object.defineProperty(e,`$${r}`,{get(){return i(t,n)},enumerable:!1})}),e}function ar(e){let[t,n]=Jt(e),r={interceptor:Bt,...t};return Je(e,n),r}function ur(e,t,n,...r){try{return n(...r)}catch(i){ne(i,e,t)}}function ne(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?'Expression: "'+n+`" `:""}`,t),setTimeout(()=>{throw e},0)}var de=!0;function zt(e){let t=de;de=!1;let n=e();return de=t,n}function L(e,t,n={}){let r;return m(e,t)(i=>r=i,n),r}function m(...e){return Ht(...e)}var Ht=qt;function cr(e){Ht=e}function qt(e,t){let n={};Ne(n,e);let r=[n,...z(e)],i=typeof t=="function"?lr(r,t):dr(r,t,e);return ur.bind(null,e,t,i)}function lr(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let o=t.apply(ie([r,...e]),i);he(n,o)}}var Ae={};function fr(e,t){if(Ae[e])return Ae[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let s=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return ne(s,t,e),Promise.resolve()}})();return Ae[e]=o,o}function dr(e,t,n){let r=fr(t,n);return(i=()=>{},{scope:o={},params:s=[]}={})=>{r.result=void 0,r.finished=!1;let a=ie([o,...e]);if(typeof r=="function"){let u=r(r,a).catch(c=>ne(c,n,t));r.finished?(he(i,r.result,a,s,n),r.result=void 0):u.then(c=>{he(i,c,a,s,n)}).catch(c=>ne(c,n,t)).finally(()=>r.result=void 0)}}}function he(e,t,n,r,i){if(de&&typeof t=="function"){let o=t.apply(n,r);o instanceof Promise?o.then(s=>he(e,s,n,r)).catch(s=>ne(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var Qe="x-";function U(e=""){return Qe+e}function pr(e){Qe=e}var ge={};function y(e,t){return ge[e]=t,{before(n){if(!ge[n]){console.warn(String.raw`Cannot find directive \`${n}\`. \`${e}\` will use the default order of execution`);return}const r=j.indexOf(n);j.splice(r>=0?r:j.indexOf("DEFAULT"),0,e)}}}function _r(e){return Object.keys(ge).includes(e)}function et(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,u])=>({name:a,value:u})),s=Wt(o);o=o.map(a=>s.find(u=>u.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(o)}let r={};return t.map(Gt((o,s)=>r[o]=s)).filter(Zt).map(xr(r,n)).sort(yr).map(o=>gr(e,o))}function Wt(e){return Array.from(e).map(Gt()).filter(t=>!Zt(t))}var Le=!1,Q=new Map,Ut=Symbol();function hr(e){Le=!0;let t=Symbol();Ut=t,Q.set(t,[]);let n=()=>{for(;Q.get(t).length;)Q.get(t).shift()();Q.delete(t)},r=()=>{Le=!1,n()};e(n),r()}function Jt(e){let t=[],n=a=>t.push(a),[r,i]=Zn(e);return t.push(i),[{Alpine:oe,effect:r,cleanup:n,evaluateLater:m.bind(m,e),evaluate:L.bind(L,e)},()=>t.forEach(a=>a())]}function gr(e,t){let n=()=>{},r=ge[t.type]||n,[i,o]=Jt(e);Nt(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),Le?Q.get(Ut).push(r):r())};return s.runCleanups=o,s}var Vt=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),Yt=e=>e;function Gt(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=Xt.reduce((o,s)=>s(o),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var Xt=[];function tt(e){Xt.push(e)}function Zt({name:e}){return Qt().test(e)}var Qt=()=>new RegExp(`^${Qe}([^:^.]+)\\b`);function xr(e,t){return({name:n,value:r})=>{let i=n.match(Qt()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(u=>u.replace(".","")),expression:r,original:a}}}var Fe="DEFAULT",j=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Fe,"teleport"];function yr(e,t){let n=j.indexOf(e.type)===-1?Fe:e.type,r=j.indexOf(t.type)===-1?Fe:t.type;return j.indexOf(n)-j.indexOf(r)}function ee(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function D(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>D(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)D(r,t),r=r.nextElementSibling}function E(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var gt=!1;function vr(){gt&&E("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),gt=!0,document.body||E("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `