var e=!1,t=!1,n=[],r=-1,i=!1;function a(e){c(e)}function o(){i=!0}function s(){i=!1,u()}function c(e){n.includes(e)||n.push(e),u()}function l(e){let t=n.indexOf(e);t!==-1&&t>r&&n.splice(t,1)}function u(){if(!t&&!e){if(i)return;e=!0,queueMicrotask(d)}}function d(){e=!1,t=!0;for(let e=0;ee.effect(t,{scheduler:e=>{h?a(e):e()}}),ee=e.raw}function re(e){p=e}function ie(e){let t=()=>{};return[n=>{let r=p(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(e=>e())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),m(r))},r},()=>{t()}]}function ae(e,t){let n=!0,r,i,a=p(()=>{let a=e(),o=JSON.stringify(a);if(!n&&(typeof a==`object`||a!==r)){let e=typeof r==`object`?JSON.parse(i):r;queueMicrotask(()=>{t(a,e)})}r=a,i=o,n=!1});return()=>m(a)}async function oe(e){o();try{await e(),await Promise.resolve()}finally{s()}}var se=[],ce=[],le=[];function ue(e){le.push(e)}function de(e,t){typeof t==`function`?(e._x_cleanups||=[],e._x_cleanups.push(t)):(t=e,ce.push(t))}function fe(e){se.push(e)}function pe(e,t,n){e._x_attributeCleanups||={},e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function me(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(e=>e()),delete e._x_attributeCleanups[n])})}function he(e){for(e._x_effects?.forEach(l);e._x_cleanups?.length;)e._x_cleanups.pop()()}var ge=new MutationObserver(Te),_e=!1;function ve(){ge.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),_e=!0}function ye(){be(),ge.disconnect(),_e=!1}var g=[];function be(){let e=ge.takeRecords();g.push(()=>e.length>0&&Te(e));let t=g.length;queueMicrotask(()=>{if(g.length===t)for(;g.length>0;)g.shift()()})}function _(e){if(!_e)return e();ye();let t=e();return ve(),t}var xe=!1,Se=[];function Ce(){xe=!0}function we(){xe=!1,Te(Se),Se=[]}function Te(e){if(xe){Se=Se.concat(e);return}let t=[],n=new Set,r=new Map,i=new Map;for(let a=0;a{e.nodeType===1&&e._x_marker&&n.add(e)}),e[a].addedNodes.forEach(e=>{if(e.nodeType===1){if(n.has(e)){n.delete(e);return}e._x_marker||t.push(e)}})),e[a].type===`attributes`)){let t=e[a].target,n=e[a].attributeName,o=e[a].oldValue,s=()=>{r.has(t)||r.set(t,[]),r.get(t).push({name:n,value:t.getAttribute(n)})},c=()=>{i.has(t)||i.set(t,[]),i.get(t).push(n)};t.hasAttribute(n)&&o===null?s():t.hasAttribute(n)?(c(),s()):c()}i.forEach((e,t)=>{me(t,e)}),r.forEach((e,t)=>{se.forEach(n=>n(t,e))});for(let e of n)t.some(t=>t.contains(e))||ce.forEach(t=>t(e));for(let e of t)e.isConnected&&le.forEach(t=>t(e));t=null,n=null,r=null,i=null}function Ee(e){return b(y(e))}function v(e,t,n){return e._x_dataStack=[t,...y(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(e=>e!==t)}}function y(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot==`function`&&e instanceof ShadowRoot?y(e.host):e.parentNode?y(e.parentNode):[]}function b(e){return new Proxy({objects:e},Oe)}function De(e,t){return e===null||e===Object.prototype?null:Object.prototype.hasOwnProperty.call(e,t)?e:De(Object.getPrototypeOf(e),t)}var Oe={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(e=>Object.keys(e))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(e=>Object.prototype.hasOwnProperty.call(e,t)||Reflect.has(e,t))},get({objects:e},t,n){return t==`toJSON`?ke:Reflect.get(e.find(e=>Reflect.has(e,t))||{},t,n)},set({objects:e},t,n,r){let i;for(let n of e)if(i=De(n,t),i)break;i||=e[e.length-1];let a=Object.getOwnPropertyDescriptor(i,t);return a?.set&&a?.get?a.set.call(r,n)||!0:Reflect.set(i,t,n)}};function ke(){return Reflect.ownKeys(this).reduce((e,t)=>(e[t]=Reflect.get(this,t),e),{})}function Ae(e){let t=e=>typeof e==`object`&&!Array.isArray(e)&&e!==null,n=(r,i=``)=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([a,{value:o,enumerable:s}])=>{if(s===!1||o===void 0||typeof o==`object`&&o&&o.__v_skip)return;let c=i===``?a:`${i}.${a}`;typeof o==`object`&&o&&o._x_interceptor?r[a]=o.initialize(e,c,a):t(o)&&o!==r&&!(o instanceof Element)&&n(o,c)})};return n(e)}function je(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,r){return e(this.initialValue,()=>Me(t,n),e=>Ne(t,n,e),n,r)}};return t(n),e=>{if(typeof e==`object`&&e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(r,i,a)=>(n.initialValue=e.initialize(r,i,a),t(r,i,a))}else n.initialValue=e;return n}}function Me(e,t){return t.split(`.`).reduce((e,t)=>e[t],e)}function Ne(e,t,n){if(typeof t==`string`&&(t=t.split(`.`)),t.length===1)e[t[0]]=n;else if(t.length===0)throw error;else if(e[t[0]])return Ne(e[t[0]],t.slice(1),n);else return e[t[0]]={},Ne(e[t[0]],t.slice(1),n)}var Pe={};function x(e,t){Pe[e]=t}function S(e,t){let n=Fe(t);return Object.entries(Pe).forEach(([r,i])=>{Object.defineProperty(e,`$${r}`,{get(){return i(t,n)},enumerable:!1})}),e}function Fe(e){let[t,n]=st(e),r={interceptor:je,...t};return de(e,n),r}function Ie(e,t,n,...r){try{return n(...r)}catch(n){C(n,e,t)}}function C(...e){return Le(...e)}var Le=ze;function Re(e){Le=e}function ze(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 w=!0;function Be(e){let t=w;w=!1;let n=e();return w=t,n}function T(e,t,n={}){let r;return E(e,t)(e=>r=e,n),r}function E(...e){return Ve(...e)}var Ve=()=>{};function He(e){Ve=e}var Ue;function We(e){Ue=e}function Ge(e,t){let n={};S(n,e);let r=[n,...y(e)],i=typeof t==`function`?Ke(r,t):Ye(r,t,e);return Ie.bind(null,e,t,i)}function Ke(e,t){return(n=()=>{},{scope:r={},params:i=[],context:a}={})=>{if(!w){D(n,t,b([r,...e]),i);return}D(n,t.apply(b([r,...e]),i))}}var qe={};function Je(e,t){if(qe[e])return qe[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,i=(()=>{try{let t=new n([`__self`,`scope`],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(t,"name",{value:`[Alpine] ${e}`}),t}catch(n){return C(n,t,e),Promise.resolve()}})();return qe[e]=i,i}function Ye(e,t,n){let r=Je(t,n);return(i=()=>{},{scope:a={},params:o=[],context:s}={})=>{r.result=void 0,r.finished=!1;let c=b([a,...e]);if(typeof r==`function`){let e=r.call(s,r,c).catch(e=>C(e,n,t));r.finished?(D(i,r.result,c,o,n),r.result=void 0):e.then(e=>{D(i,e,c,o,n)}).catch(e=>C(e,n,t)).finally(()=>r.result=void 0)}}}function D(e,t,n,r,i){if(w&&typeof t==`function`){let a=t.apply(n,r);a instanceof Promise?a.then(t=>D(e,t,n,r)).catch(e=>C(e,i,t)):e(a)}else typeof t==`object`&&t instanceof Promise?t.then(t=>e(t)):e(t)}function Xe(...e){return Ue(...e)}function Ze(e,t,n={}){let r={};S(r,e);let i=[r,...y(e)],a=b([n.scope??{},...i]),o=n.params??[];if(t.includes(`await`)){let e=Object.getPrototypeOf(async function(){}).constructor;return new e([`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,a)}else{let e=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(()=>{ ${t} })()`:t,r=Function([`scope`],`with (scope) { let __result = ${e}; return __result }`).call(n.context,a);return typeof r==`function`&&w?r.apply(a,o):r}}var Qe=`x-`;function O(e=``){return Qe+e}function $e(e){Qe=e}var et={};function k(e,t){return et[e]=t,{before(t){if(!et[t]){console.warn(String.raw`Cannot find directive \`${t}\`. \`${e}\` will use the default order of execution`);return}let n=j.indexOf(t);j.splice(n>=0?n:j.indexOf(`DEFAULT`),0,e)}}}function tt(e){return Object.keys(et).includes(e)}function nt(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})),r=rt(n);n=n.map(e=>r.find(t=>t.name===e.name)?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e),t=t.concat(n)}let r={};return t.map(dt((e,t)=>r[e]=t)).filter(mt).map(gt(r,n)).sort(vt).map(t=>ct(e,t))}function rt(e){return Array.from(e).map(dt()).filter(e=>!mt(e))}var it=!1,A=new Map,at=Symbol();function ot(e){it=!0;let t=Symbol();at=t,A.set(t,[]);let n=()=>{for(;A.get(t).length;)A.get(t).shift()();A.delete(t)};e(n),it=!1,n()}function st(e){let t=[],n=e=>t.push(e),[r,i]=ie(e);return t.push(i),[{Alpine:H,effect:r,cleanup:n,evaluateLater:E.bind(E,e),evaluate:T.bind(T,e)},()=>t.forEach(e=>e())]}function ct(e,t){let n=et[t.type]||(()=>{}),[r,i]=st(e);pe(e,t.original,i);let a=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,r),n=n.bind(n,e,t,r),it?A.get(at).push(n):n())};return a.runCleanups=i,a}var lt=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),ut=e=>e;function dt(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=ft.reduce((e,t)=>t(e),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var ft=[];function pt(e){ft.push(e)}function mt({name:e}){return ht().test(e)}var ht=()=>RegExp(`^${Qe}([^:^.]+)\\b`);function gt(e,t){return({name:n,value:r})=>{n===r&&(r=``);let i=n.match(ht()),a=n.match(/:([a-zA-Z0-9\-_:]+)/),o=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],s=t||e[n]||n;return{type:i?i[1]:null,value:a?a[1]:null,modifiers:o.map(e=>e.replace(`.`,``)),expression:r,original:s}}}var _t=`DEFAULT`,j=[`ignore`,`ref`,`id`,`data`,`anchor`,`bind`,`init`,`for`,`model`,`modelable`,`transition`,`show`,`if`,_t,`teleport`];function vt(e,t){let n=j.indexOf(e.type)===-1?_t:e.type,r=j.indexOf(t.type)===-1?_t:t.type;return j.indexOf(n)-j.indexOf(r)}function M(e,t,n={},r={}){return e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0,...r}))}function N(e,t){if(typeof ShadowRoot==`function`&&e instanceof ShadowRoot){Array.from(e.children).forEach(e=>N(e,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)N(r,t,!1),r=r.nextElementSibling}function P(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var yt=!1;function bt(){yt&&P(`Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems.`),yt=!0,document.body||P("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `