CVE-2024-21504: Insufficient Information (NVD-CWE-noinfo)
value: Versions of the package livewire/livewire from 3.3.5 and before 3.4.9 are vulnerable to Cross-site Scripting (XSS) when a page uses [Url] for a property. An attacker can inject HTML code in the context of the user's browser session by crafting a malicious link and convincing the user to click on it.
CWE description: There is insufficient information about the issue to classify it; details are unkown or unspecified.
Published: 2024-03-19T05:15Z
Repository: https://github.com/livewire/livewire
Language: JavaScript
Files changed: dist/livewire.esm.js, dist/livewire.js, dist/livewire.min.js, dist/livewire.min.js.map, dist/manifest.json, js/plugins/history/index.js, src/Features/SupportQueryString/BrowserTest.php
Commit date: 2024-03-14 10:03:32 -0400
Commit message: patch vulnerability (#8117)


Diff: diff --git a/dist/livewire.esm.js b/dist/livewire.esm.js
index 59d3e0a1..576a7ecf 100644
--- a/dist/livewire.esm.js
+++ b/dist/livewire.esm.js
@@ -1483,31 +1483,21 @@ var require_module_cjs = __commonJS({
     }
     function initTree(el, walker = walk, intercept = () => {
     }) {
       deferHandlingDirectives(() => {
         walker(el, (el2, skip) => {
-          if (el2._x_inited) {
-            if (el2._x_ignore)
-              skip();
-            return;
-          }
           intercept(el2, skip);
           initInterceptors.forEach((i) => i(el2, skip));
           directives(el2, el2.attributes).forEach((handle) => handle());
-          if (el2._x_ignore) {
-            skip();
-          } else {
-            el2._x_inited = true;
-          }
+          el2._x_ignore && skip();
         });
       });
     }
     function destroyTree(root, walker = walk) {
       walker(root, (el) => {
         cleanupAttributes(el);
         cleanupElement(el);
-        delete el._x_inited;
       });
     }
     var onAttributeAddeds = [];
     var onElRemoveds = [];
     var onElAddeds = [];
@@ -1646,10 +1636,12 @@ var require_module_cjs = __commonJS({
       addedNodes.forEach((node) => {
         node._x_ignoreSelf = true;
         node._x_ignore = true;
       });
       for (let node of addedNodes) {
+        if (removedNodes.has(node))
+          continue;
         if (!node.isConnected)
           continue;
         delete node._x_ignoreSelf;
         delete node._x_ignore;
         onElAddeds.forEach((i) => i(node));
@@ -1693,19 +1685,19 @@ var require_module_cjs = __commonJS({
         return Array.from(new Set(objects.flatMap((i) => Object.keys(i))));
       },
       has({ objects }, name) {
         if (name == Symbol.unscopables)
           return false;
-        return objects.some((obj) => Reflect.has(obj, name));
+        return objects.some((obj) => Object.prototype.hasOwnProperty.call(obj, name) || Reflect.has(obj, name));
       },
       get({ objects }, name, thisProxy) {
         if (name == "toJSON")
           return collapseProxies;
         return Reflect.get(objects.find((obj) => Reflect.has(obj, name)) || {}, name, thisProxy);
       },
       set({ objects }, name, value, thisProxy) {
-        const target = objects.find((obj) => Reflect.has(obj, name)) || objects[objects.length - 1];
+        const target = objects.find((obj) => Object.prototype.hasOwnProperty.call(obj, name)) || objects[objects.length - 1];
         const descriptor = Object.getOwnPropertyDescriptor(target, name);
         if ((descriptor == null ? void 0 : descriptor.set) && (descriptor == null ? void 0 : descriptor.get))
           return Reflect.set(target, name, value, thisProxy);
         return Reflect.set(target, name, value);
       }
@@ -2846,11 +2838,11 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
         return effect;
       },
       get raw() {
         return raw;
       },
-      version: "3.13.6",
+      version: "3.13.7",
       flushAndStopDeferringMutations,
       dontAutoEvaluateFunctions,
       disableEffectScheduling,
       startObservingMutations,
       stopObservingMutations,
@@ -9240,11 +9232,11 @@ function fromQueryString(search) {
       data2[first2] = isNaN(second) ? {} : [];
     }
     insertDotNotatedValueIntoData([second, ...rest].join("."), value, data2[first2]);
   };
   let entries = search.split("&").map((i) => i.split("="));
-  let data = {};
+  let data = /* @__PURE__ */ Object.create(null);
   entries.forEach(([key, value]) => {
     value = decodeURIComponent(value.replaceAll("+", "%20"));
     if (!key.includes("[")) {
       data[key] = value;
     } else {
diff --git a/dist/livewire.js b/dist/livewire.js
index ae535a52..3d80e5c0 100644
--- a/dist/livewire.js
+++ b/dist/livewire.js
@@ -865,31 +865,21 @@
   }
   function initTree(el, walker = walk, intercept = () => {
   }) {
     deferHandlingDirectives(() => {
       walker(el, (el2, skip) => {
-        if (el2._x_inited) {
-          if (el2._x_ignore)
-            skip();
-          return;
-        }
         intercept(el2, skip);
         initInterceptors.forEach((i) => i(el2, skip));
         directives(el2, el2.attributes).forEach((handle) => handle());
-        if (el2._x_ignore) {
-          skip();
-        } else {
-          el2._x_inited = true;
-        }
+        el2._x_ignore && skip();
       });
     });
   }
   function destroyTree(root, walker = walk) {
     walker(root, (el) => {
       cleanupAttributes(el);
       cleanupElement(el);
-      delete el._x_inited;
     });
   }
   var onAttributeAddeds = [];
   var onElRemoveds = [];
   var onElAddeds = [];
@@ -1028,10 +1018,12 @@
     addedNodes.forEach((node) => {
       node._x_ignoreSelf = true;
       node._x_ignore = true;
     });
     for (let node of addedNodes) {
+      if (removedNodes.has(node))
+        continue;
       if (!node.isConnected)
         continue;
       delete node._x_ignoreSelf;
       delete node._x_ignore;
       onElAddeds.forEach((i) => i(node));
@@ -1075,19 +1067,19 @@
       return Array.from(new Set(objects.flatMap((i) => Object.keys(i))));
     },
     has({ objects }, name) {
       if (name == Symbol.unscopables)
         return false;
-      return objects.some((obj) => Reflect.has(obj, name));
+      return objects.some((obj) => Object.prototype.hasOwnProperty.call(obj, name) || Reflect.has(obj, name));
     },
     get({ objects }, name, thisProxy) {
       if (name == "toJSON")
         return collapseProxies;
       return Reflect.get(objects.find((obj) => Reflect.has(obj, name)) || {}, name, thisProxy);
     },
     set({ objects }, name, value, thisProxy) {
-      const target = objects.find((obj) => Reflect.has(obj, name)) || objects[objects.length - 1];
+      const target = objects.find((obj) => Object.prototype.hasOwnProperty.call(obj, name)) || objects[objects.length - 1];
       const descriptor = Object.getOwnPropertyDescriptor(target, name);
       if (descriptor?.set && descriptor?.get)
         return Reflect.set(target, name, value, thisProxy);
       return Reflect.set(target, name, value);
     }
@@ -2228,11 +2220,11 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
       return effect;
     },
     get raw() {
       return raw;
     },
-    version: "3.13.6",
+    version: "3.13.7",
     flushAndStopDeferringMutations,
     dontAutoEvaluateFunctions,
     disableEffectScheduling,
     startObservingMutations,
     stopObservingMutations,
@@ -7882,11 +7874,11 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
         data3[first2] = isNaN(second) ? {} : [];
       }
       insertDotNotatedValueIntoData([second, ...rest].join("."), value, data3[first2]);
     };
     let entries = search.split("&").map((i) => i.split("="));
-    let data2 = {};
+    let data2 = /* @__PURE__ */ Object.create(null);
     entries.forEach(([key, value]) => {
       value = decodeURIComponent(value.replaceAll("+", "%20"));
       if (!key.includes("[")) {
         data2[key] = value;
       } else {
diff --git a/dist/livewire.min.js b/dist/livewire.min.js
index ff58df11..eb20e1d4 100644
--- a/dist/livewire.min.js
+++ b/dist/livewire.min.js
@@ -1,16 +1,16 @@
-(()=>{var ja=Object.create;var zn=Object.defineProperty;var Ha=Object.getOwnPropertyDescriptor;var qa=Object.getOwnPropertyNames;var Wa=Object.getPrototypeOf,Ka=Object.prototype.hasOwnProperty;var za=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Va=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qa(t))!Ka.call(e,i)&&i!==r&&zn(e,i,{get:()=>t[i],enumerable:!(n=Ha(t,i))||n.enumerable});return e};var Ja=(e,t,r)=>(r=e!=null?ja(Wa(e)):{},Va(t||!e||!e.__esModule?zn(r,"default",{value:e,enumerable:!0}):r,e));var Ys=za((Rn,Xs)=>{(function(e,t){typeof define=="function"&&define.amd?define(t):typeof Rn=="object"?Xs.exports=t():e.NProgress=t()})(Rn,function(){var e={};e.version="0.2.0";var t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};e.configure=function(c){var f,m;for(f in c)m=c[f],m!==void 0&&c.hasOwnProperty(f)&&(t[f]=m);return this},e.status=null,e.set=function(c){var f=e.isStarted();c=r(c,t.minimum,1),e.status=c===1?null:c;var m=e.render(!f),v=m.querySelector(t.barSelector),g=t.speed,x=t.easing;return m.offsetWidth,o(function(b){t.positionUsing===""&&(t.positionUsing=e.getPositioningCSS()),s(v,i(c,g,x)),c===1?(s(m,{transition:"none",opacity:1}),m.offsetWidth,setTimeout(function(){s(m,{transition:"all "+g+"ms linear",opacity:0}),setTimeout(function(){e.remove(),b()},g)},g)):setTimeout(b,g)}),this},e.isStarted=function(){return typeof e.status=="number"},e.start=function(){e.status||e.set(0);var c=function(){setTimeout(function(){!e.status||(e.trickle(),c())},t.trickleSpeed)};return t.trickle&&c(),this},e.done=function(c){return!c&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(c){var f=e.status;return f?(typeof c!="number"&&(c=(1-f)*r(Math.random()*f,.1,.95)),f=r(f+c,0,.994),e.set(f)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var c=0,f=0;e.promise=function(m){return!m||m.state()==="resolved"?this:(f===0&&e.start(),c++,f++,m.always(function(){f--,f===0?(c=0,e.done()):e.set((c-f)/c)}),this)}}(),e.render=function(c){if(e.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var f=document.createElement("div");f.id="nprogress",f.innerHTML=t.template;var m=f.querySelector(t.barSelector),v=c?"-100":n(e.status||0),g=document.querySelector(t.parent),x;return s(m,{transition:"all 0 linear",transform:"translate3d("+v+"%,0,0)"}),t.showSpinner||(x=f.querySelector(t.spinnerSelector),x&&p(x)),g!=document.body&&l(g,"nprogress-custom-parent"),g.appendChild(f),f},e.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var c=document.getElementById("nprogress");c&&p(c)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var c=document.body.style,f="WebkitTransform"in c?"Webkit":"MozTransform"in c?"Moz":"msTransform"in c?"ms":"OTransform"in c?"O":"";return f+"Perspective"in c?"translate3d":f+"Transform"in c?"translate":"margin"};function r(c,f,m){return c<f?f:c>m?m:c}function n(c){return(-1+c)*100}function i(c,f,m){var v;return t.positionUsing==="translate3d"?v={transform:"translate3d("+n(c)+"%,0,0)"}:t.positionUsing==="translate"?v={transform:"translate("+n(c)+"%,0)"}:v={"margin-left":n(c)+"%"},v.transition="all "+f+"ms "+m,v}var o=function(){var c=[];function f(){var m=c.shift();m&&m(f)}return function(m){c.push(m),c.length==1&&f()}}(),s=function(){var c=["Webkit","O","Moz","ms"],f={};function m(b){return b.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(_,O){return O.toUpperCase()})}function v(b){var _=document.body.style;if(b in _)return b;for(var O=c.length,T=b.charAt(0).toUpperCase()+b.slice(1),w;O--;)if(w=c[O]+T,w in _)return w;return b}function g(b){return b=m(b),f[b]||(f[b]=v(b))}function x(b,_,O){_=g(_),b.style[_]=O}return function(b,_){var O=arguments,T,w;if(O.length==2)for(T in _)w=_[T],w!==void 0&&_.hasOwnProperty(T)&&x(b,T,w);else x(b,O[1],O[2])}}();function a(c,f){var m=typeof c=="string"?c:d(c);return m.indexOf(" "+f+" ")>=0}function l(c,f){var m=d(c),v=m+f;a(m,f)||(c.className=v.substring(1))}function u(c,f){var m=d(c),v;!a(c,f)||(v=m.replace(" "+f+" "," "),c.className=v.substring(1,v.length-1))}function d(c){return(" "+(c.className||"")+" ").replace(/\s+/gi," ")}function p(c){c&&c.parentNode&&c.parentNode.removeChild(c)}return e})});var Ie=class{constructor(){this.arrays=new WeakMap}add(t,r){this.arrays.has(t)||this.arrays.set(t,[]),this.arrays.get(t).push(r)}get(t){return this.arrays.has(t)?this.arrays.get(t):[]}each(t,r){return this.get(t).forEach(r)}};function gt(e,t,r={},n=!0){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:n,composed:!0,cancelable:!0}))}function vt(e){return typeof e=="object"&&e!==null}function Vn(e){return vt(e)&&!dr(e)}function dr(e){return Array.isArray(e)}function pr(e){return typeof e=="function"}function Jn(e){return typeof e!="object"||e===null}function le(e){return JSON.parse(JSON.stringify(e))}function W(e,t){return t===""?e:t.split(".").reduce((r,n)=>{if(r!==void 0)return r[n]},e)}function ve(e,t,r){let n=t.split(".");if(n.length===1)return e[t]=r;let i=n.shift(),o=n.join(".");e[i]===void 0&&(e[i]={}),ve(e[i],o,r)}function Ge(e,t,r={},n=""){if(e===t)return r;if(typeof e!=typeof t||Vn(e)&&dr(t)||dr(e)&&Vn(t)||Jn(e)||Jn(t))return r[n]=t,r;let i=Object.keys(e);return Object.entries(t).forEach(([o,s])=>{r={...r,...Ge(e[o],t[o],r,n===""?o:`${n}.${o}`)},i=i.filter(a=>a!==o)}),i.forEach(o=>{r[`${n}.${o}`]="__rm__"}),r}function be(e){let t=Gn(e)?e[0]:e,r=Gn(e)?e[1]:void 0;return vt(t)&&Object.entries(t).forEach(([n,i])=>{t[n]=be(i)}),t}function Gn(e){return Array.isArray(e)&&e.length===2&&typeof e[1]=="object"&&Object.keys(e[1]).includes("s")}function bt(){if(document.querySelector('meta[name="csrf-token"]'))return document.querySelector('meta[name="csrf-token"]').getAttribute("content");if(document.querySelector("[data-csrf]"))return document.querySelector("[data-csrf]").getAttribute("data-csrf");if(window.livewireScriptConfig.csrf??!1)return window.livewireScriptConfig.csrf;throw"Livewire: No CSRF token detected"}var Pe;function Xn(){if(Pe)return Pe;if(window.livewireScriptConfig&&(window.livewireScriptConfig.nonce??!1))return Pe=window.livewireScriptConfig.nonce,Pe;let e=document.querySelector("style[data-livewire-style][nonce]");return e?(Pe=e.nonce,Pe):null}function Yn(){return document.querySelector("[data-update-uri]")?.getAttribute("data-update-uri")??window.livewireScriptConfig.uri??null}function wt(e){return!!e.match(/<script>Sfdump\(".+"\)<\/script>/)}function Qn(e){let t=e.match(/.*<script>Sfdump\(".+"\)<\/script>/s);return[t,e.replace(t,"")]}var hr=new WeakMap;function Ye(e){if(!hr.has(e)){let t=new mr(e);hr.set(e,t),t.registerListeners()}return hr.get(e)}function Zn(e,t,r,n){let i=Ye(r),o=()=>e.dispatchEvent(new CustomEvent("livewire-upload-start",{bubbles:!0,detail:{id:r.id,property:t}})),s=()=>e.dispatchEvent(new CustomEvent("livewire-upload-finish",{bubbles:!0,detail:{id:r.id,property:t}})),a=()=>e.dispatchEvent(new CustomEvent("livewire-upload-error",{bubbles:!0,detail:{id:r.id,property:t}})),l=()=>e.dispatchEvent(new CustomEvent("livewire-upload-cancel",{bubbles:!0,detail:{id:r.id,property:t}})),u=c=>{var f=Math.round(c.loaded*100/c.total);e.dispatchEvent(new CustomEvent("livewire-upload-progress",{bubbles:!0,detail:{progress:f}}))},d=c=>{c.target.files.length!==0&&(o(),c.target.multiple?i.uploadMultiple(t,c.target.files,s,a,u,l):i.upload(t,c.target.files[0],s,a,u,l))};e.addEventListener("change",d);let p=()=>{e.value=null};e.addEventListener("click",p),e.addEventListener("livewire-upload-cancel",p),n(()=>{e.removeEventListener("change",d),e.removeEventListener("click",p)})}var mr=class{constructor(t){this.component=t,this.uploadBag=new Xe,this.removeBag=new Xe}registerListeners(){this.component.$wire.$on("upload:generatedSignedUrl",({name:t,url:r})=>{this.component,this.handleSignedUrl(t,r)}),this.component.$wire.$on("upload:generatedSignedUrlForS3",({name:t,payload:r})=>{this.component,this.handleS3PreSignedUrl(t,r)}),this.component.$wire.$on("upload:finished",({name:t,tmpFilenames:r})=>this.markUploadFinished(t,r)),this.component.$wire.$on("upload:errored",({name:t})=>this.markUploadErrored(t)),this.component.$wire.$on("upload:removed",({name:t,tmpFilename:r})=>this.removeBag.shift(t).finishCallback(r))}upload(t,r,n,i,o,s){this.setUpload(t,{files:[r],multiple:!1,finishCallback:n,errorCallback:i,progressCallback:o,cancelledCallback:s})}uploadMultiple(t,r,n,i,o,s){this.setUpload(t,{files:Array.from(r),multiple:!0,finishCallback:n,errorCallback:i,progressCallback:o,cancelledCallback:s})}removeUpload(t,r,n){this.removeBag.push(t,{tmpFilename:r,finishCallback:n}),this.component.$wire.call("_removeUpload",t,r)}setUpload(t,r){this.uploadBag.add(t,r),this.uploadBag.get(t).length===1&&this.startUpload(t,r)}handleSignedUrl(t,r){let n=new FormData;Array.from(this.uploadBag.first(t).files).forEach(s=>n.append("files[]",s,s.name));let i={Accept:"application/json"},o=bt();o&&(i["X-CSRF-TOKEN"]=o),this.makeRequest(t,n,"post",r,i,s=>s.paths)}handleS3PreSignedUrl(t,r){let n=this.uploadBag.first(t).files[0],i=r.headers;"Host"in i&&delete i.Host;let o=r.url;this.makeRequest(t,n,"put",o,i,s=>[r.path])}makeRequest(t,r,n,i,o,s){let a=new XMLHttpRequest;a.open(n,i),Object.entries(o).forEach(([l,u])=>{a.setRequestHeader(l,u)}),a.upload.addEventListener("progress",l=>{l.detail={},l.detail.progress=Math.round(l.loaded*100/l.total),this.uploadBag.first(t).progressCallback(l)}),a.addEventListener("load",()=>{if((a.status+"")[0]==="2"){let u=s(a.response&&JSON.parse(a.response));this.component.$wire.call("_finishUpload",t,u,this.uploadBag.first(t).multiple);return}let l=null;a.status===422&&(l=a.response),this.component.$wire.call("_uploadErrored",t,l,this.uploadBag.first(t).multiple)}),this.uploadBag.first(t).request=a,a.send(r)}startUpload(t,r){let n=r.files.map(i=>({name:i.name,size:i.size,type:i.type}));this.component.$wire.call("_startUpload",t,n,r.multiple),this.component}markUploadFinished(t,r){this.component;let n=this.uploadBag.shift(t);n.finishCallback(n.multiple?r:r[0]),this.uploadBag.get(t).length>0&&this.startUpload(t,this.uploadBag.last(t))}markUploadErrored(t){this.component,this.uploadBag.shift(t).errorCallback(),this.uploadBag.get(t).length>0&&this.startUpload(t,this.uploadBag.last(t))}cancelUpload(t,r=null){this.component;let n=this.uploadBag.first(t);n&&(n.request.abort(),this.uploadBag.shift(t).cancelledCallback(),r&&r())}},Xe=class{constructor(){this.bag={}}add(t,r){this.bag[t]||(this.bag[t]=[]),this.bag[t].push(r)}push(t,r){this.add(t,r)}first(t){return this.bag[t]?this.bag[t][0]:null}last(t){return this.bag[t].slice(-1)[0]}get(t){return this.bag[t]}shift(t){return this.bag[t].shift()}call(t,...r){(this.listeners[t]||[]).forEach(n=>{n(...r)})}has(t){return Object.keys(this.listeners).includes(t)}};function ei(e,t,r,n=()=>{},i=()=>{},o=()=>{},s=()=>{}){Ye(e).upload(t,r,n,i,o,s)}function ti(e,t,r,n=()=>{},i=()=>{},o=()=>{},s=()=>{}){Ye(e).uploadMultiple(t,r,n,i,o,s)}function ri(e,t,r,n=()=>{},i=()=>{}){Ye(e).removeUpload(t,r,n,i)}function ni(e,t,r=()=>{}){Ye(e).cancelUpload(t,r)}var yr=!1,xr=!1,xe=[],_r=-1;function Ga(e){Xa(e)}function Xa(e){xe.includes(e)||xe.push(e),Ya()}function bi(e){let t=xe.indexOf(e);t!==-1&&t>_r&&xe.splice(t,1)}function Ya(){!xr&&!yr&&(yr=!0,queueMicrotask(Qa))}function Qa(){yr=!1,xr=!0;for(let e=0;e<xe.length;e++)xe[e](),_r=e;xe.length=0,_r=-1,xr=!1}var De,Ae,$e,wi,Sr=!0;function Za(e){Sr=!1,e(),Sr=!0}function el(e){De=e.reactive,$e=e.release,Ae=t=>e.effect(t,{scheduler:r=>{Sr?Ga(r):r()}}),wi=e.raw}function ii(e){Ae=e}function tl(e){let t=()=>{};return[n=>{let i=Ae(n);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),$e(i))},i},()=>{t()}]}function yi(e,t){let r=!0,n,i=Ae(()=>{let o=e();JSON.stringify(o),r?n=o:queueMicrotask(()=>{t(o,n),n=o}),r=!1});return()=>$e(i)}function rt(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}function ce(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>ce(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)ce(n,t,!1),n=n.nextElementSibling}function Y(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var oi=!1;function rl(){oi&&Y("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),oi=!0,document.body||Y("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),rt(document,"alpine:init"),rt(document,"alpine:initializing"),qr(),ol(t=>ne(t,ce)),Ur(t=>Br(t)),Li((t,r)=>{Vr(t,r).forEach(n=>n())});let e=t=>!Lt(t.parentElement,!0);Array.from(document.querySelectorAll(Si().join(","))).filter(e).forEach(t=>{ne(t)}),rt(document,"alpine:initialized")}var $r=[],xi=[];function _i(){return $r.map(e=>e())}function Si(){return $r.concat(xi).map(e=>e())}function Ei(e){$r.push(e)}function Ai(e){xi.push(e)}function Lt(e,t=!1){return ot(e,r=>{if((t?Si():_i()).some(i=>r.matches(i)))return!0})}function ot(e,t){if(!!e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return ot(e.parentElement,t)}}function nl(e){return _i().some(t=>e.matches(t))}var Ci=[];function il(e){Ci.push(e)}function ne(e,t=ce,r=()=>{}){wl(()=>{t(e,(n,i)=>{if(n._x_inited){n._x_ignore&&i();return}r(n,i),Ci.forEach(o=>o(n,i)),Vr(n,n.attributes).forEach(o=>o()),n._x_ignore?i():n._x_inited=!0})})}function Br(e,t=ce){t(e,r=>{Ri(r),sl(r),delete r._x_inited})}var Ti=[],Oi=[],ki=[];function ol(e){ki.push(e)}function Ur(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Oi.push(t))}function Li(e){Ti.push(e)}function Ni(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function Ri(e,t){!e._x_attributeCleanups||Object.entries(e._x_attributeCleanups).forEach(([r,n])=>{(t===void 0||t.includes(r))&&(n.forEach(i=>i()),delete e._x_attributeCleanups[r])})}function sl(e){if(e._x_cleanups)for(;e._x_cleanups.length;)e._x_cleanups.pop()()}var jr=new MutationObserver(Kr),Hr=!1;function qr(){jr.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Hr=!0}function Pi(){al(),jr.disconnect(),Hr=!1}var Qe=[];function al(){let e=jr.takeRecords();Qe.push(()=>e.length>0&&Kr(e));let t=Qe.length;queueMicrotask(()=>{if(Qe.length===t)for(;Qe.length>0;)Qe.shift()()})}function B(e){if(!Hr)return e();Pi();let t=e();return qr(),t}var Wr=!1,Tt=[];function ll(){Wr=!0}function ul(){Wr=!1,Kr(Tt),Tt=[]}function Kr(e){if(Wr){Tt=Tt.concat(e);return}let t=new Set,r=new Set,n=new Map,i=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&(e[o].type==="childList"&&(e[o].addedNodes.forEach(s=>s.nodeType===1&&t.add(s)),e[o].removedNodes.forEach(s=>s.nodeType===1&&r.add(s))),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,l=e[o].oldValue,u=()=>{n.has(s)||n.set(s,[]),n.get(s).push({name:a,value:s.getAttribute(a)})},d=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&l===null?u():s.hasAttribute(a)?(d(),u()):d()}i.forEach((o,s)=>{Ri(s,o)}),n.forEach((o,s)=>{Ti.forEach(a=>a(s,o))});for(let o of r)t.has(o)||(Oi.forEach(s=>s(o)),Br(o));t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)!o.isConnected||(delete o._x_ignoreSelf,delete o._x_ignore,ki.forEach(s=>s(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,r=null,n=null,i=null}function Ii(e){return at(Me(e))}function st(e,t,r){return e._x_dataStack=[t,...Me(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(n=>n!==t)}}function Me(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?Me(e.host):e.parentNode?Me(e.parentNode):[]}function at(e){return new Proxy({objects:e},cl)}var cl={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(r=>Reflect.has(r,t))},get({objects:e},t,r){return t=="toJSON"?fl:Reflect.get(e.find(n=>Reflect.has(n,t))||{},t,r)},set({objects:e},t,r,n){let i=e.find(s=>Reflect.has(s,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(i,t);return o?.set&&o?.get?Reflect.set(i,t,r,n):Reflect.set(i,t,r)}};function fl(){return Reflect.ownKeys(this).reduce((t,r)=>(t[r]=Reflect.get(this,r),t),{})}function Mi(e){let t=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,r=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0||typeof s=="object"&&s!==null&&s.__v_skip)return;let l=i===""?o:`${i}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?n[o]=s.initialize(e,l,o):t(s)&&s!==n&&!(s instanceof Element)&&r(s,l)})};return r(e)}function Fi(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(n,i,o){return e(this.initialValue,()=>dl(n,i),s=>Er(n,i,s),i,o)}};return t(r),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let i=r.initialize.bind(r);r.initialize=(o,s,a)=>{let l=n.initialize(o,s,a);return r.initialValue=l,i(o,s,a)}}else r.initialValue=n;return r}}function dl(e,t){return t.split(".").reduce((r,n)=>r[n],e)}function Er(e,t,r){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=r;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Er(e[t[0]],t.slice(1),r)}}var Di={};function Z(e,t){Di[e]=t}function Ar(e,t){return Object.entries(Di).forEach(([r,n])=>{let i=null;function o(){if(i)return i;{let[s,a]=qi(t);return i={interceptor:Fi,...s},Ur(t,a),i}}Object.defineProperty(e,`$${r}`,{get(){return n(t,o())},enumerable:!1})}),e}function pl(e,t,r,...n){try{return r(...n)}catch(i){it(i,e,t)}}function it(e,t,r=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:r}),console.warn(`Alpine Expression Error: ${e.message}
+(()=>{var Ua=Object.create;var zn=Object.defineProperty;var Ha=Object.getOwnPropertyDescriptor;var qa=Object.getOwnPropertyNames;var Wa=Object.getPrototypeOf,Ka=Object.prototype.hasOwnProperty;var za=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Va=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qa(t))!Ka.call(e,i)&&i!==r&&zn(e,i,{get:()=>t[i],enumerable:!(n=Ha(t,i))||n.enumerable});return e};var Ja=(e,t,r)=>(r=e!=null?Ua(Wa(e)):{},Va(t||!e||!e.__esModule?zn(r,"default",{value:e,enumerable:!0}):r,e));var Ys=za((Rn,Xs)=>{(function(e,t){typeof define=="function"&&define.amd?define(t):typeof Rn=="object"?Xs.exports=t():e.NProgress=t()})(Rn,function(){var e={};e.version="0.2.0";var t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};e.configure=function(c){var f,m;for(f in c)m=c[f],m!==void 0&&c.hasOwnProperty(f)&&(t[f]=m);return this},e.status=null,e.set=function(c){var f=e.isStarted();c=r(c,t.minimum,1),e.status=c===1?null:c;var m=e.render(!f),v=m.querySelector(t.barSelector),g=t.speed,x=t.easing;return m.offsetWidth,o(function(b){t.positionUsing===""&&(t.positionUsing=e.getPositioningCSS()),s(v,i(c,g,x)),c===1?(s(m,{transition:"none",opacity:1}),m.offsetWidth,setTimeout(function(){s(m,{transition:"all "+g+"ms linear",opacity:0}),setTimeout(function(){e.remove(),b()},g)},g)):setTimeout(b,g)}),this},e.isStarted=function(){return typeof e.status=="number"},e.start=function(){e.status||e.set(0);var c=function(){setTimeout(function(){!e.status||(e.trickle(),c())},t.trickleSpeed)};return t.trickle&&c(),this},e.done=function(c){return!c&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(c){var f=e.status;return f?(typeof c!="number"&&(c=(1-f)*r(Math.random()*f,.1,.95)),f=r(f+c,0,.994),e.set(f)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var c=0,f=0;e.promise=function(m){return!m||m.state()==="resolved"?this:(f===0&&e.start(),c++,f++,m.always(function(){f--,f===0?(c=0,e.done()):e.set((c-f)/c)}),this)}}(),e.render=function(c){if(e.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var f=document.createElement("div");f.id="nprogress",f.innerHTML=t.template;var m=f.querySelector(t.barSelector),v=c?"-100":n(e.status||0),g=document.querySelector(t.parent),x;return s(m,{transition:"all 0 linear",transform:"translate3d("+v+"%,0,0)"}),t.showSpinner||(x=f.querySelector(t.spinnerSelector),x&&p(x)),g!=document.body&&l(g,"nprogress-custom-parent"),g.appendChild(f),f},e.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var c=document.getElementById("nprogress");c&&p(c)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var c=document.body.style,f="WebkitTransform"in c?"Webkit":"MozTransform"in c?"Moz":"msTransform"in c?"ms":"OTransform"in c?"O":"";return f+"Perspective"in c?"translate3d":f+"Transform"in c?"translate":"margin"};function r(c,f,m){return c<f?f:c>m?m:c}function n(c){return(-1+c)*100}function i(c,f,m){var v;return t.positionUsing==="translate3d"?v={transform:"translate3d("+n(c)+"%,0,0)"}:t.positionUsing==="translate"?v={transform:"translate("+n(c)+"%,0)"}:v={"margin-left":n(c)+"%"},v.transition="all "+f+"ms "+m,v}var o=function(){var c=[];function f(){var m=c.shift();m&&m(f)}return function(m){c.push(m),c.length==1&&f()}}(),s=function(){var c=["Webkit","O","Moz","ms"],f={};function m(b){return b.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(_,O){return O.toUpperCase()})}function v(b){var _=document.body.style;if(b in _)return b;for(var O=c.length,T=b.charAt(0).toUpperCase()+b.slice(1),w;O--;)if(w=c[O]+T,w in _)return w;return b}function g(b){return b=m(b),f[b]||(f[b]=v(b))}function x(b,_,O){_=g(_),b.style[_]=O}return function(b,_){var O=arguments,T,w;if(O.length==2)for(T in _)w=_[T],w!==void 0&&_.hasOwnProperty(T)&&x(b,T,w);else x(b,O[1],O[2])}}();function a(c,f){var m=typeof c=="string"?c:d(c);return m.indexOf(" "+f+" ")>=0}function l(c,f){var m=d(c),v=m+f;a(m,f)||(c.className=v.substring(1))}function u(c,f){var m=d(c),v;!a(c,f)||(v=m.replace(" "+f+" "," "),c.className=v.substring(1,v.length-1))}function d(c){return(" "+(c.className||"")+" ").replace(/\s+/gi," ")}function p(c){c&&c.parentNode&&c.parentNode.removeChild(c)}return e})});var Ie=class{constructor(){this.arrays=new WeakMap}add(t,r){this.arrays.has(t)||this.arrays.set(t,[]),this.arrays.get(t).push(r)}get(t){return this.arrays.has(t)?this.arrays.get(t):[]}each(t,r){return this.get(t).forEach(r)}};function gt(e,t,r={},n=!0){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:n,composed:!0,cancelable:!0}))}function vt(e){return typeof e=="object"&&e!==null}function Vn(e){return vt(e)&&!dr(e)}function dr(e){return Array.isArray(e)}function pr(e){return typeof e=="function"}function Jn(e){return typeof e!="object"||e===null}function le(e){return JSON.parse(JSON.stringify(e))}function W(e,t){return t===""?e:t.split(".").reduce((r,n)=>{if(r!==void 0)return r[n]},e)}function ve(e,t,r){let n=t.split(".");if(n.length===1)return e[t]=r;let i=n.shift(),o=n.join(".");e[i]===void 0&&(e[i]={}),ve(e[i],o,r)}function Ge(e,t,r={},n=""){if(e===t)return r;if(typeof e!=typeof t||Vn(e)&&dr(t)||dr(e)&&Vn(t)||Jn(e)||Jn(t))return r[n]=t,r;let i=Object.keys(e);return Object.entries(t).forEach(([o,s])=>{r={...r,...Ge(e[o],t[o],r,n===""?o:`${n}.${o}`)},i=i.filter(a=>a!==o)}),i.forEach(o=>{r[`${n}.${o}`]="__rm__"}),r}function be(e){let t=Gn(e)?e[0]:e,r=Gn(e)?e[1]:void 0;return vt(t)&&Object.entries(t).forEach(([n,i])=>{t[n]=be(i)}),t}function Gn(e){return Array.isArray(e)&&e.length===2&&typeof e[1]=="object"&&Object.keys(e[1]).includes("s")}function bt(){if(document.querySelector('meta[name="csrf-token"]'))return document.querySelector('meta[name="csrf-token"]').getAttribute("content");if(document.querySelector("[data-csrf]"))return document.querySelector("[data-csrf]").getAttribute("data-csrf");if(window.livewireScriptConfig.csrf??!1)return window.livewireScriptConfig.csrf;throw"Livewire: No CSRF token detected"}var Pe;function Xn(){if(Pe)return Pe;if(window.livewireScriptConfig&&(window.livewireScriptConfig.nonce??!1))return Pe=window.livewireScriptConfig.nonce,Pe;let e=document.querySelector("style[data-livewire-style][nonce]");return e?(Pe=e.nonce,Pe):null}function Yn(){return document.querySelector("[data-update-uri]")?.getAttribute("data-update-uri")??window.livewireScriptConfig.uri??null}function wt(e){return!!e.match(/<script>Sfdump\(".+"\)<\/script>/)}function Qn(e){let t=e.match(/.*<script>Sfdump\(".+"\)<\/script>/s);return[t,e.replace(t,"")]}var hr=new WeakMap;function Ye(e){if(!hr.has(e)){let t=new mr(e);hr.set(e,t),t.registerListeners()}return hr.get(e)}function Zn(e,t,r,n){let i=Ye(r),o=()=>e.dispatchEvent(new CustomEvent("livewire-upload-start",{bubbles:!0,detail:{id:r.id,property:t}})),s=()=>e.dispatchEvent(new CustomEvent("livewire-upload-finish",{bubbles:!0,detail:{id:r.id,property:t}})),a=()=>e.dispatchEvent(new CustomEvent("livewire-upload-error",{bubbles:!0,detail:{id:r.id,property:t}})),l=()=>e.dispatchEvent(new CustomEvent("livewire-upload-cancel",{bubbles:!0,detail:{id:r.id,property:t}})),u=c=>{var f=Math.round(c.loaded*100/c.total);e.dispatchEvent(new CustomEvent("livewire-upload-progress",{bubbles:!0,detail:{progress:f}}))},d=c=>{c.target.files.length!==0&&(o(),c.target.multiple?i.uploadMultiple(t,c.target.files,s,a,u,l):i.upload(t,c.target.files[0],s,a,u,l))};e.addEventListener("change",d);let p=()=>{e.value=null};e.addEventListener("click",p),e.addEventListener("livewire-upload-cancel",p),n(()=>{e.removeEventListener("change",d),e.removeEventListener("click",p)})}var mr=class{constructor(t){this.component=t,this.uploadBag=new Xe,this.removeBag=new Xe}registerListeners(){this.component.$wire.$on("upload:generatedSignedUrl",({name:t,url:r})=>{this.component,this.handleSignedUrl(t,r)}),this.component.$wire.$on("upload:generatedSignedUrlForS3",({name:t,payload:r})=>{this.component,this.handleS3PreSignedUrl(t,r)}),this.component.$wire.$on("upload:finished",({name:t,tmpFilenames:r})=>this.markUploadFinished(t,r)),this.component.$wire.$on("upload:errored",({name:t})=>this.markUploadErrored(t)),this.component.$wire.$on("upload:removed",({name:t,tmpFilename:r})=>this.removeBag.shift(t).finishCallback(r))}upload(t,r,n,i,o,s){this.setUpload(t,{files:[r],multiple:!1,finishCallback:n,errorCallback:i,progressCallback:o,cancelledCallback:s})}uploadMultiple(t,r,n,i,o,s){this.setUpload(t,{files:Array.from(r),multiple:!0,finishCallback:n,errorCallback:i,progressCallback:o,cancelledCallback:s})}removeUpload(t,r,n){this.removeBag.push(t,{tmpFilename:r,finishCallback:n}),this.component.$wire.call("_removeUpload",t,r)}setUpload(t,r){this.uploadBag.add(t,r),this.uploadBag.get(t).length===1&&this.startUpload(t,r)}handleSignedUrl(t,r){let n=new FormData;Array.from(this.uploadBag.first(t).files).forEach(s=>n.append("files[]",s,s.name));let i={Accept:"application/json"},o=bt();o&&(i["X-CSRF-TOKEN"]=o),this.makeRequest(t,n,"post",r,i,s=>s.paths)}handleS3PreSignedUrl(t,r){let n=this.uploadBag.first(t).files[0],i=r.headers;"Host"in i&&delete i.Host;let o=r.url;this.makeRequest(t,n,"put",o,i,s=>[r.path])}makeRequest(t,r,n,i,o,s){let a=new XMLHttpRequest;a.open(n,i),Object.entries(o).forEach(([l,u])=>{a.setRequestHeader(l,u)}),a.upload.addEventListener("progress",l=>{l.detail={},l.detail.progress=Math.round(l.loaded*100/l.total),this.uploadBag.first(t).progressCallback(l)}),a.addEventListener("load",()=>{if((a.status+"")[0]==="2"){let u=s(a.response&&JSON.parse(a.response));this.component.$wire.call("_finishUpload",t,u,this.uploadBag.first(t).multiple);return}let l=null;a.status===422&&(l=a.response),this.component.$wire.call("_uploadErrored",t,l,this.uploadBag.first(t).multiple)}),this.uploadBag.first(t).request=a,a.send(r)}startUpload(t,r){let n=r.files.map(i=>({name:i.name,size:i.size,type:i.type}));this.component.$wire.call("_startUpload",t,n,r.multiple),this.component}markUploadFinished(t,r){this.component;let n=this.uploadBag.shift(t);n.finishCallback(n.multiple?r:r[0]),this.uploadBag.get(t).length>0&&this.startUpload(t,this.uploadBag.last(t))}markUploadErrored(t){this.component,this.uploadBag.shift(t).errorCallback(),this.uploadBag.get(t).length>0&&this.startUpload(t,this.uploadBag.last(t))}cancelUpload(t,r=null){this.component;let n=this.uploadBag.first(t);n&&(n.request.abort(),this.uploadBag.shift(t).cancelledCallback(),r&&r())}},Xe=class{constructor(){this.bag={}}add(t,r){this.bag[t]||(this.bag[t]=[]),this.bag[t].push(r)}push(t,r){this.add(t,r)}first(t){return this.bag[t]?this.bag[t][0]:null}last(t){return this.bag[t].slice(-1)[0]}get(t){return this.bag[t]}shift(t){return this.bag[t].shift()}call(t,...r){(this.listeners[t]||[]).forEach(n=>{n(...r)})}has(t){return Object.keys(this.listeners).includes(t)}};function ei(e,t,r,n=()=>{},i=()=>{},o=()=>{},s=()=>{}){Ye(e).upload(t,r,n,i,o,s)}function ti(e,t,r,n=()=>{},i=()=>{},o=()=>{},s=()=>{}){Ye(e).uploadMultiple(t,r,n,i,o,s)}function ri(e,t,r,n=()=>{},i=()=>{}){Ye(e).removeUpload(t,r,n,i)}function ni(e,t,r=()=>{}){Ye(e).cancelUpload(t,r)}var yr=!1,xr=!1,xe=[],_r=-1;function Ga(e){Xa(e)}function Xa(e){xe.includes(e)||xe.push(e),Ya()}function bi(e){let t=xe.indexOf(e);t!==-1&&t>_r&&xe.splice(t,1)}function Ya(){!xr&&!yr&&(yr=!0,queueMicrotask(Qa))}function Qa(){yr=!1,xr=!0;for(let e=0;e<xe.length;e++)xe[e](),_r=e;xe.length=0,_r=-1,xr=!1}var De,Ae,$e,wi,Sr=!0;function Za(e){Sr=!1,e(),Sr=!0}function el(e){De=e.reactive,$e=e.release,Ae=t=>e.effect(t,{scheduler:r=>{Sr?Ga(r):r()}}),wi=e.raw}function ii(e){Ae=e}function tl(e){let t=()=>{};return[n=>{let i=Ae(n);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),$e(i))},i},()=>{t()}]}function yi(e,t){let r=!0,n,i=Ae(()=>{let o=e();JSON.stringify(o),r?n=o:queueMicrotask(()=>{t(o,n),n=o}),r=!1});return()=>$e(i)}function rt(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}function ce(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>ce(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)ce(n,t,!1),n=n.nextElementSibling}function Y(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var oi=!1;function rl(){oi&&Y("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),oi=!0,document.body||Y("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),rt(document,"alpine:init"),rt(document,"alpine:initializing"),qr(),ol(t=>ne(t,ce)),jr(t=>Br(t)),Li((t,r)=>{Vr(t,r).forEach(n=>n())});let e=t=>!Lt(t.parentElement,!0);Array.from(document.querySelectorAll(Si().join(","))).filter(e).forEach(t=>{ne(t)}),rt(document,"alpine:initialized")}var $r=[],xi=[];function _i(){return $r.map(e=>e())}function Si(){return $r.concat(xi).map(e=>e())}function Ei(e){$r.push(e)}function Ai(e){xi.push(e)}function Lt(e,t=!1){return ot(e,r=>{if((t?Si():_i()).some(i=>r.matches(i)))return!0})}function ot(e,t){if(!!e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return ot(e.parentElement,t)}}function nl(e){return _i().some(t=>e.matches(t))}var Ci=[];function il(e){Ci.push(e)}function ne(e,t=ce,r=()=>{}){wl(()=>{t(e,(n,i)=>{r(n,i),Ci.forEach(o=>o(n,i)),Vr(n,n.attributes).forEach(o=>o()),n._x_ignore&&i()})})}function Br(e,t=ce){t(e,r=>{Ri(r),sl(r)})}var Ti=[],Oi=[],ki=[];function ol(e){ki.push(e)}function jr(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Oi.push(t))}function Li(e){Ti.push(e)}function Ni(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function Ri(e,t){!e._x_attributeCleanups||Object.entries(e._x_attributeCleanups).forEach(([r,n])=>{(t===void 0||t.includes(r))&&(n.forEach(i=>i()),delete e._x_attributeCleanups[r])})}function sl(e){if(e._x_cleanups)for(;e._x_cleanups.length;)e._x_cleanups.pop()()}var Ur=new MutationObserver(Kr),Hr=!1;function qr(){Ur.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Hr=!0}function Pi(){al(),Ur.disconnect(),Hr=!1}var Qe=[];function al(){let e=Ur.takeRecords();Qe.push(()=>e.length>0&&Kr(e));let t=Qe.length;queueMicrotask(()=>{if(Qe.length===t)for(;Qe.length>0;)Qe.shift()()})}function B(e){if(!Hr)return e();Pi();let t=e();return qr(),t}var Wr=!1,Tt=[];function ll(){Wr=!0}function ul(){Wr=!1,Kr(Tt),Tt=[]}function Kr(e){if(Wr){Tt=Tt.concat(e);return}let t=new Set,r=new Set,n=new Map,i=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&(e[o].type==="childList"&&(e[o].addedNodes.forEach(s=>s.nodeType===1&&t.add(s)),e[o].removedNodes.forEach(s=>s.nodeType===1&&r.add(s))),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,l=e[o].oldValue,u=()=>{n.has(s)||n.set(s,[]),n.get(s).push({name:a,value:s.getAttribute(a)})},d=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&l===null?u():s.hasAttribute(a)?(d(),u()):d()}i.forEach((o,s)=>{Ri(s,o)}),n.forEach((o,s)=>{Ti.forEach(a=>a(s,o))});for(let o of r)t.has(o)||(Oi.forEach(s=>s(o)),Br(o));t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)r.has(o)||!o.isConnected||(delete o._x_ignoreSelf,delete o._x_ignore,ki.forEach(s=>s(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,r=null,n=null,i=null}function Ii(e){return at(Me(e))}function st(e,t,r){return e._x_dataStack=[t,...Me(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(n=>n!==t)}}function Me(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?Me(e.host):e.parentNode?Me(e.parentNode):[]}function at(e){return new Proxy({objects:e},cl)}var cl={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(r=>Object.prototype.hasOwnProperty.call(r,t)||Reflect.has(r,t))},get({objects:e},t,r){return t=="toJSON"?fl:Reflect.get(e.find(n=>Reflect.has(n,t))||{},t,r)},set({objects:e},t,r,n){let i=e.find(s=>Object.prototype.hasOwnProperty.call(s,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(i,t);return o?.set&&o?.get?Reflect.set(i,t,r,n):Reflect.set(i,t,r)}};function fl(){return Reflect.ownKeys(this).reduce((t,r)=>(t[r]=Reflect.get(this,r),t),{})}function Mi(e){let t=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,r=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0||typeof s=="object"&&s!==null&&s.__v_skip)return;let l=i===""?o:`${i}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?n[o]=s.initialize(e,l,o):t(s)&&s!==n&&!(s instanceof Element)&&r(s,l)})};return r(e)}function Fi(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(n,i,o){return e(this.initialValue,()=>dl(n,i),s=>Er(n,i,s),i,o)}};return t(r),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let i=r.initialize.bind(r);r.initialize=(o,s,a)=>{let l=n.initialize(o,s,a);return r.initialValue=l,i(o,s,a)}}else r.initialValue=n;return r}}function dl(e,t){return t.split(".").reduce((r,n)=>r[n],e)}function Er(e,t,r){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=r;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Er(e[t[0]],t.slice(1),r)}}var Di={};function Z(e,t){Di[e]=t}function Ar(e,t){return Object.entries(Di).forEach(([r,n])=>{let i=null;function o(){if(i)return i;{let[s,a]=qi(t);return i={interceptor:Fi,...s},jr(t,a),i}}Object.defineProperty(e,`$${r}`,{get(){return n(t,o())},enumerable:!1})}),e}function pl(e,t,r,...n){try{return r(...n)}catch(i){it(i,e,t)}}function it(e,t,r=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:r}),console.warn(`Alpine Expression Error: ${e.message}
 
 ${r?'Expression: "'+r+`"
 
-`:""}`,t),setTimeout(()=>{throw e},0)}var At=!0;function $i(e){let t=At;At=!1;let r=e();return At=t,r}function _e(e,t,r={}){let n;return j(e,t)(i=>n=i,r),n}function j(...e){return Bi(...e)}var Bi=Ui;function hl(e){Bi=e}function Ui(e,t){let r={};Ar(r,e);let n=[r,...Me(e)],i=typeof t=="function"?ml(n,t):vl(n,t,e);return pl.bind(null,e,t,i)}function ml(e,t){return(r=()=>{},{scope:n={},params:i=[]}={})=>{let o=t.apply(at([n,...e]),i);Ot(r,o)}}var gr={};function gl(e,t){if(gr[e])return gr[e];let r=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let s=new r(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return it(s,t,e),Promise.resolve()}})();return gr[e]=o,o}function vl(e,t,r){let n=gl(t,r);return(i=()=>{},{scope:o={},params:s=[]}={})=>{n.result=void 0,n.finished=!1;let a=at([o,...e]);if(typeof n=="function"){let l=n(n,a).catch(u=>it(u,r,t));n.finished?(Ot(i,n.result,a,s,r),n.result=void 0):l.then(u=>{Ot(i,u,a,s,r)}).catch(u=>it(u,r,t)).finally(()=>n.result=void 0)}}}function Ot(e,t,r,n,i){if(At&&typeof t=="function"){let o=t.apply(r,n);o instanceof Promise?o.then(s=>Ot(e,s,r,n)).catch(s=>it(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var zr="x-";function Be(e=""){return zr+e}function bl(e){zr=e}var Cr={};function F(e,t){return Cr[e]=t,{before(r){if(!Cr[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${e}\` will use the default order of execution`);return}let n=ye.indexOf(r);ye.splice(n>=0?n:ye.indexOf("DEFAULT"),0,e)}}}function Vr(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),s=ji(o);o=o.map(a=>s.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(o)}let n={};return t.map(zi((o,s)=>n[o]=s)).filter(Ji).map(xl(n,r)).sort(_l).map(o=>yl(e,o))}function ji(e){return Array.from(e).map(zi()).filter(t=>!Ji(t))}var Tr=!1,tt=new Map,Hi=Symbol();function wl(e){Tr=!0;let t=Symbol();Hi=t,tt.set(t,[]);let r=()=>{for(;tt.get(t).length;)tt.get(t).shift()();tt.delete(t)},n=()=>{Tr=!1,r()};e(r),n()}function qi(e){let t=[],r=a=>t.push(a),[n,i]=tl(e);return t.push(i),[{Alpine:lt,effect:n,cleanup:r,evaluateLater:j.bind(j,e),evaluate:_e.bind(_e,e)},()=>t.forEach(a=>a())]}function yl(e,t){let r=()=>{},n=Cr[t.type]||r,[i,o]=qi(e);Ni(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,i),n=n.bind(n,e,t,i),Tr?tt.get(Hi).push(n):n())};return s.runCleanups=o,s}var Wi=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),Ki=e=>e;function zi(e=()=>{}){return({name:t,value:r})=>{let{name:n,value:i}=Vi.reduce((o,s)=>s(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var Vi=[];function Jr(e){Vi.push(e)}function Ji({name:e}){return Gi().test(e)}var Gi=()=>new RegExp(`^${zr}([^:^.]+)\\b`);function xl(e,t){return({name:r,value:n})=>{let i=r.match(Gi()),o=r.match(/:([a-zA-Z0-9\-_:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(l=>l.replace(".","")),expression:n,original:a}}}var Or="DEFAULT",ye=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Or,"teleport"];function _l(e,t){let r=ye.indexOf(e.type)===-1?Or:e.type,n=ye.indexOf(t.type)===-1?Or:t.type;return ye.indexOf(r)-ye.indexOf(n)}var kr=[],Gr=!1;function Xr(e=()=>{}){return queueMicrotask(()=>{Gr||setTimeout(()=>{Lr()})}),new Promise(t=>{kr.push(()=>{e(),t()})})}function Lr(){for(Gr=!1;kr.length;)kr.shift()()}function Sl(){Gr=!0}function Yr(e,t){return Array.isArray(t)?si(e,t.join(" ")):typeof t=="object"&&t!==null?El(e,t):typeof t=="function"?Yr(e,t()):si(e,t)}function si(e,t){let r=o=>o.split(" ").filter(Boolean),n=o=>o.split(" ").filter(s=>!e.classList.contains(s)).filter(Boolean),i=o=>(e.classList.add(...o),()=>{e.classList.remove(...o)});return t=t===!0?t="":t||"",i(n(t))}function El(e,t){let r=a=>a.split(" ").filter(Boolean),n=Object.entries(t).flatMap(([a,l])=>l?r(a):!1).filter(Boolean),i=Object.entries(t).flatMap(([a,l])=>l?!1:r(a)).filter(Boolean),o=[],s=[];return i.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),n.forEach(a=>{e.classList.contains(a)||(e.classList.add(a),o.push(a))}),()=>{s.forEach(a=>e.classList.add(a)),o.forEach(a=>e.classList.remove(a))}}function Nt(e,t){return typeof t=="object"&&t!==null?Al(e,t):Cl(e,t)}function Al(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{r[n]=e.style[n],n.startsWith("--")||(n=Tl(n)),e.style.setProperty(n,i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{Nt(e,r)}}function Cl(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r||"")}}function Tl(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Nr(e,t=()=>{}){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}F("transition",(e,{value:t,modifiers:r,expression:n},{evaluate:i})=>{typeof n=="function"&&(n=i(n)),n!==!1&&(!n||typeof n=="boolean"?kl(e,r,t):Ol(e,n,t))});function Ol(e,t,r){Xi(e,Yr,""),{enter:i=>{e._x_transition.enter.during=i},"enter-start":i=>{e._x_transition.enter.start=i},"enter-end":i=>{e._x_transition.enter.end=i},leave:i=>{e._x_transition.leave.during=i},"leave-start":i=>{e._x_transition.leave.start=i},"leave-end":i=>{e._x_transition.leave.end=i}}[r](t)}function kl(e,t,r){Xi(e,Nt);let n=!t.includes("in")&&!t.includes("out")&&!r,i=n||t.includes("in")||["enter"].includes(r),o=n||t.includes("out")||["leave"].includes(r);t.includes("in")&&!n&&(t=t.filter((x,b)=>b<t.indexOf("out"))),t.includes("out")&&!n&&(t=t.filter((x,b)=>b>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),l=s||t.includes("scale"),u=a?0:1,d=l?Ze(t,"scale",95)/100:1,p=Ze(t,"delay",0)/1e3,c=Ze(t,"origin","center"),f="opacity, transform",m=Ze(t,"duration",150)/1e3,v=Ze(t,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:c,transitionDelay:`${p}s`,transitionProperty:f,transitionDuration:`${m}s`,transitionTimingFunction:g},e._x_transition.enter.start={opacity:u,transform:`scale(${d})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:c,transitionDelay:`${p}s`,transitionProperty:f,transitionDuration:`${v}s`,transitionTimingFunction:g},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:u,transform:`scale(${d})`})}function Xi(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},i=()=>{}){Rr(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=()=>{},i=()=>{}){Rr(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,n){let i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,o=()=>i(r);if(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(r):o():e._x_transition?e._x_transition.in(r):o();return}e._x_hidePromise=e._x_transition?new Promise((s,a)=>{e._x_transition.out(()=>{},()=>s(n)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let s=Yi(e);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(e)):i(()=>{let a=l=>{let u=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(a)]).then(([d])=>d());return delete l._x_hidePromise,delete l._x_hideChildren,u};a(e).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function Yi(e){let t=e.parentNode;if(!!t)return t._x_hidePromise?t:Yi(t)}function Rr(e,t,{during:r,start:n,end:i}={},o=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(n).length===0&&Object.keys(i).length===0){o(),s();return}let a,l,u;Ll(e,{start(){a=t(e,n)},during(){l=t(e,r)},before:o,end(){a(),u=t(e,i)},after:s,cleanup(){l(),u()}})}function Ll(e,t){let r,n,i,o=Nr(()=>{B(()=>{r=!0,n||t.before(),i||(t.end(),Lr()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:Nr(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},B(()=>{t.start(),t.during()}),Sl(),requestAnimationFrame(()=>{if(r)return;let s=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),B(()=>{t.before()}),n=!0,requestAnimationFrame(()=>{r||(B(()=>{t.end()}),Lr(),setTimeout(e._x_transitioning.finish,s+a),i=!0)})})}function Ze(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n||t==="scale"&&isNaN(n))return r;if(t==="duration"||t==="delay"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[n,e[e.indexOf(t)+2]].join(" "):n}var fe=!1;function Ce(e,t=()=>{}){return(...r)=>fe?t(...r):e(...r)}function Nl(e){return(...t)=>fe&&e(...t)}var Qi=[];function Rt(e){Qi.push(e)}function Rl(e,t){Qi.forEach(r=>r(e,t)),fe=!0,Zi(()=>{ne(t,(r,n)=>{n(r,()=>{})})}),fe=!1}var Pr=!1;function Pl(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),fe=!0,Pr=!0,Zi(()=>{Il(t)}),fe=!1,Pr=!1}function Il(e){let t=!1;ne(e,(n,i)=>{ce(n,(o,s)=>{if(t&&nl(o))return s();t=!0,i(o,s)})})}function Zi(e){let t=Ae;ii((r,n)=>{let i=t(r);return $e(i),()=>{}}),e(),ii(t)}function eo(e,t,r,n=[]){switch(e._x_bindings||(e._x_bindings=De({})),e._x_bindings[t]=r,t=n.includes("camel")?Hl(t):t,t){case"value":Ml(e,r);break;case"style":Dl(e,r);break;case"class":Fl(e,r);break;case"selected":case"checked":$l(e,t,r);break;default:to(e,t,r);break}}function Ml(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=Ct(e.value)===t:e.checked=ai(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(r=>ai(r,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")jl(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function Fl(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Yr(e,t)}function Dl(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Nt(e,t)}function $l(e,t,r){to(e,t,r),Ul(e,t,r)}function to(e,t,r){[null,void 0,!1].includes(r)&&ql(t)?e.removeAttribute(t):(ro(t)&&(r=t),Bl(e,t,r))}function Bl(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}function Ul(e,t,r){e[t]!==r&&(e[t]=r)}function jl(e,t){let r=[].concat(t).map(n=>n+"");Array.from(e.options).forEach(n=>{n.selected=r.includes(n.value)})}function Hl(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function ai(e,t){return e==t}function Ct(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?Boolean(e):null}function ro(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function ql(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function Wl(e,t,r){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:no(e,t,r)}function Kl(e,t,r,n=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let i=e._x_inlineBindings[t];return i.extract=n,$i(()=>_e(e,i.expression))}return no(e,t,r)}function no(e,t,r){let n=e.getAttribute(t);return n===null?typeof r=="function"?r():r:n===""?!0:ro(t)?!![t,"true"].includes(n):n}function io(e,t){var r;return function(){var n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}function oo(e,t){let r;return function(){let n=this,i=arguments;r||(e.apply(n,i),r=!0,setTimeout(()=>r=!1,t))}}function so({get:e,set:t},{get:r,set:n}){let i=!0,o,s,a=Ae(()=>{let l=e(),u=r();if(i)n(vr(l)),i=!1;else{let d=JSON.stringify(l),p=JSON.stringify(u);d!==o?n(vr(l)):d!==p&&t(vr(u))}o=JSON.stringify(e()),s=JSON.stringify(r())});return()=>{$e(a)}}function vr(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function zl(e){(Array.isArray(e)?e:[e]).forEach(r=>r(lt))}var we={},li=!1;function Vl(e,t){if(li||(we=De(we),li=!0),t===void 0)return we[e];we[e]=t,typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&we[e].init(),Mi(we[e])}function Jl(){return we}var ao={};function Gl(e,t){let r=typeof t!="function"?()=>t:t;return e instanceof Element?lo(e,r()):(ao[e]=r,()=>{})}function Xl(e){return Object.entries(ao).forEach(([t,r])=>{Object.defineProperty(e,t,{get(){return(...n)=>r(...n)}})}),e}function lo(e,t,r){let n=[];for(;n.length;)n.pop()();let i=Object.entries(t).map(([s,a])=>({name:s,value:a})),o=ji(i);return i=i.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),Vr(e,i,r).map(s=>{n.push(s.runCleanups),s()}),()=>{for(;n.length;)n.pop()()}}var uo={};function Yl(e,t){uo[e]=t}function Ql(e,t){return Object.entries(uo).forEach(([r,n])=>{Object.defineProperty(e,r,{get(){return(...i)=>n.bind(t)(...i)},enumerable:!1})}),e}var Zl={get reactive(){return De},get release(){return $e},get effect(){return Ae},get raw(){return wi},version:"3.13.6",flushAndStopDeferringMutations:ul,dontAutoEvaluateFunctions:$i,disableEffectScheduling:Za,startObservingMutations:qr,stopObservingMutations:Pi,setReactivityEngine:el,onAttributeRemoved:Ni,onAttributesAdded:Li,closestDataStack:Me,skipDuringClone:Ce,onlyDuringClone:Nl,addRootSelector:Ei,addInitSelector:Ai,interceptClone:Rt,addScopeToNode:st,deferMutations:ll,mapAttributes:Jr,evaluateLater:j,interceptInit:il,setEvaluator:hl,mergeProxies:at,extractProp:Kl,findClosest:ot,onElRemoved:Ur,closestRoot:Lt,destroyTree:Br,interceptor:Fi,transition:Rr,setStyles:Nt,mutateDom:B,directive:F,entangle:so,throttle:oo,debounce:io,evaluate:_e,initTree:ne,nextTick:Xr,prefixed:Be,prefix:bl,plugin:zl,magic:Z,store:Vl,start:rl,clone:Pl,cloneNode:Rl,bound:Wl,$data:Ii,watch:yi,walk:ce,data:Yl,bind:Gl},lt=Zl;function co(e,t){let r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}var eu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ad=co(eu+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),tu=Object.freeze({}),Cd=Object.freeze([]),ru=Object.prototype.hasOwnProperty,Pt=(e,t)=>ru.call(e,t),Se=Array.isArray,nt=e=>fo(e)==="[object Map]",nu=e=>typeof e=="string",Qr=e=>typeof e=="symbol",It=e=>e!==null&&typeof e=="object",iu=Object.prototype.toString,fo=e=>iu.call(e),po=e=>fo(e).slice(8,-1),Zr=e=>nu(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mt=e=>{let t=Object.create(null);return r=>t[r]||(t[r]=e(r))},ou=/-(\w)/g,Td=Mt(e=>e.replace(ou,(t,r)=>r?r.toUpperCase():"")),su=/\B([A-Z])/g,Od=Mt(e=>e.replace(su,"-$1").toLowerCase()),ho=Mt(e=>e.charAt(0).toUpperCase()+e.slice(1)),kd=Mt(e=>e?`on${ho(e)}`:""),mo=(e,t)=>e!==t&&(e===e||t===t),Ir=new WeakMap,et=[],ee,Ee=Symbol("iterate"),Mr=Symbol("Map key iterate");function au(e){return e&&e._isEffect===!0}function lu(e,t=tu){au(e)&&(e=e.raw);let r=fu(e,t);return t.lazy||r(),r}function uu(e){e.active&&(go(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var cu=0;function fu(e,t){let r=function(){if(!r.active)return e();if(!et.includes(r)){go(r);try{return pu(),et.push(r),ee=r,e()}finally{et.pop(),vo(),ee=et[et.length-1]}}};return r.id=cu++,r.allowRecurse=!!t.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=t,r}function go(e){let{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var Fe=!0,en=[];function du(){en.push(Fe),Fe=!1}function pu(){en.push(Fe),Fe=!0}function vo(){let e=en.pop();Fe=e===void 0?!0:e}function Q(e,t,r){if(!Fe||ee===void 0)return;let n=Ir.get(e);n||Ir.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=new Set),i.has(ee)||(i.add(ee),ee.deps.push(i),ee.options.onTrack&&ee.options.onTrack({effect:ee,target:e,type:t,key:r}))}function de(e,t,r,n,i,o){let s=Ir.get(e);if(!s)return;let a=new Set,l=d=>{d&&d.forEach(p=>{(p!==ee||p.allowRecurse)&&a.add(p)})};if(t==="clear")s.forEach(l);else if(r==="length"&&Se(e))s.forEach((d,p)=>{(p==="length"||p>=n)&&l(d)});else switch(r!==void 0&&l(s.get(r)),t){case"add":Se(e)?Zr(r)&&l(s.get("length")):(l(s.get(Ee)),nt(e)&&l(s.get(Mr)));break;case"delete":Se(e)||(l(s.get(Ee)),nt(e)&&l(s.get(Mr)));break;case"set":nt(e)&&l(s.get(Ee));break}let u=d=>{d.options.onTrigger&&d.options.onTrigger({effect:d,target:e,key:r,type:t,newValue:n,oldValue:i,oldTarget:o}),d.options.scheduler?d.options.scheduler(d):d()};a.forEach(u)}var hu=co("__proto__,__v_isRef,__isVue"),bo=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Qr)),mu=wo(),gu=wo(!0),ui=vu();function vu(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){let n=I(this);for(let o=0,s=this.length;o<s;o++)Q(n,"get",o+"");let i=n[t](...r);return i===-1||i===!1?n[t](...r.map(I)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){du();let n=I(this)[t].apply(this,r);return vo(),n}}),e}function wo(e=!1,t=!1){return function(n,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?Pu:So:t?Ru:_o).get(n))return n;let s=Se(n);if(!e&&s&&Pt(ui,i))return Reflect.get(ui,i,o);let a=Reflect.get(n,i,o);return(Qr(i)?bo.has(i):hu(i))||(e||Q(n,"get",i),t)?a:Fr(a)?!s||!Zr(i)?a.value:a:It(a)?e?Eo(a):on(a):a}}var bu=wu();function wu(e=!1){return function(r,n,i,o){let s=r[n];if(!e&&(i=I(i),s=I(s),!Se(r)&&Fr(s)&&!Fr(i)))return s.value=i,!0;let a=Se(r)&&Zr(n)?Number(n)<r.length:Pt(r,n),l=Reflect.set(r,n,i,o);return r===I(o)&&(a?mo(i,s)&&de(r,"set",n,i,s):de(r,"add",n,i)),l}}function yu(e,t){let r=Pt(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&de(e,"delete",t,void 0,n),i}function xu(e,t){let r=Reflect.has(e,t);return(!Qr(t)||!bo.has(t))&&Q(e,"has",t),r}function _u(e){return Q(e,"iterate",Se(e)?"length":Ee),Reflect.ownKeys(e)}var Su={get:mu,set:bu,deleteProperty:yu,has:xu,ownKeys:_u},Eu={get:gu,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},tn=e=>It(e)?on(e):e,rn=e=>It(e)?Eo(e):e,nn=e=>e,Ft=e=>Reflect.getPrototypeOf(e);function yt(e,t,r=!1,n=!1){e=e.__v_raw;let i=I(e),o=I(t);t!==o&&!r&&Q(i,"get",t),!r&&Q(i,"get",o);let{has:s}=Ft(i),a=n?nn:r?rn:tn;if(s.call(i,t))return a(e.get(t));if(s.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function xt(e,t=!1){let r=this.__v_raw,n=I(r),i=I(e);return e!==i&&!t&&Q(n,"has",e),!t&&Q(n,"has",i),e===i?r.has(e):r.has(e)||r.has(i)}function _t(e,t=!1){return e=e.__v_raw,!t&&Q(I(e),"iterate",Ee),Reflect.get(e,"size",e)}function ci(e){e=I(e);let t=I(this);return Ft(t).has.call(t,e)||(t.add(e),de(t,"add",e,e)),this}function fi(e,t){t=I(t);let r=I(this),{has:n,get:i}=Ft(r),o=n.call(r,e);o?xo(r,n,e):(e=I(e),o=n.call(r,e));let s=i.call(r,e);return r.set(e,t),o?mo(t,s)&&de(r,"set",e,t,s):de(r,"add",e,t),this}function di(e){let t=I(this),{has:r,get:n}=Ft(t),i=r.call(t,e);i?xo(t,r,e):(e=I(e),i=r.call(t,e));let o=n?n.call(t,e):void 0,s=t.delete(e);return i&&de(t,"delete",e,void 0,o),s}function pi(){let e=I(this),t=e.size!==0,r=nt(e)?new Map(e):new Set(e),n=e.clear();return t&&de(e,"clear",void 0,void 0,r),n}function St(e,t){return function(n,i){let o=this,s=o.__v_raw,a=I(s),l=t?nn:e?rn:tn;return!e&&Q(a,"iterate",Ee),s.forEach((u,d)=>n.call(i,l(u),l(d),o))}}function Et(e,t,r){return function(...n){let i=this.__v_raw,o=I(i),s=nt(o),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...n),d=r?nn:t?rn:tn;return!t&&Q(o,"iterate",l?Mr:Ee),{next(){let{value:p,done:c}=u.next();return c?{value:p,done:c}:{value:a?[d(p[0]),d(p[1])]:d(p),done:c}},[Symbol.iterator](){return this}}}}function ue(e){return function(...t){{let r=t[0]?`on key "${t[0]}" `:"";console.warn(`${ho(e)} operation ${r}failed: target is readonly.`,I(this))}return e==="delete"?!1:this}}function Au(){let e={get(o){return yt(this,o)},get size(){return _t(this)},has:xt,add:ci,set:fi,delete:di,clear:pi,forEach:St(!1,!1)},t={get(o){return yt(this,o,!1,!0)},get size(){return _t(this)},has:xt,add:ci,set:fi,delete:di,clear:pi,forEach:St(!1,!0)},r={get(o){return yt(this,o,!0)},get size(){return _t(this,!0)},has(o){return xt.call(this,o,!0)},add:ue("add"),set:ue("set"),delete:ue("delete"),clear:ue("clear"),forEach:St(!0,!1)},n={get(o){return yt(this,o,!0,!0)},get size(){return _t(this,!0)},has(o){return xt.call(this,o,!0)},add:ue("add"),set:ue("set"),delete:ue("delete"),clear:ue("clear"),forEach:St(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Et(o,!1,!1),r[o]=Et(o,!0,!1),t[o]=Et(o,!1,!0),n[o]=Et(o,!0,!0)}),[e,r,t,n]}var[Cu,Tu,Ou,ku]=Au();function yo(e,t){let r=t?e?ku:Ou:e?Tu:Cu;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Pt(r,i)&&i in n?r:n,i,o)}var Lu={get:yo(!1,!1)},Nu={get:yo(!0,!1)};function xo(e,t,r){let n=I(r);if(n!==r&&t.call(e,n)){let i=po(e);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="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 _o=new WeakMap,Ru=new WeakMap,So=new WeakMap,Pu=new WeakMap;function Iu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mu(e){return e.__v_skip||!Object.isExtensible(e)?0:Iu(po(e))}function on(e){return e&&e.__v_isReadonly?e:Ao(e,!1,Su,Lu,_o)}function Eo(e){return Ao(e,!0,Eu,Nu,So)}function Ao(e,t,r,n,i){if(!It(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let o=i.get(e);if(o)return o;let s=Mu(e);if(s===0)return e;let a=new Proxy(e,s===2?n:r);return i.set(e,a),a}function I(e){return e&&I(e.__v_raw)||e}function Fr(e){return Boolean(e&&e.__v_isRef===!0)}Z("nextTick",()=>Xr);Z("dispatch",e=>rt.bind(rt,e));Z("watch",(e,{evaluateLater:t,cleanup:r})=>(n,i)=>{let o=t(n),a=yi(()=>{let l;return o(u=>l=u),l},i);r(a)});Z("store",Jl);Z("data",e=>Ii(e));Z("root",e=>Lt(e));Z("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=at(Fu(e))),e._x_refs_proxy));function Fu(e){let t=[];return ot(e,r=>{r._x_refs&&t.push(r._x_refs)}),t}var br={};function Co(e){return br[e]||(br[e]=0),++br[e]}function Du(e,t){return ot(e,r=>{if(r._x_ids&&r._x_ids[t])return!0})}function $u(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Co(t))}Z("id",(e,{cleanup:t})=>(r,n=null)=>{let i=`${r}${n?`-${n}`:""}`;return Bu(e,i,t,()=>{let o=Du(e,r),s=o?o._x_ids[r]:Co(r);return n?`${r}-${s}-${n}`:`${r}-${s}`})});Rt((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Bu(e,t,r,n){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let i=n();return e._x_id[t]=i,r(()=>{delete e._x_id[t]}),i}Z("el",e=>e);To("Focus","focus","focus");To("Persist","persist","persist");function To(e,t,r){Z(t,n=>Y(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}F("modelable",(e,{expression:t},{effect:r,evaluateLater:n,cleanup:i})=>{let o=n(t),s=()=>{let d;return o(p=>d=p),d},a=n(`${t} = __placeholder`),l=d=>a(()=>{},{scope:{__placeholder:d}}),u=s();l(u),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let d=e._x_model.get,p=e._x_model.set,c=so({get(){return d()},set(f){p(f)}},{get(){return s()},set(f){l(f)}});i(c)})});F("teleport",(e,{modifiers:t,expression:r},{cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&Y("x-teleport can only be used on a <template> tag",e);let i=hi(r),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(a=>{o.addEventListener(a,l=>{l.stopPropagation(),e.dispatchEvent(new l.constructor(l.type,l))})}),st(o,{},e);let s=(a,l,u)=>{u.includes("prepend")?l.parentNode.insertBefore(a,l):u.includes("append")?l.parentNode.insertBefore(a,l.nextSibling):l.appendChild(a)};B(()=>{s(o,i,t),ne(o),o._x_ignore=!0}),e._x_teleportPutBack=()=>{let a=hi(r);B(()=>{s(e._x_teleport,a,t)})},n(()=>o.remove())});var Uu=document.createElement("div");function hi(e){let t=Ce(()=>document.querySelector(e),()=>Uu)();return t||Y(`Cannot find x-teleport element for selector: "${e}"`),t}var Oo=()=>{};Oo.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,r(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};F("ignore",Oo);F("effect",Ce((e,{expression:t},{effect:r})=>{r(j(e,t))}));function Dr(e,t,r,n){let i=e,o=l=>n(l),s={},a=(l,u)=>d=>u(l,d);if(r.includes("dot")&&(t=ju(t)),r.includes("camel")&&(t=Hu(t)),r.includes("passive")&&(s.passive=!0),r.includes("capture")&&(s.capture=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("debounce")){let l=r[r.indexOf("debounce")+1]||"invalid-wait",u=kt(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=io(o,u)}if(r.includes("throttle")){let l=r[r.indexOf("throttle")+1]||"invalid-wait",u=kt(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=oo(o,u)}return r.includes("prevent")&&(o=a(o,(l,u)=>{u.preventDefault(),l(u)})),r.includes("stop")&&(o=a(o,(l,u)=>{u.stopPropagation(),l(u)})),r.includes("self")&&(o=a(o,(l,u)=>{u.target===e&&l(u)})),(r.includes("away")||r.includes("outside"))&&(i=document,o=a(o,(l,u)=>{e.contains(u.target)||u.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&l(u))})),r.includes("once")&&(o=a(o,(l,u)=>{l(u),i.removeEventListener(t,o,s)})),o=a(o,(l,u)=>{Wu(t)&&Ku(u,r)||l(u)}),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function ju(e){return e.replace(/-/g,".")}function Hu(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function kt(e){return!Array.isArray(e)&&!isNaN(e)}function qu(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function Wu(e){return["keydown","keyup"].includes(e)}function Ku(e,t){let r=t.filter(o=>!["window","document","prevent","stop","once","capture"].includes(o));if(r.includes("debounce")){let o=r.indexOf("debounce");r.splice(o,kt((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.includes("throttle")){let o=r.indexOf("throttle");r.splice(o,kt((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&mi(e.key).includes(r[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>r.includes(o));return r=r.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===i.length&&mi(e.key).includes(r[0]))}function mi(e){if(!e)return[];e=qu(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(r=>{if(t[r]===e)return r}).filter(r=>r)}F("model",(e,{modifiers:t,expression:r},{effect:n,cleanup:i})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let s=j(o,r),a;typeof r=="string"?a=j(o,`${r} = __placeholder`):typeof r=="function"&&typeof r()=="string"?a=j(o,`${r()} = __placeholder`):a=()=>{};let l=()=>{let c;return s(f=>c=f),gi(c)?c.get():c},u=c=>{let f;s(m=>f=m),gi(f)?f.set(c):a(()=>{},{scope:{__placeholder:c}})};typeof r=="string"&&e.type==="radio"&&B(()=>{e.hasAttribute("name")||e.setAttribute("name",r)});var d=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let p=fe?()=>{}:Dr(e,d,t,c=>{u(zu(e,t,c,l()))});if(t.includes("fill")&&([void 0,null,""].includes(l())||e.type==="checkbox"&&Array.isArray(l()))&&e.dispatchEvent(new Event(d,{})),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=p,i(()=>e._x_removeModelListeners.default()),e.form){let c=Dr(e.form,"reset",[],f=>{Xr(()=>e._x_model&&e._x_model.set(e.value))});i(()=>c())}e._x_model={get(){return l()},set(c){u(c)}},e._x_forceModelUpdate=c=>{c===void 0&&typeof r=="string"&&r.match(/\./)&&(c=""),window.fromModel=!0,B(()=>eo(e,"value",c)),delete window.fromModel},n(()=>{let c=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(c)})});function zu(e,t,r,n){return B(()=>{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail!==null&&r.detail!==void 0?r.detail:r.target.value;if(e.type==="checkbox")if(Array.isArray(n)){let i=null;return t.includes("number")?i=wr(r.target.value):t.includes("boolean")?i=Ct(r.target.value):i=r.target.value,r.target.checked?n.concat([i]):n.filter(o=>!Vu(o,i))}else return r.target.checked;else return e.tagName.toLowerCase()==="select"&&e.multiple?t.includes("number")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return wr(o)}):t.includes("boolean")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return Ct(o)}):Array.from(r.target.selectedOptions).map(i=>i.value||i.text):t.includes("number")?wr(r.target.value):t.includes("boolean")?Ct(r.target.value):t.includes("trim")?r.target.value.trim():r.target.value})}function wr(e){let t=e?parseFloat(e):null;return Ju(t)?t:e}function Vu(e,t){return e==t}function Ju(e){return!Array.isArray(e)&&!isNaN(e)}function gi(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}F("cloak",e=>queueMicrotask(()=>B(()=>e.removeAttribute(Be("cloak")))));Ai(()=>`[${Be("init")}]`);F("init",Ce((e,{expression:t},{evaluate:r})=>typeof t=="string"?!!t.trim()&&r(t,{},!1):r(t,{},!1)));F("text",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{B(()=>{e.textContent=o})})})});F("html",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{B(()=>{e.innerHTML=o,e._x_ignoreSelf=!0,ne(e),delete e._x_ignoreSelf})})})});Jr(Wi(":",Ki(Be("bind:"))));var ko=(e,{value:t,modifiers:r,expression:n,original:i},{effect:o})=>{if(!t){let a={};Xl(a),j(e,n)(u=>{lo(e,u,i)},{scope:a});return}if(t==="key")return Gu(e,n);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let s=j(e,n);o(()=>s(a=>{a===void 0&&typeof n=="string"&&n.match(/\./)&&(a=""),B(()=>eo(e,t,a,r))}))};ko.inline=(e,{value:t,modifiers:r,expression:n})=>{!t||(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:n,extract:!1})};F("bind",ko);function Gu(e,t){e._x_keyExpression=t}Ei(()=>`[${Be("data")}]`);F("data",(e,{expression:t},{cleanup:r})=>{if(Xu(e))return;t=t===""?"{}":t;let n={};Ar(n,e);let i={};Ql(i,n);let o=_e(e,t,{scope:i});(o===void 0||o===!0)&&(o={}),Ar(o,e);let s=De(o);Mi(s);let a=st(e,s);s.init&&_e(e,s.init),r(()=>{s.destroy&&_e(e,s.destroy),a()})});Rt((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function Xu(e){return fe?Pr?!0:e.hasAttribute("data-has-alpine-state"):!1}F("show",(e,{modifiers:t,expression:r},{effect:n})=>{let i=j(e,r);e._x_doHide||(e._x_doHide=()=>{B(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{B(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let o=()=>{e._x_doHide(),e._x_isShown=!1},s=()=>{e._x_doShow(),e._x_isShown=!0},a=()=>setTimeout(s),l=Nr(p=>p?s():o(),p=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,p,s,o):p?a():o()}),u,d=!0;n(()=>i(p=>{!d&&p===u||(t.includes("immediate")&&(p?a():o()),l(p),u=p,d=!1)}))});F("for",(e,{expression:t},{effect:r,cleanup:n})=>{let i=Qu(t),o=j(e,i.items),s=j(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},r(()=>Yu(e,i,o,s)),n(()=>{Object.values(e._x_lookup).forEach(a=>a.remove()),delete e._x_prevKeys,delete e._x_lookup})});function Yu(e,t,r,n){let i=s=>typeof s=="object"&&!Array.isArray(s),o=e;r(s=>{Zu(s)&&s>=0&&(s=Array.from(Array(s).keys(),g=>g+1)),s===void 0&&(s=[]);let a=e._x_lookup,l=e._x_prevKeys,u=[],d=[];if(i(s))s=Object.entries(s).map(([g,x])=>{let b=vi(t,x,g,s);n(_=>{d.includes(_)&&Y("Duplicate key on x-for",e),d.push(_)},{scope:{index:g,...b}}),u.push(b)});else for(let g=0;g<s.length;g++){let x=vi(t,s[g],g,s);n(b=>{d.includes(b)&&Y("Duplicate key on x-for",e),d.push(b)},{scope:{index:g,...x}}),u.push(x)}let p=[],c=[],f=[],m=[];for(let g=0;g<l.length;g++){let x=l[g];d.indexOf(x)===-1&&f.push(x)}l=l.filter(g=>!f.includes(g));let v="template";for(let g=0;g<d.length;g++){let x=d[g],b=l.indexOf(x);if(b===-1)l.splice(g,0,x),p.push([v,g]);else if(b!==g){let _=l.splice(g,1)[0],O=l.splice(b-1,1)[0];l.splice(g,0,O),l.splice(b,0,_),c.push([_,O])}else m.push(x);v=x}for(let g=0;g<f.length;g++){let x=f[g];a[x]._x_effects&&a[x]._x_effects.forEach(bi),a[x].remove(),a[x]=null,delete a[x]}for(let g=0;g<c.length;g++){let[x,b]=c[g],_=a[x],O=a[b],T=document.createElement("div");B(()=>{O||Y('x-for ":key" is undefined or invalid',o,b,a),O.after(T),_.after(O),O._x_currentIfEl&&O.after(O._x_currentIfEl),T.before(_),_._x_currentIfEl&&_.after(_._x_currentIfEl),T.remove()}),O._x_refreshXForScope(u[d.indexOf(b)])}for(let g=0;g<p.length;g++){let[x,b]=p[g],_=x==="template"?o:a[x];_._x_currentIfEl&&(_=_._x_currentIfEl);let O=u[b],T=d[b],w=document.importNode(o.content,!0).firstElementChild,h=De(O);st(w,h,o),w._x_refreshXForScope=y=>{Object.entries(y).forEach(([C,L])=>{h[C]=L})},B(()=>{_.after(w),Ce(()=>ne(w))()}),typeof T=="object"&&Y("x-for key cannot be an object, it must be a string or an integer",o),a[T]=w}for(let g=0;g<m.length;g++)a[m[g]]._x_refreshXForScope(u[d.indexOf(m[g])]);o._x_prevKeys=d})}function Qu(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(n);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(r,"").trim(),a=s.match(t);return a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function vi(e,t,r,n){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=t[a]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{i[s]=t[s]}):i[e.item]=t,e.index&&(i[e.index]=r),e.collection&&(i[e.collection]=n),i}function Zu(e){return!Array.isArray(e)&&!isNaN(e)}function Lo(){}Lo.inline=(e,{expression:t},{cleanup:r})=>{let n=Lt(e);n._x_refs||(n._x_refs={}),n._x_refs[t]=e,r(()=>delete n._x_refs[t])};F("ref",Lo);F("if",(e,{expression:t},{effect:r,cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&Y("x-if can only be used on a <template> tag",e);let i=j(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return st(a,{},e),B(()=>{e.after(a),Ce(()=>ne(a))()}),e._x_currentIfEl=a,e._x_undoIf=()=>{ce(a,l=>{l._x_effects&&l._x_effects.forEach(bi)}),a.remove(),delete e._x_currentIfEl},a},s=()=>{!e._x_undoIf||(e._x_undoIf(),delete e._x_undoIf)};r(()=>i(a=>{a?o():s()})),n(()=>e._x_undoIf&&e._x_undoIf())});F("id",(e,{expression:t},{evaluate:r})=>{r(t).forEach(i=>$u(e,i))});Rt((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});Jr(Wi("@",Ki(Be("on:"))));F("on",Ce((e,{value:t,modifiers:r,expression:n},{cleanup:i})=>{let o=n?j(e,n):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=Dr(e,t,r,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));Dt("Collapse","collapse","collapse");Dt("Intersect","intersect","intersect");Dt("Focus","trap","focus");Dt("Mask","mask","mask");function Dt(e,t,r){F(t,n=>Y(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}lt.setEvaluator(Ui);lt.setReactivityEngine({reactive:on,effect:lu,release:uu,raw:I});var ec=lt,S=ec;function sn(e,t){return t||(t=()=>{}),(r,n=!1)=>{let i=n,o=r,s=e.$wire,a=s.get(o);return S.interceptor((u,d,p,c,f)=>{if(typeof a>"u"){console.error(`Livewire Entangle Error: Livewire property ['${o}'] cannot be found on component: ['${e.name}']`);return}let m=S.entangle({get(){return s.get(r)},set(v){s.set(r,v,i)}},{get(){return d()},set(v){p(v)}});return t(()=>m()),tc(s.get(r))},u=>{Object.defineProperty(u,"live",{get(){return i=!0,u}})})(a)}}function tc(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}var Te=[];function k(e,t){return Te[e]||(Te[e]=[]),Te[e].push(t),()=>{Te[e]=Te[e].filter(r=>r!==t)}}function R(e,...t){let r=Te[e]||[],n=[];for(let i=0;i<r.length;i++){let o=r[i](...t);pr(o)&&n.push(o)}return i=>No(n,i)}async function $t(e,...t){let r=Te[e]||[],n=[];for(let i=0;i<r.length;i++){let o=await r[i](...t);pr(o)&&n.push(o)}return i=>No(n,i)}function No(e,t){let r=t;for(let n=0;n<e.length;n++){let i=e[n](r);i!==void 0&&(r=i)}return r}function an(e){let t=document.createElement("html");t.innerHTML=e,t.querySelectorAll("a").forEach(i=>i.setAttribute("target","_top"));let r=document.getElementById("livewire-error");typeof r<"u"&&r!=null?r.innerHTML="":(r=document.createElement("div"),r.id="livewire-error",r.style.position="fixed",r.style.width="100vw",r.style.height="100vh",r.style.padding="50px",r.style.backgroundColor="rgba(0, 0, 0, .6)",r.style.zIndex=2e5);let n=document.createElement("iframe");n.style.backgroundColor="#17161A",n.style.borderRadius="5px",n.style.width="100%",n.style.height="100%",r.appendChild(n),document.body.prepend(r),document.body.style.overflow="hidden",n.contentWindow.document.open(),n.contentWindow.document.write(t.outerHTML),n.contentWindow.document.close(),r.addEventListener("click",()=>Ro(r)),r.setAttribute("tabindex",0),r.addEventListener("keydown",i=>{i.key==="Escape"&&Ro(r)}),r.focus()}function Ro(e){e.outerHTML="",document.body.style.overflow="visible"}var Bt=class{constructor(){this.commits=new Set}add(t){this.commits.add(t)}delete(t){this.commits.delete(t)}hasCommitFor(t){return!!this.findCommitByComponent(t)}findCommitByComponent(t){for(let[r,n]of this.commits.entries())if(n.component===t)return n}shouldHoldCommit(t){return!t.isolate}empty(){return this.commits.size===0}async send(){this.prepare(),await Po(this)}prepare(){this.commits.forEach(t=>t.prepare())}payload(){let t=[],r=[],n=[];return this.commits.forEach(s=>{let[a,l,u]=s.toRequestPayload();t.push(a),r.push(l),n.push(u)}),[t,s=>r.forEach(a=>a(s.shift())),()=>n.forEach(s=>s())]}};var Ut=class{constructor(t){this.component=t,this.isolate=!1,this.calls=[],this.receivers=[],this.resolvers=[]}addResolver(t){this.resolvers.push(t)}addCall(t,r,n){this.calls.push({path:"",method:t,params:r,handleReturn(i){n(i)}})}prepare(){R("commit.prepare",{component:this.component})}toRequestPayload(){let t=Ge(this.component.canonical,this.component.ephemeral),r=this.component.mergeQueuedUpdates(t),n={snapshot:this.component.snapshotEncoded,updates:r,calls:this.calls.map(f=>({path:f.path,method:f.method,params:f.params}))},i=[],o=[],s=[],a=f=>i.forEach(m=>m(f)),l=()=>o.forEach(f=>f()),u=()=>s.forEach(f=>f()),d=R("commit",{component:this.component,commit:n,succeed:f=>{i.push(f)},fail:f=>{o.push(f)},respond:f=>{s.push(f)}});return[n,f=>{let{snapshot:m,effects:v}=f;if(u(),this.component.mergeNewSnapshot(m,v,r),this.component.processEffects(this.component.effects),v.returns){let x=v.returns;this.calls.map(({handleReturn:_})=>_).forEach((_,O)=>{_(x[O])})}let g=JSON.parse(m);d({snapshot:g,effects:v}),this.resolvers.forEach(x=>x()),a(f)},()=>{u(),l()}]}};var jt=class{constructor(){this.commits=new Set,this.pools=new Set}add(t){let r=this.findCommitOr(t,()=>{let n=new Ut(t);return this.commits.add(n),n});return rc(r,()=>{this.findPoolWithComponent(r.component)||this.createAndSendNewPool()}),r}findCommitOr(t,r){for(let[n,i]of this.commits.entries())if(i.component===t)return i;return r()}findPoolWithComponent(t){for(let[r,n]of this.pools.entries())if(n.hasCommitFor(t))return n}createAndSendNewPool(){R("commit.pooling",{commits:this.commits});let t=this.corraleCommitsIntoPools();this.commits.clear(),R("commit.pooled",{pools:t}),t.forEach(r=>{r.empty()||(this.pools.add(r),r.send().then(()=>{this.pools.delete(r),this.sendAnyQueuedCommits()}))})}corraleCommitsIntoPools(){let t=new Set;for(let[r,n]of this.commits.entries()){let i=!1;if(t.forEach(o=>{o.shouldHoldCommit(n)&&(o.add(n),i=!0)}),!i){let o=new Bt;o.add(n),t.add(o)}}return t}sendAnyQueuedCommits(){this.commits.size>0&&this.createAndSendNewPool()}},ln=new WeakMap;function rc(e,t){ln.has(e)||ln.set(e,setTimeout(()=>{t(),ln.delete(e)},5))}var Io=new jt;async function un(e){let t=Io.add(e),r=new Promise(n=>{t.addResolver(n)});return r.commit=t,r}async function Mo(e,t,r){let n=Io.add(e),i=new Promise(o=>{n.addCall(t,r,s=>o(s))});return i.commit=n,i}async function Po(e){let[t,r,n]=e.payload(),i={method:"POST",body:JSON.stringify({_token:bt(),components:t}),headers:{"Content-type":"application/json","X-Livewire":""}},o=[],s=[],a=[],l=b=>o.forEach(_=>_(b)),u=b=>s.forEach(_=>_(b)),d=b=>a.forEach(_=>_(b)),p=R("request.profile",i),c=Yn();R("request",{url:c,options:i,payload:i.body,respond:b=>a.push(b),succeed:b=>o.push(b),fail:b=>s.push(b)});let f;try{f=await fetch(c,i)}catch{p({content:"{}",failed:!0}),n(),u({status:503,content:null,preventDefault:()=>{}});return}let m={status:f.status,response:f};d(m),f=m.response;let v=await f.text();if(!f.ok){p({content:"{}",failed:!0});let b=!1;return n(),u({status:f.status,content:v,preventDefault:()=>b=!0}),b?void 0:(f.status===419&&nc(),ic(v))}if(f.redirected&&(window.location.href=f.url),wt(v)){let b;[b,v]=Qn(v),an(b),p({content:"{}",failed:!0})}else p({content:v,failed:!1});let{components:g,assets:x}=JSON.parse(v);await $t("payload.intercept",{components:g,assets:x}),await r(g),l({status:f.status,json:JSON.parse(v)})}function nc(){confirm(`This page has expired.
-Would you like to refresh the page?`)&&window.location.reload()}function ic(e){an(e)}var fn={},$o;function D(e,t,r=null){fn[e]=t}function oc(e){$o=e}var Fo={on:"$on",el:"$el",id:"$id",get:"$get",set:"$set",call:"$call",commit:"$commit",watch:"$watch",entangle:"$entangle",dispatch:"$dispatch",dispatchTo:"$dispatchTo",dispatchSelf:"$dispatchSelf",upload:"$upload",uploadMultiple:"$uploadMultiple",removeUpload:"$removeUpload",cancelUpload:"$cancelUpload"};function Bo(e,t){return new Proxy({},{get(r,n){if(n==="__instance")return e;if(n in Fo)return Do(e,Fo[n]);if(n in fn)return Do(e,n);if(n in t)return t[n];if(!["then"].includes(n))return sc(e)(n)},set(r,n,i){return n in t&&(t[n]=i),!0}})}function Do(e,t){return fn[t](e)}function sc(e){return $o(e)}S.magic("wire",(e,{cleanup:t})=>{let r;return new Proxy({},{get(n,i){return r||(r=z(e)),["$entangle","entangle"].includes(i)?sn(r,t):r.$wire[i]},set(n,i,o){return r||(r=z(e)),r.$wire[i]=o,!0}})});D("__instance",e=>e);D("$get",e=>(t,r=!0)=>W(r?e.reactive:e.ephemeral,t));D("$el",e=>e.el);D("$id",e=>e.id);D("$set",e=>async(t,r,n=!0)=>(ve(e.reactive,t,r),n?(e.queueUpdate(t,r),await un(e)):Promise.resolve()));D("$call",e=>async(t,...r)=>await e.$wire[t](...r));D("$entangle",e=>(t,r=!1)=>sn(e)(t,r));D("$toggle",e=>(t,r=!0)=>e.$wire.set(t,!e.$wire.get(t),r));D("$watch",e=>(t,r)=>{let n=!0,i;S.effect(()=>{let o=W(e.reactive,t);JSON.stringify(o),n?i=o:queueMicrotask(()=>{r(o,i),i=o}),n=!1})});D("$refresh",e=>e.$wire.$commit);D("$commit",e=>async()=>await un(e));D("$on",e=>(...t)=>jo(e,...t));D("$dispatch",e=>(...t)=>Ht(e,...t));D("$dispatchSelf",e=>(...t)=>ie(e,...t));D("$dispatchTo",()=>(...e)=>je(...e));D("$upload",e=>(...t)=>ei(e,...t));D("$uploadMultiple",e=>(...t)=>ti(e,...t));D("$removeUpload",e=>(...t)=>ri(e,...t));D("$cancelUpload",e=>(...t)=>ni(e,...t));var cn=new WeakMap;D("$parent",e=>{if(cn.has(e))return cn.get(e).$wire;let t=z(e.el.parentElement);return cn.set(e,t),t.$wire});var Ue=new WeakMap;function Uo(e,t,r){Ue.has(e)||Ue.set(e,{});let n=Ue.get(e);n[t]=r,Ue.set(e,n)}oc(e=>t=>async(...r)=>{if(r.length===1&&r[0]instanceof Event&&(r=[]),Ue.has(e)){let n=Ue.get(e);if(typeof n[t]=="function")return n[t](r)}return await Mo(e,t,r)});var qt=class{constructor(t){if(t.__livewire)throw"Component already initialized";if(t.__livewire=this,this.el=t,this.id=t.getAttribute("wire:id"),this.__livewireId=this.id,this.snapshotEncoded=t.getAttribute("wire:snapshot"),this.snapshot=JSON.parse(this.snapshotEncoded),!this.snapshot)throw"Snapshot missing on Livewire component with id: "+this.id;this.name=this.snapshot.memo.name,this.effects=JSON.parse(t.getAttribute("wire:effects")),this.originalEffects=le(this.effects),this.canonical=be(le(this.snapshot.data)),this.ephemeral=be(le(this.snapshot.data)),this.reactive=Alpine.reactive(this.ephemeral),this.queuedUpdates={},this.$wire=Bo(this,this.reactive),this.cleanups=[],this.processEffects(this.effects)}mergeNewSnapshot(t,r,n={}){let i=JSON.parse(t),o=le(this.canonical),s=this.applyUpdates(o,n),a=be(le(i.data)),l=Ge(s,a);this.snapshotEncoded=t,this.snapshot=i,this.effects=r,this.canonical=be(le(i.data));let u=be(le(i.data));return Object.entries(l).forEach(([d,p])=>{let c=d.split(".")[0];this.reactive[c]=u[c]}),l}queueUpdate(t,r){this.queuedUpdates[t]=r}mergeQueuedUpdates(t){return Object.entries(this.queuedUpdates).forEach(([r,n])=>{Object.entries(t).forEach(([i,o])=>{i.startsWith(n)&&delete t[i]}),t[r]=n}),this.queuedUpdates=[],t}applyUpdates(t,r){for(let n in r)ve(t,n,r[n]);return t}replayUpdate(t,r){let n={...this.effects,html:r};this.mergeNewSnapshot(JSON.stringify(t),n),this.processEffects({html:r})}processEffects(t){R("effects",this,t),R("effect",{component:this,effects:t,cleanup:r=>this.addCleanup(r)})}get children(){let t=this.snapshot.memo;return Object.values(t.children).map(n=>n[1]).map(n=>Ho(n))}inscribeSnapshotAndEffectsOnElement(){let t=this.el;t.setAttribute("wire:snapshot",this.snapshotEncoded);let r=this.originalEffects.listeners?{listeners:this.originalEffects.listeners}:{};this.originalEffects.url&&(r.url=this.originalEffects.url),t.setAttribute("wire:effects",JSON.stringify(r))}addCleanup(t){this.cleanups.push(t)}cleanup(){for(delete this.el.__livewire;this.cleanups.length>0;)this.cleanups.pop()()}};var oe={};function qo(e){let t=new qt(e);if(oe[t.id])throw"Component already registered";return R("component.init",{component:t,cleanup:n=>t.addCleanup(n)}),oe[t.id]=t,t}function Wo(e){let t=oe[e];!t||(t.cleanup(),delete oe[e])}function Ho(e){let t=oe[e];if(!t)throw"Component not found: "+e;return t}function z(e,t=!0){let r=Alpine.findClosest(e,n=>n.__livewire);if(!r){if(t)throw"Could not find Livewire component in DOM tree";return}return r.__livewire}function dn(e){return Object.values(oe).filter(t=>e==t.name)}function Ko(e){return dn(e).map(t=>t.$wire)}function zo(e){let t=oe[e];return t&&t.$wire}function Vo(){return Object.values(oe)[0].$wire}function Jo(){return Object.values(oe)}function Ht(e,t,r){Wt(e.el,t,r)}function Go(e,t){Wt(window,e,t)}function ie(e,t,r){Wt(e.el,t,r,!1)}function je(e,t,r){dn(e).forEach(i=>{Wt(i.el,t,r,!1)})}function jo(e,t,r){e.el.addEventListener(t,n=>{r(n.detail)})}function Xo(e,t){let r=n=>{!n.__livewire||t(n.detail)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}}function Wt(e,t,r,n=!0){let i=new CustomEvent(t,{bubbles:n,detail:r});i.__livewire={name:t,params:r,receivedBy:[]},e.dispatchEvent(i)}function He(e){return e.match(new RegExp("wire:"))}function Kt(e,t){let[r,...n]=t.replace(new RegExp("wire:"),"").split(".");return new hn(r,n,t,e)}function M(e,t){k("directive.init",({el:r,component:n,directive:i,cleanup:o})=>{i.value===e&&t({el:r,directive:i,component:n,cleanup:o})})}function pe(e){return new pn(e)}var pn=class{constructor(t){this.el=t,this.directives=this.extractTypeModifiersAndValue()}all(){return this.directives}has(t){return this.directives.map(r=>r.value).includes(t)}missing(t){return!this.has(t)}get(t){return this.directives.find(r=>r.value===t)}extractTypeModifiersAndValue(){return Array.from(this.el.getAttributeNames().filter(t=>He(t)).map(t=>Kt(this.el,t)))}},hn=class{constructor(t,r,n,i){this.rawName=this.raw=n,this.el=i,this.eventContext,this.value=t,this.modifiers=r,this.expression=this.el.getAttribute(this.rawName)}get method(){let{method:t}=this.parseOutMethodAndParams(this.expression);return t}get params(){let{params:t}=this.parseOutMethodAndParams(this.expression);return t}parseOutMethodAndParams(t){let r=t,n=[],i=r.match(/(.*?)\((.*)\)/s);return i&&(r=i[1],n=new Function("$event",`return (function () {
+`:""}`,t),setTimeout(()=>{throw e},0)}var At=!0;function $i(e){let t=At;At=!1;let r=e();return At=t,r}function _e(e,t,r={}){let n;return U(e,t)(i=>n=i,r),n}function U(...e){return Bi(...e)}var Bi=ji;function hl(e){Bi=e}function ji(e,t){let r={};Ar(r,e);let n=[r,...Me(e)],i=typeof t=="function"?ml(n,t):vl(n,t,e);return pl.bind(null,e,t,i)}function ml(e,t){return(r=()=>{},{scope:n={},params:i=[]}={})=>{let o=t.apply(at([n,...e]),i);Ot(r,o)}}var gr={};function gl(e,t){if(gr[e])return gr[e];let r=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let s=new r(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return it(s,t,e),Promise.resolve()}})();return gr[e]=o,o}function vl(e,t,r){let n=gl(t,r);return(i=()=>{},{scope:o={},params:s=[]}={})=>{n.result=void 0,n.finished=!1;let a=at([o,...e]);if(typeof n=="function"){let l=n(n,a).catch(u=>it(u,r,t));n.finished?(Ot(i,n.result,a,s,r),n.result=void 0):l.then(u=>{Ot(i,u,a,s,r)}).catch(u=>it(u,r,t)).finally(()=>n.result=void 0)}}}function Ot(e,t,r,n,i){if(At&&typeof t=="function"){let o=t.apply(r,n);o instanceof Promise?o.then(s=>Ot(e,s,r,n)).catch(s=>it(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var zr="x-";function Be(e=""){return zr+e}function bl(e){zr=e}var Cr={};function F(e,t){return Cr[e]=t,{before(r){if(!Cr[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${e}\` will use the default order of execution`);return}let n=ye.indexOf(r);ye.splice(n>=0?n:ye.indexOf("DEFAULT"),0,e)}}}function Vr(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),s=Ui(o);o=o.map(a=>s.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(o)}let n={};return t.map(zi((o,s)=>n[o]=s)).filter(Ji).map(xl(n,r)).sort(_l).map(o=>yl(e,o))}function Ui(e){return Array.from(e).map(zi()).filter(t=>!Ji(t))}var Tr=!1,tt=new Map,Hi=Symbol();function wl(e){Tr=!0;let t=Symbol();Hi=t,tt.set(t,[]);let r=()=>{for(;tt.get(t).length;)tt.get(t).shift()();tt.delete(t)},n=()=>{Tr=!1,r()};e(r),n()}function qi(e){let t=[],r=a=>t.push(a),[n,i]=tl(e);return t.push(i),[{Alpine:lt,effect:n,cleanup:r,evaluateLater:U.bind(U,e),evaluate:_e.bind(_e,e)},()=>t.forEach(a=>a())]}function yl(e,t){let r=()=>{},n=Cr[t.type]||r,[i,o]=qi(e);Ni(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,i),n=n.bind(n,e,t,i),Tr?tt.get(Hi).push(n):n())};return s.runCleanups=o,s}var Wi=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),Ki=e=>e;function zi(e=()=>{}){return({name:t,value:r})=>{let{name:n,value:i}=Vi.reduce((o,s)=>s(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var Vi=[];function Jr(e){Vi.push(e)}function Ji({name:e}){return Gi().test(e)}var Gi=()=>new RegExp(`^${zr}([^:^.]+)\\b`);function xl(e,t){return({name:r,value:n})=>{let i=r.match(Gi()),o=r.match(/:([a-zA-Z0-9\-_:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(l=>l.replace(".","")),expression:n,original:a}}}var Or="DEFAULT",ye=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Or,"teleport"];function _l(e,t){let r=ye.indexOf(e.type)===-1?Or:e.type,n=ye.indexOf(t.type)===-1?Or:t.type;return ye.indexOf(r)-ye.indexOf(n)}var kr=[],Gr=!1;function Xr(e=()=>{}){return queueMicrotask(()=>{Gr||setTimeout(()=>{Lr()})}),new Promise(t=>{kr.push(()=>{e(),t()})})}function Lr(){for(Gr=!1;kr.length;)kr.shift()()}function Sl(){Gr=!0}function Yr(e,t){return Array.isArray(t)?si(e,t.join(" ")):typeof t=="object"&&t!==null?El(e,t):typeof t=="function"?Yr(e,t()):si(e,t)}function si(e,t){let r=o=>o.split(" ").filter(Boolean),n=o=>o.split(" ").filter(s=>!e.classList.contains(s)).filter(Boolean),i=o=>(e.classList.add(...o),()=>{e.classList.remove(...o)});return t=t===!0?t="":t||"",i(n(t))}function El(e,t){let r=a=>a.split(" ").filter(Boolean),n=Object.entries(t).flatMap(([a,l])=>l?r(a):!1).filter(Boolean),i=Object.entries(t).flatMap(([a,l])=>l?!1:r(a)).filter(Boolean),o=[],s=[];return i.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),n.forEach(a=>{e.classList.contains(a)||(e.classList.add(a),o.push(a))}),()=>{s.forEach(a=>e.classList.add(a)),o.forEach(a=>e.classList.remove(a))}}function Nt(e,t){return typeof t=="object"&&t!==null?Al(e,t):Cl(e,t)}function Al(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{r[n]=e.style[n],n.startsWith("--")||(n=Tl(n)),e.style.setProperty(n,i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{Nt(e,r)}}function Cl(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r||"")}}function Tl(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Nr(e,t=()=>{}){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}F("transition",(e,{value:t,modifiers:r,expression:n},{evaluate:i})=>{typeof n=="function"&&(n=i(n)),n!==!1&&(!n||typeof n=="boolean"?kl(e,r,t):Ol(e,n,t))});function Ol(e,t,r){Xi(e,Yr,""),{enter:i=>{e._x_transition.enter.during=i},"enter-start":i=>{e._x_transition.enter.start=i},"enter-end":i=>{e._x_transition.enter.end=i},leave:i=>{e._x_transition.leave.during=i},"leave-start":i=>{e._x_transition.leave.start=i},"leave-end":i=>{e._x_transition.leave.end=i}}[r](t)}function kl(e,t,r){Xi(e,Nt);let n=!t.includes("in")&&!t.includes("out")&&!r,i=n||t.includes("in")||["enter"].includes(r),o=n||t.includes("out")||["leave"].includes(r);t.includes("in")&&!n&&(t=t.filter((x,b)=>b<t.indexOf("out"))),t.includes("out")&&!n&&(t=t.filter((x,b)=>b>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),l=s||t.includes("scale"),u=a?0:1,d=l?Ze(t,"scale",95)/100:1,p=Ze(t,"delay",0)/1e3,c=Ze(t,"origin","center"),f="opacity, transform",m=Ze(t,"duration",150)/1e3,v=Ze(t,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:c,transitionDelay:`${p}s`,transitionProperty:f,transitionDuration:`${m}s`,transitionTimingFunction:g},e._x_transition.enter.start={opacity:u,transform:`scale(${d})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:c,transitionDelay:`${p}s`,transitionProperty:f,transitionDuration:`${v}s`,transitionTimingFunction:g},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:u,transform:`scale(${d})`})}function Xi(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},i=()=>{}){Rr(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=()=>{},i=()=>{}){Rr(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,n){let i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,o=()=>i(r);if(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(r):o():e._x_transition?e._x_transition.in(r):o();return}e._x_hidePromise=e._x_transition?new Promise((s,a)=>{e._x_transition.out(()=>{},()=>s(n)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let s=Yi(e);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(e)):i(()=>{let a=l=>{let u=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(a)]).then(([d])=>d());return delete l._x_hidePromise,delete l._x_hideChildren,u};a(e).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function Yi(e){let t=e.parentNode;if(!!t)return t._x_hidePromise?t:Yi(t)}function Rr(e,t,{during:r,start:n,end:i}={},o=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(n).length===0&&Object.keys(i).length===0){o(),s();return}let a,l,u;Ll(e,{start(){a=t(e,n)},during(){l=t(e,r)},before:o,end(){a(),u=t(e,i)},after:s,cleanup(){l(),u()}})}function Ll(e,t){let r,n,i,o=Nr(()=>{B(()=>{r=!0,n||t.before(),i||(t.end(),Lr()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:Nr(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},B(()=>{t.start(),t.during()}),Sl(),requestAnimationFrame(()=>{if(r)return;let s=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),B(()=>{t.before()}),n=!0,requestAnimationFrame(()=>{r||(B(()=>{t.end()}),Lr(),setTimeout(e._x_transitioning.finish,s+a),i=!0)})})}function Ze(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n||t==="scale"&&isNaN(n))return r;if(t==="duration"||t==="delay"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[n,e[e.indexOf(t)+2]].join(" "):n}var fe=!1;function Ce(e,t=()=>{}){return(...r)=>fe?t(...r):e(...r)}function Nl(e){return(...t)=>fe&&e(...t)}var Qi=[];function Rt(e){Qi.push(e)}function Rl(e,t){Qi.forEach(r=>r(e,t)),fe=!0,Zi(()=>{ne(t,(r,n)=>{n(r,()=>{})})}),fe=!1}var Pr=!1;function Pl(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),fe=!0,Pr=!0,Zi(()=>{Il(t)}),fe=!1,Pr=!1}function Il(e){let t=!1;ne(e,(n,i)=>{ce(n,(o,s)=>{if(t&&nl(o))return s();t=!0,i(o,s)})})}function Zi(e){let t=Ae;ii((r,n)=>{let i=t(r);return $e(i),()=>{}}),e(),ii(t)}function eo(e,t,r,n=[]){switch(e._x_bindings||(e._x_bindings=De({})),e._x_bindings[t]=r,t=n.includes("camel")?Hl(t):t,t){case"value":Ml(e,r);break;case"style":Dl(e,r);break;case"class":Fl(e,r);break;case"selected":case"checked":$l(e,t,r);break;default:to(e,t,r);break}}function Ml(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=Ct(e.value)===t:e.checked=ai(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(r=>ai(r,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")Ul(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function Fl(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Yr(e,t)}function Dl(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Nt(e,t)}function $l(e,t,r){to(e,t,r),jl(e,t,r)}function to(e,t,r){[null,void 0,!1].includes(r)&&ql(t)?e.removeAttribute(t):(ro(t)&&(r=t),Bl(e,t,r))}function Bl(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}function jl(e,t,r){e[t]!==r&&(e[t]=r)}function Ul(e,t){let r=[].concat(t).map(n=>n+"");Array.from(e.options).forEach(n=>{n.selected=r.includes(n.value)})}function Hl(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function ai(e,t){return e==t}function Ct(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?Boolean(e):null}function ro(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function ql(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function Wl(e,t,r){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:no(e,t,r)}function Kl(e,t,r,n=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let i=e._x_inlineBindings[t];return i.extract=n,$i(()=>_e(e,i.expression))}return no(e,t,r)}function no(e,t,r){let n=e.getAttribute(t);return n===null?typeof r=="function"?r():r:n===""?!0:ro(t)?!![t,"true"].includes(n):n}function io(e,t){var r;return function(){var n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}function oo(e,t){let r;return function(){let n=this,i=arguments;r||(e.apply(n,i),r=!0,setTimeout(()=>r=!1,t))}}function so({get:e,set:t},{get:r,set:n}){let i=!0,o,s,a=Ae(()=>{let l=e(),u=r();if(i)n(vr(l)),i=!1;else{let d=JSON.stringify(l),p=JSON.stringify(u);d!==o?n(vr(l)):d!==p&&t(vr(u))}o=JSON.stringify(e()),s=JSON.stringify(r())});return()=>{$e(a)}}function vr(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function zl(e){(Array.isArray(e)?e:[e]).forEach(r=>r(lt))}var we={},li=!1;function Vl(e,t){if(li||(we=De(we),li=!0),t===void 0)return we[e];we[e]=t,typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&we[e].init(),Mi(we[e])}function Jl(){return we}var ao={};function Gl(e,t){let r=typeof t!="function"?()=>t:t;return e instanceof Element?lo(e,r()):(ao[e]=r,()=>{})}function Xl(e){return Object.entries(ao).forEach(([t,r])=>{Object.defineProperty(e,t,{get(){return(...n)=>r(...n)}})}),e}function lo(e,t,r){let n=[];for(;n.length;)n.pop()();let i=Object.entries(t).map(([s,a])=>({name:s,value:a})),o=Ui(i);return i=i.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),Vr(e,i,r).map(s=>{n.push(s.runCleanups),s()}),()=>{for(;n.length;)n.pop()()}}var uo={};function Yl(e,t){uo[e]=t}function Ql(e,t){return Object.entries(uo).forEach(([r,n])=>{Object.defineProperty(e,r,{get(){return(...i)=>n.bind(t)(...i)},enumerable:!1})}),e}var Zl={get reactive(){return De},get release(){return $e},get effect(){return Ae},get raw(){return wi},version:"3.13.7",flushAndStopDeferringMutations:ul,dontAutoEvaluateFunctions:$i,disableEffectScheduling:Za,startObservingMutations:qr,stopObservingMutations:Pi,setReactivityEngine:el,onAttributeRemoved:Ni,onAttributesAdded:Li,closestDataStack:Me,skipDuringClone:Ce,onlyDuringClone:Nl,addRootSelector:Ei,addInitSelector:Ai,interceptClone:Rt,addScopeToNode:st,deferMutations:ll,mapAttributes:Jr,evaluateLater:U,interceptInit:il,setEvaluator:hl,mergeProxies:at,extractProp:Kl,findClosest:ot,onElRemoved:jr,closestRoot:Lt,destroyTree:Br,interceptor:Fi,transition:Rr,setStyles:Nt,mutateDom:B,directive:F,entangle:so,throttle:oo,debounce:io,evaluate:_e,initTree:ne,nextTick:Xr,prefixed:Be,prefix:bl,plugin:zl,magic:Z,store:Vl,start:rl,clone:Pl,cloneNode:Rl,bound:Wl,$data:Ii,watch:yi,walk:ce,data:Yl,bind:Gl},lt=Zl;function co(e,t){let r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}var eu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ad=co(eu+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),tu=Object.freeze({}),Cd=Object.freeze([]),ru=Object.prototype.hasOwnProperty,Pt=(e,t)=>ru.call(e,t),Se=Array.isArray,nt=e=>fo(e)==="[object Map]",nu=e=>typeof e=="string",Qr=e=>typeof e=="symbol",It=e=>e!==null&&typeof e=="object",iu=Object.prototype.toString,fo=e=>iu.call(e),po=e=>fo(e).slice(8,-1),Zr=e=>nu(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mt=e=>{let t=Object.create(null);return r=>t[r]||(t[r]=e(r))},ou=/-(\w)/g,Td=Mt(e=>e.replace(ou,(t,r)=>r?r.toUpperCase():"")),su=/\B([A-Z])/g,Od=Mt(e=>e.replace(su,"-$1").toLowerCase()),ho=Mt(e=>e.charAt(0).toUpperCase()+e.slice(1)),kd=Mt(e=>e?`on${ho(e)}`:""),mo=(e,t)=>e!==t&&(e===e||t===t),Ir=new WeakMap,et=[],ee,Ee=Symbol("iterate"),Mr=Symbol("Map key iterate");function au(e){return e&&e._isEffect===!0}function lu(e,t=tu){au(e)&&(e=e.raw);let r=fu(e,t);return t.lazy||r(),r}function uu(e){e.active&&(go(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var cu=0;function fu(e,t){let r=function(){if(!r.active)return e();if(!et.includes(r)){go(r);try{return pu(),et.push(r),ee=r,e()}finally{et.pop(),vo(),ee=et[et.length-1]}}};return r.id=cu++,r.allowRecurse=!!t.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=t,r}function go(e){let{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var Fe=!0,en=[];function du(){en.push(Fe),Fe=!1}function pu(){en.push(Fe),Fe=!0}function vo(){let e=en.pop();Fe=e===void 0?!0:e}function Q(e,t,r){if(!Fe||ee===void 0)return;let n=Ir.get(e);n||Ir.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=new Set),i.has(ee)||(i.add(ee),ee.deps.push(i),ee.options.onTrack&&ee.options.onTrack({effect:ee,target:e,type:t,key:r}))}function de(e,t,r,n,i,o){let s=Ir.get(e);if(!s)return;let a=new Set,l=d=>{d&&d.forEach(p=>{(p!==ee||p.allowRecurse)&&a.add(p)})};if(t==="clear")s.forEach(l);else if(r==="length"&&Se(e))s.forEach((d,p)=>{(p==="length"||p>=n)&&l(d)});else switch(r!==void 0&&l(s.get(r)),t){case"add":Se(e)?Zr(r)&&l(s.get("length")):(l(s.get(Ee)),nt(e)&&l(s.get(Mr)));break;case"delete":Se(e)||(l(s.get(Ee)),nt(e)&&l(s.get(Mr)));break;case"set":nt(e)&&l(s.get(Ee));break}let u=d=>{d.options.onTrigger&&d.options.onTrigger({effect:d,target:e,key:r,type:t,newValue:n,oldValue:i,oldTarget:o}),d.options.scheduler?d.options.scheduler(d):d()};a.forEach(u)}var hu=co("__proto__,__v_isRef,__isVue"),bo=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Qr)),mu=wo(),gu=wo(!0),ui=vu();function vu(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){let n=I(this);for(let o=0,s=this.length;o<s;o++)Q(n,"get",o+"");let i=n[t](...r);return i===-1||i===!1?n[t](...r.map(I)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){du();let n=I(this)[t].apply(this,r);return vo(),n}}),e}function wo(e=!1,t=!1){return function(n,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?Pu:So:t?Ru:_o).get(n))return n;let s=Se(n);if(!e&&s&&Pt(ui,i))return Reflect.get(ui,i,o);let a=Reflect.get(n,i,o);return(Qr(i)?bo.has(i):hu(i))||(e||Q(n,"get",i),t)?a:Fr(a)?!s||!Zr(i)?a.value:a:It(a)?e?Eo(a):on(a):a}}var bu=wu();function wu(e=!1){return function(r,n,i,o){let s=r[n];if(!e&&(i=I(i),s=I(s),!Se(r)&&Fr(s)&&!Fr(i)))return s.value=i,!0;let a=Se(r)&&Zr(n)?Number(n)<r.length:Pt(r,n),l=Reflect.set(r,n,i,o);return r===I(o)&&(a?mo(i,s)&&de(r,"set",n,i,s):de(r,"add",n,i)),l}}function yu(e,t){let r=Pt(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&de(e,"delete",t,void 0,n),i}function xu(e,t){let r=Reflect.has(e,t);return(!Qr(t)||!bo.has(t))&&Q(e,"has",t),r}function _u(e){return Q(e,"iterate",Se(e)?"length":Ee),Reflect.ownKeys(e)}var Su={get:mu,set:bu,deleteProperty:yu,has:xu,ownKeys:_u},Eu={get:gu,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},tn=e=>It(e)?on(e):e,rn=e=>It(e)?Eo(e):e,nn=e=>e,Ft=e=>Reflect.getPrototypeOf(e);function yt(e,t,r=!1,n=!1){e=e.__v_raw;let i=I(e),o=I(t);t!==o&&!r&&Q(i,"get",t),!r&&Q(i,"get",o);let{has:s}=Ft(i),a=n?nn:r?rn:tn;if(s.call(i,t))return a(e.get(t));if(s.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function xt(e,t=!1){let r=this.__v_raw,n=I(r),i=I(e);return e!==i&&!t&&Q(n,"has",e),!t&&Q(n,"has",i),e===i?r.has(e):r.has(e)||r.has(i)}function _t(e,t=!1){return e=e.__v_raw,!t&&Q(I(e),"iterate",Ee),Reflect.get(e,"size",e)}function ci(e){e=I(e);let t=I(this);return Ft(t).has.call(t,e)||(t.add(e),de(t,"add",e,e)),this}function fi(e,t){t=I(t);let r=I(this),{has:n,get:i}=Ft(r),o=n.call(r,e);o?xo(r,n,e):(e=I(e),o=n.call(r,e));let s=i.call(r,e);return r.set(e,t),o?mo(t,s)&&de(r,"set",e,t,s):de(r,"add",e,t),this}function di(e){let t=I(this),{has:r,get:n}=Ft(t),i=r.call(t,e);i?xo(t,r,e):(e=I(e),i=r.call(t,e));let o=n?n.call(t,e):void 0,s=t.delete(e);return i&&de(t,"delete",e,void 0,o),s}function pi(){let e=I(this),t=e.size!==0,r=nt(e)?new Map(e):new Set(e),n=e.clear();return t&&de(e,"clear",void 0,void 0,r),n}function St(e,t){return function(n,i){let o=this,s=o.__v_raw,a=I(s),l=t?nn:e?rn:tn;return!e&&Q(a,"iterate",Ee),s.forEach((u,d)=>n.call(i,l(u),l(d),o))}}function Et(e,t,r){return function(...n){let i=this.__v_raw,o=I(i),s=nt(o),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...n),d=r?nn:t?rn:tn;return!t&&Q(o,"iterate",l?Mr:Ee),{next(){let{value:p,done:c}=u.next();return c?{value:p,done:c}:{value:a?[d(p[0]),d(p[1])]:d(p),done:c}},[Symbol.iterator](){return this}}}}function ue(e){return function(...t){{let r=t[0]?`on key "${t[0]}" `:"";console.warn(`${ho(e)} operation ${r}failed: target is readonly.`,I(this))}return e==="delete"?!1:this}}function Au(){let e={get(o){return yt(this,o)},get size(){return _t(this)},has:xt,add:ci,set:fi,delete:di,clear:pi,forEach:St(!1,!1)},t={get(o){return yt(this,o,!1,!0)},get size(){return _t(this)},has:xt,add:ci,set:fi,delete:di,clear:pi,forEach:St(!1,!0)},r={get(o){return yt(this,o,!0)},get size(){return _t(this,!0)},has(o){return xt.call(this,o,!0)},add:ue("add"),set:ue("set"),delete:ue("delete"),clear:ue("clear"),forEach:St(!0,!1)},n={get(o){return yt(this,o,!0,!0)},get size(){return _t(this,!0)},has(o){return xt.call(this,o,!0)},add:ue("add"),set:ue("set"),delete:ue("delete"),clear:ue("clear"),forEach:St(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Et(o,!1,!1),r[o]=Et(o,!0,!1),t[o]=Et(o,!1,!0),n[o]=Et(o,!0,!0)}),[e,r,t,n]}var[Cu,Tu,Ou,ku]=Au();function yo(e,t){let r=t?e?ku:Ou:e?Tu:Cu;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Pt(r,i)&&i in n?r:n,i,o)}var Lu={get:yo(!1,!1)},Nu={get:yo(!0,!1)};function xo(e,t,r){let n=I(r);if(n!==r&&t.call(e,n)){let i=po(e);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="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 _o=new WeakMap,Ru=new WeakMap,So=new WeakMap,Pu=new WeakMap;function Iu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mu(e){return e.__v_skip||!Object.isExtensible(e)?0:Iu(po(e))}function on(e){return e&&e.__v_isReadonly?e:Ao(e,!1,Su,Lu,_o)}function Eo(e){return Ao(e,!0,Eu,Nu,So)}function Ao(e,t,r,n,i){if(!It(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let o=i.get(e);if(o)return o;let s=Mu(e);if(s===0)return e;let a=new Proxy(e,s===2?n:r);return i.set(e,a),a}function I(e){return e&&I(e.__v_raw)||e}function Fr(e){return Boolean(e&&e.__v_isRef===!0)}Z("nextTick",()=>Xr);Z("dispatch",e=>rt.bind(rt,e));Z("watch",(e,{evaluateLater:t,cleanup:r})=>(n,i)=>{let o=t(n),a=yi(()=>{let l;return o(u=>l=u),l},i);r(a)});Z("store",Jl);Z("data",e=>Ii(e));Z("root",e=>Lt(e));Z("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=at(Fu(e))),e._x_refs_proxy));function Fu(e){let t=[];return ot(e,r=>{r._x_refs&&t.push(r._x_refs)}),t}var br={};function Co(e){return br[e]||(br[e]=0),++br[e]}function Du(e,t){return ot(e,r=>{if(r._x_ids&&r._x_ids[t])return!0})}function $u(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Co(t))}Z("id",(e,{cleanup:t})=>(r,n=null)=>{let i=`${r}${n?`-${n}`:""}`;return Bu(e,i,t,()=>{let o=Du(e,r),s=o?o._x_ids[r]:Co(r);return n?`${r}-${s}-${n}`:`${r}-${s}`})});Rt((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Bu(e,t,r,n){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let i=n();return e._x_id[t]=i,r(()=>{delete e._x_id[t]}),i}Z("el",e=>e);To("Focus","focus","focus");To("Persist","persist","persist");function To(e,t,r){Z(t,n=>Y(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}F("modelable",(e,{expression:t},{effect:r,evaluateLater:n,cleanup:i})=>{let o=n(t),s=()=>{let d;return o(p=>d=p),d},a=n(`${t} = __placeholder`),l=d=>a(()=>{},{scope:{__placeholder:d}}),u=s();l(u),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let d=e._x_model.get,p=e._x_model.set,c=so({get(){return d()},set(f){p(f)}},{get(){return s()},set(f){l(f)}});i(c)})});F("teleport",(e,{modifiers:t,expression:r},{cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&Y("x-teleport can only be used on a <template> tag",e);let i=hi(r),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(a=>{o.addEventListener(a,l=>{l.stopPropagation(),e.dispatchEvent(new l.constructor(l.type,l))})}),st(o,{},e);let s=(a,l,u)=>{u.includes("prepend")?l.parentNode.insertBefore(a,l):u.includes("append")?l.parentNode.insertBefore(a,l.nextSibling):l.appendChild(a)};B(()=>{s(o,i,t),ne(o),o._x_ignore=!0}),e._x_teleportPutBack=()=>{let a=hi(r);B(()=>{s(e._x_teleport,a,t)})},n(()=>o.remove())});var ju=document.createElement("div");function hi(e){let t=Ce(()=>document.querySelector(e),()=>ju)();return t||Y(`Cannot find x-teleport element for selector: "${e}"`),t}var Oo=()=>{};Oo.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,r(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};F("ignore",Oo);F("effect",Ce((e,{expression:t},{effect:r})=>{r(U(e,t))}));function Dr(e,t,r,n){let i=e,o=l=>n(l),s={},a=(l,u)=>d=>u(l,d);if(r.includes("dot")&&(t=Uu(t)),r.includes("camel")&&(t=Hu(t)),r.includes("passive")&&(s.passive=!0),r.includes("capture")&&(s.capture=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("debounce")){let l=r[r.indexOf("debounce")+1]||"invalid-wait",u=kt(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=io(o,u)}if(r.includes("throttle")){let l=r[r.indexOf("throttle")+1]||"invalid-wait",u=kt(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=oo(o,u)}return r.includes("prevent")&&(o=a(o,(l,u)=>{u.preventDefault(),l(u)})),r.includes("stop")&&(o=a(o,(l,u)=>{u.stopPropagation(),l(u)})),r.includes("self")&&(o=a(o,(l,u)=>{u.target===e&&l(u)})),(r.includes("away")||r.includes("outside"))&&(i=document,o=a(o,(l,u)=>{e.contains(u.target)||u.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&l(u))})),r.includes("once")&&(o=a(o,(l,u)=>{l(u),i.removeEventListener(t,o,s)})),o=a(o,(l,u)=>{Wu(t)&&Ku(u,r)||l(u)}),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function Uu(e){return e.replace(/-/g,".")}function Hu(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function kt(e){return!Array.isArray(e)&&!isNaN(e)}function qu(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function Wu(e){return["keydown","keyup"].includes(e)}function Ku(e,t){let r=t.filter(o=>!["window","document","prevent","stop","once","capture"].includes(o));if(r.includes("debounce")){let o=r.indexOf("debounce");r.splice(o,kt((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.includes("throttle")){let o=r.indexOf("throttle");r.splice(o,kt((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&mi(e.key).includes(r[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>r.includes(o));return r=r.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===i.length&&mi(e.key).includes(r[0]))}function mi(e){if(!e)return[];e=qu(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(r=>{if(t[r]===e)return r}).filter(r=>r)}F("model",(e,{modifiers:t,expression:r},{effect:n,cleanup:i})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let s=U(o,r),a;typeof r=="string"?a=U(o,`${r} = __placeholder`):typeof r=="function"&&typeof r()=="string"?a=U(o,`${r()} = __placeholder`):a=()=>{};let l=()=>{let c;return s(f=>c=f),gi(c)?c.get():c},u=c=>{let f;s(m=>f=m),gi(f)?f.set(c):a(()=>{},{scope:{__placeholder:c}})};typeof r=="string"&&e.type==="radio"&&B(()=>{e.hasAttribute("name")||e.setAttribute("name",r)});var d=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let p=fe?()=>{}:Dr(e,d,t,c=>{u(zu(e,t,c,l()))});if(t.includes("fill")&&([void 0,null,""].includes(l())||e.type==="checkbox"&&Array.isArray(l()))&&e.dispatchEvent(new Event(d,{})),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=p,i(()=>e._x_removeModelListeners.default()),e.form){let c=Dr(e.form,"reset",[],f=>{Xr(()=>e._x_model&&e._x_model.set(e.value))});i(()=>c())}e._x_model={get(){return l()},set(c){u(c)}},e._x_forceModelUpdate=c=>{c===void 0&&typeof r=="string"&&r.match(/\./)&&(c=""),window.fromModel=!0,B(()=>eo(e,"value",c)),delete window.fromModel},n(()=>{let c=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(c)})});function zu(e,t,r,n){return B(()=>{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail!==null&&r.detail!==void 0?r.detail:r.target.value;if(e.type==="checkbox")if(Array.isArray(n)){let i=null;return t.includes("number")?i=wr(r.target.value):t.includes("boolean")?i=Ct(r.target.value):i=r.target.value,r.target.checked?n.concat([i]):n.filter(o=>!Vu(o,i))}else return r.target.checked;else return e.tagName.toLowerCase()==="select"&&e.multiple?t.includes("number")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return wr(o)}):t.includes("boolean")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return Ct(o)}):Array.from(r.target.selectedOptions).map(i=>i.value||i.text):t.includes("number")?wr(r.target.value):t.includes("boolean")?Ct(r.target.value):t.includes("trim")?r.target.value.trim():r.target.value})}function wr(e){let t=e?parseFloat(e):null;return Ju(t)?t:e}function Vu(e,t){return e==t}function Ju(e){return!Array.isArray(e)&&!isNaN(e)}function gi(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}F("cloak",e=>queueMicrotask(()=>B(()=>e.removeAttribute(Be("cloak")))));Ai(()=>`[${Be("init")}]`);F("init",Ce((e,{expression:t},{evaluate:r})=>typeof t=="string"?!!t.trim()&&r(t,{},!1):r(t,{},!1)));F("text",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{B(()=>{e.textContent=o})})})});F("html",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{B(()=>{e.innerHTML=o,e._x_ignoreSelf=!0,ne(e),delete e._x_ignoreSelf})})})});Jr(Wi(":",Ki(Be("bind:"))));var ko=(e,{value:t,modifiers:r,expression:n,original:i},{effect:o})=>{if(!t){let a={};Xl(a),U(e,n)(u=>{lo(e,u,i)},{scope:a});return}if(t==="key")return Gu(e,n);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let s=U(e,n);o(()=>s(a=>{a===void 0&&typeof n=="string"&&n.match(/\./)&&(a=""),B(()=>eo(e,t,a,r))}))};ko.inline=(e,{value:t,modifiers:r,expression:n})=>{!t||(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:n,extract:!1})};F("bind",ko);function Gu(e,t){e._x_keyExpression=t}Ei(()=>`[${Be("data")}]`);F("data",(e,{expression:t},{cleanup:r})=>{if(Xu(e))return;t=t===""?"{}":t;let n={};Ar(n,e);let i={};Ql(i,n);let o=_e(e,t,{scope:i});(o===void 0||o===!0)&&(o={}),Ar(o,e);let s=De(o);Mi(s);let a=st(e,s);s.init&&_e(e,s.init),r(()=>{s.destroy&&_e(e,s.destroy),a()})});Rt((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function Xu(e){return fe?Pr?!0:e.hasAttribute("data-has-alpine-state"):!1}F("show",(e,{modifiers:t,expression:r},{effect:n})=>{let i=U(e,r);e._x_doHide||(e._x_doHide=()=>{B(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{B(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let o=()=>{e._x_doHide(),e._x_isShown=!1},s=()=>{e._x_doShow(),e._x_isShown=!0},a=()=>setTimeout(s),l=Nr(p=>p?s():o(),p=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,p,s,o):p?a():o()}),u,d=!0;n(()=>i(p=>{!d&&p===u||(t.includes("immediate")&&(p?a():o()),l(p),u=p,d=!1)}))});F("for",(e,{expression:t},{effect:r,cleanup:n})=>{let i=Qu(t),o=U(e,i.items),s=U(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},r(()=>Yu(e,i,o,s)),n(()=>{Object.values(e._x_lookup).forEach(a=>a.remove()),delete e._x_prevKeys,delete e._x_lookup})});function Yu(e,t,r,n){let i=s=>typeof s=="object"&&!Array.isArray(s),o=e;r(s=>{Zu(s)&&s>=0&&(s=Array.from(Array(s).keys(),g=>g+1)),s===void 0&&(s=[]);let a=e._x_lookup,l=e._x_prevKeys,u=[],d=[];if(i(s))s=Object.entries(s).map(([g,x])=>{let b=vi(t,x,g,s);n(_=>{d.includes(_)&&Y("Duplicate key on x-for",e),d.push(_)},{scope:{index:g,...b}}),u.push(b)});else for(let g=0;g<s.length;g++){let x=vi(t,s[g],g,s);n(b=>{d.includes(b)&&Y("Duplicate key on x-for",e),d.push(b)},{scope:{index:g,...x}}),u.push(x)}let p=[],c=[],f=[],m=[];for(let g=0;g<l.length;g++){let x=l[g];d.indexOf(x)===-1&&f.push(x)}l=l.filter(g=>!f.includes(g));let v="template";for(let g=0;g<d.length;g++){let x=d[g],b=l.indexOf(x);if(b===-1)l.splice(g,0,x),p.push([v,g]);else if(b!==g){let _=l.splice(g,1)[0],O=l.splice(b-1,1)[0];l.splice(g,0,O),l.splice(b,0,_),c.push([_,O])}else m.push(x);v=x}for(let g=0;g<f.length;g++){let x=f[g];a[x]._x_effects&&a[x]._x_effects.forEach(bi),a[x].remove(),a[x]=null,delete a[x]}for(let g=0;g<c.length;g++){let[x,b]=c[g],_=a[x],O=a[b],T=document.createElement("div");B(()=>{O||Y('x-for ":key" is undefined or invalid',o,b,a),O.after(T),_.after(O),O._x_currentIfEl&&O.after(O._x_currentIfEl),T.before(_),_._x_currentIfEl&&_.after(_._x_currentIfEl),T.remove()}),O._x_refreshXForScope(u[d.indexOf(b)])}for(let g=0;g<p.length;g++){let[x,b]=p[g],_=x==="template"?o:a[x];_._x_currentIfEl&&(_=_._x_currentIfEl);let O=u[b],T=d[b],w=document.importNode(o.content,!0).firstElementChild,h=De(O);st(w,h,o),w._x_refreshXForScope=y=>{Object.entries(y).forEach(([C,L])=>{h[C]=L})},B(()=>{_.after(w),Ce(()=>ne(w))()}),typeof T=="object"&&Y("x-for key cannot be an object, it must be a string or an integer",o),a[T]=w}for(let g=0;g<m.length;g++)a[m[g]]._x_refreshXForScope(u[d.indexOf(m[g])]);o._x_prevKeys=d})}function Qu(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(n);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(r,"").trim(),a=s.match(t);return a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function vi(e,t,r,n){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=t[a]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{i[s]=t[s]}):i[e.item]=t,e.index&&(i[e.index]=r),e.collection&&(i[e.collection]=n),i}function Zu(e){return!Array.isArray(e)&&!isNaN(e)}function Lo(){}Lo.inline=(e,{expression:t},{cleanup:r})=>{let n=Lt(e);n._x_refs||(n._x_refs={}),n._x_refs[t]=e,r(()=>delete n._x_refs[t])};F("ref",Lo);F("if",(e,{expression:t},{effect:r,cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&Y("x-if can only be used on a <template> tag",e);let i=U(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return st(a,{},e),B(()=>{e.after(a),Ce(()=>ne(a))()}),e._x_currentIfEl=a,e._x_undoIf=()=>{ce(a,l=>{l._x_effects&&l._x_effects.forEach(bi)}),a.remove(),delete e._x_currentIfEl},a},s=()=>{!e._x_undoIf||(e._x_undoIf(),delete e._x_undoIf)};r(()=>i(a=>{a?o():s()})),n(()=>e._x_undoIf&&e._x_undoIf())});F("id",(e,{expression:t},{evaluate:r})=>{r(t).forEach(i=>$u(e,i))});Rt((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});Jr(Wi("@",Ki(Be("on:"))));F("on",Ce((e,{value:t,modifiers:r,expression:n},{cleanup:i})=>{let o=n?U(e,n):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=Dr(e,t,r,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));Dt("Collapse","collapse","collapse");Dt("Intersect","intersect","intersect");Dt("Focus","trap","focus");Dt("Mask","mask","mask");function Dt(e,t,r){F(t,n=>Y(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}lt.setEvaluator(ji);lt.setReactivityEngine({reactive:on,effect:lu,release:uu,raw:I});var ec=lt,S=ec;function sn(e,t){return t||(t=()=>{}),(r,n=!1)=>{let i=n,o=r,s=e.$wire,a=s.get(o);return S.interceptor((u,d,p,c,f)=>{if(typeof a>"u"){console.error(`Livewire Entangle Error: Livewire property ['${o}'] cannot be found on component: ['${e.name}']`);return}let m=S.entangle({get(){return s.get(r)},set(v){s.set(r,v,i)}},{get(){return d()},set(v){p(v)}});return t(()=>m()),tc(s.get(r))},u=>{Object.defineProperty(u,"live",{get(){return i=!0,u}})})(a)}}function tc(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}var Te=[];function k(e,t){return Te[e]||(Te[e]=[]),Te[e].push(t),()=>{Te[e]=Te[e].filter(r=>r!==t)}}function R(e,...t){let r=Te[e]||[],n=[];for(let i=0;i<r.length;i++){let o=r[i](...t);pr(o)&&n.push(o)}return i=>No(n,i)}async function $t(e,...t){let r=Te[e]||[],n=[];for(let i=0;i<r.length;i++){let o=await r[i](...t);pr(o)&&n.push(o)}return i=>No(n,i)}function No(e,t){let r=t;for(let n=0;n<e.length;n++){let i=e[n](r);i!==void 0&&(r=i)}return r}function an(e){let t=document.createElement("html");t.innerHTML=e,t.querySelectorAll("a").forEach(i=>i.setAttribute("target","_top"));let r=document.getElementById("livewire-error");typeof r<"u"&&r!=null?r.innerHTML="":(r=document.createElement("div"),r.id="livewire-error",r.style.position="fixed",r.style.width="100vw",r.style.height="100vh",r.style.padding="50px",r.style.backgroundColor="rgba(0, 0, 0, .6)",r.style.zIndex=2e5);let n=document.createElement("iframe");n.style.backgroundColor="#17161A",n.style.borderRadius="5px",n.style.width="100%",n.style.height="100%",r.appendChild(n),document.body.prepend(r),document.body.style.overflow="hidden",n.contentWindow.document.open(),n.contentWindow.document.write(t.outerHTML),n.contentWindow.document.close(),r.addEventListener("click",()=>Ro(r)),r.setAttribute("tabindex",0),r.addEventListener("keydown",i=>{i.key==="Escape"&&Ro(r)}),r.focus()}function Ro(e){e.outerHTML="",document.body.style.overflow="visible"}var Bt=class{constructor(){this.commits=new Set}add(t){this.commits.add(t)}delete(t){this.commits.delete(t)}hasCommitFor(t){return!!this.findCommitByComponent(t)}findCommitByComponent(t){for(let[r,n]of this.commits.entries())if(n.component===t)return n}shouldHoldCommit(t){return!t.isolate}empty(){return this.commits.size===0}async send(){this.prepare(),await Po(this)}prepare(){this.commits.forEach(t=>t.prepare())}payload(){let t=[],r=[],n=[];return this.commits.forEach(s=>{let[a,l,u]=s.toRequestPayload();t.push(a),r.push(l),n.push(u)}),[t,s=>r.forEach(a=>a(s.shift())),()=>n.forEach(s=>s())]}};var jt=class{constructor(t){this.component=t,this.isolate=!1,this.calls=[],this.receivers=[],this.resolvers=[]}addResolver(t){this.resolvers.push(t)}addCall(t,r,n){this.calls.push({path:"",method:t,params:r,handleReturn(i){n(i)}})}prepare(){R("commit.prepare",{component:this.component})}toRequestPayload(){let t=Ge(this.component.canonical,this.component.ephemeral),r=this.component.mergeQueuedUpdates(t),n={snapshot:this.component.snapshotEncoded,updates:r,calls:this.calls.map(f=>({path:f.path,method:f.method,params:f.params}))},i=[],o=[],s=[],a=f=>i.forEach(m=>m(f)),l=()=>o.forEach(f=>f()),u=()=>s.forEach(f=>f()),d=R("commit",{component:this.component,commit:n,succeed:f=>{i.push(f)},fail:f=>{o.push(f)},respond:f=>{s.push(f)}});return[n,f=>{let{snapshot:m,effects:v}=f;if(u(),this.component.mergeNewSnapshot(m,v,r),this.component.processEffects(this.component.effects),v.returns){let x=v.returns;this.calls.map(({handleReturn:_})=>_).forEach((_,O)=>{_(x[O])})}let g=JSON.parse(m);d({snapshot:g,effects:v}),this.resolvers.forEach(x=>x()),a(f)},()=>{u(),l()}]}};var Ut=class{constructor(){this.commits=new Set,this.pools=new Set}add(t){let r=this.findCommitOr(t,()=>{let n=new jt(t);return this.commits.add(n),n});return rc(r,()=>{this.findPoolWithComponent(r.component)||this.createAndSendNewPool()}),r}findCommitOr(t,r){for(let[n,i]of this.commits.entries())if(i.component===t)return i;return r()}findPoolWithComponent(t){for(let[r,n]of this.pools.entries())if(n.hasCommitFor(t))return n}createAndSendNewPool(){R("commit.pooling",{commits:this.commits});let t=this.corraleCommitsIntoPools();this.commits.clear(),R("commit.pooled",{pools:t}),t.forEach(r=>{r.empty()||(this.pools.add(r),r.send().then(()=>{this.pools.delete(r),this.sendAnyQueuedCommits()}))})}corraleCommitsIntoPools(){let t=new Set;for(let[r,n]of this.commits.entries()){let i=!1;if(t.forEach(o=>{o.shouldHoldCommit(n)&&(o.add(n),i=!0)}),!i){let o=new Bt;o.add(n),t.add(o)}}return t}sendAnyQueuedCommits(){this.commits.size>0&&this.createAndSendNewPool()}},ln=new WeakMap;function rc(e,t){ln.has(e)||ln.set(e,setTimeout(()=>{t(),ln.delete(e)},5))}var Io=new Ut;async function un(e){let t=Io.add(e),r=new Promise(n=>{t.addResolver(n)});return r.commit=t,r}async function Mo(e,t,r){let n=Io.add(e),i=new Promise(o=>{n.addCall(t,r,s=>o(s))});return i.commit=n,i}async function Po(e){let[t,r,n]=e.payload(),i={method:"POST",body:JSON.stringify({_token:bt(),components:t}),headers:{"Content-type":"application/json","X-Livewire":""}},o=[],s=[],a=[],l=b=>o.forEach(_=>_(b)),u=b=>s.forEach(_=>_(b)),d=b=>a.forEach(_=>_(b)),p=R("request.profile",i),c=Yn();R("request",{url:c,options:i,payload:i.body,respond:b=>a.push(b),succeed:b=>o.push(b),fail:b=>s.push(b)});let f;try{f=await fetch(c,i)}catch{p({content:"{}",failed:!0}),n(),u({status:503,content:null,preventDefault:()=>{}});return}let m={status:f.status,response:f};d(m),f=m.response;let v=await f.text();if(!f.ok){p({content:"{}",failed:!0});let b=!1;return n(),u({status:f.status,content:v,preventDefault:()=>b=!0}),b?void 0:(f.status===419&&nc(),ic(v))}if(f.redirected&&(window.location.href=f.url),wt(v)){let b;[b,v]=Qn(v),an(b),p({content:"{}",failed:!0})}else p({content:v,failed:!1});let{components:g,assets:x}=JSON.parse(v);await $t("payload.intercept",{components:g,assets:x}),await r(g),l({status:f.status,json:JSON.parse(v)})}function nc(){confirm(`This page has expired.
+Would you like to refresh the page?`)&&window.location.reload()}function ic(e){an(e)}var fn={},$o;function D(e,t,r=null){fn[e]=t}function oc(e){$o=e}var Fo={on:"$on",el:"$el",id:"$id",get:"$get",set:"$set",call:"$call",commit:"$commit",watch:"$watch",entangle:"$entangle",dispatch:"$dispatch",dispatchTo:"$dispatchTo",dispatchSelf:"$dispatchSelf",upload:"$upload",uploadMultiple:"$uploadMultiple",removeUpload:"$removeUpload",cancelUpload:"$cancelUpload"};function Bo(e,t){return new Proxy({},{get(r,n){if(n==="__instance")return e;if(n in Fo)return Do(e,Fo[n]);if(n in fn)return Do(e,n);if(n in t)return t[n];if(!["then"].includes(n))return sc(e)(n)},set(r,n,i){return n in t&&(t[n]=i),!0}})}function Do(e,t){return fn[t](e)}function sc(e){return $o(e)}S.magic("wire",(e,{cleanup:t})=>{let r;return new Proxy({},{get(n,i){return r||(r=z(e)),["$entangle","entangle"].includes(i)?sn(r,t):r.$wire[i]},set(n,i,o){return r||(r=z(e)),r.$wire[i]=o,!0}})});D("__instance",e=>e);D("$get",e=>(t,r=!0)=>W(r?e.reactive:e.ephemeral,t));D("$el",e=>e.el);D("$id",e=>e.id);D("$set",e=>async(t,r,n=!0)=>(ve(e.reactive,t,r),n?(e.queueUpdate(t,r),await un(e)):Promise.resolve()));D("$call",e=>async(t,...r)=>await e.$wire[t](...r));D("$entangle",e=>(t,r=!1)=>sn(e)(t,r));D("$toggle",e=>(t,r=!0)=>e.$wire.set(t,!e.$wire.get(t),r));D("$watch",e=>(t,r)=>{let n=!0,i;S.effect(()=>{let o=W(e.reactive,t);JSON.stringify(o),n?i=o:queueMicrotask(()=>{r(o,i),i=o}),n=!1})});D("$refresh",e=>e.$wire.$commit);D("$commit",e=>async()=>await un(e));D("$on",e=>(...t)=>Uo(e,...t));D("$dispatch",e=>(...t)=>Ht(e,...t));D("$dispatchSelf",e=>(...t)=>ie(e,...t));D("$dispatchTo",()=>(...e)=>Ue(...e));D("$upload",e=>(...t)=>ei(e,...t));D("$uploadMultiple",e=>(...t)=>ti(e,...t));D("$removeUpload",e=>(...t)=>ri(e,...t));D("$cancelUpload",e=>(...t)=>ni(e,...t));var cn=new WeakMap;D("$parent",e=>{if(cn.has(e))return cn.get(e).$wire;let t=z(e.el.parentElement);return cn.set(e,t),t.$wire});var je=new WeakMap;function jo(e,t,r){je.has(e)||je.set(e,{});let n=je.get(e);n[t]=r,je.set(e,n)}oc(e=>t=>async(...r)=>{if(r.length===1&&r[0]instanceof Event&&(r=[]),je.has(e)){let n=je.get(e);if(typeof n[t]=="function")return n[t](r)}return await Mo(e,t,r)});var qt=class{constructor(t){if(t.__livewire)throw"Component already initialized";if(t.__livewire=this,this.el=t,this.id=t.getAttribute("wire:id"),this.__livewireId=this.id,this.snapshotEncoded=t.getAttribute("wire:snapshot"),this.snapshot=JSON.parse(this.snapshotEncoded),!this.snapshot)throw"Snapshot missing on Livewire component with id: "+this.id;this.name=this.snapshot.memo.name,this.effects=JSON.parse(t.getAttribute("wire:effects")),this.originalEffects=le(this.effects),this.canonical=be(le(this.snapshot.data)),this.ephemeral=be(le(this.snapshot.data)),this.reactive=Alpine.reactive(this.ephemeral),this.queuedUpdates={},this.$wire=Bo(this,this.reactive),this.cleanups=[],this.processEffects(this.effects)}mergeNewSnapshot(t,r,n={}){let i=JSON.parse(t),o=le(this.canonical),s=this.applyUpdates(o,n),a=be(le(i.data)),l=Ge(s,a);this.snapshotEncoded=t,this.snapshot=i,this.effects=r,this.canonical=be(le(i.data));let u=be(le(i.data));return Object.entries(l).forEach(([d,p])=>{let c=d.split(".")[0];this.reactive[c]=u[c]}),l}queueUpdate(t,r){this.queuedUpdates[t]=r}mergeQueuedUpdates(t){return Object.entries(this.queuedUpdates).forEach(([r,n])=>{Object.entries(t).forEach(([i,o])=>{i.startsWith(n)&&delete t[i]}),t[r]=n}),this.queuedUpdates=[],t}applyUpdates(t,r){for(let n in r)ve(t,n,r[n]);return t}replayUpdate(t,r){let n={...this.effects,html:r};this.mergeNewSnapshot(JSON.stringify(t),n),this.processEffects({html:r})}processEffects(t){R("effects",this,t),R("effect",{component:this,effects:t,cleanup:r=>this.addCleanup(r)})}get children(){let t=this.snapshot.memo;return Object.values(t.children).map(n=>n[1]).map(n=>Ho(n))}inscribeSnapshotAndEffectsOnElement(){let t=this.el;t.setAttribute("wire:snapshot",this.snapshotEncoded);let r=this.originalEffects.listeners?{listeners:this.originalEffects.listeners}:{};this.originalEffects.url&&(r.url=this.originalEffects.url),t.setAttribute("wire:effects",JSON.stringify(r))}addCleanup(t){this.cleanups.push(t)}cleanup(){for(delete this.el.__livewire;this.cleanups.length>0;)this.cleanups.pop()()}};var oe={};function qo(e){let t=new qt(e);if(oe[t.id])throw"Component already registered";return R("component.init",{component:t,cleanup:n=>t.addCleanup(n)}),oe[t.id]=t,t}function Wo(e){let t=oe[e];!t||(t.cleanup(),delete oe[e])}function Ho(e){let t=oe[e];if(!t)throw"Component not found: "+e;return t}function z(e,t=!0){let r=Alpine.findClosest(e,n=>n.__livewire);if(!r){if(t)throw"Could not find Livewire component in DOM tree";return}return r.__livewire}function dn(e){return Object.values(oe).filter(t=>e==t.name)}function Ko(e){return dn(e).map(t=>t.$wire)}function zo(e){let t=oe[e];return t&&t.$wire}function Vo(){return Object.values(oe)[0].$wire}function Jo(){return Object.values(oe)}function Ht(e,t,r){Wt(e.el,t,r)}function Go(e,t){Wt(window,e,t)}function ie(e,t,r){Wt(e.el,t,r,!1)}function Ue(e,t,r){dn(e).forEach(i=>{Wt(i.el,t,r,!1)})}function Uo(e,t,r){e.el.addEventListener(t,n=>{r(n.detail)})}function Xo(e,t){let r=n=>{!n.__livewire||t(n.detail)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}}function Wt(e,t,r,n=!0){let i=new CustomEvent(t,{bubbles:n,detail:r});i.__livewire={name:t,params:r,receivedBy:[]},e.dispatchEvent(i)}function He(e){return e.match(new RegExp("wire:"))}function Kt(e,t){let[r,...n]=t.replace(new RegExp("wire:"),"").split(".");return new hn(r,n,t,e)}function M(e,t){k("directive.init",({el:r,component:n,directive:i,cleanup:o})=>{i.value===e&&t({el:r,directive:i,component:n,cleanup:o})})}function pe(e){return new pn(e)}var pn=class{constructor(t){this.el=t,this.directives=this.extractTypeModifiersAndValue()}all(){return this.directives}has(t){return this.directives.map(r=>r.value).includes(t)}missing(t){return!this.has(t)}get(t){return this.directives.find(r=>r.value===t)}extractTypeModifiersAndValue(){return Array.from(this.el.getAttributeNames().filter(t=>He(t)).map(t=>Kt(this.el,t)))}},hn=class{constructor(t,r,n,i){this.rawName=this.raw=n,this.el=i,this.eventContext,this.value=t,this.modifiers=r,this.expression=this.el.getAttribute(this.rawName)}get method(){let{method:t}=this.parseOutMethodAndParams(this.expression);return t}get params(){let{params:t}=this.parseOutMethodAndParams(this.expression);return t}parseOutMethodAndParams(t){let r=t,n=[],i=r.match(/(.*?)\((.*)\)/s);return i&&(r=i[1],n=new Function("$event",`return (function () {
                 for (var l=arguments.length, p=new Array(l), k=0; k<l; k++) {
                     p[k] = arguments[k];
                 }
                 return [].concat(p);
-            })(${i[2]})`)(this.eventContext)),{method:r,params:n}}};function ac(e){e.directive("collapse",t),t.inline=(r,{modifiers:n})=>{!n.includes("min")||(r._x_doShow=()=>{},r._x_doHide=()=>{})};function t(r,{modifiers:n}){let i=Yo(n,"duration",250)/1e3,o=Yo(n,"min",0),s=!n.includes("min");r._x_isShown||(r.style.height=`${o}px`),!r._x_isShown&&s&&(r.hidden=!0),r._x_isShown||(r.style.overflow="hidden");let a=(u,d)=>{let p=e.setStyles(u,d);return d.height?()=>{}:p},l={transitionProperty:"height",transitionDuration:`${i}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};r._x_transition={in(u=()=>{},d=()=>{}){s&&(r.hidden=!1),s&&(r.style.display=null);let p=r.getBoundingClientRect().height;r.style.height="auto";let c=r.getBoundingClientRect().height;p===c&&(p=o),e.transition(r,e.setStyles,{during:l,start:{height:p+"px"},end:{height:c+"px"}},()=>r._x_isShown=!0,()=>{r.getBoundingClientRect().height==c&&(r.style.overflow=null)})},out(u=()=>{},d=()=>{}){let p=r.getBoundingClientRect().height;e.transition(r,a,{during:l,start:{height:p+"px"},end:{height:o+"px"}},()=>r.style.overflow="hidden",()=>{r._x_isShown=!1,r.style.height==`${o}px`&&s&&(r.style.display="none",r.hidden=!0)})}}}}function Yo(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n)return r;if(t==="duration"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}if(t==="min"){let i=n.match(/([0-9]+)px/);if(i)return i[1]}return n}var Qo=ac;var ss=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Gt=ss.join(","),as=typeof Element>"u",Oe=as?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,mn=!as&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},ls=function(t,r,n){var i=Array.prototype.slice.apply(t.querySelectorAll(Gt));return r&&Oe.call(t,Gt)&&i.unshift(t),i=i.filter(n),i},us=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,u=e(l,!0,n);n.flatten?i.push.apply(i,u):i.push({scope:s,candidates:u})}else{var d=Oe.call(s,Gt);d&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var p=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),c=!n.shadowRootFilter||n.shadowRootFilter(s);if(p&&c){var f=e(p===!0?s.children:p.children,!0,n);n.flatten?i.push.apply(i,f):i.push({scope:s,candidates:f})}else o.unshift.apply(o,s.children)}}return i},cs=function(t,r){return t.tabIndex<0&&(r||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},lc=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},fs=function(t){return t.tagName==="INPUT"},uc=function(t){return fs(t)&&t.type==="hidden"},cc=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},fc=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},dc=function(t){if(!t.name)return!0;var r=t.form||mn(t),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(t.name));else try{i=n(t.name)}catch(s){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",s.message),!1}var o=fc(i,t.form);return!o||o===t},pc=function(t){return fs(t)&&t.type==="radio"},hc=function(t){return pc(t)&&!dc(t)},Zo=function(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},mc=function(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=Oe.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(Oe.call(s,"details:not([open]) *"))return!0;var a=mn(t).host,l=a?.ownerDocument.contains(a)||t.ownerDocument.contains(t);if(!n||n==="full"){if(typeof i=="function"){for(var u=t;t;){var d=t.parentElement,p=mn(t);if(d&&!d.shadowRoot&&i(d)===!0)return Zo(t);t.assignedSlot?t=t.assignedSlot:!d&&p!==t.ownerDocument?t=p.host:t=d}t=u}if(l)return!t.getClientRects().length}else if(n==="non-zero-area")return Zo(t);return!1},gc=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return Oe.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},Xt=function(t,r){return!(r.disabled||uc(r)||mc(r,t)||cc(r)||gc(r))},gn=function(t,r){return!(hc(r)||cs(r)<0||!Xt(t,r))},vc=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},bc=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scope,a=s?i.scope:i,l=cs(a,s),u=s?e(i.candidates):a;l===0?s?r.push.apply(r,u):r.push(a):n.push({documentOrder:o,tabIndex:l,item:i,isScope:s,content:u})}),n.sort(lc).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},wc=function(t,r){r=r||{};var n;return r.getShadowRoot?n=us([t],r.includeContainer,{filter:gn.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:vc}):n=ls(t,r.includeContainer,gn.bind(null,r)),bc(n)},ds=function(t,r){r=r||{};var n;return r.getShadowRoot?n=us([t],r.includeContainer,{filter:Xt.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=ls(t,r.includeContainer,Xt.bind(null,r)),n},zt=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Oe.call(t,Gt)===!1?!1:gn(r,t)},yc=ss.concat("iframe").join(","),Jt=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Oe.call(t,yc)===!1?!1:Xt(r,t)};function es(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ts(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?es(Object(r),!0).forEach(function(n){xc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):es(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var rs=function(){var e=[];return{activateTrap:function(r){if(e.length>0){var n=e[e.length-1];n!==r&&n.pause()}var i=e.indexOf(r);i===-1||e.splice(i,1),e.push(r)},deactivateTrap:function(r){var n=e.indexOf(r);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}}}(),_c=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Sc=function(t){return t.key==="Escape"||t.key==="Esc"||t.keyCode===27},Ec=function(t){return t.key==="Tab"||t.keyCode===9},ns=function(t){return setTimeout(t,0)},is=function(t,r){var n=-1;return t.every(function(i,o){return r(i)?(n=o,!1):!0}),n},ut=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,n):t},Vt=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Ac=function(t,r){var n=r?.document||document,i=ts({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},r),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s,a=function(w,h,y){return w&&w[h]!==void 0?w[h]:i[y||h]},l=function(w){return o.containerGroups.findIndex(function(h){var y=h.container,C=h.tabbableNodes;return y.contains(w)||C.find(function(L){return L===w})})},u=function(w){var h=i[w];if(typeof h=="function"){for(var y=arguments.length,C=new Array(y>1?y-1:0),L=1;L<y;L++)C[L-1]=arguments[L];h=h.apply(void 0,C)}if(h===!0&&(h=void 0),!h){if(h===void 0||h===!1)return h;throw new Error("`".concat(w,"` was specified but was not a node, or did not return a node"))}var A=h;if(typeof h=="string"&&(A=n.querySelector(h),!A))throw new Error("`".concat(w,"` as selector refers to no known node"));return A},d=function(){var w=u("initialFocus");if(w===!1)return!1;if(w===void 0)if(l(n.activeElement)>=0)w=n.activeElement;else{var h=o.tabbableGroups[0],y=h&&h.firstTabbableNode;w=y||u("fallbackFocus")}if(!w)throw new Error("Your focus-trap needs to have at least one focusable element");return w},p=function(){if(o.containerGroups=o.containers.map(function(w){var h=wc(w,i.tabbableOptions),y=ds(w,i.tabbableOptions);return{container:w,tabbableNodes:h,focusableNodes:y,firstTabbableNode:h.length>0?h[0]:null,lastTabbableNode:h.length>0?h[h.length-1]:null,nextTabbableNode:function(L){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,E=y.findIndex(function(U){return U===L});if(!(E<0))return A?y.slice(E+1).find(function(U){return zt(U,i.tabbableOptions)}):y.slice(0,E).reverse().find(function(U){return zt(U,i.tabbableOptions)})}}}),o.tabbableGroups=o.containerGroups.filter(function(w){return w.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},c=function T(w){if(w!==!1&&w!==n.activeElement){if(!w||!w.focus){T(d());return}w.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=w,_c(w)&&w.select()}},f=function(w){var h=u("setReturnFocus",w);return h||(h===!1?!1:w)},m=function(w){var h=Vt(w);if(!(l(h)>=0)){if(ut(i.clickOutsideDeactivates,w)){s.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Jt(h,i.tabbableOptions)});return}ut(i.allowOutsideClick,w)||w.preventDefault()}},v=function(w){var h=Vt(w),y=l(h)>=0;y||h instanceof Document?y&&(o.mostRecentlyFocusedNode=h):(w.stopImmediatePropagation(),c(o.mostRecentlyFocusedNode||d()))},g=function(w){var h=Vt(w);p();var y=null;if(o.tabbableGroups.length>0){var C=l(h),L=C>=0?o.containerGroups[C]:void 0;if(C<0)w.shiftKey?y=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:y=o.tabbableGroups[0].firstTabbableNode;else if(w.shiftKey){var A=is(o.tabbableGroups,function(H){var ge=H.firstTabbableNode;return h===ge});if(A<0&&(L.container===h||Jt(h,i.tabbableOptions)&&!zt(h,i.tabbableOptions)&&!L.nextTabbableNode(h,!1))&&(A=C),A>=0){var E=A===0?o.tabbableGroups.length-1:A-1,U=o.tabbableGroups[E];y=U.lastTabbableNode}}else{var P=is(o.tabbableGroups,function(H){var ge=H.lastTabbableNode;return h===ge});if(P<0&&(L.container===h||Jt(h,i.tabbableOptions)&&!zt(h,i.tabbableOptions)&&!L.nextTabbableNode(h))&&(P=C),P>=0){var $=P===o.tabbableGroups.length-1?0:P+1,q=o.tabbableGroups[$];y=q.firstTabbableNode}}}else y=u("fallbackFocus");y&&(w.preventDefault(),c(y))},x=function(w){if(Sc(w)&&ut(i.escapeDeactivates,w)!==!1){w.preventDefault(),s.deactivate();return}if(Ec(w)){g(w);return}},b=function(w){var h=Vt(w);l(h)>=0||ut(i.clickOutsideDeactivates,w)||ut(i.allowOutsideClick,w)||(w.preventDefault(),w.stopImmediatePropagation())},_=function(){if(!!o.active)return rs.activateTrap(s),o.delayInitialFocusTimer=i.delayInitialFocus?ns(function(){c(d())}):c(d()),n.addEventListener("focusin",v,!0),n.addEventListener("mousedown",m,{capture:!0,passive:!1}),n.addEventListener("touchstart",m,{capture:!0,passive:!1}),n.addEventListener("click",b,{capture:!0,passive:!1}),n.addEventListener("keydown",x,{capture:!0,passive:!1}),s},O=function(){if(!!o.active)return n.removeEventListener("focusin",v,!0),n.removeEventListener("mousedown",m,!0),n.removeEventListener("touchstart",m,!0),n.removeEventListener("click",b,!0),n.removeEventListener("keydown",x,!0),s};return s={get active(){return o.active},get paused(){return o.paused},activate:function(w){if(o.active)return this;var h=a(w,"onActivate"),y=a(w,"onPostActivate"),C=a(w,"checkCanFocusTrap");C||p(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=n.activeElement,h&&h();var L=function(){C&&p(),_(),y&&y()};return C?(C(o.containers.concat()).then(L,L),this):(L(),this)},deactivate:function(w){if(!o.active)return this;var h=ts({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},w);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,O(),o.active=!1,o.paused=!1,rs.deactivateTrap(s);var y=a(h,"onDeactivate"),C=a(h,"onPostDeactivate"),L=a(h,"checkCanReturnFocus"),A=a(h,"returnFocus","returnFocusOnDeactivate");y&&y();var E=function(){ns(function(){A&&c(f(o.nodeFocusedBeforeActivation)),C&&C()})};return A&&L?(L(f(o.nodeFocusedBeforeActivation)).then(E,E),this):(E(),this)},pause:function(){return o.paused||!o.active?this:(o.paused=!0,O(),this)},unpause:function(){return!o.paused||!o.active?this:(o.paused=!1,p(),_(),this)},updateContainerElements:function(w){var h=[].concat(w).filter(Boolean);return o.containers=h.map(function(y){return typeof y=="string"?n.querySelector(y):y}),o.active&&p(),this}},s.updateContainerElements(t),s};function Cc(e){let t,r;window.addEventListener("focusin",()=>{t=r,r=document.activeElement}),e.magic("focus",n=>{let i=n;return{__noscroll:!1,__wrapAround:!1,within(o){return i=o,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(o){return Jt(o)},previouslyFocused(){return t},lastFocused(){return t},focused(){return r},focusables(){return Array.isArray(i)?i:ds(i,{displayCheck:"none"})},all(){return this.focusables()},isFirst(o){let s=this.all();return s[0]&&s[0].isSameNode(o)},isLast(o){let s=this.all();return s.length&&s.slice(-1)[0].isSameNode(o)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let o=this.all(),s=document.activeElement;if(o.indexOf(s)!==-1)return this.__wrapAround&&o.indexOf(s)===o.length-1?o[0]:o[o.indexOf(s)+1]},getPrevious(){let o=this.all(),s=document.activeElement;if(o.indexOf(s)!==-1)return this.__wrapAround&&o.indexOf(s)===0?o.slice(-1)[0]:o[o.indexOf(s)-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(o){!o||setTimeout(()=>{o.hasAttribute("tabindex")||o.setAttribute("tabindex","0"),o.focus({preventScroll:this.__noscroll})})}}}),e.directive("trap",e.skipDuringClone((n,{expression:i,modifiers:o},{effect:s,evaluateLater:a,cleanup:l})=>{let u=a(i),d=!1,p={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>n};if(o.includes("noautofocus"))p.initialFocus=!1;else{let g=n.querySelector("[autofocus]");g&&(p.initialFocus=g)}let c=Ac(n,p),f=()=>{},m=()=>{},v=()=>{f(),f=()=>{},m(),m=()=>{},c.deactivate({returnFocus:!o.includes("noreturn")})};s(()=>u(g=>{d!==g&&(g&&!d&&(o.includes("noscroll")&&(m=Tc()),o.includes("inert")&&(f=os(n)),setTimeout(()=>{c.activate()},15)),!g&&d&&v(),d=!!g)})),l(v)},(n,{expression:i,modifiers:o},{evaluate:s})=>{o.includes("inert")&&s(i)&&os(n)}))}function os(e){let t=[];return ps(e,r=>{let n=r.hasAttribute("aria-hidden");r.setAttribute("aria-hidden","true"),t.push(()=>n||r.removeAttribute("aria-hidden"))}),()=>{for(;t.length;)t.pop()()}}function ps(e,t){e.isSameNode(document.body)||!e.parentNode||Array.from(e.parentNode.children).forEach(r=>{r.isSameNode(e)?ps(e.parentNode,t):t(r)})}function Tc(){let e=document.documentElement.style.overflow,t=document.documentElement.style.paddingRight,r=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${r}px`,()=>{document.documentElement.style.overflow=e,document.documentElement.style.paddingRight=t}}var hs=Cc;function Oc(e){let t=()=>{let r,n;try{n=localStorage}catch(i){console.error(i),console.warn("Alpine: $persist is using temporary storage since localStorage is unavailable.");let o=new Map;n={getItem:o.get.bind(o),setItem:o.set.bind(o)}}return e.interceptor((i,o,s,a,l)=>{let u=r||`_x_${a}`,d=ms(u,n)?gs(u,n):i;return s(d),e.effect(()=>{let p=o();vs(u,p,n),s(p)}),d},i=>{i.as=o=>(r=o,i),i.using=o=>(n=o,i)})};Object.defineProperty(e,"$persist",{get:()=>t()}),e.magic("persist",t),e.persist=(r,{get:n,set:i},o=localStorage)=>{let s=ms(r,o)?gs(r,o):n();i(s),e.effect(()=>{let a=n();vs(r,a,o),i(a)})}}function ms(e,t){return t.getItem(e)!==null}function gs(e,t){return JSON.parse(t.getItem(e,t))}function vs(e,t,r){r.setItem(e,JSON.stringify(t))}var bs=Oc;function kc(e){e.directive("intersect",e.skipDuringClone((t,{value:r,expression:n,modifiers:i},{evaluateLater:o,cleanup:s})=>{let a=o(n),l={rootMargin:Rc(i),threshold:Lc(i)},u=new IntersectionObserver(d=>{d.forEach(p=>{p.isIntersecting!==(r==="leave")&&(a(),i.includes("once")&&u.disconnect())})},l);u.observe(t),s(()=>{u.disconnect()})}))}function Lc(e){if(e.includes("full"))return .99;if(e.includes("half"))return .5;if(!e.includes("threshold"))return 0;let t=e[e.indexOf("threshold")+1];return t==="100"?1:t==="0"?0:Number(`.${t}`)}function Nc(e){let t=e.match(/^(-?[0-9]+)(px|%)?$/);return t?t[1]+(t[2]||"px"):void 0}function Rc(e){let t="margin",r="0px 0px 0px 0px",n=e.indexOf(t);if(n===-1)return r;let i=[];for(let o=1;o<5;o++)i.push(Nc(e[n+o]||""));return i=i.filter(o=>o!==void 0),i.length?i.join(" ").trim():r}var ws=kc;var Qt=Math.min,ke=Math.max,Zt=Math.round,Yt=Math.floor,he=e=>({x:e,y:e}),Pc={left:"right",right:"left",bottom:"top",top:"bottom"},Ic={start:"end",end:"start"};function ys(e,t,r){return ke(e,Qt(t,r))}function rr(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function nr(e){return e.split("-")[1]}function Ts(e){return e==="x"?"y":"x"}function Os(e){return e==="y"?"height":"width"}function ir(e){return["top","bottom"].includes(Le(e))?"y":"x"}function ks(e){return Ts(ir(e))}function Mc(e,t,r){r===void 0&&(r=!1);let n=nr(e),i=ks(e),o=Os(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=er(s)),[s,er(s)]}function Fc(e){let t=er(e);return[vn(e),t,vn(t)]}function vn(e){return e.replace(/start|end/g,t=>Ic[t])}function Dc(e,t,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:s;default:return[]}}function $c(e,t,r,n){let i=nr(e),o=Dc(Le(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(vn)))),o}function er(e){return e.replace(/left|right|bottom|top/g,t=>Pc[t])}function Bc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Uc(e){return typeof e!="number"?Bc(e):{top:e,right:e,bottom:e,left:e}}function tr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function xs(e,t,r){let{reference:n,floating:i}=e,o=ir(t),s=ks(t),a=Os(s),l=Le(t),u=o==="y",d=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2,c=n[a]/2-i[a]/2,f;switch(l){case"top":f={x:d,y:n.y-i.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:p};break;case"left":f={x:n.x-i.width,y:p};break;default:f={x:n.x,y:n.y}}switch(nr(t)){case"start":f[s]-=c*(r&&u?-1:1);break;case"end":f[s]+=c*(r&&u?-1:1);break}return f}var jc=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:p}=xs(u,n,l),c=n,f={},m=0;for(let v=0;v<a.length;v++){let{name:g,fn:x}=a[v],{x:b,y:_,data:O,reset:T}=await x({x:d,y:p,initialPlacement:n,placement:c,strategy:i,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});if(d=b??d,p=_??p,f={...f,[g]:{...f[g],...O}},T&&m<=50){m++,typeof T=="object"&&(T.placement&&(c=T.placement),T.rects&&(u=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:d,y:p}=xs(u,c,l)),v=-1;continue}}return{x:d,y:p,placement:c,strategy:i,middlewareData:f}};async function Ls(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:c=!1,padding:f=0}=rr(t,e),m=Uc(f),g=a[c?p==="floating"?"reference":"floating":p],x=tr(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(g)))==null||r?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),b=p==="floating"?{...s.floating,x:n,y:i}:s.reference,_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),O=await(o.isElement==null?void 0:o.isElement(_))?await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1}:{x:1,y:1},T=tr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:_,strategy:l}):b);return{top:(x.top-T.top+m.top)/O.y,bottom:(T.bottom-x.bottom+m.bottom)/O.y,left:(x.left-T.left+m.left)/O.x,right:(T.right-x.right+m.right)/O.x}}var Hc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:c,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...g}=rr(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let x=Le(i),b=Le(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),O=c||(b||!v?[er(a)]:Fc(a));!c&&m!=="none"&&O.push(...$c(a,v,m,_));let T=[a,...O],w=await Ls(t,g),h=[],y=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&h.push(w[x]),p){let E=Mc(i,s,_);h.push(w[E[0]],w[E[1]])}if(y=[...y,{placement:i,overflows:h}],!h.every(E=>E<=0)){var C,L;let E=(((C=o.flip)==null?void 0:C.index)||0)+1,U=T[E];if(U)return{data:{index:E,overflows:y},reset:{placement:U}};let P=(L=y.filter($=>$.overflows[0]<=0).sort(($,q)=>$.overflows[1]-q.overflows[1])[0])==null?void 0:L.placement;if(!P)switch(f){case"bestFit":{var A;let $=(A=y.map(q=>[q.placement,q.overflows.filter(H=>H>0).reduce((H,ge)=>H+ge,0)]).sort((q,H)=>q[1]-H[1])[0])==null?void 0:A[0];$&&(P=$);break}case"initialPlacement":P=a;break}if(i!==P)return{reset:{placement:P}}}return{}}}};async function qc(e,t){let{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Le(r),a=nr(r),l=ir(r)==="y",u=["left","top"].includes(s)?-1:1,d=o&&l?-1:1,p=rr(t,e),{mainAxis:c,crossAxis:f,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),l?{x:f*d,y:c*u}:{x:c*u,y:f*d}}var Wc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){let{x:r,y:n}=t,i=await qc(t,e);return{x:r+i.x,y:n+i.y,data:i}}}},Kc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:g=>{let{x,y:b}=g;return{x,y:b}}},...l}=rr(e,t),u={x:r,y:n},d=await Ls(t,l),p=ir(Le(i)),c=Ts(p),f=u[c],m=u[p];if(o){let g=c==="y"?"top":"left",x=c==="y"?"bottom":"right",b=f+d[g],_=f-d[x];f=ys(b,f,_)}if(s){let g=p==="y"?"top":"left",x=p==="y"?"bottom":"right",b=m+d[g],_=m-d[x];m=ys(b,m,_)}let v=a.fn({...t,[c]:f,[p]:m});return{...v,data:{x:v.x-r,y:v.y-n}}}}};function me(e){return Ns(e)?(e.nodeName||"").toLowerCase():"#document"}function K(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ae(e){var t;return(t=(Ns(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ns(e){return e instanceof Node||e instanceof K(e).Node}function se(e){return e instanceof Element||e instanceof K(e).Element}function te(e){return e instanceof HTMLElement||e instanceof K(e).HTMLElement}function _s(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof K(e).ShadowRoot}function ft(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function zc(e){return["table","td","th"].includes(me(e))}function bn(e){let t=wn(),r=V(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Vc(e){let t=We(e);for(;te(t)&&!or(t);){if(bn(t))return t;t=We(t)}return null}function wn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function or(e){return["html","body","#document"].includes(me(e))}function V(e){return K(e).getComputedStyle(e)}function sr(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function We(e){if(me(e)==="html")return e;let t=e.assignedSlot||e.parentNode||_s(e)&&e.host||ae(e);return _s(t)?t.host:t}function Rs(e){let t=We(e);return or(t)?e.ownerDocument?e.ownerDocument.body:e.body:te(t)&&ft(t)?t:Rs(t)}function ct(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Rs(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=K(i);return o?t.concat(s,s.visualViewport||[],ft(i)?i:[],s.frameElement&&r?ct(s.frameElement):[]):t.concat(i,ct(i,[],r))}function Ps(e){let t=V(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=te(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=Zt(r)!==o||Zt(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function yn(e){return se(e)?e:e.contextElement}function qe(e){let t=yn(e);if(!te(t))return he(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=Ps(t),s=(o?Zt(r.width):r.width)/n,a=(o?Zt(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Jc=he(0);function Is(e){let t=K(e);return!wn()||!t.visualViewport?Jc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gc(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==K(e)?!1:t}function Ne(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=yn(e),s=he(1);t&&(n?se(n)&&(s=qe(n)):s=qe(e));let a=Gc(o,r,n)?Is(o):he(0),l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,d=i.width/s.x,p=i.height/s.y;if(o){let c=K(o),f=n&&se(n)?K(n):n,m=c.frameElement;for(;m&&n&&f!==c;){let v=qe(m),g=m.getBoundingClientRect(),x=V(m),b=g.left+(m.clientLeft+parseFloat(x.paddingLeft))*v.x,_=g.top+(m.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=b,u+=_,m=K(m).frameElement}}return tr({width:d,height:p,x:l,y:u})}function Xc(e){let{rect:t,offsetParent:r,strategy:n}=e,i=te(r),o=ae(r);if(r===o)return t;let s={scrollLeft:0,scrollTop:0},a=he(1),l=he(0);if((i||!i&&n!=="fixed")&&((me(r)!=="body"||ft(o))&&(s=sr(r)),te(r))){let u=Ne(r);a=qe(r),l.x=u.x+r.clientLeft,l.y=u.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}}function Yc(e){return Array.from(e.getClientRects())}function Ms(e){return Ne(ae(e)).left+sr(e).scrollLeft}function Qc(e){let t=ae(e),r=sr(e),n=e.ownerDocument.body,i=ke(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=ke(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+Ms(e),a=-r.scrollTop;return V(n).direction==="rtl"&&(s+=ke(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Zc(e,t){let r=K(e),n=ae(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let u=wn();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function ef(e,t){let r=Ne(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=te(e)?qe(e):he(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=n*o.y;return{width:s,height:a,x:l,y:u}}function Ss(e,t,r){let n;if(t==="viewport")n=Zc(e,r);else if(t==="document")n=Qc(ae(e));else if(se(t))n=ef(t,r);else{let i=Is(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return tr(n)}function Fs(e,t){let r=We(e);return r===t||!se(r)||or(r)?!1:V(r).position==="fixed"||Fs(r,t)}function tf(e,t){let r=t.get(e);if(r)return r;let n=ct(e,[],!1).filter(a=>se(a)&&me(a)!=="body"),i=null,o=V(e).position==="fixed",s=o?We(e):e;for(;se(s)&&!or(s);){let a=V(s),l=bn(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ft(s)&&!l&&Fs(e,s))?n=n.filter(d=>d!==s):i=a,s=We(s)}return t.set(e,n),n}function rf(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?tf(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((u,d)=>{let p=Ss(t,d,i);return u.top=ke(p.top,u.top),u.right=Qt(p.right,u.right),u.bottom=Qt(p.bottom,u.bottom),u.left=ke(p.left,u.left),u},Ss(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function nf(e){return Ps(e)}function of(e,t,r){let n=te(t),i=ae(t),o=r==="fixed",s=Ne(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=he(0);if(n||!n&&!o)if((me(t)!=="body"||ft(i))&&(a=sr(t)),n){let u=Ne(t,!0,o,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&(l.x=Ms(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Es(e,t){return!te(e)||V(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ds(e,t){let r=K(e);if(!te(e))return r;let n=Es(e,t);for(;n&&zc(n)&&V(n).position==="static";)n=Es(n,t);return n&&(me(n)==="html"||me(n)==="body"&&V(n).position==="static"&&!bn(n))?r:n||Vc(e)||r}var sf=async function(e){let{reference:t,floating:r,strategy:n}=e,i=this.getOffsetParent||Ds,o=this.getDimensions;return{reference:of(t,await i(r),n),floating:{x:0,y:0,...await o(r)}}};function af(e){return V(e).direction==="rtl"}var lf={convertOffsetParentRelativeRectToViewportRelativeRect:Xc,getDocumentElement:ae,getClippingRect:rf,getOffsetParent:Ds,getElementRects:sf,getClientRects:Yc,getDimensions:nf,getScale:qe,isElement:se,isRTL:af};function uf(e,t){let r=null,n,i=ae(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();let{left:u,top:d,width:p,height:c}=e.getBoundingClientRect();if(a||t(),!p||!c)return;let f=Yt(d),m=Yt(i.clientWidth-(u+p)),v=Yt(i.clientHeight-(d+c)),g=Yt(u),b={rootMargin:-f+"px "+-m+"px "+-v+"px "+-g+"px",threshold:ke(0,Qt(1,l))||1},_=!0;function O(T){let w=T[0].intersectionRatio;if(w!==l){if(!_)return s();w?s(!1,w):n=setTimeout(()=>{s(!1,1e-7)},100)}_=!1}try{r=new IntersectionObserver(O,{...b,root:i.ownerDocument})}catch{r=new IntersectionObserver(O,b)}r.observe(e)}return s(!0),o}function cf(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=yn(e),d=i||o?[...u?ct(u):[],...ct(t)]:[];d.forEach(x=>{i&&x.addEventListener("scroll",r,{passive:!0}),o&&x.addEventListener("resize",r)});let p=u&&a?uf(u,r):null,c=-1,f=null;s&&(f=new ResizeObserver(x=>{let[b]=x;b&&b.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(c),c=requestAnimationFrame(()=>{f&&f.observe(t)})),r()}),u&&!l&&f.observe(u),f.observe(t));let m,v=l?Ne(e):null;l&&g();function g(){let x=Ne(e);v&&(x.x!==v.x||x.y!==v.y||x.width!==v.width||x.height!==v.height)&&r(),v=x,m=requestAnimationFrame(g)}return r(),()=>{d.forEach(x=>{i&&x.removeEventListener("scroll",r),o&&x.removeEventListener("resize",r)}),p&&p(),f&&f.disconnect(),f=null,l&&cancelAnimationFrame(m)}}var ff=(e,t,r)=>{let n=new Map,i={platform:lf,...r},o={...i.platform,_c:n};return jc(e,t,{...i,platform:o})};function df(e){e.magic("anchor",t=>{if(!t._x_anchor)throw"Alpine: No x-anchor directive found on element using $anchor...";return t._x_anchor}),e.interceptClone((t,r)=>{t&&t._x_anchor&&!r._x_anchor&&(r._x_anchor=t._x_anchor)}),e.directive("anchor",e.skipDuringClone((t,{expression:r,modifiers:n,value:i},{cleanup:o,evaluate:s})=>{let{placement:a,offsetValue:l,unstyled:u}=Cs(n);t._x_anchor=e.reactive({x:0,y:0});let d=s(r);if(!d)throw"Alpine: no element provided to x-anchor...";let p=()=>{let f;ff(d,t,{placement:a,middleware:[Hc(),Kc({padding:5}),Wc(l)]}).then(({x:m,y:v})=>{u||As(t,m,v),JSON.stringify({x:m,y:v})!==f&&(t._x_anchor.x=m,t._x_anchor.y=v),f=JSON.stringify({x:m,y:v})})},c=cf(d,t,()=>p());o(()=>c())},(t,{expression:r,modifiers:n,value:i},{cleanup:o,evaluate:s})=>{let{placement:a,offsetValue:l,unstyled:u}=Cs(n);t._x_anchor&&(u||As(t,t._x_anchor.x,t._x_anchor.y))}))}function As(e,t,r){Object.assign(e.style,{left:t+"px",top:r+"px",position:"absolute"})}function Cs(e){let r=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].find(o=>e.includes(o)),n=0;if(e.includes("offset")){let o=e.findIndex(s=>s==="offset");n=e[o+1]!==void 0?Number(e[o+1]):n}let i=e.includes("no-style");return{placement:r,offsetValue:n,unstyled:i}}var $s=df;function Bs(){let e=new URL(window.location.href,document.baseURI);hf(e,document.documentElement.outerHTML)}function Us(e){window.addEventListener("popstate",t=>{let n=(t.state||{}).alpine||{};if(!n._html)return;let i=mf(n._html);e(i)})}function js(e,t){pf(t,e)}function pf(e,t){Hs("pushState",e,t)}function hf(e,t){Hs("replaceState",e,t)}function Hs(e,t,r){let n=new Date().getTime();qs(n,r);let i=history.state||{};i.alpine||(i.alpine={}),i.alpine._html=n;try{history[e](i,document.title,t)}catch(o){o instanceof DOMException&&o.name==="SecurityError"&&console.error("Livewire: You can't use wire:navigate with a link to a different root domain: "+t),console.error(o)}}function mf(e){return JSON.parse(sessionStorage.getItem("alpine:"+e))}function qs(e,t){try{sessionStorage.setItem("alpine:"+e,JSON.stringify(t))}catch(r){if(![22,1,2,3,4,5,6,7,8,9,10,11,12,13,14].includes(r.code))return;let n=Object.keys(sessionStorage).map(i=>Number(i.replace("alpine:",""))).sort().shift();if(!n)return;sessionStorage.removeItem("alpine:"+n),qs(e,t)}}function Ws(e,t){let r=o=>!o.isTrusted,n=o=>o.which>1||o.altKey||o.ctrlKey||o.metaKey||o.shiftKey,i=o=>o.which!==13||o.altKey||o.ctrlKey||o.metaKey||o.shiftKey;e.addEventListener("click",o=>{if(r(o)){o.preventDefault(),t(s=>s());return}n(o)||o.preventDefault()}),e.addEventListener("mousedown",o=>{n(o)||(o.preventDefault(),t(s=>{let a=l=>{l.preventDefault(),s(),e.removeEventListener("mouseup",a)};e.addEventListener("mouseup",a)}))}),e.addEventListener("keydown",o=>{i(o)||(o.preventDefault(),t(s=>s()))})}function Ks(e,t=60,r){e.addEventListener("mouseenter",n=>{let i=setTimeout(()=>{r(n)},t),o=()=>{clearTimeout(i),e.removeEventListener("mouseleave",o)};e.addEventListener("mouseleave",o)})}function xn(e){return dt(e.getAttribute("href"))}function dt(e){return new URL(e,document.baseURI)}function zs(e,t){let r=e.pathname+e.search;_n(r,(n,i)=>{t(n,i)})}function _n(e,t){let r={headers:{"X-Livewire-Navigate":""}};R("navigate.request",{url:e,options:r});let n;fetch(e,r).then(i=>(n=dt(i.url),i.text())).then(i=>{t(i,n)})}var J={};function Sn(e,t){let r=e.pathname;J[r]||(J[r]={finished:!1,html:null,whenFinished:()=>{}},_n(r,(n,i)=>{t(n,i)}))}function En(e,t,r){let n=J[t.pathname];n.html=e,n.finished=!0,n.finalDestination=r,n.whenFinished()}function Vs(e,t,r){let n=e.pathname+e.search;if(!J[n])return r();if(J[n].finished){let i=J[n].html,o=J[n].finalDestination;return delete J[n],t(i,o)}else J[n].whenFinished=()=>{let i=J[n].html,o=J[n].finalDestination;delete J[n],t(i,o)}}function An(e){S.mutateDom(()=>{e.querySelectorAll("[data-teleport-template]").forEach(t=>t._x_teleport.remove())})}function Cn(e){S.mutateDom(()=>{e.querySelectorAll("[data-teleport-target]").forEach(t=>t.remove())})}function Tn(e){S.walk(e,(t,r)=>{!t._x_teleport||(t._x_teleportPutBack(),r())})}function Js(e){return e.hasAttribute("data-teleport-target")}function On(){document.body.setAttribute("data-scroll-x",document.body.scrollLeft),document.body.setAttribute("data-scroll-y",document.body.scrollTop),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(e=>{e.setAttribute("data-scroll-x",e.scrollLeft),e.setAttribute("data-scroll-y",e.scrollTop)})}function kn(){let e=t=>{t.hasAttribute("data-scroll-x")?(t.scrollTo({top:Number(t.getAttribute("data-scroll-y")),left:Number(t.getAttribute("data-scroll-x")),behavior:"instant"}),t.removeAttribute("data-scroll-x"),t.removeAttribute("data-scroll-y")):window.scrollTo({top:0,left:0,behavior:"instant"})};queueMicrotask(()=>{e(document.body),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(e)})}var pt={};function Ln(e){pt={},document.querySelectorAll("[x-persist]").forEach(t=>{pt[t.getAttribute("x-persist")]=t,e(t),S.mutateDom(()=>{t.remove()})})}function Nn(e){let t=[];document.querySelectorAll("[x-persist]").forEach(r=>{let n=pt[r.getAttribute("x-persist")];!n||(t.push(r.getAttribute("x-persist")),n._x_wasPersisted=!0,e(n,r),S.mutateDom(()=>{r.replaceWith(n)}))}),Object.entries(pt).forEach(([r,n])=>{t.includes(r)||S.destroyTree(n)}),pt={}}function Gs(e){return e.hasAttribute("x-persist")}var ht=Ja(Ys());ht.default.configure({minimum:.1,trickleSpeed:200,showSpinner:!1});gf();var Pn=!1;function Qs(){Pn=!0,setTimeout(()=>{!Pn||ht.default.start()},150)}function Zs(){Pn=!1,ht.default.done(),ht.default.remove()}function gf(){let e=document.createElement("style");e.innerHTML=`/* Make clicks pass-through */
+            })(${i[2]})`)(this.eventContext)),{method:r,params:n}}};function ac(e){e.directive("collapse",t),t.inline=(r,{modifiers:n})=>{!n.includes("min")||(r._x_doShow=()=>{},r._x_doHide=()=>{})};function t(r,{modifiers:n}){let i=Yo(n,"duration",250)/1e3,o=Yo(n,"min",0),s=!n.includes("min");r._x_isShown||(r.style.height=`${o}px`),!r._x_isShown&&s&&(r.hidden=!0),r._x_isShown||(r.style.overflow="hidden");let a=(u,d)=>{let p=e.setStyles(u,d);return d.height?()=>{}:p},l={transitionProperty:"height",transitionDuration:`${i}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};r._x_transition={in(u=()=>{},d=()=>{}){s&&(r.hidden=!1),s&&(r.style.display=null);let p=r.getBoundingClientRect().height;r.style.height="auto";let c=r.getBoundingClientRect().height;p===c&&(p=o),e.transition(r,e.setStyles,{during:l,start:{height:p+"px"},end:{height:c+"px"}},()=>r._x_isShown=!0,()=>{r.getBoundingClientRect().height==c&&(r.style.overflow=null)})},out(u=()=>{},d=()=>{}){let p=r.getBoundingClientRect().height;e.transition(r,a,{during:l,start:{height:p+"px"},end:{height:o+"px"}},()=>r.style.overflow="hidden",()=>{r._x_isShown=!1,r.style.height==`${o}px`&&s&&(r.style.display="none",r.hidden=!0)})}}}}function Yo(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n)return r;if(t==="duration"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}if(t==="min"){let i=n.match(/([0-9]+)px/);if(i)return i[1]}return n}var Qo=ac;var ss=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Gt=ss.join(","),as=typeof Element>"u",Oe=as?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,mn=!as&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},ls=function(t,r,n){var i=Array.prototype.slice.apply(t.querySelectorAll(Gt));return r&&Oe.call(t,Gt)&&i.unshift(t),i=i.filter(n),i},us=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,u=e(l,!0,n);n.flatten?i.push.apply(i,u):i.push({scope:s,candidates:u})}else{var d=Oe.call(s,Gt);d&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var p=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),c=!n.shadowRootFilter||n.shadowRootFilter(s);if(p&&c){var f=e(p===!0?s.children:p.children,!0,n);n.flatten?i.push.apply(i,f):i.push({scope:s,candidates:f})}else o.unshift.apply(o,s.children)}}return i},cs=function(t,r){return t.tabIndex<0&&(r||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},lc=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},fs=function(t){return t.tagName==="INPUT"},uc=function(t){return fs(t)&&t.type==="hidden"},cc=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},fc=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},dc=function(t){if(!t.name)return!0;var r=t.form||mn(t),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(t.name));else try{i=n(t.name)}catch(s){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",s.message),!1}var o=fc(i,t.form);return!o||o===t},pc=function(t){return fs(t)&&t.type==="radio"},hc=function(t){return pc(t)&&!dc(t)},Zo=function(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},mc=function(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=Oe.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(Oe.call(s,"details:not([open]) *"))return!0;var a=mn(t).host,l=a?.ownerDocument.contains(a)||t.ownerDocument.contains(t);if(!n||n==="full"){if(typeof i=="function"){for(var u=t;t;){var d=t.parentElement,p=mn(t);if(d&&!d.shadowRoot&&i(d)===!0)return Zo(t);t.assignedSlot?t=t.assignedSlot:!d&&p!==t.ownerDocument?t=p.host:t=d}t=u}if(l)return!t.getClientRects().length}else if(n==="non-zero-area")return Zo(t);return!1},gc=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return Oe.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},Xt=function(t,r){return!(r.disabled||uc(r)||mc(r,t)||cc(r)||gc(r))},gn=function(t,r){return!(hc(r)||cs(r)<0||!Xt(t,r))},vc=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},bc=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scope,a=s?i.scope:i,l=cs(a,s),u=s?e(i.candidates):a;l===0?s?r.push.apply(r,u):r.push(a):n.push({documentOrder:o,tabIndex:l,item:i,isScope:s,content:u})}),n.sort(lc).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},wc=function(t,r){r=r||{};var n;return r.getShadowRoot?n=us([t],r.includeContainer,{filter:gn.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:vc}):n=ls(t,r.includeContainer,gn.bind(null,r)),bc(n)},ds=function(t,r){r=r||{};var n;return r.getShadowRoot?n=us([t],r.includeContainer,{filter:Xt.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=ls(t,r.includeContainer,Xt.bind(null,r)),n},zt=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Oe.call(t,Gt)===!1?!1:gn(r,t)},yc=ss.concat("iframe").join(","),Jt=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Oe.call(t,yc)===!1?!1:Xt(r,t)};function es(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ts(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?es(Object(r),!0).forEach(function(n){xc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):es(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var rs=function(){var e=[];return{activateTrap:function(r){if(e.length>0){var n=e[e.length-1];n!==r&&n.pause()}var i=e.indexOf(r);i===-1||e.splice(i,1),e.push(r)},deactivateTrap:function(r){var n=e.indexOf(r);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}}}(),_c=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Sc=function(t){return t.key==="Escape"||t.key==="Esc"||t.keyCode===27},Ec=function(t){return t.key==="Tab"||t.keyCode===9},ns=function(t){return setTimeout(t,0)},is=function(t,r){var n=-1;return t.every(function(i,o){return r(i)?(n=o,!1):!0}),n},ut=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,n):t},Vt=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Ac=function(t,r){var n=r?.document||document,i=ts({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},r),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s,a=function(w,h,y){return w&&w[h]!==void 0?w[h]:i[y||h]},l=function(w){return o.containerGroups.findIndex(function(h){var y=h.container,C=h.tabbableNodes;return y.contains(w)||C.find(function(L){return L===w})})},u=function(w){var h=i[w];if(typeof h=="function"){for(var y=arguments.length,C=new Array(y>1?y-1:0),L=1;L<y;L++)C[L-1]=arguments[L];h=h.apply(void 0,C)}if(h===!0&&(h=void 0),!h){if(h===void 0||h===!1)return h;throw new Error("`".concat(w,"` was specified but was not a node, or did not return a node"))}var A=h;if(typeof h=="string"&&(A=n.querySelector(h),!A))throw new Error("`".concat(w,"` as selector refers to no known node"));return A},d=function(){var w=u("initialFocus");if(w===!1)return!1;if(w===void 0)if(l(n.activeElement)>=0)w=n.activeElement;else{var h=o.tabbableGroups[0],y=h&&h.firstTabbableNode;w=y||u("fallbackFocus")}if(!w)throw new Error("Your focus-trap needs to have at least one focusable element");return w},p=function(){if(o.containerGroups=o.containers.map(function(w){var h=wc(w,i.tabbableOptions),y=ds(w,i.tabbableOptions);return{container:w,tabbableNodes:h,focusableNodes:y,firstTabbableNode:h.length>0?h[0]:null,lastTabbableNode:h.length>0?h[h.length-1]:null,nextTabbableNode:function(L){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,E=y.findIndex(function(j){return j===L});if(!(E<0))return A?y.slice(E+1).find(function(j){return zt(j,i.tabbableOptions)}):y.slice(0,E).reverse().find(function(j){return zt(j,i.tabbableOptions)})}}}),o.tabbableGroups=o.containerGroups.filter(function(w){return w.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},c=function T(w){if(w!==!1&&w!==n.activeElement){if(!w||!w.focus){T(d());return}w.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=w,_c(w)&&w.select()}},f=function(w){var h=u("setReturnFocus",w);return h||(h===!1?!1:w)},m=function(w){var h=Vt(w);if(!(l(h)>=0)){if(ut(i.clickOutsideDeactivates,w)){s.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Jt(h,i.tabbableOptions)});return}ut(i.allowOutsideClick,w)||w.preventDefault()}},v=function(w){var h=Vt(w),y=l(h)>=0;y||h instanceof Document?y&&(o.mostRecentlyFocusedNode=h):(w.stopImmediatePropagation(),c(o.mostRecentlyFocusedNode||d()))},g=function(w){var h=Vt(w);p();var y=null;if(o.tabbableGroups.length>0){var C=l(h),L=C>=0?o.containerGroups[C]:void 0;if(C<0)w.shiftKey?y=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:y=o.tabbableGroups[0].firstTabbableNode;else if(w.shiftKey){var A=is(o.tabbableGroups,function(H){var ge=H.firstTabbableNode;return h===ge});if(A<0&&(L.container===h||Jt(h,i.tabbableOptions)&&!zt(h,i.tabbableOptions)&&!L.nextTabbableNode(h,!1))&&(A=C),A>=0){var E=A===0?o.tabbableGroups.length-1:A-1,j=o.tabbableGroups[E];y=j.lastTabbableNode}}else{var P=is(o.tabbableGroups,function(H){var ge=H.lastTabbableNode;return h===ge});if(P<0&&(L.container===h||Jt(h,i.tabbableOptions)&&!zt(h,i.tabbableOptions)&&!L.nextTabbableNode(h))&&(P=C),P>=0){var $=P===o.tabbableGroups.length-1?0:P+1,q=o.tabbableGroups[$];y=q.firstTabbableNode}}}else y=u("fallbackFocus");y&&(w.preventDefault(),c(y))},x=function(w){if(Sc(w)&&ut(i.escapeDeactivates,w)!==!1){w.preventDefault(),s.deactivate();return}if(Ec(w)){g(w);return}},b=function(w){var h=Vt(w);l(h)>=0||ut(i.clickOutsideDeactivates,w)||ut(i.allowOutsideClick,w)||(w.preventDefault(),w.stopImmediatePropagation())},_=function(){if(!!o.active)return rs.activateTrap(s),o.delayInitialFocusTimer=i.delayInitialFocus?ns(function(){c(d())}):c(d()),n.addEventListener("focusin",v,!0),n.addEventListener("mousedown",m,{capture:!0,passive:!1}),n.addEventListener("touchstart",m,{capture:!0,passive:!1}),n.addEventListener("click",b,{capture:!0,passive:!1}),n.addEventListener("keydown",x,{capture:!0,passive:!1}),s},O=function(){if(!!o.active)return n.removeEventListener("focusin",v,!0),n.removeEventListener("mousedown",m,!0),n.removeEventListener("touchstart",m,!0),n.removeEventListener("click",b,!0),n.removeEventListener("keydown",x,!0),s};return s={get active(){return o.active},get paused(){return o.paused},activate:function(w){if(o.active)return this;var h=a(w,"onActivate"),y=a(w,"onPostActivate"),C=a(w,"checkCanFocusTrap");C||p(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=n.activeElement,h&&h();var L=function(){C&&p(),_(),y&&y()};return C?(C(o.containers.concat()).then(L,L),this):(L(),this)},deactivate:function(w){if(!o.active)return this;var h=ts({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},w);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,O(),o.active=!1,o.paused=!1,rs.deactivateTrap(s);var y=a(h,"onDeactivate"),C=a(h,"onPostDeactivate"),L=a(h,"checkCanReturnFocus"),A=a(h,"returnFocus","returnFocusOnDeactivate");y&&y();var E=function(){ns(function(){A&&c(f(o.nodeFocusedBeforeActivation)),C&&C()})};return A&&L?(L(f(o.nodeFocusedBeforeActivation)).then(E,E),this):(E(),this)},pause:function(){return o.paused||!o.active?this:(o.paused=!0,O(),this)},unpause:function(){return!o.paused||!o.active?this:(o.paused=!1,p(),_(),this)},updateContainerElements:function(w){var h=[].concat(w).filter(Boolean);return o.containers=h.map(function(y){return typeof y=="string"?n.querySelector(y):y}),o.active&&p(),this}},s.updateContainerElements(t),s};function Cc(e){let t,r;window.addEventListener("focusin",()=>{t=r,r=document.activeElement}),e.magic("focus",n=>{let i=n;return{__noscroll:!1,__wrapAround:!1,within(o){return i=o,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(o){return Jt(o)},previouslyFocused(){return t},lastFocused(){return t},focused(){return r},focusables(){return Array.isArray(i)?i:ds(i,{displayCheck:"none"})},all(){return this.focusables()},isFirst(o){let s=this.all();return s[0]&&s[0].isSameNode(o)},isLast(o){let s=this.all();return s.length&&s.slice(-1)[0].isSameNode(o)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let o=this.all(),s=document.activeElement;if(o.indexOf(s)!==-1)return this.__wrapAround&&o.indexOf(s)===o.length-1?o[0]:o[o.indexOf(s)+1]},getPrevious(){let o=this.all(),s=document.activeElement;if(o.indexOf(s)!==-1)return this.__wrapAround&&o.indexOf(s)===0?o.slice(-1)[0]:o[o.indexOf(s)-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(o){!o||setTimeout(()=>{o.hasAttribute("tabindex")||o.setAttribute("tabindex","0"),o.focus({preventScroll:this.__noscroll})})}}}),e.directive("trap",e.skipDuringClone((n,{expression:i,modifiers:o},{effect:s,evaluateLater:a,cleanup:l})=>{let u=a(i),d=!1,p={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>n};if(o.includes("noautofocus"))p.initialFocus=!1;else{let g=n.querySelector("[autofocus]");g&&(p.initialFocus=g)}let c=Ac(n,p),f=()=>{},m=()=>{},v=()=>{f(),f=()=>{},m(),m=()=>{},c.deactivate({returnFocus:!o.includes("noreturn")})};s(()=>u(g=>{d!==g&&(g&&!d&&(o.includes("noscroll")&&(m=Tc()),o.includes("inert")&&(f=os(n)),setTimeout(()=>{c.activate()},15)),!g&&d&&v(),d=!!g)})),l(v)},(n,{expression:i,modifiers:o},{evaluate:s})=>{o.includes("inert")&&s(i)&&os(n)}))}function os(e){let t=[];return ps(e,r=>{let n=r.hasAttribute("aria-hidden");r.setAttribute("aria-hidden","true"),t.push(()=>n||r.removeAttribute("aria-hidden"))}),()=>{for(;t.length;)t.pop()()}}function ps(e,t){e.isSameNode(document.body)||!e.parentNode||Array.from(e.parentNode.children).forEach(r=>{r.isSameNode(e)?ps(e.parentNode,t):t(r)})}function Tc(){let e=document.documentElement.style.overflow,t=document.documentElement.style.paddingRight,r=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${r}px`,()=>{document.documentElement.style.overflow=e,document.documentElement.style.paddingRight=t}}var hs=Cc;function Oc(e){let t=()=>{let r,n;try{n=localStorage}catch(i){console.error(i),console.warn("Alpine: $persist is using temporary storage since localStorage is unavailable.");let o=new Map;n={getItem:o.get.bind(o),setItem:o.set.bind(o)}}return e.interceptor((i,o,s,a,l)=>{let u=r||`_x_${a}`,d=ms(u,n)?gs(u,n):i;return s(d),e.effect(()=>{let p=o();vs(u,p,n),s(p)}),d},i=>{i.as=o=>(r=o,i),i.using=o=>(n=o,i)})};Object.defineProperty(e,"$persist",{get:()=>t()}),e.magic("persist",t),e.persist=(r,{get:n,set:i},o=localStorage)=>{let s=ms(r,o)?gs(r,o):n();i(s),e.effect(()=>{let a=n();vs(r,a,o),i(a)})}}function ms(e,t){return t.getItem(e)!==null}function gs(e,t){return JSON.parse(t.getItem(e,t))}function vs(e,t,r){r.setItem(e,JSON.stringify(t))}var bs=Oc;function kc(e){e.directive("intersect",e.skipDuringClone((t,{value:r,expression:n,modifiers:i},{evaluateLater:o,cleanup:s})=>{let a=o(n),l={rootMargin:Rc(i),threshold:Lc(i)},u=new IntersectionObserver(d=>{d.forEach(p=>{p.isIntersecting!==(r==="leave")&&(a(),i.includes("once")&&u.disconnect())})},l);u.observe(t),s(()=>{u.disconnect()})}))}function Lc(e){if(e.includes("full"))return .99;if(e.includes("half"))return .5;if(!e.includes("threshold"))return 0;let t=e[e.indexOf("threshold")+1];return t==="100"?1:t==="0"?0:Number(`.${t}`)}function Nc(e){let t=e.match(/^(-?[0-9]+)(px|%)?$/);return t?t[1]+(t[2]||"px"):void 0}function Rc(e){let t="margin",r="0px 0px 0px 0px",n=e.indexOf(t);if(n===-1)return r;let i=[];for(let o=1;o<5;o++)i.push(Nc(e[n+o]||""));return i=i.filter(o=>o!==void 0),i.length?i.join(" ").trim():r}var ws=kc;var Qt=Math.min,ke=Math.max,Zt=Math.round,Yt=Math.floor,he=e=>({x:e,y:e}),Pc={left:"right",right:"left",bottom:"top",top:"bottom"},Ic={start:"end",end:"start"};function ys(e,t,r){return ke(e,Qt(t,r))}function rr(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function nr(e){return e.split("-")[1]}function Ts(e){return e==="x"?"y":"x"}function Os(e){return e==="y"?"height":"width"}function ir(e){return["top","bottom"].includes(Le(e))?"y":"x"}function ks(e){return Ts(ir(e))}function Mc(e,t,r){r===void 0&&(r=!1);let n=nr(e),i=ks(e),o=Os(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=er(s)),[s,er(s)]}function Fc(e){let t=er(e);return[vn(e),t,vn(t)]}function vn(e){return e.replace(/start|end/g,t=>Ic[t])}function Dc(e,t,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:s;default:return[]}}function $c(e,t,r,n){let i=nr(e),o=Dc(Le(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(vn)))),o}function er(e){return e.replace(/left|right|bottom|top/g,t=>Pc[t])}function Bc(e){return{top:0,right:0,bottom:0,left:0,...e}}function jc(e){return typeof e!="number"?Bc(e):{top:e,right:e,bottom:e,left:e}}function tr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function xs(e,t,r){let{reference:n,floating:i}=e,o=ir(t),s=ks(t),a=Os(s),l=Le(t),u=o==="y",d=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2,c=n[a]/2-i[a]/2,f;switch(l){case"top":f={x:d,y:n.y-i.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:p};break;case"left":f={x:n.x-i.width,y:p};break;default:f={x:n.x,y:n.y}}switch(nr(t)){case"start":f[s]-=c*(r&&u?-1:1);break;case"end":f[s]+=c*(r&&u?-1:1);break}return f}var Uc=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:p}=xs(u,n,l),c=n,f={},m=0;for(let v=0;v<a.length;v++){let{name:g,fn:x}=a[v],{x:b,y:_,data:O,reset:T}=await x({x:d,y:p,initialPlacement:n,placement:c,strategy:i,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});if(d=b??d,p=_??p,f={...f,[g]:{...f[g],...O}},T&&m<=50){m++,typeof T=="object"&&(T.placement&&(c=T.placement),T.rects&&(u=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:d,y:p}=xs(u,c,l)),v=-1;continue}}return{x:d,y:p,placement:c,strategy:i,middlewareData:f}};async function Ls(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:c=!1,padding:f=0}=rr(t,e),m=jc(f),g=a[c?p==="floating"?"reference":"floating":p],x=tr(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(g)))==null||r?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),b=p==="floating"?{...s.floating,x:n,y:i}:s.reference,_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),O=await(o.isElement==null?void 0:o.isElement(_))?await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1}:{x:1,y:1},T=tr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:_,strategy:l}):b);return{top:(x.top-T.top+m.top)/O.y,bottom:(T.bottom-x.bottom+m.bottom)/O.y,left:(x.left-T.left+m.left)/O.x,right:(T.right-x.right+m.right)/O.x}}var Hc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:c,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...g}=rr(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let x=Le(i),b=Le(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),O=c||(b||!v?[er(a)]:Fc(a));!c&&m!=="none"&&O.push(...$c(a,v,m,_));let T=[a,...O],w=await Ls(t,g),h=[],y=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&h.push(w[x]),p){let E=Mc(i,s,_);h.push(w[E[0]],w[E[1]])}if(y=[...y,{placement:i,overflows:h}],!h.every(E=>E<=0)){var C,L;let E=(((C=o.flip)==null?void 0:C.index)||0)+1,j=T[E];if(j)return{data:{index:E,overflows:y},reset:{placement:j}};let P=(L=y.filter($=>$.overflows[0]<=0).sort(($,q)=>$.overflows[1]-q.overflows[1])[0])==null?void 0:L.placement;if(!P)switch(f){case"bestFit":{var A;let $=(A=y.map(q=>[q.placement,q.overflows.filter(H=>H>0).reduce((H,ge)=>H+ge,0)]).sort((q,H)=>q[1]-H[1])[0])==null?void 0:A[0];$&&(P=$);break}case"initialPlacement":P=a;break}if(i!==P)return{reset:{placement:P}}}return{}}}};async function qc(e,t){let{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Le(r),a=nr(r),l=ir(r)==="y",u=["left","top"].includes(s)?-1:1,d=o&&l?-1:1,p=rr(t,e),{mainAxis:c,crossAxis:f,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),l?{x:f*d,y:c*u}:{x:c*u,y:f*d}}var Wc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){let{x:r,y:n}=t,i=await qc(t,e);return{x:r+i.x,y:n+i.y,data:i}}}},Kc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:g=>{let{x,y:b}=g;return{x,y:b}}},...l}=rr(e,t),u={x:r,y:n},d=await Ls(t,l),p=ir(Le(i)),c=Ts(p),f=u[c],m=u[p];if(o){let g=c==="y"?"top":"left",x=c==="y"?"bottom":"right",b=f+d[g],_=f-d[x];f=ys(b,f,_)}if(s){let g=p==="y"?"top":"left",x=p==="y"?"bottom":"right",b=m+d[g],_=m-d[x];m=ys(b,m,_)}let v=a.fn({...t,[c]:f,[p]:m});return{...v,data:{x:v.x-r,y:v.y-n}}}}};function me(e){return Ns(e)?(e.nodeName||"").toLowerCase():"#document"}function K(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ae(e){var t;return(t=(Ns(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ns(e){return e instanceof Node||e instanceof K(e).Node}function se(e){return e instanceof Element||e instanceof K(e).Element}function te(e){return e instanceof HTMLElement||e instanceof K(e).HTMLElement}function _s(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof K(e).ShadowRoot}function ft(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function zc(e){return["table","td","th"].includes(me(e))}function bn(e){let t=wn(),r=V(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Vc(e){let t=We(e);for(;te(t)&&!or(t);){if(bn(t))return t;t=We(t)}return null}function wn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function or(e){return["html","body","#document"].includes(me(e))}function V(e){return K(e).getComputedStyle(e)}function sr(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function We(e){if(me(e)==="html")return e;let t=e.assignedSlot||e.parentNode||_s(e)&&e.host||ae(e);return _s(t)?t.host:t}function Rs(e){let t=We(e);return or(t)?e.ownerDocument?e.ownerDocument.body:e.body:te(t)&&ft(t)?t:Rs(t)}function ct(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Rs(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=K(i);return o?t.concat(s,s.visualViewport||[],ft(i)?i:[],s.frameElement&&r?ct(s.frameElement):[]):t.concat(i,ct(i,[],r))}function Ps(e){let t=V(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=te(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=Zt(r)!==o||Zt(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function yn(e){return se(e)?e:e.contextElement}function qe(e){let t=yn(e);if(!te(t))return he(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=Ps(t),s=(o?Zt(r.width):r.width)/n,a=(o?Zt(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Jc=he(0);function Is(e){let t=K(e);return!wn()||!t.visualViewport?Jc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gc(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==K(e)?!1:t}function Ne(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=yn(e),s=he(1);t&&(n?se(n)&&(s=qe(n)):s=qe(e));let a=Gc(o,r,n)?Is(o):he(0),l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,d=i.width/s.x,p=i.height/s.y;if(o){let c=K(o),f=n&&se(n)?K(n):n,m=c.frameElement;for(;m&&n&&f!==c;){let v=qe(m),g=m.getBoundingClientRect(),x=V(m),b=g.left+(m.clientLeft+parseFloat(x.paddingLeft))*v.x,_=g.top+(m.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=b,u+=_,m=K(m).frameElement}}return tr({width:d,height:p,x:l,y:u})}function Xc(e){let{rect:t,offsetParent:r,strategy:n}=e,i=te(r),o=ae(r);if(r===o)return t;let s={scrollLeft:0,scrollTop:0},a=he(1),l=he(0);if((i||!i&&n!=="fixed")&&((me(r)!=="body"||ft(o))&&(s=sr(r)),te(r))){let u=Ne(r);a=qe(r),l.x=u.x+r.clientLeft,l.y=u.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}}function Yc(e){return Array.from(e.getClientRects())}function Ms(e){return Ne(ae(e)).left+sr(e).scrollLeft}function Qc(e){let t=ae(e),r=sr(e),n=e.ownerDocument.body,i=ke(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=ke(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+Ms(e),a=-r.scrollTop;return V(n).direction==="rtl"&&(s+=ke(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Zc(e,t){let r=K(e),n=ae(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let u=wn();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function ef(e,t){let r=Ne(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=te(e)?qe(e):he(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=n*o.y;return{width:s,height:a,x:l,y:u}}function Ss(e,t,r){let n;if(t==="viewport")n=Zc(e,r);else if(t==="document")n=Qc(ae(e));else if(se(t))n=ef(t,r);else{let i=Is(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return tr(n)}function Fs(e,t){let r=We(e);return r===t||!se(r)||or(r)?!1:V(r).position==="fixed"||Fs(r,t)}function tf(e,t){let r=t.get(e);if(r)return r;let n=ct(e,[],!1).filter(a=>se(a)&&me(a)!=="body"),i=null,o=V(e).position==="fixed",s=o?We(e):e;for(;se(s)&&!or(s);){let a=V(s),l=bn(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ft(s)&&!l&&Fs(e,s))?n=n.filter(d=>d!==s):i=a,s=We(s)}return t.set(e,n),n}function rf(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?tf(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((u,d)=>{let p=Ss(t,d,i);return u.top=ke(p.top,u.top),u.right=Qt(p.right,u.right),u.bottom=Qt(p.bottom,u.bottom),u.left=ke(p.left,u.left),u},Ss(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function nf(e){return Ps(e)}function of(e,t,r){let n=te(t),i=ae(t),o=r==="fixed",s=Ne(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=he(0);if(n||!n&&!o)if((me(t)!=="body"||ft(i))&&(a=sr(t)),n){let u=Ne(t,!0,o,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&(l.x=Ms(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Es(e,t){return!te(e)||V(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ds(e,t){let r=K(e);if(!te(e))return r;let n=Es(e,t);for(;n&&zc(n)&&V(n).position==="static";)n=Es(n,t);return n&&(me(n)==="html"||me(n)==="body"&&V(n).position==="static"&&!bn(n))?r:n||Vc(e)||r}var sf=async function(e){let{reference:t,floating:r,strategy:n}=e,i=this.getOffsetParent||Ds,o=this.getDimensions;return{reference:of(t,await i(r),n),floating:{x:0,y:0,...await o(r)}}};function af(e){return V(e).direction==="rtl"}var lf={convertOffsetParentRelativeRectToViewportRelativeRect:Xc,getDocumentElement:ae,getClippingRect:rf,getOffsetParent:Ds,getElementRects:sf,getClientRects:Yc,getDimensions:nf,getScale:qe,isElement:se,isRTL:af};function uf(e,t){let r=null,n,i=ae(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();let{left:u,top:d,width:p,height:c}=e.getBoundingClientRect();if(a||t(),!p||!c)return;let f=Yt(d),m=Yt(i.clientWidth-(u+p)),v=Yt(i.clientHeight-(d+c)),g=Yt(u),b={rootMargin:-f+"px "+-m+"px "+-v+"px "+-g+"px",threshold:ke(0,Qt(1,l))||1},_=!0;function O(T){let w=T[0].intersectionRatio;if(w!==l){if(!_)return s();w?s(!1,w):n=setTimeout(()=>{s(!1,1e-7)},100)}_=!1}try{r=new IntersectionObserver(O,{...b,root:i.ownerDocument})}catch{r=new IntersectionObserver(O,b)}r.observe(e)}return s(!0),o}function cf(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=yn(e),d=i||o?[...u?ct(u):[],...ct(t)]:[];d.forEach(x=>{i&&x.addEventListener("scroll",r,{passive:!0}),o&&x.addEventListener("resize",r)});let p=u&&a?uf(u,r):null,c=-1,f=null;s&&(f=new ResizeObserver(x=>{let[b]=x;b&&b.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(c),c=requestAnimationFrame(()=>{f&&f.observe(t)})),r()}),u&&!l&&f.observe(u),f.observe(t));let m,v=l?Ne(e):null;l&&g();function g(){let x=Ne(e);v&&(x.x!==v.x||x.y!==v.y||x.width!==v.width||x.height!==v.height)&&r(),v=x,m=requestAnimationFrame(g)}return r(),()=>{d.forEach(x=>{i&&x.removeEventListener("scroll",r),o&&x.removeEventListener("resize",r)}),p&&p(),f&&f.disconnect(),f=null,l&&cancelAnimationFrame(m)}}var ff=(e,t,r)=>{let n=new Map,i={platform:lf,...r},o={...i.platform,_c:n};return Uc(e,t,{...i,platform:o})};function df(e){e.magic("anchor",t=>{if(!t._x_anchor)throw"Alpine: No x-anchor directive found on element using $anchor...";return t._x_anchor}),e.interceptClone((t,r)=>{t&&t._x_anchor&&!r._x_anchor&&(r._x_anchor=t._x_anchor)}),e.directive("anchor",e.skipDuringClone((t,{expression:r,modifiers:n,value:i},{cleanup:o,evaluate:s})=>{let{placement:a,offsetValue:l,unstyled:u}=Cs(n);t._x_anchor=e.reactive({x:0,y:0});let d=s(r);if(!d)throw"Alpine: no element provided to x-anchor...";let p=()=>{let f;ff(d,t,{placement:a,middleware:[Hc(),Kc({padding:5}),Wc(l)]}).then(({x:m,y:v})=>{u||As(t,m,v),JSON.stringify({x:m,y:v})!==f&&(t._x_anchor.x=m,t._x_anchor.y=v),f=JSON.stringify({x:m,y:v})})},c=cf(d,t,()=>p());o(()=>c())},(t,{expression:r,modifiers:n,value:i},{cleanup:o,evaluate:s})=>{let{placement:a,offsetValue:l,unstyled:u}=Cs(n);t._x_anchor&&(u||As(t,t._x_anchor.x,t._x_anchor.y))}))}function As(e,t,r){Object.assign(e.style,{left:t+"px",top:r+"px",position:"absolute"})}function Cs(e){let r=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].find(o=>e.includes(o)),n=0;if(e.includes("offset")){let o=e.findIndex(s=>s==="offset");n=e[o+1]!==void 0?Number(e[o+1]):n}let i=e.includes("no-style");return{placement:r,offsetValue:n,unstyled:i}}var $s=df;function Bs(){let e=new URL(window.location.href,document.baseURI);hf(e,document.documentElement.outerHTML)}function js(e){window.addEventListener("popstate",t=>{let n=(t.state||{}).alpine||{};if(!n._html)return;let i=mf(n._html);e(i)})}function Us(e,t){pf(t,e)}function pf(e,t){Hs("pushState",e,t)}function hf(e,t){Hs("replaceState",e,t)}function Hs(e,t,r){let n=new Date().getTime();qs(n,r);let i=history.state||{};i.alpine||(i.alpine={}),i.alpine._html=n;try{history[e](i,document.title,t)}catch(o){o instanceof DOMException&&o.name==="SecurityError"&&console.error("Livewire: You can't use wire:navigate with a link to a different root domain: "+t),console.error(o)}}function mf(e){return JSON.parse(sessionStorage.getItem("alpine:"+e))}function qs(e,t){try{sessionStorage.setItem("alpine:"+e,JSON.stringify(t))}catch(r){if(![22,1,2,3,4,5,6,7,8,9,10,11,12,13,14].includes(r.code))return;let n=Object.keys(sessionStorage).map(i=>Number(i.replace("alpine:",""))).sort().shift();if(!n)return;sessionStorage.removeItem("alpine:"+n),qs(e,t)}}function Ws(e,t){let r=o=>!o.isTrusted,n=o=>o.which>1||o.altKey||o.ctrlKey||o.metaKey||o.shiftKey,i=o=>o.which!==13||o.altKey||o.ctrlKey||o.metaKey||o.shiftKey;e.addEventListener("click",o=>{if(r(o)){o.preventDefault(),t(s=>s());return}n(o)||o.preventDefault()}),e.addEventListener("mousedown",o=>{n(o)||(o.preventDefault(),t(s=>{let a=l=>{l.preventDefault(),s(),e.removeEventListener("mouseup",a)};e.addEventListener("mouseup",a)}))}),e.addEventListener("keydown",o=>{i(o)||(o.preventDefault(),t(s=>s()))})}function Ks(e,t=60,r){e.addEventListener("mouseenter",n=>{let i=setTimeout(()=>{r(n)},t),o=()=>{clearTimeout(i),e.removeEventListener("mouseleave",o)};e.addEventListener("mouseleave",o)})}function xn(e){return dt(e.getAttribute("href"))}function dt(e){return new URL(e,document.baseURI)}function zs(e,t){let r=e.pathname+e.search;_n(r,(n,i)=>{t(n,i)})}function _n(e,t){let r={headers:{"X-Livewire-Navigate":""}};R("navigate.request",{url:e,options:r});let n;fetch(e,r).then(i=>(n=dt(i.url),i.text())).then(i=>{t(i,n)})}var J={};function Sn(e,t){let r=e.pathname;J[r]||(J[r]={finished:!1,html:null,whenFinished:()=>{}},_n(r,(n,i)=>{t(n,i)}))}function En(e,t,r){let n=J[t.pathname];n.html=e,n.finished=!0,n.finalDestination=r,n.whenFinished()}function Vs(e,t,r){let n=e.pathname+e.search;if(!J[n])return r();if(J[n].finished){let i=J[n].html,o=J[n].finalDestination;return delete J[n],t(i,o)}else J[n].whenFinished=()=>{let i=J[n].html,o=J[n].finalDestination;delete J[n],t(i,o)}}function An(e){S.mutateDom(()=>{e.querySelectorAll("[data-teleport-template]").forEach(t=>t._x_teleport.remove())})}function Cn(e){S.mutateDom(()=>{e.querySelectorAll("[data-teleport-target]").forEach(t=>t.remove())})}function Tn(e){S.walk(e,(t,r)=>{!t._x_teleport||(t._x_teleportPutBack(),r())})}function Js(e){return e.hasAttribute("data-teleport-target")}function On(){document.body.setAttribute("data-scroll-x",document.body.scrollLeft),document.body.setAttribute("data-scroll-y",document.body.scrollTop),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(e=>{e.setAttribute("data-scroll-x",e.scrollLeft),e.setAttribute("data-scroll-y",e.scrollTop)})}function kn(){let e=t=>{t.hasAttribute("data-scroll-x")?(t.scrollTo({top:Number(t.getAttribute("data-scroll-y")),left:Number(t.getAttribute("data-scroll-x")),behavior:"instant"}),t.removeAttribute("data-scroll-x"),t.removeAttribute("data-scroll-y")):window.scrollTo({top:0,left:0,behavior:"instant"})};queueMicrotask(()=>{e(document.body),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(e)})}var pt={};function Ln(e){pt={},document.querySelectorAll("[x-persist]").forEach(t=>{pt[t.getAttribute("x-persist")]=t,e(t),S.mutateDom(()=>{t.remove()})})}function Nn(e){let t=[];document.querySelectorAll("[x-persist]").forEach(r=>{let n=pt[r.getAttribute("x-persist")];!n||(t.push(r.getAttribute("x-persist")),n._x_wasPersisted=!0,e(n,r),S.mutateDom(()=>{r.replaceWith(n)}))}),Object.entries(pt).forEach(([r,n])=>{t.includes(r)||S.destroyTree(n)}),pt={}}function Gs(e){return e.hasAttribute("x-persist")}var ht=Ja(Ys());ht.default.configure({minimum:.1,trickleSpeed:200,showSpinner:!1});gf();var Pn=!1;function Qs(){Pn=!0,setTimeout(()=>{!Pn||ht.default.start()},150)}function Zs(){Pn=!1,ht.default.done(),ht.default.remove()}function gf(){let e=document.createElement("style");e.innerHTML=`/* Make clicks pass-through */
 
     #nprogress {
       pointer-events: none;
     }
 
@@ -80,12 +80,12 @@ Would you like to refresh the page?`)&&window.location.reload()}function ic(e){a
     }
     @keyframes nprogress-spinner {
       0%   { transform: rotate(0deg); }
       100% { transform: rotate(360deg); }
     }
-    `;let t=Xn();t&&(e.nonce=t),document.head.appendChild(e)}var In=[],ra=["data-csrf","aria-hidden"];function Mn(e,t){let r=new DOMParser().parseFromString(e,"text/html"),n=document.adoptNode(r.body),i=document.adoptNode(r.head);In=In.concat(Array.from(document.body.querySelectorAll("script")).map(a=>sa(aa(a.outerHTML,ra))));let o=()=>{};bf(i).finally(()=>{o()}),vf(n,In);let s=document.body;document.body.replaceWith(n),Alpine.destroyTree(s),t(a=>o=a)}function vf(e,t){e.querySelectorAll("script").forEach(r=>{if(r.hasAttribute("data-navigate-once")){let n=sa(aa(r.outerHTML,ra));if(t.includes(n))return}r.replaceWith(na(r))})}function bf(e){let t=Array.from(document.head.children),r=t.map(s=>s.outerHTML),n=document.createDocumentFragment(),i=[],o=[];for(let s of Array.from(e.children))if(ta(s)){if(r.includes(s.outerHTML))n.appendChild(s);else if(ia(s)&&yf(s,t)&&setTimeout(()=>window.location.reload()),oa(s))try{o.push(wf(na(s)))}catch{}else document.head.appendChild(s);i.push(s)}for(let s of Array.from(document.head.children))ta(s)||s.remove();for(let s of Array.from(e.children))document.head.appendChild(s);return Promise.all(o)}async function wf(e){return new Promise((t,r)=>{e.src?(e.onload=()=>t(),e.onerror=()=>r()):t(),document.head.appendChild(e)})}function na(e){let t=document.createElement("script");t.textContent=e.textContent,t.async=e.async;for(let r of e.attributes)t.setAttribute(r.name,r.value);return t}function ia(e){return e.hasAttribute("data-navigate-track")}function yf(e,t){let[r,n]=ea(e);return t.some(i=>{if(!ia(i))return!1;let[o,s]=ea(i);if(o===r&&n!==s)return!0})}function ea(e){return(oa(e)?e.src:e.href).split("?")}function ta(e){return e.tagName.toLowerCase()==="link"&&e.getAttribute("rel").toLowerCase()==="stylesheet"||e.tagName.toLowerCase()==="style"||e.tagName.toLowerCase()==="script"}function oa(e){return e.tagName.toLowerCase()==="script"}function sa(e){return e.split("").reduce((t,r)=>(t=(t<<5)-t+r.charCodeAt(0),t&t),0)}function aa(e,t){let r=e;return t.forEach(n=>{let i=new RegExp(`${n}="[^"]*"|${n}='[^']*'`,"g");r=r.replace(i,"")}),r=r.replaceAll(" ",""),r.trim()}var ar=!0,Fn=!0,xf=!0,la=!1;function da(e){e.navigate=r=>{t(dt(r))},e.navigate.disableProgressBar=()=>{Fn=!1},e.addInitSelector(()=>`[${e.prefixed("navigate")}]`),e.directive("navigate",(r,{modifiers:n})=>{n.includes("hover")&&Ks(r,60,()=>{let o=xn(r);Sn(o,(s,a)=>{En(s,o,a)})}),Ws(r,o=>{let s=xn(r);Sn(s,(a,l)=>{En(a,s,l)}),o(()=>{t(s)})})});function t(r){Fn&&Qs(),_f(r,(n,i)=>{lr("alpine:navigating"),xf&&On(),Fn&&Zs(),Sf(),Bs(),ua(e,o=>{ar&&Ln(s=>{An(s)}),Mn(n,s=>{Cn(document.body),ar&&Nn((a,l)=>{Tn(a)}),kn(),js(n,i),lr("alpine:navigated"),s(()=>{o(()=>{setTimeout(()=>{la&&fa()}),ca(e)})})})})})}Us(r=>{On(),ua(e,n=>{ar&&Ln(i=>{An(i)}),Mn(r,()=>{Cn(document.body),ar&&Nn((i,o)=>{Tn(i)}),kn(),lr("alpine:navigated"),n(()=>{la&&fa(),ca(e)})})})}),setTimeout(()=>{lr("alpine:navigated")})}function _f(e,t){Vs(e,t,()=>{zs(e,t)})}function ua(e,t){e.stopObservingMutations(),t(r=>{e.startObservingMutations(),queueMicrotask(()=>{r()})})}function lr(e){document.dispatchEvent(new CustomEvent(e,{bubbles:!0}))}function ca(e){e.initTree(document.body,void 0,(t,r)=>{t._x_wasPersisted&&r()})}function fa(){document.querySelector("[autofocus]")&&document.querySelector("[autofocus]").focus()}function Sf(){let e=function(t,r){Alpine.walk(t,(n,i)=>{Gs(n)&&i(),Js(n)?i():r(n,i)})};Alpine.destroyTree(document.body,e)}function Dn(e){e.magic("queryString",(t,{interceptor:r})=>{let n,i=!1,o=!1;return r((s,a,l,u,d)=>{let p=n||u,{initial:c,replace:f,push:m,pop:v}=cr(p,s,i);return l(c),o?(e.effect(()=>m(a())),v(async g=>{l(g),await(()=>Promise.resolve())()})):e.effect(()=>f(a())),c},s=>{s.alwaysShow=()=>(i=!0,s),s.usePush=()=>(o=!0,s),s.as=a=>(n=a,s)})}),e.history={track:cr}}function cr(e,t,r=!1){let{has:n,get:i,set:o,remove:s}=Af(),a=new URL(window.location.href),l=n(a,e),u=l?i(a,e):t,d=JSON.stringify(u),p=m=>JSON.stringify(m)===d;r&&(a=o(a,e,u)),pa(a,e,{value:u});let c=!1,f=(m,v)=>{if(c)return;let g=new URL(window.location.href);!r&&!l&&p(v)||v===void 0?g=s(g,e):g=o(g,e,v),m(g,e,{value:v})};return{initial:u,replace(m){f(pa,m)},push(m){f(Ef,m)},pop(m){let v=g=>{!g.state||!g.state.alpine||Object.entries(g.state.alpine).forEach(([x,{value:b}])=>{if(x!==e)return;c=!0;let _=m(b);_ instanceof Promise?_.finally(()=>c=!1):c=!1})};return window.addEventListener("popstate",v),()=>window.removeEventListener("popstate",v)}}}function pa(e,t,r){let n=window.history.state||{};n.alpine||(n.alpine={}),n.alpine[t]=$n(r),window.history.replaceState(n,"",e.toString())}function Ef(e,t,r){let n=window.history.state||{};n.alpine||(n.alpine={}),n={alpine:{...n.alpine,[t]:$n(r)}},window.history.pushState(n,"",e.toString())}function $n(e){if(e!==void 0)return JSON.parse(JSON.stringify(e))}function Af(){return{has(e,t){let r=e.search;if(!r)return!1;let n=ur(r);return Object.keys(n).includes(t)},get(e,t){let r=e.search;return r?ur(r)[t]:!1},set(e,t,r){let n=ur(e.search);return n[t]=ma($n(r)),e.search=ha(n),e},remove(e,t){let r=ur(e.search);return delete r[t],e.search=ha(r),e}}}function ma(e){if(!vt(e))return e;for(let t in e)e[t]===null?delete e[t]:e[t]=ma(e[t]);return e}function ha(e){let t=i=>typeof i=="object"&&i!==null,r=(i,o={},s="")=>(Object.entries(i).forEach(([a,l])=>{let u=s===""?a:`${s}[${a}]`;l===null?o[u]="":t(l)?o={...o,...r(l,o,u)}:o[u]=encodeURIComponent(l).replaceAll("%20","+").replaceAll("%2C",",")}),o),n=r(e);return Object.entries(n).map(([i,o])=>`${i}=${o}`).join("&")}function ur(e){if(e=e.replace("?",""),e==="")return{};let t=(i,o,s)=>{let[a,l,...u]=i.split(".");if(!l)return s[i]=o;s[a]===void 0&&(s[a]=isNaN(l)?{}:[]),t([l,...u].join("."),o,s[a])},r=e.split("&").map(i=>i.split("=")),n={};return r.forEach(([i,o])=>{if(o=decodeURIComponent(o.replaceAll("+","%20")),!i.includes("["))n[i]=o;else{let s=i.replaceAll("[",".").replaceAll("]","");t(s,o,n)}}),n}function Un(e,t,r){Of();let n,i,o,s,a,l,u,d,p,c;function f(h={}){let y=L=>L.getAttribute("key"),C=()=>{};a=h.updating||C,l=h.updated||C,u=h.removing||C,d=h.removed||C,p=h.adding||C,c=h.added||C,o=h.key||y,s=h.lookahead||!1}function m(h,y){if(v(h,y))return g(h,y);let C=!1;if(!Ke(a,h,y,()=>C=!0)){if(h.nodeType===1&&window.Alpine&&window.Alpine.cloneNode(h,y),Tf(y)){x(h,y),l(h,y);return}C||b(h,y),l(h,y),_(h,y)}}function v(h,y){return h.nodeType!=y.nodeType||h.nodeName!=y.nodeName||O(h)!=O(y)}function g(h,y){if(Ke(u,h))return;let C=y.cloneNode(!0);Ke(p,C)||(h.replaceWith(C),d(h),c(C))}function x(h,y){let C=y.nodeValue;h.nodeValue!==C&&(h.nodeValue=C)}function b(h,y){if(h._x_transitioning||h._x_isShown&&!y._x_isShown||!h._x_isShown&&y._x_isShown)return;let C=Array.from(h.attributes),L=Array.from(y.attributes);for(let A=C.length-1;A>=0;A--){let E=C[A].name;y.hasAttribute(E)||h.removeAttribute(E)}for(let A=L.length-1;A>=0;A--){let E=L[A].name,U=L[A].value;h.getAttribute(E)!==U&&h.setAttribute(E,U)}}function _(h,y){h._x_teleport&&(h=h._x_teleport),y._x_teleport&&(y=y._x_teleport);let C=T(h.children),L={},A=va(y),E=va(h);for(;A;){kf(A,E);let P=O(A),$=O(E);if(!E)if(P&&L[P]){let N=L[P];h.appendChild(N),E=N}else{if(!Ke(p,A)){let N=A.cloneNode(!0);h.appendChild(N),c(N)}A=G(y,A);continue}let q=N=>N&&N.nodeType===8&&N.textContent==="[if BLOCK]><![endif]",H=N=>N&&N.nodeType===8&&N.textContent==="[if ENDBLOCK]><![endif]";if(q(A)&&q(E)){let N=0,mt=E;for(;E;){let X=G(h,E);if(q(X))N++;else if(H(X)&&N>0)N--;else if(H(X)&&N===0){E=X;break}E=X}let Fa=E;N=0;let Da=A;for(;A;){let X=G(y,A);if(q(X))N++;else if(H(X)&&N>0)N--;else if(H(X)&&N===0){A=X;break}A=X}let $a=A,Ba=new Bn(mt,Fa),Ua=new Bn(Da,$a);_(Ba,Ua);continue}if(E.nodeType===1&&s&&!E.isEqualNode(A)){let N=G(y,A),mt=!1;for(;!mt&&N;)N.nodeType===1&&E.isEqualNode(N)&&(mt=!0,E=w(h,A,E),$=O(E)),N=G(y,N)}if(P!==$){if(!P&&$){L[$]=E,E=w(h,A,E),L[$].remove(),E=G(h,E),A=G(y,A);continue}if(P&&!$&&C[P]&&(E.replaceWith(C[P]),E=C[P]),P&&$){let N=C[P];if(N)L[$]=E,E.replaceWith(N),E=N;else{L[$]=E,E=w(h,A,E),L[$].remove(),E=G(h,E),A=G(y,A);continue}}}let ge=E&&G(h,E);m(E,A),A=A&&G(y,A),E=ge}let U=[];for(;E;)Ke(u,E)||U.push(E),E=G(h,E);for(;U.length;){let P=U.shift();P.remove(),d(P)}}function O(h){return h&&h.nodeType===1&&o(h)}function T(h){let y={};for(let C of h){let L=O(C);L&&(y[L]=C)}return y}function w(h,y,C){if(!Ke(p,y)){let L=y.cloneNode(!0);return h.insertBefore(L,C),c(L),L}return y}return f(r),n=e,i=typeof t=="string"?Cf(t):t,window.Alpine&&window.Alpine.closestDataStack&&!e._x_dataStack&&(i._x_dataStack=window.Alpine.closestDataStack(e),i._x_dataStack&&window.Alpine.cloneNode(e,i)),m(e,i),n=void 0,i=void 0,e}Un.step=()=>{};Un.log=()=>{};function Ke(e,...t){let r=!1;return e(...t,()=>r=!0),r}var ga=!1;function Cf(e){let t=document.createElement("template");return t.innerHTML=e,t.content.firstElementChild}function Tf(e){return e.nodeType===3||e.nodeType===8}var Bn=class{constructor(e,t){this.startComment=e,this.endComment=t}get children(){let e=[],t=this.startComment.nextSibling;for(;t&&t!==this.endComment;)e.push(t),t=t.nextSibling;return e}appendChild(e){this.endComment.before(e)}get firstChild(){let e=this.startComment.nextSibling;if(e!==this.endComment)return e}nextNode(e){let t=e.nextSibling;if(t!==this.endComment)return t}insertBefore(e,t){return t.before(e),e}};function va(e){return e.firstChild}function G(e,t){let r;return e instanceof Bn?r=e.nextNode(t):r=t.nextSibling,r}function Of(){if(ga)return;ga=!0;let e=Element.prototype.setAttribute,t=document.createElement("div");Element.prototype.setAttribute=function(n,i){if(!n.includes("@"))return e.call(this,n,i);t.innerHTML=`<span ${n}="${i}"></span>`;let o=t.firstElementChild.getAttributeNode(n);t.firstElementChild.removeAttributeNode(o),this.setAttributeNode(o)}}function kf(e,t){let r=t&&t._x_bindings&&t._x_bindings.id;!r||(e.setAttribute("id",r),e.id=r)}function Lf(e){e.morph=Un}var ba=Lf;function Nf(e){e.directive("mask",(t,{value:r,expression:n},{effect:i,evaluateLater:o,cleanup:s})=>{let a=()=>n,l="";queueMicrotask(()=>{if(["function","dynamic"].includes(r)){let c=o(n);i(()=>{a=f=>{let m;return e.dontAutoEvaluateFunctions(()=>{c(v=>{m=typeof v=="function"?v(f):v},{scope:{$input:f,$money:Pf.bind({el:t})}})}),m},d(t,!1)})}else d(t,!1);t._x_model&&t._x_model.set(t.value)});let u=new AbortController;s(()=>{u.abort()}),t.addEventListener("input",()=>d(t),{signal:u.signal,capture:!0}),t.addEventListener("blur",()=>d(t,!1),{signal:u.signal});function d(c,f=!0){let m=c.value,v=a(m);if(!v||v==="false")return!1;if(l.length-c.value.length===1)return l=c.value;let g=()=>{l=c.value=p(m,v)};f?Rf(c,v,()=>{g()}):g()}function p(c,f){if(c==="")return"";let m=wa(f,c);return ya(f,m)}}).before("model")}function Rf(e,t,r){let n=e.selectionStart,i=e.value;r();let o=i.slice(0,n),s=ya(t,wa(t,o)).length;e.setSelectionRange(s,s)}function wa(e,t){let r=t,n="",i={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},o="";for(let s=0;s<e.length;s++){if(["9","a","*"].includes(e[s])){o+=e[s];continue}for(let a=0;a<r.length;a++)if(r[a]===e[s]){r=r.slice(0,a)+r.slice(a+1);break}}for(let s=0;s<o.length;s++){let a=!1;for(let l=0;l<r.length;l++)if(i[o[s]].test(r[l])){n+=r[l],r=r.slice(0,l)+r.slice(l+1),a=!0;break}if(!a)break}return n}function ya(e,t){let r=Array.from(t),n="";for(let i=0;i<e.length;i++){if(!["9","a","*"].includes(e[i])){n+=e[i];continue}if(r.length===0)break;n+=r.shift()}return n}function Pf(e,t=".",r,n=2){if(e==="-")return"-";if(/^\D+$/.test(e))return"9";r==null&&(r=t===","?".":",");let i=(l,u)=>{let d="",p=0;for(let c=l.length-1;c>=0;c--)l[c]!==u&&(p===3?(d=l[c]+u+d,p=0):d=l[c]+d,p++);return d},o=e.startsWith("-")?"-":"",s=e.replaceAll(new RegExp(`[^0-9\\${t}]`,"g"),""),a=Array.from({length:s.split(t)[0].length}).fill("9").join("");return a=`${o}${i(a,r)}`,n>0&&e.includes(t)&&(a+=`${t}`+"9".repeat(n)),queueMicrotask(()=>{this.el.value.endsWith(t)||this.el.value[this.el.selectionStart-1]===t&&this.el.setSelectionRange(this.el.selectionStart-1,this.el.selectionStart-1)}),a}var xa=Nf;function _a(){setTimeout(()=>If()),gt(document,"livewire:init"),gt(document,"livewire:initializing"),S.plugin(ba),S.plugin(Dn),S.plugin(ws),S.plugin(Qo),S.plugin($s),S.plugin(hs),S.plugin(bs),S.plugin(da),S.plugin(xa),S.addRootSelector(()=>"[wire\\:id]"),S.onAttributesAdded((e,t)=>{if(!Array.from(t).some(n=>He(n.name)))return;let r=z(e,!1);!r||t.forEach(n=>{if(!He(n.name))return;let i=Kt(e,n.name);R("directive.init",{el:e,component:r,directive:i,cleanup:o=>{S.onAttributeRemoved(e,i.raw,o)}})})}),S.interceptInit(S.skipDuringClone(e=>{if(!Array.from(e.attributes).some(r=>He(r.name)))return;if(e.hasAttribute("wire:id")){let r=qo(e);S.onAttributeRemoved(e,"wire:id",()=>{Wo(r.id)})}let t=z(e,!1);t&&(R("element.init",{el:e,component:t}),Array.from(e.getAttributeNames()).filter(n=>He(n)).map(n=>Kt(e,n)).forEach(n=>{R("directive.init",{el:e,component:t,directive:n,cleanup:i=>{S.onAttributeRemoved(e,n.raw,i)}})}))})),S.start(),setTimeout(()=>window.Livewire.initialRenderIsFinished=!0),gt(document,"livewire:initialized")}function If(){let e=document.querySelector("script[data-update-uri][data-csrf]");if(!e)return;let t=e.closest("[wire\\:id]");t&&console.warn("Livewire: missing closing tags found. Ensure your template elements contain matching closing tags.",t)}var ze={};k("element.init",({el:e,component:t})=>setTimeout(()=>{pe(e).missing("submit")||e.addEventListener("submit",()=>{ze[t.id]=[],S.walk(t.el,(n,i)=>{if(!!e.contains(n)){if(n.hasAttribute("wire:ignore"))return i();n.tagName.toLowerCase()==="button"&&n.type==="submit"||n.tagName.toLowerCase()==="select"||n.tagName.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")?(n.disabled||ze[t.id].push(()=>n.disabled=!1),n.disabled=!0):(n.tagName.toLowerCase()==="input"||n.tagName.toLowerCase()==="textarea")&&(n.readOnly||ze[t.id].push(()=>n.readOnly=!1),n.readOnly=!0)}})})}));k("commit",({component:e,respond:t})=>{t(()=>{Mf(e)})});function Mf(e){if(!!ze[e.id])for(;ze[e.id].length>0;)ze[e.id].shift()()}k("commit.pooling",({commits:e})=>{e.forEach(t=>{let r=t.component;Ea(r,n=>{n.$wire.$commit()})})});k("commit.pooled",({pools:e})=>{Ff(e).forEach(r=>{let n=r.component;Ea(n,i=>{Df(e,n,i)})})});function Ff(e){let t=[];return e.forEach(r=>{r.commits.forEach(n=>{t.push(n)})}),t}function Df(e,t,r){let n=Sa(e,t),i=Sa(e,r),o=i.findCommitByComponent(r);i.delete(o),n.add(o),e.forEach(s=>{s.empty()&&e.delete(s)})}function Sa(e,t){for(let[r,n]of e.entries())if(n.hasCommitFor(t))return n}function Ea(e,t){Aa(e,r=>{($f(r)||Bf(r))&&t(r)})}function $f(e){return!!e.snapshot.memo.props}function Bf(e){return!!e.snapshot.memo.bindings}function Aa(e,t){e.children.forEach(r=>{t(r),Aa(r,t)})}var Ve=new WeakMap,fr=new Set;k("payload.intercept",async({assets:e})=>{if(!!e)for(let[t,r]of Object.entries(e))await Hf(t,async()=>{await qf(r)})});k("component.init",({component:e})=>{let t=e.snapshot.memo.assets;t&&t.forEach(r=>{fr.has(r)||fr.add(r)})});k("effect",({component:e,effects:t})=>{let r=t.scripts;r&&Object.entries(r).forEach(([n,i])=>{Uf(e,n,()=>{let o=jf(i);S.dontAutoEvaluateFunctions(()=>{S.evaluate(e.el,o,{$wire:e.$wire})})})})});function Uf(e,t,r){if(Ve.has(e)&&Ve.get(e).includes(t))return;r(),Ve.has(e)||Ve.set(e,[]);let n=Ve.get(e);n.push(t),Ve.set(e,n)}function jf(e){let r=/<script\b[^>]*>([\s\S]*?)<\/script>/gm.exec(e);return r&&r[1]?r[1].trim():""}async function Hf(e,t){fr.has(e)||(await t(),fr.add(e))}async function qf(e){let t=new DOMParser().parseFromString(e,"text/html"),r=document.adoptNode(t.head);for(let n of r.children)try{await Wf(n)}catch{}}async function Wf(e){return new Promise((t,r)=>{if(Kf(e)){let n=zf(e);n.src?(n.onload=()=>t(),n.onerror=()=>r()):t(),document.head.appendChild(n)}else document.head.appendChild(e),t()})}function Kf(e){return e.tagName.toLowerCase()==="script"}function zf(e){let t=document.createElement("script");t.textContent=e.textContent,t.async=e.async;for(let r of e.attributes)t.setAttribute(r.name,r.value);return t}k("commit",({succeed:e})=>{e(({effects:t})=>{let r=t.download;if(!r)return;let n=window.webkitURL||window.URL,i=n.createObjectURL(Vf(r.content,r.contentType)),o=document.createElement("a");o.style.display="none",o.href=i,o.download=r.name,document.body.appendChild(o),o.click(),setTimeout(function(){n.revokeObjectURL(i)},0)})});function Vf(e,t="",r=512){let n=atob(e),i=[];t===null&&(t="");for(let o=0;o<n.length;o+=r){let s=n.slice(o,o+r),a=new Array(s.length);for(let u=0;u<s.length;u++)a[u]=s.charCodeAt(u);let l=new Uint8Array(a);i.push(l)}return new Blob(i,{type:t})}k("effect",({component:e,effects:t})=>{let r=t.js,n=t.xjs;r&&Object.entries(r).forEach(([i,o])=>{Uo(e,i,()=>{S.evaluate(e.el,o)})}),n&&n.forEach(i=>{S.evaluate(e.el,i)})});var jn=new WeakSet,Hn=new WeakSet;k("component.init",({component:e})=>{let t=e.snapshot.memo;t.lazyLoaded!==void 0&&(Hn.add(e),t.lazyIsolated!==void 0&&t.lazyIsolated===!1&&jn.add(e))});k("commit.pooling",({commits:e})=>{e.forEach(t=>{!Hn.has(t.component)||(jn.has(t.component)?(t.isolate=!1,jn.delete(t.component)):t.isolate=!0,Hn.delete(t.component))})});k("effect",({component:e,effects:t,cleanup:r})=>{let n=t.url;!n||Object.entries(n).forEach(([i,o])=>{let{name:s,as:a,use:l,alwaysShow:u,except:d}=Jf(i,o);a||(a=s);let p=[!1,null,void 0].includes(d)?W(e.ephemeral,s):d,{replace:c,push:f,pop:m}=cr(a,p,u);if(l==="replace"){let v=S.effect(()=>{c(W(e.reactive,s))});r(()=>S.release(v))}else if(l==="push"){let v=k("commit",({component:x,succeed:b})=>{if(e!==x)return;let _=W(e.canonical,s);b(()=>{let O=W(e.canonical,s);JSON.stringify(_)!==JSON.stringify(O)&&f(O)})}),g=m(async x=>{await e.$wire.set(s,x),document.querySelectorAll("input").forEach(b=>{b._x_forceModelUpdate&&b._x_forceModelUpdate(b._x_model.get())})});r(()=>{v(),g()})}})});function Jf(e,t){let r={use:"replace",alwaysShow:!1};return typeof t=="string"?{...r,name:t,as:t}:{...{...r,name:e,as:e},...t}}k("request",({options:e})=>{window.Echo&&(e.headers["X-Socket-ID"]=window.Echo.socketId())});k("effect",({component:e,effects:t})=>{(t.listeners||[]).forEach(n=>{if(n.startsWith("echo")){if(typeof window.Echo>"u"){console.warn("Laravel Echo cannot be found");return}let i=n.split(/(echo:|echo-)|:|,/);i[1]=="echo:"&&i.splice(2,0,"channel",void 0),i[2]=="notification"&&i.push(void 0,void 0);let[o,s,a,l,u,d,p]=i;if(["channel","private","encryptedPrivate"].includes(a)){let c=f=>ie(e,n,[f]);window.Echo[a](u).listen(p,c),e.addCleanup(()=>{window.Echo[a](u).stopListening(p,c)})}else if(a=="presence")if(["here","joining","leaving"].includes(p))window.Echo.join(u)[p](c=>{ie(e,n,[c])});else{let c=f=>ie(e,n,[f]);window.Echo.join(u).listen(p,c),e.addCleanup(()=>{window.Echo.leaveChannel(u)})}else a=="notification"?window.Echo.private(u).notification(c=>{ie(e,n,[c])}):console.warn("Echo channel type not yet supported")}})});var Ca=new WeakSet;k("component.init",({component:e})=>{e.snapshot.memo.isolate===!0&&Ca.add(e)});k("commit.pooling",({commits:e})=>{e.forEach(t=>{!Ca.has(t.component)||(t.isolate=!0)})});Gf()&&Alpine.navigate.disableProgressBar();document.addEventListener("alpine:navigated",e=>{document.dispatchEvent(new CustomEvent("livewire:navigated",{bubbles:!0}))});document.addEventListener("alpine:navigating",e=>{document.dispatchEvent(new CustomEvent("livewire:navigating",{bubbles:!0}))});function Ta(e,t,r){e.redirectUsingNavigate?Alpine.navigate(t):r()}function Gf(){return!!(document.querySelector("[data-no-progress-bar]")||window.livewireScriptConfig&&window.livewireScriptConfig.progressBar===!1)}k("effect",({effects:e})=>{if(!e.redirect)return;let t=e.redirect;Ta(e,t,()=>{window.location.href=t})});function ka(e,t,r){let n=t.parentElement?t.parentElement.tagName.toLowerCase():"div",i=document.createElement(n);i.innerHTML=r;let o;try{o=z(t.parentElement)}catch{}o&&(i.__livewire=o);let s=i.firstElementChild;s.__livewire=e,R("morph",{el:t,toEl:s,component:e}),S.morph(t,s,{updating:(a,l,u,d)=>{if(!Je(a)){if(R("morph.updating",{el:a,toEl:l,component:e,skip:d,childrenOnly:u}),a.__livewire_ignore===!0||(a.__livewire_ignore_self===!0&&u(),Oa(a)&&a.getAttribute("wire:id")!==e.id))return d();Oa(a)&&(l.__livewire=e)}},updated:a=>{Je(a)||R("morph.updated",{el:a,component:e})},removing:(a,l)=>{Je(a)||R("morph.removing",{el:a,component:e,skip:l})},removed:a=>{Je(a)||R("morph.removed",{el:a,component:e})},adding:a=>{R("morph.adding",{el:a,component:e})},added:a=>{if(Je(a))return;let l=z(a).id;R("morph.added",{el:a})},key:a=>{if(!Je(a))return a.hasAttribute("wire:key")?a.getAttribute("wire:key"):a.hasAttribute("wire:id")?a.getAttribute("wire:id"):a.id},lookahead:!1})}function Je(e){return typeof e.hasAttribute!="function"}function Oa(e){return e.hasAttribute("wire:id")}k("effect",({component:e,effects:t})=>{let r=t.html;!r||queueMicrotask(()=>{queueMicrotask(()=>{ka(e,e.el,r)})})});k("effect",({component:e,effects:t})=>{Xf(e,t.listeners||[]),Yf(e,t.dispatches||[])});function Xf(e,t){t.forEach(r=>{let n=i=>{i.__livewire&&i.__livewire.receivedBy.push(e),e.$wire.call("__dispatch",r,i.detail||{})};window.addEventListener(r,n),e.addCleanup(()=>window.removeEventListener(r,n)),e.el.addEventListener(r,i=>{!i.__livewire||i.bubbles||(i.__livewire&&i.__livewire.receivedBy.push(e.id),e.$wire.call("__dispatch",r,i.detail||{}))})})}function Yf(e,t){t.forEach(({name:r,params:n={},self:i=!1,to:o})=>{i?ie(e,r,n):o?je(o,r,n):Ht(e,r,n)})}k("morph.added",({el:e})=>{e.__addedByMorph=!0});M("transition",({el:e,directive:t,component:r,cleanup:n})=>{let i=S.reactive({state:!e.__addedByMorph});S.bind(e,{[t.rawName.replace("wire:","x-")]:"","x-show"(){return i.state}}),e.__addedByMorph&&setTimeout(()=>i.state=!0);let o=[];o.push(k("morph.removing",({el:s,skip:a})=>{a(),s.addEventListener("transitionend",()=>{s.remove()}),i.state=!1,o.push(k("morph",({component:l})=>{l===r&&(s.remove(),o.forEach(u=>u()))}))})),n(()=>o.forEach(s=>s()))});var Qf=new Ie;function La(e,t){Qf.each(e,r=>{r.callback(),r.callback=()=>{}}),t()}k("directive.init",({el:e,directive:t,cleanup:r,component:n})=>{if(["snapshot","effects","model","init","loading","poll","ignore","id","data","key","target","dirty"].includes(t.value))return;let i=t.rawName.replace("wire:","x-on:");t.value==="submit"&&!t.modifiers.includes("prevent")&&(i=i+".prevent");let o=S.bind(e,{[i](s){let a=()=>{La(n,()=>{S.evaluate(e,"$wire."+t.expression,{scope:{$event:s}})})};e.__livewire_confirm?e.__livewire_confirm(()=>{a()},()=>{s.stopImmediatePropagation()}):a()}});r(o)});S.addInitSelector(()=>"[wire\\:navigate]");S.addInitSelector(()=>"[wire\\:navigate\\.hover]");S.interceptInit(S.skipDuringClone(e=>{e.hasAttribute("wire:navigate")?S.bind(e,{["x-navigate"]:!0}):e.hasAttribute("wire:navigate.hover")&&S.bind(e,{["x-navigate.hover"]:!0})}));document.addEventListener("alpine:navigating",()=>{Livewire.all().forEach(e=>{e.inscribeSnapshotAndEffectsOnElement()})});M("confirm",({el:e,directive:t})=>{let r=t.expression,n=t.modifiers.includes("prompt");r=r.replaceAll("\\n",`
-`),r===""&&(r="Are you sure?"),e.__livewire_confirm=(i,o)=>{if(n){let[s,a]=r.split("|");a?prompt(s)===a?i():o():console.warn("Livewire: Must provide expectation with wire:confirm.prompt")}else confirm(r)?i():o()}});function re(e,t,r,n=null){if(r=t.modifiers.includes("remove")?!r:r,t.modifiers.includes("class")){let i=t.expression.split(" ").filter(String);r?e.classList.add(...i):e.classList.remove(...i)}else if(t.modifiers.includes("attr"))r?e.setAttribute(t.expression,!0):e.removeAttribute(t.expression);else{let i=n??window.getComputedStyle(e,null).getPropertyValue("display"),o=["inline","block","table","flex","grid","inline-flex"].filter(s=>t.modifiers.includes(s))[0]||"inline-block";o=t.modifiers.includes("remove")?i:o,e.style.display=r?o:"none"}}var qn=new Set,Wn=new Set;window.addEventListener("offline",()=>qn.forEach(e=>e()));window.addEventListener("online",()=>Wn.forEach(e=>e()));M("offline",({el:e,directive:t,cleanup:r})=>{let n=()=>re(e,t,!0),i=()=>re(e,t,!1);qn.add(n),Wn.add(i),r(()=>{qn.delete(n),Wn.delete(i)})});M("loading",({el:e,directive:t,component:r})=>{let{targets:n,inverted:i}=nd(e),[o,s]=Zf(t);ed(r,n,i,[()=>o(()=>re(e,t,!0)),()=>s(()=>re(e,t,!1))]),td(r,n,[()=>o(()=>re(e,t,!0)),()=>s(()=>re(e,t,!1))])});function Zf(e){if(!e.modifiers.includes("delay")||e.modifiers.includes("none"))return[o=>o(),o=>o()];let t=200,r={shortest:50,shorter:100,short:150,default:200,long:300,longer:500,longest:1e3};Object.keys(r).some(o=>{if(e.modifiers.includes(o))return t=r[o],!0});let n,i=!1;return[o=>{n=setTimeout(()=>{o(),i=!0},t)},async o=>{i?(await o(),i=!1):clearTimeout(n)}]}function ed(e,t,r,[n,i]){k("commit",({component:o,commit:s,respond:a})=>{o===e&&(t.length>0&&rd(s,t)===r||(n(),a(()=>{i()})))})}function td(e,t,[r,n]){let i=o=>{let{id:s,property:a}=o.detail;return s!==e.id||t.length>0&&!t.map(l=>l.target).includes(a)};window.addEventListener("livewire-upload-start",o=>{i(o)||r()}),window.addEventListener("livewire-upload-finish",o=>{i(o)||n()}),window.addEventListener("livewire-upload-error",o=>{i(o)||n()})}function rd(e,t){let{updates:r,calls:n}=e;return t.some(({target:i,params:o})=>{if(o)return n.some(({method:a,params:l})=>i===a&&o===Na(JSON.stringify(l)));if(Object.keys(r).some(a=>a.includes(".")&&a.split(".")[0]===i?!0:a===i)||n.map(a=>a.method).includes(i))return!0})}function nd(e){let t=pe(e),r=[],n=!1;if(t.has("target")){let i=t.get("target"),o=i.expression;i.modifiers.includes("except")&&(n=!0),o.includes("(")&&o.includes(")")?r.push({target:i.method,params:Na(JSON.stringify(i.params))}):o.includes(",")?o.split(",").map(s=>s.trim()).forEach(s=>{r.push({target:s})}):r.push({target:o})}else{let i=["init","dirty","offline","target","loading","poll","ignore","key","id"];t.all().filter(o=>!i.includes(o.value)).map(o=>o.expression.split("(")[0]).forEach(o=>r.push({target:o}))}return{targets:r,inverted:n}}function Na(e){return btoa(encodeURIComponent(e))}M("stream",({el:e,directive:t,cleanup:r})=>{let{expression:n,modifiers:i}=t,o=k("stream",({name:s,content:a,replace:l})=>{s===n&&(i.includes("replace")||l?e.innerHTML=a:e.innerHTML=e.innerHTML+a)});r(o)});k("request",({respond:e})=>{e(t=>{let r=t.response;!r.headers.has("X-Livewire-Stream")||(t.response={ok:!0,redirected:!1,status:200,async text(){let n=await id(r,i=>{R("stream",i)});return wt(n)&&(this.ok=!1),n}})})});async function id(e,t){let r=e.body.getReader(),n="";for(;;){let{done:i,value:o}=await r.read(),a=new TextDecoder().decode(o),[l,u]=od(n+a);if(l.forEach(d=>{t(d)}),n=u,i)return n}}function od(e){let t=/({"stream":true.*?"endStream":true})/g,r=e.match(t),n=[];if(r)for(let o=0;o<r.length;o++)n.push(JSON.parse(r[o]).body);let i=e.replace(t,"");return[n,i]}M("ignore",({el:e,directive:t})=>{t.modifiers.includes("self")?e.__livewire_ignore_self=!0:e.__livewire_ignore=!0});var Ra=new Ie;k("commit",({component:e,respond:t})=>{t(()=>{setTimeout(()=>{Ra.each(e,r=>r(!1))})})});M("dirty",({el:e,directive:t,component:r})=>{let n=sd(e),i=Alpine.reactive({state:!1}),o=!1,s=e.style.display,a=l=>{re(e,t,l,s),o=l};Ra.add(r,a),Alpine.effect(()=>{let l=!1;if(n.length===0)l=JSON.stringify(r.canonical)!==JSON.stringify(r.reactive);else for(let u=0;u<n.length&&!l;u++){let d=n[u];l=JSON.stringify(W(r.canonical,d))!==JSON.stringify(W(r.reactive,d))}o!==l&&a(l),o=l})});function sd(e){let t=pe(e),r=[];return t.has("model")&&r.push(t.get("model").expression),t.has("target")&&(r=r.concat(t.get("target").expression.split(",").map(n=>n.trim()))),r}M("model",({el:e,directive:t,component:r,cleanup:n})=>{let{expression:i,modifiers:o}=t;if(!i)return console.warn("Livewire: [wire:model] is missing a value.",e);if(Pa(r,i))return console.warn('Livewire: [wire:model="'+i+'"] property does not exist on component: ['+r.name+"]",e);if(e.type&&e.type.toLowerCase()==="file")return Zn(e,i,r,n);let s=o.includes("live"),a=o.includes("lazy")||o.includes("change"),l=o.includes("blur"),u=o.includes("debounce"),d=i.startsWith("$parent")?()=>r.$wire.$parent.$commit():()=>r.$wire.$commit(),p=ld(e)&&!u&&s?ud(d,150):d;S.bind(e,{["@change"](){a&&d()},["@blur"](){l&&d()},["x-model"+ad(o)](){return{get(){return W(r.$wire,i)},set(c){ve(r.$wire,i,c),s&&!a&&!l&&p()}}}})});function ad(e){return e=e.filter(t=>!["lazy","defer"].includes(t)),e.length===0?"":"."+e.join(".")}function ld(e){return["INPUT","TEXTAREA"].includes(e.tagName.toUpperCase())&&!["checkbox","radio"].includes(e.type)}function Pa(e,t){if(t.startsWith("$parent")){let n=z(e.el.parentElement,!1);return n?Pa(n,t.split("$parent.")[1]):!0}let r=t.split(".")[0];return!Object.keys(e.canonical).includes(r)}function ud(e,t){var r;return function(){var n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}M("init",({el:e,directive:t})=>{let r=t.expression??"$refresh";S.evaluate(e,`$wire.${r}`)});M("poll",({el:e,directive:t})=>{let r=yd(t.modifiers,2e3),{start:n,pauseWhile:i,throttleWhile:o,stopWhen:s}=fd(()=>{cd(e,t)},r);n(),o(()=>hd()&&gd(t)),i(()=>vd(t)&&bd(e)),i(()=>md(e)),i(()=>pd()),s(()=>wd(e))});function cd(e,t){S.evaluate(e,t.expression?"$wire."+t.expression:"$wire.$commit()")}function fd(e,t=2e3){let r=[],n=[],i=[];return{start(){let o=dd(t,()=>{if(i.some(s=>s()))return o();r.some(s=>s())||n.some(s=>s())&&Math.random()<.95||e()})},pauseWhile(o){r.push(o)},throttleWhile(o){n.push(o)},stopWhen(o){i.push(o)}}}var Re=[];function dd(e,t){if(!Re[e]){let r={timer:setInterval(()=>r.callbacks.forEach(n=>n()),e),callbacks:new Set};Re[e]=r}return Re[e].callbacks.add(t),()=>{Re[e].callbacks.delete(t),Re[e].callbacks.size===0&&(clearInterval(Re[e].timer),delete Re[e])}}var Kn=!1;window.addEventListener("offline",()=>Kn=!0);window.addEventListener("online",()=>Kn=!1);function pd(){return Kn}var Ia=!1;document.addEventListener("visibilitychange",()=>{Ia=document.hidden},!1);function hd(){return Ia}function md(e){return!pe(e).has("poll")}function gd(e){return!e.modifiers.includes("keep-alive")}function vd(e){return e.modifiers.includes("visible")}function bd(e){let t=e.getBoundingClientRect();return!(t.top<(window.innerHeight||document.documentElement.clientHeight)&&t.left<(window.innerWidth||document.documentElement.clientWidth)&&t.bottom>0&&t.right>0)}function wd(e){return e.isConnected===!1}function yd(e,t){let r,n=e.find(o=>o.match(/([0-9]+)ms/)),i=e.find(o=>o.match(/([0-9]+)s/));return n?r=Number(n.replace("ms","")):i&&(r=Number(i.replace("s",""))*1e3),r||t}var Ma={directive:M,dispatchTo:je,start:_a,first:Vo,find:zo,getByName:Ko,all:Jo,hook:k,trigger:R,triggerAsync:$t,dispatch:Go,on:Xo,get navigate(){return S.navigate}};window.Livewire&&console.warn("Detected multiple instances of Livewire running");window.Alpine&&console.warn("Detected multiple instances of Alpine running");window.Livewire=Ma;window.Alpine=S;window.livewireScriptConfig===void 0&&document.addEventListener("DOMContentLoaded",()=>{Ma.start()});})();
+    `;let t=Xn();t&&(e.nonce=t),document.head.appendChild(e)}var In=[],ra=["data-csrf","aria-hidden"];function Mn(e,t){let r=new DOMParser().parseFromString(e,"text/html"),n=document.adoptNode(r.body),i=document.adoptNode(r.head);In=In.concat(Array.from(document.body.querySelectorAll("script")).map(a=>sa(aa(a.outerHTML,ra))));let o=()=>{};bf(i).finally(()=>{o()}),vf(n,In);let s=document.body;document.body.replaceWith(n),Alpine.destroyTree(s),t(a=>o=a)}function vf(e,t){e.querySelectorAll("script").forEach(r=>{if(r.hasAttribute("data-navigate-once")){let n=sa(aa(r.outerHTML,ra));if(t.includes(n))return}r.replaceWith(na(r))})}function bf(e){let t=Array.from(document.head.children),r=t.map(s=>s.outerHTML),n=document.createDocumentFragment(),i=[],o=[];for(let s of Array.from(e.children))if(ta(s)){if(r.includes(s.outerHTML))n.appendChild(s);else if(ia(s)&&yf(s,t)&&setTimeout(()=>window.location.reload()),oa(s))try{o.push(wf(na(s)))}catch{}else document.head.appendChild(s);i.push(s)}for(let s of Array.from(document.head.children))ta(s)||s.remove();for(let s of Array.from(e.children))document.head.appendChild(s);return Promise.all(o)}async function wf(e){return new Promise((t,r)=>{e.src?(e.onload=()=>t(),e.onerror=()=>r()):t(),document.head.appendChild(e)})}function na(e){let t=document.createElement("script");t.textContent=e.textContent,t.async=e.async;for(let r of e.attributes)t.setAttribute(r.name,r.value);return t}function ia(e){return e.hasAttribute("data-navigate-track")}function yf(e,t){let[r,n]=ea(e);return t.some(i=>{if(!ia(i))return!1;let[o,s]=ea(i);if(o===r&&n!==s)return!0})}function ea(e){return(oa(e)?e.src:e.href).split("?")}function ta(e){return e.tagName.toLowerCase()==="link"&&e.getAttribute("rel").toLowerCase()==="stylesheet"||e.tagName.toLowerCase()==="style"||e.tagName.toLowerCase()==="script"}function oa(e){return e.tagName.toLowerCase()==="script"}function sa(e){return e.split("").reduce((t,r)=>(t=(t<<5)-t+r.charCodeAt(0),t&t),0)}function aa(e,t){let r=e;return t.forEach(n=>{let i=new RegExp(`${n}="[^"]*"|${n}='[^']*'`,"g");r=r.replace(i,"")}),r=r.replaceAll(" ",""),r.trim()}var ar=!0,Fn=!0,xf=!0,la=!1;function da(e){e.navigate=r=>{t(dt(r))},e.navigate.disableProgressBar=()=>{Fn=!1},e.addInitSelector(()=>`[${e.prefixed("navigate")}]`),e.directive("navigate",(r,{modifiers:n})=>{n.includes("hover")&&Ks(r,60,()=>{let o=xn(r);Sn(o,(s,a)=>{En(s,o,a)})}),Ws(r,o=>{let s=xn(r);Sn(s,(a,l)=>{En(a,s,l)}),o(()=>{t(s)})})});function t(r){Fn&&Qs(),_f(r,(n,i)=>{lr("alpine:navigating"),xf&&On(),Fn&&Zs(),Sf(),Bs(),ua(e,o=>{ar&&Ln(s=>{An(s)}),Mn(n,s=>{Cn(document.body),ar&&Nn((a,l)=>{Tn(a)}),kn(),Us(n,i),lr("alpine:navigated"),s(()=>{o(()=>{setTimeout(()=>{la&&fa()}),ca(e)})})})})})}js(r=>{On(),ua(e,n=>{ar&&Ln(i=>{An(i)}),Mn(r,()=>{Cn(document.body),ar&&Nn((i,o)=>{Tn(i)}),kn(),lr("alpine:navigated"),n(()=>{la&&fa(),ca(e)})})})}),setTimeout(()=>{lr("alpine:navigated")})}function _f(e,t){Vs(e,t,()=>{zs(e,t)})}function ua(e,t){e.stopObservingMutations(),t(r=>{e.startObservingMutations(),queueMicrotask(()=>{r()})})}function lr(e){document.dispatchEvent(new CustomEvent(e,{bubbles:!0}))}function ca(e){e.initTree(document.body,void 0,(t,r)=>{t._x_wasPersisted&&r()})}function fa(){document.querySelector("[autofocus]")&&document.querySelector("[autofocus]").focus()}function Sf(){let e=function(t,r){Alpine.walk(t,(n,i)=>{Gs(n)&&i(),Js(n)?i():r(n,i)})};Alpine.destroyTree(document.body,e)}function Dn(e){e.magic("queryString",(t,{interceptor:r})=>{let n,i=!1,o=!1;return r((s,a,l,u,d)=>{let p=n||u,{initial:c,replace:f,push:m,pop:v}=cr(p,s,i);return l(c),o?(e.effect(()=>m(a())),v(async g=>{l(g),await(()=>Promise.resolve())()})):e.effect(()=>f(a())),c},s=>{s.alwaysShow=()=>(i=!0,s),s.usePush=()=>(o=!0,s),s.as=a=>(n=a,s)})}),e.history={track:cr}}function cr(e,t,r=!1){let{has:n,get:i,set:o,remove:s}=Af(),a=new URL(window.location.href),l=n(a,e),u=l?i(a,e):t,d=JSON.stringify(u),p=m=>JSON.stringify(m)===d;r&&(a=o(a,e,u)),pa(a,e,{value:u});let c=!1,f=(m,v)=>{if(c)return;let g=new URL(window.location.href);!r&&!l&&p(v)||v===void 0?g=s(g,e):g=o(g,e,v),m(g,e,{value:v})};return{initial:u,replace(m){f(pa,m)},push(m){f(Ef,m)},pop(m){let v=g=>{!g.state||!g.state.alpine||Object.entries(g.state.alpine).forEach(([x,{value:b}])=>{if(x!==e)return;c=!0;let _=m(b);_ instanceof Promise?_.finally(()=>c=!1):c=!1})};return window.addEventListener("popstate",v),()=>window.removeEventListener("popstate",v)}}}function pa(e,t,r){let n=window.history.state||{};n.alpine||(n.alpine={}),n.alpine[t]=$n(r),window.history.replaceState(n,"",e.toString())}function Ef(e,t,r){let n=window.history.state||{};n.alpine||(n.alpine={}),n={alpine:{...n.alpine,[t]:$n(r)}},window.history.pushState(n,"",e.toString())}function $n(e){if(e!==void 0)return JSON.parse(JSON.stringify(e))}function Af(){return{has(e,t){let r=e.search;if(!r)return!1;let n=ur(r);return Object.keys(n).includes(t)},get(e,t){let r=e.search;return r?ur(r)[t]:!1},set(e,t,r){let n=ur(e.search);return n[t]=ma($n(r)),e.search=ha(n),e},remove(e,t){let r=ur(e.search);return delete r[t],e.search=ha(r),e}}}function ma(e){if(!vt(e))return e;for(let t in e)e[t]===null?delete e[t]:e[t]=ma(e[t]);return e}function ha(e){let t=i=>typeof i=="object"&&i!==null,r=(i,o={},s="")=>(Object.entries(i).forEach(([a,l])=>{let u=s===""?a:`${s}[${a}]`;l===null?o[u]="":t(l)?o={...o,...r(l,o,u)}:o[u]=encodeURIComponent(l).replaceAll("%20","+").replaceAll("%2C",",")}),o),n=r(e);return Object.entries(n).map(([i,o])=>`${i}=${o}`).join("&")}function ur(e){if(e=e.replace("?",""),e==="")return{};let t=(i,o,s)=>{let[a,l,...u]=i.split(".");if(!l)return s[i]=o;s[a]===void 0&&(s[a]=isNaN(l)?{}:[]),t([l,...u].join("."),o,s[a])},r=e.split("&").map(i=>i.split("=")),n=Object.create(null);return r.forEach(([i,o])=>{if(o=decodeURIComponent(o.replaceAll("+","%20")),!i.includes("["))n[i]=o;else{let s=i.replaceAll("[",".").replaceAll("]","");t(s,o,n)}}),n}function jn(e,t,r){Of();let n,i,o,s,a,l,u,d,p,c;function f(h={}){let y=L=>L.getAttribute("key"),C=()=>{};a=h.updating||C,l=h.updated||C,u=h.removing||C,d=h.removed||C,p=h.adding||C,c=h.added||C,o=h.key||y,s=h.lookahead||!1}function m(h,y){if(v(h,y))return g(h,y);let C=!1;if(!Ke(a,h,y,()=>C=!0)){if(h.nodeType===1&&window.Alpine&&window.Alpine.cloneNode(h,y),Tf(y)){x(h,y),l(h,y);return}C||b(h,y),l(h,y),_(h,y)}}function v(h,y){return h.nodeType!=y.nodeType||h.nodeName!=y.nodeName||O(h)!=O(y)}function g(h,y){if(Ke(u,h))return;let C=y.cloneNode(!0);Ke(p,C)||(h.replaceWith(C),d(h),c(C))}function x(h,y){let C=y.nodeValue;h.nodeValue!==C&&(h.nodeValue=C)}function b(h,y){if(h._x_transitioning||h._x_isShown&&!y._x_isShown||!h._x_isShown&&y._x_isShown)return;let C=Array.from(h.attributes),L=Array.from(y.attributes);for(let A=C.length-1;A>=0;A--){let E=C[A].name;y.hasAttribute(E)||h.removeAttribute(E)}for(let A=L.length-1;A>=0;A--){let E=L[A].name,j=L[A].value;h.getAttribute(E)!==j&&h.setAttribute(E,j)}}function _(h,y){h._x_teleport&&(h=h._x_teleport),y._x_teleport&&(y=y._x_teleport);let C=T(h.children),L={},A=va(y),E=va(h);for(;A;){kf(A,E);let P=O(A),$=O(E);if(!E)if(P&&L[P]){let N=L[P];h.appendChild(N),E=N}else{if(!Ke(p,A)){let N=A.cloneNode(!0);h.appendChild(N),c(N)}A=G(y,A);continue}let q=N=>N&&N.nodeType===8&&N.textContent==="[if BLOCK]><![endif]",H=N=>N&&N.nodeType===8&&N.textContent==="[if ENDBLOCK]><![endif]";if(q(A)&&q(E)){let N=0,mt=E;for(;E;){let X=G(h,E);if(q(X))N++;else if(H(X)&&N>0)N--;else if(H(X)&&N===0){E=X;break}E=X}let Fa=E;N=0;let Da=A;for(;A;){let X=G(y,A);if(q(X))N++;else if(H(X)&&N>0)N--;else if(H(X)&&N===0){A=X;break}A=X}let $a=A,Ba=new Bn(mt,Fa),ja=new Bn(Da,$a);_(Ba,ja);continue}if(E.nodeType===1&&s&&!E.isEqualNode(A)){let N=G(y,A),mt=!1;for(;!mt&&N;)N.nodeType===1&&E.isEqualNode(N)&&(mt=!0,E=w(h,A,E),$=O(E)),N=G(y,N)}if(P!==$){if(!P&&$){L[$]=E,E=w(h,A,E),L[$].remove(),E=G(h,E),A=G(y,A);continue}if(P&&!$&&C[P]&&(E.replaceWith(C[P]),E=C[P]),P&&$){let N=C[P];if(N)L[$]=E,E.replaceWith(N),E=N;else{L[$]=E,E=w(h,A,E),L[$].remove(),E=G(h,E),A=G(y,A);continue}}}let ge=E&&G(h,E);m(E,A),A=A&&G(y,A),E=ge}let j=[];for(;E;)Ke(u,E)||j.push(E),E=G(h,E);for(;j.length;){let P=j.shift();P.remove(),d(P)}}function O(h){return h&&h.nodeType===1&&o(h)}function T(h){let y={};for(let C of h){let L=O(C);L&&(y[L]=C)}return y}function w(h,y,C){if(!Ke(p,y)){let L=y.cloneNode(!0);return h.insertBefore(L,C),c(L),L}return y}return f(r),n=e,i=typeof t=="string"?Cf(t):t,window.Alpine&&window.Alpine.closestDataStack&&!e._x_dataStack&&(i._x_dataStack=window.Alpine.closestDataStack(e),i._x_dataStack&&window.Alpine.cloneNode(e,i)),m(e,i),n=void 0,i=void 0,e}jn.step=()=>{};jn.log=()=>{};function Ke(e,...t){let r=!1;return e(...t,()=>r=!0),r}var ga=!1;function Cf(e){let t=document.createElement("template");return t.innerHTML=e,t.content.firstElementChild}function Tf(e){return e.nodeType===3||e.nodeType===8}var Bn=class{constructor(e,t){this.startComment=e,this.endComment=t}get children(){let e=[],t=this.startComment.nextSibling;for(;t&&t!==this.endComment;)e.push(t),t=t.nextSibling;return e}appendChild(e){this.endComment.before(e)}get firstChild(){let e=this.startComment.nextSibling;if(e!==this.endComment)return e}nextNode(e){let t=e.nextSibling;if(t!==this.endComment)return t}insertBefore(e,t){return t.before(e),e}};function va(e){return e.firstChild}function G(e,t){let r;return e instanceof Bn?r=e.nextNode(t):r=t.nextSibling,r}function Of(){if(ga)return;ga=!0;let e=Element.prototype.setAttribute,t=document.createElement("div");Element.prototype.setAttribute=function(n,i){if(!n.includes("@"))return e.call(this,n,i);t.innerHTML=`<span ${n}="${i}"></span>`;let o=t.firstElementChild.getAttributeNode(n);t.firstElementChild.removeAttributeNode(o),this.setAttributeNode(o)}}function kf(e,t){let r=t&&t._x_bindings&&t._x_bindings.id;!r||(e.setAttribute("id",r),e.id=r)}function Lf(e){e.morph=jn}var ba=Lf;function Nf(e){e.directive("mask",(t,{value:r,expression:n},{effect:i,evaluateLater:o,cleanup:s})=>{let a=()=>n,l="";queueMicrotask(()=>{if(["function","dynamic"].includes(r)){let c=o(n);i(()=>{a=f=>{let m;return e.dontAutoEvaluateFunctions(()=>{c(v=>{m=typeof v=="function"?v(f):v},{scope:{$input:f,$money:Pf.bind({el:t})}})}),m},d(t,!1)})}else d(t,!1);t._x_model&&t._x_model.set(t.value)});let u=new AbortController;s(()=>{u.abort()}),t.addEventListener("input",()=>d(t),{signal:u.signal,capture:!0}),t.addEventListener("blur",()=>d(t,!1),{signal:u.signal});function d(c,f=!0){let m=c.value,v=a(m);if(!v||v==="false")return!1;if(l.length-c.value.length===1)return l=c.value;let g=()=>{l=c.value=p(m,v)};f?Rf(c,v,()=>{g()}):g()}function p(c,f){if(c==="")return"";let m=wa(f,c);return ya(f,m)}}).before("model")}function Rf(e,t,r){let n=e.selectionStart,i=e.value;r();let o=i.slice(0,n),s=ya(t,wa(t,o)).length;e.setSelectionRange(s,s)}function wa(e,t){let r=t,n="",i={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},o="";for(let s=0;s<e.length;s++){if(["9","a","*"].includes(e[s])){o+=e[s];continue}for(let a=0;a<r.length;a++)if(r[a]===e[s]){r=r.slice(0,a)+r.slice(a+1);break}}for(let s=0;s<o.length;s++){let a=!1;for(let l=0;l<r.length;l++)if(i[o[s]].test(r[l])){n+=r[l],r=r.slice(0,l)+r.slice(l+1),a=!0;break}if(!a)break}return n}function ya(e,t){let r=Array.from(t),n="";for(let i=0;i<e.length;i++){if(!["9","a","*"].includes(e[i])){n+=e[i];continue}if(r.length===0)break;n+=r.shift()}return n}function Pf(e,t=".",r,n=2){if(e==="-")return"-";if(/^\D+$/.test(e))return"9";r==null&&(r=t===","?".":",");let i=(l,u)=>{let d="",p=0;for(let c=l.length-1;c>=0;c--)l[c]!==u&&(p===3?(d=l[c]+u+d,p=0):d=l[c]+d,p++);return d},o=e.startsWith("-")?"-":"",s=e.replaceAll(new RegExp(`[^0-9\\${t}]`,"g"),""),a=Array.from({length:s.split(t)[0].length}).fill("9").join("");return a=`${o}${i(a,r)}`,n>0&&e.includes(t)&&(a+=`${t}`+"9".repeat(n)),queueMicrotask(()=>{this.el.value.endsWith(t)||this.el.value[this.el.selectionStart-1]===t&&this.el.setSelectionRange(this.el.selectionStart-1,this.el.selectionStart-1)}),a}var xa=Nf;function _a(){setTimeout(()=>If()),gt(document,"livewire:init"),gt(document,"livewire:initializing"),S.plugin(ba),S.plugin(Dn),S.plugin(ws),S.plugin(Qo),S.plugin($s),S.plugin(hs),S.plugin(bs),S.plugin(da),S.plugin(xa),S.addRootSelector(()=>"[wire\\:id]"),S.onAttributesAdded((e,t)=>{if(!Array.from(t).some(n=>He(n.name)))return;let r=z(e,!1);!r||t.forEach(n=>{if(!He(n.name))return;let i=Kt(e,n.name);R("directive.init",{el:e,component:r,directive:i,cleanup:o=>{S.onAttributeRemoved(e,i.raw,o)}})})}),S.interceptInit(S.skipDuringClone(e=>{if(!Array.from(e.attributes).some(r=>He(r.name)))return;if(e.hasAttribute("wire:id")){let r=qo(e);S.onAttributeRemoved(e,"wire:id",()=>{Wo(r.id)})}let t=z(e,!1);t&&(R("element.init",{el:e,component:t}),Array.from(e.getAttributeNames()).filter(n=>He(n)).map(n=>Kt(e,n)).forEach(n=>{R("directive.init",{el:e,component:t,directive:n,cleanup:i=>{S.onAttributeRemoved(e,n.raw,i)}})}))})),S.start(),setTimeout(()=>window.Livewire.initialRenderIsFinished=!0),gt(document,"livewire:initialized")}function If(){let e=document.querySelector("script[data-update-uri][data-csrf]");if(!e)return;let t=e.closest("[wire\\:id]");t&&console.warn("Livewire: missing closing tags found. Ensure your template elements contain matching closing tags.",t)}var ze={};k("element.init",({el:e,component:t})=>setTimeout(()=>{pe(e).missing("submit")||e.addEventListener("submit",()=>{ze[t.id]=[],S.walk(t.el,(n,i)=>{if(!!e.contains(n)){if(n.hasAttribute("wire:ignore"))return i();n.tagName.toLowerCase()==="button"&&n.type==="submit"||n.tagName.toLowerCase()==="select"||n.tagName.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")?(n.disabled||ze[t.id].push(()=>n.disabled=!1),n.disabled=!0):(n.tagName.toLowerCase()==="input"||n.tagName.toLowerCase()==="textarea")&&(n.readOnly||ze[t.id].push(()=>n.readOnly=!1),n.readOnly=!0)}})})}));k("commit",({component:e,respond:t})=>{t(()=>{Mf(e)})});function Mf(e){if(!!ze[e.id])for(;ze[e.id].length>0;)ze[e.id].shift()()}k("commit.pooling",({commits:e})=>{e.forEach(t=>{let r=t.component;Ea(r,n=>{n.$wire.$commit()})})});k("commit.pooled",({pools:e})=>{Ff(e).forEach(r=>{let n=r.component;Ea(n,i=>{Df(e,n,i)})})});function Ff(e){let t=[];return e.forEach(r=>{r.commits.forEach(n=>{t.push(n)})}),t}function Df(e,t,r){let n=Sa(e,t),i=Sa(e,r),o=i.findCommitByComponent(r);i.delete(o),n.add(o),e.forEach(s=>{s.empty()&&e.delete(s)})}function Sa(e,t){for(let[r,n]of e.entries())if(n.hasCommitFor(t))return n}function Ea(e,t){Aa(e,r=>{($f(r)||Bf(r))&&t(r)})}function $f(e){return!!e.snapshot.memo.props}function Bf(e){return!!e.snapshot.memo.bindings}function Aa(e,t){e.children.forEach(r=>{t(r),Aa(r,t)})}var Ve=new WeakMap,fr=new Set;k("payload.intercept",async({assets:e})=>{if(!!e)for(let[t,r]of Object.entries(e))await Hf(t,async()=>{await qf(r)})});k("component.init",({component:e})=>{let t=e.snapshot.memo.assets;t&&t.forEach(r=>{fr.has(r)||fr.add(r)})});k("effect",({component:e,effects:t})=>{let r=t.scripts;r&&Object.entries(r).forEach(([n,i])=>{jf(e,n,()=>{let o=Uf(i);S.dontAutoEvaluateFunctions(()=>{S.evaluate(e.el,o,{$wire:e.$wire})})})})});function jf(e,t,r){if(Ve.has(e)&&Ve.get(e).includes(t))return;r(),Ve.has(e)||Ve.set(e,[]);let n=Ve.get(e);n.push(t),Ve.set(e,n)}function Uf(e){let r=/<script\b[^>]*>([\s\S]*?)<\/script>/gm.exec(e);return r&&r[1]?r[1].trim():""}async function Hf(e,t){fr.has(e)||(await t(),fr.add(e))}async function qf(e){let t=new DOMParser().parseFromString(e,"text/html"),r=document.adoptNode(t.head);for(let n of r.children)try{await Wf(n)}catch{}}async function Wf(e){return new Promise((t,r)=>{if(Kf(e)){let n=zf(e);n.src?(n.onload=()=>t(),n.onerror=()=>r()):t(),document.head.appendChild(n)}else document.head.appendChild(e),t()})}function Kf(e){return e.tagName.toLowerCase()==="script"}function zf(e){let t=document.createElement("script");t.textContent=e.textContent,t.async=e.async;for(let r of e.attributes)t.setAttribute(r.name,r.value);return t}k("commit",({succeed:e})=>{e(({effects:t})=>{let r=t.download;if(!r)return;let n=window.webkitURL||window.URL,i=n.createObjectURL(Vf(r.content,r.contentType)),o=document.createElement("a");o.style.display="none",o.href=i,o.download=r.name,document.body.appendChild(o),o.click(),setTimeout(function(){n.revokeObjectURL(i)},0)})});function Vf(e,t="",r=512){let n=atob(e),i=[];t===null&&(t="");for(let o=0;o<n.length;o+=r){let s=n.slice(o,o+r),a=new Array(s.length);for(let u=0;u<s.length;u++)a[u]=s.charCodeAt(u);let l=new Uint8Array(a);i.push(l)}return new Blob(i,{type:t})}k("effect",({component:e,effects:t})=>{let r=t.js,n=t.xjs;r&&Object.entries(r).forEach(([i,o])=>{jo(e,i,()=>{S.evaluate(e.el,o)})}),n&&n.forEach(i=>{S.evaluate(e.el,i)})});var Un=new WeakSet,Hn=new WeakSet;k("component.init",({component:e})=>{let t=e.snapshot.memo;t.lazyLoaded!==void 0&&(Hn.add(e),t.lazyIsolated!==void 0&&t.lazyIsolated===!1&&Un.add(e))});k("commit.pooling",({commits:e})=>{e.forEach(t=>{!Hn.has(t.component)||(Un.has(t.component)?(t.isolate=!1,Un.delete(t.component)):t.isolate=!0,Hn.delete(t.component))})});k("effect",({component:e,effects:t,cleanup:r})=>{let n=t.url;!n||Object.entries(n).forEach(([i,o])=>{let{name:s,as:a,use:l,alwaysShow:u,except:d}=Jf(i,o);a||(a=s);let p=[!1,null,void 0].includes(d)?W(e.ephemeral,s):d,{replace:c,push:f,pop:m}=cr(a,p,u);if(l==="replace"){let v=S.effect(()=>{c(W(e.reactive,s))});r(()=>S.release(v))}else if(l==="push"){let v=k("commit",({component:x,succeed:b})=>{if(e!==x)return;let _=W(e.canonical,s);b(()=>{let O=W(e.canonical,s);JSON.stringify(_)!==JSON.stringify(O)&&f(O)})}),g=m(async x=>{await e.$wire.set(s,x),document.querySelectorAll("input").forEach(b=>{b._x_forceModelUpdate&&b._x_forceModelUpdate(b._x_model.get())})});r(()=>{v(),g()})}})});function Jf(e,t){let r={use:"replace",alwaysShow:!1};return typeof t=="string"?{...r,name:t,as:t}:{...{...r,name:e,as:e},...t}}k("request",({options:e})=>{window.Echo&&(e.headers["X-Socket-ID"]=window.Echo.socketId())});k("effect",({component:e,effects:t})=>{(t.listeners||[]).forEach(n=>{if(n.startsWith("echo")){if(typeof window.Echo>"u"){console.warn("Laravel Echo cannot be found");return}let i=n.split(/(echo:|echo-)|:|,/);i[1]=="echo:"&&i.splice(2,0,"channel",void 0),i[2]=="notification"&&i.push(void 0,void 0);let[o,s,a,l,u,d,p]=i;if(["channel","private","encryptedPrivate"].includes(a)){let c=f=>ie(e,n,[f]);window.Echo[a](u).listen(p,c),e.addCleanup(()=>{window.Echo[a](u).stopListening(p,c)})}else if(a=="presence")if(["here","joining","leaving"].includes(p))window.Echo.join(u)[p](c=>{ie(e,n,[c])});else{let c=f=>ie(e,n,[f]);window.Echo.join(u).listen(p,c),e.addCleanup(()=>{window.Echo.leaveChannel(u)})}else a=="notification"?window.Echo.private(u).notification(c=>{ie(e,n,[c])}):console.warn("Echo channel type not yet supported")}})});var Ca=new WeakSet;k("component.init",({component:e})=>{e.snapshot.memo.isolate===!0&&Ca.add(e)});k("commit.pooling",({commits:e})=>{e.forEach(t=>{!Ca.has(t.component)||(t.isolate=!0)})});Gf()&&Alpine.navigate.disableProgressBar();document.addEventListener("alpine:navigated",e=>{document.dispatchEvent(new CustomEvent("livewire:navigated",{bubbles:!0}))});document.addEventListener("alpine:navigating",e=>{document.dispatchEvent(new CustomEvent("livewire:navigating",{bubbles:!0}))});function Ta(e,t,r){e.redirectUsingNavigate?Alpine.navigate(t):r()}function Gf(){return!!(document.querySelector("[data-no-progress-bar]")||window.livewireScriptConfig&&window.livewireScriptConfig.progressBar===!1)}k("effect",({effects:e})=>{if(!e.redirect)return;let t=e.redirect;Ta(e,t,()=>{window.location.href=t})});function ka(e,t,r){let n=t.parentElement?t.parentElement.tagName.toLowerCase():"div",i=document.createElement(n);i.innerHTML=r;let o;try{o=z(t.parentElement)}catch{}o&&(i.__livewire=o);let s=i.firstElementChild;s.__livewire=e,R("morph",{el:t,toEl:s,component:e}),S.morph(t,s,{updating:(a,l,u,d)=>{if(!Je(a)){if(R("morph.updating",{el:a,toEl:l,component:e,skip:d,childrenOnly:u}),a.__livewire_ignore===!0||(a.__livewire_ignore_self===!0&&u(),Oa(a)&&a.getAttribute("wire:id")!==e.id))return d();Oa(a)&&(l.__livewire=e)}},updated:a=>{Je(a)||R("morph.updated",{el:a,component:e})},removing:(a,l)=>{Je(a)||R("morph.removing",{el:a,component:e,skip:l})},removed:a=>{Je(a)||R("morph.removed",{el:a,component:e})},adding:a=>{R("morph.adding",{el:a,component:e})},added:a=>{if(Je(a))return;let l=z(a).id;R("morph.added",{el:a})},key:a=>{if(!Je(a))return a.hasAttribute("wire:key")?a.getAttribute("wire:key"):a.hasAttribute("wire:id")?a.getAttribute("wire:id"):a.id},lookahead:!1})}function Je(e){return typeof e.hasAttribute!="function"}function Oa(e){return e.hasAttribute("wire:id")}k("effect",({component:e,effects:t})=>{let r=t.html;!r||queueMicrotask(()=>{queueMicrotask(()=>{ka(e,e.el,r)})})});k("effect",({component:e,effects:t})=>{Xf(e,t.listeners||[]),Yf(e,t.dispatches||[])});function Xf(e,t){t.forEach(r=>{let n=i=>{i.__livewire&&i.__livewire.receivedBy.push(e),e.$wire.call("__dispatch",r,i.detail||{})};window.addEventListener(r,n),e.addCleanup(()=>window.removeEventListener(r,n)),e.el.addEventListener(r,i=>{!i.__livewire||i.bubbles||(i.__livewire&&i.__livewire.receivedBy.push(e.id),e.$wire.call("__dispatch",r,i.detail||{}))})})}function Yf(e,t){t.forEach(({name:r,params:n={},self:i=!1,to:o})=>{i?ie(e,r,n):o?Ue(o,r,n):Ht(e,r,n)})}k("morph.added",({el:e})=>{e.__addedByMorph=!0});M("transition",({el:e,directive:t,component:r,cleanup:n})=>{let i=S.reactive({state:!e.__addedByMorph});S.bind(e,{[t.rawName.replace("wire:","x-")]:"","x-show"(){return i.state}}),e.__addedByMorph&&setTimeout(()=>i.state=!0);let o=[];o.push(k("morph.removing",({el:s,skip:a})=>{a(),s.addEventListener("transitionend",()=>{s.remove()}),i.state=!1,o.push(k("morph",({component:l})=>{l===r&&(s.remove(),o.forEach(u=>u()))}))})),n(()=>o.forEach(s=>s()))});var Qf=new Ie;function La(e,t){Qf.each(e,r=>{r.callback(),r.callback=()=>{}}),t()}k("directive.init",({el:e,directive:t,cleanup:r,component:n})=>{if(["snapshot","effects","model","init","loading","poll","ignore","id","data","key","target","dirty"].includes(t.value))return;let i=t.rawName.replace("wire:","x-on:");t.value==="submit"&&!t.modifiers.includes("prevent")&&(i=i+".prevent");let o=S.bind(e,{[i](s){let a=()=>{La(n,()=>{S.evaluate(e,"$wire."+t.expression,{scope:{$event:s}})})};e.__livewire_confirm?e.__livewire_confirm(()=>{a()},()=>{s.stopImmediatePropagation()}):a()}});r(o)});S.addInitSelector(()=>"[wire\\:navigate]");S.addInitSelector(()=>"[wire\\:navigate\\.hover]");S.interceptInit(S.skipDuringClone(e=>{e.hasAttribute("wire:navigate")?S.bind(e,{["x-navigate"]:!0}):e.hasAttribute("wire:navigate.hover")&&S.bind(e,{["x-navigate.hover"]:!0})}));document.addEventListener("alpine:navigating",()=>{Livewire.all().forEach(e=>{e.inscribeSnapshotAndEffectsOnElement()})});M("confirm",({el:e,directive:t})=>{let r=t.expression,n=t.modifiers.includes("prompt");r=r.replaceAll("\\n",`
+`),r===""&&(r="Are you sure?"),e.__livewire_confirm=(i,o)=>{if(n){let[s,a]=r.split("|");a?prompt(s)===a?i():o():console.warn("Livewire: Must provide expectation with wire:confirm.prompt")}else confirm(r)?i():o()}});function re(e,t,r,n=null){if(r=t.modifiers.includes("remove")?!r:r,t.modifiers.includes("class")){let i=t.expression.split(" ").filter(String);r?e.classList.add(...i):e.classList.remove(...i)}else if(t.modifiers.includes("attr"))r?e.setAttribute(t.expression,!0):e.removeAttribute(t.expression);else{let i=n??window.getComputedStyle(e,null).getPropertyValue("display"),o=["inline","block","table","flex","grid","inline-flex"].filter(s=>t.modifiers.includes(s))[0]||"inline-block";o=t.modifiers.includes("remove")?i:o,e.style.display=r?o:"none"}}var qn=new Set,Wn=new Set;window.addEventListener("offline",()=>qn.forEach(e=>e()));window.addEventListener("online",()=>Wn.forEach(e=>e()));M("offline",({el:e,directive:t,cleanup:r})=>{let n=()=>re(e,t,!0),i=()=>re(e,t,!1);qn.add(n),Wn.add(i),r(()=>{qn.delete(n),Wn.delete(i)})});M("loading",({el:e,directive:t,component:r})=>{let{targets:n,inverted:i}=nd(e),[o,s]=Zf(t);ed(r,n,i,[()=>o(()=>re(e,t,!0)),()=>s(()=>re(e,t,!1))]),td(r,n,[()=>o(()=>re(e,t,!0)),()=>s(()=>re(e,t,!1))])});function Zf(e){if(!e.modifiers.includes("delay")||e.modifiers.includes("none"))return[o=>o(),o=>o()];let t=200,r={shortest:50,shorter:100,short:150,default:200,long:300,longer:500,longest:1e3};Object.keys(r).some(o=>{if(e.modifiers.includes(o))return t=r[o],!0});let n,i=!1;return[o=>{n=setTimeout(()=>{o(),i=!0},t)},async o=>{i?(await o(),i=!1):clearTimeout(n)}]}function ed(e,t,r,[n,i]){k("commit",({component:o,commit:s,respond:a})=>{o===e&&(t.length>0&&rd(s,t)===r||(n(),a(()=>{i()})))})}function td(e,t,[r,n]){let i=o=>{let{id:s,property:a}=o.detail;return s!==e.id||t.length>0&&!t.map(l=>l.target).includes(a)};window.addEventListener("livewire-upload-start",o=>{i(o)||r()}),window.addEventListener("livewire-upload-finish",o=>{i(o)||n()}),window.addEventListener("livewire-upload-error",o=>{i(o)||n()})}function rd(e,t){let{updates:r,calls:n}=e;return t.some(({target:i,params:o})=>{if(o)return n.some(({method:a,params:l})=>i===a&&o===Na(JSON.stringify(l)));if(Object.keys(r).some(a=>a.includes(".")&&a.split(".")[0]===i?!0:a===i)||n.map(a=>a.method).includes(i))return!0})}function nd(e){let t=pe(e),r=[],n=!1;if(t.has("target")){let i=t.get("target"),o=i.expression;i.modifiers.includes("except")&&(n=!0),o.includes("(")&&o.includes(")")?r.push({target:i.method,params:Na(JSON.stringify(i.params))}):o.includes(",")?o.split(",").map(s=>s.trim()).forEach(s=>{r.push({target:s})}):r.push({target:o})}else{let i=["init","dirty","offline","target","loading","poll","ignore","key","id"];t.all().filter(o=>!i.includes(o.value)).map(o=>o.expression.split("(")[0]).forEach(o=>r.push({target:o}))}return{targets:r,inverted:n}}function Na(e){return btoa(encodeURIComponent(e))}M("stream",({el:e,directive:t,cleanup:r})=>{let{expression:n,modifiers:i}=t,o=k("stream",({name:s,content:a,replace:l})=>{s===n&&(i.includes("replace")||l?e.innerHTML=a:e.innerHTML=e.innerHTML+a)});r(o)});k("request",({respond:e})=>{e(t=>{let r=t.response;!r.headers.has("X-Livewire-Stream")||(t.response={ok:!0,redirected:!1,status:200,async text(){let n=await id(r,i=>{R("stream",i)});return wt(n)&&(this.ok=!1),n}})})});async function id(e,t){let r=e.body.getReader(),n="";for(;;){let{done:i,value:o}=await r.read(),a=new TextDecoder().decode(o),[l,u]=od(n+a);if(l.forEach(d=>{t(d)}),n=u,i)return n}}function od(e){let t=/({"stream":true.*?"endStream":true})/g,r=e.match(t),n=[];if(r)for(let o=0;o<r.length;o++)n.push(JSON.parse(r[o]).body);let i=e.replace(t,"");return[n,i]}M("ignore",({el:e,directive:t})=>{t.modifiers.includes("self")?e.__livewire_ignore_self=!0:e.__livewire_ignore=!0});var Ra=new Ie;k("commit",({component:e,respond:t})=>{t(()=>{setTimeout(()=>{Ra.each(e,r=>r(!1))})})});M("dirty",({el:e,directive:t,component:r})=>{let n=sd(e),i=Alpine.reactive({state:!1}),o=!1,s=e.style.display,a=l=>{re(e,t,l,s),o=l};Ra.add(r,a),Alpine.effect(()=>{let l=!1;if(n.length===0)l=JSON.stringify(r.canonical)!==JSON.stringify(r.reactive);else for(let u=0;u<n.length&&!l;u++){let d=n[u];l=JSON.stringify(W(r.canonical,d))!==JSON.stringify(W(r.reactive,d))}o!==l&&a(l),o=l})});function sd(e){let t=pe(e),r=[];return t.has("model")&&r.push(t.get("model").expression),t.has("target")&&(r=r.concat(t.get("target").expression.split(",").map(n=>n.trim()))),r}M("model",({el:e,directive:t,component:r,cleanup:n})=>{let{expression:i,modifiers:o}=t;if(!i)return console.warn("Livewire: [wire:model] is missing a value.",e);if(Pa(r,i))return console.warn('Livewire: [wire:model="'+i+'"] property does not exist on component: ['+r.name+"]",e);if(e.type&&e.type.toLowerCase()==="file")return Zn(e,i,r,n);let s=o.includes("live"),a=o.includes("lazy")||o.includes("change"),l=o.includes("blur"),u=o.includes("debounce"),d=i.startsWith("$parent")?()=>r.$wire.$parent.$commit():()=>r.$wire.$commit(),p=ld(e)&&!u&&s?ud(d,150):d;S.bind(e,{["@change"](){a&&d()},["@blur"](){l&&d()},["x-model"+ad(o)](){return{get(){return W(r.$wire,i)},set(c){ve(r.$wire,i,c),s&&!a&&!l&&p()}}}})});function ad(e){return e=e.filter(t=>!["lazy","defer"].includes(t)),e.length===0?"":"."+e.join(".")}function ld(e){return["INPUT","TEXTAREA"].includes(e.tagName.toUpperCase())&&!["checkbox","radio"].includes(e.type)}function Pa(e,t){if(t.startsWith("$parent")){let n=z(e.el.parentElement,!1);return n?Pa(n,t.split("$parent.")[1]):!0}let r=t.split(".")[0];return!Object.keys(e.canonical).includes(r)}function ud(e,t){var r;return function(){var n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}M("init",({el:e,directive:t})=>{let r=t.expression??"$refresh";S.evaluate(e,`$wire.${r}`)});M("poll",({el:e,directive:t})=>{let r=yd(t.modifiers,2e3),{start:n,pauseWhile:i,throttleWhile:o,stopWhen:s}=fd(()=>{cd(e,t)},r);n(),o(()=>hd()&&gd(t)),i(()=>vd(t)&&bd(e)),i(()=>md(e)),i(()=>pd()),s(()=>wd(e))});function cd(e,t){S.evaluate(e,t.expression?"$wire."+t.expression:"$wire.$commit()")}function fd(e,t=2e3){let r=[],n=[],i=[];return{start(){let o=dd(t,()=>{if(i.some(s=>s()))return o();r.some(s=>s())||n.some(s=>s())&&Math.random()<.95||e()})},pauseWhile(o){r.push(o)},throttleWhile(o){n.push(o)},stopWhen(o){i.push(o)}}}var Re=[];function dd(e,t){if(!Re[e]){let r={timer:setInterval(()=>r.callbacks.forEach(n=>n()),e),callbacks:new Set};Re[e]=r}return Re[e].callbacks.add(t),()=>{Re[e].callbacks.delete(t),Re[e].callbacks.size===0&&(clearInterval(Re[e].timer),delete Re[e])}}var Kn=!1;window.addEventListener("offline",()=>Kn=!0);window.addEventListener("online",()=>Kn=!1);function pd(){return Kn}var Ia=!1;document.addEventListener("visibilitychange",()=>{Ia=document.hidden},!1);function hd(){return Ia}function md(e){return!pe(e).has("poll")}function gd(e){return!e.modifiers.includes("keep-alive")}function vd(e){return e.modifiers.includes("visible")}function bd(e){let t=e.getBoundingClientRect();return!(t.top<(window.innerHeight||document.documentElement.clientHeight)&&t.left<(window.innerWidth||document.documentElement.clientWidth)&&t.bottom>0&&t.right>0)}function wd(e){return e.isConnected===!1}function yd(e,t){let r,n=e.find(o=>o.match(/([0-9]+)ms/)),i=e.find(o=>o.match(/([0-9]+)s/));return n?r=Number(n.replace("ms","")):i&&(r=Number(i.replace("s",""))*1e3),r||t}var Ma={directive:M,dispatchTo:Ue,start:_a,first:Vo,find:zo,getByName:Ko,all:Jo,hook:k,trigger:R,triggerAsync:$t,dispatch:Go,on:Xo,get navigate(){return S.navigate}};window.Livewire&&console.warn("Detected multiple instances of Livewire running");window.Alpine&&console.warn("Detected multiple instances of Alpine running");window.Livewire=Ma;window.Alpine=S;window.livewireScriptConfig===void 0&&document.addEventListener("DOMContentLoaded",()=>{Ma.start()});})();
 /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
  * @license MIT */
 /*! Bundled license information:
 
 tabbable/dist/index.esm.js:
diff --git a/dist/livewire.min.js.map b/dist/livewire.min.js.map
index 832859ea..6c13d27e 100644
--- a/dist/livewire.min.js.map
+++ b/dist/livewire.min.js.map
@@ -1,7 +1,7 @@
 {
   "version": 3,
   "sources": ["../node_modules/nprogress/nprogress.js", "../js/utils.js", "../js/features/supportFileUploads.js", "../../alpine/packages/alpinejs/dist/module.esm.js", "../js/features/supportEntangle.js", "../js/hooks.js", "../js/request/modal.js", "../js/request/pool.js", "../js/request/commit.js", "../js/request/bus.js", "../js/request/index.js", "../js/$wire.js", "../js/component.js", "../js/store.js", "../js/events.js", "../js/directives.js", "../../alpine/packages/collapse/dist/module.esm.js", "../../alpine/packages/focus/dist/module.esm.js", "../../alpine/packages/persist/dist/module.esm.js", "../../alpine/packages/intersect/dist/module.esm.js", "../../alpine/packages/anchor/dist/module.esm.js", "../js/plugins/navigate/history.js", "../js/plugins/navigate/links.js", "../js/plugins/navigate/fetch.js", "../js/plugins/navigate/prefetch.js", "../js/plugins/navigate/teleport.js", "../js/plugins/navigate/scroll.js", "../js/plugins/navigate/persist.js", "../js/plugins/navigate/bar.js", "../js/plugins/navigate/page.js", "../js/plugins/navigate/index.js", "../js/plugins/history/index.js", "../../alpine/packages/morph/dist/module.esm.js", "../../alpine/packages/mask/dist/module.esm.js", "../js/lifecycle.js", "../js/features/supportDisablingFormsDuringRequest.js", "../js/features/supportPropsAndModelables.js", "../js/features/supportScriptsAndAssets.js", "../js/features/supportFileDownloads.js", "../js/features/supportJsEvaluation.js", "../js/features/supportLazyLoading.js", "../js/features/supportQueryString.js", "../js/features/supportLaravelEcho.js", "../js/features/supportIsolating.js", "../js/features/supportNavigate.js", "../js/features/supportRedirects.js", "../js/morph.js", "../js/features/supportMorphDom.js", "../js/features/supportEvents.js", "../js/directives/wire-transition.js", "../js/debounce.js", "../js/directives/wire-wildcard.js", "../js/directives/wire-navigate.js", "../js/directives/wire-confirm.js", "../js/directives/shared.js", "../js/directives/wire-offline.js", "../js/directives/wire-loading.js", "../js/directives/wire-stream.js", "../js/directives/wire-ignore.js", "../js/directives/wire-dirty.js", "../js/directives/wire-model.js", "../js/directives/wire-init.js", "../js/directives/wire-poll.js", "../js/index.js"],
-  "sourcesContent": ["/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress\n * @license MIT */\n\n;(function(root, factory) {\n\n  if (typeof define === 'function' && define.amd) {\n    define(factory);\n  } else if (typeof exports === 'object') {\n    module.exports = factory();\n  } else {\n    root.NProgress = factory();\n  }\n\n})(this, function() {\n  var NProgress = {};\n\n  NProgress.version = '0.2.0';\n\n  var Settings = NProgress.settings = {\n    minimum: 0.08,\n    easing: 'ease',\n    positionUsing: '',\n    speed: 200,\n    trickle: true,\n    trickleRate: 0.02,\n    trickleSpeed: 800,\n    showSpinner: true,\n    barSelector: '[role=\"bar\"]',\n    spinnerSelector: '[role=\"spinner\"]',\n    parent: 'body',\n    template: '<div class=\"bar\" role=\"bar\"><div class=\"peg\"></div></div><div class=\"spinner\" role=\"spinner\"><div class=\"spinner-icon\"></div></div>'\n  };\n\n  /**\n   * Updates configuration.\n   *\n   *     NProgress.configure({\n   *       minimum: 0.1\n   *     });\n   */\n  NProgress.configure = function(options) {\n    var key, value;\n    for (key in options) {\n      value = options[key];\n      if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value;\n    }\n\n    return this;\n  };\n\n  /**\n   * Last number.\n   */\n\n  NProgress.status = null;\n\n  /**\n   * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`.\n   *\n   *     NProgress.set(0.4);\n   *     NProgress.set(1.0);\n   */\n\n  NProgress.set = function(n) {\n    var started = NProgress.isStarted();\n\n    n = clamp(n, Settings.minimum, 1);\n    NProgress.status = (n === 1 ? null : n);\n\n    var progress = NProgress.render(!started),\n        bar      = progress.querySelector(Settings.barSelector),\n        speed    = Settings.speed,\n        ease     = Settings.easing;\n\n    progress.offsetWidth; /* Repaint */\n\n    queue(function(next) {\n      // Set positionUsing if it hasn't already been set\n      if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS();\n\n      // Add transition\n      css(bar, barPositionCSS(n, speed, ease));\n\n      if (n === 1) {\n        // Fade out\n        css(progress, { \n          transition: 'none', \n          opacity: 1 \n        });\n        progress.offsetWidth; /* Repaint */\n\n        setTimeout(function() {\n          css(progress, { \n            transition: 'all ' + speed + 'ms linear', \n            opacity: 0 \n          });\n          setTimeout(function() {\n            NProgress.remove();\n            next();\n          }, speed);\n        }, speed);\n      } else {\n        setTimeout(next, speed);\n      }\n    });\n\n    return this;\n  };\n\n  NProgress.isStarted = function() {\n    return typeof NProgress.status === 'number';\n  };\n\n  /**\n   * Shows the progress bar.\n   * This is the same as setting the status to 0%, except that it doesn't go backwards.\n   *\n   *     NProgress.start();\n   *\n   */\n  NProgress.start = function() {\n    if (!NProgress.status) NProgress.set(0);\n\n    var work = function() {\n      setTimeout(function() {\n        if (!NProgress.status) return;\n        NProgress.trickle();\n        work();\n      }, Settings.trickleSpeed);\n    };\n\n    if (Settings.trickle) work();\n\n    return this;\n  };\n\n  /**\n   * Hides the progress bar.\n   * This is the *sort of* the same as setting the status to 100%, with the\n   * difference being `done()` makes some placebo effect of some realistic motion.\n   *\n   *     NProgress.done();\n   *\n   * If `true` is passed, it will show the progress bar even if its hidden.\n   *\n   *     NProgress.done(true);\n   */\n\n  NProgress.done = function(force) {\n    if (!force && !NProgress.status) return this;\n\n    return NProgress.inc(0.3 + 0.5 * Math.random()).set(1);\n  };\n\n  /**\n   * Increments by a random amount.\n   */\n\n  NProgress.inc = function(amount) {\n    var n = NProgress.status;\n\n    if (!n) {\n      return NProgress.start();\n    } else {\n      if (typeof amount !== 'number') {\n        amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95);\n      }\n\n      n = clamp(n + amount, 0, 0.994);\n      return NProgress.set(n);\n    }\n  };\n\n  NProgress.trickle = function() {\n    return NProgress.inc(Math.random() * Settings.trickleRate);\n  };\n\n  /**\n   * Waits for all supplied jQuery promises and\n   * increases the progress as the promises resolve.\n   *\n   * @param $promise jQUery Promise\n   */\n  (function() {\n    var initial = 0, current = 0;\n\n    NProgress.promise = function($promise) {\n      if (!$promise || $promise.state() === \"resolved\") {\n        return this;\n      }\n\n      if (current === 0) {\n        NProgress.start();\n      }\n\n      initial++;\n      current++;\n\n      $promise.always(function() {\n        current--;\n        if (current === 0) {\n            initial = 0;\n            NProgress.done();\n        } else {\n            NProgress.set((initial - current) / initial);\n        }\n      });\n\n      return this;\n    };\n\n  })();\n\n  /**\n   * (Internal) renders the progress bar markup based on the `template`\n   * setting.\n   */\n\n  NProgress.render = function(fromStart) {\n    if (NProgress.isRendered()) return document.getElementById('nprogress');\n\n    addClass(document.documentElement, 'nprogress-busy');\n    \n    var progress = document.createElement('div');\n    progress.id = 'nprogress';\n    progress.innerHTML = Settings.template;\n\n    var bar      = progress.querySelector(Settings.barSelector),\n        perc     = fromStart ? '-100' : toBarPerc(NProgress.status || 0),\n        parent   = document.querySelector(Settings.parent),\n        spinner;\n    \n    css(bar, {\n      transition: 'all 0 linear',\n      transform: 'translate3d(' + perc + '%,0,0)'\n    });\n\n    if (!Settings.showSpinner) {\n      spinner = progress.querySelector(Settings.spinnerSelector);\n      spinner && removeElement(spinner);\n    }\n\n    if (parent != document.body) {\n      addClass(parent, 'nprogress-custom-parent');\n    }\n\n    parent.appendChild(progress);\n    return progress;\n  };\n\n  /**\n   * Removes the element. Opposite of render().\n   */\n\n  NProgress.remove = function() {\n    removeClass(document.documentElement, 'nprogress-busy');\n    removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent');\n    var progress = document.getElementById('nprogress');\n    progress && removeElement(progress);\n  };\n\n  /**\n   * Checks if the progress bar is rendered.\n   */\n\n  NProgress.isRendered = function() {\n    return !!document.getElementById('nprogress');\n  };\n\n  /**\n   * Determine which positioning CSS rule to use.\n   */\n\n  NProgress.getPositioningCSS = function() {\n    // Sniff on document.body.style\n    var bodyStyle = document.body.style;\n\n    // Sniff prefixes\n    var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' :\n                       ('MozTransform' in bodyStyle) ? 'Moz' :\n                       ('msTransform' in bodyStyle) ? 'ms' :\n                       ('OTransform' in bodyStyle) ? 'O' : '';\n\n    if (vendorPrefix + 'Perspective' in bodyStyle) {\n      // Modern browsers with 3D support, e.g. Webkit, IE10\n      return 'translate3d';\n    } else if (vendorPrefix + 'Transform' in bodyStyle) {\n      // Browsers without 3D support, e.g. IE9\n      return 'translate';\n    } else {\n      // Browsers without translate() support, e.g. IE7-8\n      return 'margin';\n    }\n  };\n\n  /**\n   * Helpers\n   */\n\n  function clamp(n, min, max) {\n    if (n < min) return min;\n    if (n > max) return max;\n    return n;\n  }\n\n  /**\n   * (Internal) converts a percentage (`0..1`) to a bar translateX\n   * percentage (`-100%..0%`).\n   */\n\n  function toBarPerc(n) {\n    return (-1 + n) * 100;\n  }\n\n\n  /**\n   * (Internal) returns the correct CSS for changing the bar's\n   * position given an n percentage, and speed and ease from Settings\n   */\n\n  function barPositionCSS(n, speed, ease) {\n    var barCSS;\n\n    if (Settings.positionUsing === 'translate3d') {\n      barCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' };\n    } else if (Settings.positionUsing === 'translate') {\n      barCSS = { transform: 'translate('+toBarPerc(n)+'%,0)' };\n    } else {\n      barCSS = { 'margin-left': toBarPerc(n)+'%' };\n    }\n\n    barCSS.transition = 'all '+speed+'ms '+ease;\n\n    return barCSS;\n  }\n\n  /**\n   * (Internal) Queues a function to be executed.\n   */\n\n  var queue = (function() {\n    var pending = [];\n    \n    function next() {\n      var fn = pending.shift();\n      if (fn) {\n        fn(next);\n      }\n    }\n\n    return function(fn) {\n      pending.push(fn);\n      if (pending.length == 1) next();\n    };\n  })();\n\n  /**\n   * (Internal) Applies css properties to an element, similar to the jQuery \n   * css method.\n   *\n   * While this helper does assist with vendor prefixed property names, it \n   * does not perform any manipulation of values prior to setting styles.\n   */\n\n  var css = (function() {\n    var cssPrefixes = [ 'Webkit', 'O', 'Moz', 'ms' ],\n        cssProps    = {};\n\n    function camelCase(string) {\n      return string.replace(/^-ms-/, 'ms-').replace(/-([\\da-z])/gi, function(match, letter) {\n        return letter.toUpperCase();\n      });\n    }\n\n    function getVendorProp(name) {\n      var style = document.body.style;\n      if (name in style) return name;\n\n      var i = cssPrefixes.length,\n          capName = name.charAt(0).toUpperCase() + name.slice(1),\n          vendorName;\n      while (i--) {\n        vendorName = cssPrefixes[i] + capName;\n        if (vendorName in style) return vendorName;\n      }\n\n      return name;\n    }\n\n    function getStyleProp(name) {\n      name = camelCase(name);\n      return cssProps[name] || (cssProps[name] = getVendorProp(name));\n    }\n\n    function applyCss(element, prop, value) {\n      prop = getStyleProp(prop);\n      element.style[prop] = value;\n    }\n\n    return function(element, properties) {\n      var args = arguments,\n          prop, \n          value;\n\n      if (args.length == 2) {\n        for (prop in properties) {\n          value = properties[prop];\n          if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value);\n        }\n      } else {\n        applyCss(element, args[1], args[2]);\n      }\n    }\n  })();\n\n  /**\n   * (Internal) Determines if an element or space separated list of class names contains a class name.\n   */\n\n  function hasClass(element, name) {\n    var list = typeof element == 'string' ? element : classList(element);\n    return list.indexOf(' ' + name + ' ') >= 0;\n  }\n\n  /**\n   * (Internal) Adds a class to an element.\n   */\n\n  function addClass(element, name) {\n    var oldList = classList(element),\n        newList = oldList + name;\n\n    if (hasClass(oldList, name)) return; \n\n    // Trim the opening space.\n    element.className = newList.substring(1);\n  }\n\n  /**\n   * (Internal) Removes a class from an element.\n   */\n\n  function removeClass(element, name) {\n    var oldList = classList(element),\n        newList;\n\n    if (!hasClass(element, name)) return;\n\n    // Replace the class name.\n    newList = oldList.replace(' ' + name + ' ', ' ');\n\n    // Trim the opening and closing spaces.\n    element.className = newList.substring(1, newList.length - 1);\n  }\n\n  /**\n   * (Internal) Gets a space separated list of the class names on the element. \n   * The list is wrapped with a single space on each end to facilitate finding \n   * matches within the list.\n   */\n\n  function classList(element) {\n    return (' ' + (element.className || '') + ' ').replace(/\\s+/gi, ' ');\n  }\n\n  /**\n   * (Internal) Removes an element from the DOM.\n   */\n\n  function removeElement(element) {\n    element && element.parentNode && element.parentNode.removeChild(element);\n  }\n\n  return NProgress;\n});\n\n", "\r\nexport class Bag {\r\n    constructor() { this.arrays = {} }\r\n\r\n    add(key, value) {\r\n        if (! this.arrays[key]) this.arrays[key] = []\r\n        this.arrays[key].push(value)\r\n    }\r\n\r\n    get(key) { return this.arrays[key] || [] }\r\n\r\n    each(key, callback) { return this.get(key).forEach(callback) }\r\n}\r\n\r\nexport class WeakBag {\r\n    constructor() { this.arrays = new WeakMap }\r\n\r\n    add(key, value) {\r\n        if (! this.arrays.has(key) ) this.arrays.set(key, [])\r\n        this.arrays.get(key).push(value)\r\n    }\r\n\r\n    get(key) { return this.arrays.has(key) ? this.arrays.get(key) : [] }\r\n\r\n    each(key, callback) { return this.get(key).forEach(callback) }\r\n}\r\n\r\nexport function dispatch(el, name, detail = {}, bubbles = true) {\r\n    el.dispatchEvent(\r\n        new CustomEvent(name, {\r\n            detail,\r\n            bubbles,\r\n            // Allows events to pass the shadow DOM barrier.\r\n            composed: true,\r\n            cancelable: true,\r\n        })\r\n    )\r\n}\r\n\r\n/**\r\n * Type-checking in JS is weird and annoying, these are better.\r\n */\r\nexport function isObjecty(subject) { return (typeof subject === 'object' && subject !== null) }\r\nexport function isObject(subject) { return (isObjecty(subject) && ! isArray(subject)) }\r\nexport function isArray(subject) { return Array.isArray(subject) }\r\nexport function isFunction(subject) { return typeof subject === 'function' }\r\nexport function isPrimitive(subject) { return typeof subject !== 'object' || subject === null }\r\n\r\n/**\r\n * Clone an object deeply to wipe out any shared references.\r\n */\r\nexport function deepClone(obj) { return JSON.parse(JSON.stringify(obj)) }\r\n\r\n/**\r\n * Determine if two objects take the exact same shape.\r\n */\r\nexport function deeplyEqual(a, b) { return JSON.stringify(a) === JSON.stringify(b) }\r\n\r\n/**\r\n * An easy way to loop through arrays and objects.\r\n */\r\nexport function each(subject, callback) {\r\n    Object.entries(subject).forEach(([key, value]) => callback(key, value))\r\n}\r\n\r\n/**\r\n * Get a property from an object with support for dot-notation.\r\n */\r\nexport function dataGet(object, key) {\r\n    if (key === '') return object\r\n\r\n    return key.split('.').reduce((carry, i) => {\r\n        if (carry === undefined) return undefined\r\n\r\n        return carry[i]\r\n    }, object)\r\n}\r\n\r\n/**\r\n * Set a property on an object with support for dot-notation.\r\n */\r\nexport function dataSet(object, key, value) {\r\n    let segments = key.split('.')\r\n\r\n    if (segments.length === 1) {\r\n        return object[key] = value\r\n    }\r\n\r\n    let firstSegment = segments.shift()\r\n    let restOfSegments = segments.join('.')\r\n\r\n    if (object[firstSegment] === undefined) {\r\n        object[firstSegment] = {}\r\n    }\r\n\r\n    dataSet(object[firstSegment], restOfSegments, value)\r\n}\r\n\r\n/**\r\n * Create a flat, dot-notated diff of two obejcts.\r\n */\r\nexport function diff(left, right, diffs = {}, path = '') {\r\n    // Are they the same?\r\n    if (left === right) return diffs\r\n\r\n    // Are they COMPLETELY different?\r\n    if (typeof left !== typeof right || (isObject(left) && isArray(right)) || (isArray(left) && isObject(right))) {\r\n        diffs[path] = right;\r\n        return diffs\r\n    }\r\n\r\n    // Is the right or left side a primitive value (a leaf node)?\r\n    if (isPrimitive(left) || isPrimitive(right)) {\r\n        diffs[path] = right\r\n        return diffs\r\n    }\r\n\r\n    // We now know both are objects...\r\n    let leftKeys = Object.keys(left)\r\n\r\n    // Recursively diff the object's properties...\r\n    Object.entries(right).forEach(([key, value]) => {\r\n        diffs = {...diffs, ...diff(left[key], right[key], diffs, path === '' ? key : `${path}.${key}`)}\r\n        leftKeys = leftKeys.filter(i => i !== key)\r\n    })\r\n\r\n    // Mark any items for removal...\r\n    leftKeys.forEach(key => {\r\n        diffs[`${path}.${key}`] = '__rm__'\r\n    })\r\n\r\n    return diffs\r\n}\r\n\r\n/**\r\n * The data that's passed between the browser and server is in the form of\r\n * nested tuples consisting of the schema: [rawValue, metadata]. In this\r\n * method we're extracting the plain JS object of only the raw values.\r\n */\r\nexport function extractData(payload) {\r\n    let value = isSynthetic(payload) ? payload[0] : payload\r\n    let meta = isSynthetic(payload) ? payload[1] : undefined\r\n\r\n    if (isObjecty(value)) {\r\n        Object.entries(value).forEach(([key, iValue]) => {\r\n            value[key] = extractData(iValue)\r\n        })\r\n    }\r\n\r\n    return value\r\n}\r\n\r\n/**\r\n * Determine if the variable passed in is a node in a nested metadata\r\n * tuple tree. (Meaning it takes the form of: [rawData, metadata])\r\n */\r\nexport function isSynthetic(subject) {\r\n    return Array.isArray(subject)\r\n        && subject.length === 2\r\n        && typeof subject[1] === 'object'\r\n        && Object.keys(subject[1]).includes('s')\r\n}\r\n\r\n/**\r\n * Post requests in Laravel require a csrf token to be passed\r\n * along with the payload. Here, we'll try and locate one.\r\n */\r\nexport function getCsrfToken() {\r\n    // Purposely not caching. Fetching it fresh every time ensures we're\r\n    // not depending on a stale session's CSRF token...\r\n\r\n    if (document.querySelector('meta[name=\"csrf-token\"]')) {\r\n        return document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content')\r\n    }\r\n\r\n    if (document.querySelector('[data-csrf]')) {\r\n        return document.querySelector('[data-csrf]').getAttribute('data-csrf')\r\n    }\r\n\r\n    if (window.livewireScriptConfig['csrf'] ?? false) {\r\n        return window.livewireScriptConfig['csrf']\r\n    }\r\n\r\n    throw 'Livewire: No CSRF token detected'\r\n}\r\n\r\nlet nonce;\r\n\r\nexport function getNonce() {\r\n    if (nonce) return nonce\r\n\r\n\r\n    if (window.livewireScriptConfig && (window.livewireScriptConfig['nonce'] ?? false)) {\r\n        nonce = window.livewireScriptConfig['nonce']\r\n\r\n        return nonce\r\n    }\r\n\r\n    const elWithNonce = document.querySelector('style[data-livewire-style][nonce]')\r\n\r\n    if (elWithNonce) {\r\n        nonce = elWithNonce.nonce\r\n\r\n        return nonce\r\n    }\r\n\r\n    return null\r\n}\r\n\r\n/**\r\n * Livewire's update URI. This is configurable via Livewire::setUpdateRoute(...)\r\n */\r\nexport function getUpdateUri() {\r\n    return document.querySelector('[data-update-uri]')?.getAttribute('data-update-uri') ?? window.livewireScriptConfig['uri'] ?? null\r\n}\r\n\r\nexport function contentIsFromDump(content) {\r\n    return !! content.match(/<script>Sfdump\\(\".+\"\\)<\\/script>/)\r\n}\r\n\r\nexport function splitDumpFromContent(content) {\r\n    let dump = content.match(/.*<script>Sfdump\\(\".+\"\\)<\\/script>/s)\r\n\r\n    return [dump, content.replace(dump, '')]\r\n}\r\n", "import { getCsrfToken } from '@/utils';\r\n\r\nlet uploadManagers = new WeakMap\r\n\r\nfunction getUploadManager(component) {\r\n    if (! uploadManagers.has(component)) {\r\n        let manager = new UploadManager(component)\r\n\r\n        uploadManagers.set(component, manager)\r\n\r\n        manager.registerListeners()\r\n    }\r\n\r\n    return uploadManagers.get(component)\r\n}\r\n\r\nexport function handleFileUpload(el, property, component, cleanup) {\r\n    let manager = getUploadManager(component)\r\n\r\n    let start = () => el.dispatchEvent(new CustomEvent('livewire-upload-start', { bubbles: true, detail: { id: component.id, property} }))\r\n    let finish = () => el.dispatchEvent(new CustomEvent('livewire-upload-finish', { bubbles: true, detail: { id: component.id, property} }))\r\n    let error = () => el.dispatchEvent(new CustomEvent('livewire-upload-error', { bubbles: true, detail: { id: component.id, property} }))\r\n    let cancel = () => el.dispatchEvent(new CustomEvent('livewire-upload-cancel', { bubbles: true, detail: { id: component.id, property} }))\r\n    let progress = (progressEvent) => {\r\n        var percentCompleted = Math.round( (progressEvent.loaded * 100) / progressEvent.total )\r\n\r\n        el.dispatchEvent(\r\n            new CustomEvent('livewire-upload-progress', {\r\n                bubbles: true, detail: { progress: percentCompleted }\r\n            })\r\n        )\r\n    }\r\n\r\n    let eventHandler = e => {\r\n        if (e.target.files.length === 0) return\r\n\r\n        start()\r\n\r\n        if (e.target.multiple) {\r\n            manager.uploadMultiple(property, e.target.files, finish, error, progress, cancel)\r\n        } else {\r\n            manager.upload(property, e.target.files[0], finish, error, progress, cancel)\r\n        }\r\n    }\r\n\r\n    el.addEventListener('change', eventHandler)\r\n\r\n    // There's a bug in browsers where selecting a file, removing it,\r\n    // then re-adding it doesn't fire the change event. This fixes it.\r\n    // Reference: https://stackoverflow.com/questions/12030686/html-input-file-selection-event-not-firing-upon-selecting-the-same-file\r\n    let clearFileInputValue = () => { el.value = null }\r\n    el.addEventListener('click', clearFileInputValue)\r\n\r\n    // Clear the input if the uploaded is cancelled...\r\n    el.addEventListener('livewire-upload-cancel', clearFileInputValue)\r\n\r\n    cleanup(() => {\r\n        el.removeEventListener('change', eventHandler)\r\n        el.removeEventListener('click', clearFileInputValue)\r\n    })\r\n}\r\n\r\nclass UploadManager {\r\n    constructor(component) {\r\n        this.component = component\r\n        this.uploadBag = new MessageBag\r\n        this.removeBag = new MessageBag\r\n    }\r\n\r\n    registerListeners() {\r\n        this.component.$wire.$on('upload:generatedSignedUrl', ({ name, url }) => {\r\n            // We have to add reduntant \"setLoading\" calls because the dom-patch\r\n            // from the first response will clear the setUploadLoading call\r\n            // from the first upload call.\r\n            setUploadLoading(this.component, name)\r\n\r\n            this.handleSignedUrl(name, url)\r\n        })\r\n\r\n        this.component.$wire.$on('upload:generatedSignedUrlForS3', ({ name, payload }) => {\r\n            setUploadLoading(this.component, name)\r\n\r\n            this.handleS3PreSignedUrl(name, payload)\r\n        })\r\n\r\n        this.component.$wire.$on('upload:finished', ({ name, tmpFilenames }) => this.markUploadFinished(name, tmpFilenames))\r\n        this.component.$wire.$on('upload:errored', ({ name }) => this.markUploadErrored(name))\r\n        this.component.$wire.$on('upload:removed', ({ name, tmpFilename }) => this.removeBag.shift(name).finishCallback(tmpFilename))\r\n    }\r\n\r\n    upload(name, file, finishCallback, errorCallback, progressCallback, cancelledCallback) {\r\n        this.setUpload(name, {\r\n            files: [file],\r\n            multiple: false,\r\n            finishCallback,\r\n            errorCallback,\r\n            progressCallback,\r\n            cancelledCallback,\r\n        })\r\n    }\r\n\r\n    uploadMultiple(name, files, finishCallback, errorCallback, progressCallback, cancelledCallback) {\r\n        this.setUpload(name, {\r\n            files: Array.from(files),\r\n            multiple: true,\r\n            finishCallback,\r\n            errorCallback,\r\n            progressCallback,\r\n            cancelledCallback,\r\n        })\r\n    }\r\n\r\n    removeUpload(name, tmpFilename, finishCallback) {\r\n        this.removeBag.push(name, {\r\n            tmpFilename, finishCallback\r\n        })\r\n\r\n        this.component.$wire.call('_removeUpload', name, tmpFilename);\r\n    }\r\n\r\n    setUpload(name, uploadObject) {\r\n        this.uploadBag.add(name, uploadObject)\r\n\r\n        if (this.uploadBag.get(name).length === 1) {\r\n            this.startUpload(name, uploadObject)\r\n        }\r\n    }\r\n\r\n    handleSignedUrl(name, url) {\r\n        let formData = new FormData()\r\n        Array.from(this.uploadBag.first(name).files).forEach(file => formData.append('files[]', file, file.name))\r\n\r\n        let headers = {\r\n            'Accept': 'application/json',\r\n        }\r\n\r\n        let csrfToken = getCsrfToken()\r\n\r\n        if (csrfToken) headers['X-CSRF-TOKEN'] = csrfToken\r\n\r\n        this.makeRequest(name, formData, 'post', url, headers, response => {\r\n            return response.paths\r\n        })\r\n    }\r\n\r\n    handleS3PreSignedUrl(name, payload) {\r\n        let formData = this.uploadBag.first(name).files[0]\r\n\r\n        let headers = payload.headers\r\n        if ('Host' in headers) delete headers.Host\r\n        let url = payload.url\r\n\r\n        this.makeRequest(name, formData, 'put', url, headers, response => {\r\n            return [payload.path]\r\n        })\r\n    }\r\n\r\n    makeRequest(name, formData, method, url, headers, retrievePaths) {\r\n        let request = new XMLHttpRequest()\r\n\r\n        request.open(method, url)\r\n\r\n        Object.entries(headers).forEach(([key, value]) => {\r\n            request.setRequestHeader(key, value)\r\n        })\r\n\r\n        request.upload.addEventListener('progress', e => {\r\n            e.detail = {}\r\n            e.detail.progress = Math.round((e.loaded * 100) / e.total)\r\n\r\n            this.uploadBag.first(name).progressCallback(e)\r\n        })\r\n\r\n        request.addEventListener('load', () => {\r\n            if ((request.status+'')[0] === '2') {\r\n                let paths = retrievePaths(request.response && JSON.parse(request.response))\r\n\r\n                this.component.$wire.call('_finishUpload', name, paths, this.uploadBag.first(name).multiple)\r\n\r\n                return\r\n            }\r\n\r\n            let errors = null\r\n\r\n            if (request.status === 422) {\r\n                errors = request.response\r\n            }\r\n\r\n            this.component.$wire.call('_uploadErrored', name, errors, this.uploadBag.first(name).multiple)\r\n        })\r\n\r\n        this.uploadBag.first(name).request = request\r\n\r\n        request.send(formData)\r\n    }\r\n\r\n    startUpload(name, uploadObject) {\r\n        let fileInfos = uploadObject.files.map(file => {\r\n            return { name: file.name, size: file.size, type: file.type }\r\n        })\r\n\r\n        this.component.$wire.call('_startUpload', name, fileInfos, uploadObject.multiple);\r\n\r\n        setUploadLoading(this.component, name)\r\n    }\r\n\r\n    markUploadFinished(name, tmpFilenames) {\r\n        unsetUploadLoading(this.component)\r\n\r\n        let uploadObject = this.uploadBag.shift(name)\r\n        uploadObject.finishCallback(uploadObject.multiple ? tmpFilenames : tmpFilenames[0])\r\n\r\n        if (this.uploadBag.get(name).length > 0) this.startUpload(name, this.uploadBag.last(name))\r\n    }\r\n\r\n    markUploadErrored(name) {\r\n        unsetUploadLoading(this.component)\r\n\r\n        this.uploadBag.shift(name).errorCallback()\r\n\r\n        if (this.uploadBag.get(name).length > 0) this.startUpload(name, this.uploadBag.last(name))\r\n    }\r\n\r\n    cancelUpload(name, cancelledCallback = null) {\r\n        unsetUploadLoading(this.component)\r\n\r\n        let uploadItem = this.uploadBag.first(name);\r\n\r\n        if (uploadItem) {\r\n            uploadItem.request.abort();\r\n\r\n            this.uploadBag.shift(name).cancelledCallback();\r\n\r\n            if (cancelledCallback) cancelledCallback()\r\n        }\r\n    }\r\n}\r\n\r\nexport default class MessageBag {\r\n    constructor() {\r\n        this.bag = {}\r\n    }\r\n\r\n    add(name, thing) {\r\n        if (! this.bag[name]) {\r\n            this.bag[name] = []\r\n        }\r\n\r\n        this.bag[name].push(thing)\r\n    }\r\n\r\n    push(name, thing) {\r\n        this.add(name, thing)\r\n    }\r\n\r\n    first(name) {\r\n        if (! this.bag[name]) return null\r\n\r\n        return this.bag[name][0]\r\n    }\r\n\r\n    last(name) {\r\n        return this.bag[name].slice(-1)[0]\r\n    }\r\n\r\n    get(name) {\r\n        return this.bag[name]\r\n    }\r\n\r\n    shift(name) {\r\n        return this.bag[name].shift()\r\n    }\r\n\r\n    call(name, ...params) {\r\n        (this.listeners[name] || []).forEach(callback => {\r\n            callback(...params)\r\n        })\r\n    }\r\n\r\n    has(name) {\r\n        return Object.keys(this.listeners).includes(name)\r\n    }\r\n}\r\n\r\nfunction setUploadLoading() {\r\n    // @todo\r\n}\r\n\r\nfunction unsetUploadLoading() {\r\n    // @todo\r\n}\r\n\r\nexport function upload(\r\n    component,\r\n    name,\r\n    file,\r\n    finishCallback = () => { },\r\n    errorCallback = () => { },\r\n    progressCallback = () => { },\r\n    cancelledCallback = () => { },\r\n) {\r\n    let uploadManager = getUploadManager(component)\r\n\r\n    uploadManager.upload(\r\n        name,\r\n        file,\r\n        finishCallback,\r\n        errorCallback,\r\n        progressCallback,\r\n        cancelledCallback,\r\n    )\r\n}\r\n\r\nexport function uploadMultiple(\r\n    component,\r\n    name,\r\n    files,\r\n    finishCallback = () => { },\r\n    errorCallback = () => { },\r\n    progressCallback = () => { },\r\n    cancelledCallback = () => { },\r\n) {\r\n    let uploadManager = getUploadManager(component)\r\n\r\n    uploadManager.uploadMultiple(\r\n        name,\r\n        files,\r\n        finishCallback,\r\n        errorCallback,\r\n        progressCallback,\r\n        cancelledCallback,\r\n    )\r\n}\r\n\r\nexport function removeUpload(\r\n    component,\r\n    name,\r\n    tmpFilename,\r\n    finishCallback = () => { },\r\n    errorCallback = () => { }\r\n) {\r\n    let uploadManager = getUploadManager(component)\r\n\r\n    uploadManager.removeUpload(\r\n        name,\r\n        tmpFilename,\r\n        finishCallback,\r\n        errorCallback\r\n    )\r\n}\r\n\r\nexport function cancelUpload(\r\n    component,\r\n    name,\r\n    cancelledCallback = () => { }\r\n) {\r\n    let uploadManager = getUploadManager(component)\r\n\r\n    uploadManager.cancelUpload(\r\n        name,\r\n        cancelledCallback\r\n    )\r\n}\r\n", "// packages/alpinejs/src/scheduler.js\nvar flushPending = false;\nvar flushing = false;\nvar queue = [];\nvar lastFlushedIndex = -1;\nfunction scheduler(callback) {\n  queueJob(callback);\n}\nfunction queueJob(job) {\n  if (!queue.includes(job))\n    queue.push(job);\n  queueFlush();\n}\nfunction dequeueJob(job) {\n  let index = queue.indexOf(job);\n  if (index !== -1 && index > lastFlushedIndex)\n    queue.splice(index, 1);\n}\nfunction queueFlush() {\n  if (!flushing && !flushPending) {\n    flushPending = true;\n    queueMicrotask(flushJobs);\n  }\n}\nfunction flushJobs() {\n  flushPending = false;\n  flushing = true;\n  for (let i = 0; i < queue.length; i++) {\n    queue[i]();\n    lastFlushedIndex = i;\n  }\n  queue.length = 0;\n  lastFlushedIndex = -1;\n  flushing = false;\n}\n\n// packages/alpinejs/src/reactivity.js\nvar reactive;\nvar effect;\nvar release;\nvar raw;\nvar shouldSchedule = true;\nfunction disableEffectScheduling(callback) {\n  shouldSchedule = false;\n  callback();\n  shouldSchedule = true;\n}\nfunction setReactivityEngine(engine) {\n  reactive = engine.reactive;\n  release = engine.release;\n  effect = (callback) => engine.effect(callback, { scheduler: (task) => {\n    if (shouldSchedule) {\n      scheduler(task);\n    } else {\n      task();\n    }\n  } });\n  raw = engine.raw;\n}\nfunction overrideEffect(override) {\n  effect = override;\n}\nfunction elementBoundEffect(el) {\n  let cleanup2 = () => {\n  };\n  let wrappedEffect = (callback) => {\n    let effectReference = effect(callback);\n    if (!el._x_effects) {\n      el._x_effects = /* @__PURE__ */ new Set();\n      el._x_runEffects = () => {\n        el._x_effects.forEach((i) => i());\n      };\n    }\n    el._x_effects.add(effectReference);\n    cleanup2 = () => {\n      if (effectReference === void 0)\n        return;\n      el._x_effects.delete(effectReference);\n      release(effectReference);\n    };\n    return effectReference;\n  };\n  return [wrappedEffect, () => {\n    cleanup2();\n  }];\n}\nfunction watch(getter, callback) {\n  let firstTime = true;\n  let oldValue;\n  let effectReference = effect(() => {\n    let value = getter();\n    JSON.stringify(value);\n    if (!firstTime) {\n      queueMicrotask(() => {\n        callback(value, oldValue);\n        oldValue = value;\n      });\n    } else {\n      oldValue = value;\n    }\n    firstTime = false;\n  });\n  return () => release(effectReference);\n}\n\n// packages/alpinejs/src/utils/dispatch.js\nfunction dispatch(el, name, detail = {}) {\n  el.dispatchEvent(\n    new CustomEvent(name, {\n      detail,\n      bubbles: true,\n      // Allows events to pass the shadow DOM barrier.\n      composed: true,\n      cancelable: true\n    })\n  );\n}\n\n// packages/alpinejs/src/utils/walk.js\nfunction walk(el, callback) {\n  if (typeof ShadowRoot === \"function\" && el instanceof ShadowRoot) {\n    Array.from(el.children).forEach((el2) => walk(el2, callback));\n    return;\n  }\n  let skip = false;\n  callback(el, () => skip = true);\n  if (skip)\n    return;\n  let node = el.firstElementChild;\n  while (node) {\n    walk(node, callback, false);\n    node = node.nextElementSibling;\n  }\n}\n\n// packages/alpinejs/src/utils/warn.js\nfunction warn(message, ...args) {\n  console.warn(`Alpine Warning: ${message}`, ...args);\n}\n\n// packages/alpinejs/src/lifecycle.js\nvar started = false;\nfunction start() {\n  if (started)\n    warn(\"Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems.\");\n  started = true;\n  if (!document.body)\n    warn(\"Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?\");\n  dispatch(document, \"alpine:init\");\n  dispatch(document, \"alpine:initializing\");\n  startObservingMutations();\n  onElAdded((el) => initTree(el, walk));\n  onElRemoved((el) => destroyTree(el));\n  onAttributesAdded((el, attrs) => {\n    directives(el, attrs).forEach((handle) => handle());\n  });\n  let outNestedComponents = (el) => !closestRoot(el.parentElement, true);\n  Array.from(document.querySelectorAll(allSelectors().join(\",\"))).filter(outNestedComponents).forEach((el) => {\n    initTree(el);\n  });\n  dispatch(document, \"alpine:initialized\");\n}\nvar rootSelectorCallbacks = [];\nvar initSelectorCallbacks = [];\nfunction rootSelectors() {\n  return rootSelectorCallbacks.map((fn) => fn());\n}\nfunction allSelectors() {\n  return rootSelectorCallbacks.concat(initSelectorCallbacks).map((fn) => fn());\n}\nfunction addRootSelector(selectorCallback) {\n  rootSelectorCallbacks.push(selectorCallback);\n}\nfunction addInitSelector(selectorCallback) {\n  initSelectorCallbacks.push(selectorCallback);\n}\nfunction closestRoot(el, includeInitSelectors = false) {\n  return findClosest(el, (element) => {\n    const selectors = includeInitSelectors ? allSelectors() : rootSelectors();\n    if (selectors.some((selector) => element.matches(selector)))\n      return true;\n  });\n}\nfunction findClosest(el, callback) {\n  if (!el)\n    return;\n  if (callback(el))\n    return el;\n  if (el._x_teleportBack)\n    el = el._x_teleportBack;\n  if (!el.parentElement)\n    return;\n  return findClosest(el.parentElement, callback);\n}\nfunction isRoot(el) {\n  return rootSelectors().some((selector) => el.matches(selector));\n}\nvar initInterceptors = [];\nfunction interceptInit(callback) {\n  initInterceptors.push(callback);\n}\nfunction initTree(el, walker = walk, intercept = () => {\n}) {\n  deferHandlingDirectives(() => {\n    walker(el, (el2, skip) => {\n      if (el2._x_inited) {\n        if (el2._x_ignore)\n          skip();\n        return;\n      }\n      intercept(el2, skip);\n      initInterceptors.forEach((i) => i(el2, skip));\n      directives(el2, el2.attributes).forEach((handle) => handle());\n      if (el2._x_ignore) {\n        skip();\n      } else {\n        el2._x_inited = true;\n      }\n    });\n  });\n}\nfunction destroyTree(root, walker = walk) {\n  walker(root, (el) => {\n    cleanupAttributes(el);\n    cleanupElement(el);\n    delete el._x_inited;\n  });\n}\n\n// packages/alpinejs/src/mutation.js\nvar onAttributeAddeds = [];\nvar onElRemoveds = [];\nvar onElAddeds = [];\nfunction onElAdded(callback) {\n  onElAddeds.push(callback);\n}\nfunction onElRemoved(el, callback) {\n  if (typeof callback === \"function\") {\n    if (!el._x_cleanups)\n      el._x_cleanups = [];\n    el._x_cleanups.push(callback);\n  } else {\n    callback = el;\n    onElRemoveds.push(callback);\n  }\n}\nfunction onAttributesAdded(callback) {\n  onAttributeAddeds.push(callback);\n}\nfunction onAttributeRemoved(el, name, callback) {\n  if (!el._x_attributeCleanups)\n    el._x_attributeCleanups = {};\n  if (!el._x_attributeCleanups[name])\n    el._x_attributeCleanups[name] = [];\n  el._x_attributeCleanups[name].push(callback);\n}\nfunction cleanupAttributes(el, names) {\n  if (!el._x_attributeCleanups)\n    return;\n  Object.entries(el._x_attributeCleanups).forEach(([name, value]) => {\n    if (names === void 0 || names.includes(name)) {\n      value.forEach((i) => i());\n      delete el._x_attributeCleanups[name];\n    }\n  });\n}\nfunction cleanupElement(el) {\n  if (el._x_cleanups) {\n    while (el._x_cleanups.length)\n      el._x_cleanups.pop()();\n  }\n}\nvar observer = new MutationObserver(onMutate);\nvar currentlyObserving = false;\nfunction startObservingMutations() {\n  observer.observe(document, { subtree: true, childList: true, attributes: true, attributeOldValue: true });\n  currentlyObserving = true;\n}\nfunction stopObservingMutations() {\n  flushObserver();\n  observer.disconnect();\n  currentlyObserving = false;\n}\nvar queuedMutations = [];\nfunction flushObserver() {\n  let records = observer.takeRecords();\n  queuedMutations.push(() => records.length > 0 && onMutate(records));\n  let queueLengthWhenTriggered = queuedMutations.length;\n  queueMicrotask(() => {\n    if (queuedMutations.length === queueLengthWhenTriggered) {\n      while (queuedMutations.length > 0)\n        queuedMutations.shift()();\n    }\n  });\n}\nfunction mutateDom(callback) {\n  if (!currentlyObserving)\n    return callback();\n  stopObservingMutations();\n  let result = callback();\n  startObservingMutations();\n  return result;\n}\nvar isCollecting = false;\nvar deferredMutations = [];\nfunction deferMutations() {\n  isCollecting = true;\n}\nfunction flushAndStopDeferringMutations() {\n  isCollecting = false;\n  onMutate(deferredMutations);\n  deferredMutations = [];\n}\nfunction onMutate(mutations) {\n  if (isCollecting) {\n    deferredMutations = deferredMutations.concat(mutations);\n    return;\n  }\n  let addedNodes = /* @__PURE__ */ new Set();\n  let removedNodes = /* @__PURE__ */ new Set();\n  let addedAttributes = /* @__PURE__ */ new Map();\n  let removedAttributes = /* @__PURE__ */ new Map();\n  for (let i = 0; i < mutations.length; i++) {\n    if (mutations[i].target._x_ignoreMutationObserver)\n      continue;\n    if (mutations[i].type === \"childList\") {\n      mutations[i].addedNodes.forEach((node) => node.nodeType === 1 && addedNodes.add(node));\n      mutations[i].removedNodes.forEach((node) => node.nodeType === 1 && removedNodes.add(node));\n    }\n    if (mutations[i].type === \"attributes\") {\n      let el = mutations[i].target;\n      let name = mutations[i].attributeName;\n      let oldValue = mutations[i].oldValue;\n      let add2 = () => {\n        if (!addedAttributes.has(el))\n          addedAttributes.set(el, []);\n        addedAttributes.get(el).push({ name, value: el.getAttribute(name) });\n      };\n      let remove = () => {\n        if (!removedAttributes.has(el))\n          removedAttributes.set(el, []);\n        removedAttributes.get(el).push(name);\n      };\n      if (el.hasAttribute(name) && oldValue === null) {\n        add2();\n      } else if (el.hasAttribute(name)) {\n        remove();\n        add2();\n      } else {\n        remove();\n      }\n    }\n  }\n  removedAttributes.forEach((attrs, el) => {\n    cleanupAttributes(el, attrs);\n  });\n  addedAttributes.forEach((attrs, el) => {\n    onAttributeAddeds.forEach((i) => i(el, attrs));\n  });\n  for (let node of removedNodes) {\n    if (addedNodes.has(node))\n      continue;\n    onElRemoveds.forEach((i) => i(node));\n    destroyTree(node);\n  }\n  addedNodes.forEach((node) => {\n    node._x_ignoreSelf = true;\n    node._x_ignore = true;\n  });\n  for (let node of addedNodes) {\n    if (!node.isConnected)\n      continue;\n    delete node._x_ignoreSelf;\n    delete node._x_ignore;\n    onElAddeds.forEach((i) => i(node));\n    node._x_ignore = true;\n    node._x_ignoreSelf = true;\n  }\n  addedNodes.forEach((node) => {\n    delete node._x_ignoreSelf;\n    delete node._x_ignore;\n  });\n  addedNodes = null;\n  removedNodes = null;\n  addedAttributes = null;\n  removedAttributes = null;\n}\n\n// packages/alpinejs/src/scope.js\nfunction scope(node) {\n  return mergeProxies(closestDataStack(node));\n}\nfunction addScopeToNode(node, data2, referenceNode) {\n  node._x_dataStack = [data2, ...closestDataStack(referenceNode || node)];\n  return () => {\n    node._x_dataStack = node._x_dataStack.filter((i) => i !== data2);\n  };\n}\nfunction closestDataStack(node) {\n  if (node._x_dataStack)\n    return node._x_dataStack;\n  if (typeof ShadowRoot === \"function\" && node instanceof ShadowRoot) {\n    return closestDataStack(node.host);\n  }\n  if (!node.parentNode) {\n    return [];\n  }\n  return closestDataStack(node.parentNode);\n}\nfunction mergeProxies(objects) {\n  return new Proxy({ objects }, mergeProxyTrap);\n}\nvar mergeProxyTrap = {\n  ownKeys({ objects }) {\n    return Array.from(\n      new Set(objects.flatMap((i) => Object.keys(i)))\n    );\n  },\n  has({ objects }, name) {\n    if (name == Symbol.unscopables)\n      return false;\n    return objects.some(\n      (obj) => Reflect.has(obj, name)\n    );\n  },\n  get({ objects }, name, thisProxy) {\n    if (name == \"toJSON\")\n      return collapseProxies;\n    return Reflect.get(\n      objects.find(\n        (obj) => Reflect.has(obj, name)\n      ) || {},\n      name,\n      thisProxy\n    );\n  },\n  set({ objects }, name, value, thisProxy) {\n    const target = objects.find(\n      (obj) => Reflect.has(obj, name)\n    ) || objects[objects.length - 1];\n    const descriptor = Object.getOwnPropertyDescriptor(target, name);\n    if (descriptor?.set && descriptor?.get)\n      return Reflect.set(target, name, value, thisProxy);\n    return Reflect.set(target, name, value);\n  }\n};\nfunction collapseProxies() {\n  let keys = Reflect.ownKeys(this);\n  return keys.reduce((acc, key) => {\n    acc[key] = Reflect.get(this, key);\n    return acc;\n  }, {});\n}\n\n// packages/alpinejs/src/interceptor.js\nfunction initInterceptors2(data2) {\n  let isObject2 = (val) => typeof val === \"object\" && !Array.isArray(val) && val !== null;\n  let recurse = (obj, basePath = \"\") => {\n    Object.entries(Object.getOwnPropertyDescriptors(obj)).forEach(([key, { value, enumerable }]) => {\n      if (enumerable === false || value === void 0)\n        return;\n      if (typeof value === \"object\" && value !== null && value.__v_skip)\n        return;\n      let path = basePath === \"\" ? key : `${basePath}.${key}`;\n      if (typeof value === \"object\" && value !== null && value._x_interceptor) {\n        obj[key] = value.initialize(data2, path, key);\n      } else {\n        if (isObject2(value) && value !== obj && !(value instanceof Element)) {\n          recurse(value, path);\n        }\n      }\n    });\n  };\n  return recurse(data2);\n}\nfunction interceptor(callback, mutateObj = () => {\n}) {\n  let obj = {\n    initialValue: void 0,\n    _x_interceptor: true,\n    initialize(data2, path, key) {\n      return callback(this.initialValue, () => get(data2, path), (value) => set(data2, path, value), path, key);\n    }\n  };\n  mutateObj(obj);\n  return (initialValue) => {\n    if (typeof initialValue === \"object\" && initialValue !== null && initialValue._x_interceptor) {\n      let initialize = obj.initialize.bind(obj);\n      obj.initialize = (data2, path, key) => {\n        let innerValue = initialValue.initialize(data2, path, key);\n        obj.initialValue = innerValue;\n        return initialize(data2, path, key);\n      };\n    } else {\n      obj.initialValue = initialValue;\n    }\n    return obj;\n  };\n}\nfunction get(obj, path) {\n  return path.split(\".\").reduce((carry, segment) => carry[segment], obj);\n}\nfunction set(obj, path, value) {\n  if (typeof path === \"string\")\n    path = path.split(\".\");\n  if (path.length === 1)\n    obj[path[0]] = value;\n  else if (path.length === 0)\n    throw error;\n  else {\n    if (obj[path[0]])\n      return set(obj[path[0]], path.slice(1), value);\n    else {\n      obj[path[0]] = {};\n      return set(obj[path[0]], path.slice(1), value);\n    }\n  }\n}\n\n// packages/alpinejs/src/magics.js\nvar magics = {};\nfunction magic(name, callback) {\n  magics[name] = callback;\n}\nfunction injectMagics(obj, el) {\n  Object.entries(magics).forEach(([name, callback]) => {\n    let memoizedUtilities = null;\n    function getUtilities() {\n      if (memoizedUtilities) {\n        return memoizedUtilities;\n      } else {\n        let [utilities, cleanup2] = getElementBoundUtilities(el);\n        memoizedUtilities = { interceptor, ...utilities };\n        onElRemoved(el, cleanup2);\n        return memoizedUtilities;\n      }\n    }\n    Object.defineProperty(obj, `$${name}`, {\n      get() {\n        return callback(el, getUtilities());\n      },\n      enumerable: false\n    });\n  });\n  return obj;\n}\n\n// packages/alpinejs/src/utils/error.js\nfunction tryCatch(el, expression, callback, ...args) {\n  try {\n    return callback(...args);\n  } catch (e) {\n    handleError(e, el, expression);\n  }\n}\nfunction handleError(error2, el, expression = void 0) {\n  error2 = Object.assign(\n    error2 ?? { message: \"No error message given.\" },\n    { el, expression }\n  );\n  console.warn(`Alpine Expression Error: ${error2.message}\n\n${expression ? 'Expression: \"' + expression + '\"\\n\\n' : \"\"}`, el);\n  setTimeout(() => {\n    throw error2;\n  }, 0);\n}\n\n// packages/alpinejs/src/evaluator.js\nvar shouldAutoEvaluateFunctions = true;\nfunction dontAutoEvaluateFunctions(callback) {\n  let cache = shouldAutoEvaluateFunctions;\n  shouldAutoEvaluateFunctions = false;\n  let result = callback();\n  shouldAutoEvaluateFunctions = cache;\n  return result;\n}\nfunction evaluate(el, expression, extras = {}) {\n  let result;\n  evaluateLater(el, expression)((value) => result = value, extras);\n  return result;\n}\nfunction evaluateLater(...args) {\n  return theEvaluatorFunction(...args);\n}\nvar theEvaluatorFunction = normalEvaluator;\nfunction setEvaluator(newEvaluator) {\n  theEvaluatorFunction = newEvaluator;\n}\nfunction normalEvaluator(el, expression) {\n  let overriddenMagics = {};\n  injectMagics(overriddenMagics, el);\n  let dataStack = [overriddenMagics, ...closestDataStack(el)];\n  let evaluator = typeof expression === \"function\" ? generateEvaluatorFromFunction(dataStack, expression) : generateEvaluatorFromString(dataStack, expression, el);\n  return tryCatch.bind(null, el, expression, evaluator);\n}\nfunction generateEvaluatorFromFunction(dataStack, func) {\n  return (receiver = () => {\n  }, { scope: scope2 = {}, params = [] } = {}) => {\n    let result = func.apply(mergeProxies([scope2, ...dataStack]), params);\n    runIfTypeOfFunction(receiver, result);\n  };\n}\nvar evaluatorMemo = {};\nfunction generateFunctionFromString(expression, el) {\n  if (evaluatorMemo[expression]) {\n    return evaluatorMemo[expression];\n  }\n  let AsyncFunction = Object.getPrototypeOf(async function() {\n  }).constructor;\n  let rightSideSafeExpression = /^[\\n\\s]*if.*\\(.*\\)/.test(expression.trim()) || /^(let|const)\\s/.test(expression.trim()) ? `(async()=>{ ${expression} })()` : expression;\n  const safeAsyncFunction = () => {\n    try {\n      let func2 = new AsyncFunction(\n        [\"__self\", \"scope\"],\n        `with (scope) { __self.result = ${rightSideSafeExpression} }; __self.finished = true; return __self.result;`\n      );\n      Object.defineProperty(func2, \"name\", {\n        value: `[Alpine] ${expression}`\n      });\n      return func2;\n    } catch (error2) {\n      handleError(error2, el, expression);\n      return Promise.resolve();\n    }\n  };\n  let func = safeAsyncFunction();\n  evaluatorMemo[expression] = func;\n  return func;\n}\nfunction generateEvaluatorFromString(dataStack, expression, el) {\n  let func = generateFunctionFromString(expression, el);\n  return (receiver = () => {\n  }, { scope: scope2 = {}, params = [] } = {}) => {\n    func.result = void 0;\n    func.finished = false;\n    let completeScope = mergeProxies([scope2, ...dataStack]);\n    if (typeof func === \"function\") {\n      let promise = func(func, completeScope).catch((error2) => handleError(error2, el, expression));\n      if (func.finished) {\n        runIfTypeOfFunction(receiver, func.result, completeScope, params, el);\n        func.result = void 0;\n      } else {\n        promise.then((result) => {\n          runIfTypeOfFunction(receiver, result, completeScope, params, el);\n        }).catch((error2) => handleError(error2, el, expression)).finally(() => func.result = void 0);\n      }\n    }\n  };\n}\nfunction runIfTypeOfFunction(receiver, value, scope2, params, el) {\n  if (shouldAutoEvaluateFunctions && typeof value === \"function\") {\n    let result = value.apply(scope2, params);\n    if (result instanceof Promise) {\n      result.then((i) => runIfTypeOfFunction(receiver, i, scope2, params)).catch((error2) => handleError(error2, el, value));\n    } else {\n      receiver(result);\n    }\n  } else if (typeof value === \"object\" && value instanceof Promise) {\n    value.then((i) => receiver(i));\n  } else {\n    receiver(value);\n  }\n}\n\n// packages/alpinejs/src/directives.js\nvar prefixAsString = \"x-\";\nfunction prefix(subject = \"\") {\n  return prefixAsString + subject;\n}\nfunction setPrefix(newPrefix) {\n  prefixAsString = newPrefix;\n}\nvar directiveHandlers = {};\nfunction directive(name, callback) {\n  directiveHandlers[name] = callback;\n  return {\n    before(directive2) {\n      if (!directiveHandlers[directive2]) {\n        console.warn(String.raw`Cannot find directive \\`${directive2}\\`. \\`${name}\\` will use the default order of execution`);\n        return;\n      }\n      const pos = directiveOrder.indexOf(directive2);\n      directiveOrder.splice(pos >= 0 ? pos : directiveOrder.indexOf(\"DEFAULT\"), 0, name);\n    }\n  };\n}\nfunction directives(el, attributes, originalAttributeOverride) {\n  attributes = Array.from(attributes);\n  if (el._x_virtualDirectives) {\n    let vAttributes = Object.entries(el._x_virtualDirectives).map(([name, value]) => ({ name, value }));\n    let staticAttributes = attributesOnly(vAttributes);\n    vAttributes = vAttributes.map((attribute) => {\n      if (staticAttributes.find((attr) => attr.name === attribute.name)) {\n        return {\n          name: `x-bind:${attribute.name}`,\n          value: `\"${attribute.value}\"`\n        };\n      }\n      return attribute;\n    });\n    attributes = attributes.concat(vAttributes);\n  }\n  let transformedAttributeMap = {};\n  let directives2 = attributes.map(toTransformedAttributes((newName, oldName) => transformedAttributeMap[newName] = oldName)).filter(outNonAlpineAttributes).map(toParsedDirectives(transformedAttributeMap, originalAttributeOverride)).sort(byPriority);\n  return directives2.map((directive2) => {\n    return getDirectiveHandler(el, directive2);\n  });\n}\nfunction attributesOnly(attributes) {\n  return Array.from(attributes).map(toTransformedAttributes()).filter((attr) => !outNonAlpineAttributes(attr));\n}\nvar isDeferringHandlers = false;\nvar directiveHandlerStacks = /* @__PURE__ */ new Map();\nvar currentHandlerStackKey = Symbol();\nfunction deferHandlingDirectives(callback) {\n  isDeferringHandlers = true;\n  let key = Symbol();\n  currentHandlerStackKey = key;\n  directiveHandlerStacks.set(key, []);\n  let flushHandlers = () => {\n    while (directiveHandlerStacks.get(key).length)\n      directiveHandlerStacks.get(key).shift()();\n    directiveHandlerStacks.delete(key);\n  };\n  let stopDeferring = () => {\n    isDeferringHandlers = false;\n    flushHandlers();\n  };\n  callback(flushHandlers);\n  stopDeferring();\n}\nfunction getElementBoundUtilities(el) {\n  let cleanups = [];\n  let cleanup2 = (callback) => cleanups.push(callback);\n  let [effect3, cleanupEffect] = elementBoundEffect(el);\n  cleanups.push(cleanupEffect);\n  let utilities = {\n    Alpine: alpine_default,\n    effect: effect3,\n    cleanup: cleanup2,\n    evaluateLater: evaluateLater.bind(evaluateLater, el),\n    evaluate: evaluate.bind(evaluate, el)\n  };\n  let doCleanup = () => cleanups.forEach((i) => i());\n  return [utilities, doCleanup];\n}\nfunction getDirectiveHandler(el, directive2) {\n  let noop = () => {\n  };\n  let handler4 = directiveHandlers[directive2.type] || noop;\n  let [utilities, cleanup2] = getElementBoundUtilities(el);\n  onAttributeRemoved(el, directive2.original, cleanup2);\n  let fullHandler = () => {\n    if (el._x_ignore || el._x_ignoreSelf)\n      return;\n    handler4.inline && handler4.inline(el, directive2, utilities);\n    handler4 = handler4.bind(handler4, el, directive2, utilities);\n    isDeferringHandlers ? directiveHandlerStacks.get(currentHandlerStackKey).push(handler4) : handler4();\n  };\n  fullHandler.runCleanups = cleanup2;\n  return fullHandler;\n}\nvar startingWith = (subject, replacement) => ({ name, value }) => {\n  if (name.startsWith(subject))\n    name = name.replace(subject, replacement);\n  return { name, value };\n};\nvar into = (i) => i;\nfunction toTransformedAttributes(callback = () => {\n}) {\n  return ({ name, value }) => {\n    let { name: newName, value: newValue } = attributeTransformers.reduce((carry, transform) => {\n      return transform(carry);\n    }, { name, value });\n    if (newName !== name)\n      callback(newName, name);\n    return { name: newName, value: newValue };\n  };\n}\nvar attributeTransformers = [];\nfunction mapAttributes(callback) {\n  attributeTransformers.push(callback);\n}\nfunction outNonAlpineAttributes({ name }) {\n  return alpineAttributeRegex().test(name);\n}\nvar alpineAttributeRegex = () => new RegExp(`^${prefixAsString}([^:^.]+)\\\\b`);\nfunction toParsedDirectives(transformedAttributeMap, originalAttributeOverride) {\n  return ({ name, value }) => {\n    let typeMatch = name.match(alpineAttributeRegex());\n    let valueMatch = name.match(/:([a-zA-Z0-9\\-_:]+)/);\n    let modifiers = name.match(/\\.[^.\\]]+(?=[^\\]]*$)/g) || [];\n    let original = originalAttributeOverride || transformedAttributeMap[name] || name;\n    return {\n      type: typeMatch ? typeMatch[1] : null,\n      value: valueMatch ? valueMatch[1] : null,\n      modifiers: modifiers.map((i) => i.replace(\".\", \"\")),\n      expression: value,\n      original\n    };\n  };\n}\nvar DEFAULT = \"DEFAULT\";\nvar directiveOrder = [\n  \"ignore\",\n  \"ref\",\n  \"data\",\n  \"id\",\n  \"anchor\",\n  \"bind\",\n  \"init\",\n  \"for\",\n  \"model\",\n  \"modelable\",\n  \"transition\",\n  \"show\",\n  \"if\",\n  DEFAULT,\n  \"teleport\"\n];\nfunction byPriority(a, b) {\n  let typeA = directiveOrder.indexOf(a.type) === -1 ? DEFAULT : a.type;\n  let typeB = directiveOrder.indexOf(b.type) === -1 ? DEFAULT : b.type;\n  return directiveOrder.indexOf(typeA) - directiveOrder.indexOf(typeB);\n}\n\n// packages/alpinejs/src/nextTick.js\nvar tickStack = [];\nvar isHolding = false;\nfunction nextTick(callback = () => {\n}) {\n  queueMicrotask(() => {\n    isHolding || setTimeout(() => {\n      releaseNextTicks();\n    });\n  });\n  return new Promise((res) => {\n    tickStack.push(() => {\n      callback();\n      res();\n    });\n  });\n}\nfunction releaseNextTicks() {\n  isHolding = false;\n  while (tickStack.length)\n    tickStack.shift()();\n}\nfunction holdNextTicks() {\n  isHolding = true;\n}\n\n// packages/alpinejs/src/utils/classes.js\nfunction setClasses(el, value) {\n  if (Array.isArray(value)) {\n    return setClassesFromString(el, value.join(\" \"));\n  } else if (typeof value === \"object\" && value !== null) {\n    return setClassesFromObject(el, value);\n  } else if (typeof value === \"function\") {\n    return setClasses(el, value());\n  }\n  return setClassesFromString(el, value);\n}\nfunction setClassesFromString(el, classString) {\n  let split = (classString2) => classString2.split(\" \").filter(Boolean);\n  let missingClasses = (classString2) => classString2.split(\" \").filter((i) => !el.classList.contains(i)).filter(Boolean);\n  let addClassesAndReturnUndo = (classes) => {\n    el.classList.add(...classes);\n    return () => {\n      el.classList.remove(...classes);\n    };\n  };\n  classString = classString === true ? classString = \"\" : classString || \"\";\n  return addClassesAndReturnUndo(missingClasses(classString));\n}\nfunction setClassesFromObject(el, classObject) {\n  let split = (classString) => classString.split(\" \").filter(Boolean);\n  let forAdd = Object.entries(classObject).flatMap(([classString, bool]) => bool ? split(classString) : false).filter(Boolean);\n  let forRemove = Object.entries(classObject).flatMap(([classString, bool]) => !bool ? split(classString) : false).filter(Boolean);\n  let added = [];\n  let removed = [];\n  forRemove.forEach((i) => {\n    if (el.classList.contains(i)) {\n      el.classList.remove(i);\n      removed.push(i);\n    }\n  });\n  forAdd.forEach((i) => {\n    if (!el.classList.contains(i)) {\n      el.classList.add(i);\n      added.push(i);\n    }\n  });\n  return () => {\n    removed.forEach((i) => el.classList.add(i));\n    added.forEach((i) => el.classList.remove(i));\n  };\n}\n\n// packages/alpinejs/src/utils/styles.js\nfunction setStyles(el, value) {\n  if (typeof value === \"object\" && value !== null) {\n    return setStylesFromObject(el, value);\n  }\n  return setStylesFromString(el, value);\n}\nfunction setStylesFromObject(el, value) {\n  let previousStyles = {};\n  Object.entries(value).forEach(([key, value2]) => {\n    previousStyles[key] = el.style[key];\n    if (!key.startsWith(\"--\")) {\n      key = kebabCase(key);\n    }\n    el.style.setProperty(key, value2);\n  });\n  setTimeout(() => {\n    if (el.style.length === 0) {\n      el.removeAttribute(\"style\");\n    }\n  });\n  return () => {\n    setStyles(el, previousStyles);\n  };\n}\nfunction setStylesFromString(el, value) {\n  let cache = el.getAttribute(\"style\", value);\n  el.setAttribute(\"style\", value);\n  return () => {\n    el.setAttribute(\"style\", cache || \"\");\n  };\n}\nfunction kebabCase(subject) {\n  return subject.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n}\n\n// packages/alpinejs/src/utils/once.js\nfunction once(callback, fallback = () => {\n}) {\n  let called = false;\n  return function() {\n    if (!called) {\n      called = true;\n      callback.apply(this, arguments);\n    } else {\n      fallback.apply(this, arguments);\n    }\n  };\n}\n\n// packages/alpinejs/src/directives/x-transition.js\ndirective(\"transition\", (el, { value, modifiers, expression }, { evaluate: evaluate2 }) => {\n  if (typeof expression === \"function\")\n    expression = evaluate2(expression);\n  if (expression === false)\n    return;\n  if (!expression || typeof expression === \"boolean\") {\n    registerTransitionsFromHelper(el, modifiers, value);\n  } else {\n    registerTransitionsFromClassString(el, expression, value);\n  }\n});\nfunction registerTransitionsFromClassString(el, classString, stage) {\n  registerTransitionObject(el, setClasses, \"\");\n  let directiveStorageMap = {\n    \"enter\": (classes) => {\n      el._x_transition.enter.during = classes;\n    },\n    \"enter-start\": (classes) => {\n      el._x_transition.enter.start = classes;\n    },\n    \"enter-end\": (classes) => {\n      el._x_transition.enter.end = classes;\n    },\n    \"leave\": (classes) => {\n      el._x_transition.leave.during = classes;\n    },\n    \"leave-start\": (classes) => {\n      el._x_transition.leave.start = classes;\n    },\n    \"leave-end\": (classes) => {\n      el._x_transition.leave.end = classes;\n    }\n  };\n  directiveStorageMap[stage](classString);\n}\nfunction registerTransitionsFromHelper(el, modifiers, stage) {\n  registerTransitionObject(el, setStyles);\n  let doesntSpecify = !modifiers.includes(\"in\") && !modifiers.includes(\"out\") && !stage;\n  let transitioningIn = doesntSpecify || modifiers.includes(\"in\") || [\"enter\"].includes(stage);\n  let transitioningOut = doesntSpecify || modifiers.includes(\"out\") || [\"leave\"].includes(stage);\n  if (modifiers.includes(\"in\") && !doesntSpecify) {\n    modifiers = modifiers.filter((i, index) => index < modifiers.indexOf(\"out\"));\n  }\n  if (modifiers.includes(\"out\") && !doesntSpecify) {\n    modifiers = modifiers.filter((i, index) => index > modifiers.indexOf(\"out\"));\n  }\n  let wantsAll = !modifiers.includes(\"opacity\") && !modifiers.includes(\"scale\");\n  let wantsOpacity = wantsAll || modifiers.includes(\"opacity\");\n  let wantsScale = wantsAll || modifiers.includes(\"scale\");\n  let opacityValue = wantsOpacity ? 0 : 1;\n  let scaleValue = wantsScale ? modifierValue(modifiers, \"scale\", 95) / 100 : 1;\n  let delay = modifierValue(modifiers, \"delay\", 0) / 1e3;\n  let origin = modifierValue(modifiers, \"origin\", \"center\");\n  let property = \"opacity, transform\";\n  let durationIn = modifierValue(modifiers, \"duration\", 150) / 1e3;\n  let durationOut = modifierValue(modifiers, \"duration\", 75) / 1e3;\n  let easing = `cubic-bezier(0.4, 0.0, 0.2, 1)`;\n  if (transitioningIn) {\n    el._x_transition.enter.during = {\n      transformOrigin: origin,\n      transitionDelay: `${delay}s`,\n      transitionProperty: property,\n      transitionDuration: `${durationIn}s`,\n      transitionTimingFunction: easing\n    };\n    el._x_transition.enter.start = {\n      opacity: opacityValue,\n      transform: `scale(${scaleValue})`\n    };\n    el._x_transition.enter.end = {\n      opacity: 1,\n      transform: `scale(1)`\n    };\n  }\n  if (transitioningOut) {\n    el._x_transition.leave.during = {\n      transformOrigin: origin,\n      transitionDelay: `${delay}s`,\n      transitionProperty: property,\n      transitionDuration: `${durationOut}s`,\n      transitionTimingFunction: easing\n    };\n    el._x_transition.leave.start = {\n      opacity: 1,\n      transform: `scale(1)`\n    };\n    el._x_transition.leave.end = {\n      opacity: opacityValue,\n      transform: `scale(${scaleValue})`\n    };\n  }\n}\nfunction registerTransitionObject(el, setFunction, defaultValue = {}) {\n  if (!el._x_transition)\n    el._x_transition = {\n      enter: { during: defaultValue, start: defaultValue, end: defaultValue },\n      leave: { during: defaultValue, start: defaultValue, end: defaultValue },\n      in(before = () => {\n      }, after = () => {\n      }) {\n        transition(el, setFunction, {\n          during: this.enter.during,\n          start: this.enter.start,\n          end: this.enter.end\n        }, before, after);\n      },\n      out(before = () => {\n      }, after = () => {\n      }) {\n        transition(el, setFunction, {\n          during: this.leave.during,\n          start: this.leave.start,\n          end: this.leave.end\n        }, before, after);\n      }\n    };\n}\nwindow.Element.prototype._x_toggleAndCascadeWithTransitions = function(el, value, show, hide) {\n  const nextTick2 = document.visibilityState === \"visible\" ? requestAnimationFrame : setTimeout;\n  let clickAwayCompatibleShow = () => nextTick2(show);\n  if (value) {\n    if (el._x_transition && (el._x_transition.enter || el._x_transition.leave)) {\n      el._x_transition.enter && (Object.entries(el._x_transition.enter.during).length || Object.entries(el._x_transition.enter.start).length || Object.entries(el._x_transition.enter.end).length) ? el._x_transition.in(show) : clickAwayCompatibleShow();\n    } else {\n      el._x_transition ? el._x_transition.in(show) : clickAwayCompatibleShow();\n    }\n    return;\n  }\n  el._x_hidePromise = el._x_transition ? new Promise((resolve, reject) => {\n    el._x_transition.out(() => {\n    }, () => resolve(hide));\n    el._x_transitioning && el._x_transitioning.beforeCancel(() => reject({ isFromCancelledTransition: true }));\n  }) : Promise.resolve(hide);\n  queueMicrotask(() => {\n    let closest = closestHide(el);\n    if (closest) {\n      if (!closest._x_hideChildren)\n        closest._x_hideChildren = [];\n      closest._x_hideChildren.push(el);\n    } else {\n      nextTick2(() => {\n        let hideAfterChildren = (el2) => {\n          let carry = Promise.all([\n            el2._x_hidePromise,\n            ...(el2._x_hideChildren || []).map(hideAfterChildren)\n          ]).then(([i]) => i());\n          delete el2._x_hidePromise;\n          delete el2._x_hideChildren;\n          return carry;\n        };\n        hideAfterChildren(el).catch((e) => {\n          if (!e.isFromCancelledTransition)\n            throw e;\n        });\n      });\n    }\n  });\n};\nfunction closestHide(el) {\n  let parent = el.parentNode;\n  if (!parent)\n    return;\n  return parent._x_hidePromise ? parent : closestHide(parent);\n}\nfunction transition(el, setFunction, { during, start: start2, end } = {}, before = () => {\n}, after = () => {\n}) {\n  if (el._x_transitioning)\n    el._x_transitioning.cancel();\n  if (Object.keys(during).length === 0 && Object.keys(start2).length === 0 && Object.keys(end).length === 0) {\n    before();\n    after();\n    return;\n  }\n  let undoStart, undoDuring, undoEnd;\n  performTransition(el, {\n    start() {\n      undoStart = setFunction(el, start2);\n    },\n    during() {\n      undoDuring = setFunction(el, during);\n    },\n    before,\n    end() {\n      undoStart();\n      undoEnd = setFunction(el, end);\n    },\n    after,\n    cleanup() {\n      undoDuring();\n      undoEnd();\n    }\n  });\n}\nfunction performTransition(el, stages) {\n  let interrupted, reachedBefore, reachedEnd;\n  let finish = once(() => {\n    mutateDom(() => {\n      interrupted = true;\n      if (!reachedBefore)\n        stages.before();\n      if (!reachedEnd) {\n        stages.end();\n        releaseNextTicks();\n      }\n      stages.after();\n      if (el.isConnected)\n        stages.cleanup();\n      delete el._x_transitioning;\n    });\n  });\n  el._x_transitioning = {\n    beforeCancels: [],\n    beforeCancel(callback) {\n      this.beforeCancels.push(callback);\n    },\n    cancel: once(function() {\n      while (this.beforeCancels.length) {\n        this.beforeCancels.shift()();\n      }\n      ;\n      finish();\n    }),\n    finish\n  };\n  mutateDom(() => {\n    stages.start();\n    stages.during();\n  });\n  holdNextTicks();\n  requestAnimationFrame(() => {\n    if (interrupted)\n      return;\n    let duration = Number(getComputedStyle(el).transitionDuration.replace(/,.*/, \"\").replace(\"s\", \"\")) * 1e3;\n    let delay = Number(getComputedStyle(el).transitionDelay.replace(/,.*/, \"\").replace(\"s\", \"\")) * 1e3;\n    if (duration === 0)\n      duration = Number(getComputedStyle(el).animationDuration.replace(\"s\", \"\")) * 1e3;\n    mutateDom(() => {\n      stages.before();\n    });\n    reachedBefore = true;\n    requestAnimationFrame(() => {\n      if (interrupted)\n        return;\n      mutateDom(() => {\n        stages.end();\n      });\n      releaseNextTicks();\n      setTimeout(el._x_transitioning.finish, duration + delay);\n      reachedEnd = true;\n    });\n  });\n}\nfunction modifierValue(modifiers, key, fallback) {\n  if (modifiers.indexOf(key) === -1)\n    return fallback;\n  const rawValue = modifiers[modifiers.indexOf(key) + 1];\n  if (!rawValue)\n    return fallback;\n  if (key === \"scale\") {\n    if (isNaN(rawValue))\n      return fallback;\n  }\n  if (key === \"duration\" || key === \"delay\") {\n    let match = rawValue.match(/([0-9]+)ms/);\n    if (match)\n      return match[1];\n  }\n  if (key === \"origin\") {\n    if ([\"top\", \"right\", \"left\", \"center\", \"bottom\"].includes(modifiers[modifiers.indexOf(key) + 2])) {\n      return [rawValue, modifiers[modifiers.indexOf(key) + 2]].join(\" \");\n    }\n  }\n  return rawValue;\n}\n\n// packages/alpinejs/src/clone.js\nvar isCloning = false;\nfunction skipDuringClone(callback, fallback = () => {\n}) {\n  return (...args) => isCloning ? fallback(...args) : callback(...args);\n}\nfunction onlyDuringClone(callback) {\n  return (...args) => isCloning && callback(...args);\n}\nvar interceptors = [];\nfunction interceptClone(callback) {\n  interceptors.push(callback);\n}\nfunction cloneNode(from, to) {\n  interceptors.forEach((i) => i(from, to));\n  isCloning = true;\n  dontRegisterReactiveSideEffects(() => {\n    initTree(to, (el, callback) => {\n      callback(el, () => {\n      });\n    });\n  });\n  isCloning = false;\n}\nvar isCloningLegacy = false;\nfunction clone(oldEl, newEl) {\n  if (!newEl._x_dataStack)\n    newEl._x_dataStack = oldEl._x_dataStack;\n  isCloning = true;\n  isCloningLegacy = true;\n  dontRegisterReactiveSideEffects(() => {\n    cloneTree(newEl);\n  });\n  isCloning = false;\n  isCloningLegacy = false;\n}\nfunction cloneTree(el) {\n  let hasRunThroughFirstEl = false;\n  let shallowWalker = (el2, callback) => {\n    walk(el2, (el3, skip) => {\n      if (hasRunThroughFirstEl && isRoot(el3))\n        return skip();\n      hasRunThroughFirstEl = true;\n      callback(el3, skip);\n    });\n  };\n  initTree(el, shallowWalker);\n}\nfunction dontRegisterReactiveSideEffects(callback) {\n  let cache = effect;\n  overrideEffect((callback2, el) => {\n    let storedEffect = cache(callback2);\n    release(storedEffect);\n    return () => {\n    };\n  });\n  callback();\n  overrideEffect(cache);\n}\n\n// packages/alpinejs/src/utils/bind.js\nfunction bind(el, name, value, modifiers = []) {\n  if (!el._x_bindings)\n    el._x_bindings = reactive({});\n  el._x_bindings[name] = value;\n  name = modifiers.includes(\"camel\") ? camelCase(name) : name;\n  switch (name) {\n    case \"value\":\n      bindInputValue(el, value);\n      break;\n    case \"style\":\n      bindStyles(el, value);\n      break;\n    case \"class\":\n      bindClasses(el, value);\n      break;\n    case \"selected\":\n    case \"checked\":\n      bindAttributeAndProperty(el, name, value);\n      break;\n    default:\n      bindAttribute(el, name, value);\n      break;\n  }\n}\nfunction bindInputValue(el, value) {\n  if (el.type === \"radio\") {\n    if (el.attributes.value === void 0) {\n      el.value = value;\n    }\n    if (window.fromModel) {\n      if (typeof value === \"boolean\") {\n        el.checked = safeParseBoolean(el.value) === value;\n      } else {\n        el.checked = checkedAttrLooseCompare(el.value, value);\n      }\n    }\n  } else if (el.type === \"checkbox\") {\n    if (Number.isInteger(value)) {\n      el.value = value;\n    } else if (!Array.isArray(value) && typeof value !== \"boolean\" && ![null, void 0].includes(value)) {\n      el.value = String(value);\n    } else {\n      if (Array.isArray(value)) {\n        el.checked = value.some((val) => checkedAttrLooseCompare(val, el.value));\n      } else {\n        el.checked = !!value;\n      }\n    }\n  } else if (el.tagName === \"SELECT\") {\n    updateSelect(el, value);\n  } else {\n    if (el.value === value)\n      return;\n    el.value = value === void 0 ? \"\" : value;\n  }\n}\nfunction bindClasses(el, value) {\n  if (el._x_undoAddedClasses)\n    el._x_undoAddedClasses();\n  el._x_undoAddedClasses = setClasses(el, value);\n}\nfunction bindStyles(el, value) {\n  if (el._x_undoAddedStyles)\n    el._x_undoAddedStyles();\n  el._x_undoAddedStyles = setStyles(el, value);\n}\nfunction bindAttributeAndProperty(el, name, value) {\n  bindAttribute(el, name, value);\n  setPropertyIfChanged(el, name, value);\n}\nfunction bindAttribute(el, name, value) {\n  if ([null, void 0, false].includes(value) && attributeShouldntBePreservedIfFalsy(name)) {\n    el.removeAttribute(name);\n  } else {\n    if (isBooleanAttr(name))\n      value = name;\n    setIfChanged(el, name, value);\n  }\n}\nfunction setIfChanged(el, attrName, value) {\n  if (el.getAttribute(attrName) != value) {\n    el.setAttribute(attrName, value);\n  }\n}\nfunction setPropertyIfChanged(el, propName, value) {\n  if (el[propName] !== value) {\n    el[propName] = value;\n  }\n}\nfunction updateSelect(el, value) {\n  const arrayWrappedValue = [].concat(value).map((value2) => {\n    return value2 + \"\";\n  });\n  Array.from(el.options).forEach((option) => {\n    option.selected = arrayWrappedValue.includes(option.value);\n  });\n}\nfunction camelCase(subject) {\n  return subject.toLowerCase().replace(/-(\\w)/g, (match, char) => char.toUpperCase());\n}\nfunction checkedAttrLooseCompare(valueA, valueB) {\n  return valueA == valueB;\n}\nfunction safeParseBoolean(rawValue) {\n  if ([1, \"1\", \"true\", \"on\", \"yes\", true].includes(rawValue)) {\n    return true;\n  }\n  if ([0, \"0\", \"false\", \"off\", \"no\", false].includes(rawValue)) {\n    return false;\n  }\n  return rawValue ? Boolean(rawValue) : null;\n}\nfunction isBooleanAttr(attrName) {\n  const booleanAttributes = [\n    \"disabled\",\n    \"checked\",\n    \"required\",\n    \"readonly\",\n    \"hidden\",\n    \"open\",\n    \"selected\",\n    \"autofocus\",\n    \"itemscope\",\n    \"multiple\",\n    \"novalidate\",\n    \"allowfullscreen\",\n    \"allowpaymentrequest\",\n    \"formnovalidate\",\n    \"autoplay\",\n    \"controls\",\n    \"loop\",\n    \"muted\",\n    \"playsinline\",\n    \"default\",\n    \"ismap\",\n    \"reversed\",\n    \"async\",\n    \"defer\",\n    \"nomodule\"\n  ];\n  return booleanAttributes.includes(attrName);\n}\nfunction attributeShouldntBePreservedIfFalsy(name) {\n  return ![\"aria-pressed\", \"aria-checked\", \"aria-expanded\", \"aria-selected\"].includes(name);\n}\nfunction getBinding(el, name, fallback) {\n  if (el._x_bindings && el._x_bindings[name] !== void 0)\n    return el._x_bindings[name];\n  return getAttributeBinding(el, name, fallback);\n}\nfunction extractProp(el, name, fallback, extract = true) {\n  if (el._x_bindings && el._x_bindings[name] !== void 0)\n    return el._x_bindings[name];\n  if (el._x_inlineBindings && el._x_inlineBindings[name] !== void 0) {\n    let binding = el._x_inlineBindings[name];\n    binding.extract = extract;\n    return dontAutoEvaluateFunctions(() => {\n      return evaluate(el, binding.expression);\n    });\n  }\n  return getAttributeBinding(el, name, fallback);\n}\nfunction getAttributeBinding(el, name, fallback) {\n  let attr = el.getAttribute(name);\n  if (attr === null)\n    return typeof fallback === \"function\" ? fallback() : fallback;\n  if (attr === \"\")\n    return true;\n  if (isBooleanAttr(name)) {\n    return !![name, \"true\"].includes(attr);\n  }\n  return attr;\n}\n\n// packages/alpinejs/src/utils/debounce.js\nfunction debounce(func, wait) {\n  var timeout;\n  return function() {\n    var context = this, args = arguments;\n    var later = function() {\n      timeout = null;\n      func.apply(context, args);\n    };\n    clearTimeout(timeout);\n    timeout = setTimeout(later, wait);\n  };\n}\n\n// packages/alpinejs/src/utils/throttle.js\nfunction throttle(func, limit) {\n  let inThrottle;\n  return function() {\n    let context = this, args = arguments;\n    if (!inThrottle) {\n      func.apply(context, args);\n      inThrottle = true;\n      setTimeout(() => inThrottle = false, limit);\n    }\n  };\n}\n\n// packages/alpinejs/src/entangle.js\nfunction entangle({ get: outerGet, set: outerSet }, { get: innerGet, set: innerSet }) {\n  let firstRun = true;\n  let outerHash;\n  let innerHash;\n  let reference = effect(() => {\n    let outer = outerGet();\n    let inner = innerGet();\n    if (firstRun) {\n      innerSet(cloneIfObject(outer));\n      firstRun = false;\n    } else {\n      let outerHashLatest = JSON.stringify(outer);\n      let innerHashLatest = JSON.stringify(inner);\n      if (outerHashLatest !== outerHash) {\n        innerSet(cloneIfObject(outer));\n      } else if (outerHashLatest !== innerHashLatest) {\n        outerSet(cloneIfObject(inner));\n      } else {\n      }\n    }\n    outerHash = JSON.stringify(outerGet());\n    innerHash = JSON.stringify(innerGet());\n  });\n  return () => {\n    release(reference);\n  };\n}\nfunction cloneIfObject(value) {\n  return typeof value === \"object\" ? JSON.parse(JSON.stringify(value)) : value;\n}\n\n// packages/alpinejs/src/plugin.js\nfunction plugin(callback) {\n  let callbacks = Array.isArray(callback) ? callback : [callback];\n  callbacks.forEach((i) => i(alpine_default));\n}\n\n// packages/alpinejs/src/store.js\nvar stores = {};\nvar isReactive = false;\nfunction store(name, value) {\n  if (!isReactive) {\n    stores = reactive(stores);\n    isReactive = true;\n  }\n  if (value === void 0) {\n    return stores[name];\n  }\n  stores[name] = value;\n  if (typeof value === \"object\" && value !== null && value.hasOwnProperty(\"init\") && typeof value.init === \"function\") {\n    stores[name].init();\n  }\n  initInterceptors2(stores[name]);\n}\nfunction getStores() {\n  return stores;\n}\n\n// packages/alpinejs/src/binds.js\nvar binds = {};\nfunction bind2(name, bindings) {\n  let getBindings = typeof bindings !== \"function\" ? () => bindings : bindings;\n  if (name instanceof Element) {\n    return applyBindingsObject(name, getBindings());\n  } else {\n    binds[name] = getBindings;\n  }\n  return () => {\n  };\n}\nfunction injectBindingProviders(obj) {\n  Object.entries(binds).forEach(([name, callback]) => {\n    Object.defineProperty(obj, name, {\n      get() {\n        return (...args) => {\n          return callback(...args);\n        };\n      }\n    });\n  });\n  return obj;\n}\nfunction applyBindingsObject(el, obj, original) {\n  let cleanupRunners = [];\n  while (cleanupRunners.length)\n    cleanupRunners.pop()();\n  let attributes = Object.entries(obj).map(([name, value]) => ({ name, value }));\n  let staticAttributes = attributesOnly(attributes);\n  attributes = attributes.map((attribute) => {\n    if (staticAttributes.find((attr) => attr.name === attribute.name)) {\n      return {\n        name: `x-bind:${attribute.name}`,\n        value: `\"${attribute.value}\"`\n      };\n    }\n    return attribute;\n  });\n  directives(el, attributes, original).map((handle) => {\n    cleanupRunners.push(handle.runCleanups);\n    handle();\n  });\n  return () => {\n    while (cleanupRunners.length)\n      cleanupRunners.pop()();\n  };\n}\n\n// packages/alpinejs/src/datas.js\nvar datas = {};\nfunction data(name, callback) {\n  datas[name] = callback;\n}\nfunction injectDataProviders(obj, context) {\n  Object.entries(datas).forEach(([name, callback]) => {\n    Object.defineProperty(obj, name, {\n      get() {\n        return (...args) => {\n          return callback.bind(context)(...args);\n        };\n      },\n      enumerable: false\n    });\n  });\n  return obj;\n}\n\n// packages/alpinejs/src/alpine.js\nvar Alpine = {\n  get reactive() {\n    return reactive;\n  },\n  get release() {\n    return release;\n  },\n  get effect() {\n    return effect;\n  },\n  get raw() {\n    return raw;\n  },\n  version: \"3.13.6\",\n  flushAndStopDeferringMutations,\n  dontAutoEvaluateFunctions,\n  disableEffectScheduling,\n  startObservingMutations,\n  stopObservingMutations,\n  setReactivityEngine,\n  onAttributeRemoved,\n  onAttributesAdded,\n  closestDataStack,\n  skipDuringClone,\n  onlyDuringClone,\n  addRootSelector,\n  addInitSelector,\n  interceptClone,\n  addScopeToNode,\n  deferMutations,\n  mapAttributes,\n  evaluateLater,\n  interceptInit,\n  setEvaluator,\n  mergeProxies,\n  extractProp,\n  findClosest,\n  onElRemoved,\n  closestRoot,\n  destroyTree,\n  interceptor,\n  // INTERNAL: not public API and is subject to change without major release.\n  transition,\n  // INTERNAL\n  setStyles,\n  // INTERNAL\n  mutateDom,\n  directive,\n  entangle,\n  throttle,\n  debounce,\n  evaluate,\n  initTree,\n  nextTick,\n  prefixed: prefix,\n  prefix: setPrefix,\n  plugin,\n  magic,\n  store,\n  start,\n  clone,\n  // INTERNAL\n  cloneNode,\n  // INTERNAL\n  bound: getBinding,\n  $data: scope,\n  watch,\n  walk,\n  data,\n  bind: bind2\n};\nvar alpine_default = Alpine;\n\n// node_modules/@vue/shared/dist/shared.esm-bundler.js\nfunction makeMap(str, expectsLowerCase) {\n  const map = /* @__PURE__ */ Object.create(null);\n  const list = str.split(\",\");\n  for (let i = 0; i < list.length; i++) {\n    map[list[i]] = true;\n  }\n  return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];\n}\nvar specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;\nvar isBooleanAttr2 = /* @__PURE__ */ makeMap(specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);\nvar EMPTY_OBJ = true ? Object.freeze({}) : {};\nvar EMPTY_ARR = true ? Object.freeze([]) : [];\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar hasOwn = (val, key) => hasOwnProperty.call(val, key);\nvar isArray = Array.isArray;\nvar isMap = (val) => toTypeString(val) === \"[object Map]\";\nvar isString = (val) => typeof val === \"string\";\nvar isSymbol = (val) => typeof val === \"symbol\";\nvar isObject = (val) => val !== null && typeof val === \"object\";\nvar objectToString = Object.prototype.toString;\nvar toTypeString = (value) => objectToString.call(value);\nvar toRawType = (value) => {\n  return toTypeString(value).slice(8, -1);\n};\nvar isIntegerKey = (key) => isString(key) && key !== \"NaN\" && key[0] !== \"-\" && \"\" + parseInt(key, 10) === key;\nvar cacheStringFunction = (fn) => {\n  const cache = /* @__PURE__ */ Object.create(null);\n  return (str) => {\n    const hit = cache[str];\n    return hit || (cache[str] = fn(str));\n  };\n};\nvar camelizeRE = /-(\\w)/g;\nvar camelize = cacheStringFunction((str) => {\n  return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : \"\");\n});\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, \"-$1\").toLowerCase());\nvar capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));\nvar toHandlerKey = cacheStringFunction((str) => str ? `on${capitalize(str)}` : ``);\nvar hasChanged = (value, oldValue) => value !== oldValue && (value === value || oldValue === oldValue);\n\n// node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js\nvar targetMap = /* @__PURE__ */ new WeakMap();\nvar effectStack = [];\nvar activeEffect;\nvar ITERATE_KEY = Symbol(true ? \"iterate\" : \"\");\nvar MAP_KEY_ITERATE_KEY = Symbol(true ? \"Map key iterate\" : \"\");\nfunction isEffect(fn) {\n  return fn && fn._isEffect === true;\n}\nfunction effect2(fn, options = EMPTY_OBJ) {\n  if (isEffect(fn)) {\n    fn = fn.raw;\n  }\n  const effect3 = createReactiveEffect(fn, options);\n  if (!options.lazy) {\n    effect3();\n  }\n  return effect3;\n}\nfunction stop(effect3) {\n  if (effect3.active) {\n    cleanup(effect3);\n    if (effect3.options.onStop) {\n      effect3.options.onStop();\n    }\n    effect3.active = false;\n  }\n}\nvar uid = 0;\nfunction createReactiveEffect(fn, options) {\n  const effect3 = function reactiveEffect() {\n    if (!effect3.active) {\n      return fn();\n    }\n    if (!effectStack.includes(effect3)) {\n      cleanup(effect3);\n      try {\n        enableTracking();\n        effectStack.push(effect3);\n        activeEffect = effect3;\n        return fn();\n      } finally {\n        effectStack.pop();\n        resetTracking();\n        activeEffect = effectStack[effectStack.length - 1];\n      }\n    }\n  };\n  effect3.id = uid++;\n  effect3.allowRecurse = !!options.allowRecurse;\n  effect3._isEffect = true;\n  effect3.active = true;\n  effect3.raw = fn;\n  effect3.deps = [];\n  effect3.options = options;\n  return effect3;\n}\nfunction cleanup(effect3) {\n  const { deps } = effect3;\n  if (deps.length) {\n    for (let i = 0; i < deps.length; i++) {\n      deps[i].delete(effect3);\n    }\n    deps.length = 0;\n  }\n}\nvar shouldTrack = true;\nvar trackStack = [];\nfunction pauseTracking() {\n  trackStack.push(shouldTrack);\n  shouldTrack = false;\n}\nfunction enableTracking() {\n  trackStack.push(shouldTrack);\n  shouldTrack = true;\n}\nfunction resetTracking() {\n  const last = trackStack.pop();\n  shouldTrack = last === void 0 ? true : last;\n}\nfunction track(target, type, key) {\n  if (!shouldTrack || activeEffect === void 0) {\n    return;\n  }\n  let depsMap = targetMap.get(target);\n  if (!depsMap) {\n    targetMap.set(target, depsMap = /* @__PURE__ */ new Map());\n  }\n  let dep = depsMap.get(key);\n  if (!dep) {\n    depsMap.set(key, dep = /* @__PURE__ */ new Set());\n  }\n  if (!dep.has(activeEffect)) {\n    dep.add(activeEffect);\n    activeEffect.deps.push(dep);\n    if (activeEffect.options.onTrack) {\n      activeEffect.options.onTrack({\n        effect: activeEffect,\n        target,\n        type,\n        key\n      });\n    }\n  }\n}\nfunction trigger(target, type, key, newValue, oldValue, oldTarget) {\n  const depsMap = targetMap.get(target);\n  if (!depsMap) {\n    return;\n  }\n  const effects = /* @__PURE__ */ new Set();\n  const add2 = (effectsToAdd) => {\n    if (effectsToAdd) {\n      effectsToAdd.forEach((effect3) => {\n        if (effect3 !== activeEffect || effect3.allowRecurse) {\n          effects.add(effect3);\n        }\n      });\n    }\n  };\n  if (type === \"clear\") {\n    depsMap.forEach(add2);\n  } else if (key === \"length\" && isArray(target)) {\n    depsMap.forEach((dep, key2) => {\n      if (key2 === \"length\" || key2 >= newValue) {\n        add2(dep);\n      }\n    });\n  } else {\n    if (key !== void 0) {\n      add2(depsMap.get(key));\n    }\n    switch (type) {\n      case \"add\":\n        if (!isArray(target)) {\n          add2(depsMap.get(ITERATE_KEY));\n          if (isMap(target)) {\n            add2(depsMap.get(MAP_KEY_ITERATE_KEY));\n          }\n        } else if (isIntegerKey(key)) {\n          add2(depsMap.get(\"length\"));\n        }\n        break;\n      case \"delete\":\n        if (!isArray(target)) {\n          add2(depsMap.get(ITERATE_KEY));\n          if (isMap(target)) {\n            add2(depsMap.get(MAP_KEY_ITERATE_KEY));\n          }\n        }\n        break;\n      case \"set\":\n        if (isMap(target)) {\n          add2(depsMap.get(ITERATE_KEY));\n        }\n        break;\n    }\n  }\n  const run = (effect3) => {\n    if (effect3.options.onTrigger) {\n      effect3.options.onTrigger({\n        effect: effect3,\n        target,\n        key,\n        type,\n        newValue,\n        oldValue,\n        oldTarget\n      });\n    }\n    if (effect3.options.scheduler) {\n      effect3.options.scheduler(effect3);\n    } else {\n      effect3();\n    }\n  };\n  effects.forEach(run);\n}\nvar isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);\nvar builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol).map((key) => Symbol[key]).filter(isSymbol));\nvar get2 = /* @__PURE__ */ createGetter();\nvar readonlyGet = /* @__PURE__ */ createGetter(true);\nvar arrayInstrumentations = /* @__PURE__ */ createArrayInstrumentations();\nfunction createArrayInstrumentations() {\n  const instrumentations = {};\n  [\"includes\", \"indexOf\", \"lastIndexOf\"].forEach((key) => {\n    instrumentations[key] = function(...args) {\n      const arr = toRaw(this);\n      for (let i = 0, l = this.length; i < l; i++) {\n        track(arr, \"get\", i + \"\");\n      }\n      const res = arr[key](...args);\n      if (res === -1 || res === false) {\n        return arr[key](...args.map(toRaw));\n      } else {\n        return res;\n      }\n    };\n  });\n  [\"push\", \"pop\", \"shift\", \"unshift\", \"splice\"].forEach((key) => {\n    instrumentations[key] = function(...args) {\n      pauseTracking();\n      const res = toRaw(this)[key].apply(this, args);\n      resetTracking();\n      return res;\n    };\n  });\n  return instrumentations;\n}\nfunction createGetter(isReadonly = false, shallow = false) {\n  return function get3(target, key, receiver) {\n    if (key === \"__v_isReactive\") {\n      return !isReadonly;\n    } else if (key === \"__v_isReadonly\") {\n      return isReadonly;\n    } else if (key === \"__v_raw\" && receiver === (isReadonly ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) {\n      return target;\n    }\n    const targetIsArray = isArray(target);\n    if (!isReadonly && targetIsArray && hasOwn(arrayInstrumentations, key)) {\n      return Reflect.get(arrayInstrumentations, key, receiver);\n    }\n    const res = Reflect.get(target, key, receiver);\n    if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {\n      return res;\n    }\n    if (!isReadonly) {\n      track(target, \"get\", key);\n    }\n    if (shallow) {\n      return res;\n    }\n    if (isRef(res)) {\n      const shouldUnwrap = !targetIsArray || !isIntegerKey(key);\n      return shouldUnwrap ? res.value : res;\n    }\n    if (isObject(res)) {\n      return isReadonly ? readonly(res) : reactive2(res);\n    }\n    return res;\n  };\n}\nvar set2 = /* @__PURE__ */ createSetter();\nfunction createSetter(shallow = false) {\n  return function set3(target, key, value, receiver) {\n    let oldValue = target[key];\n    if (!shallow) {\n      value = toRaw(value);\n      oldValue = toRaw(oldValue);\n      if (!isArray(target) && isRef(oldValue) && !isRef(value)) {\n        oldValue.value = value;\n        return true;\n      }\n    }\n    const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);\n    const result = Reflect.set(target, key, value, receiver);\n    if (target === toRaw(receiver)) {\n      if (!hadKey) {\n        trigger(target, \"add\", key, value);\n      } else if (hasChanged(value, oldValue)) {\n        trigger(target, \"set\", key, value, oldValue);\n      }\n    }\n    return result;\n  };\n}\nfunction deleteProperty(target, key) {\n  const hadKey = hasOwn(target, key);\n  const oldValue = target[key];\n  const result = Reflect.deleteProperty(target, key);\n  if (result && hadKey) {\n    trigger(target, \"delete\", key, void 0, oldValue);\n  }\n  return result;\n}\nfunction has(target, key) {\n  const result = Reflect.has(target, key);\n  if (!isSymbol(key) || !builtInSymbols.has(key)) {\n    track(target, \"has\", key);\n  }\n  return result;\n}\nfunction ownKeys(target) {\n  track(target, \"iterate\", isArray(target) ? \"length\" : ITERATE_KEY);\n  return Reflect.ownKeys(target);\n}\nvar mutableHandlers = {\n  get: get2,\n  set: set2,\n  deleteProperty,\n  has,\n  ownKeys\n};\nvar readonlyHandlers = {\n  get: readonlyGet,\n  set(target, key) {\n    if (true) {\n      console.warn(`Set operation on key \"${String(key)}\" failed: target is readonly.`, target);\n    }\n    return true;\n  },\n  deleteProperty(target, key) {\n    if (true) {\n      console.warn(`Delete operation on key \"${String(key)}\" failed: target is readonly.`, target);\n    }\n    return true;\n  }\n};\nvar toReactive = (value) => isObject(value) ? reactive2(value) : value;\nvar toReadonly = (value) => isObject(value) ? readonly(value) : value;\nvar toShallow = (value) => value;\nvar getProto = (v) => Reflect.getPrototypeOf(v);\nfunction get$1(target, key, isReadonly = false, isShallow = false) {\n  target = target[\n    \"__v_raw\"\n    /* RAW */\n  ];\n  const rawTarget = toRaw(target);\n  const rawKey = toRaw(key);\n  if (key !== rawKey) {\n    !isReadonly && track(rawTarget, \"get\", key);\n  }\n  !isReadonly && track(rawTarget, \"get\", rawKey);\n  const { has: has2 } = getProto(rawTarget);\n  const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n  if (has2.call(rawTarget, key)) {\n    return wrap(target.get(key));\n  } else if (has2.call(rawTarget, rawKey)) {\n    return wrap(target.get(rawKey));\n  } else if (target !== rawTarget) {\n    target.get(key);\n  }\n}\nfunction has$1(key, isReadonly = false) {\n  const target = this[\n    \"__v_raw\"\n    /* RAW */\n  ];\n  const rawTarget = toRaw(target);\n  const rawKey = toRaw(key);\n  if (key !== rawKey) {\n    !isReadonly && track(rawTarget, \"has\", key);\n  }\n  !isReadonly && track(rawTarget, \"has\", rawKey);\n  return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);\n}\nfunction size(target, isReadonly = false) {\n  target = target[\n    \"__v_raw\"\n    /* RAW */\n  ];\n  !isReadonly && track(toRaw(target), \"iterate\", ITERATE_KEY);\n  return Reflect.get(target, \"size\", target);\n}\nfunction add(value) {\n  value = toRaw(value);\n  const target = toRaw(this);\n  const proto = getProto(target);\n  const hadKey = proto.has.call(target, value);\n  if (!hadKey) {\n    target.add(value);\n    trigger(target, \"add\", value, value);\n  }\n  return this;\n}\nfunction set$1(key, value) {\n  value = toRaw(value);\n  const target = toRaw(this);\n  const { has: has2, get: get3 } = getProto(target);\n  let hadKey = has2.call(target, key);\n  if (!hadKey) {\n    key = toRaw(key);\n    hadKey = has2.call(target, key);\n  } else if (true) {\n    checkIdentityKeys(target, has2, key);\n  }\n  const oldValue = get3.call(target, key);\n  target.set(key, value);\n  if (!hadKey) {\n    trigger(target, \"add\", key, value);\n  } else if (hasChanged(value, oldValue)) {\n    trigger(target, \"set\", key, value, oldValue);\n  }\n  return this;\n}\nfunction deleteEntry(key) {\n  const target = toRaw(this);\n  const { has: has2, get: get3 } = getProto(target);\n  let hadKey = has2.call(target, key);\n  if (!hadKey) {\n    key = toRaw(key);\n    hadKey = has2.call(target, key);\n  } else if (true) {\n    checkIdentityKeys(target, has2, key);\n  }\n  const oldValue = get3 ? get3.call(target, key) : void 0;\n  const result = target.delete(key);\n  if (hadKey) {\n    trigger(target, \"delete\", key, void 0, oldValue);\n  }\n  return result;\n}\nfunction clear() {\n  const target = toRaw(this);\n  const hadItems = target.size !== 0;\n  const oldTarget = true ? isMap(target) ? new Map(target) : new Set(target) : void 0;\n  const result = target.clear();\n  if (hadItems) {\n    trigger(target, \"clear\", void 0, void 0, oldTarget);\n  }\n  return result;\n}\nfunction createForEach(isReadonly, isShallow) {\n  return function forEach(callback, thisArg) {\n    const observed = this;\n    const target = observed[\n      \"__v_raw\"\n      /* RAW */\n    ];\n    const rawTarget = toRaw(target);\n    const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n    !isReadonly && track(rawTarget, \"iterate\", ITERATE_KEY);\n    return target.forEach((value, key) => {\n      return callback.call(thisArg, wrap(value), wrap(key), observed);\n    });\n  };\n}\nfunction createIterableMethod(method, isReadonly, isShallow) {\n  return function(...args) {\n    const target = this[\n      \"__v_raw\"\n      /* RAW */\n    ];\n    const rawTarget = toRaw(target);\n    const targetIsMap = isMap(rawTarget);\n    const isPair = method === \"entries\" || method === Symbol.iterator && targetIsMap;\n    const isKeyOnly = method === \"keys\" && targetIsMap;\n    const innerIterator = target[method](...args);\n    const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n    !isReadonly && track(rawTarget, \"iterate\", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);\n    return {\n      // iterator protocol\n      next() {\n        const { value, done } = innerIterator.next();\n        return done ? { value, done } : {\n          value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),\n          done\n        };\n      },\n      // iterable protocol\n      [Symbol.iterator]() {\n        return this;\n      }\n    };\n  };\n}\nfunction createReadonlyMethod(type) {\n  return function(...args) {\n    if (true) {\n      const key = args[0] ? `on key \"${args[0]}\" ` : ``;\n      console.warn(`${capitalize(type)} operation ${key}failed: target is readonly.`, toRaw(this));\n    }\n    return type === \"delete\" ? false : this;\n  };\n}\nfunction createInstrumentations() {\n  const mutableInstrumentations2 = {\n    get(key) {\n      return get$1(this, key);\n    },\n    get size() {\n      return size(this);\n    },\n    has: has$1,\n    add,\n    set: set$1,\n    delete: deleteEntry,\n    clear,\n    forEach: createForEach(false, false)\n  };\n  const shallowInstrumentations2 = {\n    get(key) {\n      return get$1(this, key, false, true);\n    },\n    get size() {\n      return size(this);\n    },\n    has: has$1,\n    add,\n    set: set$1,\n    delete: deleteEntry,\n    clear,\n    forEach: createForEach(false, true)\n  };\n  const readonlyInstrumentations2 = {\n    get(key) {\n      return get$1(this, key, true);\n    },\n    get size() {\n      return size(this, true);\n    },\n    has(key) {\n      return has$1.call(this, key, true);\n    },\n    add: createReadonlyMethod(\n      \"add\"\n      /* ADD */\n    ),\n    set: createReadonlyMethod(\n      \"set\"\n      /* SET */\n    ),\n    delete: createReadonlyMethod(\n      \"delete\"\n      /* DELETE */\n    ),\n    clear: createReadonlyMethod(\n      \"clear\"\n      /* CLEAR */\n    ),\n    forEach: createForEach(true, false)\n  };\n  const shallowReadonlyInstrumentations2 = {\n    get(key) {\n      return get$1(this, key, true, true);\n    },\n    get size() {\n      return size(this, true);\n    },\n    has(key) {\n      return has$1.call(this, key, true);\n    },\n    add: createReadonlyMethod(\n      \"add\"\n      /* ADD */\n    ),\n    set: createReadonlyMethod(\n      \"set\"\n      /* SET */\n    ),\n    delete: createReadonlyMethod(\n      \"delete\"\n      /* DELETE */\n    ),\n    clear: createReadonlyMethod(\n      \"clear\"\n      /* CLEAR */\n    ),\n    forEach: createForEach(true, true)\n  };\n  const iteratorMethods = [\"keys\", \"values\", \"entries\", Symbol.iterator];\n  iteratorMethods.forEach((method) => {\n    mutableInstrumentations2[method] = createIterableMethod(method, false, false);\n    readonlyInstrumentations2[method] = createIterableMethod(method, true, false);\n    shallowInstrumentations2[method] = createIterableMethod(method, false, true);\n    shallowReadonlyInstrumentations2[method] = createIterableMethod(method, true, true);\n  });\n  return [\n    mutableInstrumentations2,\n    readonlyInstrumentations2,\n    shallowInstrumentations2,\n    shallowReadonlyInstrumentations2\n  ];\n}\nvar [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* @__PURE__ */ createInstrumentations();\nfunction createInstrumentationGetter(isReadonly, shallow) {\n  const instrumentations = shallow ? isReadonly ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly ? readonlyInstrumentations : mutableInstrumentations;\n  return (target, key, receiver) => {\n    if (key === \"__v_isReactive\") {\n      return !isReadonly;\n    } else if (key === \"__v_isReadonly\") {\n      return isReadonly;\n    } else if (key === \"__v_raw\") {\n      return target;\n    }\n    return Reflect.get(hasOwn(instrumentations, key) && key in target ? instrumentations : target, key, receiver);\n  };\n}\nvar mutableCollectionHandlers = {\n  get: /* @__PURE__ */ createInstrumentationGetter(false, false)\n};\nvar readonlyCollectionHandlers = {\n  get: /* @__PURE__ */ createInstrumentationGetter(true, false)\n};\nfunction checkIdentityKeys(target, has2, key) {\n  const rawKey = toRaw(key);\n  if (rawKey !== key && has2.call(target, rawKey)) {\n    const type = toRawType(target);\n    console.warn(`Reactive ${type} contains both the raw and reactive versions of the same object${type === `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.`);\n  }\n}\nvar reactiveMap = /* @__PURE__ */ new WeakMap();\nvar shallowReactiveMap = /* @__PURE__ */ new WeakMap();\nvar readonlyMap = /* @__PURE__ */ new WeakMap();\nvar shallowReadonlyMap = /* @__PURE__ */ new WeakMap();\nfunction targetTypeMap(rawType) {\n  switch (rawType) {\n    case \"Object\":\n    case \"Array\":\n      return 1;\n    case \"Map\":\n    case \"Set\":\n    case \"WeakMap\":\n    case \"WeakSet\":\n      return 2;\n    default:\n      return 0;\n  }\n}\nfunction getTargetType(value) {\n  return value[\n    \"__v_skip\"\n    /* SKIP */\n  ] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value));\n}\nfunction reactive2(target) {\n  if (target && target[\n    \"__v_isReadonly\"\n    /* IS_READONLY */\n  ]) {\n    return target;\n  }\n  return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);\n}\nfunction readonly(target) {\n  return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);\n}\nfunction createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {\n  if (!isObject(target)) {\n    if (true) {\n      console.warn(`value cannot be made reactive: ${String(target)}`);\n    }\n    return target;\n  }\n  if (target[\n    \"__v_raw\"\n    /* RAW */\n  ] && !(isReadonly && target[\n    \"__v_isReactive\"\n    /* IS_REACTIVE */\n  ])) {\n    return target;\n  }\n  const existingProxy = proxyMap.get(target);\n  if (existingProxy) {\n    return existingProxy;\n  }\n  const targetType = getTargetType(target);\n  if (targetType === 0) {\n    return target;\n  }\n  const proxy = new Proxy(target, targetType === 2 ? collectionHandlers : baseHandlers);\n  proxyMap.set(target, proxy);\n  return proxy;\n}\nfunction toRaw(observed) {\n  return observed && toRaw(observed[\n    \"__v_raw\"\n    /* RAW */\n  ]) || observed;\n}\nfunction isRef(r) {\n  return Boolean(r && r.__v_isRef === true);\n}\n\n// packages/alpinejs/src/magics/$nextTick.js\nmagic(\"nextTick\", () => nextTick);\n\n// packages/alpinejs/src/magics/$dispatch.js\nmagic(\"dispatch\", (el) => dispatch.bind(dispatch, el));\n\n// packages/alpinejs/src/magics/$watch.js\nmagic(\"watch\", (el, { evaluateLater: evaluateLater2, cleanup: cleanup2 }) => (key, callback) => {\n  let evaluate2 = evaluateLater2(key);\n  let getter = () => {\n    let value;\n    evaluate2((i) => value = i);\n    return value;\n  };\n  let unwatch = watch(getter, callback);\n  cleanup2(unwatch);\n});\n\n// packages/alpinejs/src/magics/$store.js\nmagic(\"store\", getStores);\n\n// packages/alpinejs/src/magics/$data.js\nmagic(\"data\", (el) => scope(el));\n\n// packages/alpinejs/src/magics/$root.js\nmagic(\"root\", (el) => closestRoot(el));\n\n// packages/alpinejs/src/magics/$refs.js\nmagic(\"refs\", (el) => {\n  if (el._x_refs_proxy)\n    return el._x_refs_proxy;\n  el._x_refs_proxy = mergeProxies(getArrayOfRefObject(el));\n  return el._x_refs_proxy;\n});\nfunction getArrayOfRefObject(el) {\n  let refObjects = [];\n  findClosest(el, (i) => {\n    if (i._x_refs)\n      refObjects.push(i._x_refs);\n  });\n  return refObjects;\n}\n\n// packages/alpinejs/src/ids.js\nvar globalIdMemo = {};\nfunction findAndIncrementId(name) {\n  if (!globalIdMemo[name])\n    globalIdMemo[name] = 0;\n  return ++globalIdMemo[name];\n}\nfunction closestIdRoot(el, name) {\n  return findClosest(el, (element) => {\n    if (element._x_ids && element._x_ids[name])\n      return true;\n  });\n}\nfunction setIdRoot(el, name) {\n  if (!el._x_ids)\n    el._x_ids = {};\n  if (!el._x_ids[name])\n    el._x_ids[name] = findAndIncrementId(name);\n}\n\n// packages/alpinejs/src/magics/$id.js\nmagic(\"id\", (el, { cleanup: cleanup2 }) => (name, key = null) => {\n  let cacheKey = `${name}${key ? `-${key}` : \"\"}`;\n  return cacheIdByNameOnElement(el, cacheKey, cleanup2, () => {\n    let root = closestIdRoot(el, name);\n    let id = root ? root._x_ids[name] : findAndIncrementId(name);\n    return key ? `${name}-${id}-${key}` : `${name}-${id}`;\n  });\n});\ninterceptClone((from, to) => {\n  if (from._x_id) {\n    to._x_id = from._x_id;\n  }\n});\nfunction cacheIdByNameOnElement(el, cacheKey, cleanup2, callback) {\n  if (!el._x_id)\n    el._x_id = {};\n  if (el._x_id[cacheKey])\n    return el._x_id[cacheKey];\n  let output = callback();\n  el._x_id[cacheKey] = output;\n  cleanup2(() => {\n    delete el._x_id[cacheKey];\n  });\n  return output;\n}\n\n// packages/alpinejs/src/magics/$el.js\nmagic(\"el\", (el) => el);\n\n// packages/alpinejs/src/magics/index.js\nwarnMissingPluginMagic(\"Focus\", \"focus\", \"focus\");\nwarnMissingPluginMagic(\"Persist\", \"persist\", \"persist\");\nfunction warnMissingPluginMagic(name, magicName, slug) {\n  magic(magicName, (el) => warn(`You can't use [$${magicName}] without first installing the \"${name}\" plugin here: https://alpinejs.dev/plugins/${slug}`, el));\n}\n\n// packages/alpinejs/src/directives/x-modelable.js\ndirective(\"modelable\", (el, { expression }, { effect: effect3, evaluateLater: evaluateLater2, cleanup: cleanup2 }) => {\n  let func = evaluateLater2(expression);\n  let innerGet = () => {\n    let result;\n    func((i) => result = i);\n    return result;\n  };\n  let evaluateInnerSet = evaluateLater2(`${expression} = __placeholder`);\n  let innerSet = (val) => evaluateInnerSet(() => {\n  }, { scope: { \"__placeholder\": val } });\n  let initialValue = innerGet();\n  innerSet(initialValue);\n  queueMicrotask(() => {\n    if (!el._x_model)\n      return;\n    el._x_removeModelListeners[\"default\"]();\n    let outerGet = el._x_model.get;\n    let outerSet = el._x_model.set;\n    let releaseEntanglement = entangle(\n      {\n        get() {\n          return outerGet();\n        },\n        set(value) {\n          outerSet(value);\n        }\n      },\n      {\n        get() {\n          return innerGet();\n        },\n        set(value) {\n          innerSet(value);\n        }\n      }\n    );\n    cleanup2(releaseEntanglement);\n  });\n});\n\n// packages/alpinejs/src/directives/x-teleport.js\ndirective(\"teleport\", (el, { modifiers, expression }, { cleanup: cleanup2 }) => {\n  if (el.tagName.toLowerCase() !== \"template\")\n    warn(\"x-teleport can only be used on a <template> tag\", el);\n  let target = getTarget(expression);\n  let clone2 = el.content.cloneNode(true).firstElementChild;\n  el._x_teleport = clone2;\n  clone2._x_teleportBack = el;\n  el.setAttribute(\"data-teleport-template\", true);\n  clone2.setAttribute(\"data-teleport-target\", true);\n  if (el._x_forwardEvents) {\n    el._x_forwardEvents.forEach((eventName) => {\n      clone2.addEventListener(eventName, (e) => {\n        e.stopPropagation();\n        el.dispatchEvent(new e.constructor(e.type, e));\n      });\n    });\n  }\n  addScopeToNode(clone2, {}, el);\n  let placeInDom = (clone3, target2, modifiers2) => {\n    if (modifiers2.includes(\"prepend\")) {\n      target2.parentNode.insertBefore(clone3, target2);\n    } else if (modifiers2.includes(\"append\")) {\n      target2.parentNode.insertBefore(clone3, target2.nextSibling);\n    } else {\n      target2.appendChild(clone3);\n    }\n  };\n  mutateDom(() => {\n    placeInDom(clone2, target, modifiers);\n    initTree(clone2);\n    clone2._x_ignore = true;\n  });\n  el._x_teleportPutBack = () => {\n    let target2 = getTarget(expression);\n    mutateDom(() => {\n      placeInDom(el._x_teleport, target2, modifiers);\n    });\n  };\n  cleanup2(() => clone2.remove());\n});\nvar teleportContainerDuringClone = document.createElement(\"div\");\nfunction getTarget(expression) {\n  let target = skipDuringClone(() => {\n    return document.querySelector(expression);\n  }, () => {\n    return teleportContainerDuringClone;\n  })();\n  if (!target)\n    warn(`Cannot find x-teleport element for selector: \"${expression}\"`);\n  return target;\n}\n\n// packages/alpinejs/src/directives/x-ignore.js\nvar handler = () => {\n};\nhandler.inline = (el, { modifiers }, { cleanup: cleanup2 }) => {\n  modifiers.includes(\"self\") ? el._x_ignoreSelf = true : el._x_ignore = true;\n  cleanup2(() => {\n    modifiers.includes(\"self\") ? delete el._x_ignoreSelf : delete el._x_ignore;\n  });\n};\ndirective(\"ignore\", handler);\n\n// packages/alpinejs/src/directives/x-effect.js\ndirective(\"effect\", skipDuringClone((el, { expression }, { effect: effect3 }) => {\n  effect3(evaluateLater(el, expression));\n}));\n\n// packages/alpinejs/src/utils/on.js\nfunction on(el, event, modifiers, callback) {\n  let listenerTarget = el;\n  let handler4 = (e) => callback(e);\n  let options = {};\n  let wrapHandler = (callback2, wrapper) => (e) => wrapper(callback2, e);\n  if (modifiers.includes(\"dot\"))\n    event = dotSyntax(event);\n  if (modifiers.includes(\"camel\"))\n    event = camelCase2(event);\n  if (modifiers.includes(\"passive\"))\n    options.passive = true;\n  if (modifiers.includes(\"capture\"))\n    options.capture = true;\n  if (modifiers.includes(\"window\"))\n    listenerTarget = window;\n  if (modifiers.includes(\"document\"))\n    listenerTarget = document;\n  if (modifiers.includes(\"debounce\")) {\n    let nextModifier = modifiers[modifiers.indexOf(\"debounce\") + 1] || \"invalid-wait\";\n    let wait = isNumeric(nextModifier.split(\"ms\")[0]) ? Number(nextModifier.split(\"ms\")[0]) : 250;\n    handler4 = debounce(handler4, wait);\n  }\n  if (modifiers.includes(\"throttle\")) {\n    let nextModifier = modifiers[modifiers.indexOf(\"throttle\") + 1] || \"invalid-wait\";\n    let wait = isNumeric(nextModifier.split(\"ms\")[0]) ? Number(nextModifier.split(\"ms\")[0]) : 250;\n    handler4 = throttle(handler4, wait);\n  }\n  if (modifiers.includes(\"prevent\"))\n    handler4 = wrapHandler(handler4, (next, e) => {\n      e.preventDefault();\n      next(e);\n    });\n  if (modifiers.includes(\"stop\"))\n    handler4 = wrapHandler(handler4, (next, e) => {\n      e.stopPropagation();\n      next(e);\n    });\n  if (modifiers.includes(\"self\"))\n    handler4 = wrapHandler(handler4, (next, e) => {\n      e.target === el && next(e);\n    });\n  if (modifiers.includes(\"away\") || modifiers.includes(\"outside\")) {\n    listenerTarget = document;\n    handler4 = wrapHandler(handler4, (next, e) => {\n      if (el.contains(e.target))\n        return;\n      if (e.target.isConnected === false)\n        return;\n      if (el.offsetWidth < 1 && el.offsetHeight < 1)\n        return;\n      if (el._x_isShown === false)\n        return;\n      next(e);\n    });\n  }\n  if (modifiers.includes(\"once\")) {\n    handler4 = wrapHandler(handler4, (next, e) => {\n      next(e);\n      listenerTarget.removeEventListener(event, handler4, options);\n    });\n  }\n  handler4 = wrapHandler(handler4, (next, e) => {\n    if (isKeyEvent(event)) {\n      if (isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers)) {\n        return;\n      }\n    }\n    next(e);\n  });\n  listenerTarget.addEventListener(event, handler4, options);\n  return () => {\n    listenerTarget.removeEventListener(event, handler4, options);\n  };\n}\nfunction dotSyntax(subject) {\n  return subject.replace(/-/g, \".\");\n}\nfunction camelCase2(subject) {\n  return subject.toLowerCase().replace(/-(\\w)/g, (match, char) => char.toUpperCase());\n}\nfunction isNumeric(subject) {\n  return !Array.isArray(subject) && !isNaN(subject);\n}\nfunction kebabCase2(subject) {\n  if ([\" \", \"_\"].includes(\n    subject\n  ))\n    return subject;\n  return subject.replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/[_\\s]/, \"-\").toLowerCase();\n}\nfunction isKeyEvent(event) {\n  return [\"keydown\", \"keyup\"].includes(event);\n}\nfunction isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers) {\n  let keyModifiers = modifiers.filter((i) => {\n    return ![\"window\", \"document\", \"prevent\", \"stop\", \"once\", \"capture\"].includes(i);\n  });\n  if (keyModifiers.includes(\"debounce\")) {\n    let debounceIndex = keyModifiers.indexOf(\"debounce\");\n    keyModifiers.splice(debounceIndex, isNumeric((keyModifiers[debounceIndex + 1] || \"invalid-wait\").split(\"ms\")[0]) ? 2 : 1);\n  }\n  if (keyModifiers.includes(\"throttle\")) {\n    let debounceIndex = keyModifiers.indexOf(\"throttle\");\n    keyModifiers.splice(debounceIndex, isNumeric((keyModifiers[debounceIndex + 1] || \"invalid-wait\").split(\"ms\")[0]) ? 2 : 1);\n  }\n  if (keyModifiers.length === 0)\n    return false;\n  if (keyModifiers.length === 1 && keyToModifiers(e.key).includes(keyModifiers[0]))\n    return false;\n  const systemKeyModifiers = [\"ctrl\", \"shift\", \"alt\", \"meta\", \"cmd\", \"super\"];\n  const selectedSystemKeyModifiers = systemKeyModifiers.filter((modifier) => keyModifiers.includes(modifier));\n  keyModifiers = keyModifiers.filter((i) => !selectedSystemKeyModifiers.includes(i));\n  if (selectedSystemKeyModifiers.length > 0) {\n    const activelyPressedKeyModifiers = selectedSystemKeyModifiers.filter((modifier) => {\n      if (modifier === \"cmd\" || modifier === \"super\")\n        modifier = \"meta\";\n      return e[`${modifier}Key`];\n    });\n    if (activelyPressedKeyModifiers.length === selectedSystemKeyModifiers.length) {\n      if (keyToModifiers(e.key).includes(keyModifiers[0]))\n        return false;\n    }\n  }\n  return true;\n}\nfunction keyToModifiers(key) {\n  if (!key)\n    return [];\n  key = kebabCase2(key);\n  let modifierToKeyMap = {\n    \"ctrl\": \"control\",\n    \"slash\": \"/\",\n    \"space\": \" \",\n    \"spacebar\": \" \",\n    \"cmd\": \"meta\",\n    \"esc\": \"escape\",\n    \"up\": \"arrow-up\",\n    \"down\": \"arrow-down\",\n    \"left\": \"arrow-left\",\n    \"right\": \"arrow-right\",\n    \"period\": \".\",\n    \"equal\": \"=\",\n    \"minus\": \"-\",\n    \"underscore\": \"_\"\n  };\n  modifierToKeyMap[key] = key;\n  return Object.keys(modifierToKeyMap).map((modifier) => {\n    if (modifierToKeyMap[modifier] === key)\n      return modifier;\n  }).filter((modifier) => modifier);\n}\n\n// packages/alpinejs/src/directives/x-model.js\ndirective(\"model\", (el, { modifiers, expression }, { effect: effect3, cleanup: cleanup2 }) => {\n  let scopeTarget = el;\n  if (modifiers.includes(\"parent\")) {\n    scopeTarget = el.parentNode;\n  }\n  let evaluateGet = evaluateLater(scopeTarget, expression);\n  let evaluateSet;\n  if (typeof expression === \"string\") {\n    evaluateSet = evaluateLater(scopeTarget, `${expression} = __placeholder`);\n  } else if (typeof expression === \"function\" && typeof expression() === \"string\") {\n    evaluateSet = evaluateLater(scopeTarget, `${expression()} = __placeholder`);\n  } else {\n    evaluateSet = () => {\n    };\n  }\n  let getValue = () => {\n    let result;\n    evaluateGet((value) => result = value);\n    return isGetterSetter(result) ? result.get() : result;\n  };\n  let setValue = (value) => {\n    let result;\n    evaluateGet((value2) => result = value2);\n    if (isGetterSetter(result)) {\n      result.set(value);\n    } else {\n      evaluateSet(() => {\n      }, {\n        scope: { \"__placeholder\": value }\n      });\n    }\n  };\n  if (typeof expression === \"string\" && el.type === \"radio\") {\n    mutateDom(() => {\n      if (!el.hasAttribute(\"name\"))\n        el.setAttribute(\"name\", expression);\n    });\n  }\n  var event = el.tagName.toLowerCase() === \"select\" || [\"checkbox\", \"radio\"].includes(el.type) || modifiers.includes(\"lazy\") ? \"change\" : \"input\";\n  let removeListener = isCloning ? () => {\n  } : on(el, event, modifiers, (e) => {\n    setValue(getInputValue(el, modifiers, e, getValue()));\n  });\n  if (modifiers.includes(\"fill\")) {\n    if ([void 0, null, \"\"].includes(getValue()) || el.type === \"checkbox\" && Array.isArray(getValue())) {\n      el.dispatchEvent(new Event(event, {}));\n    }\n  }\n  if (!el._x_removeModelListeners)\n    el._x_removeModelListeners = {};\n  el._x_removeModelListeners[\"default\"] = removeListener;\n  cleanup2(() => el._x_removeModelListeners[\"default\"]());\n  if (el.form) {\n    let removeResetListener = on(el.form, \"reset\", [], (e) => {\n      nextTick(() => el._x_model && el._x_model.set(el.value));\n    });\n    cleanup2(() => removeResetListener());\n  }\n  el._x_model = {\n    get() {\n      return getValue();\n    },\n    set(value) {\n      setValue(value);\n    }\n  };\n  el._x_forceModelUpdate = (value) => {\n    if (value === void 0 && typeof expression === \"string\" && expression.match(/\\./))\n      value = \"\";\n    window.fromModel = true;\n    mutateDom(() => bind(el, \"value\", value));\n    delete window.fromModel;\n  };\n  effect3(() => {\n    let value = getValue();\n    if (modifiers.includes(\"unintrusive\") && document.activeElement.isSameNode(el))\n      return;\n    el._x_forceModelUpdate(value);\n  });\n});\nfunction getInputValue(el, modifiers, event, currentValue) {\n  return mutateDom(() => {\n    if (event instanceof CustomEvent && event.detail !== void 0)\n      return event.detail !== null && event.detail !== void 0 ? event.detail : event.target.value;\n    else if (el.type === \"checkbox\") {\n      if (Array.isArray(currentValue)) {\n        let newValue = null;\n        if (modifiers.includes(\"number\")) {\n          newValue = safeParseNumber(event.target.value);\n        } else if (modifiers.includes(\"boolean\")) {\n          newValue = safeParseBoolean(event.target.value);\n        } else {\n          newValue = event.target.value;\n        }\n        return event.target.checked ? currentValue.concat([newValue]) : currentValue.filter((el2) => !checkedAttrLooseCompare2(el2, newValue));\n      } else {\n        return event.target.checked;\n      }\n    } else if (el.tagName.toLowerCase() === \"select\" && el.multiple) {\n      if (modifiers.includes(\"number\")) {\n        return Array.from(event.target.selectedOptions).map((option) => {\n          let rawValue = option.value || option.text;\n          return safeParseNumber(rawValue);\n        });\n      } else if (modifiers.includes(\"boolean\")) {\n        return Array.from(event.target.selectedOptions).map((option) => {\n          let rawValue = option.value || option.text;\n          return safeParseBoolean(rawValue);\n        });\n      }\n      return Array.from(event.target.selectedOptions).map((option) => {\n        return option.value || option.text;\n      });\n    } else {\n      if (modifiers.includes(\"number\")) {\n        return safeParseNumber(event.target.value);\n      } else if (modifiers.includes(\"boolean\")) {\n        return safeParseBoolean(event.target.value);\n      }\n      return modifiers.includes(\"trim\") ? event.target.value.trim() : event.target.value;\n    }\n  });\n}\nfunction safeParseNumber(rawValue) {\n  let number = rawValue ? parseFloat(rawValue) : null;\n  return isNumeric2(number) ? number : rawValue;\n}\nfunction checkedAttrLooseCompare2(valueA, valueB) {\n  return valueA == valueB;\n}\nfunction isNumeric2(subject) {\n  return !Array.isArray(subject) && !isNaN(subject);\n}\nfunction isGetterSetter(value) {\n  return value !== null && typeof value === \"object\" && typeof value.get === \"function\" && typeof value.set === \"function\";\n}\n\n// packages/alpinejs/src/directives/x-cloak.js\ndirective(\"cloak\", (el) => queueMicrotask(() => mutateDom(() => el.removeAttribute(prefix(\"cloak\")))));\n\n// packages/alpinejs/src/directives/x-init.js\naddInitSelector(() => `[${prefix(\"init\")}]`);\ndirective(\"init\", skipDuringClone((el, { expression }, { evaluate: evaluate2 }) => {\n  if (typeof expression === \"string\") {\n    return !!expression.trim() && evaluate2(expression, {}, false);\n  }\n  return evaluate2(expression, {}, false);\n}));\n\n// packages/alpinejs/src/directives/x-text.js\ndirective(\"text\", (el, { expression }, { effect: effect3, evaluateLater: evaluateLater2 }) => {\n  let evaluate2 = evaluateLater2(expression);\n  effect3(() => {\n    evaluate2((value) => {\n      mutateDom(() => {\n        el.textContent = value;\n      });\n    });\n  });\n});\n\n// packages/alpinejs/src/directives/x-html.js\ndirective(\"html\", (el, { expression }, { effect: effect3, evaluateLater: evaluateLater2 }) => {\n  let evaluate2 = evaluateLater2(expression);\n  effect3(() => {\n    evaluate2((value) => {\n      mutateDom(() => {\n        el.innerHTML = value;\n        el._x_ignoreSelf = true;\n        initTree(el);\n        delete el._x_ignoreSelf;\n      });\n    });\n  });\n});\n\n// packages/alpinejs/src/directives/x-bind.js\nmapAttributes(startingWith(\":\", into(prefix(\"bind:\"))));\nvar handler2 = (el, { value, modifiers, expression, original }, { effect: effect3 }) => {\n  if (!value) {\n    let bindingProviders = {};\n    injectBindingProviders(bindingProviders);\n    let getBindings = evaluateLater(el, expression);\n    getBindings((bindings) => {\n      applyBindingsObject(el, bindings, original);\n    }, { scope: bindingProviders });\n    return;\n  }\n  if (value === \"key\")\n    return storeKeyForXFor(el, expression);\n  if (el._x_inlineBindings && el._x_inlineBindings[value] && el._x_inlineBindings[value].extract) {\n    return;\n  }\n  let evaluate2 = evaluateLater(el, expression);\n  effect3(() => evaluate2((result) => {\n    if (result === void 0 && typeof expression === \"string\" && expression.match(/\\./)) {\n      result = \"\";\n    }\n    mutateDom(() => bind(el, value, result, modifiers));\n  }));\n};\nhandler2.inline = (el, { value, modifiers, expression }) => {\n  if (!value)\n    return;\n  if (!el._x_inlineBindings)\n    el._x_inlineBindings = {};\n  el._x_inlineBindings[value] = { expression, extract: false };\n};\ndirective(\"bind\", handler2);\nfunction storeKeyForXFor(el, expression) {\n  el._x_keyExpression = expression;\n}\n\n// packages/alpinejs/src/directives/x-data.js\naddRootSelector(() => `[${prefix(\"data\")}]`);\ndirective(\"data\", (el, { expression }, { cleanup: cleanup2 }) => {\n  if (shouldSkipRegisteringDataDuringClone(el))\n    return;\n  expression = expression === \"\" ? \"{}\" : expression;\n  let magicContext = {};\n  injectMagics(magicContext, el);\n  let dataProviderContext = {};\n  injectDataProviders(dataProviderContext, magicContext);\n  let data2 = evaluate(el, expression, { scope: dataProviderContext });\n  if (data2 === void 0 || data2 === true)\n    data2 = {};\n  injectMagics(data2, el);\n  let reactiveData = reactive(data2);\n  initInterceptors2(reactiveData);\n  let undo = addScopeToNode(el, reactiveData);\n  reactiveData[\"init\"] && evaluate(el, reactiveData[\"init\"]);\n  cleanup2(() => {\n    reactiveData[\"destroy\"] && evaluate(el, reactiveData[\"destroy\"]);\n    undo();\n  });\n});\ninterceptClone((from, to) => {\n  if (from._x_dataStack) {\n    to._x_dataStack = from._x_dataStack;\n    to.setAttribute(\"data-has-alpine-state\", true);\n  }\n});\nfunction shouldSkipRegisteringDataDuringClone(el) {\n  if (!isCloning)\n    return false;\n  if (isCloningLegacy)\n    return true;\n  return el.hasAttribute(\"data-has-alpine-state\");\n}\n\n// packages/alpinejs/src/directives/x-show.js\ndirective(\"show\", (el, { modifiers, expression }, { effect: effect3 }) => {\n  let evaluate2 = evaluateLater(el, expression);\n  if (!el._x_doHide)\n    el._x_doHide = () => {\n      mutateDom(() => {\n        el.style.setProperty(\"display\", \"none\", modifiers.includes(\"important\") ? \"important\" : void 0);\n      });\n    };\n  if (!el._x_doShow)\n    el._x_doShow = () => {\n      mutateDom(() => {\n        if (el.style.length === 1 && el.style.display === \"none\") {\n          el.removeAttribute(\"style\");\n        } else {\n          el.style.removeProperty(\"display\");\n        }\n      });\n    };\n  let hide = () => {\n    el._x_doHide();\n    el._x_isShown = false;\n  };\n  let show = () => {\n    el._x_doShow();\n    el._x_isShown = true;\n  };\n  let clickAwayCompatibleShow = () => setTimeout(show);\n  let toggle = once(\n    (value) => value ? show() : hide(),\n    (value) => {\n      if (typeof el._x_toggleAndCascadeWithTransitions === \"function\") {\n        el._x_toggleAndCascadeWithTransitions(el, value, show, hide);\n      } else {\n        value ? clickAwayCompatibleShow() : hide();\n      }\n    }\n  );\n  let oldValue;\n  let firstTime = true;\n  effect3(() => evaluate2((value) => {\n    if (!firstTime && value === oldValue)\n      return;\n    if (modifiers.includes(\"immediate\"))\n      value ? clickAwayCompatibleShow() : hide();\n    toggle(value);\n    oldValue = value;\n    firstTime = false;\n  }));\n});\n\n// packages/alpinejs/src/directives/x-for.js\ndirective(\"for\", (el, { expression }, { effect: effect3, cleanup: cleanup2 }) => {\n  let iteratorNames = parseForExpression(expression);\n  let evaluateItems = evaluateLater(el, iteratorNames.items);\n  let evaluateKey = evaluateLater(\n    el,\n    // the x-bind:key expression is stored for our use instead of evaluated.\n    el._x_keyExpression || \"index\"\n  );\n  el._x_prevKeys = [];\n  el._x_lookup = {};\n  effect3(() => loop(el, iteratorNames, evaluateItems, evaluateKey));\n  cleanup2(() => {\n    Object.values(el._x_lookup).forEach((el2) => el2.remove());\n    delete el._x_prevKeys;\n    delete el._x_lookup;\n  });\n});\nfunction loop(el, iteratorNames, evaluateItems, evaluateKey) {\n  let isObject2 = (i) => typeof i === \"object\" && !Array.isArray(i);\n  let templateEl = el;\n  evaluateItems((items) => {\n    if (isNumeric3(items) && items >= 0) {\n      items = Array.from(Array(items).keys(), (i) => i + 1);\n    }\n    if (items === void 0)\n      items = [];\n    let lookup = el._x_lookup;\n    let prevKeys = el._x_prevKeys;\n    let scopes = [];\n    let keys = [];\n    if (isObject2(items)) {\n      items = Object.entries(items).map(([key, value]) => {\n        let scope2 = getIterationScopeVariables(iteratorNames, value, key, items);\n        evaluateKey((value2) => {\n          if (keys.includes(value2))\n            warn(\"Duplicate key on x-for\", el);\n          keys.push(value2);\n        }, { scope: { index: key, ...scope2 } });\n        scopes.push(scope2);\n      });\n    } else {\n      for (let i = 0; i < items.length; i++) {\n        let scope2 = getIterationScopeVariables(iteratorNames, items[i], i, items);\n        evaluateKey((value) => {\n          if (keys.includes(value))\n            warn(\"Duplicate key on x-for\", el);\n          keys.push(value);\n        }, { scope: { index: i, ...scope2 } });\n        scopes.push(scope2);\n      }\n    }\n    let adds = [];\n    let moves = [];\n    let removes = [];\n    let sames = [];\n    for (let i = 0; i < prevKeys.length; i++) {\n      let key = prevKeys[i];\n      if (keys.indexOf(key) === -1)\n        removes.push(key);\n    }\n    prevKeys = prevKeys.filter((key) => !removes.includes(key));\n    let lastKey = \"template\";\n    for (let i = 0; i < keys.length; i++) {\n      let key = keys[i];\n      let prevIndex = prevKeys.indexOf(key);\n      if (prevIndex === -1) {\n        prevKeys.splice(i, 0, key);\n        adds.push([lastKey, i]);\n      } else if (prevIndex !== i) {\n        let keyInSpot = prevKeys.splice(i, 1)[0];\n        let keyForSpot = prevKeys.splice(prevIndex - 1, 1)[0];\n        prevKeys.splice(i, 0, keyForSpot);\n        prevKeys.splice(prevIndex, 0, keyInSpot);\n        moves.push([keyInSpot, keyForSpot]);\n      } else {\n        sames.push(key);\n      }\n      lastKey = key;\n    }\n    for (let i = 0; i < removes.length; i++) {\n      let key = removes[i];\n      if (!!lookup[key]._x_effects) {\n        lookup[key]._x_effects.forEach(dequeueJob);\n      }\n      lookup[key].remove();\n      lookup[key] = null;\n      delete lookup[key];\n    }\n    for (let i = 0; i < moves.length; i++) {\n      let [keyInSpot, keyForSpot] = moves[i];\n      let elInSpot = lookup[keyInSpot];\n      let elForSpot = lookup[keyForSpot];\n      let marker = document.createElement(\"div\");\n      mutateDom(() => {\n        if (!elForSpot)\n          warn(`x-for \":key\" is undefined or invalid`, templateEl, keyForSpot, lookup);\n        elForSpot.after(marker);\n        elInSpot.after(elForSpot);\n        elForSpot._x_currentIfEl && elForSpot.after(elForSpot._x_currentIfEl);\n        marker.before(elInSpot);\n        elInSpot._x_currentIfEl && elInSpot.after(elInSpot._x_currentIfEl);\n        marker.remove();\n      });\n      elForSpot._x_refreshXForScope(scopes[keys.indexOf(keyForSpot)]);\n    }\n    for (let i = 0; i < adds.length; i++) {\n      let [lastKey2, index] = adds[i];\n      let lastEl = lastKey2 === \"template\" ? templateEl : lookup[lastKey2];\n      if (lastEl._x_currentIfEl)\n        lastEl = lastEl._x_currentIfEl;\n      let scope2 = scopes[index];\n      let key = keys[index];\n      let clone2 = document.importNode(templateEl.content, true).firstElementChild;\n      let reactiveScope = reactive(scope2);\n      addScopeToNode(clone2, reactiveScope, templateEl);\n      clone2._x_refreshXForScope = (newScope) => {\n        Object.entries(newScope).forEach(([key2, value]) => {\n          reactiveScope[key2] = value;\n        });\n      };\n      mutateDom(() => {\n        lastEl.after(clone2);\n        skipDuringClone(() => initTree(clone2))();\n      });\n      if (typeof key === \"object\") {\n        warn(\"x-for key cannot be an object, it must be a string or an integer\", templateEl);\n      }\n      lookup[key] = clone2;\n    }\n    for (let i = 0; i < sames.length; i++) {\n      lookup[sames[i]]._x_refreshXForScope(scopes[keys.indexOf(sames[i])]);\n    }\n    templateEl._x_prevKeys = keys;\n  });\n}\nfunction parseForExpression(expression) {\n  let forIteratorRE = /,([^,\\}\\]]*)(?:,([^,\\}\\]]*))?$/;\n  let stripParensRE = /^\\s*\\(|\\)\\s*$/g;\n  let forAliasRE = /([\\s\\S]*?)\\s+(?:in|of)\\s+([\\s\\S]*)/;\n  let inMatch = expression.match(forAliasRE);\n  if (!inMatch)\n    return;\n  let res = {};\n  res.items = inMatch[2].trim();\n  let item = inMatch[1].replace(stripParensRE, \"\").trim();\n  let iteratorMatch = item.match(forIteratorRE);\n  if (iteratorMatch) {\n    res.item = item.replace(forIteratorRE, \"\").trim();\n    res.index = iteratorMatch[1].trim();\n    if (iteratorMatch[2]) {\n      res.collection = iteratorMatch[2].trim();\n    }\n  } else {\n    res.item = item;\n  }\n  return res;\n}\nfunction getIterationScopeVariables(iteratorNames, item, index, items) {\n  let scopeVariables = {};\n  if (/^\\[.*\\]$/.test(iteratorNames.item) && Array.isArray(item)) {\n    let names = iteratorNames.item.replace(\"[\", \"\").replace(\"]\", \"\").split(\",\").map((i) => i.trim());\n    names.forEach((name, i) => {\n      scopeVariables[name] = item[i];\n    });\n  } else if (/^\\{.*\\}$/.test(iteratorNames.item) && !Array.isArray(item) && typeof item === \"object\") {\n    let names = iteratorNames.item.replace(\"{\", \"\").replace(\"}\", \"\").split(\",\").map((i) => i.trim());\n    names.forEach((name) => {\n      scopeVariables[name] = item[name];\n    });\n  } else {\n    scopeVariables[iteratorNames.item] = item;\n  }\n  if (iteratorNames.index)\n    scopeVariables[iteratorNames.index] = index;\n  if (iteratorNames.collection)\n    scopeVariables[iteratorNames.collection] = items;\n  return scopeVariables;\n}\nfunction isNumeric3(subject) {\n  return !Array.isArray(subject) && !isNaN(subject);\n}\n\n// packages/alpinejs/src/directives/x-ref.js\nfunction handler3() {\n}\nhandler3.inline = (el, { expression }, { cleanup: cleanup2 }) => {\n  let root = closestRoot(el);\n  if (!root._x_refs)\n    root._x_refs = {};\n  root._x_refs[expression] = el;\n  cleanup2(() => delete root._x_refs[expression]);\n};\ndirective(\"ref\", handler3);\n\n// packages/alpinejs/src/directives/x-if.js\ndirective(\"if\", (el, { expression }, { effect: effect3, cleanup: cleanup2 }) => {\n  if (el.tagName.toLowerCase() !== \"template\")\n    warn(\"x-if can only be used on a <template> tag\", el);\n  let evaluate2 = evaluateLater(el, expression);\n  let show = () => {\n    if (el._x_currentIfEl)\n      return el._x_currentIfEl;\n    let clone2 = el.content.cloneNode(true).firstElementChild;\n    addScopeToNode(clone2, {}, el);\n    mutateDom(() => {\n      el.after(clone2);\n      skipDuringClone(() => initTree(clone2))();\n    });\n    el._x_currentIfEl = clone2;\n    el._x_undoIf = () => {\n      walk(clone2, (node) => {\n        if (!!node._x_effects) {\n          node._x_effects.forEach(dequeueJob);\n        }\n      });\n      clone2.remove();\n      delete el._x_currentIfEl;\n    };\n    return clone2;\n  };\n  let hide = () => {\n    if (!el._x_undoIf)\n      return;\n    el._x_undoIf();\n    delete el._x_undoIf;\n  };\n  effect3(() => evaluate2((value) => {\n    value ? show() : hide();\n  }));\n  cleanup2(() => el._x_undoIf && el._x_undoIf());\n});\n\n// packages/alpinejs/src/directives/x-id.js\ndirective(\"id\", (el, { expression }, { evaluate: evaluate2 }) => {\n  let names = evaluate2(expression);\n  names.forEach((name) => setIdRoot(el, name));\n});\ninterceptClone((from, to) => {\n  if (from._x_ids) {\n    to._x_ids = from._x_ids;\n  }\n});\n\n// packages/alpinejs/src/directives/x-on.js\nmapAttributes(startingWith(\"@\", into(prefix(\"on:\"))));\ndirective(\"on\", skipDuringClone((el, { value, modifiers, expression }, { cleanup: cleanup2 }) => {\n  let evaluate2 = expression ? evaluateLater(el, expression) : () => {\n  };\n  if (el.tagName.toLowerCase() === \"template\") {\n    if (!el._x_forwardEvents)\n      el._x_forwardEvents = [];\n    if (!el._x_forwardEvents.includes(value))\n      el._x_forwardEvents.push(value);\n  }\n  let removeListener = on(el, value, modifiers, (e) => {\n    evaluate2(() => {\n    }, { scope: { \"$event\": e }, params: [e] });\n  });\n  cleanup2(() => removeListener());\n}));\n\n// packages/alpinejs/src/directives/index.js\nwarnMissingPluginDirective(\"Collapse\", \"collapse\", \"collapse\");\nwarnMissingPluginDirective(\"Intersect\", \"intersect\", \"intersect\");\nwarnMissingPluginDirective(\"Focus\", \"trap\", \"focus\");\nwarnMissingPluginDirective(\"Mask\", \"mask\", \"mask\");\nfunction warnMissingPluginDirective(name, directiveName, slug) {\n  directive(directiveName, (el) => warn(`You can't use [x-${directiveName}] without first installing the \"${name}\" plugin here: https://alpinejs.dev/plugins/${slug}`, el));\n}\n\n// packages/alpinejs/src/index.js\nalpine_default.setEvaluator(normalEvaluator);\nalpine_default.setReactivityEngine({ reactive: reactive2, effect: effect2, release: stop, raw: toRaw });\nvar src_default = alpine_default;\n\n// packages/alpinejs/builds/module.js\nvar module_default = src_default;\nexport {\n  src_default as Alpine,\n  module_default as default\n};\n", "import Alpine from 'alpinejs'\r\n\r\nexport function generateEntangleFunction(component, cleanup) {\r\n    if (! cleanup) cleanup = () => {}\r\n\r\n    return (name, live = false) => {\r\n        let isLive = live\r\n        let livewireProperty = name\r\n        let livewireComponent = component.$wire\r\n        let livewirePropertyValue = livewireComponent.get(livewireProperty)\r\n\r\n        let interceptor = Alpine.interceptor((initialValue, getter, setter, path, key) => {\r\n            // Check to see if the Livewire property exists and if not log a console error\r\n            // and return so everything else keeps running.\r\n            if (typeof livewirePropertyValue === 'undefined') {\r\n                console.error(`Livewire Entangle Error: Livewire property ['${livewireProperty}'] cannot be found on component: ['${component.name}']`)\r\n                return\r\n            }\r\n\r\n                let release = Alpine.entangle({\r\n                    // Outer scope...\r\n                    get() {\r\n                        return livewireComponent.get(name)\r\n                    },\r\n                    set(value) {\r\n                        livewireComponent.set(name, value, isLive)\r\n                    }\r\n                }, {\r\n                    // Inner scope...\r\n                    get() {\r\n                        return getter()\r\n                    },\r\n                    set(value) {\r\n                        setter(value)\r\n                    }\r\n                })\r\n\r\n                cleanup(() => release())\r\n\r\n            return cloneIfObject(livewireComponent.get(name))\r\n        }, obj => {\r\n            Object.defineProperty(obj, 'live', {\r\n                get() {\r\n                    isLive = true\r\n\r\n                    return obj\r\n                }\r\n            })\r\n        })\r\n\r\n        return interceptor(livewirePropertyValue)\r\n    }\r\n}\r\n\r\nfunction cloneIfObject(value) {\r\n    return typeof value === 'object'\r\n        ? JSON.parse(JSON.stringify(value))\r\n        : value\r\n}\r\n", "import { isFunction } from '@/utils'\r\n\r\n/**\r\n * Our internal event listener bus...\r\n */\r\nlet listeners = []\r\n\r\n/**\r\n * Register a callback to run when an event is triggered...\r\n */\r\nexport function on(name, callback) {\r\n    if (! listeners[name]) listeners[name] = []\r\n\r\n    listeners[name].push(callback)\r\n\r\n    // Return an \"off\" callback to remove the listener...\r\n    return () => {\r\n        listeners[name] = listeners[name].filter(i => i !== callback)\r\n    }\r\n}\r\n\r\n/**\r\n * In addition to triggering an event, this method allows you to\r\n * defer running callbacks returned from listeners and pass a\r\n * value through each one so they can act like middleware.\r\n *\r\n * An example of using this combination to the fullest:\r\n *\r\n * // First let's look at the triggering phase:\r\n * let finish = trigger([event name], ...[event params])\r\n *\r\n * return finish([pass-through value])\r\n *\r\n * // Now, let's look at the \"listening\" phase:\r\n * on([event name], (...[event params]) => {\r\n *     // The contents of this callback will be run immediately on trigger.\r\n *\r\n *     return ([pass-through value]) => {\r\n *         // This callback will be run when \"finish()\" is called.\r\n *\r\n *         // The [pass-through value] can be mutated and must\r\n *         // be returned for the next callback to process.\r\n *         return [pass-through value]\r\n *     }\r\n * })\r\n */\r\nexport function trigger(name, ...params) {\r\n    let callbacks = listeners[name] || []\r\n\r\n    let finishers = []\r\n\r\n    for (let i = 0; i < callbacks.length; i++) {\r\n        let finisher = callbacks[i](...params)\r\n\r\n        if (isFunction(finisher)) finishers.push(finisher)\r\n    }\r\n\r\n    return (result) => {\r\n       return runFinishers(finishers, result)\r\n    }\r\n}\r\n\r\nexport async function triggerAsync(name, ...params) {\r\n    let callbacks = listeners[name] || []\r\n\r\n    let finishers = []\r\n\r\n    for (let i = 0; i < callbacks.length; i++) {\r\n        let finisher = await callbacks[i](...params)\r\n\r\n        if (isFunction(finisher)) finishers.push(finisher)\r\n    }\r\n\r\n    return (result) => {\r\n       return runFinishers(finishers, result)\r\n    }\r\n}\r\n\r\nexport function runFinishers(finishers, result)\r\n{\r\n    let latest = result\r\n\r\n    for (let i = 0; i < finishers.length; i++) {\r\n        let iResult = finishers[i](latest)\r\n\r\n        if (iResult !== undefined) {\r\n            latest = iResult\r\n        }\r\n    }\r\n\r\n    return latest\r\n}\r\n", "\r\n// This code and concept is all Jonathan Reinink - thanks main!\r\nexport function showHtmlModal(html) {\r\n    let page = document.createElement('html')\r\n    page.innerHTML = html\r\n    page.querySelectorAll('a').forEach(a =>\r\n        a.setAttribute('target', '_top')\r\n    )\r\n\r\n    let modal = document.getElementById('livewire-error')\r\n\r\n    if (typeof modal != 'undefined' && modal != null) {\r\n        // Modal already exists.\r\n        modal.innerHTML = ''\r\n    } else {\r\n        modal = document.createElement('div')\r\n        modal.id = 'livewire-error'\r\n        modal.style.position = 'fixed'\r\n        modal.style.width = '100vw'\r\n        modal.style.height = '100vh'\r\n        modal.style.padding = '50px'\r\n        modal.style.backgroundColor = 'rgba(0, 0, 0, .6)'\r\n        modal.style.zIndex = 200000\r\n    }\r\n\r\n    let iframe = document.createElement('iframe')\r\n    iframe.style.backgroundColor = '#17161A'\r\n    iframe.style.borderRadius = '5px'\r\n    iframe.style.width = '100%'\r\n    iframe.style.height = '100%'\r\n    modal.appendChild(iframe)\r\n\r\n    document.body.prepend(modal)\r\n    document.body.style.overflow = 'hidden'\r\n    iframe.contentWindow.document.open()\r\n    iframe.contentWindow.document.write(page.outerHTML)\r\n    iframe.contentWindow.document.close()\r\n\r\n    // Close on click.\r\n    modal.addEventListener('click', () => hideHtmlModal(modal))\r\n\r\n    // Close on escape key press.\r\n    modal.setAttribute('tabindex', 0)\r\n    modal.addEventListener('keydown', e => {\r\n        if (e.key === 'Escape') hideHtmlModal(modal)\r\n    })\r\n    modal.focus()\r\n}\r\n\r\nexport function hideHtmlModal(modal) {\r\n    modal.outerHTML = ''\r\n    document.body.style.overflow = 'visible'\r\n}\r\n", "import { sendRequest } from \"@/request\"\r\n\r\n/**\r\n * The RequestPool contains a list of commits to be sent to the server...\r\n */\r\nexport class RequestPool {\r\n    constructor() {\r\n        this.commits = new Set\r\n    }\r\n\r\n    add(commit) {\r\n        this.commits.add(commit)\r\n    }\r\n\r\n    delete(commit) {\r\n        this.commits.delete(commit)\r\n    }\r\n\r\n    hasCommitFor(component) {\r\n        return !! this.findCommitByComponent(component)\r\n    }\r\n\r\n    findCommitByComponent(component) {\r\n        // Determine if this pool already has a commit for this component...\r\n        for (let [idx, commit] of this.commits.entries()) {\r\n            if (commit.component === component) return commit\r\n        }\r\n    }\r\n\r\n    // Determine if a commit should be added to this pool or isolated into its own...\r\n    shouldHoldCommit(commit) {\r\n        return ! commit.isolate\r\n    }\r\n\r\n    empty() {\r\n        return this.commits.size === 0\r\n    }\r\n\r\n    async send() {\r\n        this.prepare()\r\n\r\n        // Send this pool of commits to the server and let the commits\r\n        // Manage their own response actions...\r\n        await sendRequest(this)\r\n    }\r\n\r\n    prepare() {\r\n        // Give each commit a chance to do any last-minute prep\r\n        // before being sent to the server.\r\n        this.commits.forEach(i => i.prepare())\r\n    }\r\n\r\n    payload() {\r\n        // Extract a request payload from each of the commits in this pool...\r\n        let commitPayloads = []\r\n\r\n        // Collect success and failure callbacks to be used inside aggregated callbacks...\r\n        let successReceivers = []\r\n        let failureReceivers = []\r\n\r\n        this.commits.forEach(commit => {\r\n            let [payload, succeed, fail] = commit.toRequestPayload()\r\n\r\n            commitPayloads.push(payload)\r\n            successReceivers.push(succeed)\r\n            failureReceivers.push(fail)\r\n        })\r\n\r\n        // Aggregate the success and failure callbacks for individual commits\r\n        // into something that can be called singularly...\r\n        let succeed = components => successReceivers.forEach(receiver => receiver(components.shift()))\r\n\r\n        let fail = () => failureReceivers.forEach(receiver => receiver())\r\n\r\n        return [ commitPayloads, succeed, fail ]\r\n    }\r\n}\r\n", "import { diff } from '@/utils'\r\nimport { on, trigger } from '@/hooks'\r\n\r\n/**\r\n * A commit represents an individual component updating itself server-side...\r\n */\r\nexport class Commit {\r\n    constructor(component) {\r\n        this.component = component\r\n        this.isolate = false\r\n        this.calls = []\r\n        this.receivers = []\r\n        this.resolvers = []\r\n    }\r\n\r\n    // Add a new resolver to be resolved when a commit is returned from the server...\r\n    addResolver(resolver) {\r\n        this.resolvers.push(resolver)\r\n    }\r\n\r\n    // Add a new action \"call\" to the commit payload...\r\n    addCall(method, params, receiver) {\r\n        this.calls.push({\r\n            path: '', method, params,\r\n            handleReturn(value) {\r\n                receiver(value)\r\n            },\r\n        })\r\n    }\r\n\r\n    prepare() {\r\n        trigger('commit.prepare', { component: this.component })\r\n    }\r\n\r\n    // Generate a JSON-friendly server-request payload...\r\n    toRequestPayload() {\r\n        // Generate a \"diff\" of the current last known server-side state, and\r\n        // the new front-end state so that we can update the server atomically...\r\n        let propertiesDiff = diff(this.component.canonical, this.component.ephemeral)\r\n\r\n        let updates = this.component.mergeQueuedUpdates(propertiesDiff)\r\n\r\n        let payload = {\r\n            snapshot: this.component.snapshotEncoded,\r\n            updates: updates,\r\n            calls: this.calls.map(i => ({\r\n                path: i.path,\r\n                method: i.method,\r\n                params: i.params,\r\n            }))\r\n        }\r\n\r\n        // Store success and failure hooks from commit listeners\r\n        // so they can be aggregated into a singular callback later...\r\n        let succeedCallbacks = []\r\n        let failCallbacks = []\r\n        let respondCallbacks = []\r\n\r\n        let succeed = (fwd) => succeedCallbacks.forEach(i => i(fwd))\r\n        let fail = () => failCallbacks.forEach(i => i())\r\n        let respond = () => respondCallbacks.forEach(i => i())\r\n\r\n        // Allow other areas of the codebase to hook into the lifecycle\r\n        // of an individual commit...\r\n        let finishTarget = trigger('commit', {\r\n            component: this.component,\r\n            commit: payload,\r\n            succeed: (callback) => {\r\n                succeedCallbacks.push(callback)\r\n            },\r\n            fail: (callback) => {\r\n                failCallbacks.push(callback)\r\n            },\r\n            respond: (callback) => {\r\n                respondCallbacks.push(callback)\r\n            },\r\n        })\r\n\r\n        // Handle the response payload for a commit...\r\n        let handleResponse = (response) => {\r\n            let { snapshot, effects } = response\r\n\r\n            respond()\r\n\r\n            // Take the new snapshot and merge it into the existing one...\r\n            this.component.mergeNewSnapshot(snapshot, effects, updates)\r\n\r\n            // Trigger any side effects from the payload like \"morph\" and \"dispatch event\"...\r\n            this.component.processEffects(this.component.effects)\r\n\r\n            if (effects['returns']) {\r\n                let returns = effects['returns']\r\n\r\n                // Here we'll match up returned values with their method call handlers. We need to build up\r\n                // two \"stacks\" of the same length and walk through them together to handle them properly...\r\n                let returnHandlerStack = this.calls.map(({ handleReturn }) => (handleReturn))\r\n\r\n                returnHandlerStack.forEach((handleReturn, index) => {\r\n                    handleReturn(returns[index])\r\n                })\r\n            }\r\n\r\n            let parsedSnapshot = JSON.parse(snapshot)\r\n\r\n            finishTarget({ snapshot: parsedSnapshot, effects })\r\n\r\n            this.resolvers.forEach(i => i())\r\n\r\n            succeed(response)\r\n        }\r\n\r\n        let handleFailure = () => {\r\n            respond()\r\n\r\n            fail()\r\n        }\r\n\r\n        return [payload, handleResponse, handleFailure]\r\n    }\r\n}\r\n", "import { trigger } from '@/hooks'\r\nimport { RequestPool } from './pool'\r\nimport { Commit } from './commit'\r\n\r\n/**\r\n * This bus manages the pooling of multiple commits and sending\r\n * those pools of commits to the server...\r\n */\r\nexport class CommitBus {\r\n    constructor() {\r\n        // A list of loose, un-pooled, commits ready to be pooled and sent to the server...\r\n        this.commits = new Set\r\n\r\n        // A list of commit pools currently out to the server...\r\n        this.pools = new Set\r\n    }\r\n\r\n    add(component) {\r\n        // If this component already has a commit, leave it, otherwise,\r\n        // create a new commit and add it to the list...\r\n        let commit = this.findCommitOr(component, () => {\r\n            let newCommit = new Commit(component)\r\n\r\n            this.commits.add(newCommit)\r\n\r\n            return newCommit\r\n        })\r\n\r\n        // Buffer the sending of a pool for 5ms to account for UI interactions\r\n        // that will trigger multiple events within a few milliseconds of each other.\r\n        // For example, clicking on a button that both unfocuses a field and registers a mousedown...\r\n        bufferPoolingForFiveMs(commit, () => {\r\n            // If this commit is already in a pool, leave it be...\r\n            let pool = this.findPoolWithComponent(commit.component)\r\n\r\n            if (! pool) {\r\n                // If it's not, create a new pool or add it to an existing one and trigger a network request...\r\n                this.createAndSendNewPool()\r\n            }\r\n        })\r\n\r\n        return commit\r\n    }\r\n\r\n    findCommitOr(component, callback) {\r\n        for (let [idx, commit] of this.commits.entries()) {\r\n            if (commit.component === component) {\r\n                return commit\r\n            }\r\n        }\r\n\r\n        return callback()\r\n    }\r\n\r\n    findPoolWithComponent(component) {\r\n        for (let [idx, pool] of this.pools.entries()) {\r\n            if (pool.hasCommitFor(component)) return pool\r\n        }\r\n    }\r\n\r\n    createAndSendNewPool() {\r\n        // Allow features like \"reactive properties\" to initiate associated\r\n        // commits before those commits are pooled for a network request...\r\n        trigger('commit.pooling', { commits: this.commits })\r\n\r\n        // Split commits up across one or multiple pools to be sent as seperate network requests...\r\n        let pools = this.corraleCommitsIntoPools()\r\n\r\n        // Clear all commits in the queue now that they're in pools...\r\n        this.commits.clear()\r\n\r\n        trigger('commit.pooled', { pools })\r\n\r\n        // Go through each pool and...\r\n        pools.forEach(pool => {\r\n            // Ignore empty pools (if other parts of the system have moved commits around different pools)...\r\n            if (pool.empty()) return\r\n\r\n            // Add it to the list of pending pools...\r\n            this.pools.add(pool)\r\n\r\n            // Send it's payload along to the server...\r\n            pool.send().then(() => {\r\n                // When it comes back, remove it from the list...\r\n                this.pools.delete(pool)\r\n\r\n                // Trigger another pooling phase in case commits have\r\n                // been added while the current request was out...\r\n                this.sendAnyQueuedCommits()\r\n            })\r\n        })\r\n    }\r\n\r\n    corraleCommitsIntoPools() {\r\n        let pools = new Set\r\n\r\n        // Go through each commit and assess wether it should be bundled\r\n        // with other commits or sperated into it's own pool (network request)...\r\n        for (let [idx, commit] of this.commits.entries()) {\r\n            let hasFoundPool = false\r\n\r\n            // If an existing pool wants to claim a commit, let it...\r\n            pools.forEach(pool => {\r\n                if (pool.shouldHoldCommit(commit)) {\r\n                    pool.add(commit)\r\n\r\n                    hasFoundPool = true\r\n                }\r\n            })\r\n\r\n            // Otherwise, create a new pool and seed it with this commit...\r\n            if (! hasFoundPool) {\r\n                let newPool = new RequestPool\r\n\r\n                newPool.add(commit)\r\n\r\n                pools.add(newPool)\r\n            }\r\n        }\r\n\r\n        return pools\r\n    }\r\n\r\n    sendAnyQueuedCommits() {\r\n        if (this.commits.size > 0) {\r\n            this.createAndSendNewPool()\r\n        }\r\n    }\r\n}\r\n\r\nlet buffersByCommit = new WeakMap\r\n\r\nfunction bufferPoolingForFiveMs(commit, callback) {\r\n    if (buffersByCommit.has(commit)) return\r\n\r\n    buffersByCommit.set(commit, setTimeout(() => {\r\n        callback()\r\n\r\n        buffersByCommit.delete(commit)\r\n    }, 5))\r\n}\r\n", "import { getCsrfToken, contentIsFromDump, splitDumpFromContent, getUpdateUri } from '@/utils'\r\nimport { trigger, triggerAsync } from '@/hooks'\r\nimport { showHtmlModal } from './modal'\r\nimport { CommitBus } from './bus'\r\n\r\n/**\r\n * This is the bus that manages pooling and sending\r\n * commits to the server as network requests...\r\n */\r\nlet commitBus = new CommitBus\r\n\r\n/**\r\n * Create a commit and trigger a network request...\r\n */\r\nexport async function requestCommit(component) {\r\n    let commit = commitBus.add(component)\r\n\r\n    let promise = new Promise((resolve) => {\r\n        commit.addResolver(resolve)\r\n    })\r\n\r\n    promise.commit = commit\r\n\r\n    return promise\r\n}\r\n\r\n/**\r\n * Create a commit with an \"action\" call and trigger a network request...\r\n */\r\nexport async function requestCall(component, method, params) {\r\n    let commit = commitBus.add(component)\r\n\r\n    let promise = new Promise((resolve) => {\r\n        commit.addCall(method, params, value => resolve(value))\r\n    })\r\n\r\n    promise.commit = commit\r\n\r\n    return promise\r\n}\r\n\r\n/**\r\n * Send a pool of commits to the server over HTTP...\r\n */\r\nexport async function sendRequest(pool) {\r\n    let [payload, handleSuccess, handleFailure] = pool.payload()\r\n\r\n    let options = {\r\n        method: 'POST',\r\n        body: JSON.stringify({\r\n            _token: getCsrfToken(),\r\n            components: payload,\r\n        }),\r\n        headers: {\r\n            'Content-type': 'application/json',\r\n            'X-Livewire': '',\r\n        },\r\n    }\r\n\r\n    let succeedCallbacks = []\r\n    let failCallbacks = []\r\n    let respondCallbacks = []\r\n\r\n    let succeed = (fwd) => succeedCallbacks.forEach(i => i(fwd))\r\n    let fail = (fwd) => failCallbacks.forEach(i => i(fwd))\r\n    let respond = (fwd) => respondCallbacks.forEach(i => i(fwd))\r\n\r\n    let finishProfile = trigger('request.profile', options)\r\n\r\n    let updateUri = getUpdateUri()\r\n\r\n    trigger('request', {\r\n        url: updateUri,\r\n        options,\r\n        payload: options.body,\r\n        respond: i => respondCallbacks.push(i),\r\n        succeed: i => succeedCallbacks.push(i),\r\n        fail: i => failCallbacks.push(i),\r\n    })\r\n\r\n    let response\r\n\r\n    try {\r\n        response = await fetch(updateUri, options)\r\n    } catch (e) {\r\n        // If something went wrong with the fetch (particularly\r\n        // this would happen if the connection went offline)\r\n        // fail with a 503 and allow Livewire to clean up\r\n\r\n        finishProfile({ content: '{}', failed: true })\r\n\r\n        handleFailure()\r\n\r\n        fail({\r\n            status: 503,\r\n            content: null,\r\n            preventDefault: () => {},\r\n        })\r\n\r\n        return\r\n    }\r\n\r\n    let mutableObject = {\r\n        status: response.status,\r\n        response,\r\n    }\r\n\r\n    respond(mutableObject)\r\n\r\n    response = mutableObject.response\r\n\r\n    let content = await response.text()\r\n\r\n    // Handle error response...\r\n    if (! response.ok) {\r\n        finishProfile({ content: '{}', failed: true })\r\n\r\n        let preventDefault = false\r\n\r\n        handleFailure()\r\n\r\n        fail({\r\n            status: response.status,\r\n            content,\r\n            preventDefault: () => preventDefault = true,\r\n        })\r\n\r\n        if (preventDefault) return\r\n\r\n        if (response.status === 419) {\r\n            handlePageExpiry()\r\n        }\r\n\r\n        return showFailureModal(content)\r\n    }\r\n\r\n    /**\r\n     * Sometimes a redirect happens on the backend outside of Livewire's control,\r\n     * for example to a login page from a middleware, so we will just redirect\r\n     * to that page.\r\n     */\r\n    if (response.redirected) {\r\n        window.location.href = response.url\r\n    }\r\n\r\n    /**\r\n     * Sometimes a response will be prepended with html to render a dump, so we\r\n     * will seperate the dump html from Livewire's JSON response content and\r\n     * render the dump in a modal and allow Livewire to continue with the\r\n     * request.\r\n     */\r\n    if (contentIsFromDump(content)) {\r\n        let dump\r\n        [dump, content] = splitDumpFromContent(content)\r\n\r\n        showHtmlModal(dump)\r\n\r\n        finishProfile({ content: '{}', failed: true })\r\n    } else {\r\n        finishProfile({ content, failed: false })\r\n    }\r\n\r\n    let { components, assets } = JSON.parse(content)\r\n\r\n    await triggerAsync('payload.intercept', { components, assets })\r\n\r\n    await handleSuccess(components)\r\n\r\n    succeed({ status: response.status, json: JSON.parse(content) })\r\n}\r\n\r\nfunction handlePageExpiry() {\r\n    confirm(\r\n        'This page has expired.\\nWould you like to refresh the page?'\r\n    ) && window.location.reload()\r\n}\r\n\r\nfunction showFailureModal(content) {\r\n    let html = content\r\n\r\n    showHtmlModal(html)\r\n}\r\n", "import { cancelUpload, removeUpload, upload, uploadMultiple } from './features/supportFileUploads'\r\nimport { dispatch, dispatchSelf, dispatchTo, listen } from '@/events'\r\nimport { generateEntangleFunction } from '@/features/supportEntangle'\r\nimport { closestComponent } from '@/store'\r\nimport { requestCommit, requestCall } from '@/request'\r\nimport { dataGet, dataSet } from '@/utils'\r\nimport Alpine from 'alpinejs'\r\n\r\nlet properties = {}\r\nlet fallback\r\n\r\nfunction wireProperty(name, callback, component = null) {\r\n    properties[name] = callback\r\n}\r\n\r\nfunction wireFallback(callback) {\r\n    fallback = callback\r\n}\r\n\r\n// For V2 backwards compatibility...\r\n// And I actually like both depending on the scenario...\r\nlet aliases = {\r\n    'on': '$on',\r\n    'el': '$el',\r\n    'id': '$id',\r\n    'get': '$get',\r\n    'set': '$set',\r\n    'call': '$call',\r\n    'commit': '$commit',\r\n    'watch': '$watch',\r\n    'entangle': '$entangle',\r\n    'dispatch': '$dispatch',\r\n    'dispatchTo': '$dispatchTo',\r\n    'dispatchSelf': '$dispatchSelf',\r\n    'upload': '$upload',\r\n    'uploadMultiple': '$uploadMultiple',\r\n    'removeUpload': '$removeUpload',\r\n    'cancelUpload': '$cancelUpload',\r\n}\r\n\r\nexport function generateWireObject(component, state) {\r\n    return new Proxy({}, {\r\n        get(target, property) {\r\n            if (property === '__instance') return component\r\n\r\n            if (property in aliases) {\r\n                return getProperty(component, aliases[property])\r\n            } else if (property in properties) {\r\n                return getProperty(component, property)\r\n            } else if (property in state) {\r\n                return state[property]\r\n            } else if (! ['then'].includes(property)) {\r\n                return getFallback(component)(property)\r\n            }\r\n        },\r\n\r\n        set(target, property, value) {\r\n            if (property in state) {\r\n                state[property] = value\r\n            }\r\n\r\n            return true\r\n        },\r\n    })\r\n}\r\n\r\nfunction getProperty(component, name) {\r\n    return properties[name](component)\r\n}\r\n\r\nfunction getFallback(component) {\r\n    return fallback(component)\r\n}\r\n\r\nAlpine.magic('wire', (el, { cleanup }) => {\r\n    // Purposely initializing an empty variable here is a \"memo\"\r\n    // so that a component is lazy-loaded when using $wire from Alpine...\r\n    let component\r\n\r\n    // Override $wire methods that need to be cleaned up when\r\n    // and element is removed. For example, `x-data=\"{ foo: $wire.entangle(...) }\"`:\r\n    // we would want the entangle effect freed if the element was removed from the DOM...\r\n    return new Proxy({}, {\r\n        get(target, property) {\r\n            if (! component) component = closestComponent(el)\r\n\r\n            if (['$entangle', 'entangle'].includes(property)) {\r\n                return generateEntangleFunction(component, cleanup)\r\n            }\r\n\r\n            return component.$wire[property]\r\n        },\r\n\r\n        set(target, property, value) {\r\n            if (! component) component = closestComponent(el)\r\n\r\n            component.$wire[property] = value\r\n\r\n            return true\r\n        },\r\n    })\r\n})\r\n\r\nwireProperty('__instance', (component) => component)\r\n\r\nwireProperty('$get', (component) => (property, reactive = true) => dataGet(reactive ? component.reactive : component.ephemeral, property))\r\n\r\nwireProperty('$el', (component) => {\r\n    return component.el\r\n})\r\n\r\nwireProperty('$id', (component) => {\r\n    return component.id\r\n})\r\n\r\nwireProperty('$set', (component) => async (property, value, live = true) => {\r\n    dataSet(component.reactive, property, value)\r\n\r\n    // If \"live\", send a request, queueing the property update to happen first\r\n    // on the server, then trickle back down to the client and get merged...\r\n    if (live) {\r\n        component.queueUpdate(property, value)\r\n\r\n        return await requestCommit(component)\r\n    }\r\n\r\n    return Promise.resolve()\r\n})\r\n\r\nwireProperty('$call', (component) => async (method, ...params) => {\r\n    return await component.$wire[method](...params)\r\n})\r\n\r\nwireProperty('$entangle', (component) => (name, live = false) => {\r\n    return generateEntangleFunction(component)(name, live)\r\n})\r\n\r\nwireProperty('$toggle', (component) => (name, live = true) => {\r\n    return component.$wire.set(name, ! component.$wire.get(name), live)\r\n})\r\n\r\nwireProperty('$watch', (component) => (path, callback) => {\r\n    let firstTime = true\r\n    let oldValue = undefined\r\n\r\n   Alpine.effect(() => {\r\n    // JSON.stringify touches every single property at any level enabling deep watching\r\n        let value = dataGet(component.reactive, path)\r\n        JSON.stringify(value)\r\n\r\n        if (! firstTime) {\r\n            // We have to queue this watcher as a microtask so that\r\n            // the watcher doesn't pick up its own dependencies.\r\n            queueMicrotask(() => {\r\n                callback(value, oldValue)\r\n\r\n                oldValue = value\r\n            })\r\n        } else {\r\n            oldValue = value\r\n        }\r\n\r\n        firstTime = false\r\n    })\r\n})\r\n\r\nwireProperty('$refresh', (component) => component.$wire.$commit)\r\nwireProperty('$commit', (component) => async () => await requestCommit(component))\r\n\r\nwireProperty('$on', (component) => (...params) => listen(component, ...params))\r\n\r\nwireProperty('$dispatch', (component) => (...params) => dispatch(component, ...params))\r\nwireProperty('$dispatchSelf', (component) => (...params) => dispatchSelf(component, ...params))\r\nwireProperty('$dispatchTo', () => (...params) => dispatchTo(...params))\r\nwireProperty('$upload', (component) => (...params) => upload(component, ...params))\r\nwireProperty('$uploadMultiple', (component) => (...params) => uploadMultiple(component, ...params))\r\nwireProperty('$removeUpload', (component) => (...params) => removeUpload(component, ...params))\r\nwireProperty('$cancelUpload', (component) => (...params) => cancelUpload(component, ...params))\r\n\r\nlet parentMemo = new WeakMap\r\n\r\nwireProperty('$parent', component => {\r\n    if (parentMemo.has(component)) return parentMemo.get(component).$wire\r\n\r\n    let parent = closestComponent(component.el.parentElement)\r\n\r\n    parentMemo.set(component, parent)\r\n\r\n    return parent.$wire\r\n})\r\n\r\nlet overriddenMethods = new WeakMap\r\n\r\nexport function overrideMethod(component, method, callback) {\r\n    if (! overriddenMethods.has(component)) {\r\n        overriddenMethods.set(component, {})\r\n    }\r\n\r\n    let obj = overriddenMethods.get(component)\r\n\r\n    obj[method] = callback\r\n\r\n    overriddenMethods.set(component, obj)\r\n}\r\n\r\nwireFallback((component) => (property) => async (...params) => {\r\n    // If this method is passed directly to a Vue or Alpine\r\n    // event listener (@click=\"someMethod\") without using\r\n    // parens, strip out the automatically added event.\r\n    if (params.length === 1 && params[0] instanceof Event) {\r\n        params = []\r\n    }\r\n\r\n    if (overriddenMethods.has(component)) {\r\n        let overrides = overriddenMethods.get(component)\r\n\r\n        if (typeof overrides[property] === 'function') {\r\n            return overrides[property](params)\r\n        }\r\n    }\r\n\r\n    return await requestCall(component, property, params)\r\n})\r\n", "import { dataSet, deepClone, diff, extractData} from '@/utils'\r\nimport { generateWireObject } from '@/$wire'\r\nimport { findComponent } from '@/store'\r\nimport { trigger } from '@/hooks'\r\n\r\nexport class Component {\r\n    constructor(el) {\r\n        if (el.__livewire) throw 'Component already initialized';\r\n\r\n        el.__livewire = this\r\n\r\n        this.el = el\r\n\r\n        this.id = el.getAttribute('wire:id')\r\n\r\n        this.__livewireId = this.id // @legacy\r\n\r\n        this.snapshotEncoded = el.getAttribute('wire:snapshot')\r\n\r\n        this.snapshot = JSON.parse(this.snapshotEncoded)\r\n\r\n        if (! this.snapshot) {\r\n            throw `Snapshot missing on Livewire component with id: ` + this.id\r\n        }\r\n\r\n        this.name = this.snapshot.memo.name\r\n\r\n        this.effects = JSON.parse(el.getAttribute('wire:effects'))\r\n        this.originalEffects = deepClone(this.effects)\r\n\r\n        // \"canonical\" data represents the last known server state.\r\n        this.canonical = extractData(deepClone(this.snapshot.data))\r\n        // \"ephemeral\" represents the most current state. (This can be freely manipulated by end users)\r\n        this.ephemeral = extractData(deepClone(this.snapshot.data))\r\n        // \"reactive\" is just ephemeral, except when you mutate it, front-ends like Vue react.\r\n        this.reactive = Alpine.reactive(this.ephemeral)\r\n\r\n        this.queuedUpdates = {}\r\n\r\n        // this.$wire = this.reactive\r\n        this.$wire = generateWireObject(this, this.reactive)\r\n\r\n        this.cleanups = []\r\n\r\n        // Effects will be processed after every request, but we'll also handle them on initialization.\r\n        this.processEffects(this.effects)\r\n    }\r\n\r\n    mergeNewSnapshot(snapshotEncoded, effects, updates = {}) {\r\n        let snapshot = JSON.parse(snapshotEncoded)\r\n\r\n        let oldCanonical = deepClone(this.canonical)\r\n        let updatedOldCanonical = this.applyUpdates(oldCanonical, updates)\r\n\r\n        let newCanonical = extractData(deepClone(snapshot.data))\r\n\r\n        let dirty = diff(updatedOldCanonical, newCanonical)\r\n\r\n        this.snapshotEncoded = snapshotEncoded\r\n\r\n        this.snapshot = snapshot\r\n\r\n        this.effects = effects\r\n\r\n        this.canonical = extractData(deepClone(snapshot.data))\r\n\r\n        let newData = extractData(deepClone(snapshot.data))\r\n\r\n        Object.entries(dirty).forEach(([key, value]) => {\r\n            let rootKey = key.split('.')[0]\r\n            this.reactive[rootKey] = newData[rootKey]\r\n        })\r\n        // Object.entries(this.ephemeral).forEach(([key, value]) => {\r\n        //     if (! deeplyEqual(this.ephemeral[key], newData[key])) {\r\n        //         this.reactive[key] = newData[key]\r\n        //     }\r\n        // })\r\n\r\n        return dirty\r\n    }\r\n\r\n    queueUpdate(propertyName, value) {\r\n        // These updates will be applied first on the server\r\n        // on the next request, then trickle back to the\r\n        // client on the next request that gets sent.\r\n        this.queuedUpdates[propertyName] = value\r\n    }\r\n\r\n    mergeQueuedUpdates(diff) {\r\n        // Before adding queuedUpdates into the diff list, we will remove any diffs\r\n        // that will be overriden by the queued update. Queued updates will take\r\n        // priority against ephemeral updates that have happend since them...\r\n        Object.entries(this.queuedUpdates).forEach(([updateKey, updateValue]) => {\r\n            Object.entries(diff).forEach(([diffKey, diffValue]) => {\r\n                if (diffKey.startsWith(updateValue)) {\r\n                    delete diff[diffKey]\r\n                }\r\n            })\r\n\r\n            diff[updateKey] = updateValue\r\n        })\r\n\r\n        this.queuedUpdates = []\r\n\r\n        return diff\r\n    }\r\n\r\n    applyUpdates(object, updates) {\r\n        for (let key in updates) {\r\n            dataSet(object, key, updates[key])\r\n        }\r\n\r\n        return object\r\n    }\r\n\r\n    replayUpdate(snapshot, html) {\r\n        let effects = { ...this.effects, html}\r\n\r\n        this.mergeNewSnapshot(JSON.stringify(snapshot), effects)\r\n\r\n        this.processEffects({ html })\r\n    }\r\n\r\n    /**\r\n     * Here we'll take the new state and side effects from the\r\n     * server and use them to update the existing data that\r\n     * users interact with, triggering reactive effects.\r\n     */\r\n    processEffects(effects) {\r\n        // This is for BC.\r\n        trigger('effects', this, effects)\r\n\r\n        trigger('effect', {\r\n            component: this,\r\n            effects,\r\n            cleanup: i => this.addCleanup(i)\r\n        })\r\n    }\r\n\r\n    get children() {\r\n        let meta = this.snapshot.memo\r\n        let childIds = Object.values(meta.children).map(i => i[1])\r\n\r\n        return childIds.map(id => findComponent(id))\r\n    }\r\n\r\n    inscribeSnapshotAndEffectsOnElement() {\r\n        let el = this.el\r\n\r\n        el.setAttribute('wire:snapshot', this.snapshotEncoded)\r\n\r\n        // We need to re-register any event listeners that were originally registered...\r\n        let effects = this.originalEffects.listeners\r\n            ? { listeners: this.originalEffects.listeners }\r\n            : {}\r\n\r\n        // We need to re-register any url/query-string bindings...\r\n        if (this.originalEffects.url) {\r\n            effects.url = this.originalEffects.url\r\n        }\r\n\r\n        el.setAttribute('wire:effects', JSON.stringify(effects))\r\n    }\r\n\r\n    addCleanup(cleanup) {\r\n        this.cleanups.push(cleanup)\r\n    }\r\n\r\n    cleanup() {\r\n        delete this.el.__livewire\r\n\r\n        while (this.cleanups.length > 0) {\r\n            this.cleanups.pop()()\r\n        }\r\n    }\r\n}\r\n", "import { Component } from \"@/component\";\r\nimport { trigger } from \"@/hooks\";\r\n\r\nlet components = {}\r\n\r\nexport function initComponent(el) {\r\n    let component = new Component(el)\r\n\r\n    if (components[component.id]) throw 'Component already registered'\r\n\r\n    let cleanup = (i) => component.addCleanup(i)\r\n\r\n    trigger('component.init', { component, cleanup })\r\n\r\n    components[component.id] = component\r\n\r\n    return component\r\n}\r\n\r\nexport function destroyComponent(id) {\r\n    let component = components[id]\r\n\r\n    if (! component) return\r\n\r\n    component.cleanup()\r\n\r\n    delete components[id]\r\n}\r\n\r\nexport function hasComponent(id) {\r\n    return !! components[id]\r\n}\r\n\r\nexport function findComponent(id) {\r\n    let component = components[id]\r\n\r\n    if (! component) throw 'Component not found: ' + id\r\n\r\n    return component\r\n}\r\n\r\nexport function closestComponent(el, strict = true) {\r\n    let closestRoot = Alpine.findClosest(el, i => i.__livewire)\r\n\r\n    if (! closestRoot) {\r\n        if (strict) throw \"Could not find Livewire component in DOM tree\"\r\n\r\n        return\r\n    }\r\n\r\n    return closestRoot.__livewire\r\n}\r\n\r\nexport function componentsByName(name) {\r\n    return Object.values(components).filter(component => {\r\n        return name == component.name\r\n    })\r\n}\r\n\r\nexport function getByName(name) {\r\n    return componentsByName(name).map(i => i.$wire)\r\n}\r\n\r\nexport function find(id) {\r\n    let component = components[id]\r\n\r\n    return component && component.$wire\r\n}\r\n\r\nexport function first() {\r\n    return Object.values(components)[0].$wire\r\n}\r\n\r\nexport function all() {\r\n    return Object.values(components)\r\n}\r\n", "import { componentsByName } from \"@/store\"\r\n\r\nexport function dispatch(component, name, params) {\r\n    dispatchEvent(component.el, name, params)\r\n}\r\n\r\nexport function dispatchGlobal(name, params) {\r\n    dispatchEvent(window, name, params)\r\n}\r\n\r\nexport function dispatchSelf(component, name, params) {\r\n    dispatchEvent(component.el, name, params, false)\r\n}\r\n\r\nexport function dispatchTo(componentName, name, params) {\r\n    let targets = componentsByName(componentName)\r\n\r\n    targets.forEach(target => {\r\n        dispatchEvent(target.el, name, params, false)\r\n    })\r\n}\r\n\r\nexport function listen(component, name, callback) {\r\n    component.el.addEventListener(name, e => {\r\n        callback(e.detail)\r\n    })\r\n}\r\n\r\nexport function on(eventName, callback) {\r\n    let handler = (e) => {\r\n        // Implemented for backwards compatibility...\r\n        if (! e.__livewire) return\r\n\r\n        callback(e.detail)\r\n    }\r\n\r\n    window.addEventListener(eventName, handler)\r\n\r\n    return () => {\r\n        window.removeEventListener(eventName, handler)\r\n    }\r\n}\r\n\r\nfunction dispatchEvent(target, name, params, bubbles = true) {\r\n    let e = new CustomEvent(name, { bubbles, detail: params })\r\n\r\n    e.__livewire = { name, params, receivedBy: [] }\r\n\r\n    target.dispatchEvent(e)\r\n}\r\n", "import { on } from './hooks'\r\n\r\nexport function matchesForLivewireDirective(attributeName) {\r\n    return attributeName.match(new RegExp('wire:'))\r\n}\r\n\r\nexport function extractDirective(el, name) {\r\n    let [value, ...modifiers] = name.replace(new RegExp('wire:'), '').split('.')\r\n\r\n    return new Directive(value, modifiers, name, el)\r\n}\r\n\r\nexport function directive(name, callback) {\r\n    on('directive.init', ({ el, component, directive, cleanup }) => {\r\n        if (directive.value === name) {\r\n            callback({\r\n                el, directive, component, cleanup\r\n            })\r\n        }\r\n    })\r\n}\r\n\r\nexport function getDirectives(el) {\r\n    return new DirectiveManager(el)\r\n}\r\n\r\nclass DirectiveManager {\r\n    constructor(el) {\r\n        this.el = el\r\n        this.directives = this.extractTypeModifiersAndValue()\r\n    }\r\n\r\n    all() {\r\n        return this.directives\r\n    }\r\n\r\n    has(value) {\r\n        return this.directives.map(directive => directive.value).includes(value)\r\n    }\r\n\r\n    missing(value) {\r\n        return ! this.has(value)\r\n    }\r\n\r\n    get(value) {\r\n        return this.directives.find(directive => directive.value === value)\r\n    }\r\n\r\n    extractTypeModifiersAndValue() {\r\n        return Array.from(this.el.getAttributeNames()\r\n            // Filter only the livewire directives.\r\n            .filter(name => matchesForLivewireDirective(name))\r\n            // Parse out the type, modifiers, and value from it.\r\n            .map(name => extractDirective(this.el, name)))\r\n    }\r\n}\r\n\r\nexport class Directive {\r\n    constructor(value, modifiers, rawName, el) {\r\n        this.rawName = this.raw = rawName\r\n        this.el = el\r\n        this.eventContext\r\n\r\n        this.value = value\r\n        this.modifiers = modifiers\r\n        this.expression = this.el.getAttribute(this.rawName)\r\n    }\r\n\r\n    get method() {\r\n        const { method } = this.parseOutMethodAndParams(this.expression)\r\n\r\n        return method\r\n    }\r\n\r\n    get params() {\r\n        const { params } = this.parseOutMethodAndParams(this.expression)\r\n\r\n        return params\r\n    }\r\n\r\n    parseOutMethodAndParams(rawMethod) {\r\n        let method = rawMethod\r\n        let params = []\r\n        const methodAndParamString = method.match(/(.*?)\\((.*)\\)/s)\r\n\r\n        if (methodAndParamString) {\r\n            method = methodAndParamString[1]\r\n\r\n            // Use a function that returns it's arguments to parse and eval all params\r\n            // This \"$event\" is for use inside the livewire event handler.\r\n            let func = new Function('$event', `return (function () {\r\n                for (var l=arguments.length, p=new Array(l), k=0; k<l; k++) {\r\n                    p[k] = arguments[k];\r\n                }\r\n                return [].concat(p);\r\n            })(${methodAndParamString[2]})`)\r\n\r\n            params = func(this.eventContext)\r\n        }\r\n\r\n        return { method, params }\r\n    }\r\n}\r\n", "// packages/collapse/src/index.js\nfunction src_default(Alpine) {\n  Alpine.directive(\"collapse\", collapse);\n  collapse.inline = (el, { modifiers }) => {\n    if (!modifiers.includes(\"min\"))\n      return;\n    el._x_doShow = () => {\n    };\n    el._x_doHide = () => {\n    };\n  };\n  function collapse(el, { modifiers }) {\n    let duration = modifierValue(modifiers, \"duration\", 250) / 1e3;\n    let floor = modifierValue(modifiers, \"min\", 0);\n    let fullyHide = !modifiers.includes(\"min\");\n    if (!el._x_isShown)\n      el.style.height = `${floor}px`;\n    if (!el._x_isShown && fullyHide)\n      el.hidden = true;\n    if (!el._x_isShown)\n      el.style.overflow = \"hidden\";\n    let setFunction = (el2, styles) => {\n      let revertFunction = Alpine.setStyles(el2, styles);\n      return styles.height ? () => {\n      } : revertFunction;\n    };\n    let transitionStyles = {\n      transitionProperty: \"height\",\n      transitionDuration: `${duration}s`,\n      transitionTimingFunction: \"cubic-bezier(0.4, 0.0, 0.2, 1)\"\n    };\n    el._x_transition = {\n      in(before = () => {\n      }, after = () => {\n      }) {\n        if (fullyHide)\n          el.hidden = false;\n        if (fullyHide)\n          el.style.display = null;\n        let current = el.getBoundingClientRect().height;\n        el.style.height = \"auto\";\n        let full = el.getBoundingClientRect().height;\n        if (current === full) {\n          current = floor;\n        }\n        Alpine.transition(el, Alpine.setStyles, {\n          during: transitionStyles,\n          start: { height: current + \"px\" },\n          end: { height: full + \"px\" }\n        }, () => el._x_isShown = true, () => {\n          if (el.getBoundingClientRect().height == full) {\n            el.style.overflow = null;\n          }\n        });\n      },\n      out(before = () => {\n      }, after = () => {\n      }) {\n        let full = el.getBoundingClientRect().height;\n        Alpine.transition(el, setFunction, {\n          during: transitionStyles,\n          start: { height: full + \"px\" },\n          end: { height: floor + \"px\" }\n        }, () => el.style.overflow = \"hidden\", () => {\n          el._x_isShown = false;\n          if (el.style.height == `${floor}px` && fullyHide) {\n            el.style.display = \"none\";\n            el.hidden = true;\n          }\n        });\n      }\n    };\n  }\n}\nfunction modifierValue(modifiers, key, fallback) {\n  if (modifiers.indexOf(key) === -1)\n    return fallback;\n  const rawValue = modifiers[modifiers.indexOf(key) + 1];\n  if (!rawValue)\n    return fallback;\n  if (key === \"duration\") {\n    let match = rawValue.match(/([0-9]+)ms/);\n    if (match)\n      return match[1];\n  }\n  if (key === \"min\") {\n    let match = rawValue.match(/([0-9]+)px/);\n    if (match)\n      return match[1];\n  }\n  return rawValue;\n}\n\n// packages/collapse/builds/module.js\nvar module_default = src_default;\nexport {\n  src_default as collapse,\n  module_default as default\n};\n", "// node_modules/tabbable/dist/index.esm.js\nvar candidateSelectors = [\"input\", \"select\", \"textarea\", \"a[href]\", \"button\", \"[tabindex]:not(slot)\", \"audio[controls]\", \"video[controls]\", '[contenteditable]:not([contenteditable=\"false\"])', \"details>summary:first-of-type\", \"details\"];\nvar candidateSelector = /* @__PURE__ */ candidateSelectors.join(\",\");\nvar NoElement = typeof Element === \"undefined\";\nvar matches = NoElement ? function() {\n} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\nvar getRootNode = !NoElement && Element.prototype.getRootNode ? function(element) {\n  return element.getRootNode();\n} : function(element) {\n  return element.ownerDocument;\n};\nvar getCandidates = function getCandidates2(el, includeContainer, filter) {\n  var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));\n  if (includeContainer && matches.call(el, candidateSelector)) {\n    candidates.unshift(el);\n  }\n  candidates = candidates.filter(filter);\n  return candidates;\n};\nvar getCandidatesIteratively = function getCandidatesIteratively2(elements, includeContainer, options) {\n  var candidates = [];\n  var elementsToCheck = Array.from(elements);\n  while (elementsToCheck.length) {\n    var element = elementsToCheck.shift();\n    if (element.tagName === \"SLOT\") {\n      var assigned = element.assignedElements();\n      var content = assigned.length ? assigned : element.children;\n      var nestedCandidates = getCandidatesIteratively2(content, true, options);\n      if (options.flatten) {\n        candidates.push.apply(candidates, nestedCandidates);\n      } else {\n        candidates.push({\n          scope: element,\n          candidates: nestedCandidates\n        });\n      }\n    } else {\n      var validCandidate = matches.call(element, candidateSelector);\n      if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {\n        candidates.push(element);\n      }\n      var shadowRoot = element.shadowRoot || // check for an undisclosed shadow\n      typeof options.getShadowRoot === \"function\" && options.getShadowRoot(element);\n      var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);\n      if (shadowRoot && validShadowRoot) {\n        var _nestedCandidates = getCandidatesIteratively2(shadowRoot === true ? element.children : shadowRoot.children, true, options);\n        if (options.flatten) {\n          candidates.push.apply(candidates, _nestedCandidates);\n        } else {\n          candidates.push({\n            scope: element,\n            candidates: _nestedCandidates\n          });\n        }\n      } else {\n        elementsToCheck.unshift.apply(elementsToCheck, element.children);\n      }\n    }\n  }\n  return candidates;\n};\nvar getTabindex = function getTabindex2(node, isScope) {\n  if (node.tabIndex < 0) {\n    if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute(\"tabindex\"), 10))) {\n      return 0;\n    }\n  }\n  return node.tabIndex;\n};\nvar sortOrderedTabbables = function sortOrderedTabbables2(a, b) {\n  return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;\n};\nvar isInput = function isInput2(node) {\n  return node.tagName === \"INPUT\";\n};\nvar isHiddenInput = function isHiddenInput2(node) {\n  return isInput(node) && node.type === \"hidden\";\n};\nvar isDetailsWithSummary = function isDetailsWithSummary2(node) {\n  var r = node.tagName === \"DETAILS\" && Array.prototype.slice.apply(node.children).some(function(child) {\n    return child.tagName === \"SUMMARY\";\n  });\n  return r;\n};\nvar getCheckedRadio = function getCheckedRadio2(nodes, form) {\n  for (var i = 0; i < nodes.length; i++) {\n    if (nodes[i].checked && nodes[i].form === form) {\n      return nodes[i];\n    }\n  }\n};\nvar isTabbableRadio = function isTabbableRadio2(node) {\n  if (!node.name) {\n    return true;\n  }\n  var radioScope = node.form || getRootNode(node);\n  var queryRadios = function queryRadios2(name) {\n    return radioScope.querySelectorAll('input[type=\"radio\"][name=\"' + name + '\"]');\n  };\n  var radioSet;\n  if (typeof window !== \"undefined\" && typeof window.CSS !== \"undefined\" && typeof window.CSS.escape === \"function\") {\n    radioSet = queryRadios(window.CSS.escape(node.name));\n  } else {\n    try {\n      radioSet = queryRadios(node.name);\n    } catch (err) {\n      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\", err.message);\n      return false;\n    }\n  }\n  var checked = getCheckedRadio(radioSet, node.form);\n  return !checked || checked === node;\n};\nvar isRadio = function isRadio2(node) {\n  return isInput(node) && node.type === \"radio\";\n};\nvar isNonTabbableRadio = function isNonTabbableRadio2(node) {\n  return isRadio(node) && !isTabbableRadio(node);\n};\nvar isZeroArea = function isZeroArea2(node) {\n  var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;\n  return width === 0 && height === 0;\n};\nvar isHidden = function isHidden2(node, _ref) {\n  var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;\n  if (getComputedStyle(node).visibility === \"hidden\") {\n    return true;\n  }\n  var isDirectSummary = matches.call(node, \"details>summary:first-of-type\");\n  var nodeUnderDetails = isDirectSummary ? node.parentElement : node;\n  if (matches.call(nodeUnderDetails, \"details:not([open]) *\")) {\n    return true;\n  }\n  var nodeRootHost = getRootNode(node).host;\n  var nodeIsAttached = (nodeRootHost === null || nodeRootHost === void 0 ? void 0 : nodeRootHost.ownerDocument.contains(nodeRootHost)) || node.ownerDocument.contains(node);\n  if (!displayCheck || displayCheck === \"full\") {\n    if (typeof getShadowRoot === \"function\") {\n      var originalNode = node;\n      while (node) {\n        var parentElement = node.parentElement;\n        var rootNode = getRootNode(node);\n        if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true) {\n          return isZeroArea(node);\n        } else if (node.assignedSlot) {\n          node = node.assignedSlot;\n        } else if (!parentElement && rootNode !== node.ownerDocument) {\n          node = rootNode.host;\n        } else {\n          node = parentElement;\n        }\n      }\n      node = originalNode;\n    }\n    if (nodeIsAttached) {\n      return !node.getClientRects().length;\n    }\n  } else if (displayCheck === \"non-zero-area\") {\n    return isZeroArea(node);\n  }\n  return false;\n};\nvar isDisabledFromFieldset = function isDisabledFromFieldset2(node) {\n  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {\n    var parentNode = node.parentElement;\n    while (parentNode) {\n      if (parentNode.tagName === \"FIELDSET\" && parentNode.disabled) {\n        for (var i = 0; i < parentNode.children.length; i++) {\n          var child = parentNode.children.item(i);\n          if (child.tagName === \"LEGEND\") {\n            return matches.call(parentNode, \"fieldset[disabled] *\") ? true : !child.contains(node);\n          }\n        }\n        return true;\n      }\n      parentNode = parentNode.parentElement;\n    }\n  }\n  return false;\n};\nvar isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable2(options, node) {\n  if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus\n  isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {\n    return false;\n  }\n  return true;\n};\nvar isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable2(options, node) {\n  if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {\n    return false;\n  }\n  return true;\n};\nvar isValidShadowRootTabbable = function isValidShadowRootTabbable2(shadowHostNode) {\n  var tabIndex = parseInt(shadowHostNode.getAttribute(\"tabindex\"), 10);\n  if (isNaN(tabIndex) || tabIndex >= 0) {\n    return true;\n  }\n  return false;\n};\nvar sortByOrder = function sortByOrder2(candidates) {\n  var regularTabbables = [];\n  var orderedTabbables = [];\n  candidates.forEach(function(item, i) {\n    var isScope = !!item.scope;\n    var element = isScope ? item.scope : item;\n    var candidateTabindex = getTabindex(element, isScope);\n    var elements = isScope ? sortByOrder2(item.candidates) : element;\n    if (candidateTabindex === 0) {\n      isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);\n    } else {\n      orderedTabbables.push({\n        documentOrder: i,\n        tabIndex: candidateTabindex,\n        item,\n        isScope,\n        content: elements\n      });\n    }\n  });\n  return orderedTabbables.sort(sortOrderedTabbables).reduce(function(acc, sortable) {\n    sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);\n    return acc;\n  }, []).concat(regularTabbables);\n};\nvar tabbable = function tabbable2(el, options) {\n  options = options || {};\n  var candidates;\n  if (options.getShadowRoot) {\n    candidates = getCandidatesIteratively([el], options.includeContainer, {\n      filter: isNodeMatchingSelectorTabbable.bind(null, options),\n      flatten: false,\n      getShadowRoot: options.getShadowRoot,\n      shadowRootFilter: isValidShadowRootTabbable\n    });\n  } else {\n    candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));\n  }\n  return sortByOrder(candidates);\n};\nvar focusable = function focusable2(el, options) {\n  options = options || {};\n  var candidates;\n  if (options.getShadowRoot) {\n    candidates = getCandidatesIteratively([el], options.includeContainer, {\n      filter: isNodeMatchingSelectorFocusable.bind(null, options),\n      flatten: true,\n      getShadowRoot: options.getShadowRoot\n    });\n  } else {\n    candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));\n  }\n  return candidates;\n};\nvar isTabbable = function isTabbable2(node, options) {\n  options = options || {};\n  if (!node) {\n    throw new Error(\"No node provided\");\n  }\n  if (matches.call(node, candidateSelector) === false) {\n    return false;\n  }\n  return isNodeMatchingSelectorTabbable(options, node);\n};\nvar focusableCandidateSelector = /* @__PURE__ */ candidateSelectors.concat(\"iframe\").join(\",\");\nvar isFocusable = function isFocusable2(node, options) {\n  options = options || {};\n  if (!node) {\n    throw new Error(\"No node provided\");\n  }\n  if (matches.call(node, focusableCandidateSelector) === false) {\n    return false;\n  }\n  return isNodeMatchingSelectorFocusable(options, node);\n};\n\n// node_modules/focus-trap/dist/focus-trap.esm.js\nfunction ownKeys(object, enumerableOnly) {\n  var keys = Object.keys(object);\n  if (Object.getOwnPropertySymbols) {\n    var symbols = Object.getOwnPropertySymbols(object);\n    enumerableOnly && (symbols = symbols.filter(function(sym) {\n      return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n    })), keys.push.apply(keys, symbols);\n  }\n  return keys;\n}\nfunction _objectSpread2(target) {\n  for (var i = 1; i < arguments.length; i++) {\n    var source = null != arguments[i] ? arguments[i] : {};\n    i % 2 ? ownKeys(Object(source), true).forEach(function(key) {\n      _defineProperty(target, key, source[key]);\n    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {\n      Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n    });\n  }\n  return target;\n}\nfunction _defineProperty(obj, key, value) {\n  if (key in obj) {\n    Object.defineProperty(obj, key, {\n      value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n  } else {\n    obj[key] = value;\n  }\n  return obj;\n}\nvar activeFocusTraps = function() {\n  var trapQueue = [];\n  return {\n    activateTrap: function activateTrap(trap) {\n      if (trapQueue.length > 0) {\n        var activeTrap = trapQueue[trapQueue.length - 1];\n        if (activeTrap !== trap) {\n          activeTrap.pause();\n        }\n      }\n      var trapIndex = trapQueue.indexOf(trap);\n      if (trapIndex === -1) {\n        trapQueue.push(trap);\n      } else {\n        trapQueue.splice(trapIndex, 1);\n        trapQueue.push(trap);\n      }\n    },\n    deactivateTrap: function deactivateTrap(trap) {\n      var trapIndex = trapQueue.indexOf(trap);\n      if (trapIndex !== -1) {\n        trapQueue.splice(trapIndex, 1);\n      }\n      if (trapQueue.length > 0) {\n        trapQueue[trapQueue.length - 1].unpause();\n      }\n    }\n  };\n}();\nvar isSelectableInput = function isSelectableInput2(node) {\n  return node.tagName && node.tagName.toLowerCase() === \"input\" && typeof node.select === \"function\";\n};\nvar isEscapeEvent = function isEscapeEvent2(e) {\n  return e.key === \"Escape\" || e.key === \"Esc\" || e.keyCode === 27;\n};\nvar isTabEvent = function isTabEvent2(e) {\n  return e.key === \"Tab\" || e.keyCode === 9;\n};\nvar delay = function delay2(fn) {\n  return setTimeout(fn, 0);\n};\nvar findIndex = function findIndex2(arr, fn) {\n  var idx = -1;\n  arr.every(function(value, i) {\n    if (fn(value)) {\n      idx = i;\n      return false;\n    }\n    return true;\n  });\n  return idx;\n};\nvar valueOrHandler = function valueOrHandler2(value) {\n  for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    params[_key - 1] = arguments[_key];\n  }\n  return typeof value === \"function\" ? value.apply(void 0, params) : value;\n};\nvar getActualTarget = function getActualTarget2(event) {\n  return event.target.shadowRoot && typeof event.composedPath === \"function\" ? event.composedPath()[0] : event.target;\n};\nvar createFocusTrap = function createFocusTrap2(elements, userOptions) {\n  var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;\n  var config = _objectSpread2({\n    returnFocusOnDeactivate: true,\n    escapeDeactivates: true,\n    delayInitialFocus: true\n  }, userOptions);\n  var state = {\n    // containers given to createFocusTrap()\n    // @type {Array<HTMLElement>}\n    containers: [],\n    // list of objects identifying tabbable nodes in `containers` in the trap\n    // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap\n    //  is active, but the trap should never get to a state where there isn't at least one group\n    //  with at least one tabbable node in it (that would lead to an error condition that would\n    //  result in an error being thrown)\n    // @type {Array<{\n    //   container: HTMLElement,\n    //   tabbableNodes: Array<HTMLElement>, // empty if none\n    //   focusableNodes: Array<HTMLElement>, // empty if none\n    //   firstTabbableNode: HTMLElement|null,\n    //   lastTabbableNode: HTMLElement|null,\n    //   nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined\n    // }>}\n    containerGroups: [],\n    // same order/length as `containers` list\n    // references to objects in `containerGroups`, but only those that actually have\n    //  tabbable nodes in them\n    // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__\n    //  the same length\n    tabbableGroups: [],\n    nodeFocusedBeforeActivation: null,\n    mostRecentlyFocusedNode: null,\n    active: false,\n    paused: false,\n    // timer ID for when delayInitialFocus is true and initial focus in this trap\n    //  has been delayed during activation\n    delayInitialFocusTimer: void 0\n  };\n  var trap;\n  var getOption = function getOption2(configOverrideOptions, optionName, configOptionName) {\n    return configOverrideOptions && configOverrideOptions[optionName] !== void 0 ? configOverrideOptions[optionName] : config[configOptionName || optionName];\n  };\n  var findContainerIndex = function findContainerIndex2(element) {\n    return state.containerGroups.findIndex(function(_ref) {\n      var container = _ref.container, tabbableNodes = _ref.tabbableNodes;\n      return container.contains(element) || // fall back to explicit tabbable search which will take into consideration any\n      //  web components if the `tabbableOptions.getShadowRoot` option was used for\n      //  the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't\n      //  look inside web components even if open)\n      tabbableNodes.find(function(node) {\n        return node === element;\n      });\n    });\n  };\n  var getNodeForOption = function getNodeForOption2(optionName) {\n    var optionValue = config[optionName];\n    if (typeof optionValue === \"function\") {\n      for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        params[_key2 - 1] = arguments[_key2];\n      }\n      optionValue = optionValue.apply(void 0, params);\n    }\n    if (optionValue === true) {\n      optionValue = void 0;\n    }\n    if (!optionValue) {\n      if (optionValue === void 0 || optionValue === false) {\n        return optionValue;\n      }\n      throw new Error(\"`\".concat(optionName, \"` was specified but was not a node, or did not return a node\"));\n    }\n    var node = optionValue;\n    if (typeof optionValue === \"string\") {\n      node = doc.querySelector(optionValue);\n      if (!node) {\n        throw new Error(\"`\".concat(optionName, \"` as selector refers to no known node\"));\n      }\n    }\n    return node;\n  };\n  var getInitialFocusNode = function getInitialFocusNode2() {\n    var node = getNodeForOption(\"initialFocus\");\n    if (node === false) {\n      return false;\n    }\n    if (node === void 0) {\n      if (findContainerIndex(doc.activeElement) >= 0) {\n        node = doc.activeElement;\n      } else {\n        var firstTabbableGroup = state.tabbableGroups[0];\n        var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;\n        node = firstTabbableNode || getNodeForOption(\"fallbackFocus\");\n      }\n    }\n    if (!node) {\n      throw new Error(\"Your focus-trap needs to have at least one focusable element\");\n    }\n    return node;\n  };\n  var updateTabbableNodes = function updateTabbableNodes2() {\n    state.containerGroups = state.containers.map(function(container) {\n      var tabbableNodes = tabbable(container, config.tabbableOptions);\n      var focusableNodes = focusable(container, config.tabbableOptions);\n      return {\n        container,\n        tabbableNodes,\n        focusableNodes,\n        firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,\n        lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,\n        /**\n         * Finds the __tabbable__ node that follows the given node in the specified direction,\n         *  in this container, if any.\n         * @param {HTMLElement} node\n         * @param {boolean} [forward] True if going in forward tab order; false if going\n         *  in reverse.\n         * @returns {HTMLElement|undefined} The next tabbable node, if any.\n         */\n        nextTabbableNode: function nextTabbableNode(node) {\n          var forward = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;\n          var nodeIdx = focusableNodes.findIndex(function(n) {\n            return n === node;\n          });\n          if (nodeIdx < 0) {\n            return void 0;\n          }\n          if (forward) {\n            return focusableNodes.slice(nodeIdx + 1).find(function(n) {\n              return isTabbable(n, config.tabbableOptions);\n            });\n          }\n          return focusableNodes.slice(0, nodeIdx).reverse().find(function(n) {\n            return isTabbable(n, config.tabbableOptions);\n          });\n        }\n      };\n    });\n    state.tabbableGroups = state.containerGroups.filter(function(group) {\n      return group.tabbableNodes.length > 0;\n    });\n    if (state.tabbableGroups.length <= 0 && !getNodeForOption(\"fallbackFocus\")) {\n      throw new Error(\"Your focus-trap must have at least one container with at least one tabbable node in it at all times\");\n    }\n  };\n  var tryFocus = function tryFocus2(node) {\n    if (node === false) {\n      return;\n    }\n    if (node === doc.activeElement) {\n      return;\n    }\n    if (!node || !node.focus) {\n      tryFocus2(getInitialFocusNode());\n      return;\n    }\n    node.focus({\n      preventScroll: !!config.preventScroll\n    });\n    state.mostRecentlyFocusedNode = node;\n    if (isSelectableInput(node)) {\n      node.select();\n    }\n  };\n  var getReturnFocusNode = function getReturnFocusNode2(previousActiveElement) {\n    var node = getNodeForOption(\"setReturnFocus\", previousActiveElement);\n    return node ? node : node === false ? false : previousActiveElement;\n  };\n  var checkPointerDown = function checkPointerDown2(e) {\n    var target = getActualTarget(e);\n    if (findContainerIndex(target) >= 0) {\n      return;\n    }\n    if (valueOrHandler(config.clickOutsideDeactivates, e)) {\n      trap.deactivate({\n        // if, on deactivation, we should return focus to the node originally-focused\n        //  when the trap was activated (or the configured `setReturnFocus` node),\n        //  then assume it's also OK to return focus to the outside node that was\n        //  just clicked, causing deactivation, as long as that node is focusable;\n        //  if it isn't focusable, then return focus to the original node focused\n        //  on activation (or the configured `setReturnFocus` node)\n        // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,\n        //  which will result in the outside click setting focus to the node\n        //  that was clicked, whether it's focusable or not; by setting\n        //  `returnFocus: true`, we'll attempt to re-focus the node originally-focused\n        //  on activation (or the configured `setReturnFocus` node)\n        returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)\n      });\n      return;\n    }\n    if (valueOrHandler(config.allowOutsideClick, e)) {\n      return;\n    }\n    e.preventDefault();\n  };\n  var checkFocusIn = function checkFocusIn2(e) {\n    var target = getActualTarget(e);\n    var targetContained = findContainerIndex(target) >= 0;\n    if (targetContained || target instanceof Document) {\n      if (targetContained) {\n        state.mostRecentlyFocusedNode = target;\n      }\n    } else {\n      e.stopImmediatePropagation();\n      tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());\n    }\n  };\n  var checkTab = function checkTab2(e) {\n    var target = getActualTarget(e);\n    updateTabbableNodes();\n    var destinationNode = null;\n    if (state.tabbableGroups.length > 0) {\n      var containerIndex = findContainerIndex(target);\n      var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : void 0;\n      if (containerIndex < 0) {\n        if (e.shiftKey) {\n          destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;\n        } else {\n          destinationNode = state.tabbableGroups[0].firstTabbableNode;\n        }\n      } else if (e.shiftKey) {\n        var startOfGroupIndex = findIndex(state.tabbableGroups, function(_ref2) {\n          var firstTabbableNode = _ref2.firstTabbableNode;\n          return target === firstTabbableNode;\n        });\n        if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {\n          startOfGroupIndex = containerIndex;\n        }\n        if (startOfGroupIndex >= 0) {\n          var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;\n          var destinationGroup = state.tabbableGroups[destinationGroupIndex];\n          destinationNode = destinationGroup.lastTabbableNode;\n        }\n      } else {\n        var lastOfGroupIndex = findIndex(state.tabbableGroups, function(_ref3) {\n          var lastTabbableNode = _ref3.lastTabbableNode;\n          return target === lastTabbableNode;\n        });\n        if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {\n          lastOfGroupIndex = containerIndex;\n        }\n        if (lastOfGroupIndex >= 0) {\n          var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;\n          var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];\n          destinationNode = _destinationGroup.firstTabbableNode;\n        }\n      }\n    } else {\n      destinationNode = getNodeForOption(\"fallbackFocus\");\n    }\n    if (destinationNode) {\n      e.preventDefault();\n      tryFocus(destinationNode);\n    }\n  };\n  var checkKey = function checkKey2(e) {\n    if (isEscapeEvent(e) && valueOrHandler(config.escapeDeactivates, e) !== false) {\n      e.preventDefault();\n      trap.deactivate();\n      return;\n    }\n    if (isTabEvent(e)) {\n      checkTab(e);\n      return;\n    }\n  };\n  var checkClick = function checkClick2(e) {\n    var target = getActualTarget(e);\n    if (findContainerIndex(target) >= 0) {\n      return;\n    }\n    if (valueOrHandler(config.clickOutsideDeactivates, e)) {\n      return;\n    }\n    if (valueOrHandler(config.allowOutsideClick, e)) {\n      return;\n    }\n    e.preventDefault();\n    e.stopImmediatePropagation();\n  };\n  var addListeners = function addListeners2() {\n    if (!state.active) {\n      return;\n    }\n    activeFocusTraps.activateTrap(trap);\n    state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function() {\n      tryFocus(getInitialFocusNode());\n    }) : tryFocus(getInitialFocusNode());\n    doc.addEventListener(\"focusin\", checkFocusIn, true);\n    doc.addEventListener(\"mousedown\", checkPointerDown, {\n      capture: true,\n      passive: false\n    });\n    doc.addEventListener(\"touchstart\", checkPointerDown, {\n      capture: true,\n      passive: false\n    });\n    doc.addEventListener(\"click\", checkClick, {\n      capture: true,\n      passive: false\n    });\n    doc.addEventListener(\"keydown\", checkKey, {\n      capture: true,\n      passive: false\n    });\n    return trap;\n  };\n  var removeListeners = function removeListeners2() {\n    if (!state.active) {\n      return;\n    }\n    doc.removeEventListener(\"focusin\", checkFocusIn, true);\n    doc.removeEventListener(\"mousedown\", checkPointerDown, true);\n    doc.removeEventListener(\"touchstart\", checkPointerDown, true);\n    doc.removeEventListener(\"click\", checkClick, true);\n    doc.removeEventListener(\"keydown\", checkKey, true);\n    return trap;\n  };\n  trap = {\n    get active() {\n      return state.active;\n    },\n    get paused() {\n      return state.paused;\n    },\n    activate: function activate(activateOptions) {\n      if (state.active) {\n        return this;\n      }\n      var onActivate = getOption(activateOptions, \"onActivate\");\n      var onPostActivate = getOption(activateOptions, \"onPostActivate\");\n      var checkCanFocusTrap = getOption(activateOptions, \"checkCanFocusTrap\");\n      if (!checkCanFocusTrap) {\n        updateTabbableNodes();\n      }\n      state.active = true;\n      state.paused = false;\n      state.nodeFocusedBeforeActivation = doc.activeElement;\n      if (onActivate) {\n        onActivate();\n      }\n      var finishActivation = function finishActivation2() {\n        if (checkCanFocusTrap) {\n          updateTabbableNodes();\n        }\n        addListeners();\n        if (onPostActivate) {\n          onPostActivate();\n        }\n      };\n      if (checkCanFocusTrap) {\n        checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);\n        return this;\n      }\n      finishActivation();\n      return this;\n    },\n    deactivate: function deactivate(deactivateOptions) {\n      if (!state.active) {\n        return this;\n      }\n      var options = _objectSpread2({\n        onDeactivate: config.onDeactivate,\n        onPostDeactivate: config.onPostDeactivate,\n        checkCanReturnFocus: config.checkCanReturnFocus\n      }, deactivateOptions);\n      clearTimeout(state.delayInitialFocusTimer);\n      state.delayInitialFocusTimer = void 0;\n      removeListeners();\n      state.active = false;\n      state.paused = false;\n      activeFocusTraps.deactivateTrap(trap);\n      var onDeactivate = getOption(options, \"onDeactivate\");\n      var onPostDeactivate = getOption(options, \"onPostDeactivate\");\n      var checkCanReturnFocus = getOption(options, \"checkCanReturnFocus\");\n      var returnFocus = getOption(options, \"returnFocus\", \"returnFocusOnDeactivate\");\n      if (onDeactivate) {\n        onDeactivate();\n      }\n      var finishDeactivation = function finishDeactivation2() {\n        delay(function() {\n          if (returnFocus) {\n            tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));\n          }\n          if (onPostDeactivate) {\n            onPostDeactivate();\n          }\n        });\n      };\n      if (returnFocus && checkCanReturnFocus) {\n        checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);\n        return this;\n      }\n      finishDeactivation();\n      return this;\n    },\n    pause: function pause() {\n      if (state.paused || !state.active) {\n        return this;\n      }\n      state.paused = true;\n      removeListeners();\n      return this;\n    },\n    unpause: function unpause() {\n      if (!state.paused || !state.active) {\n        return this;\n      }\n      state.paused = false;\n      updateTabbableNodes();\n      addListeners();\n      return this;\n    },\n    updateContainerElements: function updateContainerElements(containerElements) {\n      var elementsAsArray = [].concat(containerElements).filter(Boolean);\n      state.containers = elementsAsArray.map(function(element) {\n        return typeof element === \"string\" ? doc.querySelector(element) : element;\n      });\n      if (state.active) {\n        updateTabbableNodes();\n      }\n      return this;\n    }\n  };\n  trap.updateContainerElements(elements);\n  return trap;\n};\n\n// packages/focus/src/index.js\nfunction src_default(Alpine) {\n  let lastFocused;\n  let currentFocused;\n  window.addEventListener(\"focusin\", () => {\n    lastFocused = currentFocused;\n    currentFocused = document.activeElement;\n  });\n  Alpine.magic(\"focus\", (el) => {\n    let within = el;\n    return {\n      __noscroll: false,\n      __wrapAround: false,\n      within(el2) {\n        within = el2;\n        return this;\n      },\n      withoutScrolling() {\n        this.__noscroll = true;\n        return this;\n      },\n      noscroll() {\n        this.__noscroll = true;\n        return this;\n      },\n      withWrapAround() {\n        this.__wrapAround = true;\n        return this;\n      },\n      wrap() {\n        return this.withWrapAround();\n      },\n      focusable(el2) {\n        return isFocusable(el2);\n      },\n      previouslyFocused() {\n        return lastFocused;\n      },\n      lastFocused() {\n        return lastFocused;\n      },\n      focused() {\n        return currentFocused;\n      },\n      focusables() {\n        if (Array.isArray(within))\n          return within;\n        return focusable(within, { displayCheck: \"none\" });\n      },\n      all() {\n        return this.focusables();\n      },\n      isFirst(el2) {\n        let els = this.all();\n        return els[0] && els[0].isSameNode(el2);\n      },\n      isLast(el2) {\n        let els = this.all();\n        return els.length && els.slice(-1)[0].isSameNode(el2);\n      },\n      getFirst() {\n        return this.all()[0];\n      },\n      getLast() {\n        return this.all().slice(-1)[0];\n      },\n      getNext() {\n        let list = this.all();\n        let current = document.activeElement;\n        if (list.indexOf(current) === -1)\n          return;\n        if (this.__wrapAround && list.indexOf(current) === list.length - 1) {\n          return list[0];\n        }\n        return list[list.indexOf(current) + 1];\n      },\n      getPrevious() {\n        let list = this.all();\n        let current = document.activeElement;\n        if (list.indexOf(current) === -1)\n          return;\n        if (this.__wrapAround && list.indexOf(current) === 0) {\n          return list.slice(-1)[0];\n        }\n        return list[list.indexOf(current) - 1];\n      },\n      first() {\n        this.focus(this.getFirst());\n      },\n      last() {\n        this.focus(this.getLast());\n      },\n      next() {\n        this.focus(this.getNext());\n      },\n      previous() {\n        this.focus(this.getPrevious());\n      },\n      prev() {\n        return this.previous();\n      },\n      focus(el2) {\n        if (!el2)\n          return;\n        setTimeout(() => {\n          if (!el2.hasAttribute(\"tabindex\"))\n            el2.setAttribute(\"tabindex\", \"0\");\n          el2.focus({ preventScroll: this.__noscroll });\n        });\n      }\n    };\n  });\n  Alpine.directive(\"trap\", Alpine.skipDuringClone(\n    (el, { expression, modifiers }, { effect, evaluateLater, cleanup }) => {\n      let evaluator = evaluateLater(expression);\n      let oldValue = false;\n      let options = {\n        escapeDeactivates: false,\n        allowOutsideClick: true,\n        fallbackFocus: () => el\n      };\n      if (modifiers.includes(\"noautofocus\")) {\n        options.initialFocus = false;\n      } else {\n        let autofocusEl = el.querySelector(\"[autofocus]\");\n        if (autofocusEl)\n          options.initialFocus = autofocusEl;\n      }\n      let trap = createFocusTrap(el, options);\n      let undoInert = () => {\n      };\n      let undoDisableScrolling = () => {\n      };\n      const releaseFocus = () => {\n        undoInert();\n        undoInert = () => {\n        };\n        undoDisableScrolling();\n        undoDisableScrolling = () => {\n        };\n        trap.deactivate({\n          returnFocus: !modifiers.includes(\"noreturn\")\n        });\n      };\n      effect(() => evaluator((value) => {\n        if (oldValue === value)\n          return;\n        if (value && !oldValue) {\n          if (modifiers.includes(\"noscroll\"))\n            undoDisableScrolling = disableScrolling();\n          if (modifiers.includes(\"inert\"))\n            undoInert = setInert(el);\n          setTimeout(() => {\n            trap.activate();\n          }, 15);\n        }\n        if (!value && oldValue) {\n          releaseFocus();\n        }\n        oldValue = !!value;\n      }));\n      cleanup(releaseFocus);\n    },\n    // When cloning, we only want to add aria-hidden attributes to the\n    // DOM and not try to actually trap, as trapping can mess with the\n    // live DOM and isn't just isolated to the cloned DOM.\n    (el, { expression, modifiers }, { evaluate }) => {\n      if (modifiers.includes(\"inert\") && evaluate(expression))\n        setInert(el);\n    }\n  ));\n}\nfunction setInert(el) {\n  let undos = [];\n  crawlSiblingsUp(el, (sibling) => {\n    let cache = sibling.hasAttribute(\"aria-hidden\");\n    sibling.setAttribute(\"aria-hidden\", \"true\");\n    undos.push(() => cache || sibling.removeAttribute(\"aria-hidden\"));\n  });\n  return () => {\n    while (undos.length)\n      undos.pop()();\n  };\n}\nfunction crawlSiblingsUp(el, callback) {\n  if (el.isSameNode(document.body) || !el.parentNode)\n    return;\n  Array.from(el.parentNode.children).forEach((sibling) => {\n    if (sibling.isSameNode(el)) {\n      crawlSiblingsUp(el.parentNode, callback);\n    } else {\n      callback(sibling);\n    }\n  });\n}\nfunction disableScrolling() {\n  let overflow = document.documentElement.style.overflow;\n  let paddingRight = document.documentElement.style.paddingRight;\n  let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;\n  document.documentElement.style.overflow = \"hidden\";\n  document.documentElement.style.paddingRight = `${scrollbarWidth}px`;\n  return () => {\n    document.documentElement.style.overflow = overflow;\n    document.documentElement.style.paddingRight = paddingRight;\n  };\n}\n\n// packages/focus/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as focus\n};\n/*! Bundled license information:\n\ntabbable/dist/index.esm.js:\n  (*!\n  * tabbable 5.3.3\n  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE\n  *)\n\nfocus-trap/dist/focus-trap.esm.js:\n  (*!\n  * focus-trap 6.9.4\n  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE\n  *)\n*/\n", "// packages/persist/src/index.js\nfunction src_default(Alpine) {\n  let persist = () => {\n    let alias;\n    let storage;\n    try {\n      storage = localStorage;\n    } catch (e) {\n      console.error(e);\n      console.warn(\"Alpine: $persist is using temporary storage since localStorage is unavailable.\");\n      let dummy = /* @__PURE__ */ new Map();\n      storage = {\n        getItem: dummy.get.bind(dummy),\n        setItem: dummy.set.bind(dummy)\n      };\n    }\n    return Alpine.interceptor((initialValue, getter, setter, path, key) => {\n      let lookup = alias || `_x_${path}`;\n      let initial = storageHas(lookup, storage) ? storageGet(lookup, storage) : initialValue;\n      setter(initial);\n      Alpine.effect(() => {\n        let value = getter();\n        storageSet(lookup, value, storage);\n        setter(value);\n      });\n      return initial;\n    }, (func) => {\n      func.as = (key) => {\n        alias = key;\n        return func;\n      }, func.using = (target) => {\n        storage = target;\n        return func;\n      };\n    });\n  };\n  Object.defineProperty(Alpine, \"$persist\", { get: () => persist() });\n  Alpine.magic(\"persist\", persist);\n  Alpine.persist = (key, { get, set }, storage = localStorage) => {\n    let initial = storageHas(key, storage) ? storageGet(key, storage) : get();\n    set(initial);\n    Alpine.effect(() => {\n      let value = get();\n      storageSet(key, value, storage);\n      set(value);\n    });\n  };\n}\nfunction storageHas(key, storage) {\n  return storage.getItem(key) !== null;\n}\nfunction storageGet(key, storage) {\n  return JSON.parse(storage.getItem(key, storage));\n}\nfunction storageSet(key, value, storage) {\n  storage.setItem(key, JSON.stringify(value));\n}\n\n// packages/persist/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as persist\n};\n", "// packages/intersect/src/index.js\nfunction src_default(Alpine) {\n  Alpine.directive(\"intersect\", Alpine.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => {\n    let evaluate = evaluateLater(expression);\n    let options = {\n      rootMargin: getRootMargin(modifiers),\n      threshold: getThreshold(modifiers)\n    };\n    let observer = new IntersectionObserver((entries) => {\n      entries.forEach((entry) => {\n        if (entry.isIntersecting === (value === \"leave\"))\n          return;\n        evaluate();\n        modifiers.includes(\"once\") && observer.disconnect();\n      });\n    }, options);\n    observer.observe(el);\n    cleanup(() => {\n      observer.disconnect();\n    });\n  }));\n}\nfunction getThreshold(modifiers) {\n  if (modifiers.includes(\"full\"))\n    return 0.99;\n  if (modifiers.includes(\"half\"))\n    return 0.5;\n  if (!modifiers.includes(\"threshold\"))\n    return 0;\n  let threshold = modifiers[modifiers.indexOf(\"threshold\") + 1];\n  if (threshold === \"100\")\n    return 1;\n  if (threshold === \"0\")\n    return 0;\n  return Number(`.${threshold}`);\n}\nfunction getLengthValue(rawValue) {\n  let match = rawValue.match(/^(-?[0-9]+)(px|%)?$/);\n  return match ? match[1] + (match[2] || \"px\") : void 0;\n}\nfunction getRootMargin(modifiers) {\n  const key = \"margin\";\n  const fallback = \"0px 0px 0px 0px\";\n  const index = modifiers.indexOf(key);\n  if (index === -1)\n    return fallback;\n  let values = [];\n  for (let i = 1; i < 5; i++) {\n    values.push(getLengthValue(modifiers[index + i] || \"\"));\n  }\n  values = values.filter((v) => v !== void 0);\n  return values.length ? values.join(\" \").trim() : fallback;\n}\n\n// packages/intersect/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as intersect\n};\n", "// node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs\nvar min = Math.min;\nvar max = Math.max;\nvar round = Math.round;\nvar floor = Math.floor;\nvar createCoords = (v) => ({\n  x: v,\n  y: v\n});\nvar oppositeSideMap = {\n  left: \"right\",\n  right: \"left\",\n  bottom: \"top\",\n  top: \"bottom\"\n};\nvar oppositeAlignmentMap = {\n  start: \"end\",\n  end: \"start\"\n};\nfunction clamp(start, value, end) {\n  return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n  return typeof value === \"function\" ? value(param) : value;\n}\nfunction getSide(placement) {\n  return placement.split(\"-\")[0];\n}\nfunction getAlignment(placement) {\n  return placement.split(\"-\")[1];\n}\nfunction getOppositeAxis(axis) {\n  return axis === \"x\" ? \"y\" : \"x\";\n}\nfunction getAxisLength(axis) {\n  return axis === \"y\" ? \"height\" : \"width\";\n}\nfunction getSideAxis(placement) {\n  return [\"top\", \"bottom\"].includes(getSide(placement)) ? \"y\" : \"x\";\n}\nfunction getAlignmentAxis(placement) {\n  return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n  if (rtl === void 0) {\n    rtl = false;\n  }\n  const alignment = getAlignment(placement);\n  const alignmentAxis = getAlignmentAxis(placement);\n  const length = getAxisLength(alignmentAxis);\n  let mainAlignmentSide = alignmentAxis === \"x\" ? alignment === (rtl ? \"end\" : \"start\") ? \"right\" : \"left\" : alignment === \"start\" ? \"bottom\" : \"top\";\n  if (rects.reference[length] > rects.floating[length]) {\n    mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n  }\n  return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n  const oppositePlacement = getOppositePlacement(placement);\n  return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n  return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n  const lr = [\"left\", \"right\"];\n  const rl = [\"right\", \"left\"];\n  const tb = [\"top\", \"bottom\"];\n  const bt = [\"bottom\", \"top\"];\n  switch (side) {\n    case \"top\":\n    case \"bottom\":\n      if (rtl)\n        return isStart ? rl : lr;\n      return isStart ? lr : rl;\n    case \"left\":\n    case \"right\":\n      return isStart ? tb : bt;\n    default:\n      return [];\n  }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n  const alignment = getAlignment(placement);\n  let list = getSideList(getSide(placement), direction === \"start\", rtl);\n  if (alignment) {\n    list = list.map((side) => side + \"-\" + alignment);\n    if (flipAlignment) {\n      list = list.concat(list.map(getOppositeAlignmentPlacement));\n    }\n  }\n  return list;\n}\nfunction getOppositePlacement(placement) {\n  return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n  return {\n    top: 0,\n    right: 0,\n    bottom: 0,\n    left: 0,\n    ...padding\n  };\n}\nfunction getPaddingObject(padding) {\n  return typeof padding !== \"number\" ? expandPaddingObject(padding) : {\n    top: padding,\n    right: padding,\n    bottom: padding,\n    left: padding\n  };\n}\nfunction rectToClientRect(rect) {\n  return {\n    ...rect,\n    top: rect.y,\n    left: rect.x,\n    right: rect.x + rect.width,\n    bottom: rect.y + rect.height\n  };\n}\n\n// node_modules/@floating-ui/core/dist/floating-ui.core.mjs\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n  let {\n    reference,\n    floating\n  } = _ref;\n  const sideAxis = getSideAxis(placement);\n  const alignmentAxis = getAlignmentAxis(placement);\n  const alignLength = getAxisLength(alignmentAxis);\n  const side = getSide(placement);\n  const isVertical = sideAxis === \"y\";\n  const commonX = reference.x + reference.width / 2 - floating.width / 2;\n  const commonY = reference.y + reference.height / 2 - floating.height / 2;\n  const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n  let coords;\n  switch (side) {\n    case \"top\":\n      coords = {\n        x: commonX,\n        y: reference.y - floating.height\n      };\n      break;\n    case \"bottom\":\n      coords = {\n        x: commonX,\n        y: reference.y + reference.height\n      };\n      break;\n    case \"right\":\n      coords = {\n        x: reference.x + reference.width,\n        y: commonY\n      };\n      break;\n    case \"left\":\n      coords = {\n        x: reference.x - floating.width,\n        y: commonY\n      };\n      break;\n    default:\n      coords = {\n        x: reference.x,\n        y: reference.y\n      };\n  }\n  switch (getAlignment(placement)) {\n    case \"start\":\n      coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n      break;\n    case \"end\":\n      coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n      break;\n  }\n  return coords;\n}\nvar computePosition = async (reference, floating, config) => {\n  const {\n    placement = \"bottom\",\n    strategy = \"absolute\",\n    middleware = [],\n    platform: platform2\n  } = config;\n  const validMiddleware = middleware.filter(Boolean);\n  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));\n  let rects = await platform2.getElementRects({\n    reference,\n    floating,\n    strategy\n  });\n  let {\n    x,\n    y\n  } = computeCoordsFromPlacement(rects, placement, rtl);\n  let statefulPlacement = placement;\n  let middlewareData = {};\n  let resetCount = 0;\n  for (let i = 0; i < validMiddleware.length; i++) {\n    const {\n      name,\n      fn\n    } = validMiddleware[i];\n    const {\n      x: nextX,\n      y: nextY,\n      data,\n      reset\n    } = await fn({\n      x,\n      y,\n      initialPlacement: placement,\n      placement: statefulPlacement,\n      strategy,\n      middlewareData,\n      rects,\n      platform: platform2,\n      elements: {\n        reference,\n        floating\n      }\n    });\n    x = nextX != null ? nextX : x;\n    y = nextY != null ? nextY : y;\n    middlewareData = {\n      ...middlewareData,\n      [name]: {\n        ...middlewareData[name],\n        ...data\n      }\n    };\n    if (reset && resetCount <= 50) {\n      resetCount++;\n      if (typeof reset === \"object\") {\n        if (reset.placement) {\n          statefulPlacement = reset.placement;\n        }\n        if (reset.rects) {\n          rects = reset.rects === true ? await platform2.getElementRects({\n            reference,\n            floating,\n            strategy\n          }) : reset.rects;\n        }\n        ({\n          x,\n          y\n        } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n      }\n      i = -1;\n      continue;\n    }\n  }\n  return {\n    x,\n    y,\n    placement: statefulPlacement,\n    strategy,\n    middlewareData\n  };\n};\nasync function detectOverflow(state, options) {\n  var _await$platform$isEle;\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    x,\n    y,\n    platform: platform2,\n    rects,\n    elements,\n    strategy\n  } = state;\n  const {\n    boundary = \"clippingAncestors\",\n    rootBoundary = \"viewport\",\n    elementContext = \"floating\",\n    altBoundary = false,\n    padding = 0\n  } = evaluate(options, state);\n  const paddingObject = getPaddingObject(padding);\n  const altContext = elementContext === \"floating\" ? \"reference\" : \"floating\";\n  const element = elements[altBoundary ? altContext : elementContext];\n  const clippingClientRect = rectToClientRect(await platform2.getClippingRect({\n    element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),\n    boundary,\n    rootBoundary,\n    strategy\n  }));\n  const rect = elementContext === \"floating\" ? {\n    ...rects.floating,\n    x,\n    y\n  } : rects.reference;\n  const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));\n  const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {\n    x: 1,\n    y: 1\n  } : {\n    x: 1,\n    y: 1\n  };\n  const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({\n    rect,\n    offsetParent,\n    strategy\n  }) : rect);\n  return {\n    top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n    bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n    left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n    right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n  };\n}\nvar flip = function(options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: \"flip\",\n    options,\n    async fn(state) {\n      var _middlewareData$arrow, _middlewareData$flip;\n      const {\n        placement,\n        middlewareData,\n        rects,\n        initialPlacement,\n        platform: platform2,\n        elements\n      } = state;\n      const {\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = true,\n        fallbackPlacements: specifiedFallbackPlacements,\n        fallbackStrategy = \"bestFit\",\n        fallbackAxisSideDirection = \"none\",\n        flipAlignment = true,\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n        return {};\n      }\n      const side = getSide(placement);\n      const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n      const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));\n      const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n      if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== \"none\") {\n        fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n      }\n      const placements2 = [initialPlacement, ...fallbackPlacements];\n      const overflow = await detectOverflow(state, detectOverflowOptions);\n      const overflows = [];\n      let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n      if (checkMainAxis) {\n        overflows.push(overflow[side]);\n      }\n      if (checkCrossAxis) {\n        const sides2 = getAlignmentSides(placement, rects, rtl);\n        overflows.push(overflow[sides2[0]], overflow[sides2[1]]);\n      }\n      overflowsData = [...overflowsData, {\n        placement,\n        overflows\n      }];\n      if (!overflows.every((side2) => side2 <= 0)) {\n        var _middlewareData$flip2, _overflowsData$filter;\n        const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n        const nextPlacement = placements2[nextIndex];\n        if (nextPlacement) {\n          return {\n            data: {\n              index: nextIndex,\n              overflows: overflowsData\n            },\n            reset: {\n              placement: nextPlacement\n            }\n          };\n        }\n        let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n        if (!resetPlacement) {\n          switch (fallbackStrategy) {\n            case \"bestFit\": {\n              var _overflowsData$map$so;\n              const placement2 = (_overflowsData$map$so = overflowsData.map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];\n              if (placement2) {\n                resetPlacement = placement2;\n              }\n              break;\n            }\n            case \"initialPlacement\":\n              resetPlacement = initialPlacement;\n              break;\n          }\n        }\n        if (placement !== resetPlacement) {\n          return {\n            reset: {\n              placement: resetPlacement\n            }\n          };\n        }\n      }\n      return {};\n    }\n  };\n};\nasync function convertValueToCoords(state, options) {\n  const {\n    placement,\n    platform: platform2,\n    elements\n  } = state;\n  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));\n  const side = getSide(placement);\n  const alignment = getAlignment(placement);\n  const isVertical = getSideAxis(placement) === \"y\";\n  const mainAxisMulti = [\"left\", \"top\"].includes(side) ? -1 : 1;\n  const crossAxisMulti = rtl && isVertical ? -1 : 1;\n  const rawValue = evaluate(options, state);\n  let {\n    mainAxis,\n    crossAxis,\n    alignmentAxis\n  } = typeof rawValue === \"number\" ? {\n    mainAxis: rawValue,\n    crossAxis: 0,\n    alignmentAxis: null\n  } : {\n    mainAxis: 0,\n    crossAxis: 0,\n    alignmentAxis: null,\n    ...rawValue\n  };\n  if (alignment && typeof alignmentAxis === \"number\") {\n    crossAxis = alignment === \"end\" ? alignmentAxis * -1 : alignmentAxis;\n  }\n  return isVertical ? {\n    x: crossAxis * crossAxisMulti,\n    y: mainAxis * mainAxisMulti\n  } : {\n    x: mainAxis * mainAxisMulti,\n    y: crossAxis * crossAxisMulti\n  };\n}\nvar offset = function(options) {\n  if (options === void 0) {\n    options = 0;\n  }\n  return {\n    name: \"offset\",\n    options,\n    async fn(state) {\n      const {\n        x,\n        y\n      } = state;\n      const diffCoords = await convertValueToCoords(state, options);\n      return {\n        x: x + diffCoords.x,\n        y: y + diffCoords.y,\n        data: diffCoords\n      };\n    }\n  };\n};\nvar shift = function(options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: \"shift\",\n    options,\n    async fn(state) {\n      const {\n        x,\n        y,\n        placement\n      } = state;\n      const {\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = false,\n        limiter = {\n          fn: (_ref) => {\n            let {\n              x: x2,\n              y: y2\n            } = _ref;\n            return {\n              x: x2,\n              y: y2\n            };\n          }\n        },\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      const coords = {\n        x,\n        y\n      };\n      const overflow = await detectOverflow(state, detectOverflowOptions);\n      const crossAxis = getSideAxis(getSide(placement));\n      const mainAxis = getOppositeAxis(crossAxis);\n      let mainAxisCoord = coords[mainAxis];\n      let crossAxisCoord = coords[crossAxis];\n      if (checkMainAxis) {\n        const minSide = mainAxis === \"y\" ? \"top\" : \"left\";\n        const maxSide = mainAxis === \"y\" ? \"bottom\" : \"right\";\n        const min2 = mainAxisCoord + overflow[minSide];\n        const max2 = mainAxisCoord - overflow[maxSide];\n        mainAxisCoord = clamp(min2, mainAxisCoord, max2);\n      }\n      if (checkCrossAxis) {\n        const minSide = crossAxis === \"y\" ? \"top\" : \"left\";\n        const maxSide = crossAxis === \"y\" ? \"bottom\" : \"right\";\n        const min2 = crossAxisCoord + overflow[minSide];\n        const max2 = crossAxisCoord - overflow[maxSide];\n        crossAxisCoord = clamp(min2, crossAxisCoord, max2);\n      }\n      const limitedCoords = limiter.fn({\n        ...state,\n        [mainAxis]: mainAxisCoord,\n        [crossAxis]: crossAxisCoord\n      });\n      return {\n        ...limitedCoords,\n        data: {\n          x: limitedCoords.x - x,\n          y: limitedCoords.y - y\n        }\n      };\n    }\n  };\n};\n\n// node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs\nfunction getNodeName(node) {\n  if (isNode(node)) {\n    return (node.nodeName || \"\").toLowerCase();\n  }\n  return \"#document\";\n}\nfunction getWindow(node) {\n  var _node$ownerDocument;\n  return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n  var _ref;\n  return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n  return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n  return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n  return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n  if (typeof ShadowRoot === \"undefined\") {\n    return false;\n  }\n  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n  const {\n    overflow,\n    overflowX,\n    overflowY,\n    display\n  } = getComputedStyle(element);\n  return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && ![\"inline\", \"contents\"].includes(display);\n}\nfunction isTableElement(element) {\n  return [\"table\", \"td\", \"th\"].includes(getNodeName(element));\n}\nfunction isContainingBlock(element) {\n  const webkit = isWebKit();\n  const css = getComputedStyle(element);\n  return css.transform !== \"none\" || css.perspective !== \"none\" || (css.containerType ? css.containerType !== \"normal\" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== \"none\" : false) || !webkit && (css.filter ? css.filter !== \"none\" : false) || [\"transform\", \"perspective\", \"filter\"].some((value) => (css.willChange || \"\").includes(value)) || [\"paint\", \"layout\", \"strict\", \"content\"].some((value) => (css.contain || \"\").includes(value));\n}\nfunction getContainingBlock(element) {\n  let currentNode = getParentNode(element);\n  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n    if (isContainingBlock(currentNode)) {\n      return currentNode;\n    } else {\n      currentNode = getParentNode(currentNode);\n    }\n  }\n  return null;\n}\nfunction isWebKit() {\n  if (typeof CSS === \"undefined\" || !CSS.supports)\n    return false;\n  return CSS.supports(\"-webkit-backdrop-filter\", \"none\");\n}\nfunction isLastTraversableNode(node) {\n  return [\"html\", \"body\", \"#document\"].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n  return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n  if (isElement(element)) {\n    return {\n      scrollLeft: element.scrollLeft,\n      scrollTop: element.scrollTop\n    };\n  }\n  return {\n    scrollLeft: element.pageXOffset,\n    scrollTop: element.pageYOffset\n  };\n}\nfunction getParentNode(node) {\n  if (getNodeName(node) === \"html\") {\n    return node;\n  }\n  const result = (\n    // Step into the shadow DOM of the parent of a slotted node.\n    node.assignedSlot || // DOM Element detected.\n    node.parentNode || // ShadowRoot detected.\n    isShadowRoot(node) && node.host || // Fallback.\n    getDocumentElement(node)\n  );\n  return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n  const parentNode = getParentNode(node);\n  if (isLastTraversableNode(parentNode)) {\n    return node.ownerDocument ? node.ownerDocument.body : node.body;\n  }\n  if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n    return parentNode;\n  }\n  return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n  var _node$ownerDocument2;\n  if (list === void 0) {\n    list = [];\n  }\n  if (traverseIframes === void 0) {\n    traverseIframes = true;\n  }\n  const scrollableAncestor = getNearestOverflowAncestor(node);\n  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n  const win = getWindow(scrollableAncestor);\n  if (isBody) {\n    return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);\n  }\n  return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\n\n// node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs\nfunction getCssDimensions(element) {\n  const css = getComputedStyle(element);\n  let width = parseFloat(css.width) || 0;\n  let height = parseFloat(css.height) || 0;\n  const hasOffset = isHTMLElement(element);\n  const offsetWidth = hasOffset ? element.offsetWidth : width;\n  const offsetHeight = hasOffset ? element.offsetHeight : height;\n  const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n  if (shouldFallback) {\n    width = offsetWidth;\n    height = offsetHeight;\n  }\n  return {\n    width,\n    height,\n    $: shouldFallback\n  };\n}\nfunction unwrapElement(element) {\n  return !isElement(element) ? element.contextElement : element;\n}\nfunction getScale(element) {\n  const domElement = unwrapElement(element);\n  if (!isHTMLElement(domElement)) {\n    return createCoords(1);\n  }\n  const rect = domElement.getBoundingClientRect();\n  const {\n    width,\n    height,\n    $\n  } = getCssDimensions(domElement);\n  let x = ($ ? round(rect.width) : rect.width) / width;\n  let y = ($ ? round(rect.height) : rect.height) / height;\n  if (!x || !Number.isFinite(x)) {\n    x = 1;\n  }\n  if (!y || !Number.isFinite(y)) {\n    y = 1;\n  }\n  return {\n    x,\n    y\n  };\n}\nvar noOffsets = /* @__PURE__ */ createCoords(0);\nfunction getVisualOffsets(element) {\n  const win = getWindow(element);\n  if (!isWebKit() || !win.visualViewport) {\n    return noOffsets;\n  }\n  return {\n    x: win.visualViewport.offsetLeft,\n    y: win.visualViewport.offsetTop\n  };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n  if (isFixed === void 0) {\n    isFixed = false;\n  }\n  if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n    return false;\n  }\n  return isFixed;\n}\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n  if (includeScale === void 0) {\n    includeScale = false;\n  }\n  if (isFixedStrategy === void 0) {\n    isFixedStrategy = false;\n  }\n  const clientRect = element.getBoundingClientRect();\n  const domElement = unwrapElement(element);\n  let scale = createCoords(1);\n  if (includeScale) {\n    if (offsetParent) {\n      if (isElement(offsetParent)) {\n        scale = getScale(offsetParent);\n      }\n    } else {\n      scale = getScale(element);\n    }\n  }\n  const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n  let x = (clientRect.left + visualOffsets.x) / scale.x;\n  let y = (clientRect.top + visualOffsets.y) / scale.y;\n  let width = clientRect.width / scale.x;\n  let height = clientRect.height / scale.y;\n  if (domElement) {\n    const win = getWindow(domElement);\n    const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n    let currentIFrame = win.frameElement;\n    while (currentIFrame && offsetParent && offsetWin !== win) {\n      const iframeScale = getScale(currentIFrame);\n      const iframeRect = currentIFrame.getBoundingClientRect();\n      const css = getComputedStyle(currentIFrame);\n      const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n      const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n      x *= iframeScale.x;\n      y *= iframeScale.y;\n      width *= iframeScale.x;\n      height *= iframeScale.y;\n      x += left;\n      y += top;\n      currentIFrame = getWindow(currentIFrame).frameElement;\n    }\n  }\n  return rectToClientRect({\n    width,\n    height,\n    x,\n    y\n  });\n}\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n  let {\n    rect,\n    offsetParent,\n    strategy\n  } = _ref;\n  const isOffsetParentAnElement = isHTMLElement(offsetParent);\n  const documentElement = getDocumentElement(offsetParent);\n  if (offsetParent === documentElement) {\n    return rect;\n  }\n  let scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  let scale = createCoords(1);\n  const offsets = createCoords(0);\n  if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== \"fixed\") {\n    if (getNodeName(offsetParent) !== \"body\" || isOverflowElement(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n    if (isHTMLElement(offsetParent)) {\n      const offsetRect = getBoundingClientRect(offsetParent);\n      scale = getScale(offsetParent);\n      offsets.x = offsetRect.x + offsetParent.clientLeft;\n      offsets.y = offsetRect.y + offsetParent.clientTop;\n    }\n  }\n  return {\n    width: rect.width * scale.x,\n    height: rect.height * scale.y,\n    x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,\n    y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y\n  };\n}\nfunction getClientRects(element) {\n  return Array.from(element.getClientRects());\n}\nfunction getWindowScrollBarX(element) {\n  return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;\n}\nfunction getDocumentRect(element) {\n  const html = getDocumentElement(element);\n  const scroll = getNodeScroll(element);\n  const body = element.ownerDocument.body;\n  const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n  const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n  let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n  const y = -scroll.scrollTop;\n  if (getComputedStyle(body).direction === \"rtl\") {\n    x += max(html.clientWidth, body.clientWidth) - width;\n  }\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getViewportRect(element, strategy) {\n  const win = getWindow(element);\n  const html = getDocumentElement(element);\n  const visualViewport = win.visualViewport;\n  let width = html.clientWidth;\n  let height = html.clientHeight;\n  let x = 0;\n  let y = 0;\n  if (visualViewport) {\n    width = visualViewport.width;\n    height = visualViewport.height;\n    const visualViewportBased = isWebKit();\n    if (!visualViewportBased || visualViewportBased && strategy === \"fixed\") {\n      x = visualViewport.offsetLeft;\n      y = visualViewport.offsetTop;\n    }\n  }\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getInnerBoundingClientRect(element, strategy) {\n  const clientRect = getBoundingClientRect(element, true, strategy === \"fixed\");\n  const top = clientRect.top + element.clientTop;\n  const left = clientRect.left + element.clientLeft;\n  const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n  const width = element.clientWidth * scale.x;\n  const height = element.clientHeight * scale.y;\n  const x = left * scale.x;\n  const y = top * scale.y;\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n  let rect;\n  if (clippingAncestor === \"viewport\") {\n    rect = getViewportRect(element, strategy);\n  } else if (clippingAncestor === \"document\") {\n    rect = getDocumentRect(getDocumentElement(element));\n  } else if (isElement(clippingAncestor)) {\n    rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n  } else {\n    const visualOffsets = getVisualOffsets(element);\n    rect = {\n      ...clippingAncestor,\n      x: clippingAncestor.x - visualOffsets.x,\n      y: clippingAncestor.y - visualOffsets.y\n    };\n  }\n  return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n  const parentNode = getParentNode(element);\n  if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n    return false;\n  }\n  return getComputedStyle(parentNode).position === \"fixed\" || hasFixedPositionAncestor(parentNode, stopNode);\n}\nfunction getClippingElementAncestors(element, cache) {\n  const cachedResult = cache.get(element);\n  if (cachedResult) {\n    return cachedResult;\n  }\n  let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== \"body\");\n  let currentContainingBlockComputedStyle = null;\n  const elementIsFixed = getComputedStyle(element).position === \"fixed\";\n  let currentNode = elementIsFixed ? getParentNode(element) : element;\n  while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n    const computedStyle = getComputedStyle(currentNode);\n    const currentNodeIsContaining = isContainingBlock(currentNode);\n    if (!currentNodeIsContaining && computedStyle.position === \"fixed\") {\n      currentContainingBlockComputedStyle = null;\n    }\n    const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === \"static\" && !!currentContainingBlockComputedStyle && [\"absolute\", \"fixed\"].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n    if (shouldDropCurrentNode) {\n      result = result.filter((ancestor) => ancestor !== currentNode);\n    } else {\n      currentContainingBlockComputedStyle = computedStyle;\n    }\n    currentNode = getParentNode(currentNode);\n  }\n  cache.set(element, result);\n  return result;\n}\nfunction getClippingRect(_ref) {\n  let {\n    element,\n    boundary,\n    rootBoundary,\n    strategy\n  } = _ref;\n  const elementClippingAncestors = boundary === \"clippingAncestors\" ? getClippingElementAncestors(element, this._c) : [].concat(boundary);\n  const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n  const firstClippingAncestor = clippingAncestors[0];\n  const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n    const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n    accRect.top = max(rect.top, accRect.top);\n    accRect.right = min(rect.right, accRect.right);\n    accRect.bottom = min(rect.bottom, accRect.bottom);\n    accRect.left = max(rect.left, accRect.left);\n    return accRect;\n  }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n  return {\n    width: clippingRect.right - clippingRect.left,\n    height: clippingRect.bottom - clippingRect.top,\n    x: clippingRect.left,\n    y: clippingRect.top\n  };\n}\nfunction getDimensions(element) {\n  return getCssDimensions(element);\n}\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n  const isOffsetParentAnElement = isHTMLElement(offsetParent);\n  const documentElement = getDocumentElement(offsetParent);\n  const isFixed = strategy === \"fixed\";\n  const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n  let scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  const offsets = createCoords(0);\n  if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n    if (getNodeName(offsetParent) !== \"body\" || isOverflowElement(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n    if (isOffsetParentAnElement) {\n      const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n      offsets.x = offsetRect.x + offsetParent.clientLeft;\n      offsets.y = offsetRect.y + offsetParent.clientTop;\n    } else if (documentElement) {\n      offsets.x = getWindowScrollBarX(documentElement);\n    }\n  }\n  return {\n    x: rect.left + scroll.scrollLeft - offsets.x,\n    y: rect.top + scroll.scrollTop - offsets.y,\n    width: rect.width,\n    height: rect.height\n  };\n}\nfunction getTrueOffsetParent(element, polyfill) {\n  if (!isHTMLElement(element) || getComputedStyle(element).position === \"fixed\") {\n    return null;\n  }\n  if (polyfill) {\n    return polyfill(element);\n  }\n  return element.offsetParent;\n}\nfunction getOffsetParent(element, polyfill) {\n  const window2 = getWindow(element);\n  if (!isHTMLElement(element)) {\n    return window2;\n  }\n  let offsetParent = getTrueOffsetParent(element, polyfill);\n  while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === \"static\") {\n    offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n  }\n  if (offsetParent && (getNodeName(offsetParent) === \"html\" || getNodeName(offsetParent) === \"body\" && getComputedStyle(offsetParent).position === \"static\" && !isContainingBlock(offsetParent))) {\n    return window2;\n  }\n  return offsetParent || getContainingBlock(element) || window2;\n}\nvar getElementRects = async function(_ref) {\n  let {\n    reference,\n    floating,\n    strategy\n  } = _ref;\n  const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n  const getDimensionsFn = this.getDimensions;\n  return {\n    reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),\n    floating: {\n      x: 0,\n      y: 0,\n      ...await getDimensionsFn(floating)\n    }\n  };\n};\nfunction isRTL(element) {\n  return getComputedStyle(element).direction === \"rtl\";\n}\nvar platform = {\n  convertOffsetParentRelativeRectToViewportRelativeRect,\n  getDocumentElement,\n  getClippingRect,\n  getOffsetParent,\n  getElementRects,\n  getClientRects,\n  getDimensions,\n  getScale,\n  isElement,\n  isRTL\n};\nfunction observeMove(element, onMove) {\n  let io = null;\n  let timeoutId;\n  const root = getDocumentElement(element);\n  function cleanup() {\n    clearTimeout(timeoutId);\n    io && io.disconnect();\n    io = null;\n  }\n  function refresh(skip, threshold) {\n    if (skip === void 0) {\n      skip = false;\n    }\n    if (threshold === void 0) {\n      threshold = 1;\n    }\n    cleanup();\n    const {\n      left,\n      top,\n      width,\n      height\n    } = element.getBoundingClientRect();\n    if (!skip) {\n      onMove();\n    }\n    if (!width || !height) {\n      return;\n    }\n    const insetTop = floor(top);\n    const insetRight = floor(root.clientWidth - (left + width));\n    const insetBottom = floor(root.clientHeight - (top + height));\n    const insetLeft = floor(left);\n    const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n    const options = {\n      rootMargin,\n      threshold: max(0, min(1, threshold)) || 1\n    };\n    let isFirstUpdate = true;\n    function handleObserve(entries) {\n      const ratio = entries[0].intersectionRatio;\n      if (ratio !== threshold) {\n        if (!isFirstUpdate) {\n          return refresh();\n        }\n        if (!ratio) {\n          timeoutId = setTimeout(() => {\n            refresh(false, 1e-7);\n          }, 100);\n        } else {\n          refresh(false, ratio);\n        }\n      }\n      isFirstUpdate = false;\n    }\n    try {\n      io = new IntersectionObserver(handleObserve, {\n        ...options,\n        // Handle <iframe>s\n        root: root.ownerDocument\n      });\n    } catch (e) {\n      io = new IntersectionObserver(handleObserve, options);\n    }\n    io.observe(element);\n  }\n  refresh(true);\n  return cleanup;\n}\nfunction autoUpdate(reference, floating, update, options) {\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    ancestorScroll = true,\n    ancestorResize = true,\n    elementResize = typeof ResizeObserver === \"function\",\n    layoutShift = typeof IntersectionObserver === \"function\",\n    animationFrame = false\n  } = options;\n  const referenceEl = unwrapElement(reference);\n  const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];\n  ancestors.forEach((ancestor) => {\n    ancestorScroll && ancestor.addEventListener(\"scroll\", update, {\n      passive: true\n    });\n    ancestorResize && ancestor.addEventListener(\"resize\", update);\n  });\n  const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n  let reobserveFrame = -1;\n  let resizeObserver = null;\n  if (elementResize) {\n    resizeObserver = new ResizeObserver((_ref) => {\n      let [firstEntry] = _ref;\n      if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n        resizeObserver.unobserve(floating);\n        cancelAnimationFrame(reobserveFrame);\n        reobserveFrame = requestAnimationFrame(() => {\n          resizeObserver && resizeObserver.observe(floating);\n        });\n      }\n      update();\n    });\n    if (referenceEl && !animationFrame) {\n      resizeObserver.observe(referenceEl);\n    }\n    resizeObserver.observe(floating);\n  }\n  let frameId;\n  let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n  if (animationFrame) {\n    frameLoop();\n  }\n  function frameLoop() {\n    const nextRefRect = getBoundingClientRect(reference);\n    if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {\n      update();\n    }\n    prevRefRect = nextRefRect;\n    frameId = requestAnimationFrame(frameLoop);\n  }\n  update();\n  return () => {\n    ancestors.forEach((ancestor) => {\n      ancestorScroll && ancestor.removeEventListener(\"scroll\", update);\n      ancestorResize && ancestor.removeEventListener(\"resize\", update);\n    });\n    cleanupIo && cleanupIo();\n    resizeObserver && resizeObserver.disconnect();\n    resizeObserver = null;\n    if (animationFrame) {\n      cancelAnimationFrame(frameId);\n    }\n  };\n}\nvar computePosition2 = (reference, floating, options) => {\n  const cache = /* @__PURE__ */ new Map();\n  const mergedOptions = {\n    platform,\n    ...options\n  };\n  const platformWithCache = {\n    ...mergedOptions.platform,\n    _c: cache\n  };\n  return computePosition(reference, floating, {\n    ...mergedOptions,\n    platform: platformWithCache\n  });\n};\n\n// packages/anchor/src/index.js\nfunction src_default(Alpine) {\n  Alpine.magic(\"anchor\", (el) => {\n    if (!el._x_anchor)\n      throw \"Alpine: No x-anchor directive found on element using $anchor...\";\n    return el._x_anchor;\n  });\n  Alpine.interceptClone((from, to) => {\n    if (from && from._x_anchor && !to._x_anchor) {\n      to._x_anchor = from._x_anchor;\n    }\n  });\n  Alpine.directive(\"anchor\", Alpine.skipDuringClone(\n    (el, { expression, modifiers, value }, { cleanup, evaluate: evaluate2 }) => {\n      let { placement, offsetValue, unstyled } = getOptions(modifiers);\n      el._x_anchor = Alpine.reactive({ x: 0, y: 0 });\n      let reference = evaluate2(expression);\n      if (!reference)\n        throw \"Alpine: no element provided to x-anchor...\";\n      let compute = () => {\n        let previousValue;\n        computePosition2(reference, el, {\n          placement,\n          middleware: [flip(), shift({ padding: 5 }), offset(offsetValue)]\n        }).then(({ x, y }) => {\n          unstyled || setStyles(el, x, y);\n          if (JSON.stringify({ x, y }) !== previousValue) {\n            el._x_anchor.x = x;\n            el._x_anchor.y = y;\n          }\n          previousValue = JSON.stringify({ x, y });\n        });\n      };\n      let release = autoUpdate(reference, el, () => compute());\n      cleanup(() => release());\n    },\n    // When cloning (or \"morphing\"), we will graft the style and position data from the live tree...\n    (el, { expression, modifiers, value }, { cleanup, evaluate: evaluate2 }) => {\n      let { placement, offsetValue, unstyled } = getOptions(modifiers);\n      if (el._x_anchor) {\n        unstyled || setStyles(el, el._x_anchor.x, el._x_anchor.y);\n      }\n    }\n  ));\n}\nfunction setStyles(el, x, y) {\n  Object.assign(el.style, {\n    left: x + \"px\",\n    top: y + \"px\",\n    position: \"absolute\"\n  });\n}\nfunction getOptions(modifiers) {\n  let positions = [\"top\", \"top-start\", \"top-end\", \"right\", \"right-start\", \"right-end\", \"bottom\", \"bottom-start\", \"bottom-end\", \"left\", \"left-start\", \"left-end\"];\n  let placement = positions.find((i) => modifiers.includes(i));\n  let offsetValue = 0;\n  if (modifiers.includes(\"offset\")) {\n    let idx = modifiers.findIndex((i) => i === \"offset\");\n    offsetValue = modifiers[idx + 1] !== void 0 ? Number(modifiers[idx + 1]) : offsetValue;\n  }\n  let unstyled = modifiers.includes(\"no-style\");\n  return { placement, offsetValue, unstyled };\n}\n\n// packages/anchor/builds/module.js\nvar module_default = src_default;\nexport {\n  src_default as anchor,\n  module_default as default\n};\n", "\r\nexport function updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks() {\r\n    // Create a history state entry for the initial page load.\r\n    // (This is so later hitting back can restore this page).\r\n    let url = new URL(window.location.href, document.baseURI)\r\n\r\n    replaceUrl(url, document.documentElement.outerHTML)\r\n}\r\n\r\nexport function whenTheBackOrForwardButtonIsClicked(callback) {\r\n    window.addEventListener('popstate', e => {\r\n        let state = e.state || {}\r\n\r\n        let alpine = state.alpine || {}\r\n\r\n        if (! alpine._html) return\r\n\r\n        let html = fromSessionStorage(alpine._html)\r\n\r\n        callback(html)\r\n    })\r\n}\r\n\r\nexport function updateUrlAndStoreLatestHtmlForFutureBackButtons(html, destination) {\r\n    pushUrl(destination, html)\r\n}\r\n\r\nexport function pushUrl(url, html) {\r\n    updateUrl('pushState', url, html)\r\n}\r\n\r\nexport function replaceUrl(url, html) {\r\n    updateUrl('replaceState', url, html)\r\n}\r\n\r\nfunction updateUrl(method, url, html) {\r\n    let key = (new Date).getTime()\r\n\r\n    tryToStoreInSession(key, html)\r\n\r\n    let state = history.state || {}\r\n\r\n    if (! state.alpine) state.alpine = {}\r\n\r\n    state.alpine._html = key\r\n\r\n    try {\r\n        // 640k character limit:\r\n        history[method](state, document.title, url)\r\n    } catch (error) {\r\n        if (error instanceof DOMException && error.name === 'SecurityError') {\r\n            console.error('Livewire: You can\\'t use wire:navigate with a link to a different root domain: '+url)\r\n        }\r\n\r\n        console.error(error)\r\n    }\r\n}\r\n\r\nexport function fromSessionStorage(timestamp) {\r\n    let state = JSON.parse(sessionStorage.getItem('alpine:'+timestamp))\r\n\r\n    return state\r\n}\r\n\r\nfunction tryToStoreInSession(timestamp, value) {\r\n    // sessionStorage has a max storage limit (usally 5MB).\r\n    // If we meet that limit, we'll start removing entries\r\n    // (oldest first), until there's enough space to store\r\n    // the new one.\r\n    try {\r\n        sessionStorage.setItem('alpine:'+timestamp, JSON.stringify(value))\r\n    } catch (error) {\r\n        // 22 is Chrome, 1-14 is other browsers.\r\n        if (! [22, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14].includes(error.code)) return\r\n\r\n        let oldestTimestamp = Object.keys(sessionStorage)\r\n            .map(key => Number(key.replace('alpine:', '')))\r\n            .sort()\r\n            .shift()\r\n\r\n        if (! oldestTimestamp) return\r\n\r\n        sessionStorage.removeItem('alpine:'+oldestTimestamp)\r\n\r\n        tryToStoreInSession(timestamp, value)\r\n    }\r\n}\r\n", "\r\nexport function whenThisLinkIsPressed(el, callback) {\r\n    let isProgrammaticClick = e => ! e.isTrusted\r\n    let isNotPlainLeftClick = e => (e.which > 1) || (e.altKey) || (e.ctrlKey) || (e.metaKey) || (e.shiftKey)\r\n    let isNotPlainEnterKey = (e) => (e.which !== 13) || (e.altKey) || (e.ctrlKey) || (e.metaKey) || (e.shiftKey)\r\n\r\n    el.addEventListener('click', e => {\r\n        // This allows programmatic clicking of links via: `$0.click()`...\r\n        if (isProgrammaticClick(e)) {\r\n            e.preventDefault()\r\n\r\n            callback(whenReleased => whenReleased())\r\n\r\n            return\r\n        }\r\n\r\n        // This allows cmd+click and such to still work as expected...\r\n        if (isNotPlainLeftClick(e)) return;\r\n\r\n        // If it's a plain left click, we want to prevent \"click\" and let \"mouseup\" do its thing...\r\n        e.preventDefault()\r\n    })\r\n\r\n    el.addEventListener('mousedown', e => {\r\n        // We only care about left clicks for wire:navigate...\r\n        if (isNotPlainLeftClick(e)) return;\r\n\r\n        e.preventDefault()\r\n\r\n        callback((whenReleased) => {\r\n            let handler = e => {\r\n                e.preventDefault()\r\n\r\n                whenReleased()\r\n\r\n                el.removeEventListener('mouseup', handler)\r\n            }\r\n\r\n            el.addEventListener('mouseup', handler)\r\n        })\r\n    })\r\n\r\n    el.addEventListener(\"keydown\", e => {\r\n        // We only care about the enter key...\r\n        if (isNotPlainEnterKey(e)) return;\r\n\r\n        e.preventDefault()\r\n\r\n        callback(whenReleased => whenReleased())\r\n    })\r\n}\r\n\r\nexport function whenThisLinkIsHoveredFor(el, ms = 60, callback) {\r\n    el.addEventListener('mouseenter', e => {\r\n        let timeout = setTimeout(() => {\r\n            callback(e)\r\n        }, ms)\r\n\r\n        let handler = () => {\r\n            clearTimeout(timeout)\r\n            el.removeEventListener('mouseleave', handler)\r\n        }\r\n\r\n        el.addEventListener('mouseleave', handler)\r\n    })\r\n}\r\n\r\nexport function extractDestinationFromLink(linkEl) {\r\n    return createUrlObjectFromString(linkEl.getAttribute('href'))\r\n}\r\n\r\nexport function createUrlObjectFromString(urlString) {\r\n    return new URL(urlString, document.baseURI)\r\n}\r\n", "import { trigger } from \"@/hooks\"\r\nimport { createUrlObjectFromString } from \"./links\"\r\n\r\nexport function fetchHtml(destination, callback) {\r\n    let uri = destination.pathname + destination.search\r\n\r\n    performFetch(uri, (html, finalDestination) => {\r\n        callback(html, finalDestination)\r\n    })\r\n}\r\n\r\nexport function performFetch(uri, callback) {\r\n    let options = {\r\n        headers: {\r\n            'X-Livewire-Navigate': ''\r\n        }\r\n    }\r\n\r\n    trigger('navigate.request', {\r\n        url: uri,\r\n        options,\r\n    })\r\n\r\n    let finalDestination\r\n\r\n    fetch(uri, options).then(response => {\r\n        finalDestination = createUrlObjectFromString(response.url)\r\n\r\n        return response.text()\r\n    }).then(html => {\r\n        callback(html, finalDestination)\r\n    });\r\n}\r\n", "import { performFetch } from \"@/plugins/navigate/fetch\";\r\n\r\n// Warning: this could cause some memory leaks\r\nlet prefetches = {}\r\n\r\nexport function prefetchHtml(destination, callback) {\r\n    let path = destination.pathname\r\n\r\n    if (prefetches[path]) return\r\n\r\n    prefetches[path] = { finished: false, html: null, whenFinished: () => {} }\r\n\r\n    performFetch(path, (html, routedUri) => {\r\n        callback(html, routedUri)\r\n    })\r\n}\r\n\r\nexport function storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination) {\r\n    let state = prefetches[destination.pathname]\r\n    state.html = html\r\n    state.finished = true\r\n    state.finalDestination = finalDestination\r\n    state.whenFinished()\r\n}\r\n\r\nexport function getPretchedHtmlOr(destination, receive, ifNoPrefetchExists) {\r\n    let uri = destination.pathname + destination.search\r\n\r\n    if (! prefetches[uri]) return ifNoPrefetchExists()\r\n\r\n    if (prefetches[uri].finished) {\r\n        let html = prefetches[uri].html\r\n        let finalDestination = prefetches[uri].finalDestination\r\n\r\n        delete prefetches[uri]\r\n\r\n        return receive(html, finalDestination)\r\n    } else {\r\n        prefetches[uri].whenFinished = () => {\r\n            let html = prefetches[uri].html\r\n            let finalDestination = prefetches[uri].finalDestination\r\n\r\n            delete prefetches[uri]\r\n\r\n            receive(html, finalDestination)\r\n        }\r\n    }\r\n}\r\n\r\n", "import Alpine from \"alpinejs\"\r\n\r\nexport function packUpPersistedTeleports(persistedEl) {\r\n    // Persisted elements get removed from the DOM and then re-added later. We need to do the same\r\n    // with any `x-teleport`ed elements...\r\n    Alpine.mutateDom(() => {\r\n        persistedEl.querySelectorAll('[data-teleport-template]').forEach(i => i._x_teleport.remove())\r\n    })\r\n}\r\n\r\nexport function removeAnyLeftOverStaleTeleportTargets(body) {\r\n    // We need to remove any left-over teleported elements form the page\r\n    // as they are stale and will be re-initialized when Alpine boots up on this page...\r\n    Alpine.mutateDom(() => {\r\n        body.querySelectorAll('[data-teleport-target]').forEach(i => i.remove())\r\n    })\r\n}\r\n\r\nexport function unPackPersistedTeleports(persistedEl) {\r\n    // Before we put back any persisted elements, we're going to\r\n    // find any \"x-teleports\" and put their targets back on the page...\r\n    Alpine.walk(persistedEl, (el, skip) => {\r\n        if (! el._x_teleport) return;\r\n\r\n        el._x_teleportPutBack()\r\n\r\n        skip()\r\n    })\r\n}\r\n\r\nexport function isTeleportTarget(el) {\r\n    return el.hasAttribute('data-teleport-target')\r\n}\r\n", "\r\nexport function storeScrollInformationInHtmlBeforeNavigatingAway() {\r\n    document.body.setAttribute('data-scroll-x', document.body.scrollLeft)\r\n    document.body.setAttribute('data-scroll-y', document.body.scrollTop)\r\n\r\n    document.querySelectorAll(['[x-navigate\\\\:scroll]', '[wire\\\\:scroll]']).forEach(el => {\r\n        el.setAttribute('data-scroll-x', el.scrollLeft)\r\n        el.setAttribute('data-scroll-y', el.scrollTop)\r\n    })\r\n}\r\n\r\nexport function restoreScrollPositionOrScrollToTop() {\r\n    let scroll = el => {\r\n        if (! el.hasAttribute('data-scroll-x')) {\r\n            window.scrollTo({ top: 0, left: 0, behavior: 'instant' })\r\n        } else {\r\n            el.scrollTo({\r\n                top: Number(el.getAttribute('data-scroll-y')),\r\n                left: Number(el.getAttribute('data-scroll-x')),\r\n                behavior: 'instant',\r\n            })\r\n            el.removeAttribute('data-scroll-x')\r\n            el.removeAttribute('data-scroll-y')\r\n        }\r\n    }\r\n\r\n    queueMicrotask(() => {\r\n        scroll(document.body)\r\n\r\n        document.querySelectorAll(['[x-navigate\\\\:scroll]', '[wire\\\\:scroll]']).forEach(scroll)\r\n    })\r\n}\r\n", "import Alpine from 'alpinejs'\r\n\r\nlet els = {}\r\n\r\nexport function storePersistantElementsForLater(callback) {\r\n    els = {}\r\n\r\n    document.querySelectorAll('[x-persist]').forEach(i => {\r\n        els[i.getAttribute('x-persist')] = i\r\n\r\n        callback(i)\r\n\r\n        Alpine.mutateDom(() => {\r\n            i.remove()\r\n        })\r\n    })\r\n}\r\n\r\nexport function putPersistantElementsBack(callback) {\r\n    let usedPersists = []\r\n\r\n    document.querySelectorAll('[x-persist]').forEach(i => {\r\n        let old = els[i.getAttribute('x-persist')]\r\n\r\n        // There might be a brand new x-persist element...\r\n        if (! old) return\r\n\r\n        usedPersists.push(i.getAttribute('x-persist'))\r\n\r\n        old._x_wasPersisted = true\r\n\r\n        callback(old, i)\r\n\r\n        Alpine.mutateDom(() => {\r\n            i.replaceWith(old)\r\n        })\r\n    })\r\n\r\n    Object.entries(els).forEach(([key, el]) => {\r\n        if (usedPersists.includes(key)) return\r\n\r\n        // Destory the un-used persist DOM trees before releasing them...\r\n        Alpine.destroyTree(el)\r\n    })\r\n\r\n    // Release unused persists for garbage collection...\r\n    els = {}\r\n}\r\n\r\nexport function isPersistedElement(el) {\r\n    return el.hasAttribute('x-persist')\r\n}\r\n", "import NProgress from 'nprogress'\r\nimport { getNonce } from '@/utils'\r\n\r\nNProgress.configure({\r\n    minimum: 0.1,\r\n    trickleSpeed: 200,\r\n    showSpinner: false,\r\n})\r\n\r\ninjectStyles()\r\n\r\nlet inProgress = false\r\nexport function showAndStartProgressBar() {\r\n    inProgress = true\r\n    // Only show progress bar if it's been a little bit...\r\n    setTimeout(() => {\r\n        if (! inProgress) return\r\n        NProgress.start()\r\n    }, 150)\r\n\r\n    // createBar()\r\n\r\n    // incrementBar()\r\n}\r\n\r\nexport function finishAndHideProgressBar() {\r\n    inProgress = false\r\n    NProgress.done()\r\n    NProgress.remove()\r\n\r\n    // finishProgressBar(); destroyBar()\r\n}\r\n\r\nfunction createBar() {\r\n    let bar = document.createElement('div')\r\n\r\n    bar.setAttribute('id', 'alpine-progress-bar')\r\n    bar.setAttribute('x-navigate:persist', 'alpine-progress-bar')\r\n    bar.setAttribute('style', `\r\n        width: 100%;\r\n        height: 5px;\r\n        background: black;\r\n        position: absolute;\r\n        top: 0;\r\n        left: 0;\r\n        right: 0;\r\n        transition: all 0.5s ease;\r\n        transform: scaleX(0);\r\n        transform-origin: left;\r\n    `)\r\n\r\n    document.body.appendChild(bar)\r\n\r\n    return bar\r\n}\r\n\r\nfunction incrementBar(goal = .1) {\r\n    let bar = document.getElementById('alpine-progress-bar')\r\n\r\n    if (! bar) return\r\n\r\n    let percentage = Number(bar.style.transform.match(/scaleX\\((.+)\\)/)[1])\r\n\r\n    if (percentage > 1) return\r\n\r\n    bar.style.transform = 'scaleX(' + goal + ')'\r\n\r\n    setTimeout(() => {\r\n        incrementBar(percentage + .1)\r\n    }, 50)\r\n}\r\n\r\nfunction finishProgressBar(callback) {\r\n    let bar = document.getElementById('alpine-progress-bar')\r\n    bar.style.transform = 'scaleX(1)'\r\n}\r\n\r\nfunction destroyBar() {\r\n    document.getElementById('alpine-progress-bar').remove()\r\n}\r\n\r\nfunction injectStyles() {\r\n    let style = document.createElement('style')\r\n    style.innerHTML = `/* Make clicks pass-through */\r\n\r\n    #nprogress {\r\n      pointer-events: none;\r\n    }\r\n\r\n    #nprogress .bar {\r\n      background: var(--livewire-progress-bar-color, #29d);\r\n\r\n      position: fixed;\r\n      z-index: 1031;\r\n      top: 0;\r\n      left: 0;\r\n\r\n      width: 100%;\r\n      height: 2px;\r\n    }\r\n\r\n    /* Fancy blur effect */\r\n    #nprogress .peg {\r\n      display: block;\r\n      position: absolute;\r\n      right: 0px;\r\n      width: 100px;\r\n      height: 100%;\r\n      box-shadow: 0 0 10px var(--livewire-progress-bar-color, #29d), 0 0 5px var(--livewire-progress-bar-color, #29d);\r\n      opacity: 1.0;\r\n\r\n      -webkit-transform: rotate(3deg) translate(0px, -4px);\r\n          -ms-transform: rotate(3deg) translate(0px, -4px);\r\n              transform: rotate(3deg) translate(0px, -4px);\r\n    }\r\n\r\n    /* Remove these to get rid of the spinner */\r\n    #nprogress .spinner {\r\n      display: block;\r\n      position: fixed;\r\n      z-index: 1031;\r\n      top: 15px;\r\n      right: 15px;\r\n    }\r\n\r\n    #nprogress .spinner-icon {\r\n      width: 18px;\r\n      height: 18px;\r\n      box-sizing: border-box;\r\n\r\n      border: solid 2px transparent;\r\n      border-top-color: var(--livewire-progress-bar-color, #29d);\r\n      border-left-color: var(--livewire-progress-bar-color, #29d);\r\n      border-radius: 50%;\r\n\r\n      -webkit-animation: nprogress-spinner 400ms linear infinite;\r\n              animation: nprogress-spinner 400ms linear infinite;\r\n    }\r\n\r\n    .nprogress-custom-parent {\r\n      overflow: hidden;\r\n      position: relative;\r\n    }\r\n\r\n    .nprogress-custom-parent #nprogress .spinner,\r\n    .nprogress-custom-parent #nprogress .bar {\r\n      position: absolute;\r\n    }\r\n\r\n    @-webkit-keyframes nprogress-spinner {\r\n      0%   { -webkit-transform: rotate(0deg); }\r\n      100% { -webkit-transform: rotate(360deg); }\r\n    }\r\n    @keyframes nprogress-spinner {\r\n      0%   { transform: rotate(0deg); }\r\n      100% { transform: rotate(360deg); }\r\n    }\r\n    `\r\n\r\n    let nonce = getNonce()\r\n    if (nonce) {\r\n      style.nonce = nonce\r\n    }\r\n\r\n    document.head.appendChild(style)\r\n}\r\n", "let oldBodyScriptTagHashes = []\r\n\r\nlet attributesExemptFromScriptTagHashing = [\r\n    'data-csrf',\r\n    'aria-hidden',\r\n]\r\n\r\nexport function swapCurrentPageWithNewHtml(html, andThen) {\r\n    let newDocument = (new DOMParser()).parseFromString(html, \"text/html\")\r\n    let newBody = document.adoptNode(newDocument.body)\r\n    let newHead = document.adoptNode(newDocument.head)\r\n\r\n    oldBodyScriptTagHashes = oldBodyScriptTagHashes.concat(Array.from(document.body.querySelectorAll('script')).map(i => {\r\n        return simpleHash(ignoreAttributes(i.outerHTML, attributesExemptFromScriptTagHashing))\r\n    }))\r\n\r\n    let afterRemoteScriptsHaveLoaded = () => {}\r\n\r\n    mergeNewHead(newHead).finally(() => {\r\n        afterRemoteScriptsHaveLoaded()\r\n    })\r\n\r\n    prepNewBodyScriptTagsToRun(newBody, oldBodyScriptTagHashes)\r\n\r\n    let oldBody = document.body\r\n\r\n    document.body.replaceWith(newBody)\r\n\r\n    Alpine.destroyTree(oldBody)\r\n\r\n    andThen(i => afterRemoteScriptsHaveLoaded = i)\r\n}\r\n\r\nfunction prepNewBodyScriptTagsToRun(newBody, oldBodyScriptTagHashes) {\r\n    newBody.querySelectorAll('script').forEach(i => {\r\n        // We don't want to re-run script tags marked as \"data-navigate-once\"...\r\n        if (i.hasAttribute('data-navigate-once')) {\r\n            // However, if they didn't exist on the previous page, we do.\r\n            // Therefore, we'll check the \"old body script hashes\" to\r\n            // see if it was already there before skipping it...\r\n\r\n            let hash = simpleHash(\r\n                ignoreAttributes(i.outerHTML, attributesExemptFromScriptTagHashing)\r\n            )\r\n\r\n            if (oldBodyScriptTagHashes.includes(hash)) return\r\n        }\r\n\r\n        i.replaceWith(cloneScriptTag(i))\r\n    })\r\n}\r\n\r\nfunction mergeNewHead(newHead) {\r\n    let children = Array.from(document.head.children)\r\n    let headChildrenHtmlLookup = children.map(i => i.outerHTML)\r\n\r\n    // Only add scripts and styles that aren't already loaded on the page.\r\n    let garbageCollector = document.createDocumentFragment()\r\n\r\n    let touchedHeadElements = []\r\n\r\n    let remoteScriptsPromises = []\r\n\r\n    for (let child of Array.from(newHead.children)) {\r\n        if (isAsset(child)) {\r\n            if (! headChildrenHtmlLookup.includes(child.outerHTML)) {\r\n                if (isTracked(child)) {\r\n                    if (ifTheQueryStringChangedSinceLastRequest(child, children)) {\r\n                        setTimeout(() => window.location.reload())\r\n                    }\r\n                }\r\n\r\n                if (isScript(child)) {\r\n                    try {\r\n                        remoteScriptsPromises.push(\r\n                            injectScriptTagAndWaitForItToFullyLoad(\r\n                                cloneScriptTag(child)\r\n                            )\r\n                        )\r\n                    } catch (error) {\r\n                        // Let's eat any promise rejects so that we don't\r\n                        // break the rest of the Alpine intializing...\r\n                        // Any errors triggered by adding the script tag to the page\r\n                        // will still be thrown...\r\n                    }\r\n                } else {\r\n                    document.head.appendChild(child)\r\n                }\r\n            } else {\r\n                garbageCollector.appendChild(child)\r\n            }\r\n\r\n            touchedHeadElements.push(child)\r\n        }\r\n    }\r\n\r\n    // Remove any assets that aren't on the new page...\r\n    // @todo: Re-enable this code and find a better way to managed injected stylesheets. See livewire/livewire#6824\r\n    // for (let child of Array.from(document.head.children)) {\r\n    //     if (isAsset(child)) {\r\n    //         if (! touchedHeadElements.some(i => i.outerHTML === child.outerHTML)) {\r\n    //             child.remove()\r\n    //         }\r\n    //     }\r\n    // }\r\n\r\n    // How to free up the garbage collector?\r\n\r\n    // Remove existing non-asset elements like meta, base, title, template.\r\n    for (let child of Array.from(document.head.children)) {\r\n        if (! isAsset(child)) child.remove()\r\n    }\r\n\r\n    // Add new non-asset elements left over in the new head element.\r\n    for (let child of Array.from(newHead.children)) {\r\n        document.head.appendChild(child)\r\n    }\r\n\r\n    return Promise.all(remoteScriptsPromises)\r\n}\r\n\r\nasync function injectScriptTagAndWaitForItToFullyLoad(script) {\r\n    return new Promise((resolve, reject) => {\r\n        // Script assets need to be loaded synchronously so that scripts have\r\n        // their global variables available...\r\n        if (script.src) {\r\n            script.onload = () => resolve()\r\n            script.onerror = () => reject()\r\n        } else {\r\n            resolve()\r\n        }\r\n\r\n        document.head.appendChild(script)\r\n    })\r\n}\r\n\r\nfunction cloneScriptTag(el) {\r\n    let script = document.createElement('script')\r\n\r\n    script.textContent = el.textContent\r\n    script.async = el.async\r\n\r\n    for (let attr of el.attributes) {\r\n        script.setAttribute(attr.name, attr.value)\r\n    }\r\n\r\n    return script\r\n}\r\n\r\nfunction isTracked(el) {\r\n    return el.hasAttribute('data-navigate-track')\r\n}\r\n\r\nfunction ifTheQueryStringChangedSinceLastRequest(el, currentHeadChildren) {\r\n    let [uri, queryString] = extractUriAndQueryString(el)\r\n\r\n    return currentHeadChildren.some(child => {\r\n        if (! isTracked(child)) return false\r\n\r\n        let [currentUri, currentQueryString] = extractUriAndQueryString(child)\r\n\r\n        // Only consider a data-navigate-track element changed if the query string has changed (not the URI)...\r\n        if (currentUri === uri && queryString !== currentQueryString) return true\r\n    })\r\n}\r\n\r\nfunction extractUriAndQueryString(el) {\r\n    let url = isScript(el) ? el.src : el.href\r\n\r\n    return url.split('?')\r\n}\r\n\r\nfunction isAsset(el) {\r\n    return (el.tagName.toLowerCase() === 'link' && el.getAttribute('rel').toLowerCase() === 'stylesheet')\r\n        || el.tagName.toLowerCase() === 'style'\r\n        || el.tagName.toLowerCase() === 'script'\r\n}\r\n\r\nfunction isScript(el)   {\r\n    return el.tagName.toLowerCase() === 'script'\r\n}\r\n\r\nfunction simpleHash(str) {\r\n    return str.split('').reduce((a, b) => {\r\n        a = ((a << 5) - a) + b.charCodeAt(0)\r\n\r\n        return a & a\r\n    }, 0);\r\n}\r\n\r\nfunction ignoreAttributes(subject, attributesToRemove) {\r\n    let result = subject\r\n\r\n    attributesToRemove.forEach(attr => {\r\n        // Create a regex pattern to match the attribute and its value.\r\n        // The regex handles attributes that have values surrounded by either single or double quotes.\r\n        const regex = new RegExp(`${attr}=\"[^\"]*\"|${attr}='[^']*'`, 'g')\r\n\r\n        result = result.replace(regex, '')\r\n    })\r\n\r\n    // Remove all whitespace to make things less flaky...\r\n    result = result.replaceAll(' ', '')\r\n\r\n    return result.trim()\r\n}\r\n", "import { updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks, updateUrlAndStoreLatestHtmlForFutureBackButtons, whenTheBackOrForwardButtonIsClicked } from \"./history\"\r\nimport { getPretchedHtmlOr, prefetchHtml, storeThePrefetchedHtmlForWhenALinkIsClicked } from \"./prefetch\"\r\nimport { createUrlObjectFromString, extractDestinationFromLink, whenThisLinkIsHoveredFor, whenThisLinkIsPressed } from \"./links\"\r\nimport { isTeleportTarget, packUpPersistedTeleports, removeAnyLeftOverStaleTeleportTargets, unPackPersistedTeleports } from \"./teleport\"\r\nimport { restoreScrollPositionOrScrollToTop, storeScrollInformationInHtmlBeforeNavigatingAway } from \"./scroll\"\r\nimport { isPersistedElement, putPersistantElementsBack, storePersistantElementsForLater } from \"./persist\"\r\nimport { finishAndHideProgressBar, showAndStartProgressBar } from \"./bar\"\r\nimport { swapCurrentPageWithNewHtml } from \"./page\"\r\nimport { fetchHtml } from \"./fetch\"\r\n\r\nlet enablePersist = true\r\nlet showProgressBar = true\r\nlet restoreScroll = true\r\nlet autofocus = false\r\n\r\nexport default function (Alpine) {\r\n    Alpine.navigate = (url) => {\r\n        navigateTo(\r\n            createUrlObjectFromString(url)\r\n        )\r\n    }\r\n\r\n    Alpine.navigate.disableProgressBar = () => {\r\n        showProgressBar = false\r\n    }\r\n\r\n    Alpine.addInitSelector(() => `[${Alpine.prefixed('navigate')}]`)\r\n\r\n    Alpine.directive('navigate', (el, { modifiers }) => {\r\n        let shouldPrefetchOnHover = modifiers.includes('hover')\r\n\r\n        shouldPrefetchOnHover && whenThisLinkIsHoveredFor(el, 60, () => {\r\n            let destination = extractDestinationFromLink(el)\r\n\r\n            prefetchHtml(destination, (html, finalDestination) => {\r\n                storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination)\r\n            })\r\n        })\r\n\r\n        whenThisLinkIsPressed(el, (whenItIsReleased) => {\r\n            let destination = extractDestinationFromLink(el)\r\n\r\n            prefetchHtml(destination, (html, finalDestination) => {\r\n                storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination)\r\n            })\r\n\r\n            whenItIsReleased(() => {\r\n                navigateTo(destination)\r\n            })\r\n        })\r\n    })\r\n\r\n    function navigateTo(destination) {\r\n        showProgressBar && showAndStartProgressBar()\r\n\r\n        fetchHtmlOrUsePrefetchedHtml(destination, (html, finalDestination) => {\r\n            fireEventForOtherLibariesToHookInto('alpine:navigating')\r\n\r\n            restoreScroll && storeScrollInformationInHtmlBeforeNavigatingAway()\r\n\r\n            showProgressBar && finishAndHideProgressBar()\r\n\r\n            cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement()\r\n\r\n            updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks()\r\n\r\n            preventAlpineFromPickingUpDomChanges(Alpine, andAfterAllThis => {\r\n                enablePersist && storePersistantElementsForLater(persistedEl => {\r\n                    packUpPersistedTeleports(persistedEl)\r\n                })\r\n\r\n                swapCurrentPageWithNewHtml(html, (afterNewScriptsAreDoneLoading) => {\r\n                    removeAnyLeftOverStaleTeleportTargets(document.body)\r\n\r\n                    enablePersist && putPersistantElementsBack((persistedEl, newStub) => {\r\n                        unPackPersistedTeleports(persistedEl)\r\n                    })\r\n\r\n                    restoreScrollPositionOrScrollToTop()\r\n\r\n                    updateUrlAndStoreLatestHtmlForFutureBackButtons(html, finalDestination)\r\n\r\n                    fireEventForOtherLibariesToHookInto('alpine:navigated')\r\n\r\n                    afterNewScriptsAreDoneLoading(() => {\r\n                        andAfterAllThis(() => {\r\n                            setTimeout(() => {\r\n                                autofocus && autofocusElementsWithTheAutofocusAttribute()\r\n                            })\r\n\r\n                            nowInitializeAlpineOnTheNewPage(Alpine)\r\n                        })\r\n                    })\r\n                })\r\n            })\r\n        })\r\n    }\r\n\r\n    whenTheBackOrForwardButtonIsClicked((html) => {\r\n        // @todo: see if there's a way to update the current HTML BEFORE\r\n        // the back button is hit, and not AFTER:\r\n        storeScrollInformationInHtmlBeforeNavigatingAway()\r\n        // updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks()\r\n\r\n        preventAlpineFromPickingUpDomChanges(Alpine, andAfterAllThis => {\r\n            enablePersist && storePersistantElementsForLater(persistedEl => {\r\n                packUpPersistedTeleports(persistedEl)\r\n            })\r\n\r\n            swapCurrentPageWithNewHtml(html, () => {\r\n                removeAnyLeftOverStaleTeleportTargets(document.body)\r\n\r\n                enablePersist && putPersistantElementsBack((persistedEl, newStub) => {\r\n                    unPackPersistedTeleports(persistedEl)\r\n                })\r\n\r\n                restoreScrollPositionOrScrollToTop()\r\n\r\n                fireEventForOtherLibariesToHookInto('alpine:navigated')\r\n\r\n                andAfterAllThis(() => {\r\n                    autofocus && autofocusElementsWithTheAutofocusAttribute()\r\n\r\n                    nowInitializeAlpineOnTheNewPage(Alpine)\r\n                })\r\n            })\r\n\r\n        })\r\n    })\r\n\r\n    // Because DOMContentLoaded is fired on first load,\r\n    // we should fire alpine:navigated as a replacement as well...\r\n    setTimeout(() => {\r\n        fireEventForOtherLibariesToHookInto('alpine:navigated')\r\n    })\r\n}\r\n\r\nfunction fetchHtmlOrUsePrefetchedHtml(fromDestination, callback) {\r\n    getPretchedHtmlOr(fromDestination, callback, () => {\r\n        fetchHtml(fromDestination, callback)\r\n    })\r\n}\r\n\r\nfunction preventAlpineFromPickingUpDomChanges(Alpine, callback) {\r\n    Alpine.stopObservingMutations()\r\n\r\n    callback((afterAllThis) => {\r\n        Alpine.startObservingMutations()\r\n\r\n        queueMicrotask(() => {\r\n            afterAllThis()\r\n        })\r\n    })\r\n}\r\n\r\nfunction fireEventForOtherLibariesToHookInto(eventName) {\r\n    document.dispatchEvent(new CustomEvent(eventName, { bubbles: true }))\r\n}\r\n\r\nfunction nowInitializeAlpineOnTheNewPage(Alpine) {\r\n    Alpine.initTree(document.body, undefined, (el, skip) => {\r\n        if (el._x_wasPersisted) skip()\r\n    })\r\n}\r\n\r\nfunction autofocusElementsWithTheAutofocusAttribute() {\r\n    document.querySelector('[autofocus]') && document.querySelector('[autofocus]').focus()\r\n}\r\n\r\nfunction cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement() {\r\n    // Create a new tree walker that skips persisted elements...\r\n    let walker = function (root, callback) {\r\n        Alpine.walk(root, (el, skip) => {\r\n            if (isPersistedElement(el)) skip()\r\n            if (isTeleportTarget(el)) skip()\r\n            else callback(el, skip)\r\n        })\r\n    }\r\n\r\n    // Set Alpine in motion to destroy itself on the page. If this proves\r\n    // to be a performance issue at some point (walking the DOM tree),\r\n    // we can be more surgical about cleaning up x-for/if instead...\r\n    Alpine.destroyTree(document.body, walker)\r\n}\r\n", "import { isObjecty } from \"@/utils\"\r\n\r\nexport default function history(Alpine) {\r\n    Alpine.magic('queryString', (el, { interceptor }) =>  {\r\n        let alias\r\n        let alwaysShow = false\r\n        let usePush = false\r\n\r\n        return interceptor((initialSeedValue, getter, setter, path, key) => {\r\n            let queryKey = alias || path\r\n\r\n            let { initial, replace, push, pop } = track(queryKey, initialSeedValue, alwaysShow)\r\n\r\n            setter(initial)\r\n\r\n            if (! usePush) {\r\n                Alpine.effect(() => replace(getter()))\r\n            } else {\r\n                Alpine.effect(() => push(getter()))\r\n\r\n                pop(async newValue => {\r\n                    setter(newValue)\r\n\r\n                    let tillTheEndOfTheMicrotaskQueue = () => Promise.resolve()\r\n\r\n                    await tillTheEndOfTheMicrotaskQueue() // ...so that we preserve the internal lock...\r\n                })\r\n            }\r\n\r\n            return initial\r\n        }, func => {\r\n            func.alwaysShow = () => { alwaysShow = true; return func }\r\n            func.usePush = () => { usePush = true; return func }\r\n            func.as = key => { alias = key; return func }\r\n        })\r\n    })\r\n\r\n    Alpine.history = { track }\r\n}\r\n\r\nexport function track(name, initialSeedValue, alwaysShow = false) {\r\n    let { has, get, set, remove } = queryStringUtils()\r\n\r\n    let url = new URL(window.location.href)\r\n    let isInitiallyPresentInUrl = has(url, name)\r\n    let initialValue = isInitiallyPresentInUrl ? get(url, name) : initialSeedValue\r\n    let initialValueMemo = JSON.stringify(initialValue)\r\n    let hasReturnedToInitialValue = (newValue) => JSON.stringify(newValue) === initialValueMemo\r\n\r\n    if (alwaysShow) url = set(url, name, initialValue)\r\n\r\n    replace(url, name, { value: initialValue })\r\n\r\n    let lock = false\r\n\r\n    let update = (strategy, newValue) => {\r\n        if (lock) return\r\n\r\n        let url = new URL(window.location.href)\r\n\r\n        // This block of code is what needs to be changed for this failing test to pass:\r\n        if (! alwaysShow && ! isInitiallyPresentInUrl && hasReturnedToInitialValue(newValue)) {\r\n            url = remove(url, name)\r\n        // This is so that when deeply nested values are tracked, but their parent array/object\r\n        // is removed, we can handle it gracefully by removing the entry from the URL instead\r\n        // of letting it get set to `?someKey=undefined` which causes issues on refresh...\r\n        } else if (newValue === undefined) {\r\n            url = remove(url, name)\r\n        } else {\r\n            url = set(url, name, newValue)\r\n        }\r\n\r\n        // Right now, the above block, checks a few conditions and updates/removes an entry from the query string.\r\n        // The new strategy needs to be something like:\r\n        // - If \"alwaysShow\" is toggled on, then just \"set\" the whole thing with no deep diff\r\n        // - Otherwise, run a deep comparison callback (given the original value and new value).\r\n        //   - The callback recieves two params (leaf name and value)\r\n        //   - Check leaf name and value for existance in the original URL from page load. If it's there, just call \"set\"\r\n        //   - Check leaf name and value for equivelance to original name and value, if equal, call \"remove\", otherwise, \"set\"\r\n\r\n        // That code will look something like this:\r\n\r\n        // if (alwaysShow) {\r\n        //     set(url, name, newValue)\r\n        // } else {\r\n        //     deepCompare(name, newValue, originalValue, (leafName, leafValue) => {\r\n        //         // ....\r\n        //     })\r\n        // }\r\n\r\n        strategy(url, name, { value: newValue})\r\n    }\r\n\r\n    return {\r\n        initial: initialValue,\r\n\r\n        replace(newValue) { // Update via replaceState...\r\n            update(replace, newValue)\r\n        },\r\n\r\n        push(newValue) { // Update via pushState...\r\n            update(push, newValue)\r\n        },\r\n\r\n        pop(receiver) { // \"popstate\" handler...\r\n            let handler = (e) => {\r\n                if (! e.state || ! e.state.alpine) return\r\n\r\n                Object.entries(e.state.alpine).forEach(([iName, { value: newValue }]) => {\r\n                    if (iName !== name) return\r\n\r\n                    lock = true\r\n\r\n                    // Allow the \"receiver\" to be an async function in case a non-syncronous\r\n                    // operation (like an ajax) requests needs to happen while preserving\r\n                    // the \"locking\" mechanism (\"lock = true\" in this case)...\r\n                    let result = receiver(newValue)\r\n\r\n                    if (result instanceof Promise) {\r\n                        result.finally(() => lock = false)\r\n                    } else {\r\n                        lock = false\r\n                    }\r\n                })\r\n            }\r\n\r\n            window.addEventListener('popstate', handler)\r\n\r\n            return () => window.removeEventListener('popstate', handler)\r\n        }\r\n    }\r\n}\r\n\r\nfunction replace(url, key, object) {\r\n    let state = window.history.state || {}\r\n\r\n    if (! state.alpine) state.alpine = {}\r\n\r\n    state.alpine[key] = unwrap(object)\r\n\r\n    window.history.replaceState(state, '', url.toString())\r\n}\r\n\r\nfunction push(url, key, object) {\r\n    let state = window.history.state || {}\r\n\r\n    if (! state.alpine) state.alpine = {}\r\n\r\n    state = { alpine: {...state.alpine, ...{[key]: unwrap(object)}} }\r\n\r\n    window.history.pushState(state, '', url.toString())\r\n}\r\n\r\nfunction unwrap(object) {\r\n    if (object === undefined) return undefined\r\n\r\n    return JSON.parse(JSON.stringify(object))\r\n}\r\n\r\nfunction queryStringUtils() {\r\n    return {\r\n        has(url, key) {\r\n            let search = url.search\r\n\r\n            if (! search) return false\r\n\r\n            let data = fromQueryString(search)\r\n\r\n            return Object.keys(data).includes(key)\r\n        },\r\n        get(url, key) {\r\n            let search = url.search\r\n\r\n            if (! search) return false\r\n\r\n            let data = fromQueryString(search)\r\n\r\n            return data[key]\r\n        },\r\n        set(url, key, value) {\r\n            let data = fromQueryString(url.search)\r\n\r\n            data[key] = stripNulls(unwrap(value))\r\n\r\n            url.search = toQueryString(data)\r\n\r\n            return url\r\n        },\r\n        remove(url, key) {\r\n            let data = fromQueryString(url.search)\r\n\r\n            delete data[key]\r\n\r\n            url.search = toQueryString(data)\r\n\r\n            return url\r\n        },\r\n    }\r\n}\r\n\r\nfunction stripNulls(value) {\r\n    if (! isObjecty(value)) return value\r\n\r\n    for (let key in value) {\r\n        if (value[key] === null) delete value[key]\r\n        else value[key] = stripNulls(value[key])\r\n    }\r\n\r\n    return value\r\n}\r\n\r\n// This function converts JavaScript data to bracketed query string notation...\r\n// { items: [['foo']] } -> \"items[0][0]=foo\"\r\nfunction toQueryString(data) {\r\n    let isObjecty = (subject) => typeof subject === 'object' && subject !== null\r\n\r\n    let buildQueryStringEntries = (data, entries = {}, baseKey = '') => {\r\n        Object.entries(data).forEach(([iKey, iValue]) => {\r\n            let key = baseKey === '' ? iKey : `${baseKey}[${iKey}]`\r\n\r\n            if (iValue === null) {\r\n                entries[key] = '';\r\n            } else if (! isObjecty(iValue)) {\r\n                entries[key] = encodeURIComponent(iValue)\r\n                    .replaceAll('%20', '+') // Conform to RFC1738\r\n                    .replaceAll('%2C', ',')\r\n            } else {\r\n                entries = {...entries, ...buildQueryStringEntries(iValue, entries, key)}\r\n            }\r\n        })\r\n\r\n        return entries\r\n    }\r\n\r\n    let entries = buildQueryStringEntries(data)\r\n\r\n    return Object.entries(entries).map(([key, value]) => `${key}=${value}`).join('&')\r\n}\r\n\r\n// This function converts bracketed query string notation back to JS data...\r\n// \"items[0][0]=foo\" -> { items: [['foo']] }\r\nfunction fromQueryString(search) {\r\n    search = search.replace('?', '')\r\n\r\n    if (search === '') return {}\r\n\r\n    let insertDotNotatedValueIntoData = (key, value, data) => {\r\n        let [first, second, ...rest] = key.split('.')\r\n\r\n        // We're at a leaf node, let's make the assigment...\r\n        if (! second) return data[key] = value\r\n\r\n        // This is where we fill in empty arrays/objects allong the way to the assigment...\r\n        if (data[first] === undefined) {\r\n            data[first] = isNaN(second) ? {} : []\r\n        }\r\n\r\n        // Keep deferring assignment until the full key is built up...\r\n        insertDotNotatedValueIntoData([second, ...rest].join('.'), value, data[first])\r\n    }\r\n\r\n    let entries = search.split('&').map(i => i.split('='))\r\n\r\n    let data = {}\r\n\r\n    entries.forEach(([key, value]) => {\r\n        value = decodeURIComponent(value.replaceAll('+', '%20'))\r\n\r\n        if (! key.includes('[')) {\r\n            data[key] = value\r\n        } else {\r\n            // Convert to dot notation because it's easier...\r\n            let dotNotatedKey = key.replaceAll('[', '.').replaceAll(']', '')\r\n\r\n            insertDotNotatedValueIntoData(dotNotatedKey, value, data)\r\n        }\r\n    })\r\n\r\n    return data\r\n}\r\n", "// packages/morph/src/morph.js\nfunction morph(from, toHtml, options) {\n  monkeyPatchDomSetAttributeToAllowAtSymbols();\n  let fromEl;\n  let toEl;\n  let key, lookahead, updating, updated, removing, removed, adding, added;\n  function assignOptions(options2 = {}) {\n    let defaultGetKey = (el) => el.getAttribute(\"key\");\n    let noop = () => {\n    };\n    updating = options2.updating || noop;\n    updated = options2.updated || noop;\n    removing = options2.removing || noop;\n    removed = options2.removed || noop;\n    adding = options2.adding || noop;\n    added = options2.added || noop;\n    key = options2.key || defaultGetKey;\n    lookahead = options2.lookahead || false;\n  }\n  function patch(from2, to) {\n    if (differentElementNamesTypesOrKeys(from2, to)) {\n      return swapElements(from2, to);\n    }\n    let updateChildrenOnly = false;\n    if (shouldSkip(updating, from2, to, () => updateChildrenOnly = true))\n      return;\n    if (from2.nodeType === 1 && window.Alpine) {\n      window.Alpine.cloneNode(from2, to);\n    }\n    if (textOrComment(to)) {\n      patchNodeValue(from2, to);\n      updated(from2, to);\n      return;\n    }\n    if (!updateChildrenOnly) {\n      patchAttributes(from2, to);\n    }\n    updated(from2, to);\n    patchChildren(from2, to);\n  }\n  function differentElementNamesTypesOrKeys(from2, to) {\n    return from2.nodeType != to.nodeType || from2.nodeName != to.nodeName || getKey(from2) != getKey(to);\n  }\n  function swapElements(from2, to) {\n    if (shouldSkip(removing, from2))\n      return;\n    let toCloned = to.cloneNode(true);\n    if (shouldSkip(adding, toCloned))\n      return;\n    from2.replaceWith(toCloned);\n    removed(from2);\n    added(toCloned);\n  }\n  function patchNodeValue(from2, to) {\n    let value = to.nodeValue;\n    if (from2.nodeValue !== value) {\n      from2.nodeValue = value;\n    }\n  }\n  function patchAttributes(from2, to) {\n    if (from2._x_transitioning)\n      return;\n    if (from2._x_isShown && !to._x_isShown) {\n      return;\n    }\n    if (!from2._x_isShown && to._x_isShown) {\n      return;\n    }\n    let domAttributes = Array.from(from2.attributes);\n    let toAttributes = Array.from(to.attributes);\n    for (let i = domAttributes.length - 1; i >= 0; i--) {\n      let name = domAttributes[i].name;\n      if (!to.hasAttribute(name)) {\n        from2.removeAttribute(name);\n      }\n    }\n    for (let i = toAttributes.length - 1; i >= 0; i--) {\n      let name = toAttributes[i].name;\n      let value = toAttributes[i].value;\n      if (from2.getAttribute(name) !== value) {\n        from2.setAttribute(name, value);\n      }\n    }\n  }\n  function patchChildren(from2, to) {\n    if (from2._x_teleport)\n      from2 = from2._x_teleport;\n    if (to._x_teleport)\n      to = to._x_teleport;\n    let fromKeys = keyToMap(from2.children);\n    let fromKeyHoldovers = {};\n    let currentTo = getFirstNode(to);\n    let currentFrom = getFirstNode(from2);\n    while (currentTo) {\n      seedingMatchingId(currentTo, currentFrom);\n      let toKey = getKey(currentTo);\n      let fromKey = getKey(currentFrom);\n      if (!currentFrom) {\n        if (toKey && fromKeyHoldovers[toKey]) {\n          let holdover = fromKeyHoldovers[toKey];\n          from2.appendChild(holdover);\n          currentFrom = holdover;\n        } else {\n          if (!shouldSkip(adding, currentTo)) {\n            let clone = currentTo.cloneNode(true);\n            from2.appendChild(clone);\n            added(clone);\n          }\n          currentTo = getNextSibling(to, currentTo);\n          continue;\n        }\n      }\n      let isIf = (node) => node && node.nodeType === 8 && node.textContent === \"[if BLOCK]><![endif]\";\n      let isEnd = (node) => node && node.nodeType === 8 && node.textContent === \"[if ENDBLOCK]><![endif]\";\n      if (isIf(currentTo) && isIf(currentFrom)) {\n        let nestedIfCount = 0;\n        let fromBlockStart = currentFrom;\n        while (currentFrom) {\n          let next = getNextSibling(from2, currentFrom);\n          if (isIf(next)) {\n            nestedIfCount++;\n          } else if (isEnd(next) && nestedIfCount > 0) {\n            nestedIfCount--;\n          } else if (isEnd(next) && nestedIfCount === 0) {\n            currentFrom = next;\n            break;\n          }\n          currentFrom = next;\n        }\n        let fromBlockEnd = currentFrom;\n        nestedIfCount = 0;\n        let toBlockStart = currentTo;\n        while (currentTo) {\n          let next = getNextSibling(to, currentTo);\n          if (isIf(next)) {\n            nestedIfCount++;\n          } else if (isEnd(next) && nestedIfCount > 0) {\n            nestedIfCount--;\n          } else if (isEnd(next) && nestedIfCount === 0) {\n            currentTo = next;\n            break;\n          }\n          currentTo = next;\n        }\n        let toBlockEnd = currentTo;\n        let fromBlock = new Block(fromBlockStart, fromBlockEnd);\n        let toBlock = new Block(toBlockStart, toBlockEnd);\n        patchChildren(fromBlock, toBlock);\n        continue;\n      }\n      if (currentFrom.nodeType === 1 && lookahead && !currentFrom.isEqualNode(currentTo)) {\n        let nextToElementSibling = getNextSibling(to, currentTo);\n        let found = false;\n        while (!found && nextToElementSibling) {\n          if (nextToElementSibling.nodeType === 1 && currentFrom.isEqualNode(nextToElementSibling)) {\n            found = true;\n            currentFrom = addNodeBefore(from2, currentTo, currentFrom);\n            fromKey = getKey(currentFrom);\n          }\n          nextToElementSibling = getNextSibling(to, nextToElementSibling);\n        }\n      }\n      if (toKey !== fromKey) {\n        if (!toKey && fromKey) {\n          fromKeyHoldovers[fromKey] = currentFrom;\n          currentFrom = addNodeBefore(from2, currentTo, currentFrom);\n          fromKeyHoldovers[fromKey].remove();\n          currentFrom = getNextSibling(from2, currentFrom);\n          currentTo = getNextSibling(to, currentTo);\n          continue;\n        }\n        if (toKey && !fromKey) {\n          if (fromKeys[toKey]) {\n            currentFrom.replaceWith(fromKeys[toKey]);\n            currentFrom = fromKeys[toKey];\n          }\n        }\n        if (toKey && fromKey) {\n          let fromKeyNode = fromKeys[toKey];\n          if (fromKeyNode) {\n            fromKeyHoldovers[fromKey] = currentFrom;\n            currentFrom.replaceWith(fromKeyNode);\n            currentFrom = fromKeyNode;\n          } else {\n            fromKeyHoldovers[fromKey] = currentFrom;\n            currentFrom = addNodeBefore(from2, currentTo, currentFrom);\n            fromKeyHoldovers[fromKey].remove();\n            currentFrom = getNextSibling(from2, currentFrom);\n            currentTo = getNextSibling(to, currentTo);\n            continue;\n          }\n        }\n      }\n      let currentFromNext = currentFrom && getNextSibling(from2, currentFrom);\n      patch(currentFrom, currentTo);\n      currentTo = currentTo && getNextSibling(to, currentTo);\n      currentFrom = currentFromNext;\n    }\n    let removals = [];\n    while (currentFrom) {\n      if (!shouldSkip(removing, currentFrom))\n        removals.push(currentFrom);\n      currentFrom = getNextSibling(from2, currentFrom);\n    }\n    while (removals.length) {\n      let domForRemoval = removals.shift();\n      domForRemoval.remove();\n      removed(domForRemoval);\n    }\n  }\n  function getKey(el) {\n    return el && el.nodeType === 1 && key(el);\n  }\n  function keyToMap(els) {\n    let map = {};\n    for (let el of els) {\n      let theKey = getKey(el);\n      if (theKey) {\n        map[theKey] = el;\n      }\n    }\n    return map;\n  }\n  function addNodeBefore(parent, node, beforeMe) {\n    if (!shouldSkip(adding, node)) {\n      let clone = node.cloneNode(true);\n      parent.insertBefore(clone, beforeMe);\n      added(clone);\n      return clone;\n    }\n    return node;\n  }\n  assignOptions(options);\n  fromEl = from;\n  toEl = typeof toHtml === \"string\" ? createElement(toHtml) : toHtml;\n  if (window.Alpine && window.Alpine.closestDataStack && !from._x_dataStack) {\n    toEl._x_dataStack = window.Alpine.closestDataStack(from);\n    toEl._x_dataStack && window.Alpine.cloneNode(from, toEl);\n  }\n  patch(from, toEl);\n  fromEl = void 0;\n  toEl = void 0;\n  return from;\n}\nmorph.step = () => {\n};\nmorph.log = () => {\n};\nfunction shouldSkip(hook, ...args) {\n  let skip = false;\n  hook(...args, () => skip = true);\n  return skip;\n}\nvar patched = false;\nfunction createElement(html) {\n  const template = document.createElement(\"template\");\n  template.innerHTML = html;\n  return template.content.firstElementChild;\n}\nfunction textOrComment(el) {\n  return el.nodeType === 3 || el.nodeType === 8;\n}\nvar Block = class {\n  constructor(start, end) {\n    this.startComment = start;\n    this.endComment = end;\n  }\n  get children() {\n    let children = [];\n    let currentNode = this.startComment.nextSibling;\n    while (currentNode && currentNode !== this.endComment) {\n      children.push(currentNode);\n      currentNode = currentNode.nextSibling;\n    }\n    return children;\n  }\n  appendChild(child) {\n    this.endComment.before(child);\n  }\n  get firstChild() {\n    let first = this.startComment.nextSibling;\n    if (first === this.endComment)\n      return;\n    return first;\n  }\n  nextNode(reference) {\n    let next = reference.nextSibling;\n    if (next === this.endComment)\n      return;\n    return next;\n  }\n  insertBefore(newNode, reference) {\n    reference.before(newNode);\n    return newNode;\n  }\n};\nfunction getFirstNode(parent) {\n  return parent.firstChild;\n}\nfunction getNextSibling(parent, reference) {\n  let next;\n  if (parent instanceof Block) {\n    next = parent.nextNode(reference);\n  } else {\n    next = reference.nextSibling;\n  }\n  return next;\n}\nfunction monkeyPatchDomSetAttributeToAllowAtSymbols() {\n  if (patched)\n    return;\n  patched = true;\n  let original = Element.prototype.setAttribute;\n  let hostDiv = document.createElement(\"div\");\n  Element.prototype.setAttribute = function newSetAttribute(name, value) {\n    if (!name.includes(\"@\")) {\n      return original.call(this, name, value);\n    }\n    hostDiv.innerHTML = `<span ${name}=\"${value}\"></span>`;\n    let attr = hostDiv.firstElementChild.getAttributeNode(name);\n    hostDiv.firstElementChild.removeAttributeNode(attr);\n    this.setAttributeNode(attr);\n  };\n}\nfunction seedingMatchingId(to, from) {\n  let fromId = from && from._x_bindings && from._x_bindings.id;\n  if (!fromId)\n    return;\n  to.setAttribute(\"id\", fromId);\n  to.id = fromId;\n}\n\n// packages/morph/src/index.js\nfunction src_default(Alpine) {\n  Alpine.morph = morph;\n}\n\n// packages/morph/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as morph\n};\n", "// packages/mask/src/index.js\nfunction src_default(Alpine) {\n  Alpine.directive(\"mask\", (el, { value, expression }, { effect, evaluateLater, cleanup }) => {\n    let templateFn = () => expression;\n    let lastInputValue = \"\";\n    queueMicrotask(() => {\n      if ([\"function\", \"dynamic\"].includes(value)) {\n        let evaluator = evaluateLater(expression);\n        effect(() => {\n          templateFn = (input) => {\n            let result;\n            Alpine.dontAutoEvaluateFunctions(() => {\n              evaluator((value2) => {\n                result = typeof value2 === \"function\" ? value2(input) : value2;\n              }, { scope: {\n                // These are \"magics\" we'll make available to the x-mask:function:\n                \"$input\": input,\n                \"$money\": formatMoney.bind({ el })\n              } });\n            });\n            return result;\n          };\n          processInputValue(el, false);\n        });\n      } else {\n        processInputValue(el, false);\n      }\n      if (el._x_model)\n        el._x_model.set(el.value);\n    });\n    const controller = new AbortController();\n    cleanup(() => {\n      controller.abort();\n    });\n    el.addEventListener(\"input\", () => processInputValue(el), {\n      signal: controller.signal,\n      // Setting this as a capture phase listener to ensure it runs\n      // before wire:model or x-model added as a latent binding...\n      capture: true\n    });\n    el.addEventListener(\"blur\", () => processInputValue(el, false), { signal: controller.signal });\n    function processInputValue(el2, shouldRestoreCursor = true) {\n      let input = el2.value;\n      let template = templateFn(input);\n      if (!template || template === \"false\")\n        return false;\n      if (lastInputValue.length - el2.value.length === 1) {\n        return lastInputValue = el2.value;\n      }\n      let setInput = () => {\n        lastInputValue = el2.value = formatInput(input, template);\n      };\n      if (shouldRestoreCursor) {\n        restoreCursorPosition(el2, template, () => {\n          setInput();\n        });\n      } else {\n        setInput();\n      }\n    }\n    function formatInput(input, template) {\n      if (input === \"\")\n        return \"\";\n      let strippedDownInput = stripDown(template, input);\n      let rebuiltInput = buildUp(template, strippedDownInput);\n      return rebuiltInput;\n    }\n  }).before(\"model\");\n}\nfunction restoreCursorPosition(el, template, callback) {\n  let cursorPosition = el.selectionStart;\n  let unformattedValue = el.value;\n  callback();\n  let beforeLeftOfCursorBeforeFormatting = unformattedValue.slice(0, cursorPosition);\n  let newPosition = buildUp(\n    template,\n    stripDown(\n      template,\n      beforeLeftOfCursorBeforeFormatting\n    )\n  ).length;\n  el.setSelectionRange(newPosition, newPosition);\n}\nfunction stripDown(template, input) {\n  let inputToBeStripped = input;\n  let output = \"\";\n  let regexes = {\n    \"9\": /[0-9]/,\n    \"a\": /[a-zA-Z]/,\n    \"*\": /[a-zA-Z0-9]/\n  };\n  let wildcardTemplate = \"\";\n  for (let i = 0; i < template.length; i++) {\n    if ([\"9\", \"a\", \"*\"].includes(template[i])) {\n      wildcardTemplate += template[i];\n      continue;\n    }\n    for (let j = 0; j < inputToBeStripped.length; j++) {\n      if (inputToBeStripped[j] === template[i]) {\n        inputToBeStripped = inputToBeStripped.slice(0, j) + inputToBeStripped.slice(j + 1);\n        break;\n      }\n    }\n  }\n  for (let i = 0; i < wildcardTemplate.length; i++) {\n    let found = false;\n    for (let j = 0; j < inputToBeStripped.length; j++) {\n      if (regexes[wildcardTemplate[i]].test(inputToBeStripped[j])) {\n        output += inputToBeStripped[j];\n        inputToBeStripped = inputToBeStripped.slice(0, j) + inputToBeStripped.slice(j + 1);\n        found = true;\n        break;\n      }\n    }\n    if (!found)\n      break;\n  }\n  return output;\n}\nfunction buildUp(template, input) {\n  let clean = Array.from(input);\n  let output = \"\";\n  for (let i = 0; i < template.length; i++) {\n    if (![\"9\", \"a\", \"*\"].includes(template[i])) {\n      output += template[i];\n      continue;\n    }\n    if (clean.length === 0)\n      break;\n    output += clean.shift();\n  }\n  return output;\n}\nfunction formatMoney(input, delimiter = \".\", thousands, precision = 2) {\n  if (input === \"-\")\n    return \"-\";\n  if (/^\\D+$/.test(input))\n    return \"9\";\n  if (thousands === null || thousands === void 0) {\n    thousands = delimiter === \",\" ? \".\" : \",\";\n  }\n  let addThousands = (input2, thousands2) => {\n    let output = \"\";\n    let counter = 0;\n    for (let i = input2.length - 1; i >= 0; i--) {\n      if (input2[i] === thousands2)\n        continue;\n      if (counter === 3) {\n        output = input2[i] + thousands2 + output;\n        counter = 0;\n      } else {\n        output = input2[i] + output;\n      }\n      counter++;\n    }\n    return output;\n  };\n  let minus = input.startsWith(\"-\") ? \"-\" : \"\";\n  let strippedInput = input.replaceAll(new RegExp(`[^0-9\\\\${delimiter}]`, \"g\"), \"\");\n  let template = Array.from({ length: strippedInput.split(delimiter)[0].length }).fill(\"9\").join(\"\");\n  template = `${minus}${addThousands(template, thousands)}`;\n  if (precision > 0 && input.includes(delimiter))\n    template += `${delimiter}` + \"9\".repeat(precision);\n  queueMicrotask(() => {\n    if (this.el.value.endsWith(delimiter))\n      return;\n    if (this.el.value[this.el.selectionStart - 1] === delimiter) {\n      this.el.setSelectionRange(this.el.selectionStart - 1, this.el.selectionStart - 1);\n    }\n  });\n  return template;\n}\n\n// packages/mask/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as mask,\n  stripDown\n};\n", "import { closestComponent, destroyComponent, initComponent } from './store'\r\nimport { matchesForLivewireDirective, extractDirective } from './directives'\r\nimport { trigger } from './hooks'\r\nimport collapse from '@alpinejs/collapse'\r\nimport focus from '@alpinejs/focus'\r\nimport persist from '@alpinejs/persist'\r\nimport intersect from '@alpinejs/intersect'\r\nimport anchor from '@alpinejs/anchor'\r\nimport navigate from './plugins/navigate'\r\nimport history from './plugins/history'\r\nimport morph from '@alpinejs/morph'\r\nimport mask from '@alpinejs/mask'\r\nimport Alpine from 'alpinejs'\r\nimport { dispatch } from './utils'\r\n\r\nexport function start() {\r\n    setTimeout(() => ensureLivewireScriptIsntMisplaced())\r\n\r\n    dispatch(document, 'livewire:init')\r\n    dispatch(document, 'livewire:initializing')\r\n\r\n    Alpine.plugin(morph)\r\n    Alpine.plugin(history)\r\n    Alpine.plugin(intersect)\r\n    Alpine.plugin(collapse)\r\n    Alpine.plugin(anchor)\r\n    Alpine.plugin(focus)\r\n    Alpine.plugin(persist)\r\n    Alpine.plugin(navigate)\r\n    Alpine.plugin(mask)\r\n\r\n    Alpine.addRootSelector(() => '[wire\\\\:id]')\r\n\r\n    Alpine.onAttributesAdded((el, attributes) => {\r\n        // if there are no \"wire:\" directives we don't need to process this element any further.\r\n        // This prevents Livewire from causing general slowness for other Alpine elements on the page...\r\n        if (! Array.from(attributes).some(attribute => matchesForLivewireDirective(attribute.name))) return\r\n\r\n        let component = closestComponent(el, false)\r\n\r\n        if (! component) return\r\n\r\n        attributes.forEach(attribute => {\r\n            if (! matchesForLivewireDirective(attribute.name)) return;\r\n\r\n            let directive = extractDirective(el, attribute.name)\r\n\r\n            trigger('directive.init', { el, component, directive, cleanup: (callback) => {\r\n                Alpine.onAttributeRemoved(el, directive.raw, callback)\r\n            } })\r\n        })\r\n    })\r\n\r\n    Alpine.interceptInit(\r\n        Alpine.skipDuringClone(el => {\r\n            // if there are no \"wire:\" directives we don't need to process this element any further.\r\n            // This prevents Livewire from causing general slowness for other Alpine elements on the page...\r\n            if (! Array.from(el.attributes).some(attribute => matchesForLivewireDirective(attribute.name))) return\r\n\r\n            if (el.hasAttribute('wire:id')) {\r\n                let component = initComponent(el)\r\n\r\n                Alpine.onAttributeRemoved(el, 'wire:id', () => {\r\n                    destroyComponent(component.id)\r\n                })\r\n            }\r\n\r\n            let component = closestComponent(el, false)\r\n\r\n            if (component) {\r\n                trigger('element.init', { el, component })\r\n\r\n                let directives = Array.from(el.getAttributeNames())\r\n                    .filter(name => matchesForLivewireDirective(name))\r\n                    .map(name => extractDirective(el, name))\r\n\r\n                directives.forEach(directive => {\r\n                    trigger('directive.init', { el, component, directive, cleanup: (callback) => {\r\n                        Alpine.onAttributeRemoved(el, directive.raw, callback)\r\n                    } })\r\n                })\r\n            }\r\n        })\r\n    )\r\n\r\n    Alpine.start()\r\n\r\n    setTimeout(() => window.Livewire.initialRenderIsFinished = true)\r\n\r\n    dispatch(document, 'livewire:initialized')\r\n}\r\n\r\nfunction ensureLivewireScriptIsntMisplaced() {\r\n    let el = document.querySelector('script[data-update-uri][data-csrf]')\r\n\r\n    // If there is no Livewire-injected script on the page, move on...\r\n    if (! el) return\r\n\r\n    // If there is, let's ensure it's at the top-level. If it's nested\r\n    // inside a normal element, that probably means that a closing\r\n    // tag was missing in the template and Chrome moved the tag.\r\n\r\n    // We're only checking for \"div\" here because it's quick and useful...\r\n    let livewireEl = el.closest('[wire\\\\:id]')\r\n\r\n    if (livewireEl) {\r\n        console.warn('Livewire: missing closing tags found. Ensure your template elements contain matching closing tags.', livewireEl)\r\n    }\r\n}\r\n", "import { getDirectives } from '@/directives'\r\nimport { on } from '@/hooks'\r\nimport Alpine from 'alpinejs'\r\n\r\nlet cleanupStackByComponentId = {}\r\n\r\n// Adding a setTimeout here so that these event listeners are\r\n// registered AFTER most other event listenrs, this way, we\r\n// can call \"stopPropagation\" for things like wire:confirm\r\non('element.init', ({ el, component }) => setTimeout(() => {\r\n    let directives = getDirectives(el)\r\n\r\n    if (directives.missing('submit')) return\r\n\r\n    // Set a forms \"disabled\" state on inputs and buttons.\r\n    // Livewire will clean it all up automatically when the form\r\n    // submission returns and the new DOM lacks these additions.\r\n    el.addEventListener('submit', () => {\r\n        cleanupStackByComponentId[component.id] = []\r\n\r\n        Alpine.walk(component.el, (node, skip) => {\r\n            if (! el.contains(node)) return\r\n\r\n            if (node.hasAttribute('wire:ignore')) return skip()\r\n\r\n            if (\r\n                // <button type=\"submit\">\r\n                (node.tagName.toLowerCase() === 'button' &&\r\n                    node.type === 'submit') ||\r\n                // <select>\r\n                node.tagName.toLowerCase() === 'select' ||\r\n                // <input type=\"checkbox|radio\">\r\n                (node.tagName.toLowerCase() === 'input' &&\r\n                    (node.type === 'checkbox' || node.type === 'radio'))\r\n            ) {\r\n                if (!node.disabled)\r\n                    cleanupStackByComponentId[component.id].push(\r\n                        () => (node.disabled = false)\r\n                    )\r\n\r\n                node.disabled = true\r\n            } else if (\r\n                // <input type=\"text\">\r\n                node.tagName.toLowerCase() === 'input' ||\r\n                // <textarea>\r\n                node.tagName.toLowerCase() === 'textarea'\r\n            ) {\r\n                if (!node.readOnly)\r\n                    cleanupStackByComponentId[component.id].push(\r\n                        () => (node.readOnly = false)\r\n                    )\r\n\r\n                node.readOnly = true\r\n            }\r\n        })\r\n    })\r\n}))\r\n\r\non('commit', ({ component, respond }) => {\r\n    respond(() => {\r\n        cleanup(component)\r\n    })\r\n})\r\n\r\nfunction cleanup(component) {\r\n    if (! cleanupStackByComponentId[component.id]) return\r\n\r\n    while (cleanupStackByComponentId[component.id].length > 0) {\r\n        cleanupStackByComponentId[component.id].shift()()\r\n    }\r\n}\r\n", "import { on } from '@/hooks'\r\n\r\n// Ensure that all child components with reactive props (even deeply nested)\r\n// are included in the network request...\r\non('commit.pooling', ({ commits }) => {\r\n    commits.forEach(commit => {\r\n        let component = commit.component\r\n\r\n        getDeepChildrenWithBindings(component, child => {\r\n            child.$wire.$commit()\r\n        })\r\n    })\r\n})\r\n\r\n// Ensure that related components are pooled together, even if they chose\r\n// to be isolated normally...\r\non('commit.pooled', ({ pools }) => {\r\n    let commits = getPooledCommits(pools)\r\n\r\n    commits.forEach(commit => {\r\n        let component = commit.component\r\n\r\n        getDeepChildrenWithBindings(component, child => {\r\n            colocateCommitsByComponent(pools, component, child)\r\n        })\r\n    })\r\n})\r\n\r\nfunction getPooledCommits(pools) {\r\n    let commits = []\r\n\r\n    pools.forEach(pool => {\r\n        pool.commits.forEach(commit => {\r\n            commits.push(commit)\r\n        })\r\n    })\r\n\r\n    return commits\r\n}\r\n\r\nfunction colocateCommitsByComponent(pools, component, foreignComponent) {\r\n    let pool = findPoolWithComponent(pools, component)\r\n\r\n    let foreignPool = findPoolWithComponent(pools, foreignComponent)\r\n\r\n    let foreignCommit = foreignPool.findCommitByComponent(foreignComponent)\r\n\r\n    // Delete needs to come before add in case there are the same pool...\r\n    foreignPool.delete(foreignCommit)\r\n\r\n    pool.add(foreignCommit)\r\n\r\n    // Cleanup empty pools...\r\n    pools.forEach(pool => {\r\n        if (pool.empty()) pools.delete(pool)\r\n    })\r\n}\r\n\r\nfunction findPoolWithComponent(pools, component) {\r\n    for (let [idx, pool] of pools.entries()) {\r\n        if (pool.hasCommitFor(component)) return pool\r\n    }\r\n}\r\n\r\nfunction getDeepChildrenWithBindings(component, callback) {\r\n    getDeepChildren(component, child => {\r\n        if (hasReactiveProps(child) || hasWireModelableBindings(child)) {\r\n            callback(child)\r\n        }\r\n    })\r\n}\r\n\r\nfunction hasReactiveProps(component) {\r\n    let meta = component.snapshot.memo\r\n    let props = meta.props\r\n\r\n    return !! props\r\n}\r\n\r\nfunction hasWireModelableBindings(component) {\r\n    let meta = component.snapshot.memo\r\n    let bindings = meta.bindings\r\n\r\n    return !! bindings\r\n}\r\n\r\nfunction getDeepChildren(component, callback) {\r\n    component.children.forEach(child => {\r\n        callback(child)\r\n\r\n        getDeepChildren(child, callback)\r\n    })\r\n}\r\n", "import { on } from '@/hooks'\r\nimport Alpine from 'alpinejs'\r\n\r\nlet executedScripts = new WeakMap\r\n\r\nlet executedAssets = new Set\r\n\r\non('payload.intercept', async ({ assets }) => {\r\n    if(! assets) return\r\n\r\n    for (let [key, asset] of Object.entries(assets)) {\r\n        await onlyIfAssetsHaventBeenLoadedAlreadyOnThisPage(key, async () => {\r\n            await addAssetsToHeadTagOfPage(asset)\r\n        })\r\n    }\r\n})\r\n\r\n// Assets that were injected into the HTML need to be registered so that\r\n// they aren't loaded again...\r\non('component.init', ({ component }) => {\r\n    let assets = component.snapshot.memo.assets\r\n\r\n    if (assets) {\r\n        assets.forEach((key) => {\r\n            if (executedAssets.has(key)) return\r\n            executedAssets.add(key)\r\n        })\r\n    }\r\n})\r\n\r\non('effect', ({ component, effects }) => {\r\n    let scripts = effects.scripts\r\n\r\n    if (scripts) {\r\n        Object.entries(scripts).forEach(([key, content]) => {\r\n            onlyIfScriptHasntBeenRunAlreadyForThisComponent(component, key, () => {\r\n                let scriptContent = extractScriptTagContent(content)\r\n\r\n                Alpine.dontAutoEvaluateFunctions(() => {\r\n                    Alpine.evaluate(component.el, scriptContent, { '$wire': component.$wire })\r\n                })\r\n            })\r\n        })\r\n    }\r\n})\r\n\r\nfunction onlyIfScriptHasntBeenRunAlreadyForThisComponent(component, key, callback) {\r\n    if (executedScripts.has(component)) {\r\n        let alreadyRunKeys = executedScripts.get(component)\r\n\r\n        if (alreadyRunKeys.includes(key)) return\r\n    }\r\n\r\n    callback()\r\n\r\n    if (! executedScripts.has(component)) executedScripts.set(component, [])\r\n\r\n    let alreadyRunKeys = executedScripts.get(component)\r\n\r\n    alreadyRunKeys.push(key)\r\n\r\n    executedScripts.set(component, alreadyRunKeys)\r\n}\r\n\r\nfunction extractScriptTagContent(rawHtml) {\r\n    let scriptRegex = /<script\\b[^>]*>([\\s\\S]*?)<\\/script>/gm\r\n    let matches = scriptRegex.exec(rawHtml)\r\n    let innards =  matches && matches[1] ? matches[1].trim() : ''\r\n\r\n    return innards\r\n}\r\n\r\nasync function onlyIfAssetsHaventBeenLoadedAlreadyOnThisPage(key, callback) {\r\n    if (executedAssets.has(key)) return\r\n\r\n    await callback()\r\n\r\n    executedAssets.add(key)\r\n}\r\n\r\nasync function addAssetsToHeadTagOfPage(rawHtml) {\r\n    let newDocument = (new DOMParser()).parseFromString(rawHtml, \"text/html\")\r\n    let newHead = document.adoptNode(newDocument.head)\r\n\r\n    for (let child of newHead.children) {\r\n        try {\r\n            await runAssetSynchronously(child)\r\n        } catch (error) {\r\n            // Let's eat any promise rejects so that we don't\r\n            // break the rest of Livewire's handling of the response...\r\n            // Any errors triggered by adding the script tag to the page\r\n            // will still be thrown...\r\n        }\r\n    }\r\n}\r\n\r\nasync function runAssetSynchronously(child) {\r\n    return new Promise((resolve, reject) => {\r\n        if (isScript(child)) {\r\n            let script = cloneScriptTag(child)\r\n\r\n            // Script assets need to be loaded synchronously so that scripts have\r\n            // their global variables available...\r\n            if (script.src) {\r\n                script.onload = () => resolve()\r\n                script.onerror = () => reject()\r\n            } else {\r\n                resolve()\r\n            }\r\n\r\n            document.head.appendChild(script)\r\n        } else {\r\n            document.head.appendChild(child)\r\n\r\n            resolve()\r\n        }\r\n    })\r\n}\r\n\r\nfunction isScript(el)   {\r\n    return el.tagName.toLowerCase() === 'script'\r\n}\r\n\r\nfunction cloneScriptTag(el) {\r\n    let script = document.createElement('script')\r\n\r\n    script.textContent = el.textContent\r\n    script.async = el.async\r\n\r\n    for (let attr of el.attributes) {\r\n        script.setAttribute(attr.name, attr.value)\r\n    }\r\n\r\n    return script\r\n}\r\n", "import { on } from '@/hooks'\r\n\r\non('commit', ({ succeed }) => {\r\n    succeed(({ effects }) => {\r\n        let download = effects.download\r\n\r\n        if (! download) return\r\n\r\n        // We need to use window.webkitURL so downloads work on iOS Safari.\r\n        let urlObject = window.webkitURL || window.URL\r\n\r\n        let url = urlObject.createObjectURL(\r\n            base64toBlob(download.content, download.contentType)\r\n        )\r\n\r\n        let invisibleLink = document.createElement('a')\r\n\r\n        invisibleLink.style.display = 'none'\r\n        invisibleLink.href = url\r\n        invisibleLink.download = download.name\r\n\r\n        document.body.appendChild(invisibleLink)\r\n\r\n        invisibleLink.click()\r\n\r\n        setTimeout(function() {\r\n            urlObject.revokeObjectURL(url)\r\n        }, 0);\r\n    })\r\n})\r\n\r\nfunction base64toBlob(b64Data, contentType = '', sliceSize = 512) {\r\n    const byteCharacters = atob(b64Data)\r\n    const byteArrays = []\r\n\r\n    if (contentType === null) contentType = ''\r\n\r\n    for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {\r\n        let slice = byteCharacters.slice(offset, offset + sliceSize)\r\n\r\n        let byteNumbers = new Array(slice.length)\r\n\r\n        for (let i = 0; i < slice.length; i++) {\r\n            byteNumbers[i] = slice.charCodeAt(i)\r\n        }\r\n\r\n        let byteArray = new Uint8Array(byteNumbers)\r\n\r\n        byteArrays.push(byteArray)\r\n    }\r\n\r\n    return new Blob(byteArrays, { type: contentType });\r\n}\r\n", "import { overrideMethod } from '@/$wire'\r\nimport { on } from '@/hooks'\r\nimport Alpine from 'alpinejs'\r\n\r\non('effect', ({ component, effects }) => {\r\n    let js = effects.js\r\n    let xjs = effects.xjs\r\n\r\n    if (js) {\r\n        Object.entries(js).forEach(([method, body]) => {\r\n            overrideMethod(component, method, () => {\r\n                Alpine.evaluate(component.el, body)\r\n            })\r\n        })\r\n    }\r\n\r\n    if (xjs) {\r\n        xjs.forEach(expression => {\r\n            Alpine.evaluate(component.el, expression)\r\n        })\r\n    }\r\n})\r\n\r\n", "import { on } from '@/hooks'\r\n\r\nlet componentsThatWantToBeBundled = new WeakSet\r\n\r\nlet componentsThatAreLazy = new WeakSet\r\n\r\non('component.init', ({ component }) => {\r\n    let memo = component.snapshot.memo\r\n\r\n    // We only care about lazy components...\r\n    if (memo.lazyLoaded === undefined) return\r\n\r\n    componentsThatAreLazy.add(component)\r\n\r\n    // The component doesn't want its lazy load to be an isolated request\r\n    // then we'll mark it to detect at \"pool\" time to make sure it gets bundled...\r\n    if (memo.lazyIsolated !== undefined && memo.lazyIsolated === false) {\r\n        componentsThatWantToBeBundled.add(component)\r\n    }\r\n})\r\n\r\non('commit.pooling', ({ commits }) => {\r\n    commits.forEach(commit => {\r\n        // We only care about lazy components...\r\n        if (! componentsThatAreLazy.has(commit.component)) return\r\n\r\n        if (componentsThatWantToBeBundled.has(commit.component)) {\r\n            commit.isolate = false\r\n\r\n            componentsThatWantToBeBundled.delete(commit.component)\r\n        } else {\r\n            commit.isolate = true\r\n        }\r\n\r\n        // Component is no longer lazy after the first full request, so remove it...\r\n        componentsThatAreLazy.delete(commit.component)\r\n    })\r\n})\r\n", "import { on } from '@/hooks'\r\nimport { dataGet } from '@/utils'\r\nimport Alpine from 'alpinejs'\r\nimport { track } from '@/plugins/history'\r\n\r\non('effect', ({ component, effects, cleanup }) => {\r\n    let queryString = effects['url']\r\n\r\n    if (! queryString) return\r\n\r\n    Object.entries(queryString).forEach(([key, value]) => {\r\n        let { name, as, use, alwaysShow, except } = normalizeQueryStringEntry(key, value)\r\n\r\n        if (! as) as = name\r\n\r\n        let initialValue = [false, null, undefined].includes(except) ? dataGet(component.ephemeral, name) : except\r\n\r\n        let { replace, push, pop } = track(as, initialValue, alwaysShow)\r\n\r\n        if (use === 'replace') {\r\n            let effectReference = Alpine.effect(() => {\r\n                replace(dataGet(component.reactive, name))\r\n            })\r\n\r\n            cleanup(() => Alpine.release(effectReference))\r\n        } else if (use === 'push') {\r\n            let forgetCommitHandler = on('commit', ({ component: commitComponent, succeed }) => {\r\n                if (component !== commitComponent) return\r\n\r\n                let beforeValue = dataGet(component.canonical, name)\r\n\r\n                succeed(() => {\r\n                    let afterValue = dataGet(component.canonical, name)\r\n\r\n                    if (JSON.stringify(beforeValue) === JSON.stringify(afterValue)) return\r\n\r\n                    push(afterValue)\r\n                })\r\n            })\r\n\r\n            let forgetPopHandler = pop(async newValue => {\r\n                await component.$wire.set(name, newValue)\r\n\r\n                // @todo: this is the absolute worst thing ever I'm so sorry this needs to be refactored stat:\r\n                document.querySelectorAll('input').forEach(el => {\r\n                    el._x_forceModelUpdate && el._x_forceModelUpdate(el._x_model.get())\r\n                })\r\n            })\r\n\r\n            cleanup(() => {\r\n                forgetCommitHandler()\r\n                forgetPopHandler()\r\n            })\r\n        }\r\n    })\r\n})\r\n\r\nfunction normalizeQueryStringEntry(key, value) {\r\n    let defaults = { use: 'replace', alwaysShow: false }\r\n\r\n    if (typeof value === 'string') {\r\n        return {...defaults, name: value, as: value }\r\n    } else {\r\n        let fullerDefaults = {...defaults, name: key, as: key }\r\n\r\n        return {...fullerDefaults, ...value }\r\n    }\r\n}\r\n", "import { on } from '@/hooks'\r\nimport { dispatchSelf } from '@/events'\r\n\r\non('request', ({ options }) => {\r\n    if (window.Echo) {\r\n        options.headers['X-Socket-ID'] = window.Echo.socketId()\r\n    }\r\n})\r\n\r\non('effect', ({ component, effects }) => {\r\n    let listeners = effects.listeners || []\r\n\r\n    listeners.forEach(event => {\r\n        if (event.startsWith('echo')) {\r\n            if (typeof window.Echo === 'undefined') {\r\n                console.warn('Laravel Echo cannot be found')\r\n\r\n                return\r\n            }\r\n\r\n            let event_parts = event.split(/(echo:|echo-)|:|,/)\r\n\r\n            if (event_parts[1] == 'echo:') {\r\n                event_parts.splice(2, 0, 'channel', undefined)\r\n            }\r\n\r\n            if (event_parts[2] == 'notification') {\r\n                event_parts.push(undefined, undefined)\r\n            }\r\n\r\n            let [\r\n                s1,\r\n                signature,\r\n                channel_type,\r\n                s2,\r\n                channel,\r\n                s3,\r\n                event_name,\r\n            ] = event_parts\r\n\r\n            if (['channel', 'private', 'encryptedPrivate'].includes(channel_type)) {\r\n                let handler = e => dispatchSelf(component, event, [e])\r\n\r\n                window.Echo[channel_type](channel).listen(event_name, handler)\r\n\r\n                component.addCleanup(() => {\r\n                    window.Echo[channel_type](channel).stopListening(event_name, handler)\r\n                })\r\n            } else if (channel_type == 'presence') {\r\n                if (['here', 'joining', 'leaving'].includes(event_name)) {\r\n                    window.Echo.join(channel)[event_name](e => {\r\n                        dispatchSelf(component, event, [e])\r\n                    })\r\n\r\n                    // @todo: add listener cleanup...\r\n                } else{\r\n                    let handler = e => dispatchSelf(component, event, [e])\r\n\r\n                    window.Echo.join(channel).listen(event_name, handler)\r\n\r\n                    component.addCleanup(() => {\r\n                        window.Echo.leaveChannel(channel)\r\n                    })\r\n                }\r\n            } else if (channel_type == 'notification') {\r\n                window.Echo.private(channel).notification(notification => {\r\n                    dispatchSelf(component, event, [notification])\r\n                })\r\n\r\n                // @todo: add listener cleanup...\r\n            } else {\r\n                console.warn('Echo channel type not yet supported')\r\n            }\r\n        }\r\n    })\r\n})\r\n", "import { on } from '@/hooks'\r\n\r\nlet componentsThatAreIsolated = new WeakSet\r\n\r\non('component.init', ({ component }) => {\r\n    let memo = component.snapshot.memo\r\n\r\n    // We only care about isolated components...\r\n    if (memo.isolate !== true) return\r\n\r\n    componentsThatAreIsolated.add(component)\r\n})\r\n\r\non('commit.pooling', ({ commits }) => {\r\n    commits.forEach(commit => {\r\n        // We only care about isolated components...\r\n        if (! componentsThatAreIsolated.has(commit.component)) return\r\n\r\n        commit.isolate = true\r\n    })\r\n})\r\n", "shouldHideProgressBar() && Alpine.navigate.disableProgressBar()\r\n\r\ndocument.addEventListener('alpine:navigated', e => {\r\n    // Forward a \"livewire\" version of the Alpine event...\r\n    document.dispatchEvent(new CustomEvent('livewire:navigated', { bubbles: true }))\r\n})\r\n\r\ndocument.addEventListener('alpine:navigating', e => {\r\n    // Forward a \"livewire\" version of the Alpine event...\r\n    document.dispatchEvent(new CustomEvent('livewire:navigating', { bubbles: true }))\r\n})\r\n\r\nexport function shouldRedirectUsingNavigateOr(effects, url, or) {\r\n    let forceNavigate = effects.redirectUsingNavigate\r\n\r\n    if (forceNavigate) {\r\n        Alpine.navigate(url)\r\n    } else {\r\n        or()\r\n    }\r\n}\r\n\r\nfunction shouldHideProgressBar() {\r\n    if (!! document.querySelector('[data-no-progress-bar]')) return true\r\n\r\n    if (window.livewireScriptConfig && window.livewireScriptConfig.progressBar === false) return true\r\n\r\n    return false\r\n}\r\n", "import { on } from \"@/hooks\"\r\nimport { shouldRedirectUsingNavigateOr } from \"./supportNavigate\"\r\n\r\non('effect', ({ effects }) => {\r\n    if (! effects['redirect']) return\r\n\r\n    let url = effects['redirect']\r\n\r\n    shouldRedirectUsingNavigateOr(effects, url, () => {\r\n        window.location.href = url\r\n    })\r\n})\r\n", "import { trigger } from \"@/hooks\"\r\nimport { closestComponent } from \"@/store\"\r\nimport Alpine from 'alpinejs'\r\n\r\nexport function morph(component, el, html) {\r\n    let wrapperTag = el.parentElement\r\n        // If the root element is a \"tr\", we need the wrapper to be a \"table\"...\r\n        ? el.parentElement.tagName.toLowerCase()\r\n        : 'div'\r\n\r\n    let wrapper = document.createElement(wrapperTag)\r\n\r\n    wrapper.innerHTML = html\r\n    let parentComponent\r\n\r\n    try {\r\n        parentComponent = closestComponent(el.parentElement)\r\n    } catch (e) {}\r\n\r\n    parentComponent && (wrapper.__livewire = parentComponent)\r\n\r\n    let to = wrapper.firstElementChild\r\n\r\n    to.__livewire = component\r\n\r\n    trigger('morph', { el, toEl: to, component })\r\n\r\n    Alpine.morph(el, to, {\r\n        updating: (el, toEl, childrenOnly, skip) => {\r\n            if (isntElement(el)) return\r\n\r\n            trigger('morph.updating', { el, toEl, component, skip, childrenOnly })\r\n\r\n            if (el.__livewire_ignore === true) return skip()\r\n            if (el.__livewire_ignore_self === true) childrenOnly()\r\n\r\n            // Children will update themselves.\r\n            if (isComponentRootEl(el) && el.getAttribute('wire:id') !== component.id) return skip()\r\n\r\n            // Give the root Livewire \"to\" element, the same object reference as the \"from\"\r\n            // element. This ensures new Alpine magics like $wire and @entangle can\r\n            // initialize in the context of a real Livewire component object.\r\n            if (isComponentRootEl(el)) toEl.__livewire = component\r\n        },\r\n\r\n        updated: (el) => {\r\n            if (isntElement(el)) return\r\n\r\n            trigger('morph.updated', { el, component })\r\n        },\r\n\r\n        removing: (el, skip) => {\r\n            if (isntElement(el)) return\r\n\r\n            trigger('morph.removing', { el, component, skip })\r\n        },\r\n\r\n        removed: (el) => {\r\n            if (isntElement(el)) return\r\n\r\n            trigger('morph.removed', { el, component })\r\n        },\r\n\r\n        adding: (el) => {\r\n            trigger('morph.adding', { el, component })\r\n        },\r\n\r\n        added: (el) => {\r\n            if (isntElement(el)) return\r\n\r\n            const closestComponentId = closestComponent(el).id\r\n\r\n            trigger('morph.added', { el })\r\n        },\r\n\r\n        key: (el) => {\r\n            if (isntElement(el)) return\r\n\r\n            return el.hasAttribute(`wire:key`)\r\n                ? el.getAttribute(`wire:key`)\r\n                : // If no \"key\", then first check for \"wire:id\", then \"id\"\r\n                el.hasAttribute(`wire:id`)\r\n                    ? el.getAttribute(`wire:id`)\r\n                    : el.id\r\n        },\r\n\r\n        lookahead: false,\r\n    })\r\n}\r\n\r\nfunction isntElement(el) {\r\n    return typeof el.hasAttribute !== 'function'\r\n}\r\n\r\nfunction isComponentRootEl(el) {\r\n    return el.hasAttribute('wire:id')\r\n}\r\n", "import { morph } from '@/morph'\r\nimport { on } from '@/hooks'\r\n\r\non('effect', ({ component, effects }) => {\r\n    let html = effects.html\r\n    if (! html) return\r\n\r\n    // Wrapping this in a double queueMicrotask. The first one puts it after all\r\n    // other \"effect\" hooks, and the second one puts it after all reactive\r\n    // Alpine effects (that are processed via flushJobs in scheduler).\r\n    queueMicrotask(() => {\r\n        queueMicrotask(() => {\r\n            morph(component, component.el, html)\r\n        })\r\n    })\r\n})\r\n", "import { dispatch, dispatchSelf, dispatchTo } from '@/events'\r\nimport { on as hook } from '@/hooks'\r\n\r\nhook('effect', ({ component, effects }) => {\r\n    registerListeners(component, effects.listeners || [])\r\n\r\n    dispatchEvents(component, effects.dispatches || [])\r\n})\r\n\r\nfunction registerListeners(component, listeners) {\r\n    listeners.forEach(name => {\r\n        // Register a global listener...\r\n        let handler = (e) => {\r\n            if (e.__livewire) e.__livewire.receivedBy.push(component)\r\n\r\n            component.$wire.call('__dispatch', name, e.detail || {})\r\n        }\r\n\r\n        window.addEventListener(name, handler)\r\n\r\n        component.addCleanup(() => window.removeEventListener(name, handler))\r\n\r\n        // Register a listener for when \"to\" or \"self\"\r\n        component.el.addEventListener(name, (e) => {\r\n            // We don't care about non-Livewire dispatches...\r\n            if (! e.__livewire) return\r\n\r\n            // We don't care about Livewire bubbling dispatches (only \"to\" and \"self\")...\r\n            if (e.bubbles) return\r\n\r\n            if (e.__livewire) e.__livewire.receivedBy.push(component.id)\r\n\r\n            component.$wire.call('__dispatch', name, e.detail || {})\r\n        })\r\n    })\r\n}\r\n\r\nfunction dispatchEvents(component, dispatches) {\r\n    dispatches.forEach(({ name, params = {}, self = false, to }) => {\r\n        if (self) dispatchSelf(component, name, params)\r\n        else if (to) dispatchTo(to, name, params)\r\n        else dispatch(component, name, params)\r\n    })\r\n}\r\n\r\n\r\n", "import { directive } from \"@/directives\"\r\nimport { on } from '@/hooks'\r\nimport Alpine from 'alpinejs'\r\n\r\non('morph.added', ({ el }) => {\r\n    el.__addedByMorph = true\r\n})\r\n\r\ndirective('transition', ({ el, directive, component, cleanup }) => {\r\n    let visibility = Alpine.reactive({ state: el.__addedByMorph ? false : true })\r\n\r\n    // We're going to control the element's transition with Alpine transitions...\r\n    Alpine.bind(el, {\r\n        [directive.rawName.replace('wire:', 'x-')]: '',\r\n        'x-show'() { return visibility.state },\r\n    })\r\n\r\n    // If it's not the initial page load, transition the element in...\r\n    el.__addedByMorph && setTimeout(() => visibility.state = true)\r\n\r\n    let cleanups = []\r\n\r\n    cleanups.push(on('morph.removing', ({ el, skip }) => {\r\n        // Here we interupt morphdom from removing an element...\r\n        skip()\r\n\r\n        // When the transition ends...\r\n        el.addEventListener('transitionend', () => {\r\n            // We can actually remove the element and all the listeners along with it...\r\n            el.remove()\r\n        })\r\n\r\n        // Now we can trigger a transition:\r\n        visibility.state = false\r\n\r\n        cleanups.push(on('morph', ({ component: morphComponent }) => {\r\n            if (morphComponent !== component) return\r\n\r\n            // While this element is transitioning out, a new morph is about to occur.\r\n            // Let's expidite this one and clean it up so it doesn't interfere...\r\n            el.remove()\r\n\r\n            cleanups.forEach(i => i())\r\n        }))\r\n    }))\r\n\r\n    cleanup(() => cleanups.forEach(i => i()))\r\n})\r\n\r\n\r\n\r\n", "import { WeakBag } from './utils'\r\n\r\nlet callbacksByComponent = new WeakBag\r\n\r\nexport function debounceByComponent(component, callback, time) {\r\n    // Prepare yourself for what's happening here.\r\n    // Any text input with wire:model on it should be \"debounced\" by ~150ms by default.\r\n    // We can't use a simple debounce function because we need a way to clear all the pending\r\n    // debounces if a user submits a form or performs some other action.\r\n    // This is a modified debounce function that acts just like a debounce, except it stores\r\n    // the pending callbacks in a global property so we can \"clear them\" on command instead\r\n    // of waiting for their setTimeouts to expire. I know.\r\n\r\n    // This is a \"null\" callback. Each wire:model will resister one of these upon initialization.\r\n    let callbackRegister = { callback: () => { } }\r\n    callbacksByComponent.add(component, callbackRegister)\r\n\r\n    // This is a normal \"timeout\" for a debounce function.\r\n    var timeout\r\n\r\n    return e => {\r\n        clearTimeout(timeout)\r\n\r\n        timeout = setTimeout(() => {\r\n            callback(e)\r\n            timeout = undefined\r\n\r\n            // Because we just called the callback, let's return the\r\n            // callback register to it's normal \"null\" state.\r\n            callbackRegister.callback = () => { }\r\n        }, time)\r\n\r\n        // Register the current callback in the register as a kind-of \"escape-hatch\".\r\n        callbackRegister.callback = () => {\r\n            clearTimeout(timeout)\r\n            callback(e)\r\n        }\r\n    }\r\n}\r\n\r\nexport function callAndClearComponentDebounces(component, callback) {\r\n    // This is to protect against the following scenario:\r\n    // A user is typing into a debounced input, and hits the enter key.\r\n    // If the enter key submits a form or something, the submission\r\n    // will happen BEFORE the model input finishes syncing because\r\n    // of the debounce. This makes sure to clear anything in the debounce queue.\r\n\r\n    callbacksByComponent.each(component, callbackRegister => {\r\n        callbackRegister.callback()\r\n        callbackRegister.callback = () => { }\r\n    })\r\n\r\n    callback()\r\n}\r\n", "import { callAndClearComponentDebounces } from '@/debounce'\r\nimport { on } from '@/hooks'\r\nimport Alpine from 'alpinejs'\r\n\r\non('directive.init', ({ el, directive, cleanup, component }) => {\r\n    if (['snapshot', 'effects', 'model', 'init', 'loading', 'poll', 'ignore', 'id', 'data', 'key', 'target', 'dirty'].includes(directive.value)) return\r\n\r\n    let attribute = directive.rawName.replace('wire:', 'x-on:')\r\n\r\n    // Automatically add .prevent to wire:submit, if they didn't add it themselves...\r\n    if (directive.value === 'submit' && ! directive.modifiers.includes('prevent')) {\r\n        attribute = attribute + '.prevent'\r\n    }\r\n\r\n    let cleanupBinding = Alpine.bind(el, {\r\n        [attribute](e) {\r\n            let execute = () => {\r\n                callAndClearComponentDebounces(component, () => {\r\n                    // Forward these calls directly to $wire. Let them handle firing the request.\r\n                    Alpine.evaluate(el, '$wire.'+directive.expression, { scope: { $event: e }})\r\n                })\r\n            }\r\n\r\n            // Account for the existance of wire:confirm=\"...\" on the action...\r\n            if (el.__livewire_confirm) {\r\n                el.__livewire_confirm(() => {\r\n                    execute()\r\n                }, () => {\r\n                    e.stopImmediatePropagation()\r\n                })\r\n            } else {\r\n                execute()\r\n            }\r\n        }\r\n    })\r\n\r\n    cleanup(cleanupBinding)\r\n})\r\n", "import Alpine from 'alpinejs'\r\n\r\nAlpine.addInitSelector(() => `[wire\\\\:navigate]`)\r\nAlpine.addInitSelector(() => `[wire\\\\:navigate\\\\.hover]`)\r\n\r\nAlpine.interceptInit(\r\n    Alpine.skipDuringClone(el => {\r\n        if (el.hasAttribute('wire:navigate')) {\r\n            Alpine.bind(el, { ['x-navigate']: true })\r\n        } else if (el.hasAttribute('wire:navigate.hover')) {\r\n            Alpine.bind(el, { ['x-navigate.hover']: true })\r\n        }\r\n    })\r\n)\r\n\r\ndocument.addEventListener('alpine:navigating', () => {\r\n    // Before navigating away, we'll inscribe the latest state of each component\r\n    // in their HTML so that upon return, they will have the latest state...\r\n    Livewire.all().forEach(component => {\r\n        component.inscribeSnapshotAndEffectsOnElement()\r\n    })\r\n})\r\n", "import { directive } from \"@/directives\"\r\n\r\ndirective('confirm', ({ el, directive }) => {\r\n    let message = directive.expression\r\n    let shouldPrompt = directive.modifiers.includes('prompt')\r\n\r\n    // Convert sanitized linebreaks (\"\\n\") to real line breaks...\r\n    message = message.replaceAll('\\\\n', '\\n')\r\n\r\n    if (message === '') message = 'Are you sure?'\r\n\r\n    el.__livewire_confirm = (action, instead) => {\r\n        if (shouldPrompt) {\r\n            let [question, expected] = message.split('|')\r\n\r\n            if (! expected) {\r\n                console.warn('Livewire: Must provide expectation with wire:confirm.prompt')\r\n            } else {\r\n                let input = prompt(question)\r\n\r\n                if (input === expected) {\r\n                    action()\r\n                } else {\r\n                    instead()\r\n                }\r\n            }\r\n        } else {\r\n            if (confirm(message)) action()\r\n            else instead()\r\n        }\r\n    }\r\n})\r\n", "\r\nexport function toggleBooleanStateDirective(el, directive, isTruthy, cachedDisplay = null) {\r\n    isTruthy = directive.modifiers.includes('remove') ? ! isTruthy : isTruthy\r\n\r\n    if (directive.modifiers.includes('class')) {\r\n        let classes = directive.expression.split(' ').filter(String)\r\n\r\n        if (isTruthy) {\r\n            el.classList.add(...classes)\r\n        } else {\r\n            el.classList.remove(...classes)\r\n        }\r\n    } else if (directive.modifiers.includes('attr')) {\r\n        if (isTruthy) {\r\n            el.setAttribute(directive.expression, true)\r\n        } else {\r\n            el.removeAttribute(directive.expression)\r\n        }\r\n    } else {\r\n        let cache = cachedDisplay ?? window\r\n            .getComputedStyle(el, null)\r\n            .getPropertyValue('display')\r\n\r\n        let display = (['inline', 'block', 'table', 'flex', 'grid', 'inline-flex']\r\n            .filter(i => directive.modifiers.includes(i))[0] || 'inline-block')\r\n\r\n        // If element is to be removed, set display to it's current value\r\n        display = directive.modifiers.includes('remove') ? cache : display\r\n\r\n        el.style.display = isTruthy ? display : 'none'\r\n    }\r\n}\r\n", "import { toggleBooleanStateDirective } from './shared'\r\nimport { directive } from '@/directives'\r\n\r\nlet offlineHandlers = new Set\r\nlet onlineHandlers = new Set\r\n\r\nwindow.addEventListener('offline', () => offlineHandlers.forEach(i => i()))\r\nwindow.addEventListener('online', () => onlineHandlers.forEach(i => i()))\r\n\r\ndirective('offline', ({ el, directive, cleanup }) => {\r\n    let setOffline = () => toggleBooleanStateDirective(el, directive, true)\r\n    let setOnline = () => toggleBooleanStateDirective(el, directive, false)\r\n\r\n    offlineHandlers.add(setOffline)\r\n    onlineHandlers.add(setOnline)\r\n\r\n    cleanup(() => {\r\n        offlineHandlers.delete(setOffline)\r\n        onlineHandlers.delete(setOnline)\r\n    })\r\n})\r\n", "import { toggleBooleanStateDirective } from './shared'\r\nimport { directive, getDirectives } from \"@/directives\"\r\nimport { on } from '@/hooks'\r\n\r\ndirective('loading', ({ el, directive, component }) => {\r\n    let { targets, inverted } = getTargets(el)\r\n\r\n    let [delay, abortDelay] = applyDelay(directive)\r\n\r\n    whenTargetsArePartOfRequest(component, targets, inverted, [\r\n        () => delay(() => toggleBooleanStateDirective(el, directive, true)),\r\n        () => abortDelay(() => toggleBooleanStateDirective(el, directive, false)),\r\n    ])\r\n\r\n    whenTargetsArePartOfFileUpload(component, targets, [\r\n        () => delay(() => toggleBooleanStateDirective(el, directive, true)),\r\n        () => abortDelay(() => toggleBooleanStateDirective(el, directive, false)),\r\n    ])\r\n})\r\n\r\nfunction applyDelay(directive) {\r\n    if (! directive.modifiers.includes('delay') || directive.modifiers.includes('none')) return [i => i(), i => i()]\r\n\r\n    let duration = 200\r\n\r\n    let delayModifiers = {\r\n        'shortest': 50,\r\n        'shorter': 100,\r\n        'short': 150,\r\n        'default': 200,\r\n        'long': 300,\r\n        'longer': 500,\r\n        'longest': 1000,\r\n    }\r\n\r\n    Object.keys(delayModifiers).some(key => {\r\n        if (directive.modifiers.includes(key)) {\r\n            duration = delayModifiers[key]\r\n\r\n            return true\r\n        }\r\n    })\r\n\r\n    let timeout\r\n    let started = false\r\n\r\n    return [\r\n        (callback) => { // Initiate delay...\r\n            timeout = setTimeout(() => {\r\n                callback()\r\n\r\n                started = true\r\n            }, duration)\r\n        },\r\n        async (callback) => { // Execute or abort...\r\n            if (started) {\r\n                await callback()\r\n                started = false\r\n            } else {\r\n                clearTimeout(timeout)\r\n            }\r\n        },\r\n    ]\r\n}\r\n\r\nfunction whenTargetsArePartOfRequest(component, targets, inverted, [ startLoading, endLoading ]) {\r\n    on('commit', ({ component: iComponent, commit: payload, respond }) => {\r\n        if (iComponent !== component) return\r\n\r\n        if (targets.length > 0 && containsTargets(payload, targets) === inverted) return\r\n\r\n        startLoading()\r\n\r\n        respond(() => {\r\n            endLoading()\r\n        })\r\n    })\r\n}\r\n\r\nfunction whenTargetsArePartOfFileUpload(component, targets, [ startLoading, endLoading ]) {\r\n    let eventMismatch = e => {\r\n        let { id, property } = e.detail\r\n\r\n        if (id !== component.id) return true\r\n        if (targets.length > 0 && ! targets.map(i => i.target).includes(property)) return true\r\n\r\n        return false\r\n    }\r\n\r\n    window.addEventListener('livewire-upload-start', e => {\r\n        if (eventMismatch(e)) return\r\n\r\n        startLoading()\r\n    })\r\n\r\n    window.addEventListener('livewire-upload-finish', e => {\r\n        if (eventMismatch(e)) return\r\n\r\n        endLoading()\r\n    })\r\n\r\n    window.addEventListener('livewire-upload-error', e => {\r\n        if (eventMismatch(e)) return\r\n\r\n        endLoading()\r\n    })\r\n}\r\n\r\nfunction containsTargets(payload, targets) {\r\n    let { updates, calls } = payload\r\n\r\n    return targets.some(({ target, params }) => {\r\n        if (params) {\r\n            return calls.some(({ method, params: methodParams }) => {\r\n                return target === method\r\n                    && params === quickHash(JSON.stringify(methodParams))\r\n            })\r\n        }\r\n\r\n        let hasMatchingUpdate = Object.keys(updates).some(property => {\r\n            // If the property is nested, like `foo.bar`, we need to check if the root `foo` is the target.\r\n            if (property.includes('.')) {\r\n                let propertyRoot = property.split('.')[0]\r\n\r\n                if (propertyRoot === target) return true\r\n            }\r\n\r\n            return property === target\r\n        })\r\n\r\n        if (hasMatchingUpdate) return true\r\n\r\n        if (calls.map(i => i.method).includes(target)) return true\r\n    })\r\n}\r\n\r\nfunction getTargets(el) {\r\n    let directives = getDirectives(el)\r\n\r\n    let targets = []\r\n\r\n    let inverted = false\r\n\r\n    if (directives.has('target')) {\r\n        let directive = directives.get('target')\r\n\r\n        let raw = directive.expression\r\n\r\n        if (directive.modifiers.includes(\"except\")) inverted = true\r\n\r\n        if (raw.includes('(') && raw.includes(')')) {\r\n            targets.push({ target: directive.method, params: quickHash(JSON.stringify(directive.params)) })\r\n        } else if (raw.includes(',')) {\r\n            raw.split(',').map(i => i.trim()).forEach(target => {\r\n                targets.push({ target })\r\n            })\r\n        } else {\r\n            targets.push({ target: raw })\r\n        }\r\n    } else {\r\n        // If there is no wire:target, let's check for the existance of a wire:click=\"foo\" or something,\r\n        // and automatically scope this loading directive to that action.\r\n        let nonActionOrModelLivewireDirectives = [ 'init', 'dirty', 'offline', 'target', 'loading', 'poll', 'ignore', 'key', 'id' ]\r\n\r\n        directives\r\n            .all()\r\n            .filter(i => ! nonActionOrModelLivewireDirectives.includes(i.value))\r\n            .map(i => i.expression.split('(')[0])\r\n            .forEach(target => targets.push({ target }))\r\n    }\r\n\r\n    return { targets, inverted }\r\n}\r\n\r\nfunction quickHash(subject) {\r\n    return btoa(encodeURIComponent(subject))\r\n}\r\n", "import { contentIsFromDump } from '@/utils'\r\nimport { directive } from '@/directives'\r\nimport { on, trigger } from '@/hooks'\r\n\r\ndirective('stream', ({el, directive, cleanup }) => {\r\n    let { expression, modifiers } = directive\r\n\r\n    let off = on('stream', ({ name, content, replace }) => {\r\n        if (name !== expression) return\r\n\r\n        if (modifiers.includes('replace') || replace) {\r\n            el.innerHTML = content\r\n        } else {\r\n            el.innerHTML = el.innerHTML + content\r\n        }\r\n    })\r\n\r\n    cleanup(off)\r\n})\r\n\r\non('request', ({ respond }) => {\r\n    respond(mutableObject => {\r\n        let response = mutableObject.response\r\n\r\n        if (! response.headers.has('X-Livewire-Stream')) return\r\n\r\n        mutableObject.response = {\r\n            ok: true,\r\n            redirected: false,\r\n            status: 200,\r\n\r\n            async text() {\r\n                let finalResponse = await interceptStreamAndReturnFinalResponse(response, streamed => {\r\n                    trigger('stream', streamed)\r\n                })\r\n\r\n                if (contentIsFromDump(finalResponse)) {\r\n                    this.ok = false\r\n                }\r\n\r\n                return finalResponse\r\n            }\r\n        }\r\n    })\r\n})\r\n\r\nasync function interceptStreamAndReturnFinalResponse(response, callback) {\r\n    let reader = response.body.getReader()\r\n    let remainingResponse = ''\r\n\r\n    while (true) {\r\n        let { done, value: chunk } = await reader.read()\r\n\r\n        let decoder = new TextDecoder\r\n        let output = decoder.decode(chunk)\r\n\r\n        let [ streams, remaining ] = extractStreamObjects(remainingResponse + output)\r\n\r\n        streams.forEach(stream => {\r\n            callback(stream)\r\n        })\r\n\r\n        remainingResponse = remaining\r\n\r\n        if (done) return remainingResponse\r\n    }\r\n}\r\n\r\nfunction extractStreamObjects(raw) {\r\n    let regex = /({\"stream\":true.*?\"endStream\":true})/g\r\n\r\n    let matches = raw.match(regex)\r\n\r\n    let parsed = []\r\n\r\n    if (matches) {\r\n        for (let i = 0; i < matches.length; i++) {\r\n            parsed.push(JSON.parse(matches[i]).body)\r\n        }\r\n    }\r\n\r\n    let remaining = raw.replace(regex, '');\r\n\r\n    return [ parsed, remaining ];\r\n}\r\n", "import { directive } from \"@/directives\"\r\n\r\ndirective('ignore', ({ el, directive }) => {\r\n    if (directive.modifiers.includes('self')) {\r\n        el.__livewire_ignore_self = true\r\n    } else {\r\n        el.__livewire_ignore = true\r\n    }\r\n})\r\n", "import { toggleBooleanStateDirective } from './shared'\r\nimport { directive, getDirectives } from '@/directives'\r\nimport { dataGet, WeakBag } from '@/utils'\r\nimport { on } from '@/hooks'\r\n\r\nlet refreshDirtyStatesByComponent = new WeakBag\r\n\r\non('commit', ({ component, respond }) => {\r\n    respond(() => {\r\n        setTimeout(() => { // Doing a \"setTimeout\" to let morphdom do its thing first...\r\n            refreshDirtyStatesByComponent.each(component, i => i(false))\r\n        })\r\n    })\r\n})\r\n\r\ndirective('dirty', ({ el, directive, component }) => {\r\n    let targets = dirtyTargets(el)\r\n\r\n    let dirty = Alpine.reactive({ state: false })\r\n\r\n    let oldIsDirty = false\r\n\r\n    let initialDisplay = el.style.display\r\n\r\n    let refreshDirtyState = (isDirty) => {\r\n        toggleBooleanStateDirective(el, directive, isDirty, initialDisplay)\r\n\r\n        oldIsDirty = isDirty\r\n    }\r\n\r\n    refreshDirtyStatesByComponent.add(component, refreshDirtyState)\r\n\r\n    Alpine.effect(() => {\r\n        let isDirty = false\r\n\r\n        if (targets.length === 0) {\r\n            isDirty = JSON.stringify(component.canonical) !== JSON.stringify(component.reactive)\r\n        } else {\r\n            for (let i = 0; i < targets.length; i++) {\r\n                if (isDirty) break;\r\n\r\n                let target = targets[i]\r\n\r\n                isDirty = JSON.stringify(dataGet(component.canonical, target)) !== JSON.stringify(dataGet(component.reactive, target))\r\n            }\r\n        }\r\n\r\n        if (oldIsDirty !== isDirty) {\r\n            refreshDirtyState(isDirty)\r\n        }\r\n\r\n        oldIsDirty = isDirty\r\n    })\r\n})\r\n\r\nfunction dirtyTargets(el) {\r\n    let directives = getDirectives(el)\r\n    let targets = []\r\n\r\n    if (directives.has('model')) {\r\n        targets.push(directives.get('model').expression)\r\n    }\r\n\r\n    if (directives.has('target')) {\r\n        targets = targets.concat(\r\n            directives\r\n            .get('target')\r\n            .expression.split(',')\r\n            .map(s => s.trim())\r\n        )\r\n    }\r\n\r\n    return targets\r\n}\r\n", "import { directive } from '@/directives'\r\nimport { handleFileUpload } from '@/features/supportFileUploads'\r\nimport { closestComponent } from '@/store'\r\nimport { dataGet, dataSet } from '@/utils'\r\nimport Alpine from 'alpinejs'\r\n\r\ndirective('model', ({ el, directive, component, cleanup }) => {\r\n    let { expression, modifiers } = directive\r\n\r\n    if (! expression) {\r\n        return console.warn('Livewire: [wire:model] is missing a value.', el)\r\n    }\r\n\r\n    if (componentIsMissingProperty(component, expression)) {\r\n        return console.warn('Livewire: [wire:model=\"'+expression+'\"] property does not exist on component: ['+component.name+']', el)\r\n    }\r\n\r\n    // Handle file uploads differently...\r\n    if (el.type && el.type.toLowerCase() === 'file') {\r\n        return handleFileUpload(el, expression, component, cleanup)\r\n    }\r\n\r\n    let isLive = modifiers.includes('live')\r\n    let isLazy = modifiers.includes('lazy') || modifiers.includes('change')\r\n    let onBlur = modifiers.includes('blur')\r\n    let isDebounced = modifiers.includes('debounce')\r\n\r\n    // Trigger a network request (only if .live or .lazy is added to wire:model)...\r\n    let update = expression.startsWith('$parent')\r\n        ? () => component.$wire.$parent.$commit()\r\n        : () => component.$wire.$commit()\r\n\r\n    // If a plain wire:model is added to a text input, debounce the\r\n    // trigerring of network requests.\r\n    let debouncedUpdate = isTextInput(el) && ! isDebounced && isLive\r\n        ? debounce(update, 150)\r\n        : update\r\n\r\n    Alpine.bind(el, {\r\n        ['@change']() {\r\n            isLazy && update()\r\n        },\r\n        ['@blur']() {\r\n            onBlur && update()\r\n        },\r\n        ['x-model' + getModifierTail(modifiers)]() {\r\n            return {\r\n                get() {\r\n                    return dataGet(component.$wire, expression)\r\n                },\r\n                set(value) {\r\n                    dataSet(component.$wire, expression, value)\r\n\r\n                    isLive && (! isLazy) && (! onBlur) && debouncedUpdate()\r\n                },\r\n            }\r\n        }\r\n    })\r\n})\r\n\r\nfunction getModifierTail(modifiers) {\r\n    modifiers = modifiers.filter(i => ! [\r\n        'lazy', 'defer'\r\n    ].includes(i))\r\n\r\n    if (modifiers.length === 0) return ''\r\n\r\n    return '.' + modifiers.join('.')\r\n}\r\n\r\nfunction isTextInput(el) {\r\n    return (\r\n        ['INPUT', 'TEXTAREA'].includes(el.tagName.toUpperCase()) &&\r\n        !['checkbox', 'radio'].includes(el.type)\r\n    )\r\n}\r\n\r\nfunction isDirty(subject, dirty) {\r\n    // Check for exact match: wire:model=\"bob\" in ['bob']\r\n    if (dirty.includes(subject)) return true\r\n\r\n    // Check case of parent: wire:model=\"bob.1\" in ['bob']\r\n    return dirty.some(i => subject.startsWith(i))\r\n}\r\n\r\nfunction componentIsMissingProperty(component, property) {\r\n    if (property.startsWith('$parent')) {\r\n        let parent = closestComponent(component.el.parentElement, false)\r\n\r\n        if (! parent) return true\r\n\r\n        return componentIsMissingProperty(parent, property.split('$parent.')[1])\r\n    }\r\n\r\n    let baseProperty = property.split('.')[0]\r\n\r\n    return ! Object.keys(component.canonical).includes(baseProperty)\r\n}\r\n\r\nfunction debounce(func, wait) {\r\n    var timeout;\r\n\r\n    return function() {\r\n      var context = this, args = arguments;\r\n\r\n      var later = function() {\r\n            timeout = null\r\n\r\n            func.apply(context, args)\r\n      }\r\n\r\n      clearTimeout(timeout)\r\n\r\n      timeout = setTimeout(later, wait)\r\n    }\r\n}\r\n", "import { directive } from \"@/directives\"\r\nimport Alpine from 'alpinejs'\r\n\r\ndirective('init', ({ el, directive }) => {\r\n    let fullMethod = directive.expression ?? '$refresh'\r\n\r\n    Alpine.evaluate(el, `$wire.${fullMethod}`)\r\n})\r\n\r\n", "import { directive, getDirectives } from \"@/directives\"\r\nimport Alpine from 'alpinejs'\r\n\r\ndirective('poll', ({ el, directive }) => {\r\n    let interval = extractDurationFrom(directive.modifiers, 2000)\r\n\r\n    let { start, pauseWhile, throttleWhile, stopWhen } = poll(() => {\r\n        triggerComponentRequest(el, directive)\r\n    }, interval)\r\n\r\n    start()\r\n\r\n    throttleWhile(() => theTabIsInTheBackground() && theDirectiveIsMissingKeepAlive(directive))\r\n    pauseWhile(() => theDirectiveHasVisible(directive) && theElementIsNotInTheViewport(el))\r\n    pauseWhile(() => theDirectiveIsOffTheElement(el))\r\n    pauseWhile(() => livewireIsOffline())\r\n    stopWhen(() => theElementIsDisconnected(el))\r\n})\r\n\r\nfunction triggerComponentRequest(el, directive) {\r\n    Alpine.evaluate(el,\r\n        directive.expression ? '$wire.' + directive.expression : '$wire.$commit()'\r\n    )\r\n}\r\n\r\nfunction poll(callback, interval = 2000) {\r\n    let pauseConditions = []\r\n    let throttleConditions = []\r\n    let stopConditions = []\r\n\r\n    return {\r\n        start() {\r\n            let clear = syncronizedInterval(interval, () => {\r\n                if (stopConditions.some(i => i())) return clear()\r\n                if (pauseConditions.some(i => i())) return\r\n                if (throttleConditions.some(i => i()) && Math.random() < .95) return\r\n\r\n                callback()\r\n            })\r\n        },\r\n        pauseWhile(condition) {\r\n            pauseConditions.push(condition)\r\n        },\r\n        throttleWhile(condition) {\r\n            throttleConditions.push(condition)\r\n        },\r\n        stopWhen(condition) {\r\n            stopConditions.push(condition)\r\n        }\r\n    }\r\n}\r\n\r\nlet clocks = []\r\n\r\nfunction syncronizedInterval(ms, callback) {\r\n    if (! clocks[ms]) {\r\n        let clock = {\r\n            timer: setInterval(() => clock.callbacks.forEach(i => i()), ms),\r\n            callbacks: new Set,\r\n        }\r\n\r\n        clocks[ms] = clock\r\n    }\r\n\r\n    clocks[ms].callbacks.add(callback)\r\n\r\n    return () => {\r\n        clocks[ms].callbacks.delete(callback)\r\n\r\n        if (clocks[ms].callbacks.size === 0) {\r\n            clearInterval(clocks[ms].timer)\r\n            delete clocks[ms]\r\n        }\r\n    }\r\n}\r\n\r\nlet isOffline = false\r\n\r\nwindow.addEventListener('offline', () => isOffline = true)\r\nwindow.addEventListener('online', () => isOffline = false)\r\n\r\nfunction livewireIsOffline() {\r\n    return isOffline\r\n}\r\n\r\nlet inBackground = false\r\n\r\ndocument.addEventListener('visibilitychange', () => { inBackground = document.hidden }, false)\r\n\r\nfunction theTabIsInTheBackground() {\r\n    return inBackground\r\n}\r\n\r\nfunction theDirectiveIsOffTheElement(el) {\r\n    return ! getDirectives(el).has('poll')\r\n}\r\n\r\nfunction theDirectiveIsMissingKeepAlive(directive) {\r\n    return ! directive.modifiers.includes('keep-alive')\r\n}\r\n\r\nfunction theDirectiveHasVisible(directive) {\r\n    return directive.modifiers.includes('visible')\r\n}\r\n\r\nfunction theElementIsNotInTheViewport(el) {\r\n    let bounding = el.getBoundingClientRect()\r\n\r\n    return ! (\r\n        bounding.top < (window.innerHeight || document.documentElement.clientHeight) &&\r\n        bounding.left < (window.innerWidth || document.documentElement.clientWidth) &&\r\n        bounding.bottom > 0 &&\r\n        bounding.right > 0\r\n    )\r\n}\r\n\r\nfunction theElementIsDisconnected(el) {\r\n    return el.isConnected === false\r\n}\r\n\r\nfunction extractDurationFrom(modifiers, defaultDuration) {\r\n    let durationInMilliSeconds\r\n    let durationInMilliSecondsString = modifiers.find(mod => mod.match(/([0-9]+)ms/))\r\n    let durationInSecondsString = modifiers.find(mod => mod.match(/([0-9]+)s/))\r\n\r\n    if (durationInMilliSecondsString) {\r\n        durationInMilliSeconds = Number(durationInMilliSecondsString.replace('ms', ''))\r\n    } else if (durationInSecondsString) {\r\n        durationInMilliSeconds = Number(durationInSecondsString.replace('s', '')) * 1000\r\n    }\r\n\r\n    return durationInMilliSeconds || defaultDuration\r\n}\r\n", "import { dispatchGlobal as dispatch, dispatchTo, on } from './events'\r\nimport { find, first, getByName, all } from './store'\r\nimport { start } from './lifecycle'\r\nimport { on as hook, trigger, triggerAsync } from './hooks'\r\nimport { directive } from './directives'\r\nimport Alpine from 'alpinejs'\r\n\r\nlet Livewire = {\r\n    directive,\r\n    dispatchTo,\r\n    start,\r\n    first,\r\n    find,\r\n    getByName,\r\n    all,\r\n    hook,\r\n    trigger,\r\n    triggerAsync,\r\n    dispatch,\r\n    on,\r\n    get navigate() {\r\n        return Alpine.navigate\r\n    }\r\n}\r\n\r\nif (window.Livewire) console.warn('Detected multiple instances of Livewire running')\r\nif (window.Alpine) console.warn('Detected multiple instances of Alpine running')\r\n\r\n// Register features...\r\nimport './features/index'\r\n\r\n// Register directives...\r\nimport './directives/index'\r\n\r\n// Make globals...\r\nwindow.Livewire = Livewire\r\nwindow.Alpine = Alpine\r\n\r\nif (window.livewireScriptConfig === undefined) {\r\n    document.addEventListener('DOMContentLoaded', () => {\r\n        // Start Livewire...\r\n        Livewire.start()\r\n    })\r\n}\r\n\r\nexport { Livewire, Alpine };\r\n"],
-  "mappings": "giBAAA,oBAGC,AAAC,UAAS,EAAM,EAAS,CAExB,AAAI,MAAO,SAAW,YAAc,OAAO,IACzC,OAAO,CAAO,EACT,AAAI,MAAO,KAAY,SAC5B,GAAO,QAAU,EAAQ,EAEzB,EAAK,UAAY,EAAQ,CAG7B,GAAG,GAAM,UAAW,CAClB,GAAI,GAAY,CAAC,EAEjB,EAAU,QAAU,QAEpB,GAAI,GAAW,EAAU,SAAW,CAClC,QAAS,IACT,OAAQ,OACR,cAAe,GACf,MAAO,IACP,QAAS,GACT,YAAa,IACb,aAAc,IACd,YAAa,GACb,YAAa,eACb,gBAAiB,mBACjB,OAAQ,OACR,SAAU,qIACZ,EASA,EAAU,UAAY,SAAS,EAAS,CACtC,GAAI,GAAK,EACT,IAAK,IAAO,GACV,EAAQ,EAAQ,GACZ,IAAU,QAAa,EAAQ,eAAe,CAAG,GAAG,GAAS,GAAO,GAG1E,MAAO,KACT,EAMA,EAAU,OAAS,KASnB,EAAU,IAAM,SAAS,EAAG,CAC1B,GAAI,GAAU,EAAU,UAAU,EAElC,EAAI,EAAM,EAAG,EAAS,QAAS,CAAC,EAChC,EAAU,OAAU,IAAM,EAAI,KAAO,EAErC,GAAI,GAAW,EAAU,OAAO,CAAC,CAAO,EACpC,EAAW,EAAS,cAAc,EAAS,WAAW,EACtD,EAAW,EAAS,MACpB,EAAW,EAAS,OAExB,SAAS,YAET,EAAM,SAAS,EAAM,CAEnB,AAAI,EAAS,gBAAkB,IAAI,GAAS,cAAgB,EAAU,kBAAkB,GAGxF,EAAI,EAAK,EAAe,EAAG,EAAO,CAAI,CAAC,EAEvC,A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AC,EAE1E,MAAI,GACA,EAAyB,OAAO,EAA6B,QAAQ,KAAM,EAAE,CAAC,EACvE,GACP,GAAyB,OAAO,EAAwB,QAAQ,IAAK,EAAE,CAAC,EAAI,KAGzE,GAA0B,CACrC,CC7HA,GAAI,IAAW,CACX,YACA,cACA,SACA,SACA,QACA,aACA,OACA,OACA,UACA,gBACA,YACA,MACA,GAAI,WAAW,CACX,MAAO,GAAO,QAClB,CACJ,EAEA,AAAI,OAAO,UAAU,QAAQ,KAAK,iDAAiD,EACnF,AAAI,OAAO,QAAQ,QAAQ,KAAK,+CAA+C,EAS/E,OAAO,SAAW,GAClB,OAAO,OAAS,EAEhB,AAAI,OAAO,uBAAyB,QAChC,SAAS,iBAAiB,mBAAoB,IAAM,CAEhD,GAAS,MAAM,CACnB,CAAC",
+  "sourcesContent": ["/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress\n * @license MIT */\n\n;(function(root, factory) {\n\n  if (typeof define === 'function' && define.amd) {\n    define(factory);\n  } else if (typeof exports === 'object') {\n    module.exports = factory();\n  } else {\n    root.NProgress = factory();\n  }\n\n})(this, function() {\n  var NProgress = {};\n\n  NProgress.version = '0.2.0';\n\n  var Settings = NProgress.settings = {\n    minimum: 0.08,\n    easing: 'ease',\n    positionUsing: '',\n    speed: 200,\n    trickle: true,\n    trickleRate: 0.02,\n    trickleSpeed: 800,\n    showSpinner: true,\n    barSelector: '[role=\"bar\"]',\n    spinnerSelector: '[role=\"spinner\"]',\n    parent: 'body',\n    template: '<div class=\"bar\" role=\"bar\"><div class=\"peg\"></div></div><div class=\"spinner\" role=\"spinner\"><div class=\"spinner-icon\"></div></div>'\n  };\n\n  /**\n   * Updates configuration.\n   *\n   *     NProgress.configure({\n   *       minimum: 0.1\n   *     });\n   */\n  NProgress.configure = function(options) {\n    var key, value;\n    for (key in options) {\n      value = options[key];\n      if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value;\n    }\n\n    return this;\n  };\n\n  /**\n   * Last number.\n   */\n\n  NProgress.status = null;\n\n  /**\n   * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`.\n   *\n   *     NProgress.set(0.4);\n   *     NProgress.set(1.0);\n   */\n\n  NProgress.set = function(n) {\n    var started = NProgress.isStarted();\n\n    n = clamp(n, Settings.minimum, 1);\n    NProgress.status = (n === 1 ? null : n);\n\n    var progress = NProgress.render(!started),\n        bar      = progress.querySelector(Settings.barSelector),\n        speed    = Settings.speed,\n        ease     = Settings.easing;\n\n    progress.offsetWidth; /* Repaint */\n\n    queue(function(next) {\n      // Set positionUsing if it hasn't already been set\n      if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS();\n\n      // Add transition\n      css(bar, barPositionCSS(n, speed, ease));\n\n      if (n === 1) {\n        // Fade out\n        css(progress, { \n          transition: 'none', \n          opacity: 1 \n        });\n        progress.offsetWidth; /* Repaint */\n\n        setTimeout(function() {\n          css(progress, { \n            transition: 'all ' + speed + 'ms linear', \n            opacity: 0 \n          });\n          setTimeout(function() {\n            NProgress.remove();\n            next();\n          }, speed);\n        }, speed);\n      } else {\n        setTimeout(next, speed);\n      }\n    });\n\n    return this;\n  };\n\n  NProgress.isStarted = function() {\n    return typeof NProgress.status === 'number';\n  };\n\n  /**\n   * Shows the progress bar.\n   * This is the same as setting the status to 0%, except that it doesn't go backwards.\n   *\n   *     NProgress.start();\n   *\n   */\n  NProgress.start = function() {\n    if (!NProgress.status) NProgress.set(0);\n\n    var work = function() {\n      setTimeout(function() {\n        if (!NProgress.status) return;\n        NProgress.trickle();\n        work();\n      }, Settings.trickleSpeed);\n    };\n\n    if (Settings.trickle) work();\n\n    return this;\n  };\n\n  /**\n   * Hides the progress bar.\n   * This is the *sort of* the same as setting the status to 100%, with the\n   * difference being `done()` makes some placebo effect of some realistic motion.\n   *\n   *     NProgress.done();\n   *\n   * If `true` is passed, it will show the progress bar even if its hidden.\n   *\n   *     NProgress.done(true);\n   */\n\n  NProgress.done = function(force) {\n    if (!force && !NProgress.status) return this;\n\n    return NProgress.inc(0.3 + 0.5 * Math.random()).set(1);\n  };\n\n  /**\n   * Increments by a random amount.\n   */\n\n  NProgress.inc = function(amount) {\n    var n = NProgress.status;\n\n    if (!n) {\n      return NProgress.start();\n    } else {\n      if (typeof amount !== 'number') {\n        amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95);\n      }\n\n      n = clamp(n + amount, 0, 0.994);\n      return NProgress.set(n);\n    }\n  };\n\n  NProgress.trickle = function() {\n    return NProgress.inc(Math.random() * Settings.trickleRate);\n  };\n\n  /**\n   * Waits for all supplied jQuery promises and\n   * increases the progress as the promises resolve.\n   *\n   * @param $promise jQUery Promise\n   */\n  (function() {\n    var initial = 0, current = 0;\n\n    NProgress.promise = function($promise) {\n      if (!$promise || $promise.state() === \"resolved\") {\n        return this;\n      }\n\n      if (current === 0) {\n        NProgress.start();\n      }\n\n      initial++;\n      current++;\n\n      $promise.always(function() {\n        current--;\n        if (current === 0) {\n            initial = 0;\n            NProgress.done();\n        } else {\n            NProgress.set((initial - current) / initial);\n        }\n      });\n\n      return this;\n    };\n\n  })();\n\n  /**\n   * (Internal) renders the progress bar markup based on the `template`\n   * setting.\n   */\n\n  NProgress.render = function(fromStart) {\n    if (NProgress.isRendered()) return document.getElementById('nprogress');\n\n    addClass(document.documentElement, 'nprogress-busy');\n    \n    var progress = document.createElement('div');\n    progress.id = 'nprogress';\n    progress.innerHTML = Settings.template;\n\n    var bar      = progress.querySelector(Settings.barSelector),\n        perc     = fromStart ? '-100' : toBarPerc(NProgress.status || 0),\n        parent   = document.querySelector(Settings.parent),\n        spinner;\n    \n    css(bar, {\n      transition: 'all 0 linear',\n      transform: 'translate3d(' + perc + '%,0,0)'\n    });\n\n    if (!Settings.showSpinner) {\n      spinner = progress.querySelector(Settings.spinnerSelector);\n      spinner && removeElement(spinner);\n    }\n\n    if (parent != document.body) {\n      addClass(parent, 'nprogress-custom-parent');\n    }\n\n    parent.appendChild(progress);\n    return progress;\n  };\n\n  /**\n   * Removes the element. Opposite of render().\n   */\n\n  NProgress.remove = function() {\n    removeClass(document.documentElement, 'nprogress-busy');\n    removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent');\n    var progress = document.getElementById('nprogress');\n    progress && removeElement(progress);\n  };\n\n  /**\n   * Checks if the progress bar is rendered.\n   */\n\n  NProgress.isRendered = function() {\n    return !!document.getElementById('nprogress');\n  };\n\n  /**\n   * Determine which positioning CSS rule to use.\n   */\n\n  NProgress.getPositioningCSS = function() {\n    // Sniff on document.body.style\n    var bodyStyle = document.body.style;\n\n    // Sniff prefixes\n    var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' :\n                       ('MozTransform' in bodyStyle) ? 'Moz' :\n                       ('msTransform' in bodyStyle) ? 'ms' :\n                       ('OTransform' in bodyStyle) ? 'O' : '';\n\n    if (vendorPrefix + 'Perspective' in bodyStyle) {\n      // Modern browsers with 3D support, e.g. Webkit, IE10\n      return 'translate3d';\n    } else if (vendorPrefix + 'Transform' in bodyStyle) {\n      // Browsers without 3D support, e.g. IE9\n      return 'translate';\n    } else {\n      // Browsers without translate() support, e.g. IE7-8\n      return 'margin';\n    }\n  };\n\n  /**\n   * Helpers\n   */\n\n  function clamp(n, min, max) {\n    if (n < min) return min;\n    if (n > max) return max;\n    return n;\n  }\n\n  /**\n   * (Internal) converts a percentage (`0..1`) to a bar translateX\n   * percentage (`-100%..0%`).\n   */\n\n  function toBarPerc(n) {\n    return (-1 + n) * 100;\n  }\n\n\n  /**\n   * (Internal) returns the correct CSS for changing the bar's\n   * position given an n percentage, and speed and ease from Settings\n   */\n\n  function barPositionCSS(n, speed, ease) {\n    var barCSS;\n\n    if (Settings.positionUsing === 'translate3d') {\n      barCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' };\n    } else if (Settings.positionUsing === 'translate') {\n      barCSS = { transform: 'translate('+toBarPerc(n)+'%,0)' };\n    } else {\n      barCSS = { 'margin-left': toBarPerc(n)+'%' };\n    }\n\n    barCSS.transition = 'all '+speed+'ms '+ease;\n\n    return barCSS;\n  }\n\n  /**\n   * (Internal) Queues a function to be executed.\n   */\n\n  var queue = (function() {\n    var pending = [];\n    \n    function next() {\n      var fn = pending.shift();\n      if (fn) {\n        fn(next);\n      }\n    }\n\n    return function(fn) {\n      pending.push(fn);\n      if (pending.length == 1) next();\n    };\n  })();\n\n  /**\n   * (Internal) Applies css properties to an element, similar to the jQuery \n   * css method.\n   *\n   * While this helper does assist with vendor prefixed property names, it \n   * does not perform any manipulation of values prior to setting styles.\n   */\n\n  var css = (function() {\n    var cssPrefixes = [ 'Webkit', 'O', 'Moz', 'ms' ],\n        cssProps    = {};\n\n    function camelCase(string) {\n      return string.replace(/^-ms-/, 'ms-').replace(/-([\\da-z])/gi, function(match, letter) {\n        return letter.toUpperCase();\n      });\n    }\n\n    function getVendorProp(name) {\n      var style = document.body.style;\n      if (name in style) return name;\n\n      var i = cssPrefixes.length,\n          capName = name.charAt(0).toUpperCase() + name.slice(1),\n          vendorName;\n      while (i--) {\n        vendorName = cssPrefixes[i] + capName;\n        if (vendorName in style) return vendorName;\n      }\n\n      return name;\n    }\n\n    function getStyleProp(name) {\n      name = camelCase(name);\n      return cssProps[name] || (cssProps[name] = getVendorProp(name));\n    }\n\n    function applyCss(element, prop, value) {\n      prop = getStyleProp(prop);\n      element.style[prop] = value;\n    }\n\n    return function(element, properties) {\n      var args = arguments,\n          prop, \n          value;\n\n      if (args.length == 2) {\n        for (prop in properties) {\n          value = properties[prop];\n          if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value);\n        }\n      } else {\n        applyCss(element, args[1], args[2]);\n      }\n    }\n  })();\n\n  /**\n   * (Internal) Determines if an element or space separated list of class names contains a class name.\n   */\n\n  function hasClass(element, name) {\n    var list = typeof element == 'string' ? element : classList(element);\n    return list.indexOf(' ' + name + ' ') >= 0;\n  }\n\n  /**\n   * (Internal) Adds a class to an element.\n   */\n\n  function addClass(element, name) {\n    var oldList = classList(element),\n        newList = oldList + name;\n\n    if (hasClass(oldList, name)) return; \n\n    // Trim the opening space.\n    element.className = newList.substring(1);\n  }\n\n  /**\n   * (Internal) Removes a class from an element.\n   */\n\n  function removeClass(element, name) {\n    var oldList = classList(element),\n        newList;\n\n    if (!hasClass(element, name)) return;\n\n    // Replace the class name.\n    newList = oldList.replace(' ' + name + ' ', ' ');\n\n    // Trim the opening and closing spaces.\n    element.className = newList.substring(1, newList.length - 1);\n  }\n\n  /**\n   * (Internal) Gets a space separated list of the class names on the element. \n   * The list is wrapped with a single space on each end to facilitate finding \n   * matches within the list.\n   */\n\n  function classList(element) {\n    return (' ' + (element.className || '') + ' ').replace(/\\s+/gi, ' ');\n  }\n\n  /**\n   * (Internal) Removes an element from the DOM.\n   */\n\n  function removeElement(element) {\n    element && element.parentNode && element.parentNode.removeChild(element);\n  }\n\n  return NProgress;\n});\n\n", "\nexport class Bag {\n    constructor() { this.arrays = {} }\n\n    add(key, value) {\n        if (! this.arrays[key]) this.arrays[key] = []\n        this.arrays[key].push(value)\n    }\n\n    get(key) { return this.arrays[key] || [] }\n\n    each(key, callback) { return this.get(key).forEach(callback) }\n}\n\nexport class WeakBag {\n    constructor() { this.arrays = new WeakMap }\n\n    add(key, value) {\n        if (! this.arrays.has(key) ) this.arrays.set(key, [])\n        this.arrays.get(key).push(value)\n    }\n\n    get(key) { return this.arrays.has(key) ? this.arrays.get(key) : [] }\n\n    each(key, callback) { return this.get(key).forEach(callback) }\n}\n\nexport function dispatch(el, name, detail = {}, bubbles = true) {\n    el.dispatchEvent(\n        new CustomEvent(name, {\n            detail,\n            bubbles,\n            // Allows events to pass the shadow DOM barrier.\n            composed: true,\n            cancelable: true,\n        })\n    )\n}\n\n/**\n * Type-checking in JS is weird and annoying, these are better.\n */\nexport function isObjecty(subject) { return (typeof subject === 'object' && subject !== null) }\nexport function isObject(subject) { return (isObjecty(subject) && ! isArray(subject)) }\nexport function isArray(subject) { return Array.isArray(subject) }\nexport function isFunction(subject) { return typeof subject === 'function' }\nexport function isPrimitive(subject) { return typeof subject !== 'object' || subject === null }\n\n/**\n * Clone an object deeply to wipe out any shared references.\n */\nexport function deepClone(obj) { return JSON.parse(JSON.stringify(obj)) }\n\n/**\n * Determine if two objects take the exact same shape.\n */\nexport function deeplyEqual(a, b) { return JSON.stringify(a) === JSON.stringify(b) }\n\n/**\n * An easy way to loop through arrays and objects.\n */\nexport function each(subject, callback) {\n    Object.entries(subject).forEach(([key, value]) => callback(key, value))\n}\n\n/**\n * Get a property from an object with support for dot-notation.\n */\nexport function dataGet(object, key) {\n    if (key === '') return object\n\n    return key.split('.').reduce((carry, i) => {\n        if (carry === undefined) return undefined\n\n        return carry[i]\n    }, object)\n}\n\n/**\n * Set a property on an object with support for dot-notation.\n */\nexport function dataSet(object, key, value) {\n    let segments = key.split('.')\n\n    if (segments.length === 1) {\n        return object[key] = value\n    }\n\n    let firstSegment = segments.shift()\n    let restOfSegments = segments.join('.')\n\n    if (object[firstSegment] === undefined) {\n        object[firstSegment] = {}\n    }\n\n    dataSet(object[firstSegment], restOfSegments, value)\n}\n\n/**\n * Create a flat, dot-notated diff of two obejcts.\n */\nexport function diff(left, right, diffs = {}, path = '') {\n    // Are they the same?\n    if (left === right) return diffs\n\n    // Are they COMPLETELY different?\n    if (typeof left !== typeof right || (isObject(left) && isArray(right)) || (isArray(left) && isObject(right))) {\n        diffs[path] = right;\n        return diffs\n    }\n\n    // Is the right or left side a primitive value (a leaf node)?\n    if (isPrimitive(left) || isPrimitive(right)) {\n        diffs[path] = right\n        return diffs\n    }\n\n    // We now know both are objects...\n    let leftKeys = Object.keys(left)\n\n    // Recursively diff the object's properties...\n    Object.entries(right).forEach(([key, value]) => {\n        diffs = {...diffs, ...diff(left[key], right[key], diffs, path === '' ? key : `${path}.${key}`)}\n        leftKeys = leftKeys.filter(i => i !== key)\n    })\n\n    // Mark any items for removal...\n    leftKeys.forEach(key => {\n        diffs[`${path}.${key}`] = '__rm__'\n    })\n\n    return diffs\n}\n\n/**\n * The data that's passed between the browser and server is in the form of\n * nested tuples consisting of the schema: [rawValue, metadata]. In this\n * method we're extracting the plain JS object of only the raw values.\n */\nexport function extractData(payload) {\n    let value = isSynthetic(payload) ? payload[0] : payload\n    let meta = isSynthetic(payload) ? payload[1] : undefined\n\n    if (isObjecty(value)) {\n        Object.entries(value).forEach(([key, iValue]) => {\n            value[key] = extractData(iValue)\n        })\n    }\n\n    return value\n}\n\n/**\n * Determine if the variable passed in is a node in a nested metadata\n * tuple tree. (Meaning it takes the form of: [rawData, metadata])\n */\nexport function isSynthetic(subject) {\n    return Array.isArray(subject)\n        && subject.length === 2\n        && typeof subject[1] === 'object'\n        && Object.keys(subject[1]).includes('s')\n}\n\n/**\n * Post requests in Laravel require a csrf token to be passed\n * along with the payload. Here, we'll try and locate one.\n */\nexport function getCsrfToken() {\n    // Purposely not caching. Fetching it fresh every time ensures we're\n    // not depending on a stale session's CSRF token...\n\n    if (document.querySelector('meta[name=\"csrf-token\"]')) {\n        return document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content')\n    }\n\n    if (document.querySelector('[data-csrf]')) {\n        return document.querySelector('[data-csrf]').getAttribute('data-csrf')\n    }\n\n    if (window.livewireScriptConfig['csrf'] ?? false) {\n        return window.livewireScriptConfig['csrf']\n    }\n\n    throw 'Livewire: No CSRF token detected'\n}\n\nlet nonce;\n\nexport function getNonce() {\n    if (nonce) return nonce\n\n\n    if (window.livewireScriptConfig && (window.livewireScriptConfig['nonce'] ?? false)) {\n        nonce = window.livewireScriptConfig['nonce']\n\n        return nonce\n    }\n\n    const elWithNonce = document.querySelector('style[data-livewire-style][nonce]')\n\n    if (elWithNonce) {\n        nonce = elWithNonce.nonce\n\n        return nonce\n    }\n\n    return null\n}\n\n/**\n * Livewire's update URI. This is configurable via Livewire::setUpdateRoute(...)\n */\nexport function getUpdateUri() {\n    return document.querySelector('[data-update-uri]')?.getAttribute('data-update-uri') ?? window.livewireScriptConfig['uri'] ?? null\n}\n\nexport function contentIsFromDump(content) {\n    return !! content.match(/<script>Sfdump\\(\".+\"\\)<\\/script>/)\n}\n\nexport function splitDumpFromContent(content) {\n    let dump = content.match(/.*<script>Sfdump\\(\".+\"\\)<\\/script>/s)\n\n    return [dump, content.replace(dump, '')]\n}\n", "import { getCsrfToken } from '@/utils';\n\nlet uploadManagers = new WeakMap\n\nfunction getUploadManager(component) {\n    if (! uploadManagers.has(component)) {\n        let manager = new UploadManager(component)\n\n        uploadManagers.set(component, manager)\n\n        manager.registerListeners()\n    }\n\n    return uploadManagers.get(component)\n}\n\nexport function handleFileUpload(el, property, component, cleanup) {\n    let manager = getUploadManager(component)\n\n    let start = () => el.dispatchEvent(new CustomEvent('livewire-upload-start', { bubbles: true, detail: { id: component.id, property} }))\n    let finish = () => el.dispatchEvent(new CustomEvent('livewire-upload-finish', { bubbles: true, detail: { id: component.id, property} }))\n    let error = () => el.dispatchEvent(new CustomEvent('livewire-upload-error', { bubbles: true, detail: { id: component.id, property} }))\n    let cancel = () => el.dispatchEvent(new CustomEvent('livewire-upload-cancel', { bubbles: true, detail: { id: component.id, property} }))\n    let progress = (progressEvent) => {\n        var percentCompleted = Math.round( (progressEvent.loaded * 100) / progressEvent.total )\n\n        el.dispatchEvent(\n            new CustomEvent('livewire-upload-progress', {\n                bubbles: true, detail: { progress: percentCompleted }\n            })\n        )\n    }\n\n    let eventHandler = e => {\n        if (e.target.files.length === 0) return\n\n        start()\n\n        if (e.target.multiple) {\n            manager.uploadMultiple(property, e.target.files, finish, error, progress, cancel)\n        } else {\n            manager.upload(property, e.target.files[0], finish, error, progress, cancel)\n        }\n    }\n\n    el.addEventListener('change', eventHandler)\n\n    // There's a bug in browsers where selecting a file, removing it,\n    // then re-adding it doesn't fire the change event. This fixes it.\n    // Reference: https://stackoverflow.com/questions/12030686/html-input-file-selection-event-not-firing-upon-selecting-the-same-file\n    let clearFileInputValue = () => { el.value = null }\n    el.addEventListener('click', clearFileInputValue)\n\n    // Clear the input if the uploaded is cancelled...\n    el.addEventListener('livewire-upload-cancel', clearFileInputValue)\n\n    cleanup(() => {\n        el.removeEventListener('change', eventHandler)\n        el.removeEventListener('click', clearFileInputValue)\n    })\n}\n\nclass UploadManager {\n    constructor(component) {\n        this.component = component\n        this.uploadBag = new MessageBag\n        this.removeBag = new MessageBag\n    }\n\n    registerListeners() {\n        this.component.$wire.$on('upload:generatedSignedUrl', ({ name, url }) => {\n            // We have to add reduntant \"setLoading\" calls because the dom-patch\n            // from the first response will clear the setUploadLoading call\n            // from the first upload call.\n            setUploadLoading(this.component, name)\n\n            this.handleSignedUrl(name, url)\n        })\n\n        this.component.$wire.$on('upload:generatedSignedUrlForS3', ({ name, payload }) => {\n            setUploadLoading(this.component, name)\n\n            this.handleS3PreSignedUrl(name, payload)\n        })\n\n        this.component.$wire.$on('upload:finished', ({ name, tmpFilenames }) => this.markUploadFinished(name, tmpFilenames))\n        this.component.$wire.$on('upload:errored', ({ name }) => this.markUploadErrored(name))\n        this.component.$wire.$on('upload:removed', ({ name, tmpFilename }) => this.removeBag.shift(name).finishCallback(tmpFilename))\n    }\n\n    upload(name, file, finishCallback, errorCallback, progressCallback, cancelledCallback) {\n        this.setUpload(name, {\n            files: [file],\n            multiple: false,\n            finishCallback,\n            errorCallback,\n            progressCallback,\n            cancelledCallback,\n        })\n    }\n\n    uploadMultiple(name, files, finishCallback, errorCallback, progressCallback, cancelledCallback) {\n        this.setUpload(name, {\n            files: Array.from(files),\n            multiple: true,\n            finishCallback,\n            errorCallback,\n            progressCallback,\n            cancelledCallback,\n        })\n    }\n\n    removeUpload(name, tmpFilename, finishCallback) {\n        this.removeBag.push(name, {\n            tmpFilename, finishCallback\n        })\n\n        this.component.$wire.call('_removeUpload', name, tmpFilename);\n    }\n\n    setUpload(name, uploadObject) {\n        this.uploadBag.add(name, uploadObject)\n\n        if (this.uploadBag.get(name).length === 1) {\n            this.startUpload(name, uploadObject)\n        }\n    }\n\n    handleSignedUrl(name, url) {\n        let formData = new FormData()\n        Array.from(this.uploadBag.first(name).files).forEach(file => formData.append('files[]', file, file.name))\n\n        let headers = {\n            'Accept': 'application/json',\n        }\n\n        let csrfToken = getCsrfToken()\n\n        if (csrfToken) headers['X-CSRF-TOKEN'] = csrfToken\n\n        this.makeRequest(name, formData, 'post', url, headers, response => {\n            return response.paths\n        })\n    }\n\n    handleS3PreSignedUrl(name, payload) {\n        let formData = this.uploadBag.first(name).files[0]\n\n        let headers = payload.headers\n        if ('Host' in headers) delete headers.Host\n        let url = payload.url\n\n        this.makeRequest(name, formData, 'put', url, headers, response => {\n            return [payload.path]\n        })\n    }\n\n    makeRequest(name, formData, method, url, headers, retrievePaths) {\n        let request = new XMLHttpRequest()\n\n        request.open(method, url)\n\n        Object.entries(headers).forEach(([key, value]) => {\n            request.setRequestHeader(key, value)\n        })\n\n        request.upload.addEventListener('progress', e => {\n            e.detail = {}\n            e.detail.progress = Math.round((e.loaded * 100) / e.total)\n\n            this.uploadBag.first(name).progressCallback(e)\n        })\n\n        request.addEventListener('load', () => {\n            if ((request.status+'')[0] === '2') {\n                let paths = retrievePaths(request.response && JSON.parse(request.response))\n\n                this.component.$wire.call('_finishUpload', name, paths, this.uploadBag.first(name).multiple)\n\n                return\n            }\n\n            let errors = null\n\n            if (request.status === 422) {\n                errors = request.response\n            }\n\n            this.component.$wire.call('_uploadErrored', name, errors, this.uploadBag.first(name).multiple)\n        })\n\n        this.uploadBag.first(name).request = request\n\n        request.send(formData)\n    }\n\n    startUpload(name, uploadObject) {\n        let fileInfos = uploadObject.files.map(file => {\n            return { name: file.name, size: file.size, type: file.type }\n        })\n\n        this.component.$wire.call('_startUpload', name, fileInfos, uploadObject.multiple);\n\n        setUploadLoading(this.component, name)\n    }\n\n    markUploadFinished(name, tmpFilenames) {\n        unsetUploadLoading(this.component)\n\n        let uploadObject = this.uploadBag.shift(name)\n        uploadObject.finishCallback(uploadObject.multiple ? tmpFilenames : tmpFilenames[0])\n\n        if (this.uploadBag.get(name).length > 0) this.startUpload(name, this.uploadBag.last(name))\n    }\n\n    markUploadErrored(name) {\n        unsetUploadLoading(this.component)\n\n        this.uploadBag.shift(name).errorCallback()\n\n        if (this.uploadBag.get(name).length > 0) this.startUpload(name, this.uploadBag.last(name))\n    }\n\n    cancelUpload(name, cancelledCallback = null) {\n        unsetUploadLoading(this.component)\n\n        let uploadItem = this.uploadBag.first(name);\n\n        if (uploadItem) {\n            uploadItem.request.abort();\n\n            this.uploadBag.shift(name).cancelledCallback();\n\n            if (cancelledCallback) cancelledCallback()\n        }\n    }\n}\n\nexport default class MessageBag {\n    constructor() {\n        this.bag = {}\n    }\n\n    add(name, thing) {\n        if (! this.bag[name]) {\n            this.bag[name] = []\n        }\n\n        this.bag[name].push(thing)\n    }\n\n    push(name, thing) {\n        this.add(name, thing)\n    }\n\n    first(name) {\n        if (! this.bag[name]) return null\n\n        return this.bag[name][0]\n    }\n\n    last(name) {\n        return this.bag[name].slice(-1)[0]\n    }\n\n    get(name) {\n        return this.bag[name]\n    }\n\n    shift(name) {\n        return this.bag[name].shift()\n    }\n\n    call(name, ...params) {\n        (this.listeners[name] || []).forEach(callback => {\n            callback(...params)\n        })\n    }\n\n    has(name) {\n        return Object.keys(this.listeners).includes(name)\n    }\n}\n\nfunction setUploadLoading() {\n    // @todo\n}\n\nfunction unsetUploadLoading() {\n    // @todo\n}\n\nexport function upload(\n    component,\n    name,\n    file,\n    finishCallback = () => { },\n    errorCallback = () => { },\n    progressCallback = () => { },\n    cancelledCallback = () => { },\n) {\n    let uploadManager = getUploadManager(component)\n\n    uploadManager.upload(\n        name,\n        file,\n        finishCallback,\n        errorCallback,\n        progressCallback,\n        cancelledCallback,\n    )\n}\n\nexport function uploadMultiple(\n    component,\n    name,\n    files,\n    finishCallback = () => { },\n    errorCallback = () => { },\n    progressCallback = () => { },\n    cancelledCallback = () => { },\n) {\n    let uploadManager = getUploadManager(component)\n\n    uploadManager.uploadMultiple(\n        name,\n        files,\n        finishCallback,\n        errorCallback,\n        progressCallback,\n        cancelledCallback,\n    )\n}\n\nexport function removeUpload(\n    component,\n    name,\n    tmpFilename,\n    finishCallback = () => { },\n    errorCallback = () => { }\n) {\n    let uploadManager = getUploadManager(component)\n\n    uploadManager.removeUpload(\n        name,\n        tmpFilename,\n        finishCallback,\n        errorCallback\n    )\n}\n\nexport function cancelUpload(\n    component,\n    name,\n    cancelledCallback = () => { }\n) {\n    let uploadManager = getUploadManager(component)\n\n    uploadManager.cancelUpload(\n        name,\n        cancelledCallback\n    )\n}\n", "// packages/alpinejs/src/scheduler.js\nvar flushPending = false;\nvar flushing = false;\nvar queue = [];\nvar lastFlushedIndex = -1;\nfunction scheduler(callback) {\n  queueJob(callback);\n}\nfunction queueJob(job) {\n  if (!queue.includes(job))\n    queue.push(job);\n  queueFlush();\n}\nfunction dequeueJob(job) {\n  let index = queue.indexOf(job);\n  if (index !== -1 && index > lastFlushedIndex)\n    queue.splice(index, 1);\n}\nfunction queueFlush() {\n  if (!flushing && !flushPending) {\n    flushPending = true;\n    queueMicrotask(flushJobs);\n  }\n}\nfunction flushJobs() {\n  flushPending = false;\n  flushing = true;\n  for (let i = 0; i < queue.length; i++) {\n    queue[i]();\n    lastFlushedIndex = i;\n  }\n  queue.length = 0;\n  lastFlushedIndex = -1;\n  flushing = false;\n}\n\n// packages/alpinejs/src/reactivity.js\nvar reactive;\nvar effect;\nvar release;\nvar raw;\nvar shouldSchedule = true;\nfunction disableEffectScheduling(callback) {\n  shouldSchedule = false;\n  callback();\n  shouldSchedule = true;\n}\nfunction setReactivityEngine(engine) {\n  reactive = engine.reactive;\n  release = engine.release;\n  effect = (callback) => engine.effect(callback, { scheduler: (task) => {\n    if (shouldSchedule) {\n      scheduler(task);\n    } else {\n      task();\n    }\n  } });\n  raw = engine.raw;\n}\nfunction overrideEffect(override) {\n  effect = override;\n}\nfunction elementBoundEffect(el) {\n  let cleanup2 = () => {\n  };\n  let wrappedEffect = (callback) => {\n    let effectReference = effect(callback);\n    if (!el._x_effects) {\n      el._x_effects = /* @__PURE__ */ new Set();\n      el._x_runEffects = () => {\n        el._x_effects.forEach((i) => i());\n      };\n    }\n    el._x_effects.add(effectReference);\n    cleanup2 = () => {\n      if (effectReference === void 0)\n        return;\n      el._x_effects.delete(effectReference);\n      release(effectReference);\n    };\n    return effectReference;\n  };\n  return [wrappedEffect, () => {\n    cleanup2();\n  }];\n}\nfunction watch(getter, callback) {\n  let firstTime = true;\n  let oldValue;\n  let effectReference = effect(() => {\n    let value = getter();\n    JSON.stringify(value);\n    if (!firstTime) {\n      queueMicrotask(() => {\n        callback(value, oldValue);\n        oldValue = value;\n      });\n    } else {\n      oldValue = value;\n    }\n    firstTime = false;\n  });\n  return () => release(effectReference);\n}\n\n// packages/alpinejs/src/utils/dispatch.js\nfunction dispatch(el, name, detail = {}) {\n  el.dispatchEvent(\n    new CustomEvent(name, {\n      detail,\n      bubbles: true,\n      // Allows events to pass the shadow DOM barrier.\n      composed: true,\n      cancelable: true\n    })\n  );\n}\n\n// packages/alpinejs/src/utils/walk.js\nfunction walk(el, callback) {\n  if (typeof ShadowRoot === \"function\" && el instanceof ShadowRoot) {\n    Array.from(el.children).forEach((el2) => walk(el2, callback));\n    return;\n  }\n  let skip = false;\n  callback(el, () => skip = true);\n  if (skip)\n    return;\n  let node = el.firstElementChild;\n  while (node) {\n    walk(node, callback, false);\n    node = node.nextElementSibling;\n  }\n}\n\n// packages/alpinejs/src/utils/warn.js\nfunction warn(message, ...args) {\n  console.warn(`Alpine Warning: ${message}`, ...args);\n}\n\n// packages/alpinejs/src/lifecycle.js\nvar started = false;\nfunction start() {\n  if (started)\n    warn(\"Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems.\");\n  started = true;\n  if (!document.body)\n    warn(\"Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?\");\n  dispatch(document, \"alpine:init\");\n  dispatch(document, \"alpine:initializing\");\n  startObservingMutations();\n  onElAdded((el) => initTree(el, walk));\n  onElRemoved((el) => destroyTree(el));\n  onAttributesAdded((el, attrs) => {\n    directives(el, attrs).forEach((handle) => handle());\n  });\n  let outNestedComponents = (el) => !closestRoot(el.parentElement, true);\n  Array.from(document.querySelectorAll(allSelectors().join(\",\"))).filter(outNestedComponents).forEach((el) => {\n    initTree(el);\n  });\n  dispatch(document, \"alpine:initialized\");\n}\nvar rootSelectorCallbacks = [];\nvar initSelectorCallbacks = [];\nfunction rootSelectors() {\n  return rootSelectorCallbacks.map((fn) => fn());\n}\nfunction allSelectors() {\n  return rootSelectorCallbacks.concat(initSelectorCallbacks).map((fn) => fn());\n}\nfunction addRootSelector(selectorCallback) {\n  rootSelectorCallbacks.push(selectorCallback);\n}\nfunction addInitSelector(selectorCallback) {\n  initSelectorCallbacks.push(selectorCallback);\n}\nfunction closestRoot(el, includeInitSelectors = false) {\n  return findClosest(el, (element) => {\n    const selectors = includeInitSelectors ? allSelectors() : rootSelectors();\n    if (selectors.some((selector) => element.matches(selector)))\n      return true;\n  });\n}\nfunction findClosest(el, callback) {\n  if (!el)\n    return;\n  if (callback(el))\n    return el;\n  if (el._x_teleportBack)\n    el = el._x_teleportBack;\n  if (!el.parentElement)\n    return;\n  return findClosest(el.parentElement, callback);\n}\nfunction isRoot(el) {\n  return rootSelectors().some((selector) => el.matches(selector));\n}\nvar initInterceptors = [];\nfunction interceptInit(callback) {\n  initInterceptors.push(callback);\n}\nfunction initTree(el, walker = walk, intercept = () => {\n}) {\n  deferHandlingDirectives(() => {\n    walker(el, (el2, skip) => {\n      intercept(el2, skip);\n      initInterceptors.forEach((i) => i(el2, skip));\n      directives(el2, el2.attributes).forEach((handle) => handle());\n      el2._x_ignore && skip();\n    });\n  });\n}\nfunction destroyTree(root, walker = walk) {\n  walker(root, (el) => {\n    cleanupAttributes(el);\n    cleanupElement(el);\n  });\n}\n\n// packages/alpinejs/src/mutation.js\nvar onAttributeAddeds = [];\nvar onElRemoveds = [];\nvar onElAddeds = [];\nfunction onElAdded(callback) {\n  onElAddeds.push(callback);\n}\nfunction onElRemoved(el, callback) {\n  if (typeof callback === \"function\") {\n    if (!el._x_cleanups)\n      el._x_cleanups = [];\n    el._x_cleanups.push(callback);\n  } else {\n    callback = el;\n    onElRemoveds.push(callback);\n  }\n}\nfunction onAttributesAdded(callback) {\n  onAttributeAddeds.push(callback);\n}\nfunction onAttributeRemoved(el, name, callback) {\n  if (!el._x_attributeCleanups)\n    el._x_attributeCleanups = {};\n  if (!el._x_attributeCleanups[name])\n    el._x_attributeCleanups[name] = [];\n  el._x_attributeCleanups[name].push(callback);\n}\nfunction cleanupAttributes(el, names) {\n  if (!el._x_attributeCleanups)\n    return;\n  Object.entries(el._x_attributeCleanups).forEach(([name, value]) => {\n    if (names === void 0 || names.includes(name)) {\n      value.forEach((i) => i());\n      delete el._x_attributeCleanups[name];\n    }\n  });\n}\nfunction cleanupElement(el) {\n  if (el._x_cleanups) {\n    while (el._x_cleanups.length)\n      el._x_cleanups.pop()();\n  }\n}\nvar observer = new MutationObserver(onMutate);\nvar currentlyObserving = false;\nfunction startObservingMutations() {\n  observer.observe(document, { subtree: true, childList: true, attributes: true, attributeOldValue: true });\n  currentlyObserving = true;\n}\nfunction stopObservingMutations() {\n  flushObserver();\n  observer.disconnect();\n  currentlyObserving = false;\n}\nvar queuedMutations = [];\nfunction flushObserver() {\n  let records = observer.takeRecords();\n  queuedMutations.push(() => records.length > 0 && onMutate(records));\n  let queueLengthWhenTriggered = queuedMutations.length;\n  queueMicrotask(() => {\n    if (queuedMutations.length === queueLengthWhenTriggered) {\n      while (queuedMutations.length > 0)\n        queuedMutations.shift()();\n    }\n  });\n}\nfunction mutateDom(callback) {\n  if (!currentlyObserving)\n    return callback();\n  stopObservingMutations();\n  let result = callback();\n  startObservingMutations();\n  return result;\n}\nvar isCollecting = false;\nvar deferredMutations = [];\nfunction deferMutations() {\n  isCollecting = true;\n}\nfunction flushAndStopDeferringMutations() {\n  isCollecting = false;\n  onMutate(deferredMutations);\n  deferredMutations = [];\n}\nfunction onMutate(mutations) {\n  if (isCollecting) {\n    deferredMutations = deferredMutations.concat(mutations);\n    return;\n  }\n  let addedNodes = /* @__PURE__ */ new Set();\n  let removedNodes = /* @__PURE__ */ new Set();\n  let addedAttributes = /* @__PURE__ */ new Map();\n  let removedAttributes = /* @__PURE__ */ new Map();\n  for (let i = 0; i < mutations.length; i++) {\n    if (mutations[i].target._x_ignoreMutationObserver)\n      continue;\n    if (mutations[i].type === \"childList\") {\n      mutations[i].addedNodes.forEach((node) => node.nodeType === 1 && addedNodes.add(node));\n      mutations[i].removedNodes.forEach((node) => node.nodeType === 1 && removedNodes.add(node));\n    }\n    if (mutations[i].type === \"attributes\") {\n      let el = mutations[i].target;\n      let name = mutations[i].attributeName;\n      let oldValue = mutations[i].oldValue;\n      let add2 = () => {\n        if (!addedAttributes.has(el))\n          addedAttributes.set(el, []);\n        addedAttributes.get(el).push({ name, value: el.getAttribute(name) });\n      };\n      let remove = () => {\n        if (!removedAttributes.has(el))\n          removedAttributes.set(el, []);\n        removedAttributes.get(el).push(name);\n      };\n      if (el.hasAttribute(name) && oldValue === null) {\n        add2();\n      } else if (el.hasAttribute(name)) {\n        remove();\n        add2();\n      } else {\n        remove();\n      }\n    }\n  }\n  removedAttributes.forEach((attrs, el) => {\n    cleanupAttributes(el, attrs);\n  });\n  addedAttributes.forEach((attrs, el) => {\n    onAttributeAddeds.forEach((i) => i(el, attrs));\n  });\n  for (let node of removedNodes) {\n    if (addedNodes.has(node))\n      continue;\n    onElRemoveds.forEach((i) => i(node));\n    destroyTree(node);\n  }\n  addedNodes.forEach((node) => {\n    node._x_ignoreSelf = true;\n    node._x_ignore = true;\n  });\n  for (let node of addedNodes) {\n    if (removedNodes.has(node))\n      continue;\n    if (!node.isConnected)\n      continue;\n    delete node._x_ignoreSelf;\n    delete node._x_ignore;\n    onElAddeds.forEach((i) => i(node));\n    node._x_ignore = true;\n    node._x_ignoreSelf = true;\n  }\n  addedNodes.forEach((node) => {\n    delete node._x_ignoreSelf;\n    delete node._x_ignore;\n  });\n  addedNodes = null;\n  removedNodes = null;\n  addedAttributes = null;\n  removedAttributes = null;\n}\n\n// packages/alpinejs/src/scope.js\nfunction scope(node) {\n  return mergeProxies(closestDataStack(node));\n}\nfunction addScopeToNode(node, data2, referenceNode) {\n  node._x_dataStack = [data2, ...closestDataStack(referenceNode || node)];\n  return () => {\n    node._x_dataStack = node._x_dataStack.filter((i) => i !== data2);\n  };\n}\nfunction closestDataStack(node) {\n  if (node._x_dataStack)\n    return node._x_dataStack;\n  if (typeof ShadowRoot === \"function\" && node instanceof ShadowRoot) {\n    return closestDataStack(node.host);\n  }\n  if (!node.parentNode) {\n    return [];\n  }\n  return closestDataStack(node.parentNode);\n}\nfunction mergeProxies(objects) {\n  return new Proxy({ objects }, mergeProxyTrap);\n}\nvar mergeProxyTrap = {\n  ownKeys({ objects }) {\n    return Array.from(\n      new Set(objects.flatMap((i) => Object.keys(i)))\n    );\n  },\n  has({ objects }, name) {\n    if (name == Symbol.unscopables)\n      return false;\n    return objects.some(\n      (obj) => Object.prototype.hasOwnProperty.call(obj, name) || Reflect.has(obj, name)\n    );\n  },\n  get({ objects }, name, thisProxy) {\n    if (name == \"toJSON\")\n      return collapseProxies;\n    return Reflect.get(\n      objects.find(\n        (obj) => Reflect.has(obj, name)\n      ) || {},\n      name,\n      thisProxy\n    );\n  },\n  set({ objects }, name, value, thisProxy) {\n    const target = objects.find(\n      (obj) => Object.prototype.hasOwnProperty.call(obj, name)\n    ) || objects[objects.length - 1];\n    const descriptor = Object.getOwnPropertyDescriptor(target, name);\n    if (descriptor?.set && descriptor?.get)\n      return Reflect.set(target, name, value, thisProxy);\n    return Reflect.set(target, name, value);\n  }\n};\nfunction collapseProxies() {\n  let keys = Reflect.ownKeys(this);\n  return keys.reduce((acc, key) => {\n    acc[key] = Reflect.get(this, key);\n    return acc;\n  }, {});\n}\n\n// packages/alpinejs/src/interceptor.js\nfunction initInterceptors2(data2) {\n  let isObject2 = (val) => typeof val === \"object\" && !Array.isArray(val) && val !== null;\n  let recurse = (obj, basePath = \"\") => {\n    Object.entries(Object.getOwnPropertyDescriptors(obj)).forEach(([key, { value, enumerable }]) => {\n      if (enumerable === false || value === void 0)\n        return;\n      if (typeof value === \"object\" && value !== null && value.__v_skip)\n        return;\n      let path = basePath === \"\" ? key : `${basePath}.${key}`;\n      if (typeof value === \"object\" && value !== null && value._x_interceptor) {\n        obj[key] = value.initialize(data2, path, key);\n      } else {\n        if (isObject2(value) && value !== obj && !(value instanceof Element)) {\n          recurse(value, path);\n        }\n      }\n    });\n  };\n  return recurse(data2);\n}\nfunction interceptor(callback, mutateObj = () => {\n}) {\n  let obj = {\n    initialValue: void 0,\n    _x_interceptor: true,\n    initialize(data2, path, key) {\n      return callback(this.initialValue, () => get(data2, path), (value) => set(data2, path, value), path, key);\n    }\n  };\n  mutateObj(obj);\n  return (initialValue) => {\n    if (typeof initialValue === \"object\" && initialValue !== null && initialValue._x_interceptor) {\n      let initialize = obj.initialize.bind(obj);\n      obj.initialize = (data2, path, key) => {\n        let innerValue = initialValue.initialize(data2, path, key);\n        obj.initialValue = innerValue;\n        return initialize(data2, path, key);\n      };\n    } else {\n      obj.initialValue = initialValue;\n    }\n    return obj;\n  };\n}\nfunction get(obj, path) {\n  return path.split(\".\").reduce((carry, segment) => carry[segment], obj);\n}\nfunction set(obj, path, value) {\n  if (typeof path === \"string\")\n    path = path.split(\".\");\n  if (path.length === 1)\n    obj[path[0]] = value;\n  else if (path.length === 0)\n    throw error;\n  else {\n    if (obj[path[0]])\n      return set(obj[path[0]], path.slice(1), value);\n    else {\n      obj[path[0]] = {};\n      return set(obj[path[0]], path.slice(1), value);\n    }\n  }\n}\n\n// packages/alpinejs/src/magics.js\nvar magics = {};\nfunction magic(name, callback) {\n  magics[name] = callback;\n}\nfunction injectMagics(obj, el) {\n  Object.entries(magics).forEach(([name, callback]) => {\n    let memoizedUtilities = null;\n    function getUtilities() {\n      if (memoizedUtilities) {\n        return memoizedUtilities;\n      } else {\n        let [utilities, cleanup2] = getElementBoundUtilities(el);\n        memoizedUtilities = { interceptor, ...utilities };\n        onElRemoved(el, cleanup2);\n        return memoizedUtilities;\n      }\n    }\n    Object.defineProperty(obj, `$${name}`, {\n      get() {\n        return callback(el, getUtilities());\n      },\n      enumerable: false\n    });\n  });\n  return obj;\n}\n\n// packages/alpinejs/src/utils/error.js\nfunction tryCatch(el, expression, callback, ...args) {\n  try {\n    return callback(...args);\n  } catch (e) {\n    handleError(e, el, expression);\n  }\n}\nfunction handleError(error2, el, expression = void 0) {\n  error2 = Object.assign(\n    error2 ?? { message: \"No error message given.\" },\n    { el, expression }\n  );\n  console.warn(`Alpine Expression Error: ${error2.message}\n\n${expression ? 'Expression: \"' + expression + '\"\\n\\n' : \"\"}`, el);\n  setTimeout(() => {\n    throw error2;\n  }, 0);\n}\n\n// packages/alpinejs/src/evaluator.js\nvar shouldAutoEvaluateFunctions = true;\nfunction dontAutoEvaluateFunctions(callback) {\n  let cache = shouldAutoEvaluateFunctions;\n  shouldAutoEvaluateFunctions = false;\n  let result = callback();\n  shouldAutoEvaluateFunctions = cache;\n  return result;\n}\nfunction evaluate(el, expression, extras = {}) {\n  let result;\n  evaluateLater(el, expression)((value) => result = value, extras);\n  return result;\n}\nfunction evaluateLater(...args) {\n  return theEvaluatorFunction(...args);\n}\nvar theEvaluatorFunction = normalEvaluator;\nfunction setEvaluator(newEvaluator) {\n  theEvaluatorFunction = newEvaluator;\n}\nfunction normalEvaluator(el, expression) {\n  let overriddenMagics = {};\n  injectMagics(overriddenMagics, el);\n  let dataStack = [overriddenMagics, ...closestDataStack(el)];\n  let evaluator = typeof expression === \"function\" ? generateEvaluatorFromFunction(dataStack, expression) : generateEvaluatorFromString(dataStack, expression, el);\n  return tryCatch.bind(null, el, expression, evaluator);\n}\nfunction generateEvaluatorFromFunction(dataStack, func) {\n  return (receiver = () => {\n  }, { scope: scope2 = {}, params = [] } = {}) => {\n    let result = func.apply(mergeProxies([scope2, ...dataStack]), params);\n    runIfTypeOfFunction(receiver, result);\n  };\n}\nvar evaluatorMemo = {};\nfunction generateFunctionFromString(expression, el) {\n  if (evaluatorMemo[expression]) {\n    return evaluatorMemo[expression];\n  }\n  let AsyncFunction = Object.getPrototypeOf(async function() {\n  }).constructor;\n  let rightSideSafeExpression = /^[\\n\\s]*if.*\\(.*\\)/.test(expression.trim()) || /^(let|const)\\s/.test(expression.trim()) ? `(async()=>{ ${expression} })()` : expression;\n  const safeAsyncFunction = () => {\n    try {\n      let func2 = new AsyncFunction(\n        [\"__self\", \"scope\"],\n        `with (scope) { __self.result = ${rightSideSafeExpression} }; __self.finished = true; return __self.result;`\n      );\n      Object.defineProperty(func2, \"name\", {\n        value: `[Alpine] ${expression}`\n      });\n      return func2;\n    } catch (error2) {\n      handleError(error2, el, expression);\n      return Promise.resolve();\n    }\n  };\n  let func = safeAsyncFunction();\n  evaluatorMemo[expression] = func;\n  return func;\n}\nfunction generateEvaluatorFromString(dataStack, expression, el) {\n  let func = generateFunctionFromString(expression, el);\n  return (receiver = () => {\n  }, { scope: scope2 = {}, params = [] } = {}) => {\n    func.result = void 0;\n    func.finished = false;\n    let completeScope = mergeProxies([scope2, ...dataStack]);\n    if (typeof func === \"function\") {\n      let promise = func(func, completeScope).catch((error2) => handleError(error2, el, expression));\n      if (func.finished) {\n        runIfTypeOfFunction(receiver, func.result, completeScope, params, el);\n        func.result = void 0;\n      } else {\n        promise.then((result) => {\n          runIfTypeOfFunction(receiver, result, completeScope, params, el);\n        }).catch((error2) => handleError(error2, el, expression)).finally(() => func.result = void 0);\n      }\n    }\n  };\n}\nfunction runIfTypeOfFunction(receiver, value, scope2, params, el) {\n  if (shouldAutoEvaluateFunctions && typeof value === \"function\") {\n    let result = value.apply(scope2, params);\n    if (result instanceof Promise) {\n      result.then((i) => runIfTypeOfFunction(receiver, i, scope2, params)).catch((error2) => handleError(error2, el, value));\n    } else {\n      receiver(result);\n    }\n  } else if (typeof value === \"object\" && value instanceof Promise) {\n    value.then((i) => receiver(i));\n  } else {\n    receiver(value);\n  }\n}\n\n// packages/alpinejs/src/directives.js\nvar prefixAsString = \"x-\";\nfunction prefix(subject = \"\") {\n  return prefixAsString + subject;\n}\nfunction setPrefix(newPrefix) {\n  prefixAsString = newPrefix;\n}\nvar directiveHandlers = {};\nfunction directive(name, callback) {\n  directiveHandlers[name] = callback;\n  return {\n    before(directive2) {\n      if (!directiveHandlers[directive2]) {\n        console.warn(String.raw`Cannot find directive \\`${directive2}\\`. \\`${name}\\` will use the default order of execution`);\n        return;\n      }\n      const pos = directiveOrder.indexOf(directive2);\n      directiveOrder.splice(pos >= 0 ? pos : directiveOrder.indexOf(\"DEFAULT\"), 0, name);\n    }\n  };\n}\nfunction directives(el, attributes, originalAttributeOverride) {\n  attributes = Array.from(attributes);\n  if (el._x_virtualDirectives) {\n    let vAttributes = Object.entries(el._x_virtualDirectives).map(([name, value]) => ({ name, value }));\n    let staticAttributes = attributesOnly(vAttributes);\n    vAttributes = vAttributes.map((attribute) => {\n      if (staticAttributes.find((attr) => attr.name === attribute.name)) {\n        return {\n          name: `x-bind:${attribute.name}`,\n          value: `\"${attribute.value}\"`\n        };\n      }\n      return attribute;\n    });\n    attributes = attributes.concat(vAttributes);\n  }\n  let transformedAttributeMap = {};\n  let directives2 = attributes.map(toTransformedAttributes((newName, oldName) => transformedAttributeMap[newName] = oldName)).filter(outNonAlpineAttributes).map(toParsedDirectives(transformedAttributeMap, originalAttributeOverride)).sort(byPriority);\n  return directives2.map((directive2) => {\n    return getDirectiveHandler(el, directive2);\n  });\n}\nfunction attributesOnly(attributes) {\n  return Array.from(attributes).map(toTransformedAttributes()).filter((attr) => !outNonAlpineAttributes(attr));\n}\nvar isDeferringHandlers = false;\nvar directiveHandlerStacks = /* @__PURE__ */ new Map();\nvar currentHandlerStackKey = Symbol();\nfunction deferHandlingDirectives(callback) {\n  isDeferringHandlers = true;\n  let key = Symbol();\n  currentHandlerStackKey = key;\n  directiveHandlerStacks.set(key, []);\n  let flushHandlers = () => {\n    while (directiveHandlerStacks.get(key).length)\n      directiveHandlerStacks.get(key).shift()();\n    directiveHandlerStacks.delete(key);\n  };\n  let stopDeferring = () => {\n    isDeferringHandlers = false;\n    flushHandlers();\n  };\n  callback(flushHandlers);\n  stopDeferring();\n}\nfunction getElementBoundUtilities(el) {\n  let cleanups = [];\n  let cleanup2 = (callback) => cleanups.push(callback);\n  let [effect3, cleanupEffect] = elementBoundEffect(el);\n  cleanups.push(cleanupEffect);\n  let utilities = {\n    Alpine: alpine_default,\n    effect: effect3,\n    cleanup: cleanup2,\n    evaluateLater: evaluateLater.bind(evaluateLater, el),\n    evaluate: evaluate.bind(evaluate, el)\n  };\n  let doCleanup = () => cleanups.forEach((i) => i());\n  return [utilities, doCleanup];\n}\nfunction getDirectiveHandler(el, directive2) {\n  let noop = () => {\n  };\n  let handler4 = directiveHandlers[directive2.type] || noop;\n  let [utilities, cleanup2] = getElementBoundUtilities(el);\n  onAttributeRemoved(el, directive2.original, cleanup2);\n  let fullHandler = () => {\n    if (el._x_ignore || el._x_ignoreSelf)\n      return;\n    handler4.inline && handler4.inline(el, directive2, utilities);\n    handler4 = handler4.bind(handler4, el, directive2, utilities);\n    isDeferringHandlers ? directiveHandlerStacks.get(currentHandlerStackKey).push(handler4) : handler4();\n  };\n  fullHandler.runCleanups = cleanup2;\n  return fullHandler;\n}\nvar startingWith = (subject, replacement) => ({ name, value }) => {\n  if (name.startsWith(subject))\n    name = name.replace(subject, replacement);\n  return { name, value };\n};\nvar into = (i) => i;\nfunction toTransformedAttributes(callback = () => {\n}) {\n  return ({ name, value }) => {\n    let { name: newName, value: newValue } = attributeTransformers.reduce((carry, transform) => {\n      return transform(carry);\n    }, { name, value });\n    if (newName !== name)\n      callback(newName, name);\n    return { name: newName, value: newValue };\n  };\n}\nvar attributeTransformers = [];\nfunction mapAttributes(callback) {\n  attributeTransformers.push(callback);\n}\nfunction outNonAlpineAttributes({ name }) {\n  return alpineAttributeRegex().test(name);\n}\nvar alpineAttributeRegex = () => new RegExp(`^${prefixAsString}([^:^.]+)\\\\b`);\nfunction toParsedDirectives(transformedAttributeMap, originalAttributeOverride) {\n  return ({ name, value }) => {\n    let typeMatch = name.match(alpineAttributeRegex());\n    let valueMatch = name.match(/:([a-zA-Z0-9\\-_:]+)/);\n    let modifiers = name.match(/\\.[^.\\]]+(?=[^\\]]*$)/g) || [];\n    let original = originalAttributeOverride || transformedAttributeMap[name] || name;\n    return {\n      type: typeMatch ? typeMatch[1] : null,\n      value: valueMatch ? valueMatch[1] : null,\n      modifiers: modifiers.map((i) => i.replace(\".\", \"\")),\n      expression: value,\n      original\n    };\n  };\n}\nvar DEFAULT = \"DEFAULT\";\nvar directiveOrder = [\n  \"ignore\",\n  \"ref\",\n  \"data\",\n  \"id\",\n  \"anchor\",\n  \"bind\",\n  \"init\",\n  \"for\",\n  \"model\",\n  \"modelable\",\n  \"transition\",\n  \"show\",\n  \"if\",\n  DEFAULT,\n  \"teleport\"\n];\nfunction byPriority(a, b) {\n  let typeA = directiveOrder.indexOf(a.type) === -1 ? DEFAULT : a.type;\n  let typeB = directiveOrder.indexOf(b.type) === -1 ? DEFAULT : b.type;\n  return directiveOrder.indexOf(typeA) - directiveOrder.indexOf(typeB);\n}\n\n// packages/alpinejs/src/nextTick.js\nvar tickStack = [];\nvar isHolding = false;\nfunction nextTick(callback = () => {\n}) {\n  queueMicrotask(() => {\n    isHolding || setTimeout(() => {\n      releaseNextTicks();\n    });\n  });\n  return new Promise((res) => {\n    tickStack.push(() => {\n      callback();\n      res();\n    });\n  });\n}\nfunction releaseNextTicks() {\n  isHolding = false;\n  while (tickStack.length)\n    tickStack.shift()();\n}\nfunction holdNextTicks() {\n  isHolding = true;\n}\n\n// packages/alpinejs/src/utils/classes.js\nfunction setClasses(el, value) {\n  if (Array.isArray(value)) {\n    return setClassesFromString(el, value.join(\" \"));\n  } else if (typeof value === \"object\" && value !== null) {\n    return setClassesFromObject(el, value);\n  } else if (typeof value === \"function\") {\n    return setClasses(el, value());\n  }\n  return setClassesFromString(el, value);\n}\nfunction setClassesFromString(el, classString) {\n  let split = (classString2) => classString2.split(\" \").filter(Boolean);\n  let missingClasses = (classString2) => classString2.split(\" \").filter((i) => !el.classList.contains(i)).filter(Boolean);\n  let addClassesAndReturnUndo = (classes) => {\n    el.classList.add(...classes);\n    return () => {\n      el.classList.remove(...classes);\n    };\n  };\n  classString = classString === true ? classString = \"\" : classString || \"\";\n  return addClassesAndReturnUndo(missingClasses(classString));\n}\nfunction setClassesFromObject(el, classObject) {\n  let split = (classString) => classString.split(\" \").filter(Boolean);\n  let forAdd = Object.entries(classObject).flatMap(([classString, bool]) => bool ? split(classString) : false).filter(Boolean);\n  let forRemove = Object.entries(classObject).flatMap(([classString, bool]) => !bool ? split(classString) : false).filter(Boolean);\n  let added = [];\n  let removed = [];\n  forRemove.forEach((i) => {\n    if (el.classList.contains(i)) {\n      el.classList.remove(i);\n      removed.push(i);\n    }\n  });\n  forAdd.forEach((i) => {\n    if (!el.classList.contains(i)) {\n      el.classList.add(i);\n      added.push(i);\n    }\n  });\n  return () => {\n    removed.forEach((i) => el.classList.add(i));\n    added.forEach((i) => el.classList.remove(i));\n  };\n}\n\n// packages/alpinejs/src/utils/styles.js\nfunction setStyles(el, value) {\n  if (typeof value === \"object\" && value !== null) {\n    return setStylesFromObject(el, value);\n  }\n  return setStylesFromString(el, value);\n}\nfunction setStylesFromObject(el, value) {\n  let previousStyles = {};\n  Object.entries(value).forEach(([key, value2]) => {\n    previousStyles[key] = el.style[key];\n    if (!key.startsWith(\"--\")) {\n      key = kebabCase(key);\n    }\n    el.style.setProperty(key, value2);\n  });\n  setTimeout(() => {\n    if (el.style.length === 0) {\n      el.removeAttribute(\"style\");\n    }\n  });\n  return () => {\n    setStyles(el, previousStyles);\n  };\n}\nfunction setStylesFromString(el, value) {\n  let cache = el.getAttribute(\"style\", value);\n  el.setAttribute(\"style\", value);\n  return () => {\n    el.setAttribute(\"style\", cache || \"\");\n  };\n}\nfunction kebabCase(subject) {\n  return subject.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n}\n\n// packages/alpinejs/src/utils/once.js\nfunction once(callback, fallback = () => {\n}) {\n  let called = false;\n  return function() {\n    if (!called) {\n      called = true;\n      callback.apply(this, arguments);\n    } else {\n      fallback.apply(this, arguments);\n    }\n  };\n}\n\n// packages/alpinejs/src/directives/x-transition.js\ndirective(\"transition\", (el, { value, modifiers, expression }, { evaluate: evaluate2 }) => {\n  if (typeof expression === \"function\")\n    expression = evaluate2(expression);\n  if (expression === false)\n    return;\n  if (!expression || typeof expression === \"boolean\") {\n    registerTransitionsFromHelper(el, modifiers, value);\n  } else {\n    registerTransitionsFromClassString(el, expression, value);\n  }\n});\nfunction registerTransitionsFromClassString(el, classString, stage) {\n  registerTransitionObject(el, setClasses, \"\");\n  let directiveStorageMap = {\n    \"enter\": (classes) => {\n      el._x_transition.enter.during = classes;\n    },\n    \"enter-start\": (classes) => {\n      el._x_transition.enter.start = classes;\n    },\n    \"enter-end\": (classes) => {\n      el._x_transition.enter.end = classes;\n    },\n    \"leave\": (classes) => {\n      el._x_transition.leave.during = classes;\n    },\n    \"leave-start\": (classes) => {\n      el._x_transition.leave.start = classes;\n    },\n    \"leave-end\": (classes) => {\n      el._x_transition.leave.end = classes;\n    }\n  };\n  directiveStorageMap[stage](classString);\n}\nfunction registerTransitionsFromHelper(el, modifiers, stage) {\n  registerTransitionObject(el, setStyles);\n  let doesntSpecify = !modifiers.includes(\"in\") && !modifiers.includes(\"out\") && !stage;\n  let transitioningIn = doesntSpecify || modifiers.includes(\"in\") || [\"enter\"].includes(stage);\n  let transitioningOut = doesntSpecify || modifiers.includes(\"out\") || [\"leave\"].includes(stage);\n  if (modifiers.includes(\"in\") && !doesntSpecify) {\n    modifiers = modifiers.filter((i, index) => index < modifiers.indexOf(\"out\"));\n  }\n  if (modifiers.includes(\"out\") && !doesntSpecify) {\n    modifiers = modifiers.filter((i, index) => index > modifiers.indexOf(\"out\"));\n  }\n  let wantsAll = !modifiers.includes(\"opacity\") && !modifiers.includes(\"scale\");\n  let wantsOpacity = wantsAll || modifiers.includes(\"opacity\");\n  let wantsScale = wantsAll || modifiers.includes(\"scale\");\n  let opacityValue = wantsOpacity ? 0 : 1;\n  let scaleValue = wantsScale ? modifierValue(modifiers, \"scale\", 95) / 100 : 1;\n  let delay = modifierValue(modifiers, \"delay\", 0) / 1e3;\n  let origin = modifierValue(modifiers, \"origin\", \"center\");\n  let property = \"opacity, transform\";\n  let durationIn = modifierValue(modifiers, \"duration\", 150) / 1e3;\n  let durationOut = modifierValue(modifiers, \"duration\", 75) / 1e3;\n  let easing = `cubic-bezier(0.4, 0.0, 0.2, 1)`;\n  if (transitioningIn) {\n    el._x_transition.enter.during = {\n      transformOrigin: origin,\n      transitionDelay: `${delay}s`,\n      transitionProperty: property,\n      transitionDuration: `${durationIn}s`,\n      transitionTimingFunction: easing\n    };\n    el._x_transition.enter.start = {\n      opacity: opacityValue,\n      transform: `scale(${scaleValue})`\n    };\n    el._x_transition.enter.end = {\n      opacity: 1,\n      transform: `scale(1)`\n    };\n  }\n  if (transitioningOut) {\n    el._x_transition.leave.during = {\n      transformOrigin: origin,\n      transitionDelay: `${delay}s`,\n      transitionProperty: property,\n      transitionDuration: `${durationOut}s`,\n      transitionTimingFunction: easing\n    };\n    el._x_transition.leave.start = {\n      opacity: 1,\n      transform: `scale(1)`\n    };\n    el._x_transition.leave.end = {\n      opacity: opacityValue,\n      transform: `scale(${scaleValue})`\n    };\n  }\n}\nfunction registerTransitionObject(el, setFunction, defaultValue = {}) {\n  if (!el._x_transition)\n    el._x_transition = {\n      enter: { during: defaultValue, start: defaultValue, end: defaultValue },\n      leave: { during: defaultValue, start: defaultValue, end: defaultValue },\n      in(before = () => {\n      }, after = () => {\n      }) {\n        transition(el, setFunction, {\n          during: this.enter.during,\n          start: this.enter.start,\n          end: this.enter.end\n        }, before, after);\n      },\n      out(before = () => {\n      }, after = () => {\n      }) {\n        transition(el, setFunction, {\n          during: this.leave.during,\n          start: this.leave.start,\n          end: this.leave.end\n        }, before, after);\n      }\n    };\n}\nwindow.Element.prototype._x_toggleAndCascadeWithTransitions = function(el, value, show, hide) {\n  const nextTick2 = document.visibilityState === \"visible\" ? requestAnimationFrame : setTimeout;\n  let clickAwayCompatibleShow = () => nextTick2(show);\n  if (value) {\n    if (el._x_transition && (el._x_transition.enter || el._x_transition.leave)) {\n      el._x_transition.enter && (Object.entries(el._x_transition.enter.during).length || Object.entries(el._x_transition.enter.start).length || Object.entries(el._x_transition.enter.end).length) ? el._x_transition.in(show) : clickAwayCompatibleShow();\n    } else {\n      el._x_transition ? el._x_transition.in(show) : clickAwayCompatibleShow();\n    }\n    return;\n  }\n  el._x_hidePromise = el._x_transition ? new Promise((resolve, reject) => {\n    el._x_transition.out(() => {\n    }, () => resolve(hide));\n    el._x_transitioning && el._x_transitioning.beforeCancel(() => reject({ isFromCancelledTransition: true }));\n  }) : Promise.resolve(hide);\n  queueMicrotask(() => {\n    let closest = closestHide(el);\n    if (closest) {\n      if (!closest._x_hideChildren)\n        closest._x_hideChildren = [];\n      closest._x_hideChildren.push(el);\n    } else {\n      nextTick2(() => {\n        let hideAfterChildren = (el2) => {\n          let carry = Promise.all([\n            el2._x_hidePromise,\n            ...(el2._x_hideChildren || []).map(hideAfterChildren)\n          ]).then(([i]) => i());\n          delete el2._x_hidePromise;\n          delete el2._x_hideChildren;\n          return carry;\n        };\n        hideAfterChildren(el).catch((e) => {\n          if (!e.isFromCancelledTransition)\n            throw e;\n        });\n      });\n    }\n  });\n};\nfunction closestHide(el) {\n  let parent = el.parentNode;\n  if (!parent)\n    return;\n  return parent._x_hidePromise ? parent : closestHide(parent);\n}\nfunction transition(el, setFunction, { during, start: start2, end } = {}, before = () => {\n}, after = () => {\n}) {\n  if (el._x_transitioning)\n    el._x_transitioning.cancel();\n  if (Object.keys(during).length === 0 && Object.keys(start2).length === 0 && Object.keys(end).length === 0) {\n    before();\n    after();\n    return;\n  }\n  let undoStart, undoDuring, undoEnd;\n  performTransition(el, {\n    start() {\n      undoStart = setFunction(el, start2);\n    },\n    during() {\n      undoDuring = setFunction(el, during);\n    },\n    before,\n    end() {\n      undoStart();\n      undoEnd = setFunction(el, end);\n    },\n    after,\n    cleanup() {\n      undoDuring();\n      undoEnd();\n    }\n  });\n}\nfunction performTransition(el, stages) {\n  let interrupted, reachedBefore, reachedEnd;\n  let finish = once(() => {\n    mutateDom(() => {\n      interrupted = true;\n      if (!reachedBefore)\n        stages.before();\n      if (!reachedEnd) {\n        stages.end();\n        releaseNextTicks();\n      }\n      stages.after();\n      if (el.isConnected)\n        stages.cleanup();\n      delete el._x_transitioning;\n    });\n  });\n  el._x_transitioning = {\n    beforeCancels: [],\n    beforeCancel(callback) {\n      this.beforeCancels.push(callback);\n    },\n    cancel: once(function() {\n      while (this.beforeCancels.length) {\n        this.beforeCancels.shift()();\n      }\n      ;\n      finish();\n    }),\n    finish\n  };\n  mutateDom(() => {\n    stages.start();\n    stages.during();\n  });\n  holdNextTicks();\n  requestAnimationFrame(() => {\n    if (interrupted)\n      return;\n    let duration = Number(getComputedStyle(el).transitionDuration.replace(/,.*/, \"\").replace(\"s\", \"\")) * 1e3;\n    let delay = Number(getComputedStyle(el).transitionDelay.replace(/,.*/, \"\").replace(\"s\", \"\")) * 1e3;\n    if (duration === 0)\n      duration = Number(getComputedStyle(el).animationDuration.replace(\"s\", \"\")) * 1e3;\n    mutateDom(() => {\n      stages.before();\n    });\n    reachedBefore = true;\n    requestAnimationFrame(() => {\n      if (interrupted)\n        return;\n      mutateDom(() => {\n        stages.end();\n      });\n      releaseNextTicks();\n      setTimeout(el._x_transitioning.finish, duration + delay);\n      reachedEnd = true;\n    });\n  });\n}\nfunction modifierValue(modifiers, key, fallback) {\n  if (modifiers.indexOf(key) === -1)\n    return fallback;\n  const rawValue = modifiers[modifiers.indexOf(key) + 1];\n  if (!rawValue)\n    return fallback;\n  if (key === \"scale\") {\n    if (isNaN(rawValue))\n      return fallback;\n  }\n  if (key === \"duration\" || key === \"delay\") {\n    let match = rawValue.match(/([0-9]+)ms/);\n    if (match)\n      return match[1];\n  }\n  if (key === \"origin\") {\n    if ([\"top\", \"right\", \"left\", \"center\", \"bottom\"].includes(modifiers[modifiers.indexOf(key) + 2])) {\n      return [rawValue, modifiers[modifiers.indexOf(key) + 2]].join(\" \");\n    }\n  }\n  return rawValue;\n}\n\n// packages/alpinejs/src/clone.js\nvar isCloning = false;\nfunction skipDuringClone(callback, fallback = () => {\n}) {\n  return (...args) => isCloning ? fallback(...args) : callback(...args);\n}\nfunction onlyDuringClone(callback) {\n  return (...args) => isCloning && callback(...args);\n}\nvar interceptors = [];\nfunction interceptClone(callback) {\n  interceptors.push(callback);\n}\nfunction cloneNode(from, to) {\n  interceptors.forEach((i) => i(from, to));\n  isCloning = true;\n  dontRegisterReactiveSideEffects(() => {\n    initTree(to, (el, callback) => {\n      callback(el, () => {\n      });\n    });\n  });\n  isCloning = false;\n}\nvar isCloningLegacy = false;\nfunction clone(oldEl, newEl) {\n  if (!newEl._x_dataStack)\n    newEl._x_dataStack = oldEl._x_dataStack;\n  isCloning = true;\n  isCloningLegacy = true;\n  dontRegisterReactiveSideEffects(() => {\n    cloneTree(newEl);\n  });\n  isCloning = false;\n  isCloningLegacy = false;\n}\nfunction cloneTree(el) {\n  let hasRunThroughFirstEl = false;\n  let shallowWalker = (el2, callback) => {\n    walk(el2, (el3, skip) => {\n      if (hasRunThroughFirstEl && isRoot(el3))\n        return skip();\n      hasRunThroughFirstEl = true;\n      callback(el3, skip);\n    });\n  };\n  initTree(el, shallowWalker);\n}\nfunction dontRegisterReactiveSideEffects(callback) {\n  let cache = effect;\n  overrideEffect((callback2, el) => {\n    let storedEffect = cache(callback2);\n    release(storedEffect);\n    return () => {\n    };\n  });\n  callback();\n  overrideEffect(cache);\n}\n\n// packages/alpinejs/src/utils/bind.js\nfunction bind(el, name, value, modifiers = []) {\n  if (!el._x_bindings)\n    el._x_bindings = reactive({});\n  el._x_bindings[name] = value;\n  name = modifiers.includes(\"camel\") ? camelCase(name) : name;\n  switch (name) {\n    case \"value\":\n      bindInputValue(el, value);\n      break;\n    case \"style\":\n      bindStyles(el, value);\n      break;\n    case \"class\":\n      bindClasses(el, value);\n      break;\n    case \"selected\":\n    case \"checked\":\n      bindAttributeAndProperty(el, name, value);\n      break;\n    default:\n      bindAttribute(el, name, value);\n      break;\n  }\n}\nfunction bindInputValue(el, value) {\n  if (el.type === \"radio\") {\n    if (el.attributes.value === void 0) {\n      el.value = value;\n    }\n    if (window.fromModel) {\n      if (typeof value === \"boolean\") {\n        el.checked = safeParseBoolean(el.value) === value;\n      } else {\n        el.checked = checkedAttrLooseCompare(el.value, value);\n      }\n    }\n  } else if (el.type === \"checkbox\") {\n    if (Number.isInteger(value)) {\n      el.value = value;\n    } else if (!Array.isArray(value) && typeof value !== \"boolean\" && ![null, void 0].includes(value)) {\n      el.value = String(value);\n    } else {\n      if (Array.isArray(value)) {\n        el.checked = value.some((val) => checkedAttrLooseCompare(val, el.value));\n      } else {\n        el.checked = !!value;\n      }\n    }\n  } else if (el.tagName === \"SELECT\") {\n    updateSelect(el, value);\n  } else {\n    if (el.value === value)\n      return;\n    el.value = value === void 0 ? \"\" : value;\n  }\n}\nfunction bindClasses(el, value) {\n  if (el._x_undoAddedClasses)\n    el._x_undoAddedClasses();\n  el._x_undoAddedClasses = setClasses(el, value);\n}\nfunction bindStyles(el, value) {\n  if (el._x_undoAddedStyles)\n    el._x_undoAddedStyles();\n  el._x_undoAddedStyles = setStyles(el, value);\n}\nfunction bindAttributeAndProperty(el, name, value) {\n  bindAttribute(el, name, value);\n  setPropertyIfChanged(el, name, value);\n}\nfunction bindAttribute(el, name, value) {\n  if ([null, void 0, false].includes(value) && attributeShouldntBePreservedIfFalsy(name)) {\n    el.removeAttribute(name);\n  } else {\n    if (isBooleanAttr(name))\n      value = name;\n    setIfChanged(el, name, value);\n  }\n}\nfunction setIfChanged(el, attrName, value) {\n  if (el.getAttribute(attrName) != value) {\n    el.setAttribute(attrName, value);\n  }\n}\nfunction setPropertyIfChanged(el, propName, value) {\n  if (el[propName] !== value) {\n    el[propName] = value;\n  }\n}\nfunction updateSelect(el, value) {\n  const arrayWrappedValue = [].concat(value).map((value2) => {\n    return value2 + \"\";\n  });\n  Array.from(el.options).forEach((option) => {\n    option.selected = arrayWrappedValue.includes(option.value);\n  });\n}\nfunction camelCase(subject) {\n  return subject.toLowerCase().replace(/-(\\w)/g, (match, char) => char.toUpperCase());\n}\nfunction checkedAttrLooseCompare(valueA, valueB) {\n  return valueA == valueB;\n}\nfunction safeParseBoolean(rawValue) {\n  if ([1, \"1\", \"true\", \"on\", \"yes\", true].includes(rawValue)) {\n    return true;\n  }\n  if ([0, \"0\", \"false\", \"off\", \"no\", false].includes(rawValue)) {\n    return false;\n  }\n  return rawValue ? Boolean(rawValue) : null;\n}\nfunction isBooleanAttr(attrName) {\n  const booleanAttributes = [\n    \"disabled\",\n    \"checked\",\n    \"required\",\n    \"readonly\",\n    \"hidden\",\n    \"open\",\n    \"selected\",\n    \"autofocus\",\n    \"itemscope\",\n    \"multiple\",\n    \"novalidate\",\n    \"allowfullscreen\",\n    \"allowpaymentrequest\",\n    \"formnovalidate\",\n    \"autoplay\",\n    \"controls\",\n    \"loop\",\n    \"muted\",\n    \"playsinline\",\n    \"default\",\n    \"ismap\",\n    \"reversed\",\n    \"async\",\n    \"defer\",\n    \"nomodule\"\n  ];\n  return booleanAttributes.includes(attrName);\n}\nfunction attributeShouldntBePreservedIfFalsy(name) {\n  return ![\"aria-pressed\", \"aria-checked\", \"aria-expanded\", \"aria-selected\"].includes(name);\n}\nfunction getBinding(el, name, fallback) {\n  if (el._x_bindings && el._x_bindings[name] !== void 0)\n    return el._x_bindings[name];\n  return getAttributeBinding(el, name, fallback);\n}\nfunction extractProp(el, name, fallback, extract = true) {\n  if (el._x_bindings && el._x_bindings[name] !== void 0)\n    return el._x_bindings[name];\n  if (el._x_inlineBindings && el._x_inlineBindings[name] !== void 0) {\n    let binding = el._x_inlineBindings[name];\n    binding.extract = extract;\n    return dontAutoEvaluateFunctions(() => {\n      return evaluate(el, binding.expression);\n    });\n  }\n  return getAttributeBinding(el, name, fallback);\n}\nfunction getAttributeBinding(el, name, fallback) {\n  let attr = el.getAttribute(name);\n  if (attr === null)\n    return typeof fallback === \"function\" ? fallback() : fallback;\n  if (attr === \"\")\n    return true;\n  if (isBooleanAttr(name)) {\n    return !![name, \"true\"].includes(attr);\n  }\n  return attr;\n}\n\n// packages/alpinejs/src/utils/debounce.js\nfunction debounce(func, wait) {\n  var timeout;\n  return function() {\n    var context = this, args = arguments;\n    var later = function() {\n      timeout = null;\n      func.apply(context, args);\n    };\n    clearTimeout(timeout);\n    timeout = setTimeout(later, wait);\n  };\n}\n\n// packages/alpinejs/src/utils/throttle.js\nfunction throttle(func, limit) {\n  let inThrottle;\n  return function() {\n    let context = this, args = arguments;\n    if (!inThrottle) {\n      func.apply(context, args);\n      inThrottle = true;\n      setTimeout(() => inThrottle = false, limit);\n    }\n  };\n}\n\n// packages/alpinejs/src/entangle.js\nfunction entangle({ get: outerGet, set: outerSet }, { get: innerGet, set: innerSet }) {\n  let firstRun = true;\n  let outerHash;\n  let innerHash;\n  let reference = effect(() => {\n    let outer = outerGet();\n    let inner = innerGet();\n    if (firstRun) {\n      innerSet(cloneIfObject(outer));\n      firstRun = false;\n    } else {\n      let outerHashLatest = JSON.stringify(outer);\n      let innerHashLatest = JSON.stringify(inner);\n      if (outerHashLatest !== outerHash) {\n        innerSet(cloneIfObject(outer));\n      } else if (outerHashLatest !== innerHashLatest) {\n        outerSet(cloneIfObject(inner));\n      } else {\n      }\n    }\n    outerHash = JSON.stringify(outerGet());\n    innerHash = JSON.stringify(innerGet());\n  });\n  return () => {\n    release(reference);\n  };\n}\nfunction cloneIfObject(value) {\n  return typeof value === \"object\" ? JSON.parse(JSON.stringify(value)) : value;\n}\n\n// packages/alpinejs/src/plugin.js\nfunction plugin(callback) {\n  let callbacks = Array.isArray(callback) ? callback : [callback];\n  callbacks.forEach((i) => i(alpine_default));\n}\n\n// packages/alpinejs/src/store.js\nvar stores = {};\nvar isReactive = false;\nfunction store(name, value) {\n  if (!isReactive) {\n    stores = reactive(stores);\n    isReactive = true;\n  }\n  if (value === void 0) {\n    return stores[name];\n  }\n  stores[name] = value;\n  if (typeof value === \"object\" && value !== null && value.hasOwnProperty(\"init\") && typeof value.init === \"function\") {\n    stores[name].init();\n  }\n  initInterceptors2(stores[name]);\n}\nfunction getStores() {\n  return stores;\n}\n\n// packages/alpinejs/src/binds.js\nvar binds = {};\nfunction bind2(name, bindings) {\n  let getBindings = typeof bindings !== \"function\" ? () => bindings : bindings;\n  if (name instanceof Element) {\n    return applyBindingsObject(name, getBindings());\n  } else {\n    binds[name] = getBindings;\n  }\n  return () => {\n  };\n}\nfunction injectBindingProviders(obj) {\n  Object.entries(binds).forEach(([name, callback]) => {\n    Object.defineProperty(obj, name, {\n      get() {\n        return (...args) => {\n          return callback(...args);\n        };\n      }\n    });\n  });\n  return obj;\n}\nfunction applyBindingsObject(el, obj, original) {\n  let cleanupRunners = [];\n  while (cleanupRunners.length)\n    cleanupRunners.pop()();\n  let attributes = Object.entries(obj).map(([name, value]) => ({ name, value }));\n  let staticAttributes = attributesOnly(attributes);\n  attributes = attributes.map((attribute) => {\n    if (staticAttributes.find((attr) => attr.name === attribute.name)) {\n      return {\n        name: `x-bind:${attribute.name}`,\n        value: `\"${attribute.value}\"`\n      };\n    }\n    return attribute;\n  });\n  directives(el, attributes, original).map((handle) => {\n    cleanupRunners.push(handle.runCleanups);\n    handle();\n  });\n  return () => {\n    while (cleanupRunners.length)\n      cleanupRunners.pop()();\n  };\n}\n\n// packages/alpinejs/src/datas.js\nvar datas = {};\nfunction data(name, callback) {\n  datas[name] = callback;\n}\nfunction injectDataProviders(obj, context) {\n  Object.entries(datas).forEach(([name, callback]) => {\n    Object.defineProperty(obj, name, {\n      get() {\n        return (...args) => {\n          return callback.bind(context)(...args);\n        };\n      },\n      enumerable: false\n    });\n  });\n  return obj;\n}\n\n// packages/alpinejs/src/alpine.js\nvar Alpine = {\n  get reactive() {\n    return reactive;\n  },\n  get release() {\n    return release;\n  },\n  get effect() {\n    return effect;\n  },\n  get raw() {\n    return raw;\n  },\n  version: \"3.13.7\",\n  flushAndStopDeferringMutations,\n  dontAutoEvaluateFunctions,\n  disableEffectScheduling,\n  startObservingMutations,\n  stopObservingMutations,\n  setReactivityEngine,\n  onAttributeRemoved,\n  onAttributesAdded,\n  closestDataStack,\n  skipDuringClone,\n  onlyDuringClone,\n  addRootSelector,\n  addInitSelector,\n  interceptClone,\n  addScopeToNode,\n  deferMutations,\n  mapAttributes,\n  evaluateLater,\n  interceptInit,\n  setEvaluator,\n  mergeProxies,\n  extractProp,\n  findClosest,\n  onElRemoved,\n  closestRoot,\n  destroyTree,\n  interceptor,\n  // INTERNAL: not public API and is subject to change without major release.\n  transition,\n  // INTERNAL\n  setStyles,\n  // INTERNAL\n  mutateDom,\n  directive,\n  entangle,\n  throttle,\n  debounce,\n  evaluate,\n  initTree,\n  nextTick,\n  prefixed: prefix,\n  prefix: setPrefix,\n  plugin,\n  magic,\n  store,\n  start,\n  clone,\n  // INTERNAL\n  cloneNode,\n  // INTERNAL\n  bound: getBinding,\n  $data: scope,\n  watch,\n  walk,\n  data,\n  bind: bind2\n};\nvar alpine_default = Alpine;\n\n// node_modules/@vue/shared/dist/shared.esm-bundler.js\nfunction makeMap(str, expectsLowerCase) {\n  const map = /* @__PURE__ */ Object.create(null);\n  const list = str.split(\",\");\n  for (let i = 0; i < list.length; i++) {\n    map[list[i]] = true;\n  }\n  return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];\n}\nvar specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;\nvar isBooleanAttr2 = /* @__PURE__ */ makeMap(specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);\nvar EMPTY_OBJ = true ? Object.freeze({}) : {};\nvar EMPTY_ARR = true ? Object.freeze([]) : [];\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar hasOwn = (val, key) => hasOwnProperty.call(val, key);\nvar isArray = Array.isArray;\nvar isMap = (val) => toTypeString(val) === \"[object Map]\";\nvar isString = (val) => typeof val === \"string\";\nvar isSymbol = (val) => typeof val === \"symbol\";\nvar isObject = (val) => val !== null && typeof val === \"object\";\nvar objectToString = Object.prototype.toString;\nvar toTypeString = (value) => objectToString.call(value);\nvar toRawType = (value) => {\n  return toTypeString(value).slice(8, -1);\n};\nvar isIntegerKey = (key) => isString(key) && key !== \"NaN\" && key[0] !== \"-\" && \"\" + parseInt(key, 10) === key;\nvar cacheStringFunction = (fn) => {\n  const cache = /* @__PURE__ */ Object.create(null);\n  return (str) => {\n    const hit = cache[str];\n    return hit || (cache[str] = fn(str));\n  };\n};\nvar camelizeRE = /-(\\w)/g;\nvar camelize = cacheStringFunction((str) => {\n  return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : \"\");\n});\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, \"-$1\").toLowerCase());\nvar capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));\nvar toHandlerKey = cacheStringFunction((str) => str ? `on${capitalize(str)}` : ``);\nvar hasChanged = (value, oldValue) => value !== oldValue && (value === value || oldValue === oldValue);\n\n// node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js\nvar targetMap = /* @__PURE__ */ new WeakMap();\nvar effectStack = [];\nvar activeEffect;\nvar ITERATE_KEY = Symbol(true ? \"iterate\" : \"\");\nvar MAP_KEY_ITERATE_KEY = Symbol(true ? \"Map key iterate\" : \"\");\nfunction isEffect(fn) {\n  return fn && fn._isEffect === true;\n}\nfunction effect2(fn, options = EMPTY_OBJ) {\n  if (isEffect(fn)) {\n    fn = fn.raw;\n  }\n  const effect3 = createReactiveEffect(fn, options);\n  if (!options.lazy) {\n    effect3();\n  }\n  return effect3;\n}\nfunction stop(effect3) {\n  if (effect3.active) {\n    cleanup(effect3);\n    if (effect3.options.onStop) {\n      effect3.options.onStop();\n    }\n    effect3.active = false;\n  }\n}\nvar uid = 0;\nfunction createReactiveEffect(fn, options) {\n  const effect3 = function reactiveEffect() {\n    if (!effect3.active) {\n      return fn();\n    }\n    if (!effectStack.includes(effect3)) {\n      cleanup(effect3);\n      try {\n        enableTracking();\n        effectStack.push(effect3);\n        activeEffect = effect3;\n        return fn();\n      } finally {\n        effectStack.pop();\n        resetTracking();\n        activeEffect = effectStack[effectStack.length - 1];\n      }\n    }\n  };\n  effect3.id = uid++;\n  effect3.allowRecurse = !!options.allowRecurse;\n  effect3._isEffect = true;\n  effect3.active = true;\n  effect3.raw = fn;\n  effect3.deps = [];\n  effect3.options = options;\n  return effect3;\n}\nfunction cleanup(effect3) {\n  const { deps } = effect3;\n  if (deps.length) {\n    for (let i = 0; i < deps.length; i++) {\n      deps[i].delete(effect3);\n    }\n    deps.length = 0;\n  }\n}\nvar shouldTrack = true;\nvar trackStack = [];\nfunction pauseTracking() {\n  trackStack.push(shouldTrack);\n  shouldTrack = false;\n}\nfunction enableTracking() {\n  trackStack.push(shouldTrack);\n  shouldTrack = true;\n}\nfunction resetTracking() {\n  const last = trackStack.pop();\n  shouldTrack = last === void 0 ? true : last;\n}\nfunction track(target, type, key) {\n  if (!shouldTrack || activeEffect === void 0) {\n    return;\n  }\n  let depsMap = targetMap.get(target);\n  if (!depsMap) {\n    targetMap.set(target, depsMap = /* @__PURE__ */ new Map());\n  }\n  let dep = depsMap.get(key);\n  if (!dep) {\n    depsMap.set(key, dep = /* @__PURE__ */ new Set());\n  }\n  if (!dep.has(activeEffect)) {\n    dep.add(activeEffect);\n    activeEffect.deps.push(dep);\n    if (activeEffect.options.onTrack) {\n      activeEffect.options.onTrack({\n        effect: activeEffect,\n        target,\n        type,\n        key\n      });\n    }\n  }\n}\nfunction trigger(target, type, key, newValue, oldValue, oldTarget) {\n  const depsMap = targetMap.get(target);\n  if (!depsMap) {\n    return;\n  }\n  const effects = /* @__PURE__ */ new Set();\n  const add2 = (effectsToAdd) => {\n    if (effectsToAdd) {\n      effectsToAdd.forEach((effect3) => {\n        if (effect3 !== activeEffect || effect3.allowRecurse) {\n          effects.add(effect3);\n        }\n      });\n    }\n  };\n  if (type === \"clear\") {\n    depsMap.forEach(add2);\n  } else if (key === \"length\" && isArray(target)) {\n    depsMap.forEach((dep, key2) => {\n      if (key2 === \"length\" || key2 >= newValue) {\n        add2(dep);\n      }\n    });\n  } else {\n    if (key !== void 0) {\n      add2(depsMap.get(key));\n    }\n    switch (type) {\n      case \"add\":\n        if (!isArray(target)) {\n          add2(depsMap.get(ITERATE_KEY));\n          if (isMap(target)) {\n            add2(depsMap.get(MAP_KEY_ITERATE_KEY));\n          }\n        } else if (isIntegerKey(key)) {\n          add2(depsMap.get(\"length\"));\n        }\n        break;\n      case \"delete\":\n        if (!isArray(target)) {\n          add2(depsMap.get(ITERATE_KEY));\n          if (isMap(target)) {\n            add2(depsMap.get(MAP_KEY_ITERATE_KEY));\n          }\n        }\n        break;\n      case \"set\":\n        if (isMap(target)) {\n          add2(depsMap.get(ITERATE_KEY));\n        }\n        break;\n    }\n  }\n  const run = (effect3) => {\n    if (effect3.options.onTrigger) {\n      effect3.options.onTrigger({\n        effect: effect3,\n        target,\n        key,\n        type,\n        newValue,\n        oldValue,\n        oldTarget\n      });\n    }\n    if (effect3.options.scheduler) {\n      effect3.options.scheduler(effect3);\n    } else {\n      effect3();\n    }\n  };\n  effects.forEach(run);\n}\nvar isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);\nvar builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol).map((key) => Symbol[key]).filter(isSymbol));\nvar get2 = /* @__PURE__ */ createGetter();\nvar readonlyGet = /* @__PURE__ */ createGetter(true);\nvar arrayInstrumentations = /* @__PURE__ */ createArrayInstrumentations();\nfunction createArrayInstrumentations() {\n  const instrumentations = {};\n  [\"includes\", \"indexOf\", \"lastIndexOf\"].forEach((key) => {\n    instrumentations[key] = function(...args) {\n      const arr = toRaw(this);\n      for (let i = 0, l = this.length; i < l; i++) {\n        track(arr, \"get\", i + \"\");\n      }\n      const res = arr[key](...args);\n      if (res === -1 || res === false) {\n        return arr[key](...args.map(toRaw));\n      } else {\n        return res;\n      }\n    };\n  });\n  [\"push\", \"pop\", \"shift\", \"unshift\", \"splice\"].forEach((key) => {\n    instrumentations[key] = function(...args) {\n      pauseTracking();\n      const res = toRaw(this)[key].apply(this, args);\n      resetTracking();\n      return res;\n    };\n  });\n  return instrumentations;\n}\nfunction createGetter(isReadonly = false, shallow = false) {\n  return function get3(target, key, receiver) {\n    if (key === \"__v_isReactive\") {\n      return !isReadonly;\n    } else if (key === \"__v_isReadonly\") {\n      return isReadonly;\n    } else if (key === \"__v_raw\" && receiver === (isReadonly ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) {\n      return target;\n    }\n    const targetIsArray = isArray(target);\n    if (!isReadonly && targetIsArray && hasOwn(arrayInstrumentations, key)) {\n      return Reflect.get(arrayInstrumentations, key, receiver);\n    }\n    const res = Reflect.get(target, key, receiver);\n    if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {\n      return res;\n    }\n    if (!isReadonly) {\n      track(target, \"get\", key);\n    }\n    if (shallow) {\n      return res;\n    }\n    if (isRef(res)) {\n      const shouldUnwrap = !targetIsArray || !isIntegerKey(key);\n      return shouldUnwrap ? res.value : res;\n    }\n    if (isObject(res)) {\n      return isReadonly ? readonly(res) : reactive2(res);\n    }\n    return res;\n  };\n}\nvar set2 = /* @__PURE__ */ createSetter();\nfunction createSetter(shallow = false) {\n  return function set3(target, key, value, receiver) {\n    let oldValue = target[key];\n    if (!shallow) {\n      value = toRaw(value);\n      oldValue = toRaw(oldValue);\n      if (!isArray(target) && isRef(oldValue) && !isRef(value)) {\n        oldValue.value = value;\n        return true;\n      }\n    }\n    const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);\n    const result = Reflect.set(target, key, value, receiver);\n    if (target === toRaw(receiver)) {\n      if (!hadKey) {\n        trigger(target, \"add\", key, value);\n      } else if (hasChanged(value, oldValue)) {\n        trigger(target, \"set\", key, value, oldValue);\n      }\n    }\n    return result;\n  };\n}\nfunction deleteProperty(target, key) {\n  const hadKey = hasOwn(target, key);\n  const oldValue = target[key];\n  const result = Reflect.deleteProperty(target, key);\n  if (result && hadKey) {\n    trigger(target, \"delete\", key, void 0, oldValue);\n  }\n  return result;\n}\nfunction has(target, key) {\n  const result = Reflect.has(target, key);\n  if (!isSymbol(key) || !builtInSymbols.has(key)) {\n    track(target, \"has\", key);\n  }\n  return result;\n}\nfunction ownKeys(target) {\n  track(target, \"iterate\", isArray(target) ? \"length\" : ITERATE_KEY);\n  return Reflect.ownKeys(target);\n}\nvar mutableHandlers = {\n  get: get2,\n  set: set2,\n  deleteProperty,\n  has,\n  ownKeys\n};\nvar readonlyHandlers = {\n  get: readonlyGet,\n  set(target, key) {\n    if (true) {\n      console.warn(`Set operation on key \"${String(key)}\" failed: target is readonly.`, target);\n    }\n    return true;\n  },\n  deleteProperty(target, key) {\n    if (true) {\n      console.warn(`Delete operation on key \"${String(key)}\" failed: target is readonly.`, target);\n    }\n    return true;\n  }\n};\nvar toReactive = (value) => isObject(value) ? reactive2(value) : value;\nvar toReadonly = (value) => isObject(value) ? readonly(value) : value;\nvar toShallow = (value) => value;\nvar getProto = (v) => Reflect.getPrototypeOf(v);\nfunction get$1(target, key, isReadonly = false, isShallow = false) {\n  target = target[\n    \"__v_raw\"\n    /* RAW */\n  ];\n  const rawTarget = toRaw(target);\n  const rawKey = toRaw(key);\n  if (key !== rawKey) {\n    !isReadonly && track(rawTarget, \"get\", key);\n  }\n  !isReadonly && track(rawTarget, \"get\", rawKey);\n  const { has: has2 } = getProto(rawTarget);\n  const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n  if (has2.call(rawTarget, key)) {\n    return wrap(target.get(key));\n  } else if (has2.call(rawTarget, rawKey)) {\n    return wrap(target.get(rawKey));\n  } else if (target !== rawTarget) {\n    target.get(key);\n  }\n}\nfunction has$1(key, isReadonly = false) {\n  const target = this[\n    \"__v_raw\"\n    /* RAW */\n  ];\n  const rawTarget = toRaw(target);\n  const rawKey = toRaw(key);\n  if (key !== rawKey) {\n    !isReadonly && track(rawTarget, \"has\", key);\n  }\n  !isReadonly && track(rawTarget, \"has\", rawKey);\n  return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);\n}\nfunction size(target, isReadonly = false) {\n  target = target[\n    \"__v_raw\"\n    /* RAW */\n  ];\n  !isReadonly && track(toRaw(target), \"iterate\", ITERATE_KEY);\n  return Reflect.get(target, \"size\", target);\n}\nfunction add(value) {\n  value = toRaw(value);\n  const target = toRaw(this);\n  const proto = getProto(target);\n  const hadKey = proto.has.call(target, value);\n  if (!hadKey) {\n    target.add(value);\n    trigger(target, \"add\", value, value);\n  }\n  return this;\n}\nfunction set$1(key, value) {\n  value = toRaw(value);\n  const target = toRaw(this);\n  const { has: has2, get: get3 } = getProto(target);\n  let hadKey = has2.call(target, key);\n  if (!hadKey) {\n    key = toRaw(key);\n    hadKey = has2.call(target, key);\n  } else if (true) {\n    checkIdentityKeys(target, has2, key);\n  }\n  const oldValue = get3.call(target, key);\n  target.set(key, value);\n  if (!hadKey) {\n    trigger(target, \"add\", key, value);\n  } else if (hasChanged(value, oldValue)) {\n    trigger(target, \"set\", key, value, oldValue);\n  }\n  return this;\n}\nfunction deleteEntry(key) {\n  const target = toRaw(this);\n  const { has: has2, get: get3 } = getProto(target);\n  let hadKey = has2.call(target, key);\n  if (!hadKey) {\n    key = toRaw(key);\n    hadKey = has2.call(target, key);\n  } else if (true) {\n    checkIdentityKeys(target, has2, key);\n  }\n  const oldValue = get3 ? get3.call(target, key) : void 0;\n  const result = target.delete(key);\n  if (hadKey) {\n    trigger(target, \"delete\", key, void 0, oldValue);\n  }\n  return result;\n}\nfunction clear() {\n  const target = toRaw(this);\n  const hadItems = target.size !== 0;\n  const oldTarget = true ? isMap(target) ? new Map(target) : new Set(target) : void 0;\n  const result = target.clear();\n  if (hadItems) {\n    trigger(target, \"clear\", void 0, void 0, oldTarget);\n  }\n  return result;\n}\nfunction createForEach(isReadonly, isShallow) {\n  return function forEach(callback, thisArg) {\n    const observed = this;\n    const target = observed[\n      \"__v_raw\"\n      /* RAW */\n    ];\n    const rawTarget = toRaw(target);\n    const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n    !isReadonly && track(rawTarget, \"iterate\", ITERATE_KEY);\n    return target.forEach((value, key) => {\n      return callback.call(thisArg, wrap(value), wrap(key), observed);\n    });\n  };\n}\nfunction createIterableMethod(method, isReadonly, isShallow) {\n  return function(...args) {\n    const target = this[\n      \"__v_raw\"\n      /* RAW */\n    ];\n    const rawTarget = toRaw(target);\n    const targetIsMap = isMap(rawTarget);\n    const isPair = method === \"entries\" || method === Symbol.iterator && targetIsMap;\n    const isKeyOnly = method === \"keys\" && targetIsMap;\n    const innerIterator = target[method](...args);\n    const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n    !isReadonly && track(rawTarget, \"iterate\", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);\n    return {\n      // iterator protocol\n      next() {\n        const { value, done } = innerIterator.next();\n        return done ? { value, done } : {\n          value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),\n          done\n        };\n      },\n      // iterable protocol\n      [Symbol.iterator]() {\n        return this;\n      }\n    };\n  };\n}\nfunction createReadonlyMethod(type) {\n  return function(...args) {\n    if (true) {\n      const key = args[0] ? `on key \"${args[0]}\" ` : ``;\n      console.warn(`${capitalize(type)} operation ${key}failed: target is readonly.`, toRaw(this));\n    }\n    return type === \"delete\" ? false : this;\n  };\n}\nfunction createInstrumentations() {\n  const mutableInstrumentations2 = {\n    get(key) {\n      return get$1(this, key);\n    },\n    get size() {\n      return size(this);\n    },\n    has: has$1,\n    add,\n    set: set$1,\n    delete: deleteEntry,\n    clear,\n    forEach: createForEach(false, false)\n  };\n  const shallowInstrumentations2 = {\n    get(key) {\n      return get$1(this, key, false, true);\n    },\n    get size() {\n      return size(this);\n    },\n    has: has$1,\n    add,\n    set: set$1,\n    delete: deleteEntry,\n    clear,\n    forEach: createForEach(false, true)\n  };\n  const readonlyInstrumentations2 = {\n    get(key) {\n      return get$1(this, key, true);\n    },\n    get size() {\n      return size(this, true);\n    },\n    has(key) {\n      return has$1.call(this, key, true);\n    },\n    add: createReadonlyMethod(\n      \"add\"\n      /* ADD */\n    ),\n    set: createReadonlyMethod(\n      \"set\"\n      /* SET */\n    ),\n    delete: createReadonlyMethod(\n      \"delete\"\n      /* DELETE */\n    ),\n    clear: createReadonlyMethod(\n      \"clear\"\n      /* CLEAR */\n    ),\n    forEach: createForEach(true, false)\n  };\n  const shallowReadonlyInstrumentations2 = {\n    get(key) {\n      return get$1(this, key, true, true);\n    },\n    get size() {\n      return size(this, true);\n    },\n    has(key) {\n      return has$1.call(this, key, true);\n    },\n    add: createReadonlyMethod(\n      \"add\"\n      /* ADD */\n    ),\n    set: createReadonlyMethod(\n      \"set\"\n      /* SET */\n    ),\n    delete: createReadonlyMethod(\n      \"delete\"\n      /* DELETE */\n    ),\n    clear: createReadonlyMethod(\n      \"clear\"\n      /* CLEAR */\n    ),\n    forEach: createForEach(true, true)\n  };\n  const iteratorMethods = [\"keys\", \"values\", \"entries\", Symbol.iterator];\n  iteratorMethods.forEach((method) => {\n    mutableInstrumentations2[method] = createIterableMethod(method, false, false);\n    readonlyInstrumentations2[method] = createIterableMethod(method, true, false);\n    shallowInstrumentations2[method] = createIterableMethod(method, false, true);\n    shallowReadonlyInstrumentations2[method] = createIterableMethod(method, true, true);\n  });\n  return [\n    mutableInstrumentations2,\n    readonlyInstrumentations2,\n    shallowInstrumentations2,\n    shallowReadonlyInstrumentations2\n  ];\n}\nvar [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* @__PURE__ */ createInstrumentations();\nfunction createInstrumentationGetter(isReadonly, shallow) {\n  const instrumentations = shallow ? isReadonly ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly ? readonlyInstrumentations : mutableInstrumentations;\n  return (target, key, receiver) => {\n    if (key === \"__v_isReactive\") {\n      return !isReadonly;\n    } else if (key === \"__v_isReadonly\") {\n      return isReadonly;\n    } else if (key === \"__v_raw\") {\n      return target;\n    }\n    return Reflect.get(hasOwn(instrumentations, key) && key in target ? instrumentations : target, key, receiver);\n  };\n}\nvar mutableCollectionHandlers = {\n  get: /* @__PURE__ */ createInstrumentationGetter(false, false)\n};\nvar readonlyCollectionHandlers = {\n  get: /* @__PURE__ */ createInstrumentationGetter(true, false)\n};\nfunction checkIdentityKeys(target, has2, key) {\n  const rawKey = toRaw(key);\n  if (rawKey !== key && has2.call(target, rawKey)) {\n    const type = toRawType(target);\n    console.warn(`Reactive ${type} contains both the raw and reactive versions of the same object${type === `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.`);\n  }\n}\nvar reactiveMap = /* @__PURE__ */ new WeakMap();\nvar shallowReactiveMap = /* @__PURE__ */ new WeakMap();\nvar readonlyMap = /* @__PURE__ */ new WeakMap();\nvar shallowReadonlyMap = /* @__PURE__ */ new WeakMap();\nfunction targetTypeMap(rawType) {\n  switch (rawType) {\n    case \"Object\":\n    case \"Array\":\n      return 1;\n    case \"Map\":\n    case \"Set\":\n    case \"WeakMap\":\n    case \"WeakSet\":\n      return 2;\n    default:\n      return 0;\n  }\n}\nfunction getTargetType(value) {\n  return value[\n    \"__v_skip\"\n    /* SKIP */\n  ] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value));\n}\nfunction reactive2(target) {\n  if (target && target[\n    \"__v_isReadonly\"\n    /* IS_READONLY */\n  ]) {\n    return target;\n  }\n  return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);\n}\nfunction readonly(target) {\n  return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);\n}\nfunction createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {\n  if (!isObject(target)) {\n    if (true) {\n      console.warn(`value cannot be made reactive: ${String(target)}`);\n    }\n    return target;\n  }\n  if (target[\n    \"__v_raw\"\n    /* RAW */\n  ] && !(isReadonly && target[\n    \"__v_isReactive\"\n    /* IS_REACTIVE */\n  ])) {\n    return target;\n  }\n  const existingProxy = proxyMap.get(target);\n  if (existingProxy) {\n    return existingProxy;\n  }\n  const targetType = getTargetType(target);\n  if (targetType === 0) {\n    return target;\n  }\n  const proxy = new Proxy(target, targetType === 2 ? collectionHandlers : baseHandlers);\n  proxyMap.set(target, proxy);\n  return proxy;\n}\nfunction toRaw(observed) {\n  return observed && toRaw(observed[\n    \"__v_raw\"\n    /* RAW */\n  ]) || observed;\n}\nfunction isRef(r) {\n  return Boolean(r && r.__v_isRef === true);\n}\n\n// packages/alpinejs/src/magics/$nextTick.js\nmagic(\"nextTick\", () => nextTick);\n\n// packages/alpinejs/src/magics/$dispatch.js\nmagic(\"dispatch\", (el) => dispatch.bind(dispatch, el));\n\n// packages/alpinejs/src/magics/$watch.js\nmagic(\"watch\", (el, { evaluateLater: evaluateLater2, cleanup: cleanup2 }) => (key, callback) => {\n  let evaluate2 = evaluateLater2(key);\n  let getter = () => {\n    let value;\n    evaluate2((i) => value = i);\n    return value;\n  };\n  let unwatch = watch(getter, callback);\n  cleanup2(unwatch);\n});\n\n// packages/alpinejs/src/magics/$store.js\nmagic(\"store\", getStores);\n\n// packages/alpinejs/src/magics/$data.js\nmagic(\"data\", (el) => scope(el));\n\n// packages/alpinejs/src/magics/$root.js\nmagic(\"root\", (el) => closestRoot(el));\n\n// packages/alpinejs/src/magics/$refs.js\nmagic(\"refs\", (el) => {\n  if (el._x_refs_proxy)\n    return el._x_refs_proxy;\n  el._x_refs_proxy = mergeProxies(getArrayOfRefObject(el));\n  return el._x_refs_proxy;\n});\nfunction getArrayOfRefObject(el) {\n  let refObjects = [];\n  findClosest(el, (i) => {\n    if (i._x_refs)\n      refObjects.push(i._x_refs);\n  });\n  return refObjects;\n}\n\n// packages/alpinejs/src/ids.js\nvar globalIdMemo = {};\nfunction findAndIncrementId(name) {\n  if (!globalIdMemo[name])\n    globalIdMemo[name] = 0;\n  return ++globalIdMemo[name];\n}\nfunction closestIdRoot(el, name) {\n  return findClosest(el, (element) => {\n    if (element._x_ids && element._x_ids[name])\n      return true;\n  });\n}\nfunction setIdRoot(el, name) {\n  if (!el._x_ids)\n    el._x_ids = {};\n  if (!el._x_ids[name])\n    el._x_ids[name] = findAndIncrementId(name);\n}\n\n// packages/alpinejs/src/magics/$id.js\nmagic(\"id\", (el, { cleanup: cleanup2 }) => (name, key = null) => {\n  let cacheKey = `${name}${key ? `-${key}` : \"\"}`;\n  return cacheIdByNameOnElement(el, cacheKey, cleanup2, () => {\n    let root = closestIdRoot(el, name);\n    let id = root ? root._x_ids[name] : findAndIncrementId(name);\n    return key ? `${name}-${id}-${key}` : `${name}-${id}`;\n  });\n});\ninterceptClone((from, to) => {\n  if (from._x_id) {\n    to._x_id = from._x_id;\n  }\n});\nfunction cacheIdByNameOnElement(el, cacheKey, cleanup2, callback) {\n  if (!el._x_id)\n    el._x_id = {};\n  if (el._x_id[cacheKey])\n    return el._x_id[cacheKey];\n  let output = callback();\n  el._x_id[cacheKey] = output;\n  cleanup2(() => {\n    delete el._x_id[cacheKey];\n  });\n  return output;\n}\n\n// packages/alpinejs/src/magics/$el.js\nmagic(\"el\", (el) => el);\n\n// packages/alpinejs/src/magics/index.js\nwarnMissingPluginMagic(\"Focus\", \"focus\", \"focus\");\nwarnMissingPluginMagic(\"Persist\", \"persist\", \"persist\");\nfunction warnMissingPluginMagic(name, magicName, slug) {\n  magic(magicName, (el) => warn(`You can't use [$${magicName}] without first installing the \"${name}\" plugin here: https://alpinejs.dev/plugins/${slug}`, el));\n}\n\n// packages/alpinejs/src/directives/x-modelable.js\ndirective(\"modelable\", (el, { expression }, { effect: effect3, evaluateLater: evaluateLater2, cleanup: cleanup2 }) => {\n  let func = evaluateLater2(expression);\n  let innerGet = () => {\n    let result;\n    func((i) => result = i);\n    return result;\n  };\n  let evaluateInnerSet = evaluateLater2(`${expression} = __placeholder`);\n  let innerSet = (val) => evaluateInnerSet(() => {\n  }, { scope: { \"__placeholder\": val } });\n  let initialValue = innerGet();\n  innerSet(initialValue);\n  queueMicrotask(() => {\n    if (!el._x_model)\n      return;\n    el._x_removeModelListeners[\"default\"]();\n    let outerGet = el._x_model.get;\n    let outerSet = el._x_model.set;\n    let releaseEntanglement = entangle(\n      {\n        get() {\n          return outerGet();\n        },\n        set(value) {\n          outerSet(value);\n        }\n      },\n      {\n        get() {\n          return innerGet();\n        },\n        set(value) {\n          innerSet(value);\n        }\n      }\n    );\n    cleanup2(releaseEntanglement);\n  });\n});\n\n// packages/alpinejs/src/directives/x-teleport.js\ndirective(\"teleport\", (el, { modifiers, expression }, { cleanup: cleanup2 }) => {\n  if (el.tagName.toLowerCase() !== \"template\")\n    warn(\"x-teleport can only be used on a <template> tag\", el);\n  let target = getTarget(expression);\n  let clone2 = el.content.cloneNode(true).firstElementChild;\n  el._x_teleport = clone2;\n  clone2._x_teleportBack = el;\n  el.setAttribute(\"data-teleport-template\", true);\n  clone2.setAttribute(\"data-teleport-target\", true);\n  if (el._x_forwardEvents) {\n    el._x_forwardEvents.forEach((eventName) => {\n      clone2.addEventListener(eventName, (e) => {\n        e.stopPropagation();\n        el.dispatchEvent(new e.constructor(e.type, e));\n      });\n    });\n  }\n  addScopeToNode(clone2, {}, el);\n  let placeInDom = (clone3, target2, modifiers2) => {\n    if (modifiers2.includes(\"prepend\")) {\n      target2.parentNode.insertBefore(clone3, target2);\n    } else if (modifiers2.includes(\"append\")) {\n      target2.parentNode.insertBefore(clone3, target2.nextSibling);\n    } else {\n      target2.appendChild(clone3);\n    }\n  };\n  mutateDom(() => {\n    placeInDom(clone2, target, modifiers);\n    initTree(clone2);\n    clone2._x_ignore = true;\n  });\n  el._x_teleportPutBack = () => {\n    let target2 = getTarget(expression);\n    mutateDom(() => {\n      placeInDom(el._x_teleport, target2, modifiers);\n    });\n  };\n  cleanup2(() => clone2.remove());\n});\nvar teleportContainerDuringClone = document.createElement(\"div\");\nfunction getTarget(expression) {\n  let target = skipDuringClone(() => {\n    return document.querySelector(expression);\n  }, () => {\n    return teleportContainerDuringClone;\n  })();\n  if (!target)\n    warn(`Cannot find x-teleport element for selector: \"${expression}\"`);\n  return target;\n}\n\n// packages/alpinejs/src/directives/x-ignore.js\nvar handler = () => {\n};\nhandler.inline = (el, { modifiers }, { cleanup: cleanup2 }) => {\n  modifiers.includes(\"self\") ? el._x_ignoreSelf = true : el._x_ignore = true;\n  cleanup2(() => {\n    modifiers.includes(\"self\") ? delete el._x_ignoreSelf : delete el._x_ignore;\n  });\n};\ndirective(\"ignore\", handler);\n\n// packages/alpinejs/src/directives/x-effect.js\ndirective(\"effect\", skipDuringClone((el, { expression }, { effect: effect3 }) => {\n  effect3(evaluateLater(el, expression));\n}));\n\n// packages/alpinejs/src/utils/on.js\nfunction on(el, event, modifiers, callback) {\n  let listenerTarget = el;\n  let handler4 = (e) => callback(e);\n  let options = {};\n  let wrapHandler = (callback2, wrapper) => (e) => wrapper(callback2, e);\n  if (modifiers.includes(\"dot\"))\n    event = dotSyntax(event);\n  if (modifiers.includes(\"camel\"))\n    event = camelCase2(event);\n  if (modifiers.includes(\"passive\"))\n    options.passive = true;\n  if (modifiers.includes(\"capture\"))\n    options.capture = true;\n  if (modifiers.includes(\"window\"))\n    listenerTarget = window;\n  if (modifiers.includes(\"document\"))\n    listenerTarget = document;\n  if (modifiers.includes(\"debounce\")) {\n    let nextModifier = modifiers[modifiers.indexOf(\"debounce\") + 1] || \"invalid-wait\";\n    let wait = isNumeric(nextModifier.split(\"ms\")[0]) ? Number(nextModifier.split(\"ms\")[0]) : 250;\n    handler4 = debounce(handler4, wait);\n  }\n  if (modifiers.includes(\"throttle\")) {\n    let nextModifier = modifiers[modifiers.indexOf(\"throttle\") + 1] || \"invalid-wait\";\n    let wait = isNumeric(nextModifier.split(\"ms\")[0]) ? Number(nextModifier.split(\"ms\")[0]) : 250;\n    handler4 = throttle(handler4, wait);\n  }\n  if (modifiers.includes(\"prevent\"))\n    handler4 = wrapHandler(handler4, (next, e) => {\n      e.preventDefault();\n      next(e);\n    });\n  if (modifiers.includes(\"stop\"))\n    handler4 = wrapHandler(handler4, (next, e) => {\n      e.stopPropagation();\n      next(e);\n    });\n  if (modifiers.includes(\"self\"))\n    handler4 = wrapHandler(handler4, (next, e) => {\n      e.target === el && next(e);\n    });\n  if (modifiers.includes(\"away\") || modifiers.includes(\"outside\")) {\n    listenerTarget = document;\n    handler4 = wrapHandler(handler4, (next, e) => {\n      if (el.contains(e.target))\n        return;\n      if (e.target.isConnected === false)\n        return;\n      if (el.offsetWidth < 1 && el.offsetHeight < 1)\n        return;\n      if (el._x_isShown === false)\n        return;\n      next(e);\n    });\n  }\n  if (modifiers.includes(\"once\")) {\n    handler4 = wrapHandler(handler4, (next, e) => {\n      next(e);\n      listenerTarget.removeEventListener(event, handler4, options);\n    });\n  }\n  handler4 = wrapHandler(handler4, (next, e) => {\n    if (isKeyEvent(event)) {\n      if (isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers)) {\n        return;\n      }\n    }\n    next(e);\n  });\n  listenerTarget.addEventListener(event, handler4, options);\n  return () => {\n    listenerTarget.removeEventListener(event, handler4, options);\n  };\n}\nfunction dotSyntax(subject) {\n  return subject.replace(/-/g, \".\");\n}\nfunction camelCase2(subject) {\n  return subject.toLowerCase().replace(/-(\\w)/g, (match, char) => char.toUpperCase());\n}\nfunction isNumeric(subject) {\n  return !Array.isArray(subject) && !isNaN(subject);\n}\nfunction kebabCase2(subject) {\n  if ([\" \", \"_\"].includes(\n    subject\n  ))\n    return subject;\n  return subject.replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/[_\\s]/, \"-\").toLowerCase();\n}\nfunction isKeyEvent(event) {\n  return [\"keydown\", \"keyup\"].includes(event);\n}\nfunction isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers) {\n  let keyModifiers = modifiers.filter((i) => {\n    return ![\"window\", \"document\", \"prevent\", \"stop\", \"once\", \"capture\"].includes(i);\n  });\n  if (keyModifiers.includes(\"debounce\")) {\n    let debounceIndex = keyModifiers.indexOf(\"debounce\");\n    keyModifiers.splice(debounceIndex, isNumeric((keyModifiers[debounceIndex + 1] || \"invalid-wait\").split(\"ms\")[0]) ? 2 : 1);\n  }\n  if (keyModifiers.includes(\"throttle\")) {\n    let debounceIndex = keyModifiers.indexOf(\"throttle\");\n    keyModifiers.splice(debounceIndex, isNumeric((keyModifiers[debounceIndex + 1] || \"invalid-wait\").split(\"ms\")[0]) ? 2 : 1);\n  }\n  if (keyModifiers.length === 0)\n    return false;\n  if (keyModifiers.length === 1 && keyToModifiers(e.key).includes(keyModifiers[0]))\n    return false;\n  const systemKeyModifiers = [\"ctrl\", \"shift\", \"alt\", \"meta\", \"cmd\", \"super\"];\n  const selectedSystemKeyModifiers = systemKeyModifiers.filter((modifier) => keyModifiers.includes(modifier));\n  keyModifiers = keyModifiers.filter((i) => !selectedSystemKeyModifiers.includes(i));\n  if (selectedSystemKeyModifiers.length > 0) {\n    const activelyPressedKeyModifiers = selectedSystemKeyModifiers.filter((modifier) => {\n      if (modifier === \"cmd\" || modifier === \"super\")\n        modifier = \"meta\";\n      return e[`${modifier}Key`];\n    });\n    if (activelyPressedKeyModifiers.length === selectedSystemKeyModifiers.length) {\n      if (keyToModifiers(e.key).includes(keyModifiers[0]))\n        return false;\n    }\n  }\n  return true;\n}\nfunction keyToModifiers(key) {\n  if (!key)\n    return [];\n  key = kebabCase2(key);\n  let modifierToKeyMap = {\n    \"ctrl\": \"control\",\n    \"slash\": \"/\",\n    \"space\": \" \",\n    \"spacebar\": \" \",\n    \"cmd\": \"meta\",\n    \"esc\": \"escape\",\n    \"up\": \"arrow-up\",\n    \"down\": \"arrow-down\",\n    \"left\": \"arrow-left\",\n    \"right\": \"arrow-right\",\n    \"period\": \".\",\n    \"equal\": \"=\",\n    \"minus\": \"-\",\n    \"underscore\": \"_\"\n  };\n  modifierToKeyMap[key] = key;\n  return Object.keys(modifierToKeyMap).map((modifier) => {\n    if (modifierToKeyMap[modifier] === key)\n      return modifier;\n  }).filter((modifier) => modifier);\n}\n\n// packages/alpinejs/src/directives/x-model.js\ndirective(\"model\", (el, { modifiers, expression }, { effect: effect3, cleanup: cleanup2 }) => {\n  let scopeTarget = el;\n  if (modifiers.includes(\"parent\")) {\n    scopeTarget = el.parentNode;\n  }\n  let evaluateGet = evaluateLater(scopeTarget, expression);\n  let evaluateSet;\n  if (typeof expression === \"string\") {\n    evaluateSet = evaluateLater(scopeTarget, `${expression} = __placeholder`);\n  } else if (typeof expression === \"function\" && typeof expression() === \"string\") {\n    evaluateSet = evaluateLater(scopeTarget, `${expression()} = __placeholder`);\n  } else {\n    evaluateSet = () => {\n    };\n  }\n  let getValue = () => {\n    let result;\n    evaluateGet((value) => result = value);\n    return isGetterSetter(result) ? result.get() : result;\n  };\n  let setValue = (value) => {\n    let result;\n    evaluateGet((value2) => result = value2);\n    if (isGetterSetter(result)) {\n      result.set(value);\n    } else {\n      evaluateSet(() => {\n      }, {\n        scope: { \"__placeholder\": value }\n      });\n    }\n  };\n  if (typeof expression === \"string\" && el.type === \"radio\") {\n    mutateDom(() => {\n      if (!el.hasAttribute(\"name\"))\n        el.setAttribute(\"name\", expression);\n    });\n  }\n  var event = el.tagName.toLowerCase() === \"select\" || [\"checkbox\", \"radio\"].includes(el.type) || modifiers.includes(\"lazy\") ? \"change\" : \"input\";\n  let removeListener = isCloning ? () => {\n  } : on(el, event, modifiers, (e) => {\n    setValue(getInputValue(el, modifiers, e, getValue()));\n  });\n  if (modifiers.includes(\"fill\")) {\n    if ([void 0, null, \"\"].includes(getValue()) || el.type === \"checkbox\" && Array.isArray(getValue())) {\n      el.dispatchEvent(new Event(event, {}));\n    }\n  }\n  if (!el._x_removeModelListeners)\n    el._x_removeModelListeners = {};\n  el._x_removeModelListeners[\"default\"] = removeListener;\n  cleanup2(() => el._x_removeModelListeners[\"default\"]());\n  if (el.form) {\n    let removeResetListener = on(el.form, \"reset\", [], (e) => {\n      nextTick(() => el._x_model && el._x_model.set(el.value));\n    });\n    cleanup2(() => removeResetListener());\n  }\n  el._x_model = {\n    get() {\n      return getValue();\n    },\n    set(value) {\n      setValue(value);\n    }\n  };\n  el._x_forceModelUpdate = (value) => {\n    if (value === void 0 && typeof expression === \"string\" && expression.match(/\\./))\n      value = \"\";\n    window.fromModel = true;\n    mutateDom(() => bind(el, \"value\", value));\n    delete window.fromModel;\n  };\n  effect3(() => {\n    let value = getValue();\n    if (modifiers.includes(\"unintrusive\") && document.activeElement.isSameNode(el))\n      return;\n    el._x_forceModelUpdate(value);\n  });\n});\nfunction getInputValue(el, modifiers, event, currentValue) {\n  return mutateDom(() => {\n    if (event instanceof CustomEvent && event.detail !== void 0)\n      return event.detail !== null && event.detail !== void 0 ? event.detail : event.target.value;\n    else if (el.type === \"checkbox\") {\n      if (Array.isArray(currentValue)) {\n        let newValue = null;\n        if (modifiers.includes(\"number\")) {\n          newValue = safeParseNumber(event.target.value);\n        } else if (modifiers.includes(\"boolean\")) {\n          newValue = safeParseBoolean(event.target.value);\n        } else {\n          newValue = event.target.value;\n        }\n        return event.target.checked ? currentValue.concat([newValue]) : currentValue.filter((el2) => !checkedAttrLooseCompare2(el2, newValue));\n      } else {\n        return event.target.checked;\n      }\n    } else if (el.tagName.toLowerCase() === \"select\" && el.multiple) {\n      if (modifiers.includes(\"number\")) {\n        return Array.from(event.target.selectedOptions).map((option) => {\n          let rawValue = option.value || option.text;\n          return safeParseNumber(rawValue);\n        });\n      } else if (modifiers.includes(\"boolean\")) {\n        return Array.from(event.target.selectedOptions).map((option) => {\n          let rawValue = option.value || option.text;\n          return safeParseBoolean(rawValue);\n        });\n      }\n      return Array.from(event.target.selectedOptions).map((option) => {\n        return option.value || option.text;\n      });\n    } else {\n      if (modifiers.includes(\"number\")) {\n        return safeParseNumber(event.target.value);\n      } else if (modifiers.includes(\"boolean\")) {\n        return safeParseBoolean(event.target.value);\n      }\n      return modifiers.includes(\"trim\") ? event.target.value.trim() : event.target.value;\n    }\n  });\n}\nfunction safeParseNumber(rawValue) {\n  let number = rawValue ? parseFloat(rawValue) : null;\n  return isNumeric2(number) ? number : rawValue;\n}\nfunction checkedAttrLooseCompare2(valueA, valueB) {\n  return valueA == valueB;\n}\nfunction isNumeric2(subject) {\n  return !Array.isArray(subject) && !isNaN(subject);\n}\nfunction isGetterSetter(value) {\n  return value !== null && typeof value === \"object\" && typeof value.get === \"function\" && typeof value.set === \"function\";\n}\n\n// packages/alpinejs/src/directives/x-cloak.js\ndirective(\"cloak\", (el) => queueMicrotask(() => mutateDom(() => el.removeAttribute(prefix(\"cloak\")))));\n\n// packages/alpinejs/src/directives/x-init.js\naddInitSelector(() => `[${prefix(\"init\")}]`);\ndirective(\"init\", skipDuringClone((el, { expression }, { evaluate: evaluate2 }) => {\n  if (typeof expression === \"string\") {\n    return !!expression.trim() && evaluate2(expression, {}, false);\n  }\n  return evaluate2(expression, {}, false);\n}));\n\n// packages/alpinejs/src/directives/x-text.js\ndirective(\"text\", (el, { expression }, { effect: effect3, evaluateLater: evaluateLater2 }) => {\n  let evaluate2 = evaluateLater2(expression);\n  effect3(() => {\n    evaluate2((value) => {\n      mutateDom(() => {\n        el.textContent = value;\n      });\n    });\n  });\n});\n\n// packages/alpinejs/src/directives/x-html.js\ndirective(\"html\", (el, { expression }, { effect: effect3, evaluateLater: evaluateLater2 }) => {\n  let evaluate2 = evaluateLater2(expression);\n  effect3(() => {\n    evaluate2((value) => {\n      mutateDom(() => {\n        el.innerHTML = value;\n        el._x_ignoreSelf = true;\n        initTree(el);\n        delete el._x_ignoreSelf;\n      });\n    });\n  });\n});\n\n// packages/alpinejs/src/directives/x-bind.js\nmapAttributes(startingWith(\":\", into(prefix(\"bind:\"))));\nvar handler2 = (el, { value, modifiers, expression, original }, { effect: effect3 }) => {\n  if (!value) {\n    let bindingProviders = {};\n    injectBindingProviders(bindingProviders);\n    let getBindings = evaluateLater(el, expression);\n    getBindings((bindings) => {\n      applyBindingsObject(el, bindings, original);\n    }, { scope: bindingProviders });\n    return;\n  }\n  if (value === \"key\")\n    return storeKeyForXFor(el, expression);\n  if (el._x_inlineBindings && el._x_inlineBindings[value] && el._x_inlineBindings[value].extract) {\n    return;\n  }\n  let evaluate2 = evaluateLater(el, expression);\n  effect3(() => evaluate2((result) => {\n    if (result === void 0 && typeof expression === \"string\" && expression.match(/\\./)) {\n      result = \"\";\n    }\n    mutateDom(() => bind(el, value, result, modifiers));\n  }));\n};\nhandler2.inline = (el, { value, modifiers, expression }) => {\n  if (!value)\n    return;\n  if (!el._x_inlineBindings)\n    el._x_inlineBindings = {};\n  el._x_inlineBindings[value] = { expression, extract: false };\n};\ndirective(\"bind\", handler2);\nfunction storeKeyForXFor(el, expression) {\n  el._x_keyExpression = expression;\n}\n\n// packages/alpinejs/src/directives/x-data.js\naddRootSelector(() => `[${prefix(\"data\")}]`);\ndirective(\"data\", (el, { expression }, { cleanup: cleanup2 }) => {\n  if (shouldSkipRegisteringDataDuringClone(el))\n    return;\n  expression = expression === \"\" ? \"{}\" : expression;\n  let magicContext = {};\n  injectMagics(magicContext, el);\n  let dataProviderContext = {};\n  injectDataProviders(dataProviderContext, magicContext);\n  let data2 = evaluate(el, expression, { scope: dataProviderContext });\n  if (data2 === void 0 || data2 === true)\n    data2 = {};\n  injectMagics(data2, el);\n  let reactiveData = reactive(data2);\n  initInterceptors2(reactiveData);\n  let undo = addScopeToNode(el, reactiveData);\n  reactiveData[\"init\"] && evaluate(el, reactiveData[\"init\"]);\n  cleanup2(() => {\n    reactiveData[\"destroy\"] && evaluate(el, reactiveData[\"destroy\"]);\n    undo();\n  });\n});\ninterceptClone((from, to) => {\n  if (from._x_dataStack) {\n    to._x_dataStack = from._x_dataStack;\n    to.setAttribute(\"data-has-alpine-state\", true);\n  }\n});\nfunction shouldSkipRegisteringDataDuringClone(el) {\n  if (!isCloning)\n    return false;\n  if (isCloningLegacy)\n    return true;\n  return el.hasAttribute(\"data-has-alpine-state\");\n}\n\n// packages/alpinejs/src/directives/x-show.js\ndirective(\"show\", (el, { modifiers, expression }, { effect: effect3 }) => {\n  let evaluate2 = evaluateLater(el, expression);\n  if (!el._x_doHide)\n    el._x_doHide = () => {\n      mutateDom(() => {\n        el.style.setProperty(\"display\", \"none\", modifiers.includes(\"important\") ? \"important\" : void 0);\n      });\n    };\n  if (!el._x_doShow)\n    el._x_doShow = () => {\n      mutateDom(() => {\n        if (el.style.length === 1 && el.style.display === \"none\") {\n          el.removeAttribute(\"style\");\n        } else {\n          el.style.removeProperty(\"display\");\n        }\n      });\n    };\n  let hide = () => {\n    el._x_doHide();\n    el._x_isShown = false;\n  };\n  let show = () => {\n    el._x_doShow();\n    el._x_isShown = true;\n  };\n  let clickAwayCompatibleShow = () => setTimeout(show);\n  let toggle = once(\n    (value) => value ? show() : hide(),\n    (value) => {\n      if (typeof el._x_toggleAndCascadeWithTransitions === \"function\") {\n        el._x_toggleAndCascadeWithTransitions(el, value, show, hide);\n      } else {\n        value ? clickAwayCompatibleShow() : hide();\n      }\n    }\n  );\n  let oldValue;\n  let firstTime = true;\n  effect3(() => evaluate2((value) => {\n    if (!firstTime && value === oldValue)\n      return;\n    if (modifiers.includes(\"immediate\"))\n      value ? clickAwayCompatibleShow() : hide();\n    toggle(value);\n    oldValue = value;\n    firstTime = false;\n  }));\n});\n\n// packages/alpinejs/src/directives/x-for.js\ndirective(\"for\", (el, { expression }, { effect: effect3, cleanup: cleanup2 }) => {\n  let iteratorNames = parseForExpression(expression);\n  let evaluateItems = evaluateLater(el, iteratorNames.items);\n  let evaluateKey = evaluateLater(\n    el,\n    // the x-bind:key expression is stored for our use instead of evaluated.\n    el._x_keyExpression || \"index\"\n  );\n  el._x_prevKeys = [];\n  el._x_lookup = {};\n  effect3(() => loop(el, iteratorNames, evaluateItems, evaluateKey));\n  cleanup2(() => {\n    Object.values(el._x_lookup).forEach((el2) => el2.remove());\n    delete el._x_prevKeys;\n    delete el._x_lookup;\n  });\n});\nfunction loop(el, iteratorNames, evaluateItems, evaluateKey) {\n  let isObject2 = (i) => typeof i === \"object\" && !Array.isArray(i);\n  let templateEl = el;\n  evaluateItems((items) => {\n    if (isNumeric3(items) && items >= 0) {\n      items = Array.from(Array(items).keys(), (i) => i + 1);\n    }\n    if (items === void 0)\n      items = [];\n    let lookup = el._x_lookup;\n    let prevKeys = el._x_prevKeys;\n    let scopes = [];\n    let keys = [];\n    if (isObject2(items)) {\n      items = Object.entries(items).map(([key, value]) => {\n        let scope2 = getIterationScopeVariables(iteratorNames, value, key, items);\n        evaluateKey((value2) => {\n          if (keys.includes(value2))\n            warn(\"Duplicate key on x-for\", el);\n          keys.push(value2);\n        }, { scope: { index: key, ...scope2 } });\n        scopes.push(scope2);\n      });\n    } else {\n      for (let i = 0; i < items.length; i++) {\n        let scope2 = getIterationScopeVariables(iteratorNames, items[i], i, items);\n        evaluateKey((value) => {\n          if (keys.includes(value))\n            warn(\"Duplicate key on x-for\", el);\n          keys.push(value);\n        }, { scope: { index: i, ...scope2 } });\n        scopes.push(scope2);\n      }\n    }\n    let adds = [];\n    let moves = [];\n    let removes = [];\n    let sames = [];\n    for (let i = 0; i < prevKeys.length; i++) {\n      let key = prevKeys[i];\n      if (keys.indexOf(key) === -1)\n        removes.push(key);\n    }\n    prevKeys = prevKeys.filter((key) => !removes.includes(key));\n    let lastKey = \"template\";\n    for (let i = 0; i < keys.length; i++) {\n      let key = keys[i];\n      let prevIndex = prevKeys.indexOf(key);\n      if (prevIndex === -1) {\n        prevKeys.splice(i, 0, key);\n        adds.push([lastKey, i]);\n      } else if (prevIndex !== i) {\n        let keyInSpot = prevKeys.splice(i, 1)[0];\n        let keyForSpot = prevKeys.splice(prevIndex - 1, 1)[0];\n        prevKeys.splice(i, 0, keyForSpot);\n        prevKeys.splice(prevIndex, 0, keyInSpot);\n        moves.push([keyInSpot, keyForSpot]);\n      } else {\n        sames.push(key);\n      }\n      lastKey = key;\n    }\n    for (let i = 0; i < removes.length; i++) {\n      let key = removes[i];\n      if (!!lookup[key]._x_effects) {\n        lookup[key]._x_effects.forEach(dequeueJob);\n      }\n      lookup[key].remove();\n      lookup[key] = null;\n      delete lookup[key];\n    }\n    for (let i = 0; i < moves.length; i++) {\n      let [keyInSpot, keyForSpot] = moves[i];\n      let elInSpot = lookup[keyInSpot];\n      let elForSpot = lookup[keyForSpot];\n      let marker = document.createElement(\"div\");\n      mutateDom(() => {\n        if (!elForSpot)\n          warn(`x-for \":key\" is undefined or invalid`, templateEl, keyForSpot, lookup);\n        elForSpot.after(marker);\n        elInSpot.after(elForSpot);\n        elForSpot._x_currentIfEl && elForSpot.after(elForSpot._x_currentIfEl);\n        marker.before(elInSpot);\n        elInSpot._x_currentIfEl && elInSpot.after(elInSpot._x_currentIfEl);\n        marker.remove();\n      });\n      elForSpot._x_refreshXForScope(scopes[keys.indexOf(keyForSpot)]);\n    }\n    for (let i = 0; i < adds.length; i++) {\n      let [lastKey2, index] = adds[i];\n      let lastEl = lastKey2 === \"template\" ? templateEl : lookup[lastKey2];\n      if (lastEl._x_currentIfEl)\n        lastEl = lastEl._x_currentIfEl;\n      let scope2 = scopes[index];\n      let key = keys[index];\n      let clone2 = document.importNode(templateEl.content, true).firstElementChild;\n      let reactiveScope = reactive(scope2);\n      addScopeToNode(clone2, reactiveScope, templateEl);\n      clone2._x_refreshXForScope = (newScope) => {\n        Object.entries(newScope).forEach(([key2, value]) => {\n          reactiveScope[key2] = value;\n        });\n      };\n      mutateDom(() => {\n        lastEl.after(clone2);\n        skipDuringClone(() => initTree(clone2))();\n      });\n      if (typeof key === \"object\") {\n        warn(\"x-for key cannot be an object, it must be a string or an integer\", templateEl);\n      }\n      lookup[key] = clone2;\n    }\n    for (let i = 0; i < sames.length; i++) {\n      lookup[sames[i]]._x_refreshXForScope(scopes[keys.indexOf(sames[i])]);\n    }\n    templateEl._x_prevKeys = keys;\n  });\n}\nfunction parseForExpression(expression) {\n  let forIteratorRE = /,([^,\\}\\]]*)(?:,([^,\\}\\]]*))?$/;\n  let stripParensRE = /^\\s*\\(|\\)\\s*$/g;\n  let forAliasRE = /([\\s\\S]*?)\\s+(?:in|of)\\s+([\\s\\S]*)/;\n  let inMatch = expression.match(forAliasRE);\n  if (!inMatch)\n    return;\n  let res = {};\n  res.items = inMatch[2].trim();\n  let item = inMatch[1].replace(stripParensRE, \"\").trim();\n  let iteratorMatch = item.match(forIteratorRE);\n  if (iteratorMatch) {\n    res.item = item.replace(forIteratorRE, \"\").trim();\n    res.index = iteratorMatch[1].trim();\n    if (iteratorMatch[2]) {\n      res.collection = iteratorMatch[2].trim();\n    }\n  } else {\n    res.item = item;\n  }\n  return res;\n}\nfunction getIterationScopeVariables(iteratorNames, item, index, items) {\n  let scopeVariables = {};\n  if (/^\\[.*\\]$/.test(iteratorNames.item) && Array.isArray(item)) {\n    let names = iteratorNames.item.replace(\"[\", \"\").replace(\"]\", \"\").split(\",\").map((i) => i.trim());\n    names.forEach((name, i) => {\n      scopeVariables[name] = item[i];\n    });\n  } else if (/^\\{.*\\}$/.test(iteratorNames.item) && !Array.isArray(item) && typeof item === \"object\") {\n    let names = iteratorNames.item.replace(\"{\", \"\").replace(\"}\", \"\").split(\",\").map((i) => i.trim());\n    names.forEach((name) => {\n      scopeVariables[name] = item[name];\n    });\n  } else {\n    scopeVariables[iteratorNames.item] = item;\n  }\n  if (iteratorNames.index)\n    scopeVariables[iteratorNames.index] = index;\n  if (iteratorNames.collection)\n    scopeVariables[iteratorNames.collection] = items;\n  return scopeVariables;\n}\nfunction isNumeric3(subject) {\n  return !Array.isArray(subject) && !isNaN(subject);\n}\n\n// packages/alpinejs/src/directives/x-ref.js\nfunction handler3() {\n}\nhandler3.inline = (el, { expression }, { cleanup: cleanup2 }) => {\n  let root = closestRoot(el);\n  if (!root._x_refs)\n    root._x_refs = {};\n  root._x_refs[expression] = el;\n  cleanup2(() => delete root._x_refs[expression]);\n};\ndirective(\"ref\", handler3);\n\n// packages/alpinejs/src/directives/x-if.js\ndirective(\"if\", (el, { expression }, { effect: effect3, cleanup: cleanup2 }) => {\n  if (el.tagName.toLowerCase() !== \"template\")\n    warn(\"x-if can only be used on a <template> tag\", el);\n  let evaluate2 = evaluateLater(el, expression);\n  let show = () => {\n    if (el._x_currentIfEl)\n      return el._x_currentIfEl;\n    let clone2 = el.content.cloneNode(true).firstElementChild;\n    addScopeToNode(clone2, {}, el);\n    mutateDom(() => {\n      el.after(clone2);\n      skipDuringClone(() => initTree(clone2))();\n    });\n    el._x_currentIfEl = clone2;\n    el._x_undoIf = () => {\n      walk(clone2, (node) => {\n        if (!!node._x_effects) {\n          node._x_effects.forEach(dequeueJob);\n        }\n      });\n      clone2.remove();\n      delete el._x_currentIfEl;\n    };\n    return clone2;\n  };\n  let hide = () => {\n    if (!el._x_undoIf)\n      return;\n    el._x_undoIf();\n    delete el._x_undoIf;\n  };\n  effect3(() => evaluate2((value) => {\n    value ? show() : hide();\n  }));\n  cleanup2(() => el._x_undoIf && el._x_undoIf());\n});\n\n// packages/alpinejs/src/directives/x-id.js\ndirective(\"id\", (el, { expression }, { evaluate: evaluate2 }) => {\n  let names = evaluate2(expression);\n  names.forEach((name) => setIdRoot(el, name));\n});\ninterceptClone((from, to) => {\n  if (from._x_ids) {\n    to._x_ids = from._x_ids;\n  }\n});\n\n// packages/alpinejs/src/directives/x-on.js\nmapAttributes(startingWith(\"@\", into(prefix(\"on:\"))));\ndirective(\"on\", skipDuringClone((el, { value, modifiers, expression }, { cleanup: cleanup2 }) => {\n  let evaluate2 = expression ? evaluateLater(el, expression) : () => {\n  };\n  if (el.tagName.toLowerCase() === \"template\") {\n    if (!el._x_forwardEvents)\n      el._x_forwardEvents = [];\n    if (!el._x_forwardEvents.includes(value))\n      el._x_forwardEvents.push(value);\n  }\n  let removeListener = on(el, value, modifiers, (e) => {\n    evaluate2(() => {\n    }, { scope: { \"$event\": e }, params: [e] });\n  });\n  cleanup2(() => removeListener());\n}));\n\n// packages/alpinejs/src/directives/index.js\nwarnMissingPluginDirective(\"Collapse\", \"collapse\", \"collapse\");\nwarnMissingPluginDirective(\"Intersect\", \"intersect\", \"intersect\");\nwarnMissingPluginDirective(\"Focus\", \"trap\", \"focus\");\nwarnMissingPluginDirective(\"Mask\", \"mask\", \"mask\");\nfunction warnMissingPluginDirective(name, directiveName, slug) {\n  directive(directiveName, (el) => warn(`You can't use [x-${directiveName}] without first installing the \"${name}\" plugin here: https://alpinejs.dev/plugins/${slug}`, el));\n}\n\n// packages/alpinejs/src/index.js\nalpine_default.setEvaluator(normalEvaluator);\nalpine_default.setReactivityEngine({ reactive: reactive2, effect: effect2, release: stop, raw: toRaw });\nvar src_default = alpine_default;\n\n// packages/alpinejs/builds/module.js\nvar module_default = src_default;\nexport {\n  src_default as Alpine,\n  module_default as default\n};\n", "import Alpine from 'alpinejs'\n\nexport function generateEntangleFunction(component, cleanup) {\n    if (! cleanup) cleanup = () => {}\n\n    return (name, live = false) => {\n        let isLive = live\n        let livewireProperty = name\n        let livewireComponent = component.$wire\n        let livewirePropertyValue = livewireComponent.get(livewireProperty)\n\n        let interceptor = Alpine.interceptor((initialValue, getter, setter, path, key) => {\n            // Check to see if the Livewire property exists and if not log a console error\n            // and return so everything else keeps running.\n            if (typeof livewirePropertyValue === 'undefined') {\n                console.error(`Livewire Entangle Error: Livewire property ['${livewireProperty}'] cannot be found on component: ['${component.name}']`)\n                return\n            }\n\n                let release = Alpine.entangle({\n                    // Outer scope...\n                    get() {\n                        return livewireComponent.get(name)\n                    },\n                    set(value) {\n                        livewireComponent.set(name, value, isLive)\n                    }\n                }, {\n                    // Inner scope...\n                    get() {\n                        return getter()\n                    },\n                    set(value) {\n                        setter(value)\n                    }\n                })\n\n                cleanup(() => release())\n\n            return cloneIfObject(livewireComponent.get(name))\n        }, obj => {\n            Object.defineProperty(obj, 'live', {\n                get() {\n                    isLive = true\n\n                    return obj\n                }\n            })\n        })\n\n        return interceptor(livewirePropertyValue)\n    }\n}\n\nfunction cloneIfObject(value) {\n    return typeof value === 'object'\n        ? JSON.parse(JSON.stringify(value))\n        : value\n}\n", "import { isFunction } from '@/utils'\n\n/**\n * Our internal event listener bus...\n */\nlet listeners = []\n\n/**\n * Register a callback to run when an event is triggered...\n */\nexport function on(name, callback) {\n    if (! listeners[name]) listeners[name] = []\n\n    listeners[name].push(callback)\n\n    // Return an \"off\" callback to remove the listener...\n    return () => {\n        listeners[name] = listeners[name].filter(i => i !== callback)\n    }\n}\n\n/**\n * In addition to triggering an event, this method allows you to\n * defer running callbacks returned from listeners and pass a\n * value through each one so they can act like middleware.\n *\n * An example of using this combination to the fullest:\n *\n * // First let's look at the triggering phase:\n * let finish = trigger([event name], ...[event params])\n *\n * return finish([pass-through value])\n *\n * // Now, let's look at the \"listening\" phase:\n * on([event name], (...[event params]) => {\n *     // The contents of this callback will be run immediately on trigger.\n *\n *     return ([pass-through value]) => {\n *         // This callback will be run when \"finish()\" is called.\n *\n *         // The [pass-through value] can be mutated and must\n *         // be returned for the next callback to process.\n *         return [pass-through value]\n *     }\n * })\n */\nexport function trigger(name, ...params) {\n    let callbacks = listeners[name] || []\n\n    let finishers = []\n\n    for (let i = 0; i < callbacks.length; i++) {\n        let finisher = callbacks[i](...params)\n\n        if (isFunction(finisher)) finishers.push(finisher)\n    }\n\n    return (result) => {\n       return runFinishers(finishers, result)\n    }\n}\n\nexport async function triggerAsync(name, ...params) {\n    let callbacks = listeners[name] || []\n\n    let finishers = []\n\n    for (let i = 0; i < callbacks.length; i++) {\n        let finisher = await callbacks[i](...params)\n\n        if (isFunction(finisher)) finishers.push(finisher)\n    }\n\n    return (result) => {\n       return runFinishers(finishers, result)\n    }\n}\n\nexport function runFinishers(finishers, result)\n{\n    let latest = result\n\n    for (let i = 0; i < finishers.length; i++) {\n        let iResult = finishers[i](latest)\n\n        if (iResult !== undefined) {\n            latest = iResult\n        }\n    }\n\n    return latest\n}\n", "\n// This code and concept is all Jonathan Reinink - thanks main!\nexport function showHtmlModal(html) {\n    let page = document.createElement('html')\n    page.innerHTML = html\n    page.querySelectorAll('a').forEach(a =>\n        a.setAttribute('target', '_top')\n    )\n\n    let modal = document.getElementById('livewire-error')\n\n    if (typeof modal != 'undefined' && modal != null) {\n        // Modal already exists.\n        modal.innerHTML = ''\n    } else {\n        modal = document.createElement('div')\n        modal.id = 'livewire-error'\n        modal.style.position = 'fixed'\n        modal.style.width = '100vw'\n        modal.style.height = '100vh'\n        modal.style.padding = '50px'\n        modal.style.backgroundColor = 'rgba(0, 0, 0, .6)'\n        modal.style.zIndex = 200000\n    }\n\n    let iframe = document.createElement('iframe')\n    iframe.style.backgroundColor = '#17161A'\n    iframe.style.borderRadius = '5px'\n    iframe.style.width = '100%'\n    iframe.style.height = '100%'\n    modal.appendChild(iframe)\n\n    document.body.prepend(modal)\n    document.body.style.overflow = 'hidden'\n    iframe.contentWindow.document.open()\n    iframe.contentWindow.document.write(page.outerHTML)\n    iframe.contentWindow.document.close()\n\n    // Close on click.\n    modal.addEventListener('click', () => hideHtmlModal(modal))\n\n    // Close on escape key press.\n    modal.setAttribute('tabindex', 0)\n    modal.addEventListener('keydown', e => {\n        if (e.key === 'Escape') hideHtmlModal(modal)\n    })\n    modal.focus()\n}\n\nexport function hideHtmlModal(modal) {\n    modal.outerHTML = ''\n    document.body.style.overflow = 'visible'\n}\n", "import { sendRequest } from \"@/request\"\n\n/**\n * The RequestPool contains a list of commits to be sent to the server...\n */\nexport class RequestPool {\n    constructor() {\n        this.commits = new Set\n    }\n\n    add(commit) {\n        this.commits.add(commit)\n    }\n\n    delete(commit) {\n        this.commits.delete(commit)\n    }\n\n    hasCommitFor(component) {\n        return !! this.findCommitByComponent(component)\n    }\n\n    findCommitByComponent(component) {\n        // Determine if this pool already has a commit for this component...\n        for (let [idx, commit] of this.commits.entries()) {\n            if (commit.component === component) return commit\n        }\n    }\n\n    // Determine if a commit should be added to this pool or isolated into its own...\n    shouldHoldCommit(commit) {\n        return ! commit.isolate\n    }\n\n    empty() {\n        return this.commits.size === 0\n    }\n\n    async send() {\n        this.prepare()\n\n        // Send this pool of commits to the server and let the commits\n        // Manage their own response actions...\n        await sendRequest(this)\n    }\n\n    prepare() {\n        // Give each commit a chance to do any last-minute prep\n        // before being sent to the server.\n        this.commits.forEach(i => i.prepare())\n    }\n\n    payload() {\n        // Extract a request payload from each of the commits in this pool...\n        let commitPayloads = []\n\n        // Collect success and failure callbacks to be used inside aggregated callbacks...\n        let successReceivers = []\n        let failureReceivers = []\n\n        this.commits.forEach(commit => {\n            let [payload, succeed, fail] = commit.toRequestPayload()\n\n            commitPayloads.push(payload)\n            successReceivers.push(succeed)\n            failureReceivers.push(fail)\n        })\n\n        // Aggregate the success and failure callbacks for individual commits\n        // into something that can be called singularly...\n        let succeed = components => successReceivers.forEach(receiver => receiver(components.shift()))\n\n        let fail = () => failureReceivers.forEach(receiver => receiver())\n\n        return [ commitPayloads, succeed, fail ]\n    }\n}\n", "import { diff } from '@/utils'\nimport { on, trigger } from '@/hooks'\n\n/**\n * A commit represents an individual component updating itself server-side...\n */\nexport class Commit {\n    constructor(component) {\n        this.component = component\n        this.isolate = false\n        this.calls = []\n        this.receivers = []\n        this.resolvers = []\n    }\n\n    // Add a new resolver to be resolved when a commit is returned from the server...\n    addResolver(resolver) {\n        this.resolvers.push(resolver)\n    }\n\n    // Add a new action \"call\" to the commit payload...\n    addCall(method, params, receiver) {\n        this.calls.push({\n            path: '', method, params,\n            handleReturn(value) {\n                receiver(value)\n            },\n        })\n    }\n\n    prepare() {\n        trigger('commit.prepare', { component: this.component })\n    }\n\n    // Generate a JSON-friendly server-request payload...\n    toRequestPayload() {\n        // Generate a \"diff\" of the current last known server-side state, and\n        // the new front-end state so that we can update the server atomically...\n        let propertiesDiff = diff(this.component.canonical, this.component.ephemeral)\n\n        let updates = this.component.mergeQueuedUpdates(propertiesDiff)\n\n        let payload = {\n            snapshot: this.component.snapshotEncoded,\n            updates: updates,\n            calls: this.calls.map(i => ({\n                path: i.path,\n                method: i.method,\n                params: i.params,\n            }))\n        }\n\n        // Store success and failure hooks from commit listeners\n        // so they can be aggregated into a singular callback later...\n        let succeedCallbacks = []\n        let failCallbacks = []\n        let respondCallbacks = []\n\n        let succeed = (fwd) => succeedCallbacks.forEach(i => i(fwd))\n        let fail = () => failCallbacks.forEach(i => i())\n        let respond = () => respondCallbacks.forEach(i => i())\n\n        // Allow other areas of the codebase to hook into the lifecycle\n        // of an individual commit...\n        let finishTarget = trigger('commit', {\n            component: this.component,\n            commit: payload,\n            succeed: (callback) => {\n                succeedCallbacks.push(callback)\n            },\n            fail: (callback) => {\n                failCallbacks.push(callback)\n            },\n            respond: (callback) => {\n                respondCallbacks.push(callback)\n            },\n        })\n\n        // Handle the response payload for a commit...\n        let handleResponse = (response) => {\n            let { snapshot, effects } = response\n\n            respond()\n\n            // Take the new snapshot and merge it into the existing one...\n            this.component.mergeNewSnapshot(snapshot, effects, updates)\n\n            // Trigger any side effects from the payload like \"morph\" and \"dispatch event\"...\n            this.component.processEffects(this.component.effects)\n\n            if (effects['returns']) {\n                let returns = effects['returns']\n\n                // Here we'll match up returned values with their method call handlers. We need to build up\n                // two \"stacks\" of the same length and walk through them together to handle them properly...\n                let returnHandlerStack = this.calls.map(({ handleReturn }) => (handleReturn))\n\n                returnHandlerStack.forEach((handleReturn, index) => {\n                    handleReturn(returns[index])\n                })\n            }\n\n            let parsedSnapshot = JSON.parse(snapshot)\n\n            finishTarget({ snapshot: parsedSnapshot, effects })\n\n            this.resolvers.forEach(i => i())\n\n            succeed(response)\n        }\n\n        let handleFailure = () => {\n            respond()\n\n            fail()\n        }\n\n        return [payload, handleResponse, handleFailure]\n    }\n}\n", "import { trigger } from '@/hooks'\nimport { RequestPool } from './pool'\nimport { Commit } from './commit'\n\n/**\n * This bus manages the pooling of multiple commits and sending\n * those pools of commits to the server...\n */\nexport class CommitBus {\n    constructor() {\n        // A list of loose, un-pooled, commits ready to be pooled and sent to the server...\n        this.commits = new Set\n\n        // A list of commit pools currently out to the server...\n        this.pools = new Set\n    }\n\n    add(component) {\n        // If this component already has a commit, leave it, otherwise,\n        // create a new commit and add it to the list...\n        let commit = this.findCommitOr(component, () => {\n            let newCommit = new Commit(component)\n\n            this.commits.add(newCommit)\n\n            return newCommit\n        })\n\n        // Buffer the sending of a pool for 5ms to account for UI interactions\n        // that will trigger multiple events within a few milliseconds of each other.\n        // For example, clicking on a button that both unfocuses a field and registers a mousedown...\n        bufferPoolingForFiveMs(commit, () => {\n            // If this commit is already in a pool, leave it be...\n            let pool = this.findPoolWithComponent(commit.component)\n\n            if (! pool) {\n                // If it's not, create a new pool or add it to an existing one and trigger a network request...\n                this.createAndSendNewPool()\n            }\n        })\n\n        return commit\n    }\n\n    findCommitOr(component, callback) {\n        for (let [idx, commit] of this.commits.entries()) {\n            if (commit.component === component) {\n                return commit\n            }\n        }\n\n        return callback()\n    }\n\n    findPoolWithComponent(component) {\n        for (let [idx, pool] of this.pools.entries()) {\n            if (pool.hasCommitFor(component)) return pool\n        }\n    }\n\n    createAndSendNewPool() {\n        // Allow features like \"reactive properties\" to initiate associated\n        // commits before those commits are pooled for a network request...\n        trigger('commit.pooling', { commits: this.commits })\n\n        // Split commits up across one or multiple pools to be sent as seperate network requests...\n        let pools = this.corraleCommitsIntoPools()\n\n        // Clear all commits in the queue now that they're in pools...\n        this.commits.clear()\n\n        trigger('commit.pooled', { pools })\n\n        // Go through each pool and...\n        pools.forEach(pool => {\n            // Ignore empty pools (if other parts of the system have moved commits around different pools)...\n            if (pool.empty()) return\n\n            // Add it to the list of pending pools...\n            this.pools.add(pool)\n\n            // Send it's payload along to the server...\n            pool.send().then(() => {\n                // When it comes back, remove it from the list...\n                this.pools.delete(pool)\n\n                // Trigger another pooling phase in case commits have\n                // been added while the current request was out...\n                this.sendAnyQueuedCommits()\n            })\n        })\n    }\n\n    corraleCommitsIntoPools() {\n        let pools = new Set\n\n        // Go through each commit and assess wether it should be bundled\n        // with other commits or sperated into it's own pool (network request)...\n        for (let [idx, commit] of this.commits.entries()) {\n            let hasFoundPool = false\n\n            // If an existing pool wants to claim a commit, let it...\n            pools.forEach(pool => {\n                if (pool.shouldHoldCommit(commit)) {\n                    pool.add(commit)\n\n                    hasFoundPool = true\n                }\n            })\n\n            // Otherwise, create a new pool and seed it with this commit...\n            if (! hasFoundPool) {\n                let newPool = new RequestPool\n\n                newPool.add(commit)\n\n                pools.add(newPool)\n            }\n        }\n\n        return pools\n    }\n\n    sendAnyQueuedCommits() {\n        if (this.commits.size > 0) {\n            this.createAndSendNewPool()\n        }\n    }\n}\n\nlet buffersByCommit = new WeakMap\n\nfunction bufferPoolingForFiveMs(commit, callback) {\n    if (buffersByCommit.has(commit)) return\n\n    buffersByCommit.set(commit, setTimeout(() => {\n        callback()\n\n        buffersByCommit.delete(commit)\n    }, 5))\n}\n", "import { getCsrfToken, contentIsFromDump, splitDumpFromContent, getUpdateUri } from '@/utils'\nimport { trigger, triggerAsync } from '@/hooks'\nimport { showHtmlModal } from './modal'\nimport { CommitBus } from './bus'\n\n/**\n * This is the bus that manages pooling and sending\n * commits to the server as network requests...\n */\nlet commitBus = new CommitBus\n\n/**\n * Create a commit and trigger a network request...\n */\nexport async function requestCommit(component) {\n    let commit = commitBus.add(component)\n\n    let promise = new Promise((resolve) => {\n        commit.addResolver(resolve)\n    })\n\n    promise.commit = commit\n\n    return promise\n}\n\n/**\n * Create a commit with an \"action\" call and trigger a network request...\n */\nexport async function requestCall(component, method, params) {\n    let commit = commitBus.add(component)\n\n    let promise = new Promise((resolve) => {\n        commit.addCall(method, params, value => resolve(value))\n    })\n\n    promise.commit = commit\n\n    return promise\n}\n\n/**\n * Send a pool of commits to the server over HTTP...\n */\nexport async function sendRequest(pool) {\n    let [payload, handleSuccess, handleFailure] = pool.payload()\n\n    let options = {\n        method: 'POST',\n        body: JSON.stringify({\n            _token: getCsrfToken(),\n            components: payload,\n        }),\n        headers: {\n            'Content-type': 'application/json',\n            'X-Livewire': '',\n        },\n    }\n\n    let succeedCallbacks = []\n    let failCallbacks = []\n    let respondCallbacks = []\n\n    let succeed = (fwd) => succeedCallbacks.forEach(i => i(fwd))\n    let fail = (fwd) => failCallbacks.forEach(i => i(fwd))\n    let respond = (fwd) => respondCallbacks.forEach(i => i(fwd))\n\n    let finishProfile = trigger('request.profile', options)\n\n    let updateUri = getUpdateUri()\n\n    trigger('request', {\n        url: updateUri,\n        options,\n        payload: options.body,\n        respond: i => respondCallbacks.push(i),\n        succeed: i => succeedCallbacks.push(i),\n        fail: i => failCallbacks.push(i),\n    })\n\n    let response\n\n    try {\n        response = await fetch(updateUri, options)\n    } catch (e) {\n        // If something went wrong with the fetch (particularly\n        // this would happen if the connection went offline)\n        // fail with a 503 and allow Livewire to clean up\n\n        finishProfile({ content: '{}', failed: true })\n\n        handleFailure()\n\n        fail({\n            status: 503,\n            content: null,\n            preventDefault: () => {},\n        })\n\n        return\n    }\n\n    let mutableObject = {\n        status: response.status,\n        response,\n    }\n\n    respond(mutableObject)\n\n    response = mutableObject.response\n\n    let content = await response.text()\n\n    // Handle error response...\n    if (! response.ok) {\n        finishProfile({ content: '{}', failed: true })\n\n        let preventDefault = false\n\n        handleFailure()\n\n        fail({\n            status: response.status,\n            content,\n            preventDefault: () => preventDefault = true,\n        })\n\n        if (preventDefault) return\n\n        if (response.status === 419) {\n            handlePageExpiry()\n        }\n\n        return showFailureModal(content)\n    }\n\n    /**\n     * Sometimes a redirect happens on the backend outside of Livewire's control,\n     * for example to a login page from a middleware, so we will just redirect\n     * to that page.\n     */\n    if (response.redirected) {\n        window.location.href = response.url\n    }\n\n    /**\n     * Sometimes a response will be prepended with html to render a dump, so we\n     * will seperate the dump html from Livewire's JSON response content and\n     * render the dump in a modal and allow Livewire to continue with the\n     * request.\n     */\n    if (contentIsFromDump(content)) {\n        let dump\n        [dump, content] = splitDumpFromContent(content)\n\n        showHtmlModal(dump)\n\n        finishProfile({ content: '{}', failed: true })\n    } else {\n        finishProfile({ content, failed: false })\n    }\n\n    let { components, assets } = JSON.parse(content)\n\n    await triggerAsync('payload.intercept', { components, assets })\n\n    await handleSuccess(components)\n\n    succeed({ status: response.status, json: JSON.parse(content) })\n}\n\nfunction handlePageExpiry() {\n    confirm(\n        'This page has expired.\\nWould you like to refresh the page?'\n    ) && window.location.reload()\n}\n\nfunction showFailureModal(content) {\n    let html = content\n\n    showHtmlModal(html)\n}\n", "import { cancelUpload, removeUpload, upload, uploadMultiple } from './features/supportFileUploads'\nimport { dispatch, dispatchSelf, dispatchTo, listen } from '@/events'\nimport { generateEntangleFunction } from '@/features/supportEntangle'\nimport { closestComponent } from '@/store'\nimport { requestCommit, requestCall } from '@/request'\nimport { dataGet, dataSet } from '@/utils'\nimport Alpine from 'alpinejs'\n\nlet properties = {}\nlet fallback\n\nfunction wireProperty(name, callback, component = null) {\n    properties[name] = callback\n}\n\nfunction wireFallback(callback) {\n    fallback = callback\n}\n\n// For V2 backwards compatibility...\n// And I actually like both depending on the scenario...\nlet aliases = {\n    'on': '$on',\n    'el': '$el',\n    'id': '$id',\n    'get': '$get',\n    'set': '$set',\n    'call': '$call',\n    'commit': '$commit',\n    'watch': '$watch',\n    'entangle': '$entangle',\n    'dispatch': '$dispatch',\n    'dispatchTo': '$dispatchTo',\n    'dispatchSelf': '$dispatchSelf',\n    'upload': '$upload',\n    'uploadMultiple': '$uploadMultiple',\n    'removeUpload': '$removeUpload',\n    'cancelUpload': '$cancelUpload',\n}\n\nexport function generateWireObject(component, state) {\n    return new Proxy({}, {\n        get(target, property) {\n            if (property === '__instance') return component\n\n            if (property in aliases) {\n                return getProperty(component, aliases[property])\n            } else if (property in properties) {\n                return getProperty(component, property)\n            } else if (property in state) {\n                return state[property]\n            } else if (! ['then'].includes(property)) {\n                return getFallback(component)(property)\n            }\n        },\n\n        set(target, property, value) {\n            if (property in state) {\n                state[property] = value\n            }\n\n            return true\n        },\n    })\n}\n\nfunction getProperty(component, name) {\n    return properties[name](component)\n}\n\nfunction getFallback(component) {\n    return fallback(component)\n}\n\nAlpine.magic('wire', (el, { cleanup }) => {\n    // Purposely initializing an empty variable here is a \"memo\"\n    // so that a component is lazy-loaded when using $wire from Alpine...\n    let component\n\n    // Override $wire methods that need to be cleaned up when\n    // and element is removed. For example, `x-data=\"{ foo: $wire.entangle(...) }\"`:\n    // we would want the entangle effect freed if the element was removed from the DOM...\n    return new Proxy({}, {\n        get(target, property) {\n            if (! component) component = closestComponent(el)\n\n            if (['$entangle', 'entangle'].includes(property)) {\n                return generateEntangleFunction(component, cleanup)\n            }\n\n            return component.$wire[property]\n        },\n\n        set(target, property, value) {\n            if (! component) component = closestComponent(el)\n\n            component.$wire[property] = value\n\n            return true\n        },\n    })\n})\n\nwireProperty('__instance', (component) => component)\n\nwireProperty('$get', (component) => (property, reactive = true) => dataGet(reactive ? component.reactive : component.ephemeral, property))\n\nwireProperty('$el', (component) => {\n    return component.el\n})\n\nwireProperty('$id', (component) => {\n    return component.id\n})\n\nwireProperty('$set', (component) => async (property, value, live = true) => {\n    dataSet(component.reactive, property, value)\n\n    // If \"live\", send a request, queueing the property update to happen first\n    // on the server, then trickle back down to the client and get merged...\n    if (live) {\n        component.queueUpdate(property, value)\n\n        return await requestCommit(component)\n    }\n\n    return Promise.resolve()\n})\n\nwireProperty('$call', (component) => async (method, ...params) => {\n    return await component.$wire[method](...params)\n})\n\nwireProperty('$entangle', (component) => (name, live = false) => {\n    return generateEntangleFunction(component)(name, live)\n})\n\nwireProperty('$toggle', (component) => (name, live = true) => {\n    return component.$wire.set(name, ! component.$wire.get(name), live)\n})\n\nwireProperty('$watch', (component) => (path, callback) => {\n    let firstTime = true\n    let oldValue = undefined\n\n   Alpine.effect(() => {\n    // JSON.stringify touches every single property at any level enabling deep watching\n        let value = dataGet(component.reactive, path)\n        JSON.stringify(value)\n\n        if (! firstTime) {\n            // We have to queue this watcher as a microtask so that\n            // the watcher doesn't pick up its own dependencies.\n            queueMicrotask(() => {\n                callback(value, oldValue)\n\n                oldValue = value\n            })\n        } else {\n            oldValue = value\n        }\n\n        firstTime = false\n    })\n})\n\nwireProperty('$refresh', (component) => component.$wire.$commit)\nwireProperty('$commit', (component) => async () => await requestCommit(component))\n\nwireProperty('$on', (component) => (...params) => listen(component, ...params))\n\nwireProperty('$dispatch', (component) => (...params) => dispatch(component, ...params))\nwireProperty('$dispatchSelf', (component) => (...params) => dispatchSelf(component, ...params))\nwireProperty('$dispatchTo', () => (...params) => dispatchTo(...params))\nwireProperty('$upload', (component) => (...params) => upload(component, ...params))\nwireProperty('$uploadMultiple', (component) => (...params) => uploadMultiple(component, ...params))\nwireProperty('$removeUpload', (component) => (...params) => removeUpload(component, ...params))\nwireProperty('$cancelUpload', (component) => (...params) => cancelUpload(component, ...params))\n\nlet parentMemo = new WeakMap\n\nwireProperty('$parent', component => {\n    if (parentMemo.has(component)) return parentMemo.get(component).$wire\n\n    let parent = closestComponent(component.el.parentElement)\n\n    parentMemo.set(component, parent)\n\n    return parent.$wire\n})\n\nlet overriddenMethods = new WeakMap\n\nexport function overrideMethod(component, method, callback) {\n    if (! overriddenMethods.has(component)) {\n        overriddenMethods.set(component, {})\n    }\n\n    let obj = overriddenMethods.get(component)\n\n    obj[method] = callback\n\n    overriddenMethods.set(component, obj)\n}\n\nwireFallback((component) => (property) => async (...params) => {\n    // If this method is passed directly to a Vue or Alpine\n    // event listener (@click=\"someMethod\") without using\n    // parens, strip out the automatically added event.\n    if (params.length === 1 && params[0] instanceof Event) {\n        params = []\n    }\n\n    if (overriddenMethods.has(component)) {\n        let overrides = overriddenMethods.get(component)\n\n        if (typeof overrides[property] === 'function') {\n            return overrides[property](params)\n        }\n    }\n\n    return await requestCall(component, property, params)\n})\n", "import { dataSet, deepClone, diff, extractData} from '@/utils'\nimport { generateWireObject } from '@/$wire'\nimport { findComponent } from '@/store'\nimport { trigger } from '@/hooks'\n\nexport class Component {\n    constructor(el) {\n        if (el.__livewire) throw 'Component already initialized';\n\n        el.__livewire = this\n\n        this.el = el\n\n        this.id = el.getAttribute('wire:id')\n\n        this.__livewireId = this.id // @legacy\n\n        this.snapshotEncoded = el.getAttribute('wire:snapshot')\n\n        this.snapshot = JSON.parse(this.snapshotEncoded)\n\n        if (! this.snapshot) {\n            throw `Snapshot missing on Livewire component with id: ` + this.id\n        }\n\n        this.name = this.snapshot.memo.name\n\n        this.effects = JSON.parse(el.getAttribute('wire:effects'))\n        this.originalEffects = deepClone(this.effects)\n\n        // \"canonical\" data represents the last known server state.\n        this.canonical = extractData(deepClone(this.snapshot.data))\n        // \"ephemeral\" represents the most current state. (This can be freely manipulated by end users)\n        this.ephemeral = extractData(deepClone(this.snapshot.data))\n        // \"reactive\" is just ephemeral, except when you mutate it, front-ends like Vue react.\n        this.reactive = Alpine.reactive(this.ephemeral)\n\n        this.queuedUpdates = {}\n\n        // this.$wire = this.reactive\n        this.$wire = generateWireObject(this, this.reactive)\n\n        this.cleanups = []\n\n        // Effects will be processed after every request, but we'll also handle them on initialization.\n        this.processEffects(this.effects)\n    }\n\n    mergeNewSnapshot(snapshotEncoded, effects, updates = {}) {\n        let snapshot = JSON.parse(snapshotEncoded)\n\n        let oldCanonical = deepClone(this.canonical)\n        let updatedOldCanonical = this.applyUpdates(oldCanonical, updates)\n\n        let newCanonical = extractData(deepClone(snapshot.data))\n\n        let dirty = diff(updatedOldCanonical, newCanonical)\n\n        this.snapshotEncoded = snapshotEncoded\n\n        this.snapshot = snapshot\n\n        this.effects = effects\n\n        this.canonical = extractData(deepClone(snapshot.data))\n\n        let newData = extractData(deepClone(snapshot.data))\n\n        Object.entries(dirty).forEach(([key, value]) => {\n            let rootKey = key.split('.')[0]\n            this.reactive[rootKey] = newData[rootKey]\n        })\n        // Object.entries(this.ephemeral).forEach(([key, value]) => {\n        //     if (! deeplyEqual(this.ephemeral[key], newData[key])) {\n        //         this.reactive[key] = newData[key]\n        //     }\n        // })\n\n        return dirty\n    }\n\n    queueUpdate(propertyName, value) {\n        // These updates will be applied first on the server\n        // on the next request, then trickle back to the\n        // client on the next request that gets sent.\n        this.queuedUpdates[propertyName] = value\n    }\n\n    mergeQueuedUpdates(diff) {\n        // Before adding queuedUpdates into the diff list, we will remove any diffs\n        // that will be overriden by the queued update. Queued updates will take\n        // priority against ephemeral updates that have happend since them...\n        Object.entries(this.queuedUpdates).forEach(([updateKey, updateValue]) => {\n            Object.entries(diff).forEach(([diffKey, diffValue]) => {\n                if (diffKey.startsWith(updateValue)) {\n                    delete diff[diffKey]\n                }\n            })\n\n            diff[updateKey] = updateValue\n        })\n\n        this.queuedUpdates = []\n\n        return diff\n    }\n\n    applyUpdates(object, updates) {\n        for (let key in updates) {\n            dataSet(object, key, updates[key])\n        }\n\n        return object\n    }\n\n    replayUpdate(snapshot, html) {\n        let effects = { ...this.effects, html}\n\n        this.mergeNewSnapshot(JSON.stringify(snapshot), effects)\n\n        this.processEffects({ html })\n    }\n\n    /**\n     * Here we'll take the new state and side effects from the\n     * server and use them to update the existing data that\n     * users interact with, triggering reactive effects.\n     */\n    processEffects(effects) {\n        // This is for BC.\n        trigger('effects', this, effects)\n\n        trigger('effect', {\n            component: this,\n            effects,\n            cleanup: i => this.addCleanup(i)\n        })\n    }\n\n    get children() {\n        let meta = this.snapshot.memo\n        let childIds = Object.values(meta.children).map(i => i[1])\n\n        return childIds.map(id => findComponent(id))\n    }\n\n    inscribeSnapshotAndEffectsOnElement() {\n        let el = this.el\n\n        el.setAttribute('wire:snapshot', this.snapshotEncoded)\n\n        // We need to re-register any event listeners that were originally registered...\n        let effects = this.originalEffects.listeners\n            ? { listeners: this.originalEffects.listeners }\n            : {}\n\n        // We need to re-register any url/query-string bindings...\n        if (this.originalEffects.url) {\n            effects.url = this.originalEffects.url\n        }\n\n        el.setAttribute('wire:effects', JSON.stringify(effects))\n    }\n\n    addCleanup(cleanup) {\n        this.cleanups.push(cleanup)\n    }\n\n    cleanup() {\n        delete this.el.__livewire\n\n        while (this.cleanups.length > 0) {\n            this.cleanups.pop()()\n        }\n    }\n}\n", "import { Component } from \"@/component\";\nimport { trigger } from \"@/hooks\";\n\nlet components = {}\n\nexport function initComponent(el) {\n    let component = new Component(el)\n\n    if (components[component.id]) throw 'Component already registered'\n\n    let cleanup = (i) => component.addCleanup(i)\n\n    trigger('component.init', { component, cleanup })\n\n    components[component.id] = component\n\n    return component\n}\n\nexport function destroyComponent(id) {\n    let component = components[id]\n\n    if (! component) return\n\n    component.cleanup()\n\n    delete components[id]\n}\n\nexport function hasComponent(id) {\n    return !! components[id]\n}\n\nexport function findComponent(id) {\n    let component = components[id]\n\n    if (! component) throw 'Component not found: ' + id\n\n    return component\n}\n\nexport function closestComponent(el, strict = true) {\n    let closestRoot = Alpine.findClosest(el, i => i.__livewire)\n\n    if (! closestRoot) {\n        if (strict) throw \"Could not find Livewire component in DOM tree\"\n\n        return\n    }\n\n    return closestRoot.__livewire\n}\n\nexport function componentsByName(name) {\n    return Object.values(components).filter(component => {\n        return name == component.name\n    })\n}\n\nexport function getByName(name) {\n    return componentsByName(name).map(i => i.$wire)\n}\n\nexport function find(id) {\n    let component = components[id]\n\n    return component && component.$wire\n}\n\nexport function first() {\n    return Object.values(components)[0].$wire\n}\n\nexport function all() {\n    return Object.values(components)\n}\n", "import { componentsByName } from \"@/store\"\n\nexport function dispatch(component, name, params) {\n    dispatchEvent(component.el, name, params)\n}\n\nexport function dispatchGlobal(name, params) {\n    dispatchEvent(window, name, params)\n}\n\nexport function dispatchSelf(component, name, params) {\n    dispatchEvent(component.el, name, params, false)\n}\n\nexport function dispatchTo(componentName, name, params) {\n    let targets = componentsByName(componentName)\n\n    targets.forEach(target => {\n        dispatchEvent(target.el, name, params, false)\n    })\n}\n\nexport function listen(component, name, callback) {\n    component.el.addEventListener(name, e => {\n        callback(e.detail)\n    })\n}\n\nexport function on(eventName, callback) {\n    let handler = (e) => {\n        // Implemented for backwards compatibility...\n        if (! e.__livewire) return\n\n        callback(e.detail)\n    }\n\n    window.addEventListener(eventName, handler)\n\n    return () => {\n        window.removeEventListener(eventName, handler)\n    }\n}\n\nfunction dispatchEvent(target, name, params, bubbles = true) {\n    let e = new CustomEvent(name, { bubbles, detail: params })\n\n    e.__livewire = { name, params, receivedBy: [] }\n\n    target.dispatchEvent(e)\n}\n", "import { on } from './hooks'\n\nexport function matchesForLivewireDirective(attributeName) {\n    return attributeName.match(new RegExp('wire:'))\n}\n\nexport function extractDirective(el, name) {\n    let [value, ...modifiers] = name.replace(new RegExp('wire:'), '').split('.')\n\n    return new Directive(value, modifiers, name, el)\n}\n\nexport function directive(name, callback) {\n    on('directive.init', ({ el, component, directive, cleanup }) => {\n        if (directive.value === name) {\n            callback({\n                el, directive, component, cleanup\n            })\n        }\n    })\n}\n\nexport function getDirectives(el) {\n    return new DirectiveManager(el)\n}\n\nclass DirectiveManager {\n    constructor(el) {\n        this.el = el\n        this.directives = this.extractTypeModifiersAndValue()\n    }\n\n    all() {\n        return this.directives\n    }\n\n    has(value) {\n        return this.directives.map(directive => directive.value).includes(value)\n    }\n\n    missing(value) {\n        return ! this.has(value)\n    }\n\n    get(value) {\n        return this.directives.find(directive => directive.value === value)\n    }\n\n    extractTypeModifiersAndValue() {\n        return Array.from(this.el.getAttributeNames()\n            // Filter only the livewire directives.\n            .filter(name => matchesForLivewireDirective(name))\n            // Parse out the type, modifiers, and value from it.\n            .map(name => extractDirective(this.el, name)))\n    }\n}\n\nexport class Directive {\n    constructor(value, modifiers, rawName, el) {\n        this.rawName = this.raw = rawName\n        this.el = el\n        this.eventContext\n\n        this.value = value\n        this.modifiers = modifiers\n        this.expression = this.el.getAttribute(this.rawName)\n    }\n\n    get method() {\n        const { method } = this.parseOutMethodAndParams(this.expression)\n\n        return method\n    }\n\n    get params() {\n        const { params } = this.parseOutMethodAndParams(this.expression)\n\n        return params\n    }\n\n    parseOutMethodAndParams(rawMethod) {\n        let method = rawMethod\n        let params = []\n        const methodAndParamString = method.match(/(.*?)\\((.*)\\)/s)\n\n        if (methodAndParamString) {\n            method = methodAndParamString[1]\n\n            // Use a function that returns it's arguments to parse and eval all params\n            // This \"$event\" is for use inside the livewire event handler.\n            let func = new Function('$event', `return (function () {\n                for (var l=arguments.length, p=new Array(l), k=0; k<l; k++) {\n                    p[k] = arguments[k];\n                }\n                return [].concat(p);\n            })(${methodAndParamString[2]})`)\n\n            params = func(this.eventContext)\n        }\n\n        return { method, params }\n    }\n}\n", "// packages/collapse/src/index.js\nfunction src_default(Alpine) {\n  Alpine.directive(\"collapse\", collapse);\n  collapse.inline = (el, { modifiers }) => {\n    if (!modifiers.includes(\"min\"))\n      return;\n    el._x_doShow = () => {\n    };\n    el._x_doHide = () => {\n    };\n  };\n  function collapse(el, { modifiers }) {\n    let duration = modifierValue(modifiers, \"duration\", 250) / 1e3;\n    let floor = modifierValue(modifiers, \"min\", 0);\n    let fullyHide = !modifiers.includes(\"min\");\n    if (!el._x_isShown)\n      el.style.height = `${floor}px`;\n    if (!el._x_isShown && fullyHide)\n      el.hidden = true;\n    if (!el._x_isShown)\n      el.style.overflow = \"hidden\";\n    let setFunction = (el2, styles) => {\n      let revertFunction = Alpine.setStyles(el2, styles);\n      return styles.height ? () => {\n      } : revertFunction;\n    };\n    let transitionStyles = {\n      transitionProperty: \"height\",\n      transitionDuration: `${duration}s`,\n      transitionTimingFunction: \"cubic-bezier(0.4, 0.0, 0.2, 1)\"\n    };\n    el._x_transition = {\n      in(before = () => {\n      }, after = () => {\n      }) {\n        if (fullyHide)\n          el.hidden = false;\n        if (fullyHide)\n          el.style.display = null;\n        let current = el.getBoundingClientRect().height;\n        el.style.height = \"auto\";\n        let full = el.getBoundingClientRect().height;\n        if (current === full) {\n          current = floor;\n        }\n        Alpine.transition(el, Alpine.setStyles, {\n          during: transitionStyles,\n          start: { height: current + \"px\" },\n          end: { height: full + \"px\" }\n        }, () => el._x_isShown = true, () => {\n          if (el.getBoundingClientRect().height == full) {\n            el.style.overflow = null;\n          }\n        });\n      },\n      out(before = () => {\n      }, after = () => {\n      }) {\n        let full = el.getBoundingClientRect().height;\n        Alpine.transition(el, setFunction, {\n          during: transitionStyles,\n          start: { height: full + \"px\" },\n          end: { height: floor + \"px\" }\n        }, () => el.style.overflow = \"hidden\", () => {\n          el._x_isShown = false;\n          if (el.style.height == `${floor}px` && fullyHide) {\n            el.style.display = \"none\";\n            el.hidden = true;\n          }\n        });\n      }\n    };\n  }\n}\nfunction modifierValue(modifiers, key, fallback) {\n  if (modifiers.indexOf(key) === -1)\n    return fallback;\n  const rawValue = modifiers[modifiers.indexOf(key) + 1];\n  if (!rawValue)\n    return fallback;\n  if (key === \"duration\") {\n    let match = rawValue.match(/([0-9]+)ms/);\n    if (match)\n      return match[1];\n  }\n  if (key === \"min\") {\n    let match = rawValue.match(/([0-9]+)px/);\n    if (match)\n      return match[1];\n  }\n  return rawValue;\n}\n\n// packages/collapse/builds/module.js\nvar module_default = src_default;\nexport {\n  src_default as collapse,\n  module_default as default\n};\n", "// node_modules/tabbable/dist/index.esm.js\nvar candidateSelectors = [\"input\", \"select\", \"textarea\", \"a[href]\", \"button\", \"[tabindex]:not(slot)\", \"audio[controls]\", \"video[controls]\", '[contenteditable]:not([contenteditable=\"false\"])', \"details>summary:first-of-type\", \"details\"];\nvar candidateSelector = /* @__PURE__ */ candidateSelectors.join(\",\");\nvar NoElement = typeof Element === \"undefined\";\nvar matches = NoElement ? function() {\n} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\nvar getRootNode = !NoElement && Element.prototype.getRootNode ? function(element) {\n  return element.getRootNode();\n} : function(element) {\n  return element.ownerDocument;\n};\nvar getCandidates = function getCandidates2(el, includeContainer, filter) {\n  var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));\n  if (includeContainer && matches.call(el, candidateSelector)) {\n    candidates.unshift(el);\n  }\n  candidates = candidates.filter(filter);\n  return candidates;\n};\nvar getCandidatesIteratively = function getCandidatesIteratively2(elements, includeContainer, options) {\n  var candidates = [];\n  var elementsToCheck = Array.from(elements);\n  while (elementsToCheck.length) {\n    var element = elementsToCheck.shift();\n    if (element.tagName === \"SLOT\") {\n      var assigned = element.assignedElements();\n      var content = assigned.length ? assigned : element.children;\n      var nestedCandidates = getCandidatesIteratively2(content, true, options);\n      if (options.flatten) {\n        candidates.push.apply(candidates, nestedCandidates);\n      } else {\n        candidates.push({\n          scope: element,\n          candidates: nestedCandidates\n        });\n      }\n    } else {\n      var validCandidate = matches.call(element, candidateSelector);\n      if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {\n        candidates.push(element);\n      }\n      var shadowRoot = element.shadowRoot || // check for an undisclosed shadow\n      typeof options.getShadowRoot === \"function\" && options.getShadowRoot(element);\n      var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);\n      if (shadowRoot && validShadowRoot) {\n        var _nestedCandidates = getCandidatesIteratively2(shadowRoot === true ? element.children : shadowRoot.children, true, options);\n        if (options.flatten) {\n          candidates.push.apply(candidates, _nestedCandidates);\n        } else {\n          candidates.push({\n            scope: element,\n            candidates: _nestedCandidates\n          });\n        }\n      } else {\n        elementsToCheck.unshift.apply(elementsToCheck, element.children);\n      }\n    }\n  }\n  return candidates;\n};\nvar getTabindex = function getTabindex2(node, isScope) {\n  if (node.tabIndex < 0) {\n    if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute(\"tabindex\"), 10))) {\n      return 0;\n    }\n  }\n  return node.tabIndex;\n};\nvar sortOrderedTabbables = function sortOrderedTabbables2(a, b) {\n  return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;\n};\nvar isInput = function isInput2(node) {\n  return node.tagName === \"INPUT\";\n};\nvar isHiddenInput = function isHiddenInput2(node) {\n  return isInput(node) && node.type === \"hidden\";\n};\nvar isDetailsWithSummary = function isDetailsWithSummary2(node) {\n  var r = node.tagName === \"DETAILS\" && Array.prototype.slice.apply(node.children).some(function(child) {\n    return child.tagName === \"SUMMARY\";\n  });\n  return r;\n};\nvar getCheckedRadio = function getCheckedRadio2(nodes, form) {\n  for (var i = 0; i < nodes.length; i++) {\n    if (nodes[i].checked && nodes[i].form === form) {\n      return nodes[i];\n    }\n  }\n};\nvar isTabbableRadio = function isTabbableRadio2(node) {\n  if (!node.name) {\n    return true;\n  }\n  var radioScope = node.form || getRootNode(node);\n  var queryRadios = function queryRadios2(name) {\n    return radioScope.querySelectorAll('input[type=\"radio\"][name=\"' + name + '\"]');\n  };\n  var radioSet;\n  if (typeof window !== \"undefined\" && typeof window.CSS !== \"undefined\" && typeof window.CSS.escape === \"function\") {\n    radioSet = queryRadios(window.CSS.escape(node.name));\n  } else {\n    try {\n      radioSet = queryRadios(node.name);\n    } catch (err) {\n      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\", err.message);\n      return false;\n    }\n  }\n  var checked = getCheckedRadio(radioSet, node.form);\n  return !checked || checked === node;\n};\nvar isRadio = function isRadio2(node) {\n  return isInput(node) && node.type === \"radio\";\n};\nvar isNonTabbableRadio = function isNonTabbableRadio2(node) {\n  return isRadio(node) && !isTabbableRadio(node);\n};\nvar isZeroArea = function isZeroArea2(node) {\n  var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;\n  return width === 0 && height === 0;\n};\nvar isHidden = function isHidden2(node, _ref) {\n  var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;\n  if (getComputedStyle(node).visibility === \"hidden\") {\n    return true;\n  }\n  var isDirectSummary = matches.call(node, \"details>summary:first-of-type\");\n  var nodeUnderDetails = isDirectSummary ? node.parentElement : node;\n  if (matches.call(nodeUnderDetails, \"details:not([open]) *\")) {\n    return true;\n  }\n  var nodeRootHost = getRootNode(node).host;\n  var nodeIsAttached = (nodeRootHost === null || nodeRootHost === void 0 ? void 0 : nodeRootHost.ownerDocument.contains(nodeRootHost)) || node.ownerDocument.contains(node);\n  if (!displayCheck || displayCheck === \"full\") {\n    if (typeof getShadowRoot === \"function\") {\n      var originalNode = node;\n      while (node) {\n        var parentElement = node.parentElement;\n        var rootNode = getRootNode(node);\n        if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true) {\n          return isZeroArea(node);\n        } else if (node.assignedSlot) {\n          node = node.assignedSlot;\n        } else if (!parentElement && rootNode !== node.ownerDocument) {\n          node = rootNode.host;\n        } else {\n          node = parentElement;\n        }\n      }\n      node = originalNode;\n    }\n    if (nodeIsAttached) {\n      return !node.getClientRects().length;\n    }\n  } else if (displayCheck === \"non-zero-area\") {\n    return isZeroArea(node);\n  }\n  return false;\n};\nvar isDisabledFromFieldset = function isDisabledFromFieldset2(node) {\n  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {\n    var parentNode = node.parentElement;\n    while (parentNode) {\n      if (parentNode.tagName === \"FIELDSET\" && parentNode.disabled) {\n        for (var i = 0; i < parentNode.children.length; i++) {\n          var child = parentNode.children.item(i);\n          if (child.tagName === \"LEGEND\") {\n            return matches.call(parentNode, \"fieldset[disabled] *\") ? true : !child.contains(node);\n          }\n        }\n        return true;\n      }\n      parentNode = parentNode.parentElement;\n    }\n  }\n  return false;\n};\nvar isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable2(options, node) {\n  if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus\n  isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {\n    return false;\n  }\n  return true;\n};\nvar isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable2(options, node) {\n  if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {\n    return false;\n  }\n  return true;\n};\nvar isValidShadowRootTabbable = function isValidShadowRootTabbable2(shadowHostNode) {\n  var tabIndex = parseInt(shadowHostNode.getAttribute(\"tabindex\"), 10);\n  if (isNaN(tabIndex) || tabIndex >= 0) {\n    return true;\n  }\n  return false;\n};\nvar sortByOrder = function sortByOrder2(candidates) {\n  var regularTabbables = [];\n  var orderedTabbables = [];\n  candidates.forEach(function(item, i) {\n    var isScope = !!item.scope;\n    var element = isScope ? item.scope : item;\n    var candidateTabindex = getTabindex(element, isScope);\n    var elements = isScope ? sortByOrder2(item.candidates) : element;\n    if (candidateTabindex === 0) {\n      isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);\n    } else {\n      orderedTabbables.push({\n        documentOrder: i,\n        tabIndex: candidateTabindex,\n        item,\n        isScope,\n        content: elements\n      });\n    }\n  });\n  return orderedTabbables.sort(sortOrderedTabbables).reduce(function(acc, sortable) {\n    sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);\n    return acc;\n  }, []).concat(regularTabbables);\n};\nvar tabbable = function tabbable2(el, options) {\n  options = options || {};\n  var candidates;\n  if (options.getShadowRoot) {\n    candidates = getCandidatesIteratively([el], options.includeContainer, {\n      filter: isNodeMatchingSelectorTabbable.bind(null, options),\n      flatten: false,\n      getShadowRoot: options.getShadowRoot,\n      shadowRootFilter: isValidShadowRootTabbable\n    });\n  } else {\n    candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));\n  }\n  return sortByOrder(candidates);\n};\nvar focusable = function focusable2(el, options) {\n  options = options || {};\n  var candidates;\n  if (options.getShadowRoot) {\n    candidates = getCandidatesIteratively([el], options.includeContainer, {\n      filter: isNodeMatchingSelectorFocusable.bind(null, options),\n      flatten: true,\n      getShadowRoot: options.getShadowRoot\n    });\n  } else {\n    candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));\n  }\n  return candidates;\n};\nvar isTabbable = function isTabbable2(node, options) {\n  options = options || {};\n  if (!node) {\n    throw new Error(\"No node provided\");\n  }\n  if (matches.call(node, candidateSelector) === false) {\n    return false;\n  }\n  return isNodeMatchingSelectorTabbable(options, node);\n};\nvar focusableCandidateSelector = /* @__PURE__ */ candidateSelectors.concat(\"iframe\").join(\",\");\nvar isFocusable = function isFocusable2(node, options) {\n  options = options || {};\n  if (!node) {\n    throw new Error(\"No node provided\");\n  }\n  if (matches.call(node, focusableCandidateSelector) === false) {\n    return false;\n  }\n  return isNodeMatchingSelectorFocusable(options, node);\n};\n\n// node_modules/focus-trap/dist/focus-trap.esm.js\nfunction ownKeys(object, enumerableOnly) {\n  var keys = Object.keys(object);\n  if (Object.getOwnPropertySymbols) {\n    var symbols = Object.getOwnPropertySymbols(object);\n    enumerableOnly && (symbols = symbols.filter(function(sym) {\n      return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n    })), keys.push.apply(keys, symbols);\n  }\n  return keys;\n}\nfunction _objectSpread2(target) {\n  for (var i = 1; i < arguments.length; i++) {\n    var source = null != arguments[i] ? arguments[i] : {};\n    i % 2 ? ownKeys(Object(source), true).forEach(function(key) {\n      _defineProperty(target, key, source[key]);\n    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {\n      Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n    });\n  }\n  return target;\n}\nfunction _defineProperty(obj, key, value) {\n  if (key in obj) {\n    Object.defineProperty(obj, key, {\n      value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n  } else {\n    obj[key] = value;\n  }\n  return obj;\n}\nvar activeFocusTraps = function() {\n  var trapQueue = [];\n  return {\n    activateTrap: function activateTrap(trap) {\n      if (trapQueue.length > 0) {\n        var activeTrap = trapQueue[trapQueue.length - 1];\n        if (activeTrap !== trap) {\n          activeTrap.pause();\n        }\n      }\n      var trapIndex = trapQueue.indexOf(trap);\n      if (trapIndex === -1) {\n        trapQueue.push(trap);\n      } else {\n        trapQueue.splice(trapIndex, 1);\n        trapQueue.push(trap);\n      }\n    },\n    deactivateTrap: function deactivateTrap(trap) {\n      var trapIndex = trapQueue.indexOf(trap);\n      if (trapIndex !== -1) {\n        trapQueue.splice(trapIndex, 1);\n      }\n      if (trapQueue.length > 0) {\n        trapQueue[trapQueue.length - 1].unpause();\n      }\n    }\n  };\n}();\nvar isSelectableInput = function isSelectableInput2(node) {\n  return node.tagName && node.tagName.toLowerCase() === \"input\" && typeof node.select === \"function\";\n};\nvar isEscapeEvent = function isEscapeEvent2(e) {\n  return e.key === \"Escape\" || e.key === \"Esc\" || e.keyCode === 27;\n};\nvar isTabEvent = function isTabEvent2(e) {\n  return e.key === \"Tab\" || e.keyCode === 9;\n};\nvar delay = function delay2(fn) {\n  return setTimeout(fn, 0);\n};\nvar findIndex = function findIndex2(arr, fn) {\n  var idx = -1;\n  arr.every(function(value, i) {\n    if (fn(value)) {\n      idx = i;\n      return false;\n    }\n    return true;\n  });\n  return idx;\n};\nvar valueOrHandler = function valueOrHandler2(value) {\n  for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    params[_key - 1] = arguments[_key];\n  }\n  return typeof value === \"function\" ? value.apply(void 0, params) : value;\n};\nvar getActualTarget = function getActualTarget2(event) {\n  return event.target.shadowRoot && typeof event.composedPath === \"function\" ? event.composedPath()[0] : event.target;\n};\nvar createFocusTrap = function createFocusTrap2(elements, userOptions) {\n  var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;\n  var config = _objectSpread2({\n    returnFocusOnDeactivate: true,\n    escapeDeactivates: true,\n    delayInitialFocus: true\n  }, userOptions);\n  var state = {\n    // containers given to createFocusTrap()\n    // @type {Array<HTMLElement>}\n    containers: [],\n    // list of objects identifying tabbable nodes in `containers` in the trap\n    // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap\n    //  is active, but the trap should never get to a state where there isn't at least one group\n    //  with at least one tabbable node in it (that would lead to an error condition that would\n    //  result in an error being thrown)\n    // @type {Array<{\n    //   container: HTMLElement,\n    //   tabbableNodes: Array<HTMLElement>, // empty if none\n    //   focusableNodes: Array<HTMLElement>, // empty if none\n    //   firstTabbableNode: HTMLElement|null,\n    //   lastTabbableNode: HTMLElement|null,\n    //   nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined\n    // }>}\n    containerGroups: [],\n    // same order/length as `containers` list\n    // references to objects in `containerGroups`, but only those that actually have\n    //  tabbable nodes in them\n    // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__\n    //  the same length\n    tabbableGroups: [],\n    nodeFocusedBeforeActivation: null,\n    mostRecentlyFocusedNode: null,\n    active: false,\n    paused: false,\n    // timer ID for when delayInitialFocus is true and initial focus in this trap\n    //  has been delayed during activation\n    delayInitialFocusTimer: void 0\n  };\n  var trap;\n  var getOption = function getOption2(configOverrideOptions, optionName, configOptionName) {\n    return configOverrideOptions && configOverrideOptions[optionName] !== void 0 ? configOverrideOptions[optionName] : config[configOptionName || optionName];\n  };\n  var findContainerIndex = function findContainerIndex2(element) {\n    return state.containerGroups.findIndex(function(_ref) {\n      var container = _ref.container, tabbableNodes = _ref.tabbableNodes;\n      return container.contains(element) || // fall back to explicit tabbable search which will take into consideration any\n      //  web components if the `tabbableOptions.getShadowRoot` option was used for\n      //  the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't\n      //  look inside web components even if open)\n      tabbableNodes.find(function(node) {\n        return node === element;\n      });\n    });\n  };\n  var getNodeForOption = function getNodeForOption2(optionName) {\n    var optionValue = config[optionName];\n    if (typeof optionValue === \"function\") {\n      for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        params[_key2 - 1] = arguments[_key2];\n      }\n      optionValue = optionValue.apply(void 0, params);\n    }\n    if (optionValue === true) {\n      optionValue = void 0;\n    }\n    if (!optionValue) {\n      if (optionValue === void 0 || optionValue === false) {\n        return optionValue;\n      }\n      throw new Error(\"`\".concat(optionName, \"` was specified but was not a node, or did not return a node\"));\n    }\n    var node = optionValue;\n    if (typeof optionValue === \"string\") {\n      node = doc.querySelector(optionValue);\n      if (!node) {\n        throw new Error(\"`\".concat(optionName, \"` as selector refers to no known node\"));\n      }\n    }\n    return node;\n  };\n  var getInitialFocusNode = function getInitialFocusNode2() {\n    var node = getNodeForOption(\"initialFocus\");\n    if (node === false) {\n      return false;\n    }\n    if (node === void 0) {\n      if (findContainerIndex(doc.activeElement) >= 0) {\n        node = doc.activeElement;\n      } else {\n        var firstTabbableGroup = state.tabbableGroups[0];\n        var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;\n        node = firstTabbableNode || getNodeForOption(\"fallbackFocus\");\n      }\n    }\n    if (!node) {\n      throw new Error(\"Your focus-trap needs to have at least one focusable element\");\n    }\n    return node;\n  };\n  var updateTabbableNodes = function updateTabbableNodes2() {\n    state.containerGroups = state.containers.map(function(container) {\n      var tabbableNodes = tabbable(container, config.tabbableOptions);\n      var focusableNodes = focusable(container, config.tabbableOptions);\n      return {\n        container,\n        tabbableNodes,\n        focusableNodes,\n        firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,\n        lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,\n        /**\n         * Finds the __tabbable__ node that follows the given node in the specified direction,\n         *  in this container, if any.\n         * @param {HTMLElement} node\n         * @param {boolean} [forward] True if going in forward tab order; false if going\n         *  in reverse.\n         * @returns {HTMLElement|undefined} The next tabbable node, if any.\n         */\n        nextTabbableNode: function nextTabbableNode(node) {\n          var forward = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;\n          var nodeIdx = focusableNodes.findIndex(function(n) {\n            return n === node;\n          });\n          if (nodeIdx < 0) {\n            return void 0;\n          }\n          if (forward) {\n            return focusableNodes.slice(nodeIdx + 1).find(function(n) {\n              return isTabbable(n, config.tabbableOptions);\n            });\n          }\n          return focusableNodes.slice(0, nodeIdx).reverse().find(function(n) {\n            return isTabbable(n, config.tabbableOptions);\n          });\n        }\n      };\n    });\n    state.tabbableGroups = state.containerGroups.filter(function(group) {\n      return group.tabbableNodes.length > 0;\n    });\n    if (state.tabbableGroups.length <= 0 && !getNodeForOption(\"fallbackFocus\")) {\n      throw new Error(\"Your focus-trap must have at least one container with at least one tabbable node in it at all times\");\n    }\n  };\n  var tryFocus = function tryFocus2(node) {\n    if (node === false) {\n      return;\n    }\n    if (node === doc.activeElement) {\n      return;\n    }\n    if (!node || !node.focus) {\n      tryFocus2(getInitialFocusNode());\n      return;\n    }\n    node.focus({\n      preventScroll: !!config.preventScroll\n    });\n    state.mostRecentlyFocusedNode = node;\n    if (isSelectableInput(node)) {\n      node.select();\n    }\n  };\n  var getReturnFocusNode = function getReturnFocusNode2(previousActiveElement) {\n    var node = getNodeForOption(\"setReturnFocus\", previousActiveElement);\n    return node ? node : node === false ? false : previousActiveElement;\n  };\n  var checkPointerDown = function checkPointerDown2(e) {\n    var target = getActualTarget(e);\n    if (findContainerIndex(target) >= 0) {\n      return;\n    }\n    if (valueOrHandler(config.clickOutsideDeactivates, e)) {\n      trap.deactivate({\n        // if, on deactivation, we should return focus to the node originally-focused\n        //  when the trap was activated (or the configured `setReturnFocus` node),\n        //  then assume it's also OK to return focus to the outside node that was\n        //  just clicked, causing deactivation, as long as that node is focusable;\n        //  if it isn't focusable, then return focus to the original node focused\n        //  on activation (or the configured `setReturnFocus` node)\n        // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,\n        //  which will result in the outside click setting focus to the node\n        //  that was clicked, whether it's focusable or not; by setting\n        //  `returnFocus: true`, we'll attempt to re-focus the node originally-focused\n        //  on activation (or the configured `setReturnFocus` node)\n        returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)\n      });\n      return;\n    }\n    if (valueOrHandler(config.allowOutsideClick, e)) {\n      return;\n    }\n    e.preventDefault();\n  };\n  var checkFocusIn = function checkFocusIn2(e) {\n    var target = getActualTarget(e);\n    var targetContained = findContainerIndex(target) >= 0;\n    if (targetContained || target instanceof Document) {\n      if (targetContained) {\n        state.mostRecentlyFocusedNode = target;\n      }\n    } else {\n      e.stopImmediatePropagation();\n      tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());\n    }\n  };\n  var checkTab = function checkTab2(e) {\n    var target = getActualTarget(e);\n    updateTabbableNodes();\n    var destinationNode = null;\n    if (state.tabbableGroups.length > 0) {\n      var containerIndex = findContainerIndex(target);\n      var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : void 0;\n      if (containerIndex < 0) {\n        if (e.shiftKey) {\n          destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;\n        } else {\n          destinationNode = state.tabbableGroups[0].firstTabbableNode;\n        }\n      } else if (e.shiftKey) {\n        var startOfGroupIndex = findIndex(state.tabbableGroups, function(_ref2) {\n          var firstTabbableNode = _ref2.firstTabbableNode;\n          return target === firstTabbableNode;\n        });\n        if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {\n          startOfGroupIndex = containerIndex;\n        }\n        if (startOfGroupIndex >= 0) {\n          var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;\n          var destinationGroup = state.tabbableGroups[destinationGroupIndex];\n          destinationNode = destinationGroup.lastTabbableNode;\n        }\n      } else {\n        var lastOfGroupIndex = findIndex(state.tabbableGroups, function(_ref3) {\n          var lastTabbableNode = _ref3.lastTabbableNode;\n          return target === lastTabbableNode;\n        });\n        if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {\n          lastOfGroupIndex = containerIndex;\n        }\n        if (lastOfGroupIndex >= 0) {\n          var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;\n          var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];\n          destinationNode = _destinationGroup.firstTabbableNode;\n        }\n      }\n    } else {\n      destinationNode = getNodeForOption(\"fallbackFocus\");\n    }\n    if (destinationNode) {\n      e.preventDefault();\n      tryFocus(destinationNode);\n    }\n  };\n  var checkKey = function checkKey2(e) {\n    if (isEscapeEvent(e) && valueOrHandler(config.escapeDeactivates, e) !== false) {\n      e.preventDefault();\n      trap.deactivate();\n      return;\n    }\n    if (isTabEvent(e)) {\n      checkTab(e);\n      return;\n    }\n  };\n  var checkClick = function checkClick2(e) {\n    var target = getActualTarget(e);\n    if (findContainerIndex(target) >= 0) {\n      return;\n    }\n    if (valueOrHandler(config.clickOutsideDeactivates, e)) {\n      return;\n    }\n    if (valueOrHandler(config.allowOutsideClick, e)) {\n      return;\n    }\n    e.preventDefault();\n    e.stopImmediatePropagation();\n  };\n  var addListeners = function addListeners2() {\n    if (!state.active) {\n      return;\n    }\n    activeFocusTraps.activateTrap(trap);\n    state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function() {\n      tryFocus(getInitialFocusNode());\n    }) : tryFocus(getInitialFocusNode());\n    doc.addEventListener(\"focusin\", checkFocusIn, true);\n    doc.addEventListener(\"mousedown\", checkPointerDown, {\n      capture: true,\n      passive: false\n    });\n    doc.addEventListener(\"touchstart\", checkPointerDown, {\n      capture: true,\n      passive: false\n    });\n    doc.addEventListener(\"click\", checkClick, {\n      capture: true,\n      passive: false\n    });\n    doc.addEventListener(\"keydown\", checkKey, {\n      capture: true,\n      passive: false\n    });\n    return trap;\n  };\n  var removeListeners = function removeListeners2() {\n    if (!state.active) {\n      return;\n    }\n    doc.removeEventListener(\"focusin\", checkFocusIn, true);\n    doc.removeEventListener(\"mousedown\", checkPointerDown, true);\n    doc.removeEventListener(\"touchstart\", checkPointerDown, true);\n    doc.removeEventListener(\"click\", checkClick, true);\n    doc.removeEventListener(\"keydown\", checkKey, true);\n    return trap;\n  };\n  trap = {\n    get active() {\n      return state.active;\n    },\n    get paused() {\n      return state.paused;\n    },\n    activate: function activate(activateOptions) {\n      if (state.active) {\n        return this;\n      }\n      var onActivate = getOption(activateOptions, \"onActivate\");\n      var onPostActivate = getOption(activateOptions, \"onPostActivate\");\n      var checkCanFocusTrap = getOption(activateOptions, \"checkCanFocusTrap\");\n      if (!checkCanFocusTrap) {\n        updateTabbableNodes();\n      }\n      state.active = true;\n      state.paused = false;\n      state.nodeFocusedBeforeActivation = doc.activeElement;\n      if (onActivate) {\n        onActivate();\n      }\n      var finishActivation = function finishActivation2() {\n        if (checkCanFocusTrap) {\n          updateTabbableNodes();\n        }\n        addListeners();\n        if (onPostActivate) {\n          onPostActivate();\n        }\n      };\n      if (checkCanFocusTrap) {\n        checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);\n        return this;\n      }\n      finishActivation();\n      return this;\n    },\n    deactivate: function deactivate(deactivateOptions) {\n      if (!state.active) {\n        return this;\n      }\n      var options = _objectSpread2({\n        onDeactivate: config.onDeactivate,\n        onPostDeactivate: config.onPostDeactivate,\n        checkCanReturnFocus: config.checkCanReturnFocus\n      }, deactivateOptions);\n      clearTimeout(state.delayInitialFocusTimer);\n      state.delayInitialFocusTimer = void 0;\n      removeListeners();\n      state.active = false;\n      state.paused = false;\n      activeFocusTraps.deactivateTrap(trap);\n      var onDeactivate = getOption(options, \"onDeactivate\");\n      var onPostDeactivate = getOption(options, \"onPostDeactivate\");\n      var checkCanReturnFocus = getOption(options, \"checkCanReturnFocus\");\n      var returnFocus = getOption(options, \"returnFocus\", \"returnFocusOnDeactivate\");\n      if (onDeactivate) {\n        onDeactivate();\n      }\n      var finishDeactivation = function finishDeactivation2() {\n        delay(function() {\n          if (returnFocus) {\n            tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));\n          }\n          if (onPostDeactivate) {\n            onPostDeactivate();\n          }\n        });\n      };\n      if (returnFocus && checkCanReturnFocus) {\n        checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);\n        return this;\n      }\n      finishDeactivation();\n      return this;\n    },\n    pause: function pause() {\n      if (state.paused || !state.active) {\n        return this;\n      }\n      state.paused = true;\n      removeListeners();\n      return this;\n    },\n    unpause: function unpause() {\n      if (!state.paused || !state.active) {\n        return this;\n      }\n      state.paused = false;\n      updateTabbableNodes();\n      addListeners();\n      return this;\n    },\n    updateContainerElements: function updateContainerElements(containerElements) {\n      var elementsAsArray = [].concat(containerElements).filter(Boolean);\n      state.containers = elementsAsArray.map(function(element) {\n        return typeof element === \"string\" ? doc.querySelector(element) : element;\n      });\n      if (state.active) {\n        updateTabbableNodes();\n      }\n      return this;\n    }\n  };\n  trap.updateContainerElements(elements);\n  return trap;\n};\n\n// packages/focus/src/index.js\nfunction src_default(Alpine) {\n  let lastFocused;\n  let currentFocused;\n  window.addEventListener(\"focusin\", () => {\n    lastFocused = currentFocused;\n    currentFocused = document.activeElement;\n  });\n  Alpine.magic(\"focus\", (el) => {\n    let within = el;\n    return {\n      __noscroll: false,\n      __wrapAround: false,\n      within(el2) {\n        within = el2;\n        return this;\n      },\n      withoutScrolling() {\n        this.__noscroll = true;\n        return this;\n      },\n      noscroll() {\n        this.__noscroll = true;\n        return this;\n      },\n      withWrapAround() {\n        this.__wrapAround = true;\n        return this;\n      },\n      wrap() {\n        return this.withWrapAround();\n      },\n      focusable(el2) {\n        return isFocusable(el2);\n      },\n      previouslyFocused() {\n        return lastFocused;\n      },\n      lastFocused() {\n        return lastFocused;\n      },\n      focused() {\n        return currentFocused;\n      },\n      focusables() {\n        if (Array.isArray(within))\n          return within;\n        return focusable(within, { displayCheck: \"none\" });\n      },\n      all() {\n        return this.focusables();\n      },\n      isFirst(el2) {\n        let els = this.all();\n        return els[0] && els[0].isSameNode(el2);\n      },\n      isLast(el2) {\n        let els = this.all();\n        return els.length && els.slice(-1)[0].isSameNode(el2);\n      },\n      getFirst() {\n        return this.all()[0];\n      },\n      getLast() {\n        return this.all().slice(-1)[0];\n      },\n      getNext() {\n        let list = this.all();\n        let current = document.activeElement;\n        if (list.indexOf(current) === -1)\n          return;\n        if (this.__wrapAround && list.indexOf(current) === list.length - 1) {\n          return list[0];\n        }\n        return list[list.indexOf(current) + 1];\n      },\n      getPrevious() {\n        let list = this.all();\n        let current = document.activeElement;\n        if (list.indexOf(current) === -1)\n          return;\n        if (this.__wrapAround && list.indexOf(current) === 0) {\n          return list.slice(-1)[0];\n        }\n        return list[list.indexOf(current) - 1];\n      },\n      first() {\n        this.focus(this.getFirst());\n      },\n      last() {\n        this.focus(this.getLast());\n      },\n      next() {\n        this.focus(this.getNext());\n      },\n      previous() {\n        this.focus(this.getPrevious());\n      },\n      prev() {\n        return this.previous();\n      },\n      focus(el2) {\n        if (!el2)\n          return;\n        setTimeout(() => {\n          if (!el2.hasAttribute(\"tabindex\"))\n            el2.setAttribute(\"tabindex\", \"0\");\n          el2.focus({ preventScroll: this.__noscroll });\n        });\n      }\n    };\n  });\n  Alpine.directive(\"trap\", Alpine.skipDuringClone(\n    (el, { expression, modifiers }, { effect, evaluateLater, cleanup }) => {\n      let evaluator = evaluateLater(expression);\n      let oldValue = false;\n      let options = {\n        escapeDeactivates: false,\n        allowOutsideClick: true,\n        fallbackFocus: () => el\n      };\n      if (modifiers.includes(\"noautofocus\")) {\n        options.initialFocus = false;\n      } else {\n        let autofocusEl = el.querySelector(\"[autofocus]\");\n        if (autofocusEl)\n          options.initialFocus = autofocusEl;\n      }\n      let trap = createFocusTrap(el, options);\n      let undoInert = () => {\n      };\n      let undoDisableScrolling = () => {\n      };\n      const releaseFocus = () => {\n        undoInert();\n        undoInert = () => {\n        };\n        undoDisableScrolling();\n        undoDisableScrolling = () => {\n        };\n        trap.deactivate({\n          returnFocus: !modifiers.includes(\"noreturn\")\n        });\n      };\n      effect(() => evaluator((value) => {\n        if (oldValue === value)\n          return;\n        if (value && !oldValue) {\n          if (modifiers.includes(\"noscroll\"))\n            undoDisableScrolling = disableScrolling();\n          if (modifiers.includes(\"inert\"))\n            undoInert = setInert(el);\n          setTimeout(() => {\n            trap.activate();\n          }, 15);\n        }\n        if (!value && oldValue) {\n          releaseFocus();\n        }\n        oldValue = !!value;\n      }));\n      cleanup(releaseFocus);\n    },\n    // When cloning, we only want to add aria-hidden attributes to the\n    // DOM and not try to actually trap, as trapping can mess with the\n    // live DOM and isn't just isolated to the cloned DOM.\n    (el, { expression, modifiers }, { evaluate }) => {\n      if (modifiers.includes(\"inert\") && evaluate(expression))\n        setInert(el);\n    }\n  ));\n}\nfunction setInert(el) {\n  let undos = [];\n  crawlSiblingsUp(el, (sibling) => {\n    let cache = sibling.hasAttribute(\"aria-hidden\");\n    sibling.setAttribute(\"aria-hidden\", \"true\");\n    undos.push(() => cache || sibling.removeAttribute(\"aria-hidden\"));\n  });\n  return () => {\n    while (undos.length)\n      undos.pop()();\n  };\n}\nfunction crawlSiblingsUp(el, callback) {\n  if (el.isSameNode(document.body) || !el.parentNode)\n    return;\n  Array.from(el.parentNode.children).forEach((sibling) => {\n    if (sibling.isSameNode(el)) {\n      crawlSiblingsUp(el.parentNode, callback);\n    } else {\n      callback(sibling);\n    }\n  });\n}\nfunction disableScrolling() {\n  let overflow = document.documentElement.style.overflow;\n  let paddingRight = document.documentElement.style.paddingRight;\n  let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;\n  document.documentElement.style.overflow = \"hidden\";\n  document.documentElement.style.paddingRight = `${scrollbarWidth}px`;\n  return () => {\n    document.documentElement.style.overflow = overflow;\n    document.documentElement.style.paddingRight = paddingRight;\n  };\n}\n\n// packages/focus/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as focus\n};\n/*! Bundled license information:\n\ntabbable/dist/index.esm.js:\n  (*!\n  * tabbable 5.3.3\n  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE\n  *)\n\nfocus-trap/dist/focus-trap.esm.js:\n  (*!\n  * focus-trap 6.9.4\n  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE\n  *)\n*/\n", "// packages/persist/src/index.js\nfunction src_default(Alpine) {\n  let persist = () => {\n    let alias;\n    let storage;\n    try {\n      storage = localStorage;\n    } catch (e) {\n      console.error(e);\n      console.warn(\"Alpine: $persist is using temporary storage since localStorage is unavailable.\");\n      let dummy = /* @__PURE__ */ new Map();\n      storage = {\n        getItem: dummy.get.bind(dummy),\n        setItem: dummy.set.bind(dummy)\n      };\n    }\n    return Alpine.interceptor((initialValue, getter, setter, path, key) => {\n      let lookup = alias || `_x_${path}`;\n      let initial = storageHas(lookup, storage) ? storageGet(lookup, storage) : initialValue;\n      setter(initial);\n      Alpine.effect(() => {\n        let value = getter();\n        storageSet(lookup, value, storage);\n        setter(value);\n      });\n      return initial;\n    }, (func) => {\n      func.as = (key) => {\n        alias = key;\n        return func;\n      }, func.using = (target) => {\n        storage = target;\n        return func;\n      };\n    });\n  };\n  Object.defineProperty(Alpine, \"$persist\", { get: () => persist() });\n  Alpine.magic(\"persist\", persist);\n  Alpine.persist = (key, { get, set }, storage = localStorage) => {\n    let initial = storageHas(key, storage) ? storageGet(key, storage) : get();\n    set(initial);\n    Alpine.effect(() => {\n      let value = get();\n      storageSet(key, value, storage);\n      set(value);\n    });\n  };\n}\nfunction storageHas(key, storage) {\n  return storage.getItem(key) !== null;\n}\nfunction storageGet(key, storage) {\n  return JSON.parse(storage.getItem(key, storage));\n}\nfunction storageSet(key, value, storage) {\n  storage.setItem(key, JSON.stringify(value));\n}\n\n// packages/persist/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as persist\n};\n", "// packages/intersect/src/index.js\nfunction src_default(Alpine) {\n  Alpine.directive(\"intersect\", Alpine.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => {\n    let evaluate = evaluateLater(expression);\n    let options = {\n      rootMargin: getRootMargin(modifiers),\n      threshold: getThreshold(modifiers)\n    };\n    let observer = new IntersectionObserver((entries) => {\n      entries.forEach((entry) => {\n        if (entry.isIntersecting === (value === \"leave\"))\n          return;\n        evaluate();\n        modifiers.includes(\"once\") && observer.disconnect();\n      });\n    }, options);\n    observer.observe(el);\n    cleanup(() => {\n      observer.disconnect();\n    });\n  }));\n}\nfunction getThreshold(modifiers) {\n  if (modifiers.includes(\"full\"))\n    return 0.99;\n  if (modifiers.includes(\"half\"))\n    return 0.5;\n  if (!modifiers.includes(\"threshold\"))\n    return 0;\n  let threshold = modifiers[modifiers.indexOf(\"threshold\") + 1];\n  if (threshold === \"100\")\n    return 1;\n  if (threshold === \"0\")\n    return 0;\n  return Number(`.${threshold}`);\n}\nfunction getLengthValue(rawValue) {\n  let match = rawValue.match(/^(-?[0-9]+)(px|%)?$/);\n  return match ? match[1] + (match[2] || \"px\") : void 0;\n}\nfunction getRootMargin(modifiers) {\n  const key = \"margin\";\n  const fallback = \"0px 0px 0px 0px\";\n  const index = modifiers.indexOf(key);\n  if (index === -1)\n    return fallback;\n  let values = [];\n  for (let i = 1; i < 5; i++) {\n    values.push(getLengthValue(modifiers[index + i] || \"\"));\n  }\n  values = values.filter((v) => v !== void 0);\n  return values.length ? values.join(\" \").trim() : fallback;\n}\n\n// packages/intersect/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as intersect\n};\n", "// node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs\nvar min = Math.min;\nvar max = Math.max;\nvar round = Math.round;\nvar floor = Math.floor;\nvar createCoords = (v) => ({\n  x: v,\n  y: v\n});\nvar oppositeSideMap = {\n  left: \"right\",\n  right: \"left\",\n  bottom: \"top\",\n  top: \"bottom\"\n};\nvar oppositeAlignmentMap = {\n  start: \"end\",\n  end: \"start\"\n};\nfunction clamp(start, value, end) {\n  return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n  return typeof value === \"function\" ? value(param) : value;\n}\nfunction getSide(placement) {\n  return placement.split(\"-\")[0];\n}\nfunction getAlignment(placement) {\n  return placement.split(\"-\")[1];\n}\nfunction getOppositeAxis(axis) {\n  return axis === \"x\" ? \"y\" : \"x\";\n}\nfunction getAxisLength(axis) {\n  return axis === \"y\" ? \"height\" : \"width\";\n}\nfunction getSideAxis(placement) {\n  return [\"top\", \"bottom\"].includes(getSide(placement)) ? \"y\" : \"x\";\n}\nfunction getAlignmentAxis(placement) {\n  return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n  if (rtl === void 0) {\n    rtl = false;\n  }\n  const alignment = getAlignment(placement);\n  const alignmentAxis = getAlignmentAxis(placement);\n  const length = getAxisLength(alignmentAxis);\n  let mainAlignmentSide = alignmentAxis === \"x\" ? alignment === (rtl ? \"end\" : \"start\") ? \"right\" : \"left\" : alignment === \"start\" ? \"bottom\" : \"top\";\n  if (rects.reference[length] > rects.floating[length]) {\n    mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n  }\n  return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n  const oppositePlacement = getOppositePlacement(placement);\n  return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n  return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n  const lr = [\"left\", \"right\"];\n  const rl = [\"right\", \"left\"];\n  const tb = [\"top\", \"bottom\"];\n  const bt = [\"bottom\", \"top\"];\n  switch (side) {\n    case \"top\":\n    case \"bottom\":\n      if (rtl)\n        return isStart ? rl : lr;\n      return isStart ? lr : rl;\n    case \"left\":\n    case \"right\":\n      return isStart ? tb : bt;\n    default:\n      return [];\n  }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n  const alignment = getAlignment(placement);\n  let list = getSideList(getSide(placement), direction === \"start\", rtl);\n  if (alignment) {\n    list = list.map((side) => side + \"-\" + alignment);\n    if (flipAlignment) {\n      list = list.concat(list.map(getOppositeAlignmentPlacement));\n    }\n  }\n  return list;\n}\nfunction getOppositePlacement(placement) {\n  return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n  return {\n    top: 0,\n    right: 0,\n    bottom: 0,\n    left: 0,\n    ...padding\n  };\n}\nfunction getPaddingObject(padding) {\n  return typeof padding !== \"number\" ? expandPaddingObject(padding) : {\n    top: padding,\n    right: padding,\n    bottom: padding,\n    left: padding\n  };\n}\nfunction rectToClientRect(rect) {\n  return {\n    ...rect,\n    top: rect.y,\n    left: rect.x,\n    right: rect.x + rect.width,\n    bottom: rect.y + rect.height\n  };\n}\n\n// node_modules/@floating-ui/core/dist/floating-ui.core.mjs\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n  let {\n    reference,\n    floating\n  } = _ref;\n  const sideAxis = getSideAxis(placement);\n  const alignmentAxis = getAlignmentAxis(placement);\n  const alignLength = getAxisLength(alignmentAxis);\n  const side = getSide(placement);\n  const isVertical = sideAxis === \"y\";\n  const commonX = reference.x + reference.width / 2 - floating.width / 2;\n  const commonY = reference.y + reference.height / 2 - floating.height / 2;\n  const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n  let coords;\n  switch (side) {\n    case \"top\":\n      coords = {\n        x: commonX,\n        y: reference.y - floating.height\n      };\n      break;\n    case \"bottom\":\n      coords = {\n        x: commonX,\n        y: reference.y + reference.height\n      };\n      break;\n    case \"right\":\n      coords = {\n        x: reference.x + reference.width,\n        y: commonY\n      };\n      break;\n    case \"left\":\n      coords = {\n        x: reference.x - floating.width,\n        y: commonY\n      };\n      break;\n    default:\n      coords = {\n        x: reference.x,\n        y: reference.y\n      };\n  }\n  switch (getAlignment(placement)) {\n    case \"start\":\n      coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n      break;\n    case \"end\":\n      coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n      break;\n  }\n  return coords;\n}\nvar computePosition = async (reference, floating, config) => {\n  const {\n    placement = \"bottom\",\n    strategy = \"absolute\",\n    middleware = [],\n    platform: platform2\n  } = config;\n  const validMiddleware = middleware.filter(Boolean);\n  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));\n  let rects = await platform2.getElementRects({\n    reference,\n    floating,\n    strategy\n  });\n  let {\n    x,\n    y\n  } = computeCoordsFromPlacement(rects, placement, rtl);\n  let statefulPlacement = placement;\n  let middlewareData = {};\n  let resetCount = 0;\n  for (let i = 0; i < validMiddleware.length; i++) {\n    const {\n      name,\n      fn\n    } = validMiddleware[i];\n    const {\n      x: nextX,\n      y: nextY,\n      data,\n      reset\n    } = await fn({\n      x,\n      y,\n      initialPlacement: placement,\n      placement: statefulPlacement,\n      strategy,\n      middlewareData,\n      rects,\n      platform: platform2,\n      elements: {\n        reference,\n        floating\n      }\n    });\n    x = nextX != null ? nextX : x;\n    y = nextY != null ? nextY : y;\n    middlewareData = {\n      ...middlewareData,\n      [name]: {\n        ...middlewareData[name],\n        ...data\n      }\n    };\n    if (reset && resetCount <= 50) {\n      resetCount++;\n      if (typeof reset === \"object\") {\n        if (reset.placement) {\n          statefulPlacement = reset.placement;\n        }\n        if (reset.rects) {\n          rects = reset.rects === true ? await platform2.getElementRects({\n            reference,\n            floating,\n            strategy\n          }) : reset.rects;\n        }\n        ({\n          x,\n          y\n        } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n      }\n      i = -1;\n      continue;\n    }\n  }\n  return {\n    x,\n    y,\n    placement: statefulPlacement,\n    strategy,\n    middlewareData\n  };\n};\nasync function detectOverflow(state, options) {\n  var _await$platform$isEle;\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    x,\n    y,\n    platform: platform2,\n    rects,\n    elements,\n    strategy\n  } = state;\n  const {\n    boundary = \"clippingAncestors\",\n    rootBoundary = \"viewport\",\n    elementContext = \"floating\",\n    altBoundary = false,\n    padding = 0\n  } = evaluate(options, state);\n  const paddingObject = getPaddingObject(padding);\n  const altContext = elementContext === \"floating\" ? \"reference\" : \"floating\";\n  const element = elements[altBoundary ? altContext : elementContext];\n  const clippingClientRect = rectToClientRect(await platform2.getClippingRect({\n    element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),\n    boundary,\n    rootBoundary,\n    strategy\n  }));\n  const rect = elementContext === \"floating\" ? {\n    ...rects.floating,\n    x,\n    y\n  } : rects.reference;\n  const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));\n  const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {\n    x: 1,\n    y: 1\n  } : {\n    x: 1,\n    y: 1\n  };\n  const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({\n    rect,\n    offsetParent,\n    strategy\n  }) : rect);\n  return {\n    top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n    bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n    left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n    right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n  };\n}\nvar flip = function(options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: \"flip\",\n    options,\n    async fn(state) {\n      var _middlewareData$arrow, _middlewareData$flip;\n      const {\n        placement,\n        middlewareData,\n        rects,\n        initialPlacement,\n        platform: platform2,\n        elements\n      } = state;\n      const {\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = true,\n        fallbackPlacements: specifiedFallbackPlacements,\n        fallbackStrategy = \"bestFit\",\n        fallbackAxisSideDirection = \"none\",\n        flipAlignment = true,\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n        return {};\n      }\n      const side = getSide(placement);\n      const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n      const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));\n      const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n      if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== \"none\") {\n        fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n      }\n      const placements2 = [initialPlacement, ...fallbackPlacements];\n      const overflow = await detectOverflow(state, detectOverflowOptions);\n      const overflows = [];\n      let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n      if (checkMainAxis) {\n        overflows.push(overflow[side]);\n      }\n      if (checkCrossAxis) {\n        const sides2 = getAlignmentSides(placement, rects, rtl);\n        overflows.push(overflow[sides2[0]], overflow[sides2[1]]);\n      }\n      overflowsData = [...overflowsData, {\n        placement,\n        overflows\n      }];\n      if (!overflows.every((side2) => side2 <= 0)) {\n        var _middlewareData$flip2, _overflowsData$filter;\n        const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n        const nextPlacement = placements2[nextIndex];\n        if (nextPlacement) {\n          return {\n            data: {\n              index: nextIndex,\n              overflows: overflowsData\n            },\n            reset: {\n              placement: nextPlacement\n            }\n          };\n        }\n        let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n        if (!resetPlacement) {\n          switch (fallbackStrategy) {\n            case \"bestFit\": {\n              var _overflowsData$map$so;\n              const placement2 = (_overflowsData$map$so = overflowsData.map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];\n              if (placement2) {\n                resetPlacement = placement2;\n              }\n              break;\n            }\n            case \"initialPlacement\":\n              resetPlacement = initialPlacement;\n              break;\n          }\n        }\n        if (placement !== resetPlacement) {\n          return {\n            reset: {\n              placement: resetPlacement\n            }\n          };\n        }\n      }\n      return {};\n    }\n  };\n};\nasync function convertValueToCoords(state, options) {\n  const {\n    placement,\n    platform: platform2,\n    elements\n  } = state;\n  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));\n  const side = getSide(placement);\n  const alignment = getAlignment(placement);\n  const isVertical = getSideAxis(placement) === \"y\";\n  const mainAxisMulti = [\"left\", \"top\"].includes(side) ? -1 : 1;\n  const crossAxisMulti = rtl && isVertical ? -1 : 1;\n  const rawValue = evaluate(options, state);\n  let {\n    mainAxis,\n    crossAxis,\n    alignmentAxis\n  } = typeof rawValue === \"number\" ? {\n    mainAxis: rawValue,\n    crossAxis: 0,\n    alignmentAxis: null\n  } : {\n    mainAxis: 0,\n    crossAxis: 0,\n    alignmentAxis: null,\n    ...rawValue\n  };\n  if (alignment && typeof alignmentAxis === \"number\") {\n    crossAxis = alignment === \"end\" ? alignmentAxis * -1 : alignmentAxis;\n  }\n  return isVertical ? {\n    x: crossAxis * crossAxisMulti,\n    y: mainAxis * mainAxisMulti\n  } : {\n    x: mainAxis * mainAxisMulti,\n    y: crossAxis * crossAxisMulti\n  };\n}\nvar offset = function(options) {\n  if (options === void 0) {\n    options = 0;\n  }\n  return {\n    name: \"offset\",\n    options,\n    async fn(state) {\n      const {\n        x,\n        y\n      } = state;\n      const diffCoords = await convertValueToCoords(state, options);\n      return {\n        x: x + diffCoords.x,\n        y: y + diffCoords.y,\n        data: diffCoords\n      };\n    }\n  };\n};\nvar shift = function(options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: \"shift\",\n    options,\n    async fn(state) {\n      const {\n        x,\n        y,\n        placement\n      } = state;\n      const {\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = false,\n        limiter = {\n          fn: (_ref) => {\n            let {\n              x: x2,\n              y: y2\n            } = _ref;\n            return {\n              x: x2,\n              y: y2\n            };\n          }\n        },\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      const coords = {\n        x,\n        y\n      };\n      const overflow = await detectOverflow(state, detectOverflowOptions);\n      const crossAxis = getSideAxis(getSide(placement));\n      const mainAxis = getOppositeAxis(crossAxis);\n      let mainAxisCoord = coords[mainAxis];\n      let crossAxisCoord = coords[crossAxis];\n      if (checkMainAxis) {\n        const minSide = mainAxis === \"y\" ? \"top\" : \"left\";\n        const maxSide = mainAxis === \"y\" ? \"bottom\" : \"right\";\n        const min2 = mainAxisCoord + overflow[minSide];\n        const max2 = mainAxisCoord - overflow[maxSide];\n        mainAxisCoord = clamp(min2, mainAxisCoord, max2);\n      }\n      if (checkCrossAxis) {\n        const minSide = crossAxis === \"y\" ? \"top\" : \"left\";\n        const maxSide = crossAxis === \"y\" ? \"bottom\" : \"right\";\n        const min2 = crossAxisCoord + overflow[minSide];\n        const max2 = crossAxisCoord - overflow[maxSide];\n        crossAxisCoord = clamp(min2, crossAxisCoord, max2);\n      }\n      const limitedCoords = limiter.fn({\n        ...state,\n        [mainAxis]: mainAxisCoord,\n        [crossAxis]: crossAxisCoord\n      });\n      return {\n        ...limitedCoords,\n        data: {\n          x: limitedCoords.x - x,\n          y: limitedCoords.y - y\n        }\n      };\n    }\n  };\n};\n\n// node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs\nfunction getNodeName(node) {\n  if (isNode(node)) {\n    return (node.nodeName || \"\").toLowerCase();\n  }\n  return \"#document\";\n}\nfunction getWindow(node) {\n  var _node$ownerDocument;\n  return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n  var _ref;\n  return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n  return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n  return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n  return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n  if (typeof ShadowRoot === \"undefined\") {\n    return false;\n  }\n  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n  const {\n    overflow,\n    overflowX,\n    overflowY,\n    display\n  } = getComputedStyle(element);\n  return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && ![\"inline\", \"contents\"].includes(display);\n}\nfunction isTableElement(element) {\n  return [\"table\", \"td\", \"th\"].includes(getNodeName(element));\n}\nfunction isContainingBlock(element) {\n  const webkit = isWebKit();\n  const css = getComputedStyle(element);\n  return css.transform !== \"none\" || css.perspective !== \"none\" || (css.containerType ? css.containerType !== \"normal\" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== \"none\" : false) || !webkit && (css.filter ? css.filter !== \"none\" : false) || [\"transform\", \"perspective\", \"filter\"].some((value) => (css.willChange || \"\").includes(value)) || [\"paint\", \"layout\", \"strict\", \"content\"].some((value) => (css.contain || \"\").includes(value));\n}\nfunction getContainingBlock(element) {\n  let currentNode = getParentNode(element);\n  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n    if (isContainingBlock(currentNode)) {\n      return currentNode;\n    } else {\n      currentNode = getParentNode(currentNode);\n    }\n  }\n  return null;\n}\nfunction isWebKit() {\n  if (typeof CSS === \"undefined\" || !CSS.supports)\n    return false;\n  return CSS.supports(\"-webkit-backdrop-filter\", \"none\");\n}\nfunction isLastTraversableNode(node) {\n  return [\"html\", \"body\", \"#document\"].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n  return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n  if (isElement(element)) {\n    return {\n      scrollLeft: element.scrollLeft,\n      scrollTop: element.scrollTop\n    };\n  }\n  return {\n    scrollLeft: element.pageXOffset,\n    scrollTop: element.pageYOffset\n  };\n}\nfunction getParentNode(node) {\n  if (getNodeName(node) === \"html\") {\n    return node;\n  }\n  const result = (\n    // Step into the shadow DOM of the parent of a slotted node.\n    node.assignedSlot || // DOM Element detected.\n    node.parentNode || // ShadowRoot detected.\n    isShadowRoot(node) && node.host || // Fallback.\n    getDocumentElement(node)\n  );\n  return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n  const parentNode = getParentNode(node);\n  if (isLastTraversableNode(parentNode)) {\n    return node.ownerDocument ? node.ownerDocument.body : node.body;\n  }\n  if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n    return parentNode;\n  }\n  return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n  var _node$ownerDocument2;\n  if (list === void 0) {\n    list = [];\n  }\n  if (traverseIframes === void 0) {\n    traverseIframes = true;\n  }\n  const scrollableAncestor = getNearestOverflowAncestor(node);\n  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n  const win = getWindow(scrollableAncestor);\n  if (isBody) {\n    return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);\n  }\n  return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\n\n// node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs\nfunction getCssDimensions(element) {\n  const css = getComputedStyle(element);\n  let width = parseFloat(css.width) || 0;\n  let height = parseFloat(css.height) || 0;\n  const hasOffset = isHTMLElement(element);\n  const offsetWidth = hasOffset ? element.offsetWidth : width;\n  const offsetHeight = hasOffset ? element.offsetHeight : height;\n  const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n  if (shouldFallback) {\n    width = offsetWidth;\n    height = offsetHeight;\n  }\n  return {\n    width,\n    height,\n    $: shouldFallback\n  };\n}\nfunction unwrapElement(element) {\n  return !isElement(element) ? element.contextElement : element;\n}\nfunction getScale(element) {\n  const domElement = unwrapElement(element);\n  if (!isHTMLElement(domElement)) {\n    return createCoords(1);\n  }\n  const rect = domElement.getBoundingClientRect();\n  const {\n    width,\n    height,\n    $\n  } = getCssDimensions(domElement);\n  let x = ($ ? round(rect.width) : rect.width) / width;\n  let y = ($ ? round(rect.height) : rect.height) / height;\n  if (!x || !Number.isFinite(x)) {\n    x = 1;\n  }\n  if (!y || !Number.isFinite(y)) {\n    y = 1;\n  }\n  return {\n    x,\n    y\n  };\n}\nvar noOffsets = /* @__PURE__ */ createCoords(0);\nfunction getVisualOffsets(element) {\n  const win = getWindow(element);\n  if (!isWebKit() || !win.visualViewport) {\n    return noOffsets;\n  }\n  return {\n    x: win.visualViewport.offsetLeft,\n    y: win.visualViewport.offsetTop\n  };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n  if (isFixed === void 0) {\n    isFixed = false;\n  }\n  if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n    return false;\n  }\n  return isFixed;\n}\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n  if (includeScale === void 0) {\n    includeScale = false;\n  }\n  if (isFixedStrategy === void 0) {\n    isFixedStrategy = false;\n  }\n  const clientRect = element.getBoundingClientRect();\n  const domElement = unwrapElement(element);\n  let scale = createCoords(1);\n  if (includeScale) {\n    if (offsetParent) {\n      if (isElement(offsetParent)) {\n        scale = getScale(offsetParent);\n      }\n    } else {\n      scale = getScale(element);\n    }\n  }\n  const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n  let x = (clientRect.left + visualOffsets.x) / scale.x;\n  let y = (clientRect.top + visualOffsets.y) / scale.y;\n  let width = clientRect.width / scale.x;\n  let height = clientRect.height / scale.y;\n  if (domElement) {\n    const win = getWindow(domElement);\n    const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n    let currentIFrame = win.frameElement;\n    while (currentIFrame && offsetParent && offsetWin !== win) {\n      const iframeScale = getScale(currentIFrame);\n      const iframeRect = currentIFrame.getBoundingClientRect();\n      const css = getComputedStyle(currentIFrame);\n      const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n      const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n      x *= iframeScale.x;\n      y *= iframeScale.y;\n      width *= iframeScale.x;\n      height *= iframeScale.y;\n      x += left;\n      y += top;\n      currentIFrame = getWindow(currentIFrame).frameElement;\n    }\n  }\n  return rectToClientRect({\n    width,\n    height,\n    x,\n    y\n  });\n}\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n  let {\n    rect,\n    offsetParent,\n    strategy\n  } = _ref;\n  const isOffsetParentAnElement = isHTMLElement(offsetParent);\n  const documentElement = getDocumentElement(offsetParent);\n  if (offsetParent === documentElement) {\n    return rect;\n  }\n  let scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  let scale = createCoords(1);\n  const offsets = createCoords(0);\n  if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== \"fixed\") {\n    if (getNodeName(offsetParent) !== \"body\" || isOverflowElement(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n    if (isHTMLElement(offsetParent)) {\n      const offsetRect = getBoundingClientRect(offsetParent);\n      scale = getScale(offsetParent);\n      offsets.x = offsetRect.x + offsetParent.clientLeft;\n      offsets.y = offsetRect.y + offsetParent.clientTop;\n    }\n  }\n  return {\n    width: rect.width * scale.x,\n    height: rect.height * scale.y,\n    x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,\n    y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y\n  };\n}\nfunction getClientRects(element) {\n  return Array.from(element.getClientRects());\n}\nfunction getWindowScrollBarX(element) {\n  return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;\n}\nfunction getDocumentRect(element) {\n  const html = getDocumentElement(element);\n  const scroll = getNodeScroll(element);\n  const body = element.ownerDocument.body;\n  const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n  const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n  let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n  const y = -scroll.scrollTop;\n  if (getComputedStyle(body).direction === \"rtl\") {\n    x += max(html.clientWidth, body.clientWidth) - width;\n  }\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getViewportRect(element, strategy) {\n  const win = getWindow(element);\n  const html = getDocumentElement(element);\n  const visualViewport = win.visualViewport;\n  let width = html.clientWidth;\n  let height = html.clientHeight;\n  let x = 0;\n  let y = 0;\n  if (visualViewport) {\n    width = visualViewport.width;\n    height = visualViewport.height;\n    const visualViewportBased = isWebKit();\n    if (!visualViewportBased || visualViewportBased && strategy === \"fixed\") {\n      x = visualViewport.offsetLeft;\n      y = visualViewport.offsetTop;\n    }\n  }\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getInnerBoundingClientRect(element, strategy) {\n  const clientRect = getBoundingClientRect(element, true, strategy === \"fixed\");\n  const top = clientRect.top + element.clientTop;\n  const left = clientRect.left + element.clientLeft;\n  const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n  const width = element.clientWidth * scale.x;\n  const height = element.clientHeight * scale.y;\n  const x = left * scale.x;\n  const y = top * scale.y;\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n  let rect;\n  if (clippingAncestor === \"viewport\") {\n    rect = getViewportRect(element, strategy);\n  } else if (clippingAncestor === \"document\") {\n    rect = getDocumentRect(getDocumentElement(element));\n  } else if (isElement(clippingAncestor)) {\n    rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n  } else {\n    const visualOffsets = getVisualOffsets(element);\n    rect = {\n      ...clippingAncestor,\n      x: clippingAncestor.x - visualOffsets.x,\n      y: clippingAncestor.y - visualOffsets.y\n    };\n  }\n  return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n  const parentNode = getParentNode(element);\n  if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n    return false;\n  }\n  return getComputedStyle(parentNode).position === \"fixed\" || hasFixedPositionAncestor(parentNode, stopNode);\n}\nfunction getClippingElementAncestors(element, cache) {\n  const cachedResult = cache.get(element);\n  if (cachedResult) {\n    return cachedResult;\n  }\n  let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== \"body\");\n  let currentContainingBlockComputedStyle = null;\n  const elementIsFixed = getComputedStyle(element).position === \"fixed\";\n  let currentNode = elementIsFixed ? getParentNode(element) : element;\n  while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n    const computedStyle = getComputedStyle(currentNode);\n    const currentNodeIsContaining = isContainingBlock(currentNode);\n    if (!currentNodeIsContaining && computedStyle.position === \"fixed\") {\n      currentContainingBlockComputedStyle = null;\n    }\n    const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === \"static\" && !!currentContainingBlockComputedStyle && [\"absolute\", \"fixed\"].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n    if (shouldDropCurrentNode) {\n      result = result.filter((ancestor) => ancestor !== currentNode);\n    } else {\n      currentContainingBlockComputedStyle = computedStyle;\n    }\n    currentNode = getParentNode(currentNode);\n  }\n  cache.set(element, result);\n  return result;\n}\nfunction getClippingRect(_ref) {\n  let {\n    element,\n    boundary,\n    rootBoundary,\n    strategy\n  } = _ref;\n  const elementClippingAncestors = boundary === \"clippingAncestors\" ? getClippingElementAncestors(element, this._c) : [].concat(boundary);\n  const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n  const firstClippingAncestor = clippingAncestors[0];\n  const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n    const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n    accRect.top = max(rect.top, accRect.top);\n    accRect.right = min(rect.right, accRect.right);\n    accRect.bottom = min(rect.bottom, accRect.bottom);\n    accRect.left = max(rect.left, accRect.left);\n    return accRect;\n  }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n  return {\n    width: clippingRect.right - clippingRect.left,\n    height: clippingRect.bottom - clippingRect.top,\n    x: clippingRect.left,\n    y: clippingRect.top\n  };\n}\nfunction getDimensions(element) {\n  return getCssDimensions(element);\n}\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n  const isOffsetParentAnElement = isHTMLElement(offsetParent);\n  const documentElement = getDocumentElement(offsetParent);\n  const isFixed = strategy === \"fixed\";\n  const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n  let scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  const offsets = createCoords(0);\n  if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n    if (getNodeName(offsetParent) !== \"body\" || isOverflowElement(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n    if (isOffsetParentAnElement) {\n      const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n      offsets.x = offsetRect.x + offsetParent.clientLeft;\n      offsets.y = offsetRect.y + offsetParent.clientTop;\n    } else if (documentElement) {\n      offsets.x = getWindowScrollBarX(documentElement);\n    }\n  }\n  return {\n    x: rect.left + scroll.scrollLeft - offsets.x,\n    y: rect.top + scroll.scrollTop - offsets.y,\n    width: rect.width,\n    height: rect.height\n  };\n}\nfunction getTrueOffsetParent(element, polyfill) {\n  if (!isHTMLElement(element) || getComputedStyle(element).position === \"fixed\") {\n    return null;\n  }\n  if (polyfill) {\n    return polyfill(element);\n  }\n  return element.offsetParent;\n}\nfunction getOffsetParent(element, polyfill) {\n  const window2 = getWindow(element);\n  if (!isHTMLElement(element)) {\n    return window2;\n  }\n  let offsetParent = getTrueOffsetParent(element, polyfill);\n  while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === \"static\") {\n    offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n  }\n  if (offsetParent && (getNodeName(offsetParent) === \"html\" || getNodeName(offsetParent) === \"body\" && getComputedStyle(offsetParent).position === \"static\" && !isContainingBlock(offsetParent))) {\n    return window2;\n  }\n  return offsetParent || getContainingBlock(element) || window2;\n}\nvar getElementRects = async function(_ref) {\n  let {\n    reference,\n    floating,\n    strategy\n  } = _ref;\n  const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n  const getDimensionsFn = this.getDimensions;\n  return {\n    reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),\n    floating: {\n      x: 0,\n      y: 0,\n      ...await getDimensionsFn(floating)\n    }\n  };\n};\nfunction isRTL(element) {\n  return getComputedStyle(element).direction === \"rtl\";\n}\nvar platform = {\n  convertOffsetParentRelativeRectToViewportRelativeRect,\n  getDocumentElement,\n  getClippingRect,\n  getOffsetParent,\n  getElementRects,\n  getClientRects,\n  getDimensions,\n  getScale,\n  isElement,\n  isRTL\n};\nfunction observeMove(element, onMove) {\n  let io = null;\n  let timeoutId;\n  const root = getDocumentElement(element);\n  function cleanup() {\n    clearTimeout(timeoutId);\n    io && io.disconnect();\n    io = null;\n  }\n  function refresh(skip, threshold) {\n    if (skip === void 0) {\n      skip = false;\n    }\n    if (threshold === void 0) {\n      threshold = 1;\n    }\n    cleanup();\n    const {\n      left,\n      top,\n      width,\n      height\n    } = element.getBoundingClientRect();\n    if (!skip) {\n      onMove();\n    }\n    if (!width || !height) {\n      return;\n    }\n    const insetTop = floor(top);\n    const insetRight = floor(root.clientWidth - (left + width));\n    const insetBottom = floor(root.clientHeight - (top + height));\n    const insetLeft = floor(left);\n    const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n    const options = {\n      rootMargin,\n      threshold: max(0, min(1, threshold)) || 1\n    };\n    let isFirstUpdate = true;\n    function handleObserve(entries) {\n      const ratio = entries[0].intersectionRatio;\n      if (ratio !== threshold) {\n        if (!isFirstUpdate) {\n          return refresh();\n        }\n        if (!ratio) {\n          timeoutId = setTimeout(() => {\n            refresh(false, 1e-7);\n          }, 100);\n        } else {\n          refresh(false, ratio);\n        }\n      }\n      isFirstUpdate = false;\n    }\n    try {\n      io = new IntersectionObserver(handleObserve, {\n        ...options,\n        // Handle <iframe>s\n        root: root.ownerDocument\n      });\n    } catch (e) {\n      io = new IntersectionObserver(handleObserve, options);\n    }\n    io.observe(element);\n  }\n  refresh(true);\n  return cleanup;\n}\nfunction autoUpdate(reference, floating, update, options) {\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    ancestorScroll = true,\n    ancestorResize = true,\n    elementResize = typeof ResizeObserver === \"function\",\n    layoutShift = typeof IntersectionObserver === \"function\",\n    animationFrame = false\n  } = options;\n  const referenceEl = unwrapElement(reference);\n  const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];\n  ancestors.forEach((ancestor) => {\n    ancestorScroll && ancestor.addEventListener(\"scroll\", update, {\n      passive: true\n    });\n    ancestorResize && ancestor.addEventListener(\"resize\", update);\n  });\n  const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n  let reobserveFrame = -1;\n  let resizeObserver = null;\n  if (elementResize) {\n    resizeObserver = new ResizeObserver((_ref) => {\n      let [firstEntry] = _ref;\n      if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n        resizeObserver.unobserve(floating);\n        cancelAnimationFrame(reobserveFrame);\n        reobserveFrame = requestAnimationFrame(() => {\n          resizeObserver && resizeObserver.observe(floating);\n        });\n      }\n      update();\n    });\n    if (referenceEl && !animationFrame) {\n      resizeObserver.observe(referenceEl);\n    }\n    resizeObserver.observe(floating);\n  }\n  let frameId;\n  let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n  if (animationFrame) {\n    frameLoop();\n  }\n  function frameLoop() {\n    const nextRefRect = getBoundingClientRect(reference);\n    if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {\n      update();\n    }\n    prevRefRect = nextRefRect;\n    frameId = requestAnimationFrame(frameLoop);\n  }\n  update();\n  return () => {\n    ancestors.forEach((ancestor) => {\n      ancestorScroll && ancestor.removeEventListener(\"scroll\", update);\n      ancestorResize && ancestor.removeEventListener(\"resize\", update);\n    });\n    cleanupIo && cleanupIo();\n    resizeObserver && resizeObserver.disconnect();\n    resizeObserver = null;\n    if (animationFrame) {\n      cancelAnimationFrame(frameId);\n    }\n  };\n}\nvar computePosition2 = (reference, floating, options) => {\n  const cache = /* @__PURE__ */ new Map();\n  const mergedOptions = {\n    platform,\n    ...options\n  };\n  const platformWithCache = {\n    ...mergedOptions.platform,\n    _c: cache\n  };\n  return computePosition(reference, floating, {\n    ...mergedOptions,\n    platform: platformWithCache\n  });\n};\n\n// packages/anchor/src/index.js\nfunction src_default(Alpine) {\n  Alpine.magic(\"anchor\", (el) => {\n    if (!el._x_anchor)\n      throw \"Alpine: No x-anchor directive found on element using $anchor...\";\n    return el._x_anchor;\n  });\n  Alpine.interceptClone((from, to) => {\n    if (from && from._x_anchor && !to._x_anchor) {\n      to._x_anchor = from._x_anchor;\n    }\n  });\n  Alpine.directive(\"anchor\", Alpine.skipDuringClone(\n    (el, { expression, modifiers, value }, { cleanup, evaluate: evaluate2 }) => {\n      let { placement, offsetValue, unstyled } = getOptions(modifiers);\n      el._x_anchor = Alpine.reactive({ x: 0, y: 0 });\n      let reference = evaluate2(expression);\n      if (!reference)\n        throw \"Alpine: no element provided to x-anchor...\";\n      let compute = () => {\n        let previousValue;\n        computePosition2(reference, el, {\n          placement,\n          middleware: [flip(), shift({ padding: 5 }), offset(offsetValue)]\n        }).then(({ x, y }) => {\n          unstyled || setStyles(el, x, y);\n          if (JSON.stringify({ x, y }) !== previousValue) {\n            el._x_anchor.x = x;\n            el._x_anchor.y = y;\n          }\n          previousValue = JSON.stringify({ x, y });\n        });\n      };\n      let release = autoUpdate(reference, el, () => compute());\n      cleanup(() => release());\n    },\n    // When cloning (or \"morphing\"), we will graft the style and position data from the live tree...\n    (el, { expression, modifiers, value }, { cleanup, evaluate: evaluate2 }) => {\n      let { placement, offsetValue, unstyled } = getOptions(modifiers);\n      if (el._x_anchor) {\n        unstyled || setStyles(el, el._x_anchor.x, el._x_anchor.y);\n      }\n    }\n  ));\n}\nfunction setStyles(el, x, y) {\n  Object.assign(el.style, {\n    left: x + \"px\",\n    top: y + \"px\",\n    position: \"absolute\"\n  });\n}\nfunction getOptions(modifiers) {\n  let positions = [\"top\", \"top-start\", \"top-end\", \"right\", \"right-start\", \"right-end\", \"bottom\", \"bottom-start\", \"bottom-end\", \"left\", \"left-start\", \"left-end\"];\n  let placement = positions.find((i) => modifiers.includes(i));\n  let offsetValue = 0;\n  if (modifiers.includes(\"offset\")) {\n    let idx = modifiers.findIndex((i) => i === \"offset\");\n    offsetValue = modifiers[idx + 1] !== void 0 ? Number(modifiers[idx + 1]) : offsetValue;\n  }\n  let unstyled = modifiers.includes(\"no-style\");\n  return { placement, offsetValue, unstyled };\n}\n\n// packages/anchor/builds/module.js\nvar module_default = src_default;\nexport {\n  src_default as anchor,\n  module_default as default\n};\n", "\nexport function updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks() {\n    // Create a history state entry for the initial page load.\n    // (This is so later hitting back can restore this page).\n    let url = new URL(window.location.href, document.baseURI)\n\n    replaceUrl(url, document.documentElement.outerHTML)\n}\n\nexport function whenTheBackOrForwardButtonIsClicked(callback) {\n    window.addEventListener('popstate', e => {\n        let state = e.state || {}\n\n        let alpine = state.alpine || {}\n\n        if (! alpine._html) return\n\n        let html = fromSessionStorage(alpine._html)\n\n        callback(html)\n    })\n}\n\nexport function updateUrlAndStoreLatestHtmlForFutureBackButtons(html, destination) {\n    pushUrl(destination, html)\n}\n\nexport function pushUrl(url, html) {\n    updateUrl('pushState', url, html)\n}\n\nexport function replaceUrl(url, html) {\n    updateUrl('replaceState', url, html)\n}\n\nfunction updateUrl(method, url, html) {\n    let key = (new Date).getTime()\n\n    tryToStoreInSession(key, html)\n\n    let state = history.state || {}\n\n    if (! state.alpine) state.alpine = {}\n\n    state.alpine._html = key\n\n    try {\n        // 640k character limit:\n        history[method](state, document.title, url)\n    } catch (error) {\n        if (error instanceof DOMException && error.name === 'SecurityError') {\n            console.error('Livewire: You can\\'t use wire:navigate with a link to a different root domain: '+url)\n        }\n\n        console.error(error)\n    }\n}\n\nexport function fromSessionStorage(timestamp) {\n    let state = JSON.parse(sessionStorage.getItem('alpine:'+timestamp))\n\n    return state\n}\n\nfunction tryToStoreInSession(timestamp, value) {\n    // sessionStorage has a max storage limit (usally 5MB).\n    // If we meet that limit, we'll start removing entries\n    // (oldest first), until there's enough space to store\n    // the new one.\n    try {\n        sessionStorage.setItem('alpine:'+timestamp, JSON.stringify(value))\n    } catch (error) {\n        // 22 is Chrome, 1-14 is other browsers.\n        if (! [22, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14].includes(error.code)) return\n\n        let oldestTimestamp = Object.keys(sessionStorage)\n            .map(key => Number(key.replace('alpine:', '')))\n            .sort()\n            .shift()\n\n        if (! oldestTimestamp) return\n\n        sessionStorage.removeItem('alpine:'+oldestTimestamp)\n\n        tryToStoreInSession(timestamp, value)\n    }\n}\n", "\nexport function whenThisLinkIsPressed(el, callback) {\n    let isProgrammaticClick = e => ! e.isTrusted\n    let isNotPlainLeftClick = e => (e.which > 1) || (e.altKey) || (e.ctrlKey) || (e.metaKey) || (e.shiftKey)\n    let isNotPlainEnterKey = (e) => (e.which !== 13) || (e.altKey) || (e.ctrlKey) || (e.metaKey) || (e.shiftKey)\n\n    el.addEventListener('click', e => {\n        // This allows programmatic clicking of links via: `$0.click()`...\n        if (isProgrammaticClick(e)) {\n            e.preventDefault()\n\n            callback(whenReleased => whenReleased())\n\n            return\n        }\n\n        // This allows cmd+click and such to still work as expected...\n        if (isNotPlainLeftClick(e)) return;\n\n        // If it's a plain left click, we want to prevent \"click\" and let \"mouseup\" do its thing...\n        e.preventDefault()\n    })\n\n    el.addEventListener('mousedown', e => {\n        // We only care about left clicks for wire:navigate...\n        if (isNotPlainLeftClick(e)) return;\n\n        e.preventDefault()\n\n        callback((whenReleased) => {\n            let handler = e => {\n                e.preventDefault()\n\n                whenReleased()\n\n                el.removeEventListener('mouseup', handler)\n            }\n\n            el.addEventListener('mouseup', handler)\n        })\n    })\n\n    el.addEventListener(\"keydown\", e => {\n        // We only care about the enter key...\n        if (isNotPlainEnterKey(e)) return;\n\n        e.preventDefault()\n\n        callback(whenReleased => whenReleased())\n    })\n}\n\nexport function whenThisLinkIsHoveredFor(el, ms = 60, callback) {\n    el.addEventListener('mouseenter', e => {\n        let timeout = setTimeout(() => {\n            callback(e)\n        }, ms)\n\n        let handler = () => {\n            clearTimeout(timeout)\n            el.removeEventListener('mouseleave', handler)\n        }\n\n        el.addEventListener('mouseleave', handler)\n    })\n}\n\nexport function extractDestinationFromLink(linkEl) {\n    return createUrlObjectFromString(linkEl.getAttribute('href'))\n}\n\nexport function createUrlObjectFromString(urlString) {\n    return new URL(urlString, document.baseURI)\n}\n", "import { trigger } from \"@/hooks\"\nimport { createUrlObjectFromString } from \"./links\"\n\nexport function fetchHtml(destination, callback) {\n    let uri = destination.pathname + destination.search\n\n    performFetch(uri, (html, finalDestination) => {\n        callback(html, finalDestination)\n    })\n}\n\nexport function performFetch(uri, callback) {\n    let options = {\n        headers: {\n            'X-Livewire-Navigate': ''\n        }\n    }\n\n    trigger('navigate.request', {\n        url: uri,\n        options,\n    })\n\n    let finalDestination\n\n    fetch(uri, options).then(response => {\n        finalDestination = createUrlObjectFromString(response.url)\n\n        return response.text()\n    }).then(html => {\n        callback(html, finalDestination)\n    });\n}\n", "import { performFetch } from \"@/plugins/navigate/fetch\";\n\n// Warning: this could cause some memory leaks\nlet prefetches = {}\n\nexport function prefetchHtml(destination, callback) {\n    let path = destination.pathname\n\n    if (prefetches[path]) return\n\n    prefetches[path] = { finished: false, html: null, whenFinished: () => {} }\n\n    performFetch(path, (html, routedUri) => {\n        callback(html, routedUri)\n    })\n}\n\nexport function storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination) {\n    let state = prefetches[destination.pathname]\n    state.html = html\n    state.finished = true\n    state.finalDestination = finalDestination\n    state.whenFinished()\n}\n\nexport function getPretchedHtmlOr(destination, receive, ifNoPrefetchExists) {\n    let uri = destination.pathname + destination.search\n\n    if (! prefetches[uri]) return ifNoPrefetchExists()\n\n    if (prefetches[uri].finished) {\n        let html = prefetches[uri].html\n        let finalDestination = prefetches[uri].finalDestination\n\n        delete prefetches[uri]\n\n        return receive(html, finalDestination)\n    } else {\n        prefetches[uri].whenFinished = () => {\n            let html = prefetches[uri].html\n            let finalDestination = prefetches[uri].finalDestination\n\n            delete prefetches[uri]\n\n            receive(html, finalDestination)\n        }\n    }\n}\n\n", "import Alpine from \"alpinejs\"\n\nexport function packUpPersistedTeleports(persistedEl) {\n    // Persisted elements get removed from the DOM and then re-added later. We need to do the same\n    // with any `x-teleport`ed elements...\n    Alpine.mutateDom(() => {\n        persistedEl.querySelectorAll('[data-teleport-template]').forEach(i => i._x_teleport.remove())\n    })\n}\n\nexport function removeAnyLeftOverStaleTeleportTargets(body) {\n    // We need to remove any left-over teleported elements form the page\n    // as they are stale and will be re-initialized when Alpine boots up on this page...\n    Alpine.mutateDom(() => {\n        body.querySelectorAll('[data-teleport-target]').forEach(i => i.remove())\n    })\n}\n\nexport function unPackPersistedTeleports(persistedEl) {\n    // Before we put back any persisted elements, we're going to\n    // find any \"x-teleports\" and put their targets back on the page...\n    Alpine.walk(persistedEl, (el, skip) => {\n        if (! el._x_teleport) return;\n\n        el._x_teleportPutBack()\n\n        skip()\n    })\n}\n\nexport function isTeleportTarget(el) {\n    return el.hasAttribute('data-teleport-target')\n}\n", "\nexport function storeScrollInformationInHtmlBeforeNavigatingAway() {\n    document.body.setAttribute('data-scroll-x', document.body.scrollLeft)\n    document.body.setAttribute('data-scroll-y', document.body.scrollTop)\n\n    document.querySelectorAll(['[x-navigate\\\\:scroll]', '[wire\\\\:scroll]']).forEach(el => {\n        el.setAttribute('data-scroll-x', el.scrollLeft)\n        el.setAttribute('data-scroll-y', el.scrollTop)\n    })\n}\n\nexport function restoreScrollPositionOrScrollToTop() {\n    let scroll = el => {\n        if (! el.hasAttribute('data-scroll-x')) {\n            window.scrollTo({ top: 0, left: 0, behavior: 'instant' })\n        } else {\n            el.scrollTo({\n                top: Number(el.getAttribute('data-scroll-y')),\n                left: Number(el.getAttribute('data-scroll-x')),\n                behavior: 'instant',\n            })\n            el.removeAttribute('data-scroll-x')\n            el.removeAttribute('data-scroll-y')\n        }\n    }\n\n    queueMicrotask(() => {\n        scroll(document.body)\n\n        document.querySelectorAll(['[x-navigate\\\\:scroll]', '[wire\\\\:scroll]']).forEach(scroll)\n    })\n}\n", "import Alpine from 'alpinejs'\n\nlet els = {}\n\nexport function storePersistantElementsForLater(callback) {\n    els = {}\n\n    document.querySelectorAll('[x-persist]').forEach(i => {\n        els[i.getAttribute('x-persist')] = i\n\n        callback(i)\n\n        Alpine.mutateDom(() => {\n            i.remove()\n        })\n    })\n}\n\nexport function putPersistantElementsBack(callback) {\n    let usedPersists = []\n\n    document.querySelectorAll('[x-persist]').forEach(i => {\n        let old = els[i.getAttribute('x-persist')]\n\n        // There might be a brand new x-persist element...\n        if (! old) return\n\n        usedPersists.push(i.getAttribute('x-persist'))\n\n        old._x_wasPersisted = true\n\n        callback(old, i)\n\n        Alpine.mutateDom(() => {\n            i.replaceWith(old)\n        })\n    })\n\n    Object.entries(els).forEach(([key, el]) => {\n        if (usedPersists.includes(key)) return\n\n        // Destory the un-used persist DOM trees before releasing them...\n        Alpine.destroyTree(el)\n    })\n\n    // Release unused persists for garbage collection...\n    els = {}\n}\n\nexport function isPersistedElement(el) {\n    return el.hasAttribute('x-persist')\n}\n", "import NProgress from 'nprogress'\nimport { getNonce } from '@/utils'\n\nNProgress.configure({\n    minimum: 0.1,\n    trickleSpeed: 200,\n    showSpinner: false,\n})\n\ninjectStyles()\n\nlet inProgress = false\nexport function showAndStartProgressBar() {\n    inProgress = true\n    // Only show progress bar if it's been a little bit...\n    setTimeout(() => {\n        if (! inProgress) return\n        NProgress.start()\n    }, 150)\n\n    // createBar()\n\n    // incrementBar()\n}\n\nexport function finishAndHideProgressBar() {\n    inProgress = false\n    NProgress.done()\n    NProgress.remove()\n\n    // finishProgressBar(); destroyBar()\n}\n\nfunction createBar() {\n    let bar = document.createElement('div')\n\n    bar.setAttribute('id', 'alpine-progress-bar')\n    bar.setAttribute('x-navigate:persist', 'alpine-progress-bar')\n    bar.setAttribute('style', `\n        width: 100%;\n        height: 5px;\n        background: black;\n        position: absolute;\n        top: 0;\n        left: 0;\n        right: 0;\n        transition: all 0.5s ease;\n        transform: scaleX(0);\n        transform-origin: left;\n    `)\n\n    document.body.appendChild(bar)\n\n    return bar\n}\n\nfunction incrementBar(goal = .1) {\n    let bar = document.getElementById('alpine-progress-bar')\n\n    if (! bar) return\n\n    let percentage = Number(bar.style.transform.match(/scaleX\\((.+)\\)/)[1])\n\n    if (percentage > 1) return\n\n    bar.style.transform = 'scaleX(' + goal + ')'\n\n    setTimeout(() => {\n        incrementBar(percentage + .1)\n    }, 50)\n}\n\nfunction finishProgressBar(callback) {\n    let bar = document.getElementById('alpine-progress-bar')\n    bar.style.transform = 'scaleX(1)'\n}\n\nfunction destroyBar() {\n    document.getElementById('alpine-progress-bar').remove()\n}\n\nfunction injectStyles() {\n    let style = document.createElement('style')\n    style.innerHTML = `/* Make clicks pass-through */\n\n    #nprogress {\n      pointer-events: none;\n    }\n\n    #nprogress .bar {\n      background: var(--livewire-progress-bar-color, #29d);\n\n      position: fixed;\n      z-index: 1031;\n      top: 0;\n      left: 0;\n\n      width: 100%;\n      height: 2px;\n    }\n\n    /* Fancy blur effect */\n    #nprogress .peg {\n      display: block;\n      position: absolute;\n      right: 0px;\n      width: 100px;\n      height: 100%;\n      box-shadow: 0 0 10px var(--livewire-progress-bar-color, #29d), 0 0 5px var(--livewire-progress-bar-color, #29d);\n      opacity: 1.0;\n\n      -webkit-transform: rotate(3deg) translate(0px, -4px);\n          -ms-transform: rotate(3deg) translate(0px, -4px);\n              transform: rotate(3deg) translate(0px, -4px);\n    }\n\n    /* Remove these to get rid of the spinner */\n    #nprogress .spinner {\n      display: block;\n      position: fixed;\n      z-index: 1031;\n      top: 15px;\n      right: 15px;\n    }\n\n    #nprogress .spinner-icon {\n      width: 18px;\n      height: 18px;\n      box-sizing: border-box;\n\n      border: solid 2px transparent;\n      border-top-color: var(--livewire-progress-bar-color, #29d);\n      border-left-color: var(--livewire-progress-bar-color, #29d);\n      border-radius: 50%;\n\n      -webkit-animation: nprogress-spinner 400ms linear infinite;\n              animation: nprogress-spinner 400ms linear infinite;\n    }\n\n    .nprogress-custom-parent {\n      overflow: hidden;\n      position: relative;\n    }\n\n    .nprogress-custom-parent #nprogress .spinner,\n    .nprogress-custom-parent #nprogress .bar {\n      position: absolute;\n    }\n\n    @-webkit-keyframes nprogress-spinner {\n      0%   { -webkit-transform: rotate(0deg); }\n      100% { -webkit-transform: rotate(360deg); }\n    }\n    @keyframes nprogress-spinner {\n      0%   { transform: rotate(0deg); }\n      100% { transform: rotate(360deg); }\n    }\n    `\n\n    let nonce = getNonce()\n    if (nonce) {\n      style.nonce = nonce\n    }\n\n    document.head.appendChild(style)\n}\n", "let oldBodyScriptTagHashes = []\n\nlet attributesExemptFromScriptTagHashing = [\n    'data-csrf',\n    'aria-hidden',\n]\n\nexport function swapCurrentPageWithNewHtml(html, andThen) {\n    let newDocument = (new DOMParser()).parseFromString(html, \"text/html\")\n    let newBody = document.adoptNode(newDocument.body)\n    let newHead = document.adoptNode(newDocument.head)\n\n    oldBodyScriptTagHashes = oldBodyScriptTagHashes.concat(Array.from(document.body.querySelectorAll('script')).map(i => {\n        return simpleHash(ignoreAttributes(i.outerHTML, attributesExemptFromScriptTagHashing))\n    }))\n\n    let afterRemoteScriptsHaveLoaded = () => {}\n\n    mergeNewHead(newHead).finally(() => {\n        afterRemoteScriptsHaveLoaded()\n    })\n\n    prepNewBodyScriptTagsToRun(newBody, oldBodyScriptTagHashes)\n\n    let oldBody = document.body\n\n    document.body.replaceWith(newBody)\n\n    Alpine.destroyTree(oldBody)\n\n    andThen(i => afterRemoteScriptsHaveLoaded = i)\n}\n\nfunction prepNewBodyScriptTagsToRun(newBody, oldBodyScriptTagHashes) {\n    newBody.querySelectorAll('script').forEach(i => {\n        // We don't want to re-run script tags marked as \"data-navigate-once\"...\n        if (i.hasAttribute('data-navigate-once')) {\n            // However, if they didn't exist on the previous page, we do.\n            // Therefore, we'll check the \"old body script hashes\" to\n            // see if it was already there before skipping it...\n\n            let hash = simpleHash(\n                ignoreAttributes(i.outerHTML, attributesExemptFromScriptTagHashing)\n            )\n\n            if (oldBodyScriptTagHashes.includes(hash)) return\n        }\n\n        i.replaceWith(cloneScriptTag(i))\n    })\n}\n\nfunction mergeNewHead(newHead) {\n    let children = Array.from(document.head.children)\n    let headChildrenHtmlLookup = children.map(i => i.outerHTML)\n\n    // Only add scripts and styles that aren't already loaded on the page.\n    let garbageCollector = document.createDocumentFragment()\n\n    let touchedHeadElements = []\n\n    let remoteScriptsPromises = []\n\n    for (let child of Array.from(newHead.children)) {\n        if (isAsset(child)) {\n            if (! headChildrenHtmlLookup.includes(child.outerHTML)) {\n                if (isTracked(child)) {\n                    if (ifTheQueryStringChangedSinceLastRequest(child, children)) {\n                        setTimeout(() => window.location.reload())\n                    }\n                }\n\n                if (isScript(child)) {\n                    try {\n                        remoteScriptsPromises.push(\n                            injectScriptTagAndWaitForItToFullyLoad(\n                                cloneScriptTag(child)\n                            )\n                        )\n                    } catch (error) {\n                        // Let's eat any promise rejects so that we don't\n                        // break the rest of the Alpine intializing...\n                        // Any errors triggered by adding the script tag to the page\n                        // will still be thrown...\n                    }\n                } else {\n                    document.head.appendChild(child)\n                }\n            } else {\n                garbageCollector.appendChild(child)\n            }\n\n            touchedHeadElements.push(child)\n        }\n    }\n\n    // Remove any assets that aren't on the new page...\n    // @todo: Re-enable this code and find a better way to managed injected stylesheets. See livewire/livewire#6824\n    // for (let child of Array.from(document.head.children)) {\n    //     if (isAsset(child)) {\n    //         if (! touchedHeadElements.some(i => i.outerHTML === child.outerHTML)) {\n    //             child.remove()\n    //         }\n    //     }\n    // }\n\n    // How to free up the garbage collector?\n\n    // Remove existing non-asset elements like meta, base, title, template.\n    for (let child of Array.from(document.head.children)) {\n        if (! isAsset(child)) child.remove()\n    }\n\n    // Add new non-asset elements left over in the new head element.\n    for (let child of Array.from(newHead.children)) {\n        document.head.appendChild(child)\n    }\n\n    return Promise.all(remoteScriptsPromises)\n}\n\nasync function injectScriptTagAndWaitForItToFullyLoad(script) {\n    return new Promise((resolve, reject) => {\n        // Script assets need to be loaded synchronously so that scripts have\n        // their global variables available...\n        if (script.src) {\n            script.onload = () => resolve()\n            script.onerror = () => reject()\n        } else {\n            resolve()\n        }\n\n        document.head.appendChild(script)\n    })\n}\n\nfunction cloneScriptTag(el) {\n    let script = document.createElement('script')\n\n    script.textContent = el.textContent\n    script.async = el.async\n\n    for (let attr of el.attributes) {\n        script.setAttribute(attr.name, attr.value)\n    }\n\n    return script\n}\n\nfunction isTracked(el) {\n    return el.hasAttribute('data-navigate-track')\n}\n\nfunction ifTheQueryStringChangedSinceLastRequest(el, currentHeadChildren) {\n    let [uri, queryString] = extractUriAndQueryString(el)\n\n    return currentHeadChildren.some(child => {\n        if (! isTracked(child)) return false\n\n        let [currentUri, currentQueryString] = extractUriAndQueryString(child)\n\n        // Only consider a data-navigate-track element changed if the query string has changed (not the URI)...\n        if (currentUri === uri && queryString !== currentQueryString) return true\n    })\n}\n\nfunction extractUriAndQueryString(el) {\n    let url = isScript(el) ? el.src : el.href\n\n    return url.split('?')\n}\n\nfunction isAsset(el) {\n    return (el.tagName.toLowerCase() === 'link' && el.getAttribute('rel').toLowerCase() === 'stylesheet')\n        || el.tagName.toLowerCase() === 'style'\n        || el.tagName.toLowerCase() === 'script'\n}\n\nfunction isScript(el)   {\n    return el.tagName.toLowerCase() === 'script'\n}\n\nfunction simpleHash(str) {\n    return str.split('').reduce((a, b) => {\n        a = ((a << 5) - a) + b.charCodeAt(0)\n\n        return a & a\n    }, 0);\n}\n\nfunction ignoreAttributes(subject, attributesToRemove) {\n    let result = subject\n\n    attributesToRemove.forEach(attr => {\n        // Create a regex pattern to match the attribute and its value.\n        // The regex handles attributes that have values surrounded by either single or double quotes.\n        const regex = new RegExp(`${attr}=\"[^\"]*\"|${attr}='[^']*'`, 'g')\n\n        result = result.replace(regex, '')\n    })\n\n    // Remove all whitespace to make things less flaky...\n    result = result.replaceAll(' ', '')\n\n    return result.trim()\n}\n", "import { updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks, updateUrlAndStoreLatestHtmlForFutureBackButtons, whenTheBackOrForwardButtonIsClicked } from \"./history\"\nimport { getPretchedHtmlOr, prefetchHtml, storeThePrefetchedHtmlForWhenALinkIsClicked } from \"./prefetch\"\nimport { createUrlObjectFromString, extractDestinationFromLink, whenThisLinkIsHoveredFor, whenThisLinkIsPressed } from \"./links\"\nimport { isTeleportTarget, packUpPersistedTeleports, removeAnyLeftOverStaleTeleportTargets, unPackPersistedTeleports } from \"./teleport\"\nimport { restoreScrollPositionOrScrollToTop, storeScrollInformationInHtmlBeforeNavigatingAway } from \"./scroll\"\nimport { isPersistedElement, putPersistantElementsBack, storePersistantElementsForLater } from \"./persist\"\nimport { finishAndHideProgressBar, showAndStartProgressBar } from \"./bar\"\nimport { swapCurrentPageWithNewHtml } from \"./page\"\nimport { fetchHtml } from \"./fetch\"\n\nlet enablePersist = true\nlet showProgressBar = true\nlet restoreScroll = true\nlet autofocus = false\n\nexport default function (Alpine) {\n    Alpine.navigate = (url) => {\n        navigateTo(\n            createUrlObjectFromString(url)\n        )\n    }\n\n    Alpine.navigate.disableProgressBar = () => {\n        showProgressBar = false\n    }\n\n    Alpine.addInitSelector(() => `[${Alpine.prefixed('navigate')}]`)\n\n    Alpine.directive('navigate', (el, { modifiers }) => {\n        let shouldPrefetchOnHover = modifiers.includes('hover')\n\n        shouldPrefetchOnHover && whenThisLinkIsHoveredFor(el, 60, () => {\n            let destination = extractDestinationFromLink(el)\n\n            prefetchHtml(destination, (html, finalDestination) => {\n                storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination)\n            })\n        })\n\n        whenThisLinkIsPressed(el, (whenItIsReleased) => {\n            let destination = extractDestinationFromLink(el)\n\n            prefetchHtml(destination, (html, finalDestination) => {\n                storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination)\n            })\n\n            whenItIsReleased(() => {\n                navigateTo(destination)\n            })\n        })\n    })\n\n    function navigateTo(destination) {\n        showProgressBar && showAndStartProgressBar()\n\n        fetchHtmlOrUsePrefetchedHtml(destination, (html, finalDestination) => {\n            fireEventForOtherLibariesToHookInto('alpine:navigating')\n\n            restoreScroll && storeScrollInformationInHtmlBeforeNavigatingAway()\n\n            showProgressBar && finishAndHideProgressBar()\n\n            cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement()\n\n            updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks()\n\n            preventAlpineFromPickingUpDomChanges(Alpine, andAfterAllThis => {\n                enablePersist && storePersistantElementsForLater(persistedEl => {\n                    packUpPersistedTeleports(persistedEl)\n                })\n\n                swapCurrentPageWithNewHtml(html, (afterNewScriptsAreDoneLoading) => {\n                    removeAnyLeftOverStaleTeleportTargets(document.body)\n\n                    enablePersist && putPersistantElementsBack((persistedEl, newStub) => {\n                        unPackPersistedTeleports(persistedEl)\n                    })\n\n                    restoreScrollPositionOrScrollToTop()\n\n                    updateUrlAndStoreLatestHtmlForFutureBackButtons(html, finalDestination)\n\n                    fireEventForOtherLibariesToHookInto('alpine:navigated')\n\n                    afterNewScriptsAreDoneLoading(() => {\n                        andAfterAllThis(() => {\n                            setTimeout(() => {\n                                autofocus && autofocusElementsWithTheAutofocusAttribute()\n                            })\n\n                            nowInitializeAlpineOnTheNewPage(Alpine)\n                        })\n                    })\n                })\n            })\n        })\n    }\n\n    whenTheBackOrForwardButtonIsClicked((html) => {\n        // @todo: see if there's a way to update the current HTML BEFORE\n        // the back button is hit, and not AFTER:\n        storeScrollInformationInHtmlBeforeNavigatingAway()\n        // updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks()\n\n        preventAlpineFromPickingUpDomChanges(Alpine, andAfterAllThis => {\n            enablePersist && storePersistantElementsForLater(persistedEl => {\n                packUpPersistedTeleports(persistedEl)\n            })\n\n            swapCurrentPageWithNewHtml(html, () => {\n                removeAnyLeftOverStaleTeleportTargets(document.body)\n\n                enablePersist && putPersistantElementsBack((persistedEl, newStub) => {\n                    unPackPersistedTeleports(persistedEl)\n                })\n\n                restoreScrollPositionOrScrollToTop()\n\n                fireEventForOtherLibariesToHookInto('alpine:navigated')\n\n                andAfterAllThis(() => {\n                    autofocus && autofocusElementsWithTheAutofocusAttribute()\n\n                    nowInitializeAlpineOnTheNewPage(Alpine)\n                })\n            })\n\n        })\n    })\n\n    // Because DOMContentLoaded is fired on first load,\n    // we should fire alpine:navigated as a replacement as well...\n    setTimeout(() => {\n        fireEventForOtherLibariesToHookInto('alpine:navigated')\n    })\n}\n\nfunction fetchHtmlOrUsePrefetchedHtml(fromDestination, callback) {\n    getPretchedHtmlOr(fromDestination, callback, () => {\n        fetchHtml(fromDestination, callback)\n    })\n}\n\nfunction preventAlpineFromPickingUpDomChanges(Alpine, callback) {\n    Alpine.stopObservingMutations()\n\n    callback((afterAllThis) => {\n        Alpine.startObservingMutations()\n\n        queueMicrotask(() => {\n            afterAllThis()\n        })\n    })\n}\n\nfunction fireEventForOtherLibariesToHookInto(eventName) {\n    document.dispatchEvent(new CustomEvent(eventName, { bubbles: true }))\n}\n\nfunction nowInitializeAlpineOnTheNewPage(Alpine) {\n    Alpine.initTree(document.body, undefined, (el, skip) => {\n        if (el._x_wasPersisted) skip()\n    })\n}\n\nfunction autofocusElementsWithTheAutofocusAttribute() {\n    document.querySelector('[autofocus]') && document.querySelector('[autofocus]').focus()\n}\n\nfunction cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement() {\n    // Create a new tree walker that skips persisted elements...\n    let walker = function (root, callback) {\n        Alpine.walk(root, (el, skip) => {\n            if (isPersistedElement(el)) skip()\n            if (isTeleportTarget(el)) skip()\n            else callback(el, skip)\n        })\n    }\n\n    // Set Alpine in motion to destroy itself on the page. If this proves\n    // to be a performance issue at some point (walking the DOM tree),\n    // we can be more surgical about cleaning up x-for/if instead...\n    Alpine.destroyTree(document.body, walker)\n}\n", "import { isObjecty } from \"@/utils\"\n\nexport default function history(Alpine) {\n    Alpine.magic('queryString', (el, { interceptor }) =>  {\n        let alias\n        let alwaysShow = false\n        let usePush = false\n\n        return interceptor((initialSeedValue, getter, setter, path, key) => {\n            let queryKey = alias || path\n\n            let { initial, replace, push, pop } = track(queryKey, initialSeedValue, alwaysShow)\n\n            setter(initial)\n\n            if (! usePush) {\n                Alpine.effect(() => replace(getter()))\n            } else {\n                Alpine.effect(() => push(getter()))\n\n                pop(async newValue => {\n                    setter(newValue)\n\n                    let tillTheEndOfTheMicrotaskQueue = () => Promise.resolve()\n\n                    await tillTheEndOfTheMicrotaskQueue() // ...so that we preserve the internal lock...\n                })\n            }\n\n            return initial\n        }, func => {\n            func.alwaysShow = () => { alwaysShow = true; return func }\n            func.usePush = () => { usePush = true; return func }\n            func.as = key => { alias = key; return func }\n        })\n    })\n\n    Alpine.history = { track }\n}\n\nexport function track(name, initialSeedValue, alwaysShow = false) {\n    let { has, get, set, remove } = queryStringUtils()\n\n    let url = new URL(window.location.href)\n    let isInitiallyPresentInUrl = has(url, name)\n    let initialValue = isInitiallyPresentInUrl ? get(url, name) : initialSeedValue\n    let initialValueMemo = JSON.stringify(initialValue)\n    let hasReturnedToInitialValue = (newValue) => JSON.stringify(newValue) === initialValueMemo\n\n    if (alwaysShow) url = set(url, name, initialValue)\n\n    replace(url, name, { value: initialValue })\n\n    let lock = false\n\n    let update = (strategy, newValue) => {\n        if (lock) return\n\n        let url = new URL(window.location.href)\n\n        // This block of code is what needs to be changed for this failing test to pass:\n        if (! alwaysShow && ! isInitiallyPresentInUrl && hasReturnedToInitialValue(newValue)) {\n            url = remove(url, name)\n        // This is so that when deeply nested values are tracked, but their parent array/object\n        // is removed, we can handle it gracefully by removing the entry from the URL instead\n        // of letting it get set to `?someKey=undefined` which causes issues on refresh...\n        } else if (newValue === undefined) {\n            url = remove(url, name)\n        } else {\n            url = set(url, name, newValue)\n        }\n\n        // Right now, the above block, checks a few conditions and updates/removes an entry from the query string.\n        // The new strategy needs to be something like:\n        // - If \"alwaysShow\" is toggled on, then just \"set\" the whole thing with no deep diff\n        // - Otherwise, run a deep comparison callback (given the original value and new value).\n        //   - The callback recieves two params (leaf name and value)\n        //   - Check leaf name and value for existance in the original URL from page load. If it's there, just call \"set\"\n        //   - Check leaf name and value for equivelance to original name and value, if equal, call \"remove\", otherwise, \"set\"\n\n        // That code will look something like this:\n\n        // if (alwaysShow) {\n        //     set(url, name, newValue)\n        // } else {\n        //     deepCompare(name, newValue, originalValue, (leafName, leafValue) => {\n        //         // ....\n        //     })\n        // }\n\n        strategy(url, name, { value: newValue})\n    }\n\n    return {\n        initial: initialValue,\n\n        replace(newValue) { // Update via replaceState...\n            update(replace, newValue)\n        },\n\n        push(newValue) { // Update via pushState...\n            update(push, newValue)\n        },\n\n        pop(receiver) { // \"popstate\" handler...\n            let handler = (e) => {\n                if (! e.state || ! e.state.alpine) return\n\n                Object.entries(e.state.alpine).forEach(([iName, { value: newValue }]) => {\n                    if (iName !== name) return\n\n                    lock = true\n\n                    // Allow the \"receiver\" to be an async function in case a non-syncronous\n                    // operation (like an ajax) requests needs to happen while preserving\n                    // the \"locking\" mechanism (\"lock = true\" in this case)...\n                    let result = receiver(newValue)\n\n                    if (result instanceof Promise) {\n                        result.finally(() => lock = false)\n                    } else {\n                        lock = false\n                    }\n                })\n            }\n\n            window.addEventListener('popstate', handler)\n\n            return () => window.removeEventListener('popstate', handler)\n        }\n    }\n}\n\nfunction replace(url, key, object) {\n    let state = window.history.state || {}\n\n    if (! state.alpine) state.alpine = {}\n\n    state.alpine[key] = unwrap(object)\n\n    window.history.replaceState(state, '', url.toString())\n}\n\nfunction push(url, key, object) {\n    let state = window.history.state || {}\n\n    if (! state.alpine) state.alpine = {}\n\n    state = { alpine: {...state.alpine, ...{[key]: unwrap(object)}} }\n\n    window.history.pushState(state, '', url.toString())\n}\n\nfunction unwrap(object) {\n    if (object === undefined) return undefined\n\n    return JSON.parse(JSON.stringify(object))\n}\n\nfunction queryStringUtils() {\n    return {\n        has(url, key) {\n            let search = url.search\n\n            if (! search) return false\n\n            let data = fromQueryString(search)\n\n            return Object.keys(data).includes(key)\n        },\n        get(url, key) {\n            let search = url.search\n\n            if (! search) return false\n\n            let data = fromQueryString(search)\n\n            return data[key]\n        },\n        set(url, key, value) {\n            let data = fromQueryString(url.search)\n\n            data[key] = stripNulls(unwrap(value))\n\n            url.search = toQueryString(data)\n\n            return url\n        },\n        remove(url, key) {\n            let data = fromQueryString(url.search)\n\n            delete data[key]\n\n            url.search = toQueryString(data)\n\n            return url\n        },\n    }\n}\n\nfunction stripNulls(value) {\n    if (! isObjecty(value)) return value\n\n    for (let key in value) {\n        if (value[key] === null) delete value[key]\n        else value[key] = stripNulls(value[key])\n    }\n\n    return value\n}\n\n// This function converts JavaScript data to bracketed query string notation...\n// { items: [['foo']] } -> \"items[0][0]=foo\"\nfunction toQueryString(data) {\n    let isObjecty = (subject) => typeof subject === 'object' && subject !== null\n\n    let buildQueryStringEntries = (data, entries = {}, baseKey = '') => {\n        Object.entries(data).forEach(([iKey, iValue]) => {\n            let key = baseKey === '' ? iKey : `${baseKey}[${iKey}]`\n\n            if (iValue === null) {\n                entries[key] = '';\n            } else if (! isObjecty(iValue)) {\n                entries[key] = encodeURIComponent(iValue)\n                    .replaceAll('%20', '+') // Conform to RFC1738\n                    .replaceAll('%2C', ',')\n            } else {\n                entries = {...entries, ...buildQueryStringEntries(iValue, entries, key)}\n            }\n        })\n\n        return entries\n    }\n\n    let entries = buildQueryStringEntries(data)\n\n    return Object.entries(entries).map(([key, value]) => `${key}=${value}`).join('&')\n}\n\n// This function converts bracketed query string notation back to JS data...\n// \"items[0][0]=foo\" -> { items: [['foo']] }\nfunction fromQueryString(search) {\n    search = search.replace('?', '')\n\n    if (search === '') return {}\n\n    let insertDotNotatedValueIntoData = (key, value, data) => {\n        let [first, second, ...rest] = key.split('.')\n\n        // We're at a leaf node, let's make the assigment...\n        if (! second) return data[key] = value\n\n        // This is where we fill in empty arrays/objects allong the way to the assigment...\n        if (data[first] === undefined) {\n            data[first] = isNaN(second) ? {} : []\n        }\n\n        // Keep deferring assignment until the full key is built up...\n        insertDotNotatedValueIntoData([second, ...rest].join('.'), value, data[first])\n    }\n\n    let entries = search.split('&').map(i => i.split('='))\n\n    // let data = {} creates a security (XSS) vulnerability here. We need to use\n    // Object.create(null) instead so that we have a \"pure\" object that doesnt\n    // inherit Object.prototype and expose the js internals to manipulation.\n    let data = Object.create(null)\n\n    entries.forEach(([key, value]) => {\n        value = decodeURIComponent(value.replaceAll('+', '%20'))\n\n        if (! key.includes('[')) {\n            data[key] = value\n        } else {\n            // Convert to dot notation because it's easier...\n            let dotNotatedKey = key.replaceAll('[', '.').replaceAll(']', '')\n\n            insertDotNotatedValueIntoData(dotNotatedKey, value, data)\n        }\n    })\n\n    return data\n}\n", "// packages/morph/src/morph.js\nfunction morph(from, toHtml, options) {\n  monkeyPatchDomSetAttributeToAllowAtSymbols();\n  let fromEl;\n  let toEl;\n  let key, lookahead, updating, updated, removing, removed, adding, added;\n  function assignOptions(options2 = {}) {\n    let defaultGetKey = (el) => el.getAttribute(\"key\");\n    let noop = () => {\n    };\n    updating = options2.updating || noop;\n    updated = options2.updated || noop;\n    removing = options2.removing || noop;\n    removed = options2.removed || noop;\n    adding = options2.adding || noop;\n    added = options2.added || noop;\n    key = options2.key || defaultGetKey;\n    lookahead = options2.lookahead || false;\n  }\n  function patch(from2, to) {\n    if (differentElementNamesTypesOrKeys(from2, to)) {\n      return swapElements(from2, to);\n    }\n    let updateChildrenOnly = false;\n    if (shouldSkip(updating, from2, to, () => updateChildrenOnly = true))\n      return;\n    if (from2.nodeType === 1 && window.Alpine) {\n      window.Alpine.cloneNode(from2, to);\n    }\n    if (textOrComment(to)) {\n      patchNodeValue(from2, to);\n      updated(from2, to);\n      return;\n    }\n    if (!updateChildrenOnly) {\n      patchAttributes(from2, to);\n    }\n    updated(from2, to);\n    patchChildren(from2, to);\n  }\n  function differentElementNamesTypesOrKeys(from2, to) {\n    return from2.nodeType != to.nodeType || from2.nodeName != to.nodeName || getKey(from2) != getKey(to);\n  }\n  function swapElements(from2, to) {\n    if (shouldSkip(removing, from2))\n      return;\n    let toCloned = to.cloneNode(true);\n    if (shouldSkip(adding, toCloned))\n      return;\n    from2.replaceWith(toCloned);\n    removed(from2);\n    added(toCloned);\n  }\n  function patchNodeValue(from2, to) {\n    let value = to.nodeValue;\n    if (from2.nodeValue !== value) {\n      from2.nodeValue = value;\n    }\n  }\n  function patchAttributes(from2, to) {\n    if (from2._x_transitioning)\n      return;\n    if (from2._x_isShown && !to._x_isShown) {\n      return;\n    }\n    if (!from2._x_isShown && to._x_isShown) {\n      return;\n    }\n    let domAttributes = Array.from(from2.attributes);\n    let toAttributes = Array.from(to.attributes);\n    for (let i = domAttributes.length - 1; i >= 0; i--) {\n      let name = domAttributes[i].name;\n      if (!to.hasAttribute(name)) {\n        from2.removeAttribute(name);\n      }\n    }\n    for (let i = toAttributes.length - 1; i >= 0; i--) {\n      let name = toAttributes[i].name;\n      let value = toAttributes[i].value;\n      if (from2.getAttribute(name) !== value) {\n        from2.setAttribute(name, value);\n      }\n    }\n  }\n  function patchChildren(from2, to) {\n    if (from2._x_teleport)\n      from2 = from2._x_teleport;\n    if (to._x_teleport)\n      to = to._x_teleport;\n    let fromKeys = keyToMap(from2.children);\n    let fromKeyHoldovers = {};\n    let currentTo = getFirstNode(to);\n    let currentFrom = getFirstNode(from2);\n    while (currentTo) {\n      seedingMatchingId(currentTo, currentFrom);\n      let toKey = getKey(currentTo);\n      let fromKey = getKey(currentFrom);\n      if (!currentFrom) {\n        if (toKey && fromKeyHoldovers[toKey]) {\n          let holdover = fromKeyHoldovers[toKey];\n          from2.appendChild(holdover);\n          currentFrom = holdover;\n        } else {\n          if (!shouldSkip(adding, currentTo)) {\n            let clone = currentTo.cloneNode(true);\n            from2.appendChild(clone);\n            added(clone);\n          }\n          currentTo = getNextSibling(to, currentTo);\n          continue;\n        }\n      }\n      let isIf = (node) => node && node.nodeType === 8 && node.textContent === \"[if BLOCK]><![endif]\";\n      let isEnd = (node) => node && node.nodeType === 8 && node.textContent === \"[if ENDBLOCK]><![endif]\";\n      if (isIf(currentTo) && isIf(currentFrom)) {\n        let nestedIfCount = 0;\n        let fromBlockStart = currentFrom;\n        while (currentFrom) {\n          let next = getNextSibling(from2, currentFrom);\n          if (isIf(next)) {\n            nestedIfCount++;\n          } else if (isEnd(next) && nestedIfCount > 0) {\n            nestedIfCount--;\n          } else if (isEnd(next) && nestedIfCount === 0) {\n            currentFrom = next;\n            break;\n          }\n          currentFrom = next;\n        }\n        let fromBlockEnd = currentFrom;\n        nestedIfCount = 0;\n        let toBlockStart = currentTo;\n        while (currentTo) {\n          let next = getNextSibling(to, currentTo);\n          if (isIf(next)) {\n            nestedIfCount++;\n          } else if (isEnd(next) && nestedIfCount > 0) {\n            nestedIfCount--;\n          } else if (isEnd(next) && nestedIfCount === 0) {\n            currentTo = next;\n            break;\n          }\n          currentTo = next;\n        }\n        let toBlockEnd = currentTo;\n        let fromBlock = new Block(fromBlockStart, fromBlockEnd);\n        let toBlock = new Block(toBlockStart, toBlockEnd);\n        patchChildren(fromBlock, toBlock);\n        continue;\n      }\n      if (currentFrom.nodeType === 1 && lookahead && !currentFrom.isEqualNode(currentTo)) {\n        let nextToElementSibling = getNextSibling(to, currentTo);\n        let found = false;\n        while (!found && nextToElementSibling) {\n          if (nextToElementSibling.nodeType === 1 && currentFrom.isEqualNode(nextToElementSibling)) {\n            found = true;\n            currentFrom = addNodeBefore(from2, currentTo, currentFrom);\n            fromKey = getKey(currentFrom);\n          }\n          nextToElementSibling = getNextSibling(to, nextToElementSibling);\n        }\n      }\n      if (toKey !== fromKey) {\n        if (!toKey && fromKey) {\n          fromKeyHoldovers[fromKey] = currentFrom;\n          currentFrom = addNodeBefore(from2, currentTo, currentFrom);\n          fromKeyHoldovers[fromKey].remove();\n          currentFrom = getNextSibling(from2, currentFrom);\n          currentTo = getNextSibling(to, currentTo);\n          continue;\n        }\n        if (toKey && !fromKey) {\n          if (fromKeys[toKey]) {\n            currentFrom.replaceWith(fromKeys[toKey]);\n            currentFrom = fromKeys[toKey];\n          }\n        }\n        if (toKey && fromKey) {\n          let fromKeyNode = fromKeys[toKey];\n          if (fromKeyNode) {\n            fromKeyHoldovers[fromKey] = currentFrom;\n            currentFrom.replaceWith(fromKeyNode);\n            currentFrom = fromKeyNode;\n          } else {\n            fromKeyHoldovers[fromKey] = currentFrom;\n            currentFrom = addNodeBefore(from2, currentTo, currentFrom);\n            fromKeyHoldovers[fromKey].remove();\n            currentFrom = getNextSibling(from2, currentFrom);\n            currentTo = getNextSibling(to, currentTo);\n            continue;\n          }\n        }\n      }\n      let currentFromNext = currentFrom && getNextSibling(from2, currentFrom);\n      patch(currentFrom, currentTo);\n      currentTo = currentTo && getNextSibling(to, currentTo);\n      currentFrom = currentFromNext;\n    }\n    let removals = [];\n    while (currentFrom) {\n      if (!shouldSkip(removing, currentFrom))\n        removals.push(currentFrom);\n      currentFrom = getNextSibling(from2, currentFrom);\n    }\n    while (removals.length) {\n      let domForRemoval = removals.shift();\n      domForRemoval.remove();\n      removed(domForRemoval);\n    }\n  }\n  function getKey(el) {\n    return el && el.nodeType === 1 && key(el);\n  }\n  function keyToMap(els) {\n    let map = {};\n    for (let el of els) {\n      let theKey = getKey(el);\n      if (theKey) {\n        map[theKey] = el;\n      }\n    }\n    return map;\n  }\n  function addNodeBefore(parent, node, beforeMe) {\n    if (!shouldSkip(adding, node)) {\n      let clone = node.cloneNode(true);\n      parent.insertBefore(clone, beforeMe);\n      added(clone);\n      return clone;\n    }\n    return node;\n  }\n  assignOptions(options);\n  fromEl = from;\n  toEl = typeof toHtml === \"string\" ? createElement(toHtml) : toHtml;\n  if (window.Alpine && window.Alpine.closestDataStack && !from._x_dataStack) {\n    toEl._x_dataStack = window.Alpine.closestDataStack(from);\n    toEl._x_dataStack && window.Alpine.cloneNode(from, toEl);\n  }\n  patch(from, toEl);\n  fromEl = void 0;\n  toEl = void 0;\n  return from;\n}\nmorph.step = () => {\n};\nmorph.log = () => {\n};\nfunction shouldSkip(hook, ...args) {\n  let skip = false;\n  hook(...args, () => skip = true);\n  return skip;\n}\nvar patched = false;\nfunction createElement(html) {\n  const template = document.createElement(\"template\");\n  template.innerHTML = html;\n  return template.content.firstElementChild;\n}\nfunction textOrComment(el) {\n  return el.nodeType === 3 || el.nodeType === 8;\n}\nvar Block = class {\n  constructor(start, end) {\n    this.startComment = start;\n    this.endComment = end;\n  }\n  get children() {\n    let children = [];\n    let currentNode = this.startComment.nextSibling;\n    while (currentNode && currentNode !== this.endComment) {\n      children.push(currentNode);\n      currentNode = currentNode.nextSibling;\n    }\n    return children;\n  }\n  appendChild(child) {\n    this.endComment.before(child);\n  }\n  get firstChild() {\n    let first = this.startComment.nextSibling;\n    if (first === this.endComment)\n      return;\n    return first;\n  }\n  nextNode(reference) {\n    let next = reference.nextSibling;\n    if (next === this.endComment)\n      return;\n    return next;\n  }\n  insertBefore(newNode, reference) {\n    reference.before(newNode);\n    return newNode;\n  }\n};\nfunction getFirstNode(parent) {\n  return parent.firstChild;\n}\nfunction getNextSibling(parent, reference) {\n  let next;\n  if (parent instanceof Block) {\n    next = parent.nextNode(reference);\n  } else {\n    next = reference.nextSibling;\n  }\n  return next;\n}\nfunction monkeyPatchDomSetAttributeToAllowAtSymbols() {\n  if (patched)\n    return;\n  patched = true;\n  let original = Element.prototype.setAttribute;\n  let hostDiv = document.createElement(\"div\");\n  Element.prototype.setAttribute = function newSetAttribute(name, value) {\n    if (!name.includes(\"@\")) {\n      return original.call(this, name, value);\n    }\n    hostDiv.innerHTML = `<span ${name}=\"${value}\"></span>`;\n    let attr = hostDiv.firstElementChild.getAttributeNode(name);\n    hostDiv.firstElementChild.removeAttributeNode(attr);\n    this.setAttributeNode(attr);\n  };\n}\nfunction seedingMatchingId(to, from) {\n  let fromId = from && from._x_bindings && from._x_bindings.id;\n  if (!fromId)\n    return;\n  to.setAttribute(\"id\", fromId);\n  to.id = fromId;\n}\n\n// packages/morph/src/index.js\nfunction src_default(Alpine) {\n  Alpine.morph = morph;\n}\n\n// packages/morph/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as morph\n};\n", "// packages/mask/src/index.js\nfunction src_default(Alpine) {\n  Alpine.directive(\"mask\", (el, { value, expression }, { effect, evaluateLater, cleanup }) => {\n    let templateFn = () => expression;\n    let lastInputValue = \"\";\n    queueMicrotask(() => {\n      if ([\"function\", \"dynamic\"].includes(value)) {\n        let evaluator = evaluateLater(expression);\n        effect(() => {\n          templateFn = (input) => {\n            let result;\n            Alpine.dontAutoEvaluateFunctions(() => {\n              evaluator((value2) => {\n                result = typeof value2 === \"function\" ? value2(input) : value2;\n              }, { scope: {\n                // These are \"magics\" we'll make available to the x-mask:function:\n                \"$input\": input,\n                \"$money\": formatMoney.bind({ el })\n              } });\n            });\n            return result;\n          };\n          processInputValue(el, false);\n        });\n      } else {\n        processInputValue(el, false);\n      }\n      if (el._x_model)\n        el._x_model.set(el.value);\n    });\n    const controller = new AbortController();\n    cleanup(() => {\n      controller.abort();\n    });\n    el.addEventListener(\"input\", () => processInputValue(el), {\n      signal: controller.signal,\n      // Setting this as a capture phase listener to ensure it runs\n      // before wire:model or x-model added as a latent binding...\n      capture: true\n    });\n    el.addEventListener(\"blur\", () => processInputValue(el, false), { signal: controller.signal });\n    function processInputValue(el2, shouldRestoreCursor = true) {\n      let input = el2.value;\n      let template = templateFn(input);\n      if (!template || template === \"false\")\n        return false;\n      if (lastInputValue.length - el2.value.length === 1) {\n        return lastInputValue = el2.value;\n      }\n      let setInput = () => {\n        lastInputValue = el2.value = formatInput(input, template);\n      };\n      if (shouldRestoreCursor) {\n        restoreCursorPosition(el2, template, () => {\n          setInput();\n        });\n      } else {\n        setInput();\n      }\n    }\n    function formatInput(input, template) {\n      if (input === \"\")\n        return \"\";\n      let strippedDownInput = stripDown(template, input);\n      let rebuiltInput = buildUp(template, strippedDownInput);\n      return rebuiltInput;\n    }\n  }).before(\"model\");\n}\nfunction restoreCursorPosition(el, template, callback) {\n  let cursorPosition = el.selectionStart;\n  let unformattedValue = el.value;\n  callback();\n  let beforeLeftOfCursorBeforeFormatting = unformattedValue.slice(0, cursorPosition);\n  let newPosition = buildUp(\n    template,\n    stripDown(\n      template,\n      beforeLeftOfCursorBeforeFormatting\n    )\n  ).length;\n  el.setSelectionRange(newPosition, newPosition);\n}\nfunction stripDown(template, input) {\n  let inputToBeStripped = input;\n  let output = \"\";\n  let regexes = {\n    \"9\": /[0-9]/,\n    \"a\": /[a-zA-Z]/,\n    \"*\": /[a-zA-Z0-9]/\n  };\n  let wildcardTemplate = \"\";\n  for (let i = 0; i < template.length; i++) {\n    if ([\"9\", \"a\", \"*\"].includes(template[i])) {\n      wildcardTemplate += template[i];\n      continue;\n    }\n    for (let j = 0; j < inputToBeStripped.length; j++) {\n      if (inputToBeStripped[j] === template[i]) {\n        inputToBeStripped = inputToBeStripped.slice(0, j) + inputToBeStripped.slice(j + 1);\n        break;\n      }\n    }\n  }\n  for (let i = 0; i < wildcardTemplate.length; i++) {\n    let found = false;\n    for (let j = 0; j < inputToBeStripped.length; j++) {\n      if (regexes[wildcardTemplate[i]].test(inputToBeStripped[j])) {\n        output += inputToBeStripped[j];\n        inputToBeStripped = inputToBeStripped.slice(0, j) + inputToBeStripped.slice(j + 1);\n        found = true;\n        break;\n      }\n    }\n    if (!found)\n      break;\n  }\n  return output;\n}\nfunction buildUp(template, input) {\n  let clean = Array.from(input);\n  let output = \"\";\n  for (let i = 0; i < template.length; i++) {\n    if (![\"9\", \"a\", \"*\"].includes(template[i])) {\n      output += template[i];\n      continue;\n    }\n    if (clean.length === 0)\n      break;\n    output += clean.shift();\n  }\n  return output;\n}\nfunction formatMoney(input, delimiter = \".\", thousands, precision = 2) {\n  if (input === \"-\")\n    return \"-\";\n  if (/^\\D+$/.test(input))\n    return \"9\";\n  if (thousands === null || thousands === void 0) {\n    thousands = delimiter === \",\" ? \".\" : \",\";\n  }\n  let addThousands = (input2, thousands2) => {\n    let output = \"\";\n    let counter = 0;\n    for (let i = input2.length - 1; i >= 0; i--) {\n      if (input2[i] === thousands2)\n        continue;\n      if (counter === 3) {\n        output = input2[i] + thousands2 + output;\n        counter = 0;\n      } else {\n        output = input2[i] + output;\n      }\n      counter++;\n    }\n    return output;\n  };\n  let minus = input.startsWith(\"-\") ? \"-\" : \"\";\n  let strippedInput = input.replaceAll(new RegExp(`[^0-9\\\\${delimiter}]`, \"g\"), \"\");\n  let template = Array.from({ length: strippedInput.split(delimiter)[0].length }).fill(\"9\").join(\"\");\n  template = `${minus}${addThousands(template, thousands)}`;\n  if (precision > 0 && input.includes(delimiter))\n    template += `${delimiter}` + \"9\".repeat(precision);\n  queueMicrotask(() => {\n    if (this.el.value.endsWith(delimiter))\n      return;\n    if (this.el.value[this.el.selectionStart - 1] === delimiter) {\n      this.el.setSelectionRange(this.el.selectionStart - 1, this.el.selectionStart - 1);\n    }\n  });\n  return template;\n}\n\n// packages/mask/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as mask,\n  stripDown\n};\n", "import { closestComponent, destroyComponent, initComponent } from './store'\nimport { matchesForLivewireDirective, extractDirective } from './directives'\nimport { trigger } from './hooks'\nimport collapse from '@alpinejs/collapse'\nimport focus from '@alpinejs/focus'\nimport persist from '@alpinejs/persist'\nimport intersect from '@alpinejs/intersect'\nimport anchor from '@alpinejs/anchor'\nimport navigate from './plugins/navigate'\nimport history from './plugins/history'\nimport morph from '@alpinejs/morph'\nimport mask from '@alpinejs/mask'\nimport Alpine from 'alpinejs'\nimport { dispatch } from './utils'\n\nexport function start() {\n    setTimeout(() => ensureLivewireScriptIsntMisplaced())\n\n    dispatch(document, 'livewire:init')\n    dispatch(document, 'livewire:initializing')\n\n    Alpine.plugin(morph)\n    Alpine.plugin(history)\n    Alpine.plugin(intersect)\n    Alpine.plugin(collapse)\n    Alpine.plugin(anchor)\n    Alpine.plugin(focus)\n    Alpine.plugin(persist)\n    Alpine.plugin(navigate)\n    Alpine.plugin(mask)\n\n    Alpine.addRootSelector(() => '[wire\\\\:id]')\n\n    Alpine.onAttributesAdded((el, attributes) => {\n        // if there are no \"wire:\" directives we don't need to process this element any further.\n        // This prevents Livewire from causing general slowness for other Alpine elements on the page...\n        if (! Array.from(attributes).some(attribute => matchesForLivewireDirective(attribute.name))) return\n\n        let component = closestComponent(el, false)\n\n        if (! component) return\n\n        attributes.forEach(attribute => {\n            if (! matchesForLivewireDirective(attribute.name)) return;\n\n            let directive = extractDirective(el, attribute.name)\n\n            trigger('directive.init', { el, component, directive, cleanup: (callback) => {\n                Alpine.onAttributeRemoved(el, directive.raw, callback)\n            } })\n        })\n    })\n\n    Alpine.interceptInit(\n        Alpine.skipDuringClone(el => {\n            // if there are no \"wire:\" directives we don't need to process this element any further.\n            // This prevents Livewire from causing general slowness for other Alpine elements on the page...\n            if (! Array.from(el.attributes).some(attribute => matchesForLivewireDirective(attribute.name))) return\n\n            if (el.hasAttribute('wire:id')) {\n                let component = initComponent(el)\n\n                Alpine.onAttributeRemoved(el, 'wire:id', () => {\n                    destroyComponent(component.id)\n                })\n            }\n\n            let component = closestComponent(el, false)\n\n            if (component) {\n                trigger('element.init', { el, component })\n\n                let directives = Array.from(el.getAttributeNames())\n                    .filter(name => matchesForLivewireDirective(name))\n                    .map(name => extractDirective(el, name))\n\n                directives.forEach(directive => {\n                    trigger('directive.init', { el, component, directive, cleanup: (callback) => {\n                        Alpine.onAttributeRemoved(el, directive.raw, callback)\n                    } })\n                })\n            }\n        })\n    )\n\n    Alpine.start()\n\n    setTimeout(() => window.Livewire.initialRenderIsFinished = true)\n\n    dispatch(document, 'livewire:initialized')\n}\n\nfunction ensureLivewireScriptIsntMisplaced() {\n    let el = document.querySelector('script[data-update-uri][data-csrf]')\n\n    // If there is no Livewire-injected script on the page, move on...\n    if (! el) return\n\n    // If there is, let's ensure it's at the top-level. If it's nested\n    // inside a normal element, that probably means that a closing\n    // tag was missing in the template and Chrome moved the tag.\n\n    // We're only checking for \"div\" here because it's quick and useful...\n    let livewireEl = el.closest('[wire\\\\:id]')\n\n    if (livewireEl) {\n        console.warn('Livewire: missing closing tags found. Ensure your template elements contain matching closing tags.', livewireEl)\n    }\n}\n", "import { getDirectives } from '@/directives'\nimport { on } from '@/hooks'\nimport Alpine from 'alpinejs'\n\nlet cleanupStackByComponentId = {}\n\n// Adding a setTimeout here so that these event listeners are\n// registered AFTER most other event listenrs, this way, we\n// can call \"stopPropagation\" for things like wire:confirm\non('element.init', ({ el, component }) => setTimeout(() => {\n    let directives = getDirectives(el)\n\n    if (directives.missing('submit')) return\n\n    // Set a forms \"disabled\" state on inputs and buttons.\n    // Livewire will clean it all up automatically when the form\n    // submission returns and the new DOM lacks these additions.\n    el.addEventListener('submit', () => {\n        cleanupStackByComponentId[component.id] = []\n\n        Alpine.walk(component.el, (node, skip) => {\n            if (! el.contains(node)) return\n\n            if (node.hasAttribute('wire:ignore')) return skip()\n\n            if (\n                // <button type=\"submit\">\n                (node.tagName.toLowerCase() === 'button' &&\n                    node.type === 'submit') ||\n                // <select>\n                node.tagName.toLowerCase() === 'select' ||\n                // <input type=\"checkbox|radio\">\n                (node.tagName.toLowerCase() === 'input' &&\n                    (node.type === 'checkbox' || node.type === 'radio'))\n            ) {\n                if (!node.disabled)\n                    cleanupStackByComponentId[component.id].push(\n                        () => (node.disabled = false)\n                    )\n\n                node.disabled = true\n            } else if (\n                // <input type=\"text\">\n                node.tagName.toLowerCase() === 'input' ||\n                // <textarea>\n                node.tagName.toLowerCase() === 'textarea'\n            ) {\n                if (!node.readOnly)\n                    cleanupStackByComponentId[component.id].push(\n                        () => (node.readOnly = false)\n                    )\n\n                node.readOnly = true\n            }\n        })\n    })\n}))\n\non('commit', ({ component, respond }) => {\n    respond(() => {\n        cleanup(component)\n    })\n})\n\nfunction cleanup(component) {\n    if (! cleanupStackByComponentId[component.id]) return\n\n    while (cleanupStackByComponentId[component.id].length > 0) {\n        cleanupStackByComponentId[component.id].shift()()\n    }\n}\n", "import { on } from '@/hooks'\n\n// Ensure that all child components with reactive props (even deeply nested)\n// are included in the network request...\non('commit.pooling', ({ commits }) => {\n    commits.forEach(commit => {\n        let component = commit.component\n\n        getDeepChildrenWithBindings(component, child => {\n            child.$wire.$commit()\n        })\n    })\n})\n\n// Ensure that related components are pooled together, even if they chose\n// to be isolated normally...\non('commit.pooled', ({ pools }) => {\n    let commits = getPooledCommits(pools)\n\n    commits.forEach(commit => {\n        let component = commit.component\n\n        getDeepChildrenWithBindings(component, child => {\n            colocateCommitsByComponent(pools, component, child)\n        })\n    })\n})\n\nfunction getPooledCommits(pools) {\n    let commits = []\n\n    pools.forEach(pool => {\n        pool.commits.forEach(commit => {\n            commits.push(commit)\n        })\n    })\n\n    return commits\n}\n\nfunction colocateCommitsByComponent(pools, component, foreignComponent) {\n    let pool = findPoolWithComponent(pools, component)\n\n    let foreignPool = findPoolWithComponent(pools, foreignComponent)\n\n    let foreignCommit = foreignPool.findCommitByComponent(foreignComponent)\n\n    // Delete needs to come before add in case there are the same pool...\n    foreignPool.delete(foreignCommit)\n\n    pool.add(foreignCommit)\n\n    // Cleanup empty pools...\n    pools.forEach(pool => {\n        if (pool.empty()) pools.delete(pool)\n    })\n}\n\nfunction findPoolWithComponent(pools, component) {\n    for (let [idx, pool] of pools.entries()) {\n        if (pool.hasCommitFor(component)) return pool\n    }\n}\n\nfunction getDeepChildrenWithBindings(component, callback) {\n    getDeepChildren(component, child => {\n        if (hasReactiveProps(child) || hasWireModelableBindings(child)) {\n            callback(child)\n        }\n    })\n}\n\nfunction hasReactiveProps(component) {\n    let meta = component.snapshot.memo\n    let props = meta.props\n\n    return !! props\n}\n\nfunction hasWireModelableBindings(component) {\n    let meta = component.snapshot.memo\n    let bindings = meta.bindings\n\n    return !! bindings\n}\n\nfunction getDeepChildren(component, callback) {\n    component.children.forEach(child => {\n        callback(child)\n\n        getDeepChildren(child, callback)\n    })\n}\n", "import { on } from '@/hooks'\nimport Alpine from 'alpinejs'\n\nlet executedScripts = new WeakMap\n\nlet executedAssets = new Set\n\non('payload.intercept', async ({ assets }) => {\n    if(! assets) return\n\n    for (let [key, asset] of Object.entries(assets)) {\n        await onlyIfAssetsHaventBeenLoadedAlreadyOnThisPage(key, async () => {\n            await addAssetsToHeadTagOfPage(asset)\n        })\n    }\n})\n\n// Assets that were injected into the HTML need to be registered so that\n// they aren't loaded again...\non('component.init', ({ component }) => {\n    let assets = component.snapshot.memo.assets\n\n    if (assets) {\n        assets.forEach((key) => {\n            if (executedAssets.has(key)) return\n            executedAssets.add(key)\n        })\n    }\n})\n\non('effect', ({ component, effects }) => {\n    let scripts = effects.scripts\n\n    if (scripts) {\n        Object.entries(scripts).forEach(([key, content]) => {\n            onlyIfScriptHasntBeenRunAlreadyForThisComponent(component, key, () => {\n                let scriptContent = extractScriptTagContent(content)\n\n                Alpine.dontAutoEvaluateFunctions(() => {\n                    Alpine.evaluate(component.el, scriptContent, { '$wire': component.$wire })\n                })\n            })\n        })\n    }\n})\n\nfunction onlyIfScriptHasntBeenRunAlreadyForThisComponent(component, key, callback) {\n    if (executedScripts.has(component)) {\n        let alreadyRunKeys = executedScripts.get(component)\n\n        if (alreadyRunKeys.includes(key)) return\n    }\n\n    callback()\n\n    if (! executedScripts.has(component)) executedScripts.set(component, [])\n\n    let alreadyRunKeys = executedScripts.get(component)\n\n    alreadyRunKeys.push(key)\n\n    executedScripts.set(component, alreadyRunKeys)\n}\n\nfunction extractScriptTagContent(rawHtml) {\n    let scriptRegex = /<script\\b[^>]*>([\\s\\S]*?)<\\/script>/gm\n    let matches = scriptRegex.exec(rawHtml)\n    let innards =  matches && matches[1] ? matches[1].trim() : ''\n\n    return innards\n}\n\nasync function onlyIfAssetsHaventBeenLoadedAlreadyOnThisPage(key, callback) {\n    if (executedAssets.has(key)) return\n\n    await callback()\n\n    executedAssets.add(key)\n}\n\nasync function addAssetsToHeadTagOfPage(rawHtml) {\n    let newDocument = (new DOMParser()).parseFromString(rawHtml, \"text/html\")\n    let newHead = document.adoptNode(newDocument.head)\n\n    for (let child of newHead.children) {\n        try {\n            await runAssetSynchronously(child)\n        } catch (error) {\n            // Let's eat any promise rejects so that we don't\n            // break the rest of Livewire's handling of the response...\n            // Any errors triggered by adding the script tag to the page\n            // will still be thrown...\n        }\n    }\n}\n\nasync function runAssetSynchronously(child) {\n    return new Promise((resolve, reject) => {\n        if (isScript(child)) {\n            let script = cloneScriptTag(child)\n\n            // Script assets need to be loaded synchronously so that scripts have\n            // their global variables available...\n            if (script.src) {\n                script.onload = () => resolve()\n                script.onerror = () => reject()\n            } else {\n                resolve()\n            }\n\n            document.head.appendChild(script)\n        } else {\n            document.head.appendChild(child)\n\n            resolve()\n        }\n    })\n}\n\nfunction isScript(el)   {\n    return el.tagName.toLowerCase() === 'script'\n}\n\nfunction cloneScriptTag(el) {\n    let script = document.createElement('script')\n\n    script.textContent = el.textContent\n    script.async = el.async\n\n    for (let attr of el.attributes) {\n        script.setAttribute(attr.name, attr.value)\n    }\n\n    return script\n}\n", "import { on } from '@/hooks'\n\non('commit', ({ succeed }) => {\n    succeed(({ effects }) => {\n        let download = effects.download\n\n        if (! download) return\n\n        // We need to use window.webkitURL so downloads work on iOS Safari.\n        let urlObject = window.webkitURL || window.URL\n\n        let url = urlObject.createObjectURL(\n            base64toBlob(download.content, download.contentType)\n        )\n\n        let invisibleLink = document.createElement('a')\n\n        invisibleLink.style.display = 'none'\n        invisibleLink.href = url\n        invisibleLink.download = download.name\n\n        document.body.appendChild(invisibleLink)\n\n        invisibleLink.click()\n\n        setTimeout(function() {\n            urlObject.revokeObjectURL(url)\n        }, 0);\n    })\n})\n\nfunction base64toBlob(b64Data, contentType = '', sliceSize = 512) {\n    const byteCharacters = atob(b64Data)\n    const byteArrays = []\n\n    if (contentType === null) contentType = ''\n\n    for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {\n        let slice = byteCharacters.slice(offset, offset + sliceSize)\n\n        let byteNumbers = new Array(slice.length)\n\n        for (let i = 0; i < slice.length; i++) {\n            byteNumbers[i] = slice.charCodeAt(i)\n        }\n\n        let byteArray = new Uint8Array(byteNumbers)\n\n        byteArrays.push(byteArray)\n    }\n\n    return new Blob(byteArrays, { type: contentType });\n}\n", "import { overrideMethod } from '@/$wire'\nimport { on } from '@/hooks'\nimport Alpine from 'alpinejs'\n\non('effect', ({ component, effects }) => {\n    let js = effects.js\n    let xjs = effects.xjs\n\n    if (js) {\n        Object.entries(js).forEach(([method, body]) => {\n            overrideMethod(component, method, () => {\n                Alpine.evaluate(component.el, body)\n            })\n        })\n    }\n\n    if (xjs) {\n        xjs.forEach(expression => {\n            Alpine.evaluate(component.el, expression)\n        })\n    }\n})\n\n", "import { on } from '@/hooks'\n\nlet componentsThatWantToBeBundled = new WeakSet\n\nlet componentsThatAreLazy = new WeakSet\n\non('component.init', ({ component }) => {\n    let memo = component.snapshot.memo\n\n    // We only care about lazy components...\n    if (memo.lazyLoaded === undefined) return\n\n    componentsThatAreLazy.add(component)\n\n    // The component doesn't want its lazy load to be an isolated request\n    // then we'll mark it to detect at \"pool\" time to make sure it gets bundled...\n    if (memo.lazyIsolated !== undefined && memo.lazyIsolated === false) {\n        componentsThatWantToBeBundled.add(component)\n    }\n})\n\non('commit.pooling', ({ commits }) => {\n    commits.forEach(commit => {\n        // We only care about lazy components...\n        if (! componentsThatAreLazy.has(commit.component)) return\n\n        if (componentsThatWantToBeBundled.has(commit.component)) {\n            commit.isolate = false\n\n            componentsThatWantToBeBundled.delete(commit.component)\n        } else {\n            commit.isolate = true\n        }\n\n        // Component is no longer lazy after the first full request, so remove it...\n        componentsThatAreLazy.delete(commit.component)\n    })\n})\n", "import { on } from '@/hooks'\nimport { dataGet } from '@/utils'\nimport Alpine from 'alpinejs'\nimport { track } from '@/plugins/history'\n\non('effect', ({ component, effects, cleanup }) => {\n    let queryString = effects['url']\n\n    if (! queryString) return\n\n    Object.entries(queryString).forEach(([key, value]) => {\n        let { name, as, use, alwaysShow, except } = normalizeQueryStringEntry(key, value)\n\n        if (! as) as = name\n\n        let initialValue = [false, null, undefined].includes(except) ? dataGet(component.ephemeral, name) : except\n\n        let { replace, push, pop } = track(as, initialValue, alwaysShow)\n\n        if (use === 'replace') {\n            let effectReference = Alpine.effect(() => {\n                replace(dataGet(component.reactive, name))\n            })\n\n            cleanup(() => Alpine.release(effectReference))\n        } else if (use === 'push') {\n            let forgetCommitHandler = on('commit', ({ component: commitComponent, succeed }) => {\n                if (component !== commitComponent) return\n\n                let beforeValue = dataGet(component.canonical, name)\n\n                succeed(() => {\n                    let afterValue = dataGet(component.canonical, name)\n\n                    if (JSON.stringify(beforeValue) === JSON.stringify(afterValue)) return\n\n                    push(afterValue)\n                })\n            })\n\n            let forgetPopHandler = pop(async newValue => {\n                await component.$wire.set(name, newValue)\n\n                // @todo: this is the absolute worst thing ever I'm so sorry this needs to be refactored stat:\n                document.querySelectorAll('input').forEach(el => {\n                    el._x_forceModelUpdate && el._x_forceModelUpdate(el._x_model.get())\n                })\n            })\n\n            cleanup(() => {\n                forgetCommitHandler()\n                forgetPopHandler()\n            })\n        }\n    })\n})\n\nfunction normalizeQueryStringEntry(key, value) {\n    let defaults = { use: 'replace', alwaysShow: false }\n\n    if (typeof value === 'string') {\n        return {...defaults, name: value, as: value }\n    } else {\n        let fullerDefaults = {...defaults, name: key, as: key }\n\n        return {...fullerDefaults, ...value }\n    }\n}\n", "import { on } from '@/hooks'\nimport { dispatchSelf } from '@/events'\n\non('request', ({ options }) => {\n    if (window.Echo) {\n        options.headers['X-Socket-ID'] = window.Echo.socketId()\n    }\n})\n\non('effect', ({ component, effects }) => {\n    let listeners = effects.listeners || []\n\n    listeners.forEach(event => {\n        if (event.startsWith('echo')) {\n            if (typeof window.Echo === 'undefined') {\n                console.warn('Laravel Echo cannot be found')\n\n                return\n            }\n\n            let event_parts = event.split(/(echo:|echo-)|:|,/)\n\n            if (event_parts[1] == 'echo:') {\n                event_parts.splice(2, 0, 'channel', undefined)\n            }\n\n            if (event_parts[2] == 'notification') {\n                event_parts.push(undefined, undefined)\n            }\n\n            let [\n                s1,\n                signature,\n                channel_type,\n                s2,\n                channel,\n                s3,\n                event_name,\n            ] = event_parts\n\n            if (['channel', 'private', 'encryptedPrivate'].includes(channel_type)) {\n                let handler = e => dispatchSelf(component, event, [e])\n\n                window.Echo[channel_type](channel).listen(event_name, handler)\n\n                component.addCleanup(() => {\n                    window.Echo[channel_type](channel).stopListening(event_name, handler)\n                })\n            } else if (channel_type == 'presence') {\n                if (['here', 'joining', 'leaving'].includes(event_name)) {\n                    window.Echo.join(channel)[event_name](e => {\n                        dispatchSelf(component, event, [e])\n                    })\n\n                    // @todo: add listener cleanup...\n                } else{\n                    let handler = e => dispatchSelf(component, event, [e])\n\n                    window.Echo.join(channel).listen(event_name, handler)\n\n                    component.addCleanup(() => {\n                        window.Echo.leaveChannel(channel)\n                    })\n                }\n            } else if (channel_type == 'notification') {\n                window.Echo.private(channel).notification(notification => {\n                    dispatchSelf(component, event, [notification])\n                })\n\n                // @todo: add listener cleanup...\n            } else {\n                console.warn('Echo channel type not yet supported')\n            }\n        }\n    })\n})\n", "import { on } from '@/hooks'\n\nlet componentsThatAreIsolated = new WeakSet\n\non('component.init', ({ component }) => {\n    let memo = component.snapshot.memo\n\n    // We only care about isolated components...\n    if (memo.isolate !== true) return\n\n    componentsThatAreIsolated.add(component)\n})\n\non('commit.pooling', ({ commits }) => {\n    commits.forEach(commit => {\n        // We only care about isolated components...\n        if (! componentsThatAreIsolated.has(commit.component)) return\n\n        commit.isolate = true\n    })\n})\n", "shouldHideProgressBar() && Alpine.navigate.disableProgressBar()\n\ndocument.addEventListener('alpine:navigated', e => {\n    // Forward a \"livewire\" version of the Alpine event...\n    document.dispatchEvent(new CustomEvent('livewire:navigated', { bubbles: true }))\n})\n\ndocument.addEventListener('alpine:navigating', e => {\n    // Forward a \"livewire\" version of the Alpine event...\n    document.dispatchEvent(new CustomEvent('livewire:navigating', { bubbles: true }))\n})\n\nexport function shouldRedirectUsingNavigateOr(effects, url, or) {\n    let forceNavigate = effects.redirectUsingNavigate\n\n    if (forceNavigate) {\n        Alpine.navigate(url)\n    } else {\n        or()\n    }\n}\n\nfunction shouldHideProgressBar() {\n    if (!! document.querySelector('[data-no-progress-bar]')) return true\n\n    if (window.livewireScriptConfig && window.livewireScriptConfig.progressBar === false) return true\n\n    return false\n}\n", "import { on } from \"@/hooks\"\nimport { shouldRedirectUsingNavigateOr } from \"./supportNavigate\"\n\non('effect', ({ effects }) => {\n    if (! effects['redirect']) return\n\n    let url = effects['redirect']\n\n    shouldRedirectUsingNavigateOr(effects, url, () => {\n        window.location.href = url\n    })\n})\n", "import { trigger } from \"@/hooks\"\nimport { closestComponent } from \"@/store\"\nimport Alpine from 'alpinejs'\n\nexport function morph(component, el, html) {\n    let wrapperTag = el.parentElement\n        // If the root element is a \"tr\", we need the wrapper to be a \"table\"...\n        ? el.parentElement.tagName.toLowerCase()\n        : 'div'\n\n    let wrapper = document.createElement(wrapperTag)\n\n    wrapper.innerHTML = html\n    let parentComponent\n\n    try {\n        parentComponent = closestComponent(el.parentElement)\n    } catch (e) {}\n\n    parentComponent && (wrapper.__livewire = parentComponent)\n\n    let to = wrapper.firstElementChild\n\n    to.__livewire = component\n\n    trigger('morph', { el, toEl: to, component })\n\n    Alpine.morph(el, to, {\n        updating: (el, toEl, childrenOnly, skip) => {\n            if (isntElement(el)) return\n\n            trigger('morph.updating', { el, toEl, component, skip, childrenOnly })\n\n            if (el.__livewire_ignore === true) return skip()\n            if (el.__livewire_ignore_self === true) childrenOnly()\n\n            // Children will update themselves.\n            if (isComponentRootEl(el) && el.getAttribute('wire:id') !== component.id) return skip()\n\n            // Give the root Livewire \"to\" element, the same object reference as the \"from\"\n            // element. This ensures new Alpine magics like $wire and @entangle can\n            // initialize in the context of a real Livewire component object.\n            if (isComponentRootEl(el)) toEl.__livewire = component\n        },\n\n        updated: (el) => {\n            if (isntElement(el)) return\n\n            trigger('morph.updated', { el, component })\n        },\n\n        removing: (el, skip) => {\n            if (isntElement(el)) return\n\n            trigger('morph.removing', { el, component, skip })\n        },\n\n        removed: (el) => {\n            if (isntElement(el)) return\n\n            trigger('morph.removed', { el, component })\n        },\n\n        adding: (el) => {\n            trigger('morph.adding', { el, component })\n        },\n\n        added: (el) => {\n            if (isntElement(el)) return\n\n            const closestComponentId = closestComponent(el).id\n\n            trigger('morph.added', { el })\n        },\n\n        key: (el) => {\n            if (isntElement(el)) return\n\n            return el.hasAttribute(`wire:key`)\n                ? el.getAttribute(`wire:key`)\n                : // If no \"key\", then first check for \"wire:id\", then \"id\"\n                el.hasAttribute(`wire:id`)\n                    ? el.getAttribute(`wire:id`)\n                    : el.id\n        },\n\n        lookahead: false,\n    })\n}\n\nfunction isntElement(el) {\n    return typeof el.hasAttribute !== 'function'\n}\n\nfunction isComponentRootEl(el) {\n    return el.hasAttribute('wire:id')\n}\n", "import { morph } from '@/morph'\nimport { on } from '@/hooks'\n\non('effect', ({ component, effects }) => {\n    let html = effects.html\n    if (! html) return\n\n    // Wrapping this in a double queueMicrotask. The first one puts it after all\n    // other \"effect\" hooks, and the second one puts it after all reactive\n    // Alpine effects (that are processed via flushJobs in scheduler).\n    queueMicrotask(() => {\n        queueMicrotask(() => {\n            morph(component, component.el, html)\n        })\n    })\n})\n", "import { dispatch, dispatchSelf, dispatchTo } from '@/events'\nimport { on as hook } from '@/hooks'\n\nhook('effect', ({ component, effects }) => {\n    registerListeners(component, effects.listeners || [])\n\n    dispatchEvents(component, effects.dispatches || [])\n})\n\nfunction registerListeners(component, listeners) {\n    listeners.forEach(name => {\n        // Register a global listener...\n        let handler = (e) => {\n            if (e.__livewire) e.__livewire.receivedBy.push(component)\n\n            component.$wire.call('__dispatch', name, e.detail || {})\n        }\n\n        window.addEventListener(name, handler)\n\n        component.addCleanup(() => window.removeEventListener(name, handler))\n\n        // Register a listener for when \"to\" or \"self\"\n        component.el.addEventListener(name, (e) => {\n            // We don't care about non-Livewire dispatches...\n            if (! e.__livewire) return\n\n            // We don't care about Livewire bubbling dispatches (only \"to\" and \"self\")...\n            if (e.bubbles) return\n\n            if (e.__livewire) e.__livewire.receivedBy.push(component.id)\n\n            component.$wire.call('__dispatch', name, e.detail || {})\n        })\n    })\n}\n\nfunction dispatchEvents(component, dispatches) {\n    dispatches.forEach(({ name, params = {}, self = false, to }) => {\n        if (self) dispatchSelf(component, name, params)\n        else if (to) dispatchTo(to, name, params)\n        else dispatch(component, name, params)\n    })\n}\n\n\n", "import { directive } from \"@/directives\"\nimport { on } from '@/hooks'\nimport Alpine from 'alpinejs'\n\non('morph.added', ({ el }) => {\n    el.__addedByMorph = true\n})\n\ndirective('transition', ({ el, directive, component, cleanup }) => {\n    let visibility = Alpine.reactive({ state: el.__addedByMorph ? false : true })\n\n    // We're going to control the element's transition with Alpine transitions...\n    Alpine.bind(el, {\n        [directive.rawName.replace('wire:', 'x-')]: '',\n        'x-show'() { return visibility.state },\n    })\n\n    // If it's not the initial page load, transition the element in...\n    el.__addedByMorph && setTimeout(() => visibility.state = true)\n\n    let cleanups = []\n\n    cleanups.push(on('morph.removing', ({ el, skip }) => {\n        // Here we interupt morphdom from removing an element...\n        skip()\n\n        // When the transition ends...\n        el.addEventListener('transitionend', () => {\n            // We can actually remove the element and all the listeners along with it...\n            el.remove()\n        })\n\n        // Now we can trigger a transition:\n        visibility.state = false\n\n        cleanups.push(on('morph', ({ component: morphComponent }) => {\n            if (morphComponent !== component) return\n\n            // While this element is transitioning out, a new morph is about to occur.\n            // Let's expidite this one and clean it up so it doesn't interfere...\n            el.remove()\n\n            cleanups.forEach(i => i())\n        }))\n    }))\n\n    cleanup(() => cleanups.forEach(i => i()))\n})\n\n\n\n", "import { WeakBag } from './utils'\n\nlet callbacksByComponent = new WeakBag\n\nexport function debounceByComponent(component, callback, time) {\n    // Prepare yourself for what's happening here.\n    // Any text input with wire:model on it should be \"debounced\" by ~150ms by default.\n    // We can't use a simple debounce function because we need a way to clear all the pending\n    // debounces if a user submits a form or performs some other action.\n    // This is a modified debounce function that acts just like a debounce, except it stores\n    // the pending callbacks in a global property so we can \"clear them\" on command instead\n    // of waiting for their setTimeouts to expire. I know.\n\n    // This is a \"null\" callback. Each wire:model will resister one of these upon initialization.\n    let callbackRegister = { callback: () => { } }\n    callbacksByComponent.add(component, callbackRegister)\n\n    // This is a normal \"timeout\" for a debounce function.\n    var timeout\n\n    return e => {\n        clearTimeout(timeout)\n\n        timeout = setTimeout(() => {\n            callback(e)\n            timeout = undefined\n\n            // Because we just called the callback, let's return the\n            // callback register to it's normal \"null\" state.\n            callbackRegister.callback = () => { }\n        }, time)\n\n        // Register the current callback in the register as a kind-of \"escape-hatch\".\n        callbackRegister.callback = () => {\n            clearTimeout(timeout)\n            callback(e)\n        }\n    }\n}\n\nexport function callAndClearComponentDebounces(component, callback) {\n    // This is to protect against the following scenario:\n    // A user is typing into a debounced input, and hits the enter key.\n    // If the enter key submits a form or something, the submission\n    // will happen BEFORE the model input finishes syncing because\n    // of the debounce. This makes sure to clear anything in the debounce queue.\n\n    callbacksByComponent.each(component, callbackRegister => {\n        callbackRegister.callback()\n        callbackRegister.callback = () => { }\n    })\n\n    callback()\n}\n", "import { callAndClearComponentDebounces } from '@/debounce'\nimport { on } from '@/hooks'\nimport Alpine from 'alpinejs'\n\non('directive.init', ({ el, directive, cleanup, component }) => {\n    if (['snapshot', 'effects', 'model', 'init', 'loading', 'poll', 'ignore', 'id', 'data', 'key', 'target', 'dirty'].includes(directive.value)) return\n\n    let attribute = directive.rawName.replace('wire:', 'x-on:')\n\n    // Automatically add .prevent to wire:submit, if they didn't add it themselves...\n    if (directive.value === 'submit' && ! directive.modifiers.includes('prevent')) {\n        attribute = attribute + '.prevent'\n    }\n\n    let cleanupBinding = Alpine.bind(el, {\n        [attribute](e) {\n            let execute = () => {\n                callAndClearComponentDebounces(component, () => {\n                    // Forward these calls directly to $wire. Let them handle firing the request.\n                    Alpine.evaluate(el, '$wire.'+directive.expression, { scope: { $event: e }})\n                })\n            }\n\n            // Account for the existance of wire:confirm=\"...\" on the action...\n            if (el.__livewire_confirm) {\n                el.__livewire_confirm(() => {\n                    execute()\n                }, () => {\n                    e.stopImmediatePropagation()\n                })\n            } else {\n                execute()\n            }\n        }\n    })\n\n    cleanup(cleanupBinding)\n})\n", "import Alpine from 'alpinejs'\n\nAlpine.addInitSelector(() => `[wire\\\\:navigate]`)\nAlpine.addInitSelector(() => `[wire\\\\:navigate\\\\.hover]`)\n\nAlpine.interceptInit(\n    Alpine.skipDuringClone(el => {\n        if (el.hasAttribute('wire:navigate')) {\n            Alpine.bind(el, { ['x-navigate']: true })\n        } else if (el.hasAttribute('wire:navigate.hover')) {\n            Alpine.bind(el, { ['x-navigate.hover']: true })\n        }\n    })\n)\n\ndocument.addEventListener('alpine:navigating', () => {\n    // Before navigating away, we'll inscribe the latest state of each component\n    // in their HTML so that upon return, they will have the latest state...\n    Livewire.all().forEach(component => {\n        component.inscribeSnapshotAndEffectsOnElement()\n    })\n})\n", "import { directive } from \"@/directives\"\n\ndirective('confirm', ({ el, directive }) => {\n    let message = directive.expression\n    let shouldPrompt = directive.modifiers.includes('prompt')\n\n    // Convert sanitized linebreaks (\"\\n\") to real line breaks...\n    message = message.replaceAll('\\\\n', '\\n')\n\n    if (message === '') message = 'Are you sure?'\n\n    el.__livewire_confirm = (action, instead) => {\n        if (shouldPrompt) {\n            let [question, expected] = message.split('|')\n\n            if (! expected) {\n                console.warn('Livewire: Must provide expectation with wire:confirm.prompt')\n            } else {\n                let input = prompt(question)\n\n                if (input === expected) {\n                    action()\n                } else {\n                    instead()\n                }\n            }\n        } else {\n            if (confirm(message)) action()\n            else instead()\n        }\n    }\n})\n", "\nexport function toggleBooleanStateDirective(el, directive, isTruthy, cachedDisplay = null) {\n    isTruthy = directive.modifiers.includes('remove') ? ! isTruthy : isTruthy\n\n    if (directive.modifiers.includes('class')) {\n        let classes = directive.expression.split(' ').filter(String)\n\n        if (isTruthy) {\n            el.classList.add(...classes)\n        } else {\n            el.classList.remove(...classes)\n        }\n    } else if (directive.modifiers.includes('attr')) {\n        if (isTruthy) {\n            el.setAttribute(directive.expression, true)\n        } else {\n            el.removeAttribute(directive.expression)\n        }\n    } else {\n        let cache = cachedDisplay ?? window\n            .getComputedStyle(el, null)\n            .getPropertyValue('display')\n\n        let display = (['inline', 'block', 'table', 'flex', 'grid', 'inline-flex']\n            .filter(i => directive.modifiers.includes(i))[0] || 'inline-block')\n\n        // If element is to be removed, set display to it's current value\n        display = directive.modifiers.includes('remove') ? cache : display\n\n        el.style.display = isTruthy ? display : 'none'\n    }\n}\n", "import { toggleBooleanStateDirective } from './shared'\nimport { directive } from '@/directives'\n\nlet offlineHandlers = new Set\nlet onlineHandlers = new Set\n\nwindow.addEventListener('offline', () => offlineHandlers.forEach(i => i()))\nwindow.addEventListener('online', () => onlineHandlers.forEach(i => i()))\n\ndirective('offline', ({ el, directive, cleanup }) => {\n    let setOffline = () => toggleBooleanStateDirective(el, directive, true)\n    let setOnline = () => toggleBooleanStateDirective(el, directive, false)\n\n    offlineHandlers.add(setOffline)\n    onlineHandlers.add(setOnline)\n\n    cleanup(() => {\n        offlineHandlers.delete(setOffline)\n        onlineHandlers.delete(setOnline)\n    })\n})\n", "import { toggleBooleanStateDirective } from './shared'\nimport { directive, getDirectives } from \"@/directives\"\nimport { on } from '@/hooks'\n\ndirective('loading', ({ el, directive, component }) => {\n    let { targets, inverted } = getTargets(el)\n\n    let [delay, abortDelay] = applyDelay(directive)\n\n    whenTargetsArePartOfRequest(component, targets, inverted, [\n        () => delay(() => toggleBooleanStateDirective(el, directive, true)),\n        () => abortDelay(() => toggleBooleanStateDirective(el, directive, false)),\n    ])\n\n    whenTargetsArePartOfFileUpload(component, targets, [\n        () => delay(() => toggleBooleanStateDirective(el, directive, true)),\n        () => abortDelay(() => toggleBooleanStateDirective(el, directive, false)),\n    ])\n})\n\nfunction applyDelay(directive) {\n    if (! directive.modifiers.includes('delay') || directive.modifiers.includes('none')) return [i => i(), i => i()]\n\n    let duration = 200\n\n    let delayModifiers = {\n        'shortest': 50,\n        'shorter': 100,\n        'short': 150,\n        'default': 200,\n        'long': 300,\n        'longer': 500,\n        'longest': 1000,\n    }\n\n    Object.keys(delayModifiers).some(key => {\n        if (directive.modifiers.includes(key)) {\n            duration = delayModifiers[key]\n\n            return true\n        }\n    })\n\n    let timeout\n    let started = false\n\n    return [\n        (callback) => { // Initiate delay...\n            timeout = setTimeout(() => {\n                callback()\n\n                started = true\n            }, duration)\n        },\n        async (callback) => { // Execute or abort...\n            if (started) {\n                await callback()\n                started = false\n            } else {\n                clearTimeout(timeout)\n            }\n        },\n    ]\n}\n\nfunction whenTargetsArePartOfRequest(component, targets, inverted, [ startLoading, endLoading ]) {\n    on('commit', ({ component: iComponent, commit: payload, respond }) => {\n        if (iComponent !== component) return\n\n        if (targets.length > 0 && containsTargets(payload, targets) === inverted) return\n\n        startLoading()\n\n        respond(() => {\n            endLoading()\n        })\n    })\n}\n\nfunction whenTargetsArePartOfFileUpload(component, targets, [ startLoading, endLoading ]) {\n    let eventMismatch = e => {\n        let { id, property } = e.detail\n\n        if (id !== component.id) return true\n        if (targets.length > 0 && ! targets.map(i => i.target).includes(property)) return true\n\n        return false\n    }\n\n    window.addEventListener('livewire-upload-start', e => {\n        if (eventMismatch(e)) return\n\n        startLoading()\n    })\n\n    window.addEventListener('livewire-upload-finish', e => {\n        if (eventMismatch(e)) return\n\n        endLoading()\n    })\n\n    window.addEventListener('livewire-upload-error', e => {\n        if (eventMismatch(e)) return\n\n        endLoading()\n    })\n}\n\nfunction containsTargets(payload, targets) {\n    let { updates, calls } = payload\n\n    return targets.some(({ target, params }) => {\n        if (params) {\n            return calls.some(({ method, params: methodParams }) => {\n                return target === method\n                    && params === quickHash(JSON.stringify(methodParams))\n            })\n        }\n\n        let hasMatchingUpdate = Object.keys(updates).some(property => {\n            // If the property is nested, like `foo.bar`, we need to check if the root `foo` is the target.\n            if (property.includes('.')) {\n                let propertyRoot = property.split('.')[0]\n\n                if (propertyRoot === target) return true\n            }\n\n            return property === target\n        })\n\n        if (hasMatchingUpdate) return true\n\n        if (calls.map(i => i.method).includes(target)) return true\n    })\n}\n\nfunction getTargets(el) {\n    let directives = getDirectives(el)\n\n    let targets = []\n\n    let inverted = false\n\n    if (directives.has('target')) {\n        let directive = directives.get('target')\n\n        let raw = directive.expression\n\n        if (directive.modifiers.includes(\"except\")) inverted = true\n\n        if (raw.includes('(') && raw.includes(')')) {\n            targets.push({ target: directive.method, params: quickHash(JSON.stringify(directive.params)) })\n        } else if (raw.includes(',')) {\n            raw.split(',').map(i => i.trim()).forEach(target => {\n                targets.push({ target })\n            })\n        } else {\n            targets.push({ target: raw })\n        }\n    } else {\n        // If there is no wire:target, let's check for the existance of a wire:click=\"foo\" or something,\n        // and automatically scope this loading directive to that action.\n        let nonActionOrModelLivewireDirectives = [ 'init', 'dirty', 'offline', 'target', 'loading', 'poll', 'ignore', 'key', 'id' ]\n\n        directives\n            .all()\n            .filter(i => ! nonActionOrModelLivewireDirectives.includes(i.value))\n            .map(i => i.expression.split('(')[0])\n            .forEach(target => targets.push({ target }))\n    }\n\n    return { targets, inverted }\n}\n\nfunction quickHash(subject) {\n    return btoa(encodeURIComponent(subject))\n}\n", "import { contentIsFromDump } from '@/utils'\nimport { directive } from '@/directives'\nimport { on, trigger } from '@/hooks'\n\ndirective('stream', ({el, directive, cleanup }) => {\n    let { expression, modifiers } = directive\n\n    let off = on('stream', ({ name, content, replace }) => {\n        if (name !== expression) return\n\n        if (modifiers.includes('replace') || replace) {\n            el.innerHTML = content\n        } else {\n            el.innerHTML = el.innerHTML + content\n        }\n    })\n\n    cleanup(off)\n})\n\non('request', ({ respond }) => {\n    respond(mutableObject => {\n        let response = mutableObject.response\n\n        if (! response.headers.has('X-Livewire-Stream')) return\n\n        mutableObject.response = {\n            ok: true,\n            redirected: false,\n            status: 200,\n\n            async text() {\n                let finalResponse = await interceptStreamAndReturnFinalResponse(response, streamed => {\n                    trigger('stream', streamed)\n                })\n\n                if (contentIsFromDump(finalResponse)) {\n                    this.ok = false\n                }\n\n                return finalResponse\n            }\n        }\n    })\n})\n\nasync function interceptStreamAndReturnFinalResponse(response, callback) {\n    let reader = response.body.getReader()\n    let remainingResponse = ''\n\n    while (true) {\n        let { done, value: chunk } = await reader.read()\n\n        let decoder = new TextDecoder\n        let output = decoder.decode(chunk)\n\n        let [ streams, remaining ] = extractStreamObjects(remainingResponse + output)\n\n        streams.forEach(stream => {\n            callback(stream)\n        })\n\n        remainingResponse = remaining\n\n        if (done) return remainingResponse\n    }\n}\n\nfunction extractStreamObjects(raw) {\n    let regex = /({\"stream\":true.*?\"endStream\":true})/g\n\n    let matches = raw.match(regex)\n\n    let parsed = []\n\n    if (matches) {\n        for (let i = 0; i < matches.length; i++) {\n            parsed.push(JSON.parse(matches[i]).body)\n        }\n    }\n\n    let remaining = raw.replace(regex, '');\n\n    return [ parsed, remaining ];\n}\n", "import { directive } from \"@/directives\"\n\ndirective('ignore', ({ el, directive }) => {\n    if (directive.modifiers.includes('self')) {\n        el.__livewire_ignore_self = true\n    } else {\n        el.__livewire_ignore = true\n    }\n})\n", "import { toggleBooleanStateDirective } from './shared'\nimport { directive, getDirectives } from '@/directives'\nimport { dataGet, WeakBag } from '@/utils'\nimport { on } from '@/hooks'\n\nlet refreshDirtyStatesByComponent = new WeakBag\n\non('commit', ({ component, respond }) => {\n    respond(() => {\n        setTimeout(() => { // Doing a \"setTimeout\" to let morphdom do its thing first...\n            refreshDirtyStatesByComponent.each(component, i => i(false))\n        })\n    })\n})\n\ndirective('dirty', ({ el, directive, component }) => {\n    let targets = dirtyTargets(el)\n\n    let dirty = Alpine.reactive({ state: false })\n\n    let oldIsDirty = false\n\n    let initialDisplay = el.style.display\n\n    let refreshDirtyState = (isDirty) => {\n        toggleBooleanStateDirective(el, directive, isDirty, initialDisplay)\n\n        oldIsDirty = isDirty\n    }\n\n    refreshDirtyStatesByComponent.add(component, refreshDirtyState)\n\n    Alpine.effect(() => {\n        let isDirty = false\n\n        if (targets.length === 0) {\n            isDirty = JSON.stringify(component.canonical) !== JSON.stringify(component.reactive)\n        } else {\n            for (let i = 0; i < targets.length; i++) {\n                if (isDirty) break;\n\n                let target = targets[i]\n\n                isDirty = JSON.stringify(dataGet(component.canonical, target)) !== JSON.stringify(dataGet(component.reactive, target))\n            }\n        }\n\n        if (oldIsDirty !== isDirty) {\n            refreshDirtyState(isDirty)\n        }\n\n        oldIsDirty = isDirty\n    })\n})\n\nfunction dirtyTargets(el) {\n    let directives = getDirectives(el)\n    let targets = []\n\n    if (directives.has('model')) {\n        targets.push(directives.get('model').expression)\n    }\n\n    if (directives.has('target')) {\n        targets = targets.concat(\n            directives\n            .get('target')\n            .expression.split(',')\n            .map(s => s.trim())\n        )\n    }\n\n    return targets\n}\n", "import { directive } from '@/directives'\nimport { handleFileUpload } from '@/features/supportFileUploads'\nimport { closestComponent } from '@/store'\nimport { dataGet, dataSet } from '@/utils'\nimport Alpine from 'alpinejs'\n\ndirective('model', ({ el, directive, component, cleanup }) => {\n    let { expression, modifiers } = directive\n\n    if (! expression) {\n        return console.warn('Livewire: [wire:model] is missing a value.', el)\n    }\n\n    if (componentIsMissingProperty(component, expression)) {\n        return console.warn('Livewire: [wire:model=\"'+expression+'\"] property does not exist on component: ['+component.name+']', el)\n    }\n\n    // Handle file uploads differently...\n    if (el.type && el.type.toLowerCase() === 'file') {\n        return handleFileUpload(el, expression, component, cleanup)\n    }\n\n    let isLive = modifiers.includes('live')\n    let isLazy = modifiers.includes('lazy') || modifiers.includes('change')\n    let onBlur = modifiers.includes('blur')\n    let isDebounced = modifiers.includes('debounce')\n\n    // Trigger a network request (only if .live or .lazy is added to wire:model)...\n    let update = expression.startsWith('$parent')\n        ? () => component.$wire.$parent.$commit()\n        : () => component.$wire.$commit()\n\n    // If a plain wire:model is added to a text input, debounce the\n    // trigerring of network requests.\n    let debouncedUpdate = isTextInput(el) && ! isDebounced && isLive\n        ? debounce(update, 150)\n        : update\n\n    Alpine.bind(el, {\n        ['@change']() {\n            isLazy && update()\n        },\n        ['@blur']() {\n            onBlur && update()\n        },\n        ['x-model' + getModifierTail(modifiers)]() {\n            return {\n                get() {\n                    return dataGet(component.$wire, expression)\n                },\n                set(value) {\n                    dataSet(component.$wire, expression, value)\n\n                    isLive && (! isLazy) && (! onBlur) && debouncedUpdate()\n                },\n            }\n        }\n    })\n})\n\nfunction getModifierTail(modifiers) {\n    modifiers = modifiers.filter(i => ! [\n        'lazy', 'defer'\n    ].includes(i))\n\n    if (modifiers.length === 0) return ''\n\n    return '.' + modifiers.join('.')\n}\n\nfunction isTextInput(el) {\n    return (\n        ['INPUT', 'TEXTAREA'].includes(el.tagName.toUpperCase()) &&\n        !['checkbox', 'radio'].includes(el.type)\n    )\n}\n\nfunction isDirty(subject, dirty) {\n    // Check for exact match: wire:model=\"bob\" in ['bob']\n    if (dirty.includes(subject)) return true\n\n    // Check case of parent: wire:model=\"bob.1\" in ['bob']\n    return dirty.some(i => subject.startsWith(i))\n}\n\nfunction componentIsMissingProperty(component, property) {\n    if (property.startsWith('$parent')) {\n        let parent = closestComponent(component.el.parentElement, false)\n\n        if (! parent) return true\n\n        return componentIsMissingProperty(parent, property.split('$parent.')[1])\n    }\n\n    let baseProperty = property.split('.')[0]\n\n    return ! Object.keys(component.canonical).includes(baseProperty)\n}\n\nfunction debounce(func, wait) {\n    var timeout;\n\n    return function() {\n      var context = this, args = arguments;\n\n      var later = function() {\n            timeout = null\n\n            func.apply(context, args)\n      }\n\n      clearTimeout(timeout)\n\n      timeout = setTimeout(later, wait)\n    }\n}\n", "import { directive } from \"@/directives\"\nimport Alpine from 'alpinejs'\n\ndirective('init', ({ el, directive }) => {\n    let fullMethod = directive.expression ?? '$refresh'\n\n    Alpine.evaluate(el, `$wire.${fullMethod}`)\n})\n\n", "import { directive, getDirectives } from \"@/directives\"\nimport Alpine from 'alpinejs'\n\ndirective('poll', ({ el, directive }) => {\n    let interval = extractDurationFrom(directive.modifiers, 2000)\n\n    let { start, pauseWhile, throttleWhile, stopWhen } = poll(() => {\n        triggerComponentRequest(el, directive)\n    }, interval)\n\n    start()\n\n    throttleWhile(() => theTabIsInTheBackground() && theDirectiveIsMissingKeepAlive(directive))\n    pauseWhile(() => theDirectiveHasVisible(directive) && theElementIsNotInTheViewport(el))\n    pauseWhile(() => theDirectiveIsOffTheElement(el))\n    pauseWhile(() => livewireIsOffline())\n    stopWhen(() => theElementIsDisconnected(el))\n})\n\nfunction triggerComponentRequest(el, directive) {\n    Alpine.evaluate(el,\n        directive.expression ? '$wire.' + directive.expression : '$wire.$commit()'\n    )\n}\n\nfunction poll(callback, interval = 2000) {\n    let pauseConditions = []\n    let throttleConditions = []\n    let stopConditions = []\n\n    return {\n        start() {\n            let clear = syncronizedInterval(interval, () => {\n                if (stopConditions.some(i => i())) return clear()\n                if (pauseConditions.some(i => i())) return\n                if (throttleConditions.some(i => i()) && Math.random() < .95) return\n\n                callback()\n            })\n        },\n        pauseWhile(condition) {\n            pauseConditions.push(condition)\n        },\n        throttleWhile(condition) {\n            throttleConditions.push(condition)\n        },\n        stopWhen(condition) {\n            stopConditions.push(condition)\n        }\n    }\n}\n\nlet clocks = []\n\nfunction syncronizedInterval(ms, callback) {\n    if (! clocks[ms]) {\n        let clock = {\n            timer: setInterval(() => clock.callbacks.forEach(i => i()), ms),\n            callbacks: new Set,\n        }\n\n        clocks[ms] = clock\n    }\n\n    clocks[ms].callbacks.add(callback)\n\n    return () => {\n        clocks[ms].callbacks.delete(callback)\n\n        if (clocks[ms].callbacks.size === 0) {\n            clearInterval(clocks[ms].timer)\n            delete clocks[ms]\n        }\n    }\n}\n\nlet isOffline = false\n\nwindow.addEventListener('offline', () => isOffline = true)\nwindow.addEventListener('online', () => isOffline = false)\n\nfunction livewireIsOffline() {\n    return isOffline\n}\n\nlet inBackground = false\n\ndocument.addEventListener('visibilitychange', () => { inBackground = document.hidden }, false)\n\nfunction theTabIsInTheBackground() {\n    return inBackground\n}\n\nfunction theDirectiveIsOffTheElement(el) {\n    return ! getDirectives(el).has('poll')\n}\n\nfunction theDirectiveIsMissingKeepAlive(directive) {\n    return ! directive.modifiers.includes('keep-alive')\n}\n\nfunction theDirectiveHasVisible(directive) {\n    return directive.modifiers.includes('visible')\n}\n\nfunction theElementIsNotInTheViewport(el) {\n    let bounding = el.getBoundingClientRect()\n\n    return ! (\n        bounding.top < (window.innerHeight || document.documentElement.clientHeight) &&\n        bounding.left < (window.innerWidth || document.documentElement.clientWidth) &&\n        bounding.bottom > 0 &&\n        bounding.right > 0\n    )\n}\n\nfunction theElementIsDisconnected(el) {\n    return el.isConnected === false\n}\n\nfunction extractDurationFrom(modifiers, defaultDuration) {\n    let durationInMilliSeconds\n    let durationInMilliSecondsString = modifiers.find(mod => mod.match(/([0-9]+)ms/))\n    let durationInSecondsString = modifiers.find(mod => mod.match(/([0-9]+)s/))\n\n    if (durationInMilliSecondsString) {\n        durationInMilliSeconds = Number(durationInMilliSecondsString.replace('ms', ''))\n    } else if (durationInSecondsString) {\n        durationInMilliSeconds = Number(durationInSecondsString.replace('s', '')) * 1000\n    }\n\n    return durationInMilliSeconds || defaultDuration\n}\n", "import { dispatchGlobal as dispatch, dispatchTo, on } from './events'\nimport { find, first, getByName, all } from './store'\nimport { start } from './lifecycle'\nimport { on as hook, trigger, triggerAsync } from './hooks'\nimport { directive } from './directives'\nimport Alpine from 'alpinejs'\n\nlet Livewire = {\n    directive,\n    dispatchTo,\n    start,\n    first,\n    find,\n    getByName,\n    all,\n    hook,\n    trigger,\n    triggerAsync,\n    dispatch,\n    on,\n    get navigate() {\n        return Alpine.navigate\n    }\n}\n\nif (window.Livewire) console.warn('Detected multiple instances of Livewire running')\nif (window.Alpine) console.warn('Detected multiple instances of Alpine running')\n\n// Register features...\nimport './features/index'\n\n// Register directives...\nimport './directives/index'\n\n// Make globals...\nwindow.Livewire = Livewire\nwindow.Alpine = Alpine\n\nif (window.livewireScriptConfig === undefined) {\n    document.addEventListener('DOMContentLoaded', () => {\n        // Start Livewire...\n        Livewire.start()\n    })\n}\n\nexport { Livewire, Alpine };\n"],
+  "mappings": "giBAAA,oBAGC,AAAC,UAAS,EAAM,EAAS,CAExB,AAAI,MAAO,SAAW,YAAc,OAAO,IACzC,OAAO,CAAO,EACT,AAAI,MAAO,KAAY,SAC5B,GAAO,QAAU,EAAQ,EAEzB,EAAK,UAAY,EAAQ,CAG7B,GAAG,GAAM,UAAW,CAClB,GAAI,GAAY,CAAC,EAEjB,EAAU,QAAU,QAEpB,GAAI,GAAW,EAAU,SAAW,CAClC,QAAS,IACT,OAAQ,OACR,cAAe,GACf,MAAO,IACP,QAAS,GACT,YAAa,IACb,aAAc,IACd,YAAa,GACb,YAAa,eACb,gBAAiB,mBACjB,OAAQ,OACR,SAAU,qIACZ,EASA,EAAU,UAAY,SAAS,EAAS,CACtC,GAAI,G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EA,YAAwC,EAAW,CAC/C,MAAO,CAAE,EAAU,UAAU,SAAS,YAAY,CACtD,CAEA,YAAgC,EAAW,CACvC,MAAO,GAAU,UAAU,SAAS,SAAS,CACjD,CAEA,YAAsC,EAAI,CACtC,GAAI,GAAW,EAAG,sBAAsB,EAExC,MAAO,CACH,GAAS,IAAO,QAAO,aAAe,SAAS,gBAAgB,eAC/D,EAAS,KAAQ,QAAO,YAAc,SAAS,gBAAgB,cAC/D,EAAS,OAAS,GAClB,EAAS,MAAQ,EAEzB,CAEA,YAAkC,EAAI,CAClC,MAAO,GAAG,cAAgB,EAC9B,CAEA,YAA6B,EAAW,EAAiB,CACrD,GAAI,GACA,EAA+B,EAAU,KAAK,GAAO,EAAI,MAAM,YAAY,CAAC,EAC5E,EAA0B,EAAU,KAAK,GAAO,EAAI,MAAM,WAAW,CAAC,EAE1E,MAAI,GACA,EAAyB,OAAO,EAA6B,QAAQ,KAAM,EAAE,CAAC,EACvE,GACP,GAAyB,OAAO,EAAwB,QAAQ,IAAK,EAAE,CAAC,EAAI,KAGzE,GAA0B,CACrC,CC7HA,GAAI,IAAW,CACX,YACA,cACA,SACA,SACA,QACA,aACA,OACA,OACA,UACA,gBACA,YACA,MACA,GAAI,WAAW,CACX,MAAO,GAAO,QAClB,CACJ,EAEA,AAAI,OAAO,UAAU,QAAQ,KAAK,iDAAiD,EACnF,AAAI,OAAO,QAAQ,QAAQ,KAAK,+CAA+C,EAS/E,OAAO,SAAW,GAClB,OAAO,OAAS,EAEhB,AAAI,OAAO,uBAAyB,QAChC,SAAS,iBAAiB,mBAAoB,IAAM,CAEhD,GAAS,MAAM,CACnB,CAAC",
   "names": []
 }
diff --git a/dist/manifest.json b/dist/manifest.json
index c4ddaf39..154963a2 100644
--- a/dist/manifest.json
+++ b/dist/manifest.json
@@ -1,2 +1,2 @@
 
-{"/livewire.js":"d76a01eb"}
+{"/livewire.js":"5d8beb2e"}
diff --git a/js/plugins/history/index.js b/js/plugins/history/index.js
index b4caf52a..f2e2beb8 100644
--- a/js/plugins/history/index.js
+++ b/js/plugins/history/index.js
@@ -259,11 +259,14 @@ function fromQueryString(search) {
         insertDotNotatedValueIntoData([second, ...rest].join('.'), value, data[first])
     }
 
     let entries = search.split('&').map(i => i.split('='))
 
-    let data = {}
+    // let data = {} creates a security (XSS) vulnerability here. We need to use
+    // Object.create(null) instead so that we have a "pure" object that doesnt
+    // inherit Object.prototype and expose the js internals to manipulation.
+    let data = Object.create(null)
 
     entries.forEach(([key, value]) => {
         value = decodeURIComponent(value.replaceAll('+', '%20'))
 
         if (! key.includes('[')) {
diff --git a/src/Features/SupportQueryString/BrowserTest.php b/src/Features/SupportQueryString/BrowserTest.php
index 873e109c..a701ba6e 100644
--- a/src/Features/SupportQueryString/BrowserTest.php
+++ b/src/Features/SupportQueryString/BrowserTest.php
@@ -758,10 +758,55 @@ class BrowserTest extends \Tests\BrowserTestCase
             ->waitForLivewire()->type('input', 'test')
             ->assertQueryStringHas('foo', 'test') // Type into the first component's input...
             ->assertQueryStringMissing('bar')
         ;
     }
+
+    /** @test */
+    public function cannot_inject_js_through_query_string()
+    {
+        $this->tweakApplication(function() {
+            app('livewire')->component('foo', new class extends Component {
+                #[Url]
+                public $foo = 'bar';
+
+                public function render()
+                {
+                    return <<<'HTML'
+                    <div>
+                        <div>Hi!</div>
+                        <!-- We wrap the alert in a setTimeout so that the injection has a chance to run first... -->
+                        <!-- <script>setTimeout(() => alert('foo'), 100)</script> -->
+                    </div>
+                    HTML;
+                }
+            });
+
+            \Illuminate\Support\Facades\Route::get('/foo', function () {
+                return app('livewire')->new('foo')();
+            })->middleware('web');
+        });
+
+        $this->browse(function ($browser) {
+            $browser->visit('/foo?constructor.prototype.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&__proto__.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&constructor[prototype][html]=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&constructor.prototype.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&__proto__.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&__proto__[html]=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E#constructor.prototype.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&__proto__.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&constructor[prototype][html]=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&constructor.prototype.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&__proto__.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&__proto__[html]=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E');
+
+            try {
+                $alert = $browser->driver->switchTo()->alert()->getText();
+            } catch (\Facebook\WebDriver\Exception\NoSuchAlertException $e) {
+                $this->assertTrue(true);
+
+                return;
+            }
+
+            $browser->waitForDialog();
+            $browser->acceptDialog();
+            $browser->waitForDialog();
+            $browser->acceptDialog();
+
+            $this->assertTrue(false, 'Maliciously injected alert detected');
+        });
+    }
 }
 
 class FormObject extends \Livewire\Form
 {
     #[\Livewire\Attributes\Url]

Vulnerable code:           if (el2._x_inited) {
            if (el2._x_ignore)
              skip();
            return;
          }
          if (el2._x_ignore) {
            skip();
          } else {
            el2._x_inited = true;
          }
        delete el._x_inited;
        return objects.some((obj) => Reflect.has(obj, name));
        const target = objects.find((obj) => Reflect.has(obj, name)) || objects[objects.length - 1];
      version: "3.13.6",
  let data = {};
        if (el2._x_inited) {
          if (el2._x_ignore)
            skip();
          return;
        }
        if (el2._x_ignore) {
          skip();
        } else {
          el2._x_inited = true;
        }
      delete el._x_inited;
      return objects.some((obj) => Reflect.has(obj, name));
      const target = objects.find((obj) => Reflect.has(obj, name)) || objects[objects.length - 1];
    version: "3.13.6",
    let data2 = {};
(()=>{var ja=Object.create;var zn=Object.defineProperty;var Ha=Object.getOwnPropertyDescriptor;var qa=Object.getOwnPropertyNames;var Wa=Object.getPrototypeOf,Ka=Object.prototype.hasOwnProperty;var za=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Va=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qa(t))!Ka.call(e,i)&&i!==r&&zn(e,i,{get:()=>t[i],enumerable:!(n=Ha(t,i))||n.enumerable});return e};var Ja=(e,t,r)=>(r=e!=null?ja(Wa(e)):{},Va(t||!e||!e.__esModule?zn(r,"default",{value:e,enumerable:!0}):r,e));var Ys=za((Rn,Xs)=>{(function(e,t){typeof define=="function"&&define.amd?define(t):typeof Rn=="object"?Xs.exports=t():e.NProgress=t()})(Rn,function(){var e={};e.version="0.2.0";var t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};e.configure=function(c){var f,m;for(f in c)m=c[f],m!==void 0&&c.hasOwnProperty(f)&&(t[f]=m);return this},e.status=null,e.set=function(c){var f=e.isStarted();c=r(c,t.minimum,1),e.status=c===1?null:c;var m=e.render(!f),v=m.querySelector(t.barSelector),g=t.speed,x=t.easing;return m.offsetWidth,o(function(b){t.positionUsing===""&&(t.positionUsing=e.getPositioningCSS()),s(v,i(c,g,x)),c===1?(s(m,{transition:"none",opacity:1}),m.offsetWidth,setTimeout(function(){s(m,{transition:"all "+g+"ms linear",opacity:0}),setTimeout(function(){e.remove(),b()},g)},g)):setTimeout(b,g)}),this},e.isStarted=function(){return typeof e.status=="number"},e.start=function(){e.status||e.set(0);var c=function(){setTimeout(function(){!e.status||(e.trickle(),c())},t.trickleSpeed)};return t.trickle&&c(),this},e.done=function(c){return!c&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(c){var f=e.status;return f?(typeof c!="number"&&(c=(1-f)*r(Math.random()*f,.1,.95)),f=r(f+c,0,.994),e.set(f)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var c=0,f=0;e.promise=function(m){return!m||m.state()==="resolved"?this:(f===0&&e.start(),c++,f++,m.always(function(){f--,f===0?(c=0,e.done()):e.set((c-f)/c)}),this)}}(),e.render=function(c){if(e.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var f=document.createElement("div");f.id="nprogress",f.innerHTML=t.template;var m=f.querySelector(t.barSelector),v=c?"-100":n(e.status||0),g=document.querySelector(t.parent),x;return s(m,{transition:"all 0 linear",transform:"translate3d("+v+"%,0,0)"}),t.showSpinner||(x=f.querySelector(t.spinnerSelector),x&&p(x)),g!=document.body&&l(g,"nprogress-custom-parent"),g.appendChild(f),f},e.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var c=document.getElementById("nprogress");c&&p(c)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var c=document.body.style,f="WebkitTransform"in c?"Webkit":"MozTransform"in c?"Moz":"msTransform"in c?"ms":"OTransform"in c?"O":"";return f+"Perspective"in c?"translate3d":f+"Transform"in c?"translate":"margin"};function r(c,f,m){return c<f?f:c>m?m:c}function n(c){return(-1+c)*100}function i(c,f,m){var v;return t.positionUsing==="translate3d"?v={transform:"translate3d("+n(c)+"%,0,0)"}:t.positionUsing==="translate"?v={transform:"translate("+n(c)+"%,0)"}:v={"margin-left":n(c)+"%"},v.transition="all "+f+"ms "+m,v}var o=function(){var c=[];function f(){var m=c.shift();m&&m(f)}return function(m){c.push(m),c.length==1&&f()}}(),s=function(){var c=["Webkit","O","Moz","ms"],f={};function m(b){return b.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(_,O){return O.toUpperCase()})}function v(b){var _=document.body.style;if(b in _)return b;for(var O=c.length,T=b.charAt(0).toUpperCase()+b.slice(1),w;O--;)if(w=c[O]+T,w in _)return w;return b}function g(b){return b=m(b),f[b]||(f[b]=v(b))}function x(b,_,O){_=g(_),b.style[_]=O}return function(b,_){var O=arguments,T,w;if(O.length==2)for(T in _)w=_[T],w!==void 0&&_.hasOwnProperty(T)&&x(b,T,w);else x(b,O[1],O[2])}}();function a(c,f){var m=typeof c=="string"?c:d(c);return m.indexOf(" "+f+" ")>=0}function l(c,f){var m=d(c),v=m+f;a(m,f)||(c.className=v.substring(1))}function u(c,f){var m=d(c),v;!a(c,f)||(v=m.replace(" "+f+" "," "),c.className=v.substring(1,v.length-1))}function d(c){return(" "+(c.className||"")+" ").replace(/\s+/gi," ")}function p(c){c&&c.parentNode&&c.parentNode.removeChild(c)}return e})});var Ie=class{constructor(){this.arrays=new WeakMap}add(t,r){this.arrays.has(t)||this.arrays.set(t,[]),this.arrays.get(t).push(r)}get(t){return this.arrays.has(t)?this.arrays.get(t):[]}each(t,r){return this.get(t).forEach(r)}};function gt(e,t,r={},n=!0){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:n,composed:!0,cancelable:!0}))}function vt(e){return typeof e=="object"&&e!==null}function Vn(e){return vt(e)&&!dr(e)}function dr(e){return Array.isArray(e)}function pr(e){return typeof e=="function"}function Jn(e){return typeof e!="object"||e===null}function le(e){return JSON.parse(JSON.stringify(e))}function W(e,t){return t===""?e:t.split(".").reduce((r,n)=>{if(r!==void 0)return r[n]},e)}function ve(e,t,r){let n=t.split(".");if(n.length===1)return e[t]=r;let i=n.shift(),o=n.join(".");e[i]===void 0&&(e[i]={}),ve(e[i],o,r)}function Ge(e,t,r={},n=""){if(e===t)return r;if(typeof e!=typeof t||Vn(e)&&dr(t)||dr(e)&&Vn(t)||Jn(e)||Jn(t))return r[n]=t,r;let i=Object.keys(e);return Object.entries(t).forEach(([o,s])=>{r={...r,...Ge(e[o],t[o],r,n===""?o:`${n}.${o}`)},i=i.filter(a=>a!==o)}),i.forEach(o=>{r[`${n}.${o}`]="__rm__"}),r}function be(e){let t=Gn(e)?e[0]:e,r=Gn(e)?e[1]:void 0;return vt(t)&&Object.entries(t).forEach(([n,i])=>{t[n]=be(i)}),t}function Gn(e){return Array.isArray(e)&&e.length===2&&typeof e[1]=="object"&&Object.keys(e[1]).includes("s")}function bt(){if(document.querySelector('meta[name="csrf-token"]'))return document.querySelector('meta[name="csrf-token"]').getAttribute("content");if(document.querySelector("[data-csrf]"))return document.querySelector("[data-csrf]").getAttribute("data-csrf");if(window.livewireScriptConfig.csrf??!1)return window.livewireScriptConfig.csrf;throw"Livewire: No CSRF token detected"}var Pe;function Xn(){if(Pe)return Pe;if(window.livewireScriptConfig&&(window.livewireScriptConfig.nonce??!1))return Pe=window.livewireScriptConfig.nonce,Pe;let e=document.querySelector("style[data-livewire-style][nonce]");return e?(Pe=e.nonce,Pe):null}function Yn(){return document.querySelector("[data-update-uri]")?.getAttribute("data-update-uri")??window.livewireScriptConfig.uri??null}function wt(e){return!!e.match(/<script>Sfdump\(".+"\)<\/script>/)}function Qn(e){let t=e.match(/.*<script>Sfdump\(".+"\)<\/script>/s);return[t,e.replace(t,"")]}var hr=new WeakMap;function Ye(e){if(!hr.has(e)){let t=new mr(e);hr.set(e,t),t.registerListeners()}return hr.get(e)}function Zn(e,t,r,n){let i=Ye(r),o=()=>e.dispatchEvent(new CustomEvent("livewire-upload-start",{bubbles:!0,detail:{id:r.id,property:t}})),s=()=>e.dispatchEvent(new CustomEvent("livewire-upload-finish",{bubbles:!0,detail:{id:r.id,property:t}})),a=()=>e.dispatchEvent(new CustomEvent("livewire-upload-error",{bubbles:!0,detail:{id:r.id,property:t}})),l=()=>e.dispatchEvent(new CustomEvent("livewire-upload-cancel",{bubbles:!0,detail:{id:r.id,property:t}})),u=c=>{var f=Math.round(c.loaded*100/c.total);e.dispatchEvent(new CustomEvent("livewire-upload-progress",{bubbles:!0,detail:{progress:f}}))},d=c=>{c.target.files.length!==0&&(o(),c.target.multiple?i.uploadMultiple(t,c.target.files,s,a,u,l):i.upload(t,c.target.files[0],s,a,u,l))};e.addEventListener("change",d);let p=()=>{e.value=null};e.addEventListener("click",p),e.addEventListener("livewire-upload-cancel",p),n(()=>{e.removeEventListener("change",d),e.removeEventListener("click",p)})}var mr=class{constructor(t){this.component=t,this.uploadBag=new Xe,this.removeBag=new Xe}registerListeners(){this.component.$wire.$on("upload:generatedSignedUrl",({name:t,url:r})=>{this.component,this.handleSignedUrl(t,r)}),this.component.$wire.$on("upload:generatedSignedUrlForS3",({name:t,payload:r})=>{this.component,this.handleS3PreSignedUrl(t,r)}),this.component.$wire.$on("upload:finished",({name:t,tmpFilenames:r})=>this.markUploadFinished(t,r)),this.component.$wire.$on("upload:errored",({name:t})=>this.markUploadErrored(t)),this.component.$wire.$on("upload:removed",({name:t,tmpFilename:r})=>this.removeBag.shift(t).finishCallback(r))}upload(t,r,n,i,o,s){this.setUpload(t,{files:[r],multiple:!1,finishCallback:n,errorCallback:i,progressCallback:o,cancelledCallback:s})}uploadMultiple(t,r,n,i,o,s){this.setUpload(t,{files:Array.from(r),multiple:!0,finishCallback:n,errorCallback:i,progressCallback:o,cancelledCallback:s})}removeUpload(t,r,n){this.removeBag.push(t,{tmpFilename:r,finishCallback:n}),this.component.$wire.call("_removeUpload",t,r)}setUpload(t,r){this.uploadBag.add(t,r),this.uploadBag.get(t).length===1&&this.startUpload(t,r)}handleSignedUrl(t,r){let n=new FormData;Array.from(this.uploadBag.first(t).files).forEach(s=>n.append("files[]",s,s.name));let i={Accept:"application/json"},o=bt();o&&(i["X-CSRF-TOKEN"]=o),this.makeRequest(t,n,"post",r,i,s=>s.paths)}handleS3PreSignedUrl(t,r){let n=this.uploadBag.first(t).files[0],i=r.headers;"Host"in i&&delete i.Host;let o=r.url;this.makeRequest(t,n,"put",o,i,s=>[r.path])}makeRequest(t,r,n,i,o,s){let a=new XMLHttpRequest;a.open(n,i),Object.entries(o).forEach(([l,u])=>{a.setRequestHeader(l,u)}),a.upload.addEventListener("progress",l=>{l.detail={},l.detail.progress=Math.round(l.loaded*100/l.total),this.uploadBag.first(t).progressCallback(l)}),a.addEventListener("load",()=>{if((a.status+"")[0]==="2"){let u=s(a.response&&JSON.parse(a.response));this.component.$wire.call("_finishUpload",t,u,this.uploadBag.first(t).multiple);return}let l=null;a.status===422&&(l=a.response),this.component.$wire.call("_uploadErrored",t,l,this.uploadBag.first(t).multiple)}),this.uploadBag.first(t).request=a,a.send(r)}startUpload(t,r){let n=r.files.map(i=>({name:i.name,size:i.size,type:i.type}));this.component.$wire.call("_startUpload",t,n,r.multiple),this.component}markUploadFinished(t,r){this.component;let n=this.uploadBag.shift(t);n.finishCallback(n.multiple?r:r[0]),this.uploadBag.get(t).length>0&&this.startUpload(t,this.uploadBag.last(t))}markUploadErrored(t){this.component,this.uploadBag.shift(t).errorCallback(),this.uploadBag.get(t).length>0&&this.startUpload(t,this.uploadBag.last(t))}cancelUpload(t,r=null){this.component;let n=this.uploadBag.first(t);n&&(n.request.abort(),this.uploadBag.shift(t).cancelledCallback(),r&&r())}},Xe=class{constructor(){this.bag={}}add(t,r){this.bag[t]||(this.bag[t]=[]),this.bag[t].push(r)}push(t,r){this.add(t,r)}first(t){return this.bag[t]?this.bag[t][0]:null}last(t){return this.bag[t].slice(-1)[0]}get(t){return this.bag[t]}shift(t){return this.bag[t].shift()}call(t,...r){(this.listeners[t]||[]).forEach(n=>{n(...r)})}has(t){return Object.keys(this.listeners).includes(t)}};function ei(e,t,r,n=()=>{},i=()=>{},o=()=>{},s=()=>{}){Ye(e).upload(t,r,n,i,o,s)}function ti(e,t,r,n=()=>{},i=()=>{},o=()=>{},s=()=>{}){Ye(e).uploadMultiple(t,r,n,i,o,s)}function ri(e,t,r,n=()=>{},i=()=>{}){Ye(e).removeUpload(t,r,n,i)}function ni(e,t,r=()=>{}){Ye(e).cancelUpload(t,r)}var yr=!1,xr=!1,xe=[],_r=-1;function Ga(e){Xa(e)}function Xa(e){xe.includes(e)||xe.push(e),Ya()}function bi(e){let t=xe.indexOf(e);t!==-1&&t>_r&&xe.splice(t,1)}function Ya(){!xr&&!yr&&(yr=!0,queueMicrotask(Qa))}function Qa(){yr=!1,xr=!0;for(let e=0;e<xe.length;e++)xe[e](),_r=e;xe.length=0,_r=-1,xr=!1}var De,Ae,$e,wi,Sr=!0;function Za(e){Sr=!1,e(),Sr=!0}function el(e){De=e.reactive,$e=e.release,Ae=t=>e.effect(t,{scheduler:r=>{Sr?Ga(r):r()}}),wi=e.raw}function ii(e){Ae=e}function tl(e){let t=()=>{};return[n=>{let i=Ae(n);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),$e(i))},i},()=>{t()}]}function yi(e,t){let r=!0,n,i=Ae(()=>{let o=e();JSON.stringify(o),r?n=o:queueMicrotask(()=>{t(o,n),n=o}),r=!1});return()=>$e(i)}function rt(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}function ce(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>ce(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)ce(n,t,!1),n=n.nextElementSibling}function Y(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var oi=!1;function rl(){oi&&Y("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),oi=!0,document.body||Y("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),rt(document,"alpine:init"),rt(document,"alpine:initializing"),qr(),ol(t=>ne(t,ce)),Ur(t=>Br(t)),Li((t,r)=>{Vr(t,r).forEach(n=>n())});let e=t=>!Lt(t.parentElement,!0);Array.from(document.querySelectorAll(Si().join(","))).filter(e).forEach(t=>{ne(t)}),rt(document,"alpine:initialized")}var $r=[],xi=[];function _i(){return $r.map(e=>e())}function Si(){return $r.concat(xi).map(e=>e())}function Ei(e){$r.push(e)}function Ai(e){xi.push(e)}function Lt(e,t=!1){return ot(e,r=>{if((t?Si():_i()).some(i=>r.matches(i)))return!0})}function ot(e,t){if(!!e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return ot(e.parentElement,t)}}function nl(e){return _i().some(t=>e.matches(t))}var Ci=[];function il(e){Ci.push(e)}function ne(e,t=ce,r=()=>{}){wl(()=>{t(e,(n,i)=>{if(n._x_inited){n._x_ignore&&i();return}r(n,i),Ci.forEach(o=>o(n,i)),Vr(n,n.attributes).forEach(o=>o()),n._x_ignore?i():n._x_inited=!0})})}function Br(e,t=ce){t(e,r=>{Ri(r),sl(r),delete r._x_inited})}var Ti=[],Oi=[],ki=[];function ol(e){ki.push(e)}function Ur(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Oi.push(t))}function Li(e){Ti.push(e)}function Ni(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function Ri(e,t){!e._x_attributeCleanups||Object.entries(e._x_attributeCleanups).forEach(([r,n])=>{(t===void 0||t.includes(r))&&(n.forEach(i=>i()),delete e._x_attributeCleanups[r])})}function sl(e){if(e._x_cleanups)for(;e._x_cleanups.length;)e._x_cleanups.pop()()}var jr=new MutationObserver(Kr),Hr=!1;function qr(){jr.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Hr=!0}function Pi(){al(),jr.disconnect(),Hr=!1}var Qe=[];function al(){let e=jr.takeRecords();Qe.push(()=>e.length>0&&Kr(e));let t=Qe.length;queueMicrotask(()=>{if(Qe.length===t)for(;Qe.length>0;)Qe.shift()()})}function B(e){if(!Hr)return e();Pi();let t=e();return qr(),t}var Wr=!1,Tt=[];function ll(){Wr=!0}function ul(){Wr=!1,Kr(Tt),Tt=[]}function Kr(e){if(Wr){Tt=Tt.concat(e);return}let t=new Set,r=new Set,n=new Map,i=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&(e[o].type==="childList"&&(e[o].addedNodes.forEach(s=>s.nodeType===1&&t.add(s)),e[o].removedNodes.forEach(s=>s.nodeType===1&&r.add(s))),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,l=e[o].oldValue,u=()=>{n.has(s)||n.set(s,[]),n.get(s).push({name:a,value:s.getAttribute(a)})},d=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&l===null?u():s.hasAttribute(a)?(d(),u()):d()}i.forEach((o,s)=>{Ri(s,o)}),n.forEach((o,s)=>{Ti.forEach(a=>a(s,o))});for(let o of r)t.has(o)||(Oi.forEach(s=>s(o)),Br(o));t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)!o.isConnected||(delete o._x_ignoreSelf,delete o._x_ignore,ki.forEach(s=>s(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,r=null,n=null,i=null}function Ii(e){return at(Me(e))}function st(e,t,r){return e._x_dataStack=[t,...Me(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(n=>n!==t)}}function Me(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?Me(e.host):e.parentNode?Me(e.parentNode):[]}function at(e){return new Proxy({objects:e},cl)}var cl={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(r=>Reflect.has(r,t))},get({objects:e},t,r){return t=="toJSON"?fl:Reflect.get(e.find(n=>Reflect.has(n,t))||{},t,r)},set({objects:e},t,r,n){let i=e.find(s=>Reflect.has(s,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(i,t);return o?.set&&o?.get?Reflect.set(i,t,r,n):Reflect.set(i,t,r)}};function fl(){return Reflect.ownKeys(this).reduce((t,r)=>(t[r]=Reflect.get(this,r),t),{})}function Mi(e){let t=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,r=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0||typeof s=="object"&&s!==null&&s.__v_skip)return;let l=i===""?o:`${i}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?n[o]=s.initialize(e,l,o):t(s)&&s!==n&&!(s instanceof Element)&&r(s,l)})};return r(e)}function Fi(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(n,i,o){return e(this.initialValue,()=>dl(n,i),s=>Er(n,i,s),i,o)}};return t(r),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let i=r.initialize.bind(r);r.initialize=(o,s,a)=>{let l=n.initialize(o,s,a);return r.initialValue=l,i(o,s,a)}}else r.initialValue=n;return r}}function dl(e,t){return t.split(".").reduce((r,n)=>r[n],e)}function Er(e,t,r){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=r;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Er(e[t[0]],t.slice(1),r)}}var Di={};function Z(e,t){Di[e]=t}function Ar(e,t){return Object.entries(Di).forEach(([r,n])=>{let i=null;function o(){if(i)return i;{let[s,a]=qi(t);return i={interceptor:Fi,...s},Ur(t,a),i}}Object.defineProperty(e,`$${r}`,{get(){return n(t,o())},enumerable:!1})}),e}function pl(e,t,r,...n){try{return r(...n)}catch(i){it(i,e,t)}}function it(e,t,r=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:r}),console.warn(`Alpine Expression Error: ${e.message}
`:""}`,t),setTimeout(()=>{throw e},0)}var At=!0;function $i(e){let t=At;At=!1;let r=e();return At=t,r}function _e(e,t,r={}){let n;return j(e,t)(i=>n=i,r),n}function j(...e){return Bi(...e)}var Bi=Ui;function hl(e){Bi=e}function Ui(e,t){let r={};Ar(r,e);let n=[r,...Me(e)],i=typeof t=="function"?ml(n,t):vl(n,t,e);return pl.bind(null,e,t,i)}function ml(e,t){return(r=()=>{},{scope:n={},params:i=[]}={})=>{let o=t.apply(at([n,...e]),i);Ot(r,o)}}var gr={};function gl(e,t){if(gr[e])return gr[e];let r=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let s=new r(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return it(s,t,e),Promise.resolve()}})();return gr[e]=o,o}function vl(e,t,r){let n=gl(t,r);return(i=()=>{},{scope:o={},params:s=[]}={})=>{n.result=void 0,n.finished=!1;let a=at([o,...e]);if(typeof n=="function"){let l=n(n,a).catch(u=>it(u,r,t));n.finished?(Ot(i,n.result,a,s,r),n.result=void 0):l.then(u=>{Ot(i,u,a,s,r)}).catch(u=>it(u,r,t)).finally(()=>n.result=void 0)}}}function Ot(e,t,r,n,i){if(At&&typeof t=="function"){let o=t.apply(r,n);o instanceof Promise?o.then(s=>Ot(e,s,r,n)).catch(s=>it(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var zr="x-";function Be(e=""){return zr+e}function bl(e){zr=e}var Cr={};function F(e,t){return Cr[e]=t,{before(r){if(!Cr[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${e}\` will use the default order of execution`);return}let n=ye.indexOf(r);ye.splice(n>=0?n:ye.indexOf("DEFAULT"),0,e)}}}function Vr(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),s=ji(o);o=o.map(a=>s.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(o)}let n={};return t.map(zi((o,s)=>n[o]=s)).filter(Ji).map(xl(n,r)).sort(_l).map(o=>yl(e,o))}function ji(e){return Array.from(e).map(zi()).filter(t=>!Ji(t))}var Tr=!1,tt=new Map,Hi=Symbol();function wl(e){Tr=!0;let t=Symbol();Hi=t,tt.set(t,[]);let r=()=>{for(;tt.get(t).length;)tt.get(t).shift()();tt.delete(t)},n=()=>{Tr=!1,r()};e(r),n()}function qi(e){let t=[],r=a=>t.push(a),[n,i]=tl(e);return t.push(i),[{Alpine:lt,effect:n,cleanup:r,evaluateLater:j.bind(j,e),evaluate:_e.bind(_e,e)},()=>t.forEach(a=>a())]}function yl(e,t){let r=()=>{},n=Cr[t.type]||r,[i,o]=qi(e);Ni(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,i),n=n.bind(n,e,t,i),Tr?tt.get(Hi).push(n):n())};return s.runCleanups=o,s}var Wi=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),Ki=e=>e;function zi(e=()=>{}){return({name:t,value:r})=>{let{name:n,value:i}=Vi.reduce((o,s)=>s(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var Vi=[];function Jr(e){Vi.push(e)}function Ji({name:e}){return Gi().test(e)}var Gi=()=>new RegExp(`^${zr}([^:^.]+)\\b`);function xl(e,t){return({name:r,value:n})=>{let i=r.match(Gi()),o=r.match(/:([a-zA-Z0-9\-_:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(l=>l.replace(".","")),expression:n,original:a}}}var Or="DEFAULT",ye=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Or,"teleport"];function _l(e,t){let r=ye.indexOf(e.type)===-1?Or:e.type,n=ye.indexOf(t.type)===-1?Or:t.type;return ye.indexOf(r)-ye.indexOf(n)}var kr=[],Gr=!1;function Xr(e=()=>{}){return queueMicrotask(()=>{Gr||setTimeout(()=>{Lr()})}),new Promise(t=>{kr.push(()=>{e(),t()})})}function Lr(){for(Gr=!1;kr.length;)kr.shift()()}function Sl(){Gr=!0}function Yr(e,t){return Array.isArray(t)?si(e,t.join(" ")):typeof t=="object"&&t!==null?El(e,t):typeof t=="function"?Yr(e,t()):si(e,t)}function si(e,t){let r=o=>o.split(" ").filter(Boolean),n=o=>o.split(" ").filter(s=>!e.classList.contains(s)).filter(Boolean),i=o=>(e.classList.add(...o),()=>{e.classList.remove(...o)});return t=t===!0?t="":t||"",i(n(t))}function El(e,t){let r=a=>a.split(" ").filter(Boolean),n=Object.entries(t).flatMap(([a,l])=>l?r(a):!1).filter(Boolean),i=Object.entries(t).flatMap(([a,l])=>l?!1:r(a)).filter(Boolean),o=[],s=[];return i.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),n.forEach(a=>{e.classList.contains(a)||(e.classList.add(a),o.push(a))}),()=>{s.forEach(a=>e.classList.add(a)),o.forEach(a=>e.classList.remove(a))}}function Nt(e,t){return typeof t=="object"&&t!==null?Al(e,t):Cl(e,t)}function Al(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{r[n]=e.style[n],n.startsWith("--")||(n=Tl(n)),e.style.setProperty(n,i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{Nt(e,r)}}function Cl(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r||"")}}function Tl(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Nr(e,t=()=>{}){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}F("transition",(e,{value:t,modifiers:r,expression:n},{evaluate:i})=>{typeof n=="function"&&(n=i(n)),n!==!1&&(!n||typeof n=="boolean"?kl(e,r,t):Ol(e,n,t))});function Ol(e,t,r){Xi(e,Yr,""),{enter:i=>{e._x_transition.enter.during=i},"enter-start":i=>{e._x_transition.enter.start=i},"enter-end":i=>{e._x_transition.enter.end=i},leave:i=>{e._x_transition.leave.during=i},"leave-start":i=>{e._x_transition.leave.start=i},"leave-end":i=>{e._x_transition.leave.end=i}}[r](t)}function kl(e,t,r){Xi(e,Nt);let n=!t.includes("in")&&!t.includes("out")&&!r,i=n||t.includes("in")||["enter"].includes(r),o=n||t.includes("out")||["leave"].includes(r);t.includes("in")&&!n&&(t=t.filter((x,b)=>b<t.indexOf("out"))),t.includes("out")&&!n&&(t=t.filter((x,b)=>b>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),l=s||t.includes("scale"),u=a?0:1,d=l?Ze(t,"scale",95)/100:1,p=Ze(t,"delay",0)/1e3,c=Ze(t,"origin","center"),f="opacity, transform",m=Ze(t,"duration",150)/1e3,v=Ze(t,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:c,transitionDelay:`${p}s`,transitionProperty:f,transitionDuration:`${m}s`,transitionTimingFunction:g},e._x_transition.enter.start={opacity:u,transform:`scale(${d})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:c,transitionDelay:`${p}s`,transitionProperty:f,transitionDuration:`${v}s`,transitionTimingFunction:g},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:u,transform:`scale(${d})`})}function Xi(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},i=()=>{}){Rr(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=()=>{},i=()=>{}){Rr(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,n){let i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,o=()=>i(r);if(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(r):o():e._x_transition?e._x_transition.in(r):o();return}e._x_hidePromise=e._x_transition?new Promise((s,a)=>{e._x_transition.out(()=>{},()=>s(n)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let s=Yi(e);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(e)):i(()=>{let a=l=>{let u=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(a)]).then(([d])=>d());return delete l._x_hidePromise,delete l._x_hideChildren,u};a(e).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function Yi(e){let t=e.parentNode;if(!!t)return t._x_hidePromise?t:Yi(t)}function Rr(e,t,{during:r,start:n,end:i}={},o=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(n).length===0&&Object.keys(i).length===0){o(),s();return}let a,l,u;Ll(e,{start(){a=t(e,n)},during(){l=t(e,r)},before:o,end(){a(),u=t(e,i)},after:s,cleanup(){l(),u()}})}function Ll(e,t){let r,n,i,o=Nr(()=>{B(()=>{r=!0,n||t.before(),i||(t.end(),Lr()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:Nr(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},B(()=>{t.start(),t.during()}),Sl(),requestAnimationFrame(()=>{if(r)return;let s=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),B(()=>{t.before()}),n=!0,requestAnimationFrame(()=>{r||(B(()=>{t.end()}),Lr(),setTimeout(e._x_transitioning.finish,s+a),i=!0)})})}function Ze(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n||t==="scale"&&isNaN(n))return r;if(t==="duration"||t==="delay"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[n,e[e.indexOf(t)+2]].join(" "):n}var fe=!1;function Ce(e,t=()=>{}){return(...r)=>fe?t(...r):e(...r)}function Nl(e){return(...t)=>fe&&e(...t)}var Qi=[];function Rt(e){Qi.push(e)}function Rl(e,t){Qi.forEach(r=>r(e,t)),fe=!0,Zi(()=>{ne(t,(r,n)=>{n(r,()=>{})})}),fe=!1}var Pr=!1;function Pl(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),fe=!0,Pr=!0,Zi(()=>{Il(t)}),fe=!1,Pr=!1}function Il(e){let t=!1;ne(e,(n,i)=>{ce(n,(o,s)=>{if(t&&nl(o))return s();t=!0,i(o,s)})})}function Zi(e){let t=Ae;ii((r,n)=>{let i=t(r);return $e(i),()=>{}}),e(),ii(t)}function eo(e,t,r,n=[]){switch(e._x_bindings||(e._x_bindings=De({})),e._x_bindings[t]=r,t=n.includes("camel")?Hl(t):t,t){case"value":Ml(e,r);break;case"style":Dl(e,r);break;case"class":Fl(e,r);break;case"selected":case"checked":$l(e,t,r);break;default:to(e,t,r);break}}function Ml(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=Ct(e.value)===t:e.checked=ai(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(r=>ai(r,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")jl(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function Fl(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Yr(e,t)}function Dl(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Nt(e,t)}function $l(e,t,r){to(e,t,r),Ul(e,t,r)}function to(e,t,r){[null,void 0,!1].includes(r)&&ql(t)?e.removeAttribute(t):(ro(t)&&(r=t),Bl(e,t,r))}function Bl(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}function Ul(e,t,r){e[t]!==r&&(e[t]=r)}function jl(e,t){let r=[].concat(t).map(n=>n+"");Array.from(e.options).forEach(n=>{n.selected=r.includes(n.value)})}function Hl(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function ai(e,t){return e==t}function Ct(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?Boolean(e):null}function ro(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function ql(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function Wl(e,t,r){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:no(e,t,r)}function Kl(e,t,r,n=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let i=e._x_inlineBindings[t];return i.extract=n,$i(()=>_e(e,i.expression))}return no(e,t,r)}function no(e,t,r){let n=e.getAttribute(t);return n===null?typeof r=="function"?r():r:n===""?!0:ro(t)?!![t,"true"].includes(n):n}function io(e,t){var r;return function(){var n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}function oo(e,t){let r;return function(){let n=this,i=arguments;r||(e.apply(n,i),r=!0,setTimeout(()=>r=!1,t))}}function so({get:e,set:t},{get:r,set:n}){let i=!0,o,s,a=Ae(()=>{let l=e(),u=r();if(i)n(vr(l)),i=!1;else{let d=JSON.stringify(l),p=JSON.stringify(u);d!==o?n(vr(l)):d!==p&&t(vr(u))}o=JSON.stringify(e()),s=JSON.stringify(r())});return()=>{$e(a)}}function vr(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function zl(e){(Array.isArray(e)?e:[e]).forEach(r=>r(lt))}var we={},li=!1;function Vl(e,t){if(li||(we=De(we),li=!0),t===void 0)return we[e];we[e]=t,typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&we[e].init(),Mi(we[e])}function Jl(){return we}var ao={};function Gl(e,t){let r=typeof t!="function"?()=>t:t;return e instanceof Element?lo(e,r()):(ao[e]=r,()=>{})}function Xl(e){return Object.entries(ao).forEach(([t,r])=>{Object.defineProperty(e,t,{get(){return(...n)=>r(...n)}})}),e}function lo(e,t,r){let n=[];for(;n.length;)n.pop()();let i=Object.entries(t).map(([s,a])=>({name:s,value:a})),o=ji(i);return i=i.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),Vr(e,i,r).map(s=>{n.push(s.runCleanups),s()}),()=>{for(;n.length;)n.pop()()}}var uo={};function Yl(e,t){uo[e]=t}function Ql(e,t){return Object.entries(uo).forEach(([r,n])=>{Object.defineProperty(e,r,{get(){return(...i)=>n.bind(t)(...i)},enumerable:!1})}),e}var Zl={get reactive(){return De},get release(){return $e},get effect(){return Ae},get raw(){return wi},version:"3.13.6",flushAndStopDeferringMutations:ul,dontAutoEvaluateFunctions:$i,disableEffectScheduling:Za,startObservingMutations:qr,stopObservingMutations:Pi,setReactivityEngine:el,onAttributeRemoved:Ni,onAttributesAdded:Li,closestDataStack:Me,skipDuringClone:Ce,onlyDuringClone:Nl,addRootSelector:Ei,addInitSelector:Ai,interceptClone:Rt,addScopeToNode:st,deferMutations:ll,mapAttributes:Jr,evaluateLater:j,interceptInit:il,setEvaluator:hl,mergeProxies:at,extractProp:Kl,findClosest:ot,onElRemoved:Ur,closestRoot:Lt,destroyTree:Br,interceptor:Fi,transition:Rr,setStyles:Nt,mutateDom:B,directive:F,entangle:so,throttle:oo,debounce:io,evaluate:_e,initTree:ne,nextTick:Xr,prefixed:Be,prefix:bl,plugin:zl,magic:Z,store:Vl,start:rl,clone:Pl,cloneNode:Rl,bound:Wl,$data:Ii,watch:yi,walk:ce,data:Yl,bind:Gl},lt=Zl;function co(e,t){let r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}var eu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ad=co(eu+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),tu=Object.freeze({}),Cd=Object.freeze([]),ru=Object.prototype.hasOwnProperty,Pt=(e,t)=>ru.call(e,t),Se=Array.isArray,nt=e=>fo(e)==="[object Map]",nu=e=>typeof e=="string",Qr=e=>typeof e=="symbol",It=e=>e!==null&&typeof e=="object",iu=Object.prototype.toString,fo=e=>iu.call(e),po=e=>fo(e).slice(8,-1),Zr=e=>nu(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mt=e=>{let t=Object.create(null);return r=>t[r]||(t[r]=e(r))},ou=/-(\w)/g,Td=Mt(e=>e.replace(ou,(t,r)=>r?r.toUpperCase():"")),su=/\B([A-Z])/g,Od=Mt(e=>e.replace(su,"-$1").toLowerCase()),ho=Mt(e=>e.charAt(0).toUpperCase()+e.slice(1)),kd=Mt(e=>e?`on${ho(e)}`:""),mo=(e,t)=>e!==t&&(e===e||t===t),Ir=new WeakMap,et=[],ee,Ee=Symbol("iterate"),Mr=Symbol("Map key iterate");function au(e){return e&&e._isEffect===!0}function lu(e,t=tu){au(e)&&(e=e.raw);let r=fu(e,t);return t.lazy||r(),r}function uu(e){e.active&&(go(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var cu=0;function fu(e,t){let r=function(){if(!r.active)return e();if(!et.includes(r)){go(r);try{return pu(),et.push(r),ee=r,e()}finally{et.pop(),vo(),ee=et[et.length-1]}}};return r.id=cu++,r.allowRecurse=!!t.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=t,r}function go(e){let{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var Fe=!0,en=[];function du(){en.push(Fe),Fe=!1}function pu(){en.push(Fe),Fe=!0}function vo(){let e=en.pop();Fe=e===void 0?!0:e}function Q(e,t,r){if(!Fe||ee===void 0)return;let n=Ir.get(e);n||Ir.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=new Set),i.has(ee)||(i.add(ee),ee.deps.push(i),ee.options.onTrack&&ee.options.onTrack({effect:ee,target:e,type:t,key:r}))}function de(e,t,r,n,i,o){let s=Ir.get(e);if(!s)return;let a=new Set,l=d=>{d&&d.forEach(p=>{(p!==ee||p.allowRecurse)&&a.add(p)})};if(t==="clear")s.forEach(l);else if(r==="length"&&Se(e))s.forEach((d,p)=>{(p==="length"||p>=n)&&l(d)});else switch(r!==void 0&&l(s.get(r)),t){case"add":Se(e)?Zr(r)&&l(s.get("length")):(l(s.get(Ee)),nt(e)&&l(s.get(Mr)));break;case"delete":Se(e)||(l(s.get(Ee)),nt(e)&&l(s.get(Mr)));break;case"set":nt(e)&&l(s.get(Ee));break}let u=d=>{d.options.onTrigger&&d.options.onTrigger({effect:d,target:e,key:r,type:t,newValue:n,oldValue:i,oldTarget:o}),d.options.scheduler?d.options.scheduler(d):d()};a.forEach(u)}var hu=co("__proto__,__v_isRef,__isVue"),bo=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Qr)),mu=wo(),gu=wo(!0),ui=vu();function vu(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){let n=I(this);for(let o=0,s=this.length;o<s;o++)Q(n,"get",o+"");let i=n[t](...r);return i===-1||i===!1?n[t](...r.map(I)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){du();let n=I(this)[t].apply(this,r);return vo(),n}}),e}function wo(e=!1,t=!1){return function(n,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?Pu:So:t?Ru:_o).get(n))return n;let s=Se(n);if(!e&&s&&Pt(ui,i))return Reflect.get(ui,i,o);let a=Reflect.get(n,i,o);return(Qr(i)?bo.has(i):hu(i))||(e||Q(n,"get",i),t)?a:Fr(a)?!s||!Zr(i)?a.value:a:It(a)?e?Eo(a):on(a):a}}var bu=wu();function wu(e=!1){return function(r,n,i,o){let s=r[n];if(!e&&(i=I(i),s=I(s),!Se(r)&&Fr(s)&&!Fr(i)))return s.value=i,!0;let a=Se(r)&&Zr(n)?Number(n)<r.length:Pt(r,n),l=Reflect.set(r,n,i,o);return r===I(o)&&(a?mo(i,s)&&de(r,"set",n,i,s):de(r,"add",n,i)),l}}function yu(e,t){let r=Pt(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&de(e,"delete",t,void 0,n),i}function xu(e,t){let r=Reflect.has(e,t);return(!Qr(t)||!bo.has(t))&&Q(e,"has",t),r}function _u(e){return Q(e,"iterate",Se(e)?"length":Ee),Reflect.ownKeys(e)}var Su={get:mu,set:bu,deleteProperty:yu,has:xu,ownKeys:_u},Eu={get:gu,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},tn=e=>It(e)?on(e):e,rn=e=>It(e)?Eo(e):e,nn=e=>e,Ft=e=>Reflect.getPrototypeOf(e);function yt(e,t,r=!1,n=!1){e=e.__v_raw;let i=I(e),o=I(t);t!==o&&!r&&Q(i,"get",t),!r&&Q(i,"get",o);let{has:s}=Ft(i),a=n?nn:r?rn:tn;if(s.call(i,t))return a(e.get(t));if(s.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function xt(e,t=!1){let r=this.__v_raw,n=I(r),i=I(e);return e!==i&&!t&&Q(n,"has",e),!t&&Q(n,"has",i),e===i?r.has(e):r.has(e)||r.has(i)}function _t(e,t=!1){return e=e.__v_raw,!t&&Q(I(e),"iterate",Ee),Reflect.get(e,"size",e)}function ci(e){e=I(e);let t=I(this);return Ft(t).has.call(t,e)||(t.add(e),de(t,"add",e,e)),this}function fi(e,t){t=I(t);let r=I(this),{has:n,get:i}=Ft(r),o=n.call(r,e);o?xo(r,n,e):(e=I(e),o=n.call(r,e));let s=i.call(r,e);return r.set(e,t),o?mo(t,s)&&de(r,"set",e,t,s):de(r,"add",e,t),this}function di(e){let t=I(this),{has:r,get:n}=Ft(t),i=r.call(t,e);i?xo(t,r,e):(e=I(e),i=r.call(t,e));let o=n?n.call(t,e):void 0,s=t.delete(e);return i&&de(t,"delete",e,void 0,o),s}function pi(){let e=I(this),t=e.size!==0,r=nt(e)?new Map(e):new Set(e),n=e.clear();return t&&de(e,"clear",void 0,void 0,r),n}function St(e,t){return function(n,i){let o=this,s=o.__v_raw,a=I(s),l=t?nn:e?rn:tn;return!e&&Q(a,"iterate",Ee),s.forEach((u,d)=>n.call(i,l(u),l(d),o))}}function Et(e,t,r){return function(...n){let i=this.__v_raw,o=I(i),s=nt(o),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...n),d=r?nn:t?rn:tn;return!t&&Q(o,"iterate",l?Mr:Ee),{next(){let{value:p,done:c}=u.next();return c?{value:p,done:c}:{value:a?[d(p[0]),d(p[1])]:d(p),done:c}},[Symbol.iterator](){return this}}}}function ue(e){return function(...t){{let r=t[0]?`on key "${t[0]}" `:"";console.warn(`${ho(e)} operation ${r}failed: target is readonly.`,I(this))}return e==="delete"?!1:this}}function Au(){let e={get(o){return yt(this,o)},get size(){return _t(this)},has:xt,add:ci,set:fi,delete:di,clear:pi,forEach:St(!1,!1)},t={get(o){return yt(this,o,!1,!0)},get size(){return _t(this)},has:xt,add:ci,set:fi,delete:di,clear:pi,forEach:St(!1,!0)},r={get(o){return yt(this,o,!0)},get size(){return _t(this,!0)},has(o){return xt.call(this,o,!0)},add:ue("add"),set:ue("set"),delete:ue("delete"),clear:ue("clear"),forEach:St(!0,!1)},n={get(o){return yt(this,o,!0,!0)},get size(){return _t(this,!0)},has(o){return xt.call(this,o,!0)},add:ue("add"),set:ue("set"),delete:ue("delete"),clear:ue("clear"),forEach:St(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Et(o,!1,!1),r[o]=Et(o,!0,!1),t[o]=Et(o,!1,!0),n[o]=Et(o,!0,!0)}),[e,r,t,n]}var[Cu,Tu,Ou,ku]=Au();function yo(e,t){let r=t?e?ku:Ou:e?Tu:Cu;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Pt(r,i)&&i in n?r:n,i,o)}var Lu={get:yo(!1,!1)},Nu={get:yo(!0,!1)};function xo(e,t,r){let n=I(r);if(n!==r&&t.call(e,n)){let i=po(e);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="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 _o=new WeakMap,Ru=new WeakMap,So=new WeakMap,Pu=new WeakMap;function Iu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mu(e){return e.__v_skip||!Object.isExtensible(e)?0:Iu(po(e))}function on(e){return e&&e.__v_isReadonly?e:Ao(e,!1,Su,Lu,_o)}function Eo(e){return Ao(e,!0,Eu,Nu,So)}function Ao(e,t,r,n,i){if(!It(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let o=i.get(e);if(o)return o;let s=Mu(e);if(s===0)return e;let a=new Proxy(e,s===2?n:r);return i.set(e,a),a}function I(e){return e&&I(e.__v_raw)||e}function Fr(e){return Boolean(e&&e.__v_isRef===!0)}Z("nextTick",()=>Xr);Z("dispatch",e=>rt.bind(rt,e));Z("watch",(e,{evaluateLater:t,cleanup:r})=>(n,i)=>{let o=t(n),a=yi(()=>{let l;return o(u=>l=u),l},i);r(a)});Z("store",Jl);Z("data",e=>Ii(e));Z("root",e=>Lt(e));Z("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=at(Fu(e))),e._x_refs_proxy));function Fu(e){let t=[];return ot(e,r=>{r._x_refs&&t.push(r._x_refs)}),t}var br={};function Co(e){return br[e]||(br[e]=0),++br[e]}function Du(e,t){return ot(e,r=>{if(r._x_ids&&r._x_ids[t])return!0})}function $u(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Co(t))}Z("id",(e,{cleanup:t})=>(r,n=null)=>{let i=`${r}${n?`-${n}`:""}`;return Bu(e,i,t,()=>{let o=Du(e,r),s=o?o._x_ids[r]:Co(r);return n?`${r}-${s}-${n}`:`${r}-${s}`})});Rt((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Bu(e,t,r,n){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let i=n();return e._x_id[t]=i,r(()=>{delete e._x_id[t]}),i}Z("el",e=>e);To("Focus","focus","focus");To("Persist","persist","persist");function To(e,t,r){Z(t,n=>Y(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}F("modelable",(e,{expression:t},{effect:r,evaluateLater:n,cleanup:i})=>{let o=n(t),s=()=>{let d;return o(p=>d=p),d},a=n(`${t} = __placeholder`),l=d=>a(()=>{},{scope:{__placeholder:d}}),u=s();l(u),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let d=e._x_model.get,p=e._x_model.set,c=so({get(){return d()},set(f){p(f)}},{get(){return s()},set(f){l(f)}});i(c)})});F("teleport",(e,{modifiers:t,expression:r},{cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&Y("x-teleport can only be used on a <template> tag",e);let i=hi(r),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(a=>{o.addEventListener(a,l=>{l.stopPropagation(),e.dispatchEvent(new l.constructor(l.type,l))})}),st(o,{},e);let s=(a,l,u)=>{u.includes("prepend")?l.parentNode.insertBefore(a,l):u.includes("append")?l.parentNode.insertBefore(a,l.nextSibling):l.appendChild(a)};B(()=>{s(o,i,t),ne(o),o._x_ignore=!0}),e._x_teleportPutBack=()=>{let a=hi(r);B(()=>{s(e._x_teleport,a,t)})},n(()=>o.remove())});var Uu=document.createElement("div");function hi(e){let t=Ce(()=>document.querySelector(e),()=>Uu)();return t||Y(`Cannot find x-teleport element for selector: "${e}"`),t}var Oo=()=>{};Oo.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,r(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};F("ignore",Oo);F("effect",Ce((e,{expression:t},{effect:r})=>{r(j(e,t))}));function Dr(e,t,r,n){let i=e,o=l=>n(l),s={},a=(l,u)=>d=>u(l,d);if(r.includes("dot")&&(t=ju(t)),r.includes("camel")&&(t=Hu(t)),r.includes("passive")&&(s.passive=!0),r.includes("capture")&&(s.capture=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("debounce")){let l=r[r.indexOf("debounce")+1]||"invalid-wait",u=kt(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=io(o,u)}if(r.includes("throttle")){let l=r[r.indexOf("throttle")+1]||"invalid-wait",u=kt(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=oo(o,u)}return r.includes("prevent")&&(o=a(o,(l,u)=>{u.preventDefault(),l(u)})),r.includes("stop")&&(o=a(o,(l,u)=>{u.stopPropagation(),l(u)})),r.includes("self")&&(o=a(o,(l,u)=>{u.target===e&&l(u)})),(r.includes("away")||r.includes("outside"))&&(i=document,o=a(o,(l,u)=>{e.contains(u.target)||u.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&l(u))})),r.includes("once")&&(o=a(o,(l,u)=>{l(u),i.removeEventListener(t,o,s)})),o=a(o,(l,u)=>{Wu(t)&&Ku(u,r)||l(u)}),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function ju(e){return e.replace(/-/g,".")}function Hu(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function kt(e){return!Array.isArray(e)&&!isNaN(e)}function qu(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function Wu(e){return["keydown","keyup"].includes(e)}function Ku(e,t){let r=t.filter(o=>!["window","document","prevent","stop","once","capture"].includes(o));if(r.includes("debounce")){let o=r.indexOf("debounce");r.splice(o,kt((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.includes("throttle")){let o=r.indexOf("throttle");r.splice(o,kt((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&mi(e.key).includes(r[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>r.includes(o));return r=r.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===i.length&&mi(e.key).includes(r[0]))}function mi(e){if(!e)return[];e=qu(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(r=>{if(t[r]===e)return r}).filter(r=>r)}F("model",(e,{modifiers:t,expression:r},{effect:n,cleanup:i})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let s=j(o,r),a;typeof r=="string"?a=j(o,`${r} = __placeholder`):typeof r=="function"&&typeof r()=="string"?a=j(o,`${r()} = __placeholder`):a=()=>{};let l=()=>{let c;return s(f=>c=f),gi(c)?c.get():c},u=c=>{let f;s(m=>f=m),gi(f)?f.set(c):a(()=>{},{scope:{__placeholder:c}})};typeof r=="string"&&e.type==="radio"&&B(()=>{e.hasAttribute("name")||e.setAttribute("name",r)});var d=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let p=fe?()=>{}:Dr(e,d,t,c=>{u(zu(e,t,c,l()))});if(t.includes("fill")&&([void 0,null,""].includes(l())||e.type==="checkbox"&&Array.isArray(l()))&&e.dispatchEvent(new Event(d,{})),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=p,i(()=>e._x_removeModelListeners.default()),e.form){let c=Dr(e.form,"reset",[],f=>{Xr(()=>e._x_model&&e._x_model.set(e.value))});i(()=>c())}e._x_model={get(){return l()},set(c){u(c)}},e._x_forceModelUpdate=c=>{c===void 0&&typeof r=="string"&&r.match(/\./)&&(c=""),window.fromModel=!0,B(()=>eo(e,"value",c)),delete window.fromModel},n(()=>{let c=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(c)})});function zu(e,t,r,n){return B(()=>{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail!==null&&r.detail!==void 0?r.detail:r.target.value;if(e.type==="checkbox")if(Array.isArray(n)){let i=null;return t.includes("number")?i=wr(r.target.value):t.includes("boolean")?i=Ct(r.target.value):i=r.target.value,r.target.checked?n.concat([i]):n.filter(o=>!Vu(o,i))}else return r.target.checked;else return e.tagName.toLowerCase()==="select"&&e.multiple?t.includes("number")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return wr(o)}):t.includes("boolean")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return Ct(o)}):Array.from(r.target.selectedOptions).map(i=>i.value||i.text):t.includes("number")?wr(r.target.value):t.includes("boolean")?Ct(r.target.value):t.includes("trim")?r.target.value.trim():r.target.value})}function wr(e){let t=e?parseFloat(e):null;return Ju(t)?t:e}function Vu(e,t){return e==t}function Ju(e){return!Array.isArray(e)&&!isNaN(e)}function gi(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}F("cloak",e=>queueMicrotask(()=>B(()=>e.removeAttribute(Be("cloak")))));Ai(()=>`[${Be("init")}]`);F("init",Ce((e,{expression:t},{evaluate:r})=>typeof t=="string"?!!t.trim()&&r(t,{},!1):r(t,{},!1)));F("text",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{B(()=>{e.textContent=o})})})});F("html",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{B(()=>{e.innerHTML=o,e._x_ignoreSelf=!0,ne(e),delete e._x_ignoreSelf})})})});Jr(Wi(":",Ki(Be("bind:"))));var ko=(e,{value:t,modifiers:r,expression:n,original:i},{effect:o})=>{if(!t){let a={};Xl(a),j(e,n)(u=>{lo(e,u,i)},{scope:a});return}if(t==="key")return Gu(e,n);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let s=j(e,n);o(()=>s(a=>{a===void 0&&typeof n=="string"&&n.match(/\./)&&(a=""),B(()=>eo(e,t,a,r))}))};ko.inline=(e,{value:t,modifiers:r,expression:n})=>{!t||(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:n,extract:!1})};F("bind",ko);function Gu(e,t){e._x_keyExpression=t}Ei(()=>`[${Be("data")}]`);F("data",(e,{expression:t},{cleanup:r})=>{if(Xu(e))return;t=t===""?"{}":t;let n={};Ar(n,e);let i={};Ql(i,n);let o=_e(e,t,{scope:i});(o===void 0||o===!0)&&(o={}),Ar(o,e);let s=De(o);Mi(s);let a=st(e,s);s.init&&_e(e,s.init),r(()=>{s.destroy&&_e(e,s.destroy),a()})});Rt((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function Xu(e){return fe?Pr?!0:e.hasAttribute("data-has-alpine-state"):!1}F("show",(e,{modifiers:t,expression:r},{effect:n})=>{let i=j(e,r);e._x_doHide||(e._x_doHide=()=>{B(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{B(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let o=()=>{e._x_doHide(),e._x_isShown=!1},s=()=>{e._x_doShow(),e._x_isShown=!0},a=()=>setTimeout(s),l=Nr(p=>p?s():o(),p=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,p,s,o):p?a():o()}),u,d=!0;n(()=>i(p=>{!d&&p===u||(t.includes("immediate")&&(p?a():o()),l(p),u=p,d=!1)}))});F("for",(e,{expression:t},{effect:r,cleanup:n})=>{let i=Qu(t),o=j(e,i.items),s=j(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},r(()=>Yu(e,i,o,s)),n(()=>{Object.values(e._x_lookup).forEach(a=>a.remove()),delete e._x_prevKeys,delete e._x_lookup})});function Yu(e,t,r,n){let i=s=>typeof s=="object"&&!Array.isArray(s),o=e;r(s=>{Zu(s)&&s>=0&&(s=Array.from(Array(s).keys(),g=>g+1)),s===void 0&&(s=[]);let a=e._x_lookup,l=e._x_prevKeys,u=[],d=[];if(i(s))s=Object.entries(s).map(([g,x])=>{let b=vi(t,x,g,s);n(_=>{d.includes(_)&&Y("Duplicate key on x-for",e),d.push(_)},{scope:{index:g,...b}}),u.push(b)});else for(let g=0;g<s.length;g++){let x=vi(t,s[g],g,s);n(b=>{d.includes(b)&&Y("Duplicate key on x-for",e),d.push(b)},{scope:{index:g,...x}}),u.push(x)}let p=[],c=[],f=[],m=[];for(let g=0;g<l.length;g++){let x=l[g];d.indexOf(x)===-1&&f.push(x)}l=l.filter(g=>!f.includes(g));let v="template";for(let g=0;g<d.length;g++){let x=d[g],b=l.indexOf(x);if(b===-1)l.splice(g,0,x),p.push([v,g]);else if(b!==g){let _=l.splice(g,1)[0],O=l.splice(b-1,1)[0];l.splice(g,0,O),l.splice(b,0,_),c.push([_,O])}else m.push(x);v=x}for(let g=0;g<f.length;g++){let x=f[g];a[x]._x_effects&&a[x]._x_effects.forEach(bi),a[x].remove(),a[x]=null,delete a[x]}for(let g=0;g<c.length;g++){let[x,b]=c[g],_=a[x],O=a[b],T=document.createElement("div");B(()=>{O||Y('x-for ":key" is undefined or invalid',o,b,a),O.after(T),_.after(O),O._x_currentIfEl&&O.after(O._x_currentIfEl),T.before(_),_._x_currentIfEl&&_.after(_._x_currentIfEl),T.remove()}),O._x_refreshXForScope(u[d.indexOf(b)])}for(let g=0;g<p.length;g++){let[x,b]=p[g],_=x==="template"?o:a[x];_._x_currentIfEl&&(_=_._x_currentIfEl);let O=u[b],T=d[b],w=document.importNode(o.content,!0).firstElementChild,h=De(O);st(w,h,o),w._x_refreshXForScope=y=>{Object.entries(y).forEach(([C,L])=>{h[C]=L})},B(()=>{_.after(w),Ce(()=>ne(w))()}),typeof T=="object"&&Y("x-for key cannot be an object, it must be a string or an integer",o),a[T]=w}for(let g=0;g<m.length;g++)a[m[g]]._x_refreshXForScope(u[d.indexOf(m[g])]);o._x_prevKeys=d})}function Qu(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(n);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(r,"").trim(),a=s.match(t);return a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function vi(e,t,r,n){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=t[a]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{i[s]=t[s]}):i[e.item]=t,e.index&&(i[e.index]=r),e.collection&&(i[e.collection]=n),i}function Zu(e){return!Array.isArray(e)&&!isNaN(e)}function Lo(){}Lo.inline=(e,{expression:t},{cleanup:r})=>{let n=Lt(e);n._x_refs||(n._x_refs={}),n._x_refs[t]=e,r(()=>delete n._x_refs[t])};F("ref",Lo);F("if",(e,{expression:t},{effect:r,cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&Y("x-if can only be used on a <template> tag",e);let i=j(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return st(a,{},e),B(()=>{e.after(a),Ce(()=>ne(a))()}),e._x_currentIfEl=a,e._x_undoIf=()=>{ce(a,l=>{l._x_effects&&l._x_effects.forEach(bi)}),a.remove(),delete e._x_currentIfEl},a},s=()=>{!e._x_undoIf||(e._x_undoIf(),delete e._x_undoIf)};r(()=>i(a=>{a?o():s()})),n(()=>e._x_undoIf&&e._x_undoIf())});F("id",(e,{expression:t},{evaluate:r})=>{r(t).forEach(i=>$u(e,i))});Rt((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});Jr(Wi("@",Ki(Be("on:"))));F("on",Ce((e,{value:t,modifiers:r,expression:n},{cleanup:i})=>{let o=n?j(e,n):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=Dr(e,t,r,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));Dt("Collapse","collapse","collapse");Dt("Intersect","intersect","intersect");Dt("Focus","trap","focus");Dt("Mask","mask","mask");function Dt(e,t,r){F(t,n=>Y(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}lt.setEvaluator(Ui);lt.setReactivityEngine({reactive:on,effect:lu,release:uu,raw:I});var ec=lt,S=ec;function sn(e,t){return t||(t=()=>{}),(r,n=!1)=>{let i=n,o=r,s=e.$wire,a=s.get(o);return S.interceptor((u,d,p,c,f)=>{if(typeof a>"u"){console.error(`Livewire Entangle Error: Livewire property ['${o}'] cannot be found on component: ['${e.name}']`);return}let m=S.entangle({get(){return s.get(r)},set(v){s.set(r,v,i)}},{get(){return d()},set(v){p(v)}});return t(()=>m()),tc(s.get(r))},u=>{Object.defineProperty(u,"live",{get(){return i=!0,u}})})(a)}}function tc(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}var Te=[];function k(e,t){return Te[e]||(Te[e]=[]),Te[e].push(t),()=>{Te[e]=Te[e].filter(r=>r!==t)}}function R(e,...t){let r=Te[e]||[],n=[];for(let i=0;i<r.length;i++){let o=r[i](...t);pr(o)&&n.push(o)}return i=>No(n,i)}async function $t(e,...t){let r=Te[e]||[],n=[];for(let i=0;i<r.length;i++){let o=await r[i](...t);pr(o)&&n.push(o)}return i=>No(n,i)}function No(e,t){let r=t;for(let n=0;n<e.length;n++){let i=e[n](r);i!==void 0&&(r=i)}return r}function an(e){let t=document.createElement("html");t.innerHTML=e,t.querySelectorAll("a").forEach(i=>i.setAttribute("target","_top"));let r=document.getElementById("livewire-error");typeof r<"u"&&r!=null?r.innerHTML="":(r=document.createElement("div"),r.id="livewire-error",r.style.position="fixed",r.style.width="100vw",r.style.height="100vh",r.style.padding="50px",r.style.backgroundColor="rgba(0, 0, 0, .6)",r.style.zIndex=2e5);let n=document.createElement("iframe");n.style.backgroundColor="#17161A",n.style.borderRadius="5px",n.style.width="100%",n.style.height="100%",r.appendChild(n),document.body.prepend(r),document.body.style.overflow="hidden",n.contentWindow.document.open(),n.contentWindow.document.write(t.outerHTML),n.contentWindow.document.close(),r.addEventListener("click",()=>Ro(r)),r.setAttribute("tabindex",0),r.addEventListener("keydown",i=>{i.key==="Escape"&&Ro(r)}),r.focus()}function Ro(e){e.outerHTML="",document.body.style.overflow="visible"}var Bt=class{constructor(){this.commits=new Set}add(t){this.commits.add(t)}delete(t){this.commits.delete(t)}hasCommitFor(t){return!!this.findCommitByComponent(t)}findCommitByComponent(t){for(let[r,n]of this.commits.entries())if(n.component===t)return n}shouldHoldCommit(t){return!t.isolate}empty(){return this.commits.size===0}async send(){this.prepare(),await Po(this)}prepare(){this.commits.forEach(t=>t.prepare())}payload(){let t=[],r=[],n=[];return this.commits.forEach(s=>{let[a,l,u]=s.toRequestPayload();t.push(a),r.push(l),n.push(u)}),[t,s=>r.forEach(a=>a(s.shift())),()=>n.forEach(s=>s())]}};var Ut=class{constructor(t){this.component=t,this.isolate=!1,this.calls=[],this.receivers=[],this.resolvers=[]}addResolver(t){this.resolvers.push(t)}addCall(t,r,n){this.calls.push({path:"",method:t,params:r,handleReturn(i){n(i)}})}prepare(){R("commit.prepare",{component:this.component})}toRequestPayload(){let t=Ge(this.component.canonical,this.component.ephemeral),r=this.component.mergeQueuedUpdates(t),n={snapshot:this.component.snapshotEncoded,updates:r,calls:this.calls.map(f=>({path:f.path,method:f.method,params:f.params}))},i=[],o=[],s=[],a=f=>i.forEach(m=>m(f)),l=()=>o.forEach(f=>f()),u=()=>s.forEach(f=>f()),d=R("commit",{component:this.component,commit:n,succeed:f=>{i.push(f)},fail:f=>{o.push(f)},respond:f=>{s.push(f)}});return[n,f=>{let{snapshot:m,effects:v}=f;if(u(),this.component.mergeNewSnapshot(m,v,r),this.component.processEffects(this.component.effects),v.returns){let x=v.returns;this.calls.map(({handleReturn:_})=>_).forEach((_,O)=>{_(x[O])})}let g=JSON.parse(m);d({snapshot:g,effects:v}),this.resolvers.forEach(x=>x()),a(f)},()=>{u(),l()}]}};var jt=class{constructor(){this.commits=new Set,this.pools=new Set}add(t){let r=this.findCommitOr(t,()=>{let n=new Ut(t);return this.commits.add(n),n});return rc(r,()=>{this.findPoolWithComponent(r.component)||this.createAndSendNewPool()}),r}findCommitOr(t,r){for(let[n,i]of this.commits.entries())if(i.component===t)return i;return r()}findPoolWithComponent(t){for(let[r,n]of this.pools.entries())if(n.hasCommitFor(t))return n}createAndSendNewPool(){R("commit.pooling",{commits:this.commits});let t=this.corraleCommitsIntoPools();this.commits.clear(),R("commit.pooled",{pools:t}),t.forEach(r=>{r.empty()||(this.pools.add(r),r.send().then(()=>{this.pools.delete(r),this.sendAnyQueuedCommits()}))})}corraleCommitsIntoPools(){let t=new Set;for(let[r,n]of this.commits.entries()){let i=!1;if(t.forEach(o=>{o.shouldHoldCommit(n)&&(o.add(n),i=!0)}),!i){let o=new Bt;o.add(n),t.add(o)}}return t}sendAnyQueuedCommits(){this.commits.size>0&&this.createAndSendNewPool()}},ln=new WeakMap;function rc(e,t){ln.has(e)||ln.set(e,setTimeout(()=>{t(),ln.delete(e)},5))}var Io=new jt;async function un(e){let t=Io.add(e),r=new Promise(n=>{t.addResolver(n)});return r.commit=t,r}async function Mo(e,t,r){let n=Io.add(e),i=new Promise(o=>{n.addCall(t,r,s=>o(s))});return i.commit=n,i}async function Po(e){let[t,r,n]=e.payload(),i={method:"POST",body:JSON.stringify({_token:bt(),components:t}),headers:{"Content-type":"application/json","X-Livewire":""}},o=[],s=[],a=[],l=b=>o.forEach(_=>_(b)),u=b=>s.forEach(_=>_(b)),d=b=>a.forEach(_=>_(b)),p=R("request.profile",i),c=Yn();R("request",{url:c,options:i,payload:i.body,respond:b=>a.push(b),succeed:b=>o.push(b),fail:b=>s.push(b)});let f;try{f=await fetch(c,i)}catch{p({content:"{}",failed:!0}),n(),u({status:503,content:null,preventDefault:()=>{}});return}let m={status:f.status,response:f};d(m),f=m.response;let v=await f.text();if(!f.ok){p({content:"{}",failed:!0});let b=!1;return n(),u({status:f.status,content:v,preventDefault:()=>b=!0}),b?void 0:(f.status===419&&nc(),ic(v))}if(f.redirected&&(window.location.href=f.url),wt(v)){let b;[b,v]=Qn(v),an(b),p({content:"{}",failed:!0})}else p({content:v,failed:!1});let{components:g,assets:x}=JSON.parse(v);await $t("payload.intercept",{components:g,assets:x}),await r(g),l({status:f.status,json:JSON.parse(v)})}function nc(){confirm(`This page has expired.
Would you like to refresh the page?`)&&window.location.reload()}function ic(e){an(e)}var fn={},$o;function D(e,t,r=null){fn[e]=t}function oc(e){$o=e}var Fo={on:"$on",el:"$el",id:"$id",get:"$get",set:"$set",call:"$call",commit:"$commit",watch:"$watch",entangle:"$entangle",dispatch:"$dispatch",dispatchTo:"$dispatchTo",dispatchSelf:"$dispatchSelf",upload:"$upload",uploadMultiple:"$uploadMultiple",removeUpload:"$removeUpload",cancelUpload:"$cancelUpload"};function Bo(e,t){return new Proxy({},{get(r,n){if(n==="__instance")return e;if(n in Fo)return Do(e,Fo[n]);if(n in fn)return Do(e,n);if(n in t)return t[n];if(!["then"].includes(n))return sc(e)(n)},set(r,n,i){return n in t&&(t[n]=i),!0}})}function Do(e,t){return fn[t](e)}function sc(e){return $o(e)}S.magic("wire",(e,{cleanup:t})=>{let r;return new Proxy({},{get(n,i){return r||(r=z(e)),["$entangle","entangle"].includes(i)?sn(r,t):r.$wire[i]},set(n,i,o){return r||(r=z(e)),r.$wire[i]=o,!0}})});D("__instance",e=>e);D("$get",e=>(t,r=!0)=>W(r?e.reactive:e.ephemeral,t));D("$el",e=>e.el);D("$id",e=>e.id);D("$set",e=>async(t,r,n=!0)=>(ve(e.reactive,t,r),n?(e.queueUpdate(t,r),await un(e)):Promise.resolve()));D("$call",e=>async(t,...r)=>await e.$wire[t](...r));D("$entangle",e=>(t,r=!1)=>sn(e)(t,r));D("$toggle",e=>(t,r=!0)=>e.$wire.set(t,!e.$wire.get(t),r));D("$watch",e=>(t,r)=>{let n=!0,i;S.effect(()=>{let o=W(e.reactive,t);JSON.stringify(o),n?i=o:queueMicrotask(()=>{r(o,i),i=o}),n=!1})});D("$refresh",e=>e.$wire.$commit);D("$commit",e=>async()=>await un(e));D("$on",e=>(...t)=>jo(e,...t));D("$dispatch",e=>(...t)=>Ht(e,...t));D("$dispatchSelf",e=>(...t)=>ie(e,...t));D("$dispatchTo",()=>(...e)=>je(...e));D("$upload",e=>(...t)=>ei(e,...t));D("$uploadMultiple",e=>(...t)=>ti(e,...t));D("$removeUpload",e=>(...t)=>ri(e,...t));D("$cancelUpload",e=>(...t)=>ni(e,...t));var cn=new WeakMap;D("$parent",e=>{if(cn.has(e))return cn.get(e).$wire;let t=z(e.el.parentElement);return cn.set(e,t),t.$wire});var Ue=new WeakMap;function Uo(e,t,r){Ue.has(e)||Ue.set(e,{});let n=Ue.get(e);n[t]=r,Ue.set(e,n)}oc(e=>t=>async(...r)=>{if(r.length===1&&r[0]instanceof Event&&(r=[]),Ue.has(e)){let n=Ue.get(e);if(typeof n[t]=="function")return n[t](r)}return await Mo(e,t,r)});var qt=class{constructor(t){if(t.__livewire)throw"Component already initialized";if(t.__livewire=this,this.el=t,this.id=t.getAttribute("wire:id"),this.__livewireId=this.id,this.snapshotEncoded=t.getAttribute("wire:snapshot"),this.snapshot=JSON.parse(this.snapshotEncoded),!this.snapshot)throw"Snapshot missing on Livewire component with id: "+this.id;this.name=this.snapshot.memo.name,this.effects=JSON.parse(t.getAttribute("wire:effects")),this.originalEffects=le(this.effects),this.canonical=be(le(this.snapshot.data)),this.ephemeral=be(le(this.snapshot.data)),this.reactive=Alpine.reactive(this.ephemeral),this.queuedUpdates={},this.$wire=Bo(this,this.reactive),this.cleanups=[],this.processEffects(this.effects)}mergeNewSnapshot(t,r,n={}){let i=JSON.parse(t),o=le(this.canonical),s=this.applyUpdates(o,n),a=be(le(i.data)),l=Ge(s,a);this.snapshotEncoded=t,this.snapshot=i,this.effects=r,this.canonical=be(le(i.data));let u=be(le(i.data));return Object.entries(l).forEach(([d,p])=>{let c=d.split(".")[0];this.reactive[c]=u[c]}),l}queueUpdate(t,r){this.queuedUpdates[t]=r}mergeQueuedUpdates(t){return Object.entries(this.queuedUpdates).forEach(([r,n])=>{Object.entries(t).forEach(([i,o])=>{i.startsWith(n)&&delete t[i]}),t[r]=n}),this.queuedUpdates=[],t}applyUpdates(t,r){for(let n in r)ve(t,n,r[n]);return t}replayUpdate(t,r){let n={...this.effects,html:r};this.mergeNewSnapshot(JSON.stringify(t),n),this.processEffects({html:r})}processEffects(t){R("effects",this,t),R("effect",{component:this,effects:t,cleanup:r=>this.addCleanup(r)})}get children(){let t=this.snapshot.memo;return Object.values(t.children).map(n=>n[1]).map(n=>Ho(n))}inscribeSnapshotAndEffectsOnElement(){let t=this.el;t.setAttribute("wire:snapshot",this.snapshotEncoded);let r=this.originalEffects.listeners?{listeners:this.originalEffects.listeners}:{};this.originalEffects.url&&(r.url=this.originalEffects.url),t.setAttribute("wire:effects",JSON.stringify(r))}addCleanup(t){this.cleanups.push(t)}cleanup(){for(delete this.el.__livewire;this.cleanups.length>0;)this.cleanups.pop()()}};var oe={};function qo(e){let t=new qt(e);if(oe[t.id])throw"Component already registered";return R("component.init",{component:t,cleanup:n=>t.addCleanup(n)}),oe[t.id]=t,t}function Wo(e){let t=oe[e];!t||(t.cleanup(),delete oe[e])}function Ho(e){let t=oe[e];if(!t)throw"Component not found: "+e;return t}function z(e,t=!0){let r=Alpine.findClosest(e,n=>n.__livewire);if(!r){if(t)throw"Could not find Livewire component in DOM tree";return}return r.__livewire}function dn(e){return Object.values(oe).filter(t=>e==t.name)}function Ko(e){return dn(e).map(t=>t.$wire)}function zo(e){let t=oe[e];return t&&t.$wire}function Vo(){return Object.values(oe)[0].$wire}function Jo(){return Object.values(oe)}function Ht(e,t,r){Wt(e.el,t,r)}function Go(e,t){Wt(window,e,t)}function ie(e,t,r){Wt(e.el,t,r,!1)}function je(e,t,r){dn(e).forEach(i=>{Wt(i.el,t,r,!1)})}function jo(e,t,r){e.el.addEventListener(t,n=>{r(n.detail)})}function Xo(e,t){let r=n=>{!n.__livewire||t(n.detail)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}}function Wt(e,t,r,n=!0){let i=new CustomEvent(t,{bubbles:n,detail:r});i.__livewire={name:t,params:r,receivedBy:[]},e.dispatchEvent(i)}function He(e){return e.match(new RegExp("wire:"))}function Kt(e,t){let[r,...n]=t.replace(new RegExp("wire:"),"").split(".");return new hn(r,n,t,e)}function M(e,t){k("directive.init",({el:r,component:n,directive:i,cleanup:o})=>{i.value===e&&t({el:r,directive:i,component:n,cleanup:o})})}function pe(e){return new pn(e)}var pn=class{constructor(t){this.el=t,this.directives=this.extractTypeModifiersAndValue()}all(){return this.directives}has(t){return this.directives.map(r=>r.value).includes(t)}missing(t){return!this.has(t)}get(t){return this.directives.find(r=>r.value===t)}extractTypeModifiersAndValue(){return Array.from(this.el.getAttributeNames().filter(t=>He(t)).map(t=>Kt(this.el,t)))}},hn=class{constructor(t,r,n,i){this.rawName=this.raw=n,this.el=i,this.eventContext,this.value=t,this.modifiers=r,this.expression=this.el.getAttribute(this.rawName)}get method(){let{method:t}=this.parseOutMethodAndParams(this.expression);return t}get params(){let{params:t}=this.parseOutMethodAndParams(this.expression);return t}parseOutMethodAndParams(t){let r=t,n=[],i=r.match(/(.*?)\((.*)\)/s);return i&&(r=i[1],n=new Function("$event",`return (function () {
            })(${i[2]})`)(this.eventContext)),{method:r,params:n}}};function ac(e){e.directive("collapse",t),t.inline=(r,{modifiers:n})=>{!n.includes("min")||(r._x_doShow=()=>{},r._x_doHide=()=>{})};function t(r,{modifiers:n}){let i=Yo(n,"duration",250)/1e3,o=Yo(n,"min",0),s=!n.includes("min");r._x_isShown||(r.style.height=`${o}px`),!r._x_isShown&&s&&(r.hidden=!0),r._x_isShown||(r.style.overflow="hidden");let a=(u,d)=>{let p=e.setStyles(u,d);return d.height?()=>{}:p},l={transitionProperty:"height",transitionDuration:`${i}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};r._x_transition={in(u=()=>{},d=()=>{}){s&&(r.hidden=!1),s&&(r.style.display=null);let p=r.getBoundingClientRect().height;r.style.height="auto";let c=r.getBoundingClientRect().height;p===c&&(p=o),e.transition(r,e.setStyles,{during:l,start:{height:p+"px"},end:{height:c+"px"}},()=>r._x_isShown=!0,()=>{r.getBoundingClientRect().height==c&&(r.style.overflow=null)})},out(u=()=>{},d=()=>{}){let p=r.getBoundingClientRect().height;e.transition(r,a,{during:l,start:{height:p+"px"},end:{height:o+"px"}},()=>r.style.overflow="hidden",()=>{r._x_isShown=!1,r.style.height==`${o}px`&&s&&(r.style.display="none",r.hidden=!0)})}}}}function Yo(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n)return r;if(t==="duration"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}if(t==="min"){let i=n.match(/([0-9]+)px/);if(i)return i[1]}return n}var Qo=ac;var ss=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Gt=ss.join(","),as=typeof Element>"u",Oe=as?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,mn=!as&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},ls=function(t,r,n){var i=Array.prototype.slice.apply(t.querySelectorAll(Gt));return r&&Oe.call(t,Gt)&&i.unshift(t),i=i.filter(n),i},us=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,u=e(l,!0,n);n.flatten?i.push.apply(i,u):i.push({scope:s,candidates:u})}else{var d=Oe.call(s,Gt);d&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var p=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),c=!n.shadowRootFilter||n.shadowRootFilter(s);if(p&&c){var f=e(p===!0?s.children:p.children,!0,n);n.flatten?i.push.apply(i,f):i.push({scope:s,candidates:f})}else o.unshift.apply(o,s.children)}}return i},cs=function(t,r){return t.tabIndex<0&&(r||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},lc=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},fs=function(t){return t.tagName==="INPUT"},uc=function(t){return fs(t)&&t.type==="hidden"},cc=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},fc=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},dc=function(t){if(!t.name)return!0;var r=t.form||mn(t),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(t.name));else try{i=n(t.name)}catch(s){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",s.message),!1}var o=fc(i,t.form);return!o||o===t},pc=function(t){return fs(t)&&t.type==="radio"},hc=function(t){return pc(t)&&!dc(t)},Zo=function(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},mc=function(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=Oe.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(Oe.call(s,"details:not([open]) *"))return!0;var a=mn(t).host,l=a?.ownerDocument.contains(a)||t.ownerDocument.contains(t);if(!n||n==="full"){if(typeof i=="function"){for(var u=t;t;){var d=t.parentElement,p=mn(t);if(d&&!d.shadowRoot&&i(d)===!0)return Zo(t);t.assignedSlot?t=t.assignedSlot:!d&&p!==t.ownerDocument?t=p.host:t=d}t=u}if(l)return!t.getClientRects().length}else if(n==="non-zero-area")return Zo(t);return!1},gc=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return Oe.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},Xt=function(t,r){return!(r.disabled||uc(r)||mc(r,t)||cc(r)||gc(r))},gn=function(t,r){return!(hc(r)||cs(r)<0||!Xt(t,r))},vc=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},bc=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scope,a=s?i.scope:i,l=cs(a,s),u=s?e(i.candidates):a;l===0?s?r.push.apply(r,u):r.push(a):n.push({documentOrder:o,tabIndex:l,item:i,isScope:s,content:u})}),n.sort(lc).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},wc=function(t,r){r=r||{};var n;return r.getShadowRoot?n=us([t],r.includeContainer,{filter:gn.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:vc}):n=ls(t,r.includeContainer,gn.bind(null,r)),bc(n)},ds=function(t,r){r=r||{};var n;return r.getShadowRoot?n=us([t],r.includeContainer,{filter:Xt.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=ls(t,r.includeContainer,Xt.bind(null,r)),n},zt=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Oe.call(t,Gt)===!1?!1:gn(r,t)},yc=ss.concat("iframe").join(","),Jt=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Oe.call(t,yc)===!1?!1:Xt(r,t)};function es(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ts(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?es(Object(r),!0).forEach(function(n){xc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):es(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var rs=function(){var e=[];return{activateTrap:function(r){if(e.length>0){var n=e[e.length-1];n!==r&&n.pause()}var i=e.indexOf(r);i===-1||e.splice(i,1),e.push(r)},deactivateTrap:function(r){var n=e.indexOf(r);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}}}(),_c=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Sc=function(t){return t.key==="Escape"||t.key==="Esc"||t.keyCode===27},Ec=function(t){return t.key==="Tab"||t.keyCode===9},ns=function(t){return setTimeout(t,0)},is=function(t,r){var n=-1;return t.every(function(i,o){return r(i)?(n=o,!1):!0}),n},ut=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,n):t},Vt=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Ac=function(t,r){var n=r?.document||document,i=ts({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},r),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s,a=function(w,h,y){return w&&w[h]!==void 0?w[h]:i[y||h]},l=function(w){return o.containerGroups.findIndex(function(h){var y=h.container,C=h.tabbableNodes;return y.contains(w)||C.find(function(L){return L===w})})},u=function(w){var h=i[w];if(typeof h=="function"){for(var y=arguments.length,C=new Array(y>1?y-1:0),L=1;L<y;L++)C[L-1]=arguments[L];h=h.apply(void 0,C)}if(h===!0&&(h=void 0),!h){if(h===void 0||h===!1)return h;throw new Error("`".concat(w,"` was specified but was not a node, or did not return a node"))}var A=h;if(typeof h=="string"&&(A=n.querySelector(h),!A))throw new Error("`".concat(w,"` as selector refers to no known node"));return A},d=function(){var w=u("initialFocus");if(w===!1)return!1;if(w===void 0)if(l(n.activeElement)>=0)w=n.activeElement;else{var h=o.tabbableGroups[0],y=h&&h.firstTabbableNode;w=y||u("fallbackFocus")}if(!w)throw new Error("Your focus-trap needs to have at least one focusable element");return w},p=function(){if(o.containerGroups=o.containers.map(function(w){var h=wc(w,i.tabbableOptions),y=ds(w,i.tabbableOptions);return{container:w,tabbableNodes:h,focusableNodes:y,firstTabbableNode:h.length>0?h[0]:null,lastTabbableNode:h.length>0?h[h.length-1]:null,nextTabbableNode:function(L){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,E=y.findIndex(function(U){return U===L});if(!(E<0))return A?y.slice(E+1).find(function(U){return zt(U,i.tabbableOptions)}):y.slice(0,E).reverse().find(function(U){return zt(U,i.tabbableOptions)})}}}),o.tabbableGroups=o.containerGroups.filter(function(w){return w.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},c=function T(w){if(w!==!1&&w!==n.activeElement){if(!w||!w.focus){T(d());return}w.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=w,_c(w)&&w.select()}},f=function(w){var h=u("setReturnFocus",w);return h||(h===!1?!1:w)},m=function(w){var h=Vt(w);if(!(l(h)>=0)){if(ut(i.clickOutsideDeactivates,w)){s.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Jt(h,i.tabbableOptions)});return}ut(i.allowOutsideClick,w)||w.preventDefault()}},v=function(w){var h=Vt(w),y=l(h)>=0;y||h instanceof Document?y&&(o.mostRecentlyFocusedNode=h):(w.stopImmediatePropagation(),c(o.mostRecentlyFocusedNode||d()))},g=function(w){var h=Vt(w);p();var y=null;if(o.tabbableGroups.length>0){var C=l(h),L=C>=0?o.containerGroups[C]:void 0;if(C<0)w.shiftKey?y=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:y=o.tabbableGroups[0].firstTabbableNode;else if(w.shiftKey){var A=is(o.tabbableGroups,function(H){var ge=H.firstTabbableNode;return h===ge});if(A<0&&(L.container===h||Jt(h,i.tabbableOptions)&&!zt(h,i.tabbableOptions)&&!L.nextTabbableNode(h,!1))&&(A=C),A>=0){var E=A===0?o.tabbableGroups.length-1:A-1,U=o.tabbableGroups[E];y=U.lastTabbableNode}}else{var P=is(o.tabbableGroups,function(H){var ge=H.lastTabbableNode;return h===ge});if(P<0&&(L.container===h||Jt(h,i.tabbableOptions)&&!zt(h,i.tabbableOptions)&&!L.nextTabbableNode(h))&&(P=C),P>=0){var $=P===o.tabbableGroups.length-1?0:P+1,q=o.tabbableGroups[$];y=q.firstTabbableNode}}}else y=u("fallbackFocus");y&&(w.preventDefault(),c(y))},x=function(w){if(Sc(w)&&ut(i.escapeDeactivates,w)!==!1){w.preventDefault(),s.deactivate();return}if(Ec(w)){g(w);return}},b=function(w){var h=Vt(w);l(h)>=0||ut(i.clickOutsideDeactivates,w)||ut(i.allowOutsideClick,w)||(w.preventDefault(),w.stopImmediatePropagation())},_=function(){if(!!o.active)return rs.activateTrap(s),o.delayInitialFocusTimer=i.delayInitialFocus?ns(function(){c(d())}):c(d()),n.addEventListener("focusin",v,!0),n.addEventListener("mousedown",m,{capture:!0,passive:!1}),n.addEventListener("touchstart",m,{capture:!0,passive:!1}),n.addEventListener("click",b,{capture:!0,passive:!1}),n.addEventListener("keydown",x,{capture:!0,passive:!1}),s},O=function(){if(!!o.active)return n.removeEventListener("focusin",v,!0),n.removeEventListener("mousedown",m,!0),n.removeEventListener("touchstart",m,!0),n.removeEventListener("click",b,!0),n.removeEventListener("keydown",x,!0),s};return s={get active(){return o.active},get paused(){return o.paused},activate:function(w){if(o.active)return this;var h=a(w,"onActivate"),y=a(w,"onPostActivate"),C=a(w,"checkCanFocusTrap");C||p(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=n.activeElement,h&&h();var L=function(){C&&p(),_(),y&&y()};return C?(C(o.containers.concat()).then(L,L),this):(L(),this)},deactivate:function(w){if(!o.active)return this;var h=ts({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},w);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,O(),o.active=!1,o.paused=!1,rs.deactivateTrap(s);var y=a(h,"onDeactivate"),C=a(h,"onPostDeactivate"),L=a(h,"checkCanReturnFocus"),A=a(h,"returnFocus","returnFocusOnDeactivate");y&&y();var E=function(){ns(function(){A&&c(f(o.nodeFocusedBeforeActivation)),C&&C()})};return A&&L?(L(f(o.nodeFocusedBeforeActivation)).then(E,E),this):(E(),this)},pause:function(){return o.paused||!o.active?this:(o.paused=!0,O(),this)},unpause:function(){return!o.paused||!o.active?this:(o.paused=!1,p(),_(),this)},updateContainerElements:function(w){var h=[].concat(w).filter(Boolean);return o.containers=h.map(function(y){return typeof y=="string"?n.querySelector(y):y}),o.active&&p(),this}},s.updateContainerElements(t),s};function Cc(e){let t,r;window.addEventListener("focusin",()=>{t=r,r=document.activeElement}),e.magic("focus",n=>{let i=n;return{__noscroll:!1,__wrapAround:!1,within(o){return i=o,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(o){return Jt(o)},previouslyFocused(){return t},lastFocused(){return t},focused(){return r},focusables(){return Array.isArray(i)?i:ds(i,{displayCheck:"none"})},all(){return this.focusables()},isFirst(o){let s=this.all();return s[0]&&s[0].isSameNode(o)},isLast(o){let s=this.all();return s.length&&s.slice(-1)[0].isSameNode(o)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let o=this.all(),s=document.activeElement;if(o.indexOf(s)!==-1)return this.__wrapAround&&o.indexOf(s)===o.length-1?o[0]:o[o.indexOf(s)+1]},getPrevious(){let o=this.all(),s=document.activeElement;if(o.indexOf(s)!==-1)return this.__wrapAround&&o.indexOf(s)===0?o.slice(-1)[0]:o[o.indexOf(s)-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(o){!o||setTimeout(()=>{o.hasAttribute("tabindex")||o.setAttribute("tabindex","0"),o.focus({preventScroll:this.__noscroll})})}}}),e.directive("trap",e.skipDuringClone((n,{expression:i,modifiers:o},{effect:s,evaluateLater:a,cleanup:l})=>{let u=a(i),d=!1,p={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>n};if(o.includes("noautofocus"))p.initialFocus=!1;else{let g=n.querySelector("[autofocus]");g&&(p.initialFocus=g)}let c=Ac(n,p),f=()=>{},m=()=>{},v=()=>{f(),f=()=>{},m(),m=()=>{},c.deactivate({returnFocus:!o.includes("noreturn")})};s(()=>u(g=>{d!==g&&(g&&!d&&(o.includes("noscroll")&&(m=Tc()),o.includes("inert")&&(f=os(n)),setTimeout(()=>{c.activate()},15)),!g&&d&&v(),d=!!g)})),l(v)},(n,{expression:i,modifiers:o},{evaluate:s})=>{o.includes("inert")&&s(i)&&os(n)}))}function os(e){let t=[];return ps(e,r=>{let n=r.hasAttribute("aria-hidden");r.setAttribute("aria-hidden","true"),t.push(()=>n||r.removeAttribute("aria-hidden"))}),()=>{for(;t.length;)t.pop()()}}function ps(e,t){e.isSameNode(document.body)||!e.parentNode||Array.from(e.parentNode.children).forEach(r=>{r.isSameNode(e)?ps(e.parentNode,t):t(r)})}function Tc(){let e=document.documentElement.style.overflow,t=document.documentElement.style.paddingRight,r=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${r}px`,()=>{document.documentElement.style.overflow=e,document.documentElement.style.paddingRight=t}}var hs=Cc;function Oc(e){let t=()=>{let r,n;try{n=localStorage}catch(i){console.error(i),console.warn("Alpine: $persist is using temporary storage since localStorage is unavailable.");let o=new Map;n={getItem:o.get.bind(o),setItem:o.set.bind(o)}}return e.interceptor((i,o,s,a,l)=>{let u=r||`_x_${a}`,d=ms(u,n)?gs(u,n):i;return s(d),e.effect(()=>{let p=o();vs(u,p,n),s(p)}),d},i=>{i.as=o=>(r=o,i),i.using=o=>(n=o,i)})};Object.defineProperty(e,"$persist",{get:()=>t()}),e.magic("persist",t),e.persist=(r,{get:n,set:i},o=localStorage)=>{let s=ms(r,o)?gs(r,o):n();i(s),e.effect(()=>{let a=n();vs(r,a,o),i(a)})}}function ms(e,t){return t.getItem(e)!==null}function gs(e,t){return JSON.parse(t.getItem(e,t))}function vs(e,t,r){r.setItem(e,JSON.stringify(t))}var bs=Oc;function kc(e){e.directive("intersect",e.skipDuringClone((t,{value:r,expression:n,modifiers:i},{evaluateLater:o,cleanup:s})=>{let a=o(n),l={rootMargin:Rc(i),threshold:Lc(i)},u=new IntersectionObserver(d=>{d.forEach(p=>{p.isIntersecting!==(r==="leave")&&(a(),i.includes("once")&&u.disconnect())})},l);u.observe(t),s(()=>{u.disconnect()})}))}function Lc(e){if(e.includes("full"))return .99;if(e.includes("half"))return .5;if(!e.includes("threshold"))return 0;let t=e[e.indexOf("threshold")+1];return t==="100"?1:t==="0"?0:Number(`.${t}`)}function Nc(e){let t=e.match(/^(-?[0-9]+)(px|%)?$/);return t?t[1]+(t[2]||"px"):void 0}function Rc(e){let t="margin",r="0px 0px 0px 0px",n=e.indexOf(t);if(n===-1)return r;let i=[];for(let o=1;o<5;o++)i.push(Nc(e[n+o]||""));return i=i.filter(o=>o!==void 0),i.length?i.join(" ").trim():r}var ws=kc;var Qt=Math.min,ke=Math.max,Zt=Math.round,Yt=Math.floor,he=e=>({x:e,y:e}),Pc={left:"right",right:"left",bottom:"top",top:"bottom"},Ic={start:"end",end:"start"};function ys(e,t,r){return ke(e,Qt(t,r))}function rr(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function nr(e){return e.split("-")[1]}function Ts(e){return e==="x"?"y":"x"}function Os(e){return e==="y"?"height":"width"}function ir(e){return["top","bottom"].includes(Le(e))?"y":"x"}function ks(e){return Ts(ir(e))}function Mc(e,t,r){r===void 0&&(r=!1);let n=nr(e),i=ks(e),o=Os(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=er(s)),[s,er(s)]}function Fc(e){let t=er(e);return[vn(e),t,vn(t)]}function vn(e){return e.replace(/start|end/g,t=>Ic[t])}function Dc(e,t,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:s;default:return[]}}function $c(e,t,r,n){let i=nr(e),o=Dc(Le(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(vn)))),o}function er(e){return e.replace(/left|right|bottom|top/g,t=>Pc[t])}function Bc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Uc(e){return typeof e!="number"?Bc(e):{top:e,right:e,bottom:e,left:e}}function tr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function xs(e,t,r){let{reference:n,floating:i}=e,o=ir(t),s=ks(t),a=Os(s),l=Le(t),u=o==="y",d=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2,c=n[a]/2-i[a]/2,f;switch(l){case"top":f={x:d,y:n.y-i.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:p};break;case"left":f={x:n.x-i.width,y:p};break;default:f={x:n.x,y:n.y}}switch(nr(t)){case"start":f[s]-=c*(r&&u?-1:1);break;case"end":f[s]+=c*(r&&u?-1:1);break}return f}var jc=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:p}=xs(u,n,l),c=n,f={},m=0;for(let v=0;v<a.length;v++){let{name:g,fn:x}=a[v],{x:b,y:_,data:O,reset:T}=await x({x:d,y:p,initialPlacement:n,placement:c,strategy:i,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});if(d=b??d,p=_??p,f={...f,[g]:{...f[g],...O}},T&&m<=50){m++,typeof T=="object"&&(T.placement&&(c=T.placement),T.rects&&(u=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:d,y:p}=xs(u,c,l)),v=-1;continue}}return{x:d,y:p,placement:c,strategy:i,middlewareData:f}};async function Ls(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:c=!1,padding:f=0}=rr(t,e),m=Uc(f),g=a[c?p==="floating"?"reference":"floating":p],x=tr(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(g)))==null||r?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),b=p==="floating"?{...s.floating,x:n,y:i}:s.reference,_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),O=await(o.isElement==null?void 0:o.isElement(_))?await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1}:{x:1,y:1},T=tr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:_,strategy:l}):b);return{top:(x.top-T.top+m.top)/O.y,bottom:(T.bottom-x.bottom+m.bottom)/O.y,left:(x.left-T.left+m.left)/O.x,right:(T.right-x.right+m.right)/O.x}}var Hc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:c,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...g}=rr(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let x=Le(i),b=Le(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),O=c||(b||!v?[er(a)]:Fc(a));!c&&m!=="none"&&O.push(...$c(a,v,m,_));let T=[a,...O],w=await Ls(t,g),h=[],y=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&h.push(w[x]),p){let E=Mc(i,s,_);h.push(w[E[0]],w[E[1]])}if(y=[...y,{placement:i,overflows:h}],!h.every(E=>E<=0)){var C,L;let E=(((C=o.flip)==null?void 0:C.index)||0)+1,U=T[E];if(U)return{data:{index:E,overflows:y},reset:{placement:U}};let P=(L=y.filter($=>$.overflows[0]<=0).sort(($,q)=>$.overflows[1]-q.overflows[1])[0])==null?void 0:L.placement;if(!P)switch(f){case"bestFit":{var A;let $=(A=y.map(q=>[q.placement,q.overflows.filter(H=>H>0).reduce((H,ge)=>H+ge,0)]).sort((q,H)=>q[1]-H[1])[0])==null?void 0:A[0];$&&(P=$);break}case"initialPlacement":P=a;break}if(i!==P)return{reset:{placement:P}}}return{}}}};async function qc(e,t){let{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Le(r),a=nr(r),l=ir(r)==="y",u=["left","top"].includes(s)?-1:1,d=o&&l?-1:1,p=rr(t,e),{mainAxis:c,crossAxis:f,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),l?{x:f*d,y:c*u}:{x:c*u,y:f*d}}var Wc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){let{x:r,y:n}=t,i=await qc(t,e);return{x:r+i.x,y:n+i.y,data:i}}}},Kc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:g=>{let{x,y:b}=g;return{x,y:b}}},...l}=rr(e,t),u={x:r,y:n},d=await Ls(t,l),p=ir(Le(i)),c=Ts(p),f=u[c],m=u[p];if(o){let g=c==="y"?"top":"left",x=c==="y"?"bottom":"right",b=f+d[g],_=f-d[x];f=ys(b,f,_)}if(s){let g=p==="y"?"top":"left",x=p==="y"?"bottom":"right",b=m+d[g],_=m-d[x];m=ys(b,m,_)}let v=a.fn({...t,[c]:f,[p]:m});return{...v,data:{x:v.x-r,y:v.y-n}}}}};function me(e){return Ns(e)?(e.nodeName||"").toLowerCase():"#document"}function K(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ae(e){var t;return(t=(Ns(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ns(e){return e instanceof Node||e instanceof K(e).Node}function se(e){return e instanceof Element||e instanceof K(e).Element}function te(e){return e instanceof HTMLElement||e instanceof K(e).HTMLElement}function _s(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof K(e).ShadowRoot}function ft(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function zc(e){return["table","td","th"].includes(me(e))}function bn(e){let t=wn(),r=V(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Vc(e){let t=We(e);for(;te(t)&&!or(t);){if(bn(t))return t;t=We(t)}return null}function wn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function or(e){return["html","body","#document"].includes(me(e))}function V(e){return K(e).getComputedStyle(e)}function sr(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function We(e){if(me(e)==="html")return e;let t=e.assignedSlot||e.parentNode||_s(e)&&e.host||ae(e);return _s(t)?t.host:t}function Rs(e){let t=We(e);return or(t)?e.ownerDocument?e.ownerDocument.body:e.body:te(t)&&ft(t)?t:Rs(t)}function ct(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Rs(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=K(i);return o?t.concat(s,s.visualViewport||[],ft(i)?i:[],s.frameElement&&r?ct(s.frameElement):[]):t.concat(i,ct(i,[],r))}function Ps(e){let t=V(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=te(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=Zt(r)!==o||Zt(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function yn(e){return se(e)?e:e.contextElement}function qe(e){let t=yn(e);if(!te(t))return he(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=Ps(t),s=(o?Zt(r.width):r.width)/n,a=(o?Zt(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Jc=he(0);function Is(e){let t=K(e);return!wn()||!t.visualViewport?Jc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gc(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==K(e)?!1:t}function Ne(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=yn(e),s=he(1);t&&(n?se(n)&&(s=qe(n)):s=qe(e));let a=Gc(o,r,n)?Is(o):he(0),l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,d=i.width/s.x,p=i.height/s.y;if(o){let c=K(o),f=n&&se(n)?K(n):n,m=c.frameElement;for(;m&&n&&f!==c;){let v=qe(m),g=m.getBoundingClientRect(),x=V(m),b=g.left+(m.clientLeft+parseFloat(x.paddingLeft))*v.x,_=g.top+(m.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=b,u+=_,m=K(m).frameElement}}return tr({width:d,height:p,x:l,y:u})}function Xc(e){let{rect:t,offsetParent:r,strategy:n}=e,i=te(r),o=ae(r);if(r===o)return t;let s={scrollLeft:0,scrollTop:0},a=he(1),l=he(0);if((i||!i&&n!=="fixed")&&((me(r)!=="body"||ft(o))&&(s=sr(r)),te(r))){let u=Ne(r);a=qe(r),l.x=u.x+r.clientLeft,l.y=u.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}}function Yc(e){return Array.from(e.getClientRects())}function Ms(e){return Ne(ae(e)).left+sr(e).scrollLeft}function Qc(e){let t=ae(e),r=sr(e),n=e.ownerDocument.body,i=ke(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=ke(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+Ms(e),a=-r.scrollTop;return V(n).direction==="rtl"&&(s+=ke(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Zc(e,t){let r=K(e),n=ae(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let u=wn();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function ef(e,t){let r=Ne(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=te(e)?qe(e):he(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=n*o.y;return{width:s,height:a,x:l,y:u}}function Ss(e,t,r){let n;if(t==="viewport")n=Zc(e,r);else if(t==="document")n=Qc(ae(e));else if(se(t))n=ef(t,r);else{let i=Is(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return tr(n)}function Fs(e,t){let r=We(e);return r===t||!se(r)||or(r)?!1:V(r).position==="fixed"||Fs(r,t)}function tf(e,t){let r=t.get(e);if(r)return r;let n=ct(e,[],!1).filter(a=>se(a)&&me(a)!=="body"),i=null,o=V(e).position==="fixed",s=o?We(e):e;for(;se(s)&&!or(s);){let a=V(s),l=bn(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ft(s)&&!l&&Fs(e,s))?n=n.filter(d=>d!==s):i=a,s=We(s)}return t.set(e,n),n}function rf(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?tf(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((u,d)=>{let p=Ss(t,d,i);return u.top=ke(p.top,u.top),u.right=Qt(p.right,u.right),u.bottom=Qt(p.bottom,u.bottom),u.left=ke(p.left,u.left),u},Ss(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function nf(e){return Ps(e)}function of(e,t,r){let n=te(t),i=ae(t),o=r==="fixed",s=Ne(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=he(0);if(n||!n&&!o)if((me(t)!=="body"||ft(i))&&(a=sr(t)),n){let u=Ne(t,!0,o,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&(l.x=Ms(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Es(e,t){return!te(e)||V(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ds(e,t){let r=K(e);if(!te(e))return r;let n=Es(e,t);for(;n&&zc(n)&&V(n).position==="static";)n=Es(n,t);return n&&(me(n)==="html"||me(n)==="body"&&V(n).position==="static"&&!bn(n))?r:n||Vc(e)||r}var sf=async function(e){let{reference:t,floating:r,strategy:n}=e,i=this.getOffsetParent||Ds,o=this.getDimensions;return{reference:of(t,await i(r),n),floating:{x:0,y:0,...await o(r)}}};function af(e){return V(e).direction==="rtl"}var lf={convertOffsetParentRelativeRectToViewportRelativeRect:Xc,getDocumentElement:ae,getClippingRect:rf,getOffsetParent:Ds,getElementRects:sf,getClientRects:Yc,getDimensions:nf,getScale:qe,isElement:se,isRTL:af};function uf(e,t){let r=null,n,i=ae(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();let{left:u,top:d,width:p,height:c}=e.getBoundingClientRect();if(a||t(),!p||!c)return;let f=Yt(d),m=Yt(i.clientWidth-(u+p)),v=Yt(i.clientHeight-(d+c)),g=Yt(u),b={rootMargin:-f+"px "+-m+"px "+-v+"px "+-g+"px",threshold:ke(0,Qt(1,l))||1},_=!0;function O(T){let w=T[0].intersectionRatio;if(w!==l){if(!_)return s();w?s(!1,w):n=setTimeout(()=>{s(!1,1e-7)},100)}_=!1}try{r=new IntersectionObserver(O,{...b,root:i.ownerDocument})}catch{r=new IntersectionObserver(O,b)}r.observe(e)}return s(!0),o}function cf(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=yn(e),d=i||o?[...u?ct(u):[],...ct(t)]:[];d.forEach(x=>{i&&x.addEventListener("scroll",r,{passive:!0}),o&&x.addEventListener("resize",r)});let p=u&&a?uf(u,r):null,c=-1,f=null;s&&(f=new ResizeObserver(x=>{let[b]=x;b&&b.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(c),c=requestAnimationFrame(()=>{f&&f.observe(t)})),r()}),u&&!l&&f.observe(u),f.observe(t));let m,v=l?Ne(e):null;l&&g();function g(){let x=Ne(e);v&&(x.x!==v.x||x.y!==v.y||x.width!==v.width||x.height!==v.height)&&r(),v=x,m=requestAnimationFrame(g)}return r(),()=>{d.forEach(x=>{i&&x.removeEventListener("scroll",r),o&&x.removeEventListener("resize",r)}),p&&p(),f&&f.disconnect(),f=null,l&&cancelAnimationFrame(m)}}var ff=(e,t,r)=>{let n=new Map,i={platform:lf,...r},o={...i.platform,_c:n};return jc(e,t,{...i,platform:o})};function df(e){e.magic("anchor",t=>{if(!t._x_anchor)throw"Alpine: No x-anchor directive found on element using $anchor...";return t._x_anchor}),e.interceptClone((t,r)=>{t&&t._x_anchor&&!r._x_anchor&&(r._x_anchor=t._x_anchor)}),e.directive("anchor",e.skipDuringClone((t,{expression:r,modifiers:n,value:i},{cleanup:o,evaluate:s})=>{let{placement:a,offsetValue:l,unstyled:u}=Cs(n);t._x_anchor=e.reactive({x:0,y:0});let d=s(r);if(!d)throw"Alpine: no element provided to x-anchor...";let p=()=>{let f;ff(d,t,{placement:a,middleware:[Hc(),Kc({padding:5}),Wc(l)]}).then(({x:m,y:v})=>{u||As(t,m,v),JSON.stringify({x:m,y:v})!==f&&(t._x_anchor.x=m,t._x_anchor.y=v),f=JSON.stringify({x:m,y:v})})},c=cf(d,t,()=>p());o(()=>c())},(t,{expression:r,modifiers:n,value:i},{cleanup:o,evaluate:s})=>{let{placement:a,offsetValue:l,unstyled:u}=Cs(n);t._x_anchor&&(u||As(t,t._x_anchor.x,t._x_anchor.y))}))}function As(e,t,r){Object.assign(e.style,{left:t+"px",top:r+"px",position:"absolute"})}function Cs(e){let r=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].find(o=>e.includes(o)),n=0;if(e.includes("offset")){let o=e.findIndex(s=>s==="offset");n=e[o+1]!==void 0?Number(e[o+1]):n}let i=e.includes("no-style");return{placement:r,offsetValue:n,unstyled:i}}var $s=df;function Bs(){let e=new URL(window.location.href,document.baseURI);hf(e,document.documentElement.outerHTML)}function Us(e){window.addEventListener("popstate",t=>{let n=(t.state||{}).alpine||{};if(!n._html)return;let i=mf(n._html);e(i)})}function js(e,t){pf(t,e)}function pf(e,t){Hs("pushState",e,t)}function hf(e,t){Hs("replaceState",e,t)}function Hs(e,t,r){let n=new Date().getTime();qs(n,r);let i=history.state||{};i.alpine||(i.alpine={}),i.alpine._html=n;try{history[e](i,document.title,t)}catch(o){o instanceof DOMException&&o.name==="SecurityError"&&console.error("Livewire: You can't use wire:navigate with a link to a different root domain: "+t),console.error(o)}}function mf(e){return JSON.parse(sessionStorage.getItem("alpine:"+e))}function qs(e,t){try{sessionStorage.setItem("alpine:"+e,JSON.stringify(t))}catch(r){if(![22,1,2,3,4,5,6,7,8,9,10,11,12,13,14].includes(r.code))return;let n=Object.keys(sessionStorage).map(i=>Number(i.replace("alpine:",""))).sort().shift();if(!n)return;sessionStorage.removeItem("alpine:"+n),qs(e,t)}}function Ws(e,t){let r=o=>!o.isTrusted,n=o=>o.which>1||o.altKey||o.ctrlKey||o.metaKey||o.shiftKey,i=o=>o.which!==13||o.altKey||o.ctrlKey||o.metaKey||o.shiftKey;e.addEventListener("click",o=>{if(r(o)){o.preventDefault(),t(s=>s());return}n(o)||o.preventDefault()}),e.addEventListener("mousedown",o=>{n(o)||(o.preventDefault(),t(s=>{let a=l=>{l.preventDefault(),s(),e.removeEventListener("mouseup",a)};e.addEventListener("mouseup",a)}))}),e.addEventListener("keydown",o=>{i(o)||(o.preventDefault(),t(s=>s()))})}function Ks(e,t=60,r){e.addEventListener("mouseenter",n=>{let i=setTimeout(()=>{r(n)},t),o=()=>{clearTimeout(i),e.removeEventListener("mouseleave",o)};e.addEventListener("mouseleave",o)})}function xn(e){return dt(e.getAttribute("href"))}function dt(e){return new URL(e,document.baseURI)}function zs(e,t){let r=e.pathname+e.search;_n(r,(n,i)=>{t(n,i)})}function _n(e,t){let r={headers:{"X-Livewire-Navigate":""}};R("navigate.request",{url:e,options:r});let n;fetch(e,r).then(i=>(n=dt(i.url),i.text())).then(i=>{t(i,n)})}var J={};function Sn(e,t){let r=e.pathname;J[r]||(J[r]={finished:!1,html:null,whenFinished:()=>{}},_n(r,(n,i)=>{t(n,i)}))}function En(e,t,r){let n=J[t.pathname];n.html=e,n.finished=!0,n.finalDestination=r,n.whenFinished()}function Vs(e,t,r){let n=e.pathname+e.search;if(!J[n])return r();if(J[n].finished){let i=J[n].html,o=J[n].finalDestination;return delete J[n],t(i,o)}else J[n].whenFinished=()=>{let i=J[n].html,o=J[n].finalDestination;delete J[n],t(i,o)}}function An(e){S.mutateDom(()=>{e.querySelectorAll("[data-teleport-template]").forEach(t=>t._x_teleport.remove())})}function Cn(e){S.mutateDom(()=>{e.querySelectorAll("[data-teleport-target]").forEach(t=>t.remove())})}function Tn(e){S.walk(e,(t,r)=>{!t._x_teleport||(t._x_teleportPutBack(),r())})}function Js(e){return e.hasAttribute("data-teleport-target")}function On(){document.body.setAttribute("data-scroll-x",document.body.scrollLeft),document.body.setAttribute("data-scroll-y",document.body.scrollTop),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(e=>{e.setAttribute("data-scroll-x",e.scrollLeft),e.setAttribute("data-scroll-y",e.scrollTop)})}function kn(){let e=t=>{t.hasAttribute("data-scroll-x")?(t.scrollTo({top:Number(t.getAttribute("data-scroll-y")),left:Number(t.getAttribute("data-scroll-x")),behavior:"instant"}),t.removeAttribute("data-scroll-x"),t.removeAttribute("data-scroll-y")):window.scrollTo({top:0,left:0,behavior:"instant"})};queueMicrotask(()=>{e(document.body),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(e)})}var pt={};function Ln(e){pt={},document.querySelectorAll("[x-persist]").forEach(t=>{pt[t.getAttribute("x-persist")]=t,e(t),S.mutateDom(()=>{t.remove()})})}function Nn(e){let t=[];document.querySelectorAll("[x-persist]").forEach(r=>{let n=pt[r.getAttribute("x-persist")];!n||(t.push(r.getAttribute("x-persist")),n._x_wasPersisted=!0,e(n,r),S.mutateDom(()=>{r.replaceWith(n)}))}),Object.entries(pt).forEach(([r,n])=>{t.includes(r)||S.destroyTree(n)}),pt={}}function Gs(e){return e.hasAttribute("x-persist")}var ht=Ja(Ys());ht.default.configure({minimum:.1,trickleSpeed:200,showSpinner:!1});gf();var Pn=!1;function Qs(){Pn=!0,setTimeout(()=>{!Pn||ht.default.start()},150)}function Zs(){Pn=!1,ht.default.done(),ht.default.remove()}function gf(){let e=document.createElement("style");e.innerHTML=`/* Make clicks pass-through */
    `;let t=Xn();t&&(e.nonce=t),document.head.appendChild(e)}var In=[],ra=["data-csrf","aria-hidden"];function Mn(e,t){let r=new DOMParser().parseFromString(e,"text/html"),n=document.adoptNode(r.body),i=document.adoptNode(r.head);In=In.concat(Array.from(document.body.querySelectorAll("script")).map(a=>sa(aa(a.outerHTML,ra))));let o=()=>{};bf(i).finally(()=>{o()}),vf(n,In);let s=document.body;document.body.replaceWith(n),Alpine.destroyTree(s),t(a=>o=a)}function vf(e,t){e.querySelectorAll("script").forEach(r=>{if(r.hasAttribute("data-navigate-once")){let n=sa(aa(r.outerHTML,ra));if(t.includes(n))return}r.replaceWith(na(r))})}function bf(e){let t=Array.from(document.head.children),r=t.map(s=>s.outerHTML),n=document.createDocumentFragment(),i=[],o=[];for(let s of Array.from(e.children))if(ta(s)){if(r.includes(s.outerHTML))n.appendChild(s);else if(ia(s)&&yf(s,t)&&setTimeout(()=>window.location.reload()),oa(s))try{o.push(wf(na(s)))}catch{}else document.head.appendChild(s);i.push(s)}for(let s of Array.from(document.head.children))ta(s)||s.remove();for(let s of Array.from(e.children))document.head.appendChild(s);return Promise.all(o)}async function wf(e){return new Promise((t,r)=>{e.src?(e.onload=()=>t(),e.onerror=()=>r()):t(),document.head.appendChild(e)})}function na(e){let t=document.createElement("script");t.textContent=e.textContent,t.async=e.async;for(let r of e.attributes)t.setAttribute(r.name,r.value);return t}function ia(e){return e.hasAttribute("data-navigate-track")}function yf(e,t){let[r,n]=ea(e);return t.some(i=>{if(!ia(i))return!1;let[o,s]=ea(i);if(o===r&&n!==s)return!0})}function ea(e){return(oa(e)?e.src:e.href).split("?")}function ta(e){return e.tagName.toLowerCase()==="link"&&e.getAttribute("rel").toLowerCase()==="stylesheet"||e.tagName.toLowerCase()==="style"||e.tagName.toLowerCase()==="script"}function oa(e){return e.tagName.toLowerCase()==="script"}function sa(e){return e.split("").reduce((t,r)=>(t=(t<<5)-t+r.charCodeAt(0),t&t),0)}function aa(e,t){let r=e;return t.forEach(n=>{let i=new RegExp(`${n}="[^"]*"|${n}='[^']*'`,"g");r=r.replace(i,"")}),r=r.replaceAll(" ",""),r.trim()}var ar=!0,Fn=!0,xf=!0,la=!1;function da(e){e.navigate=r=>{t(dt(r))},e.navigate.disableProgressBar=()=>{Fn=!1},e.addInitSelector(()=>`[${e.prefixed("navigate")}]`),e.directive("navigate",(r,{modifiers:n})=>{n.includes("hover")&&Ks(r,60,()=>{let o=xn(r);Sn(o,(s,a)=>{En(s,o,a)})}),Ws(r,o=>{let s=xn(r);Sn(s,(a,l)=>{En(a,s,l)}),o(()=>{t(s)})})});function t(r){Fn&&Qs(),_f(r,(n,i)=>{lr("alpine:navigating"),xf&&On(),Fn&&Zs(),Sf(),Bs(),ua(e,o=>{ar&&Ln(s=>{An(s)}),Mn(n,s=>{Cn(document.body),ar&&Nn((a,l)=>{Tn(a)}),kn(),js(n,i),lr("alpine:navigated"),s(()=>{o(()=>{setTimeout(()=>{la&&fa()}),ca(e)})})})})})}Us(r=>{On(),ua(e,n=>{ar&&Ln(i=>{An(i)}),Mn(r,()=>{Cn(document.body),ar&&Nn((i,o)=>{Tn(i)}),kn(),lr("alpine:navigated"),n(()=>{la&&fa(),ca(e)})})})}),setTimeout(()=>{lr("alpine:navigated")})}function _f(e,t){Vs(e,t,()=>{zs(e,t)})}function ua(e,t){e.stopObservingMutations(),t(r=>{e.startObservingMutations(),queueMicrotask(()=>{r()})})}function lr(e){document.dispatchEvent(new CustomEvent(e,{bubbles:!0}))}function ca(e){e.initTree(document.body,void 0,(t,r)=>{t._x_wasPersisted&&r()})}function fa(){document.querySelector("[autofocus]")&&document.querySelector("[autofocus]").focus()}function Sf(){let e=function(t,r){Alpine.walk(t,(n,i)=>{Gs(n)&&i(),Js(n)?i():r(n,i)})};Alpine.destroyTree(document.body,e)}function Dn(e){e.magic("queryString",(t,{interceptor:r})=>{let n,i=!1,o=!1;return r((s,a,l,u,d)=>{let p=n||u,{initial:c,replace:f,push:m,pop:v}=cr(p,s,i);return l(c),o?(e.effect(()=>m(a())),v(async g=>{l(g),await(()=>Promise.resolve())()})):e.effect(()=>f(a())),c},s=>{s.alwaysShow=()=>(i=!0,s),s.usePush=()=>(o=!0,s),s.as=a=>(n=a,s)})}),e.history={track:cr}}function cr(e,t,r=!1){let{has:n,get:i,set:o,remove:s}=Af(),a=new URL(window.location.href),l=n(a,e),u=l?i(a,e):t,d=JSON.stringify(u),p=m=>JSON.stringify(m)===d;r&&(a=o(a,e,u)),pa(a,e,{value:u});let c=!1,f=(m,v)=>{if(c)return;let g=new URL(window.location.href);!r&&!l&&p(v)||v===void 0?g=s(g,e):g=o(g,e,v),m(g,e,{value:v})};return{initial:u,replace(m){f(pa,m)},push(m){f(Ef,m)},pop(m){let v=g=>{!g.state||!g.state.alpine||Object.entries(g.state.alpine).forEach(([x,{value:b}])=>{if(x!==e)return;c=!0;let _=m(b);_ instanceof Promise?_.finally(()=>c=!1):c=!1})};return window.addEventListener("popstate",v),()=>window.removeEventListener("popstate",v)}}}function pa(e,t,r){let n=window.history.state||{};n.alpine||(n.alpine={}),n.alpine[t]=$n(r),window.history.replaceState(n,"",e.toString())}function Ef(e,t,r){let n=window.history.state||{};n.alpine||(n.alpine={}),n={alpine:{...n.alpine,[t]:$n(r)}},window.history.pushState(n,"",e.toString())}function $n(e){if(e!==void 0)return JSON.parse(JSON.stringify(e))}function Af(){return{has(e,t){let r=e.search;if(!r)return!1;let n=ur(r);return Object.keys(n).includes(t)},get(e,t){let r=e.search;return r?ur(r)[t]:!1},set(e,t,r){let n=ur(e.search);return n[t]=ma($n(r)),e.search=ha(n),e},remove(e,t){let r=ur(e.search);return delete r[t],e.search=ha(r),e}}}function ma(e){if(!vt(e))return e;for(let t in e)e[t]===null?delete e[t]:e[t]=ma(e[t]);return e}function ha(e){let t=i=>typeof i=="object"&&i!==null,r=(i,o={},s="")=>(Object.entries(i).forEach(([a,l])=>{let u=s===""?a:`${s}[${a}]`;l===null?o[u]="":t(l)?o={...o,...r(l,o,u)}:o[u]=encodeURIComponent(l).replaceAll("%20","+").replaceAll("%2C",",")}),o),n=r(e);return Object.entries(n).map(([i,o])=>`${i}=${o}`).join("&")}function ur(e){if(e=e.replace("?",""),e==="")return{};let t=(i,o,s)=>{let[a,l,...u]=i.split(".");if(!l)return s[i]=o;s[a]===void 0&&(s[a]=isNaN(l)?{}:[]),t([l,...u].join("."),o,s[a])},r=e.split("&").map(i=>i.split("=")),n={};return r.forEach(([i,o])=>{if(o=decodeURIComponent(o.replaceAll("+","%20")),!i.includes("["))n[i]=o;else{let s=i.replaceAll("[",".").replaceAll("]","");t(s,o,n)}}),n}function Un(e,t,r){Of();let n,i,o,s,a,l,u,d,p,c;function f(h={}){let y=L=>L.getAttribute("key"),C=()=>{};a=h.updating||C,l=h.updated||C,u=h.removing||C,d=h.removed||C,p=h.adding||C,c=h.added||C,o=h.key||y,s=h.lookahead||!1}function m(h,y){if(v(h,y))return g(h,y);let C=!1;if(!Ke(a,h,y,()=>C=!0)){if(h.nodeType===1&&window.Alpine&&window.Alpine.cloneNode(h,y),Tf(y)){x(h,y),l(h,y);return}C||b(h,y),l(h,y),_(h,y)}}function v(h,y){return h.nodeType!=y.nodeType||h.nodeName!=y.nodeName||O(h)!=O(y)}function g(h,y){if(Ke(u,h))return;let C=y.cloneNode(!0);Ke(p,C)||(h.replaceWith(C),d(h),c(C))}function x(h,y){let C=y.nodeValue;h.nodeValue!==C&&(h.nodeValue=C)}function b(h,y){if(h._x_transitioning||h._x_isShown&&!y._x_isShown||!h._x_isShown&&y._x_isShown)return;let C=Array.from(h.attributes),L=Array.from(y.attributes);for(let A=C.length-1;A>=0;A--){let E=C[A].name;y.hasAttribute(E)||h.removeAttribute(E)}for(let A=L.length-1;A>=0;A--){let E=L[A].name,U=L[A].value;h.getAttribute(E)!==U&&h.setAttribute(E,U)}}function _(h,y){h._x_teleport&&(h=h._x_teleport),y._x_teleport&&(y=y._x_teleport);let C=T(h.children),L={},A=va(y),E=va(h);for(;A;){kf(A,E);let P=O(A),$=O(E);if(!E)if(P&&L[P]){let N=L[P];h.appendChild(N),E=N}else{if(!Ke(p,A)){let N=A.cloneNode(!0);h.appendChild(N),c(N)}A=G(y,A);continue}let q=N=>N&&N.nodeType===8&&N.textContent==="[if BLOCK]><![endif]",H=N=>N&&N.nodeType===8&&N.textContent==="[if ENDBLOCK]><![endif]";if(q(A)&&q(E)){let N=0,mt=E;for(;E;){let X=G(h,E);if(q(X))N++;else if(H(X)&&N>0)N--;else if(H(X)&&N===0){E=X;break}E=X}let Fa=E;N=0;let Da=A;for(;A;){let X=G(y,A);if(q(X))N++;else if(H(X)&&N>0)N--;else if(H(X)&&N===0){A=X;break}A=X}let $a=A,Ba=new Bn(mt,Fa),Ua=new Bn(Da,$a);_(Ba,Ua);continue}if(E.nodeType===1&&s&&!E.isEqualNode(A)){let N=G(y,A),mt=!1;for(;!mt&&N;)N.nodeType===1&&E.isEqualNode(N)&&(mt=!0,E=w(h,A,E),$=O(E)),N=G(y,N)}if(P!==$){if(!P&&$){L[$]=E,E=w(h,A,E),L[$].remove(),E=G(h,E),A=G(y,A);continue}if(P&&!$&&C[P]&&(E.replaceWith(C[P]),E=C[P]),P&&$){let N=C[P];if(N)L[$]=E,E.replaceWith(N),E=N;else{L[$]=E,E=w(h,A,E),L[$].remove(),E=G(h,E),A=G(y,A);continue}}}let ge=E&&G(h,E);m(E,A),A=A&&G(y,A),E=ge}let U=[];for(;E;)Ke(u,E)||U.push(E),E=G(h,E);for(;U.length;){let P=U.shift();P.remove(),d(P)}}function O(h){return h&&h.nodeType===1&&o(h)}function T(h){let y={};for(let C of h){let L=O(C);L&&(y[L]=C)}return y}function w(h,y,C){if(!Ke(p,y)){let L=y.cloneNode(!0);return h.insertBefore(L,C),c(L),L}return y}return f(r),n=e,i=typeof t=="string"?Cf(t):t,window.Alpine&&window.Alpine.closestDataStack&&!e._x_dataStack&&(i._x_dataStack=window.Alpine.closestDataStack(e),i._x_dataStack&&window.Alpine.cloneNode(e,i)),m(e,i),n=void 0,i=void 0,e}Un.step=()=>{};Un.log=()=>{};function Ke(e,...t){let r=!1;return e(...t,()=>r=!0),r}var ga=!1;function Cf(e){let t=document.createElement("template");return t.innerHTML=e,t.content.firstElementChild}function Tf(e){return e.nodeType===3||e.nodeType===8}var Bn=class{constructor(e,t){this.startComment=e,this.endComment=t}get children(){let e=[],t=this.startComment.nextSibling;for(;t&&t!==this.endComment;)e.push(t),t=t.nextSibling;return e}appendChild(e){this.endComment.before(e)}get firstChild(){let e=this.startComment.nextSibling;if(e!==this.endComment)return e}nextNode(e){let t=e.nextSibling;if(t!==this.endComment)return t}insertBefore(e,t){return t.before(e),e}};function va(e){return e.firstChild}function G(e,t){let r;return e instanceof Bn?r=e.nextNode(t):r=t.nextSibling,r}function Of(){if(ga)return;ga=!0;let e=Element.prototype.setAttribute,t=document.createElement("div");Element.prototype.setAttribute=function(n,i){if(!n.includes("@"))return e.call(this,n,i);t.innerHTML=`<span ${n}="${i}"></span>`;let o=t.firstElementChild.getAttributeNode(n);t.firstElementChild.removeAttributeNode(o),this.setAttributeNode(o)}}function kf(e,t){let r=t&&t._x_bindings&&t._x_bindings.id;!r||(e.setAttribute("id",r),e.id=r)}function Lf(e){e.morph=Un}var ba=Lf;function Nf(e){e.directive("mask",(t,{value:r,expression:n},{effect:i,evaluateLater:o,cleanup:s})=>{let a=()=>n,l="";queueMicrotask(()=>{if(["function","dynamic"].includes(r)){let c=o(n);i(()=>{a=f=>{let m;return e.dontAutoEvaluateFunctions(()=>{c(v=>{m=typeof v=="function"?v(f):v},{scope:{$input:f,$money:Pf.bind({el:t})}})}),m},d(t,!1)})}else d(t,!1);t._x_model&&t._x_model.set(t.value)});let u=new AbortController;s(()=>{u.abort()}),t.addEventListener("input",()=>d(t),{signal:u.signal,capture:!0}),t.addEventListener("blur",()=>d(t,!1),{signal:u.signal});function d(c,f=!0){let m=c.value,v=a(m);if(!v||v==="false")return!1;if(l.length-c.value.length===1)return l=c.value;let g=()=>{l=c.value=p(m,v)};f?Rf(c,v,()=>{g()}):g()}function p(c,f){if(c==="")return"";let m=wa(f,c);return ya(f,m)}}).before("model")}function Rf(e,t,r){let n=e.selectionStart,i=e.value;r();let o=i.slice(0,n),s=ya(t,wa(t,o)).length;e.setSelectionRange(s,s)}function wa(e,t){let r=t,n="",i={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},o="";for(let s=0;s<e.length;s++){if(["9","a","*"].includes(e[s])){o+=e[s];continue}for(let a=0;a<r.length;a++)if(r[a]===e[s]){r=r.slice(0,a)+r.slice(a+1);break}}for(let s=0;s<o.length;s++){let a=!1;for(let l=0;l<r.length;l++)if(i[o[s]].test(r[l])){n+=r[l],r=r.slice(0,l)+r.slice(l+1),a=!0;break}if(!a)break}return n}function ya(e,t){let r=Array.from(t),n="";for(let i=0;i<e.length;i++){if(!["9","a","*"].includes(e[i])){n+=e[i];continue}if(r.length===0)break;n+=r.shift()}return n}function Pf(e,t=".",r,n=2){if(e==="-")return"-";if(/^\D+$/.test(e))return"9";r==null&&(r=t===","?".":",");let i=(l,u)=>{let d="",p=0;for(let c=l.length-1;c>=0;c--)l[c]!==u&&(p===3?(d=l[c]+u+d,p=0):d=l[c]+d,p++);return d},o=e.startsWith("-")?"-":"",s=e.replaceAll(new RegExp(`[^0-9\\${t}]`,"g"),""),a=Array.from({length:s.split(t)[0].length}).fill("9").join("");return a=`${o}${i(a,r)}`,n>0&&e.includes(t)&&(a+=`${t}`+"9".repeat(n)),queueMicrotask(()=>{this.el.value.endsWith(t)||this.el.value[this.el.selectionStart-1]===t&&this.el.setSelectionRange(this.el.selectionStart-1,this.el.selectionStart-1)}),a}var xa=Nf;function _a(){setTimeout(()=>If()),gt(document,"livewire:init"),gt(document,"livewire:initializing"),S.plugin(ba),S.plugin(Dn),S.plugin(ws),S.plugin(Qo),S.plugin($s),S.plugin(hs),S.plugin(bs),S.plugin(da),S.plugin(xa),S.addRootSelector(()=>"[wire\\:id]"),S.onAttributesAdded((e,t)=>{if(!Array.from(t).some(n=>He(n.name)))return;let r=z(e,!1);!r||t.forEach(n=>{if(!He(n.name))return;let i=Kt(e,n.name);R("directive.init",{el:e,component:r,directive:i,cleanup:o=>{S.onAttributeRemoved(e,i.raw,o)}})})}),S.interceptInit(S.skipDuringClone(e=>{if(!Array.from(e.attributes).some(r=>He(r.name)))return;if(e.hasAttribute("wire:id")){let r=qo(e);S.onAttributeRemoved(e,"wire:id",()=>{Wo(r.id)})}let t=z(e,!1);t&&(R("element.init",{el:e,component:t}),Array.from(e.getAttributeNames()).filter(n=>He(n)).map(n=>Kt(e,n)).forEach(n=>{R("directive.init",{el:e,component:t,directive:n,cleanup:i=>{S.onAttributeRemoved(e,n.raw,i)}})}))})),S.start(),setTimeout(()=>window.Livewire.initialRenderIsFinished=!0),gt(document,"livewire:initialized")}function If(){let e=document.querySelector("script[data-update-uri][data-csrf]");if(!e)return;let t=e.closest("[wire\\:id]");t&&console.warn("Livewire: missing closing tags found. Ensure your template elements contain matching closing tags.",t)}var ze={};k("element.init",({el:e,component:t})=>setTimeout(()=>{pe(e).missing("submit")||e.addEventListener("submit",()=>{ze[t.id]=[],S.walk(t.el,(n,i)=>{if(!!e.contains(n)){if(n.hasAttribute("wire:ignore"))return i();n.tagName.toLowerCase()==="button"&&n.type==="submit"||n.tagName.toLowerCase()==="select"||n.tagName.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")?(n.disabled||ze[t.id].push(()=>n.disabled=!1),n.disabled=!0):(n.tagName.toLowerCase()==="input"||n.tagName.toLowerCase()==="textarea")&&(n.readOnly||ze[t.id].push(()=>n.readOnly=!1),n.readOnly=!0)}})})}));k("commit",({component:e,respond:t})=>{t(()=>{Mf(e)})});function Mf(e){if(!!ze[e.id])for(;ze[e.id].length>0;)ze[e.id].shift()()}k("commit.pooling",({commits:e})=>{e.forEach(t=>{let r=t.component;Ea(r,n=>{n.$wire.$commit()})})});k("commit.pooled",({pools:e})=>{Ff(e).forEach(r=>{let n=r.component;Ea(n,i=>{Df(e,n,i)})})});function Ff(e){let t=[];return e.forEach(r=>{r.commits.forEach(n=>{t.push(n)})}),t}function Df(e,t,r){let n=Sa(e,t),i=Sa(e,r),o=i.findCommitByComponent(r);i.delete(o),n.add(o),e.forEach(s=>{s.empty()&&e.delete(s)})}function Sa(e,t){for(let[r,n]of e.entries())if(n.hasCommitFor(t))return n}function Ea(e,t){Aa(e,r=>{($f(r)||Bf(r))&&t(r)})}function $f(e){return!!e.snapshot.memo.props}function Bf(e){return!!e.snapshot.memo.bindings}function Aa(e,t){e.children.forEach(r=>{t(r),Aa(r,t)})}var Ve=new WeakMap,fr=new Set;k("payload.intercept",async({assets:e})=>{if(!!e)for(let[t,r]of Object.entries(e))await Hf(t,async()=>{await qf(r)})});k("component.init",({component:e})=>{let t=e.snapshot.memo.assets;t&&t.forEach(r=>{fr.has(r)||fr.add(r)})});k("effect",({component:e,effects:t})=>{let r=t.scripts;r&&Object.entries(r).forEach(([n,i])=>{Uf(e,n,()=>{let o=jf(i);S.dontAutoEvaluateFunctions(()=>{S.evaluate(e.el,o,{$wire:e.$wire})})})})});function Uf(e,t,r){if(Ve.has(e)&&Ve.get(e).includes(t))return;r(),Ve.has(e)||Ve.set(e,[]);let n=Ve.get(e);n.push(t),Ve.set(e,n)}function jf(e){let r=/<script\b[^>]*>([\s\S]*?)<\/script>/gm.exec(e);return r&&r[1]?r[1].trim():""}async function Hf(e,t){fr.has(e)||(await t(),fr.add(e))}async function qf(e){let t=new DOMParser().parseFromString(e,"text/html"),r=document.adoptNode(t.head);for(let n of r.children)try{await Wf(n)}catch{}}async function Wf(e){return new Promise((t,r)=>{if(Kf(e)){let n=zf(e);n.src?(n.onload=()=>t(),n.onerror=()=>r()):t(),document.head.appendChild(n)}else document.head.appendChild(e),t()})}function Kf(e){return e.tagName.toLowerCase()==="script"}function zf(e){let t=document.createElement("script");t.textContent=e.textContent,t.async=e.async;for(let r of e.attributes)t.setAttribute(r.name,r.value);return t}k("commit",({succeed:e})=>{e(({effects:t})=>{let r=t.download;if(!r)return;let n=window.webkitURL||window.URL,i=n.createObjectURL(Vf(r.content,r.contentType)),o=document.createElement("a");o.style.display="none",o.href=i,o.download=r.name,document.body.appendChild(o),o.click(),setTimeout(function(){n.revokeObjectURL(i)},0)})});function Vf(e,t="",r=512){let n=atob(e),i=[];t===null&&(t="");for(let o=0;o<n.length;o+=r){let s=n.slice(o,o+r),a=new Array(s.length);for(let u=0;u<s.length;u++)a[u]=s.charCodeAt(u);let l=new Uint8Array(a);i.push(l)}return new Blob(i,{type:t})}k("effect",({component:e,effects:t})=>{let r=t.js,n=t.xjs;r&&Object.entries(r).forEach(([i,o])=>{Uo(e,i,()=>{S.evaluate(e.el,o)})}),n&&n.forEach(i=>{S.evaluate(e.el,i)})});var jn=new WeakSet,Hn=new WeakSet;k("component.init",({component:e})=>{let t=e.snapshot.memo;t.lazyLoaded!==void 0&&(Hn.add(e),t.lazyIsolated!==void 0&&t.lazyIsolated===!1&&jn.add(e))});k("commit.pooling",({commits:e})=>{e.forEach(t=>{!Hn.has(t.component)||(jn.has(t.component)?(t.isolate=!1,jn.delete(t.component)):t.isolate=!0,Hn.delete(t.component))})});k("effect",({component:e,effects:t,cleanup:r})=>{let n=t.url;!n||Object.entries(n).forEach(([i,o])=>{let{name:s,as:a,use:l,alwaysShow:u,except:d}=Jf(i,o);a||(a=s);let p=[!1,null,void 0].includes(d)?W(e.ephemeral,s):d,{replace:c,push:f,pop:m}=cr(a,p,u);if(l==="replace"){let v=S.effect(()=>{c(W(e.reactive,s))});r(()=>S.release(v))}else if(l==="push"){let v=k("commit",({component:x,succeed:b})=>{if(e!==x)return;let _=W(e.canonical,s);b(()=>{let O=W(e.canonical,s);JSON.stringify(_)!==JSON.stringify(O)&&f(O)})}),g=m(async x=>{await e.$wire.set(s,x),document.querySelectorAll("input").forEach(b=>{b._x_forceModelUpdate&&b._x_forceModelUpdate(b._x_model.get())})});r(()=>{v(),g()})}})});function Jf(e,t){let r={use:"replace",alwaysShow:!1};return typeof t=="string"?{...r,name:t,as:t}:{...{...r,name:e,as:e},...t}}k("request",({options:e})=>{window.Echo&&(e.headers["X-Socket-ID"]=window.Echo.socketId())});k("effect",({component:e,effects:t})=>{(t.listeners||[]).forEach(n=>{if(n.startsWith("echo")){if(typeof window.Echo>"u"){console.warn("Laravel Echo cannot be found");return}let i=n.split(/(echo:|echo-)|:|,/);i[1]=="echo:"&&i.splice(2,0,"channel",void 0),i[2]=="notification"&&i.push(void 0,void 0);let[o,s,a,l,u,d,p]=i;if(["channel","private","encryptedPrivate"].includes(a)){let c=f=>ie(e,n,[f]);window.Echo[a](u).listen(p,c),e.addCleanup(()=>{window.Echo[a](u).stopListening(p,c)})}else if(a=="presence")if(["here","joining","leaving"].includes(p))window.Echo.join(u)[p](c=>{ie(e,n,[c])});else{let c=f=>ie(e,n,[f]);window.Echo.join(u).listen(p,c),e.addCleanup(()=>{window.Echo.leaveChannel(u)})}else a=="notification"?window.Echo.private(u).notification(c=>{ie(e,n,[c])}):console.warn("Echo channel type not yet supported")}})});var Ca=new WeakSet;k("component.init",({component:e})=>{e.snapshot.memo.isolate===!0&&Ca.add(e)});k("commit.pooling",({commits:e})=>{e.forEach(t=>{!Ca.has(t.component)||(t.isolate=!0)})});Gf()&&Alpine.navigate.disableProgressBar();document.addEventListener("alpine:navigated",e=>{document.dispatchEvent(new CustomEvent("livewire:navigated",{bubbles:!0}))});document.addEventListener("alpine:navigating",e=>{document.dispatchEvent(new CustomEvent("livewire:navigating",{bubbles:!0}))});function Ta(e,t,r){e.redirectUsingNavigate?Alpine.navigate(t):r()}function Gf(){return!!(document.querySelector("[data-no-progress-bar]")||window.livewireScriptConfig&&window.livewireScriptConfig.progressBar===!1)}k("effect",({effects:e})=>{if(!e.redirect)return;let t=e.redirect;Ta(e,t,()=>{window.location.href=t})});function ka(e,t,r){let n=t.parentElement?t.parentElement.tagName.toLowerCase():"div",i=document.createElement(n);i.innerHTML=r;let o;try{o=z(t.parentElement)}catch{}o&&(i.__livewire=o);let s=i.firstElementChild;s.__livewire=e,R("morph",{el:t,toEl:s,component:e}),S.morph(t,s,{updating:(a,l,u,d)=>{if(!Je(a)){if(R("morph.updating",{el:a,toEl:l,component:e,skip:d,childrenOnly:u}),a.__livewire_ignore===!0||(a.__livewire_ignore_self===!0&&u(),Oa(a)&&a.getAttribute("wire:id")!==e.id))return d();Oa(a)&&(l.__livewire=e)}},updated:a=>{Je(a)||R("morph.updated",{el:a,component:e})},removing:(a,l)=>{Je(a)||R("morph.removing",{el:a,component:e,skip:l})},removed:a=>{Je(a)||R("morph.removed",{el:a,component:e})},adding:a=>{R("morph.adding",{el:a,component:e})},added:a=>{if(Je(a))return;let l=z(a).id;R("morph.added",{el:a})},key:a=>{if(!Je(a))return a.hasAttribute("wire:key")?a.getAttribute("wire:key"):a.hasAttribute("wire:id")?a.getAttribute("wire:id"):a.id},lookahead:!1})}function Je(e){return typeof e.hasAttribute!="function"}function Oa(e){return e.hasAttribute("wire:id")}k("effect",({component:e,effects:t})=>{let r=t.html;!r||queueMicrotask(()=>{queueMicrotask(()=>{ka(e,e.el,r)})})});k("effect",({component:e,effects:t})=>{Xf(e,t.listeners||[]),Yf(e,t.dispatches||[])});function Xf(e,t){t.forEach(r=>{let n=i=>{i.__livewire&&i.__livewire.receivedBy.push(e),e.$wire.call("__dispatch",r,i.detail||{})};window.addEventListener(r,n),e.addCleanup(()=>window.removeEventListener(r,n)),e.el.addEventListener(r,i=>{!i.__livewire||i.bubbles||(i.__livewire&&i.__livewire.receivedBy.push(e.id),e.$wire.call("__dispatch",r,i.detail||{}))})})}function Yf(e,t){t.forEach(({name:r,params:n={},self:i=!1,to:o})=>{i?ie(e,r,n):o?je(o,r,n):Ht(e,r,n)})}k("morph.added",({el:e})=>{e.__addedByMorph=!0});M("transition",({el:e,directive:t,component:r,cleanup:n})=>{let i=S.reactive({state:!e.__addedByMorph});S.bind(e,{[t.rawName.replace("wire:","x-")]:"","x-show"(){return i.state}}),e.__addedByMorph&&setTimeout(()=>i.state=!0);let o=[];o.push(k("morph.removing",({el:s,skip:a})=>{a(),s.addEventListener("transitionend",()=>{s.remove()}),i.state=!1,o.push(k("morph",({component:l})=>{l===r&&(s.remove(),o.forEach(u=>u()))}))})),n(()=>o.forEach(s=>s()))});var Qf=new Ie;function La(e,t){Qf.each(e,r=>{r.callback(),r.callback=()=>{}}),t()}k("directive.init",({el:e,directive:t,cleanup:r,component:n})=>{if(["snapshot","effects","model","init","loading","poll","ignore","id","data","key","target","dirty"].includes(t.value))return;let i=t.rawName.replace("wire:","x-on:");t.value==="submit"&&!t.modifiers.includes("prevent")&&(i=i+".prevent");let o=S.bind(e,{[i](s){let a=()=>{La(n,()=>{S.evaluate(e,"$wire."+t.expression,{scope:{$event:s}})})};e.__livewire_confirm?e.__livewire_confirm(()=>{a()},()=>{s.stopImmediatePropagation()}):a()}});r(o)});S.addInitSelector(()=>"[wire\\:navigate]");S.addInitSelector(()=>"[wire\\:navigate\\.hover]");S.interceptInit(S.skipDuringClone(e=>{e.hasAttribute("wire:navigate")?S.bind(e,{["x-navigate"]:!0}):e.hasAttribute("wire:navigate.hover")&&S.bind(e,{["x-navigate.hover"]:!0})}));document.addEventListener("alpine:navigating",()=>{Livewire.all().forEach(e=>{e.inscribeSnapshotAndEffectsOnElement()})});M("confirm",({el:e,directive:t})=>{let r=t.expression,n=t.modifiers.includes("prompt");r=r.replaceAll("\\n",`
`),r===""&&(r="Are you sure?"),e.__livewire_confirm=(i,o)=>{if(n){let[s,a]=r.split("|");a?prompt(s)===a?i():o():console.warn("Livewire: Must provide expectation with wire:confirm.prompt")}else confirm(r)?i():o()}});function re(e,t,r,n=null){if(r=t.modifiers.includes("remove")?!r:r,t.modifiers.includes("class")){let i=t.expression.split(" ").filter(String);r?e.classList.add(...i):e.classList.remove(...i)}else if(t.modifiers.includes("attr"))r?e.setAttribute(t.expression,!0):e.removeAttribute(t.expression);else{let i=n??window.getComputedStyle(e,null).getPropertyValue("display"),o=["inline","block","table","flex","grid","inline-flex"].filter(s=>t.modifiers.includes(s))[0]||"inline-block";o=t.modifiers.includes("remove")?i:o,e.style.display=r?o:"none"}}var qn=new Set,Wn=new Set;window.addEventListener("offline",()=>qn.forEach(e=>e()));window.addEventListener("online",()=>Wn.forEach(e=>e()));M("offline",({el:e,directive:t,cleanup:r})=>{let n=()=>re(e,t,!0),i=()=>re(e,t,!1);qn.add(n),Wn.add(i),r(()=>{qn.delete(n),Wn.delete(i)})});M("loading",({el:e,directive:t,component:r})=>{let{targets:n,inverted:i}=nd(e),[o,s]=Zf(t);ed(r,n,i,[()=>o(()=>re(e,t,!0)),()=>s(()=>re(e,t,!1))]),td(r,n,[()=>o(()=>re(e,t,!0)),()=>s(()=>re(e,t,!1))])});function Zf(e){if(!e.modifiers.includes("delay")||e.modifiers.includes("none"))return[o=>o(),o=>o()];let t=200,r={shortest:50,shorter:100,short:150,default:200,long:300,longer:500,longest:1e3};Object.keys(r).some(o=>{if(e.modifiers.includes(o))return t=r[o],!0});let n,i=!1;return[o=>{n=setTimeout(()=>{o(),i=!0},t)},async o=>{i?(await o(),i=!1):clearTimeout(n)}]}function ed(e,t,r,[n,i]){k("commit",({component:o,commit:s,respond:a})=>{o===e&&(t.length>0&&rd(s,t)===r||(n(),a(()=>{i()})))})}function td(e,t,[r,n]){let i=o=>{let{id:s,property:a}=o.detail;return s!==e.id||t.length>0&&!t.map(l=>l.target).includes(a)};window.addEventListener("livewire-upload-start",o=>{i(o)||r()}),window.addEventListener("livewire-upload-finish",o=>{i(o)||n()}),window.addEventListener("livewire-upload-error",o=>{i(o)||n()})}function rd(e,t){let{updates:r,calls:n}=e;return t.some(({target:i,params:o})=>{if(o)return n.some(({method:a,params:l})=>i===a&&o===Na(JSON.stringify(l)));if(Object.keys(r).some(a=>a.includes(".")&&a.split(".")[0]===i?!0:a===i)||n.map(a=>a.method).includes(i))return!0})}function nd(e){let t=pe(e),r=[],n=!1;if(t.has("target")){let i=t.get("target"),o=i.expression;i.modifiers.includes("except")&&(n=!0),o.includes("(")&&o.includes(")")?r.push({target:i.method,params:Na(JSON.stringify(i.params))}):o.includes(",")?o.split(",").map(s=>s.trim()).forEach(s=>{r.push({target:s})}):r.push({target:o})}else{let i=["init","dirty","offline","target","loading","poll","ignore","key","id"];t.all().filter(o=>!i.includes(o.value)).map(o=>o.expression.split("(")[0]).forEach(o=>r.push({target:o}))}return{targets:r,inverted:n}}function Na(e){return btoa(encodeURIComponent(e))}M("stream",({el:e,directive:t,cleanup:r})=>{let{expression:n,modifiers:i}=t,o=k("stream",({name:s,content:a,replace:l})=>{s===n&&(i.includes("replace")||l?e.innerHTML=a:e.innerHTML=e.innerHTML+a)});r(o)});k("request",({respond:e})=>{e(t=>{let r=t.response;!r.headers.has("X-Livewire-Stream")||(t.response={ok:!0,redirected:!1,status:200,async text(){let n=await id(r,i=>{R("stream",i)});return wt(n)&&(this.ok=!1),n}})})});async function id(e,t){let r=e.body.getReader(),n="";for(;;){let{done:i,value:o}=await r.read(),a=new TextDecoder().decode(o),[l,u]=od(n+a);if(l.forEach(d=>{t(d)}),n=u,i)return n}}function od(e){let t=/({"stream":true.*?"endStream":true})/g,r=e.match(t),n=[];if(r)for(let o=0;o<r.length;o++)n.push(JSON.parse(r[o]).body);let i=e.replace(t,"");return[n,i]}M("ignore",({el:e,directive:t})=>{t.modifiers.includes("self")?e.__livewire_ignore_self=!0:e.__livewire_ignore=!0});var Ra=new Ie;k("commit",({component:e,respond:t})=>{t(()=>{setTimeout(()=>{Ra.each(e,r=>r(!1))})})});M("dirty",({el:e,directive:t,component:r})=>{let n=sd(e),i=Alpine.reactive({state:!1}),o=!1,s=e.style.display,a=l=>{re(e,t,l,s),o=l};Ra.add(r,a),Alpine.effect(()=>{let l=!1;if(n.length===0)l=JSON.stringify(r.canonical)!==JSON.stringify(r.reactive);else for(let u=0;u<n.length&&!l;u++){let d=n[u];l=JSON.stringify(W(r.canonical,d))!==JSON.stringify(W(r.reactive,d))}o!==l&&a(l),o=l})});function sd(e){let t=pe(e),r=[];return t.has("model")&&r.push(t.get("model").expression),t.has("target")&&(r=r.concat(t.get("target").expression.split(",").map(n=>n.trim()))),r}M("model",({el:e,directive:t,component:r,cleanup:n})=>{let{expression:i,modifiers:o}=t;if(!i)return console.warn("Livewire: [wire:model] is missing a value.",e);if(Pa(r,i))return console.warn('Livewire: [wire:model="'+i+'"] property does not exist on component: ['+r.name+"]",e);if(e.type&&e.type.toLowerCase()==="file")return Zn(e,i,r,n);let s=o.includes("live"),a=o.includes("lazy")||o.includes("change"),l=o.includes("blur"),u=o.includes("debounce"),d=i.startsWith("$parent")?()=>r.$wire.$parent.$commit():()=>r.$wire.$commit(),p=ld(e)&&!u&&s?ud(d,150):d;S.bind(e,{["@change"](){a&&d()},["@blur"](){l&&d()},["x-model"+ad(o)](){return{get(){return W(r.$wire,i)},set(c){ve(r.$wire,i,c),s&&!a&&!l&&p()}}}})});function ad(e){return e=e.filter(t=>!["lazy","defer"].includes(t)),e.length===0?"":"."+e.join(".")}function ld(e){return["INPUT","TEXTAREA"].includes(e.tagName.toUpperCase())&&!["checkbox","radio"].includes(e.type)}function Pa(e,t){if(t.startsWith("$parent")){let n=z(e.el.parentElement,!1);return n?Pa(n,t.split("$parent.")[1]):!0}let r=t.split(".")[0];return!Object.keys(e.canonical).includes(r)}function ud(e,t){var r;return function(){var n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}M("init",({el:e,directive:t})=>{let r=t.expression??"$refresh";S.evaluate(e,`$wire.${r}`)});M("poll",({el:e,directive:t})=>{let r=yd(t.modifiers,2e3),{start:n,pauseWhile:i,throttleWhile:o,stopWhen:s}=fd(()=>{cd(e,t)},r);n(),o(()=>hd()&&gd(t)),i(()=>vd(t)&&bd(e)),i(()=>md(e)),i(()=>pd()),s(()=>wd(e))});function cd(e,t){S.evaluate(e,t.expression?"$wire."+t.expression:"$wire.$commit()")}function fd(e,t=2e3){let r=[],n=[],i=[];return{start(){let o=dd(t,()=>{if(i.some(s=>s()))return o();r.some(s=>s())||n.some(s=>s())&&Math.random()<.95||e()})},pauseWhile(o){r.push(o)},throttleWhile(o){n.push(o)},stopWhen(o){i.push(o)}}}var Re=[];function dd(e,t){if(!Re[e]){let r={timer:setInterval(()=>r.callbacks.forEach(n=>n()),e),callbacks:new Set};Re[e]=r}return Re[e].callbacks.add(t),()=>{Re[e].callbacks.delete(t),Re[e].callbacks.size===0&&(clearInterval(Re[e].timer),delete Re[e])}}var Kn=!1;window.addEventListener("offline",()=>Kn=!0);window.addEventListener("online",()=>Kn=!1);function pd(){return Kn}var Ia=!1;document.addEventListener("visibilitychange",()=>{Ia=document.hidden},!1);function hd(){return Ia}function md(e){return!pe(e).has("poll")}function gd(e){return!e.modifiers.includes("keep-alive")}function vd(e){return e.modifiers.includes("visible")}function bd(e){let t=e.getBoundingClientRect();return!(t.top<(window.innerHeight||document.documentElement.clientHeight)&&t.left<(window.innerWidth||document.documentElement.clientWidth)&&t.bottom>0&&t.right>0)}function wd(e){return e.isConnected===!1}function yd(e,t){let r,n=e.find(o=>o.match(/([0-9]+)ms/)),i=e.find(o=>o.match(/([0-9]+)s/));return n?r=Number(n.replace("ms","")):i&&(r=Number(i.replace("s",""))*1e3),r||t}var Ma={directive:M,dispatchTo:je,start:_a,first:Vo,find:zo,getByName:Ko,all:Jo,hook:k,trigger:R,triggerAsync:$t,dispatch:Go,on:Xo,get navigate(){return S.navigate}};window.Livewire&&console.warn("Detected multiple instances of Livewire running");window.Alpine&&console.warn("Detected multiple instances of Alpine running");window.Livewire=Ma;window.Alpine=S;window.livewireScriptConfig===void 0&&document.addEventListener("DOMContentLoaded",()=>{Ma.start()});})();
  "sourcesContent": ["/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress\n * @license MIT */\n\n;(function(root, factory) {\n\n  if (typeof define === 'function' && define.amd) {\n    define(factory);\n  } else if (typeof exports === 'object') {\n    module.exports = factory();\n  } else {\n    root.NProgress = factory();\n  }\n\n})(this, function() {\n  var NProgress = {};\n\n  NProgress.version = '0.2.0';\n\n  var Settings = NProgress.settings = {\n    minimum: 0.08,\n    easing: 'ease',\n    positionUsing: '',\n    speed: 200,\n    trickle: true,\n    trickleRate: 0.02,\n    trickleSpeed: 800,\n    showSpinner: true,\n    barSelector: '[role=\"bar\"]',\n    spinnerSelector: '[role=\"spinner\"]',\n    parent: 'body',\n    template: '<div class=\"bar\" role=\"bar\"><div class=\"peg\"></div></div><div class=\"spinner\" role=\"spinner\"><div class=\"spinner-icon\"></div></div>'\n  };\n\n  /**\n   * Updates configuration.\n   *\n   *     NProgress.configure({\n   *       minimum: 0.1\n   *     });\n   */\n  NProgress.configure = function(options) {\n    var key, value;\n    for (key in options) {\n      value = options[key];\n      if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value;\n    }\n\n    return this;\n  };\n\n  /**\n   * Last number.\n   */\n\n  NProgress.status = null;\n\n  /**\n   * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`.\n   *\n   *     NProgress.set(0.4);\n   *     NProgress.set(1.0);\n   */\n\n  NProgress.set = function(n) {\n    var started = NProgress.isStarted();\n\n    n = clamp(n, Settings.minimum, 1);\n    NProgress.status = (n === 1 ? null : n);\n\n    var progress = NProgress.render(!started),\n        bar      = progress.querySelector(Settings.barSelector),\n        speed    = Settings.speed,\n        ease     = Settings.easing;\n\n    progress.offsetWidth; /* Repaint */\n\n    queue(function(next) {\n      // Set positionUsing if it hasn't already been set\n      if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS();\n\n      // Add transition\n      css(bar, barPositionCSS(n, speed, ease));\n\n      if (n === 1) {\n        // Fade out\n        css(progress, { \n          transition: 'none', \n          opacity: 1 \n        });\n        progress.offsetWidth; /* Repaint */\n\n        setTimeout(function() {\n          css(progress, { \n            transition: 'all ' + speed + 'ms linear', \n            opacity: 0 \n          });\n          setTimeout(function() {\n            NProgress.remove();\n            next();\n          }, speed);\n        }, speed);\n      } else {\n        setTimeout(next, speed);\n      }\n    });\n\n    return this;\n  };\n\n  NProgress.isStarted = function() {\n    return typeof NProgress.status === 'number';\n  };\n\n  /**\n   * Shows the progress bar.\n   * This is the same as setting the status to 0%, except that it doesn't go backwards.\n   *\n   *     NProgress.start();\n   *\n   */\n  NProgress.start = function() {\n    if (!NProgress.status) NProgress.set(0);\n\n    var work = function() {\n      setTimeout(function() {\n        if (!NProgress.status) return;\n        NProgress.trickle();\n        work();\n      }, Settings.trickleSpeed);\n    };\n\n    if (Settings.trickle) work();\n\n    return this;\n  };\n\n  /**\n   * Hides the progress bar.\n   * This is the *sort of* the same as setting the status to 100%, with the\n   * difference being `done()` makes some placebo effect of some realistic motion.\n   *\n   *     NProgress.done();\n   *\n   * If `true` is passed, it will show the progress bar even if its hidden.\n   *\n   *     NProgress.done(true);\n   */\n\n  NProgress.done = function(force) {\n    if (!force && !NProgress.status) return this;\n\n    return NProgress.inc(0.3 + 0.5 * Math.random()).set(1);\n  };\n\n  /**\n   * Increments by a random amount.\n   */\n\n  NProgress.inc = function(amount) {\n    var n = NProgress.status;\n\n    if (!n) {\n      return NProgress.start();\n    } else {\n      if (typeof amount !== 'number') {\n        amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95);\n      }\n\n      n = clamp(n + amount, 0, 0.994);\n      return NProgress.set(n);\n    }\n  };\n\n  NProgress.trickle = function() {\n    return NProgress.inc(Math.random() * Settings.trickleRate);\n  };\n\n  /**\n   * Waits for all supplied jQuery promises and\n   * increases the progress as the promises resolve.\n   *\n   * @param $promise jQUery Promise\n   */\n  (function() {\n    var initial = 0, current = 0;\n\n    NProgress.promise = function($promise) {\n      if (!$promise || $promise.state() === \"resolved\") {\n        return this;\n      }\n\n      if (current === 0) {\n        NProgress.start();\n      }\n\n      initial++;\n      current++;\n\n      $promise.always(function() {\n        current--;\n        if (current === 0) {\n            initial = 0;\n            NProgress.done();\n        } else {\n            NProgress.set((initial - current) / initial);\n        }\n      });\n\n      return this;\n    };\n\n  })();\n\n  /**\n   * (Internal) renders the progress bar markup based on the `template`\n   * setting.\n   */\n\n  NProgress.render = function(fromStart) {\n    if (NProgress.isRendered()) return document.getElementById('nprogress');\n\n    addClass(document.documentElement, 'nprogress-busy');\n    \n    var progress = document.createElement('div');\n    progress.id = 'nprogress';\n    progress.innerHTML = Settings.template;\n\n    var bar      = progress.querySelector(Settings.barSelector),\n        perc     = fromStart ? '-100' : toBarPerc(NProgress.status || 0),\n        parent   = document.querySelector(Settings.parent),\n        spinner;\n    \n    css(bar, {\n      transition: 'all 0 linear',\n      transform: 'translate3d(' + perc + '%,0,0)'\n    });\n\n    if (!Settings.showSpinner) {\n      spinner = progress.querySelector(Settings.spinnerSelector);\n      spinner && removeElement(spinner);\n    }\n\n    if (parent != document.body) {\n      addClass(parent, 'nprogress-custom-parent');\n    }\n\n    parent.appendChild(progress);\n    return progress;\n  };\n\n  /**\n   * Removes the element. Opposite of render().\n   */\n\n  NProgress.remove = function() {\n    removeClass(document.documentElement, 'nprogress-busy');\n    removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent');\n    var progress = document.getElementById('nprogress');\n    progress && removeElement(progress);\n  };\n\n  /**\n   * Checks if the progress bar is rendered.\n   */\n\n  NProgress.isRendered = function() {\n    return !!document.getElementById('nprogress');\n  };\n\n  /**\n   * Determine which positioning CSS rule to use.\n   */\n\n  NProgress.getPositioningCSS = function() {\n    // Sniff on document.body.style\n    var bodyStyle = document.body.style;\n\n    // Sniff prefixes\n    var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' :\n                       ('MozTransform' in bodyStyle) ? 'Moz' :\n                       ('msTransform' in bodyStyle) ? 'ms' :\n                       ('OTransform' in bodyStyle) ? 'O' : '';\n\n    if (vendorPrefix + 'Perspective' in bodyStyle) {\n      // Modern browsers with 3D support, e.g. Webkit, IE10\n      return 'translate3d';\n    } else if (vendorPrefix + 'Transform' in bodyStyle) {\n      // Browsers without 3D support, e.g. IE9\n      return 'translate';\n    } else {\n      // Browsers without translate() support, e.g. IE7-8\n      return 'margin';\n    }\n  };\n\n  /**\n   * Helpers\n   */\n\n  function clamp(n, min, max) {\n    if (n < min) return min;\n    if (n > max) return max;\n    return n;\n  }\n\n  /**\n   * (Internal) converts a percentage (`0..1`) to a bar translateX\n   * percentage (`-100%..0%`).\n   */\n\n  function toBarPerc(n) {\n    return (-1 + n) * 100;\n  }\n\n\n  /**\n   * (Internal) returns the correct CSS for changing the bar's\n   * position given an n percentage, and speed and ease from Settings\n   */\n\n  function barPositionCSS(n, speed, ease) {\n    var barCSS;\n\n    if (Settings.positionUsing === 'translate3d') {\n      barCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' };\n    } else if (Settings.positionUsing === 'translate') {\n      barCSS = { transform: 'translate('+toBarPerc(n)+'%,0)' };\n    } else {\n      barCSS = { 'margin-left': toBarPerc(n)+'%' };\n    }\n\n    barCSS.transition = 'all '+speed+'ms '+ease;\n\n    return barCSS;\n  }\n\n  /**\n   * (Internal) Queues a function to be executed.\n   */\n\n  var queue = (function() {\n    var pending = [];\n    \n    function next() {\n      var fn = pending.shift();\n      if (fn) {\n        fn(next);\n      }\n    }\n\n    return function(fn) {\n      pending.push(fn);\n      if (pending.length == 1) next();\n    };\n  })();\n\n  /**\n   * (Internal) Applies css properties to an element, similar to the jQuery \n   * css method.\n   *\n   * While this helper does assist with vendor prefixed property names, it \n   * does not perform any manipulation of values prior to setting styles.\n   */\n\n  var css = (function() {\n    var cssPrefixes = [ 'Webkit', 'O', 'Moz', 'ms' ],\n        cssProps    = {};\n\n    function camelCase(string) {\n      return string.replace(/^-ms-/, 'ms-').replace(/-([\\da-z])/gi, function(match, letter) {\n        return letter.toUpperCase();\n      });\n    }\n\n    function getVendorProp(name) {\n      var style = document.body.style;\n      if (name in style) return name;\n\n      var i = cssPrefixes.length,\n          capName = name.charAt(0).toUpperCase() + name.slice(1),\n          vendorName;\n      while (i--) {\n        vendorName = cssPrefixes[i] + capName;\n        if (vendorName in style) return vendorName;\n      }\n\n      return name;\n    }\n\n    function getStyleProp(name) {\n      name = camelCase(name);\n      return cssProps[name] || (cssProps[name] = getVendorProp(name));\n    }\n\n    function applyCss(element, prop, value) {\n      prop = getStyleProp(prop);\n      element.style[prop] = value;\n    }\n\n    return function(element, properties) {\n      var args = arguments,\n          prop, \n          value;\n\n      if (args.length == 2) {\n        for (prop in properties) {\n          value = properties[prop];\n          if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value);\n        }\n      } else {\n        applyCss(element, args[1], args[2]);\n      }\n    }\n  })();\n\n  /**\n   * (Internal) Determines if an element or space separated list of class names contains a class name.\n   */\n\n  function hasClass(element, name) {\n    var list = typeof element == 'string' ? element : classList(element);\n    return list.indexOf(' ' + name + ' ') >= 0;\n  }\n\n  /**\n   * (Internal) Adds a class to an element.\n   */\n\n  function addClass(element, name) {\n    var oldList = classList(element),\n        newList = oldList + name;\n\n    if (hasClass(oldList, name)) return; \n\n    // Trim the opening space.\n    element.className = newList.substring(1);\n  }\n\n  /**\n   * (Internal) Removes a class from an element.\n   */\n\n  function removeClass(element, name) {\n    var oldList = classList(element),\n        newList;\n\n    if (!hasClass(element, name)) return;\n\n    // Replace the class name.\n    newList = oldList.replace(' ' + name + ' ', ' ');\n\n    // Trim the opening and closing spaces.\n    element.className = newList.substring(1, newList.length - 1);\n  }\n\n  /**\n   * (Internal) Gets a space separated list of the class names on the element. \n   * The list is wrapped with a single space on each end to facilitate finding \n   * matches within the list.\n   */\n\n  function classList(element) {\n    return (' ' + (element.className || '') + ' ').replace(/\\s+/gi, ' ');\n  }\n\n  /**\n   * (Internal) Removes an element from the DOM.\n   */\n\n  function removeElement(element) {\n    element && element.parentNode && element.parentNode.removeChild(element);\n  }\n\n  return NProgress;\n});\n\n", "\r\nexport class Bag {\r\n    constructor() { this.arrays = {} }\r\n\r\n    add(key, value) {\r\n        if (! this.arrays[key]) this.arrays[key] = []\r\n        this.arrays[key].push(value)\r\n    }\r\n\r\n    get(key) { return this.arrays[key] || [] }\r\n\r\n    each(key, callback) { return this.get(key).forEach(callback) }\r\n}\r\n\r\nexport class WeakBag {\r\n    constructor() { this.arrays = new WeakMap }\r\n\r\n    add(key, value) {\r\n        if (! this.arrays.has(key) ) this.arrays.set(key, [])\r\n        this.arrays.get(key).push(value)\r\n    }\r\n\r\n    get(key) { return this.arrays.has(key) ? this.arrays.get(key) : [] }\r\n\r\n    each(key, callback) { return this.get(key).forEach(callback) }\r\n}\r\n\r\nexport function dispatch(el, name, detail = {}, bubbles = true) {\r\n    el.dispatchEvent(\r\n        new CustomEvent(name, {\r\n            detail,\r\n            bubbles,\r\n            // Allows events to pass the shadow DOM barrier.\r\n            composed: true,\r\n            cancelable: true,\r\n        })\r\n    )\r\n}\r\n\r\n/**\r\n * Type-checking in JS is weird and annoying, these are better.\r\n */\r\nexport function isObjecty(subject) { return (typeof subject === 'object' && subject !== null) }\r\nexport function isObject(subject) { return (isObjecty(subject) && ! isArray(subject)) }\r\nexport function isArray(subject) { return Array.isArray(subject) }\r\nexport function isFunction(subject) { return typeof subject === 'function' }\r\nexport function isPrimitive(subject) { return typeof subject !== 'object' || subject === null }\r\n\r\n/**\r\n * Clone an object deeply to wipe out any shared references.\r\n */\r\nexport function deepClone(obj) { return JSON.parse(JSON.stringify(obj)) }\r\n\r\n/**\r\n * Determine if two objects take the exact same shape.\r\n */\r\nexport function deeplyEqual(a, b) { return JSON.stringify(a) === JSON.stringify(b) }\r\n\r\n/**\r\n * An easy way to loop through arrays and objects.\r\n */\r\nexport function each(subject, callback) {\r\n    Object.entries(subject).forEach(([key, value]) => callback(key, value))\r\n}\r\n\r\n/**\r\n * Get a property from an object with support for dot-notation.\r\n */\r\nexport function dataGet(object, key) {\r\n    if (key === '') return object\r\n\r\n    return key.split('.').reduce((carry, i) => {\r\n        if (carry === undefined) return undefined\r\n\r\n        return carry[i]\r\n    }, object)\r\n}\r\n\r\n/**\r\n * Set a property on an object with support for dot-notation.\r\n */\r\nexport function dataSet(object, key, value) {\r\n    let segments = key.split('.')\r\n\r\n    if (segments.length === 1) {\r\n        return object[key] = value\r\n    }\r\n\r\n    let firstSegment = segments.shift()\r\n    let restOfSegments = segments.join('.')\r\n\r\n    if (object[firstSegment] === undefined) {\r\n        object[firstSegment] = {}\r\n    }\r\n\r\n    dataSet(object[firstSegment], restOfSegments, value)\r\n}\r\n\r\n/**\r\n * Create a flat, dot-notated diff of two obejcts.\r\n */\r\nexport function diff(left, right, diffs = {}, path = '') {\r\n    // Are they the same?\r\n    if (left === right) return diffs\r\n\r\n    // Are they COMPLETELY different?\r\n    if (typeof left !== typeof right || (isObject(left) && isArray(right)) || (isArray(left) && isObject(right))) {\r\n        diffs[path] = right;\r\n        return diffs\r\n    }\r\n\r\n    // Is the right or left side a primitive value (a leaf node)?\r\n    if (isPrimitive(left) || isPrimitive(right)) {\r\n        diffs[path] = right\r\n        return diffs\r\n    }\r\n\r\n    // We now know both are objects...\r\n    let leftKeys = Object.keys(left)\r\n\r\n    // Recursively diff the object's properties...\r\n    Object.entries(right).forEach(([key, value]) => {\r\n        diffs = {...diffs, ...diff(left[key], right[key], diffs, path === '' ? key : `${path}.${key}`)}\r\n        leftKeys = leftKeys.filter(i => i !== key)\r\n    })\r\n\r\n    // Mark any items for removal...\r\n    leftKeys.forEach(key => {\r\n        diffs[`${path}.${key}`] = '__rm__'\r\n    })\r\n\r\n    return diffs\r\n}\r\n\r\n/**\r\n * The data that's passed between the browser and server is in the form of\r\n * nested tuples consisting of the schema: [rawValue, metadata]. In this\r\n * method we're extracting the plain JS object of only the raw values.\r\n */\r\nexport function extractData(payload) {\r\n    let value = isSynthetic(payload) ? payload[0] : payload\r\n    let meta = isSynthetic(payload) ? payload[1] : undefined\r\n\r\n    if (isObjecty(value)) {\r\n        Object.entries(value).forEach(([key, iValue]) => {\r\n            value[key] = extractData(iValue)\r\n        })\r\n    }\r\n\r\n    return value\r\n}\r\n\r\n/**\r\n * Determine if the variable passed in is a node in a nested metadata\r\n * tuple tree. (Meaning it takes the form of: [rawData, metadata])\r\n */\r\nexport function isSynthetic(subject) {\r\n    return Array.isArray(subject)\r\n        && subject.length === 2\r\n        && typeof subject[1] === 'object'\r\n        && Object.keys(subject[1]).includes('s')\r\n}\r\n\r\n/**\r\n * Post requests in Laravel require a csrf token to be passed\r\n * along with the payload. Here, we'll try and locate one.\r\n */\r\nexport function getCsrfToken() {\r\n    // Purposely not caching. Fetching it fresh every time ensures we're\r\n    // not depending on a stale session's CSRF token...\r\n\r\n    if (document.querySelector('meta[name=\"csrf-token\"]')) {\r\n        return document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content')\r\n    }\r\n\r\n    if (document.querySelector('[data-csrf]')) {\r\n        return document.querySelector('[data-csrf]').getAttribute('data-csrf')\r\n    }\r\n\r\n    if (window.livewireScriptConfig['csrf'] ?? false) {\r\n        return window.livewireScriptConfig['csrf']\r\n    }\r\n\r\n    throw 'Livewire: No CSRF token detected'\r\n}\r\n\r\nlet nonce;\r\n\r\nexport function getNonce() {\r\n    if (nonce) return nonce\r\n\r\n\r\n    if (window.livewireScriptConfig && (window.livewireScriptConfig['nonce'] ?? false)) {\r\n        nonce = window.livewireScriptConfig['nonce']\r\n\r\n        return nonce\r\n    }\r\n\r\n    const elWithNonce = document.querySelector('style[data-livewire-style][nonce]')\r\n\r\n    if (elWithNonce) {\r\n        nonce = elWithNonce.nonce\r\n\r\n        return nonce\r\n    }\r\n\r\n    return null\r\n}\r\n\r\n/**\r\n * Livewire's update URI. This is configurable via Livewire::setUpdateRoute(...)\r\n */\r\nexport function getUpdateUri() {\r\n    return document.querySelector('[data-update-uri]')?.getAttribute('data-update-uri') ?? window.livewireScriptConfig['uri'] ?? null\r\n}\r\n\r\nexport function contentIsFromDump(content) {\r\n    return !! content.match(/<script>Sfdump\\(\".+\"\\)<\\/script>/)\r\n}\r\n\r\nexport function splitDumpFromContent(content) {\r\n    let dump = content.match(/.*<script>Sfdump\\(\".+\"\\)<\\/script>/s)\r\n\r\n    return [dump, content.replace(dump, '')]\r\n}\r\n", "import { getCsrfToken } from '@/utils';\r\n\r\nlet uploadManagers = new WeakMap\r\n\r\nfunction getUploadManager(component) {\r\n    if (! uploadManagers.has(component)) {\r\n        let manager = new UploadManager(component)\r\n\r\n        uploadManagers.set(component, manager)\r\n\r\n        manager.registerListeners()\r\n    }\r\n\r\n    return uploadManagers.get(component)\r\n}\r\n\r\nexport function handleFileUpload(el, property, component, cleanup) {\r\n    let manager = getUploadManager(component)\r\n\r\n    let start = () => el.dispatchEvent(new CustomEvent('livewire-upload-start', { bubbles: true, detail: { id: component.id, property} }))\r\n    let finish = () => el.dispatchEvent(new CustomEvent('livewire-upload-finish', { bubbles: true, detail: { id: component.id, property} }))\r\n    let error = () => el.dispatchEvent(new CustomEvent('livewire-upload-error', { bubbles: true, detail: { id: component.id, property} }))\r\n    let cancel = () => el.dispatchEvent(new CustomEvent('livewire-upload-cancel', { bubbles: true, detail: { id: component.id, property} }))\r\n    let progress = (progressEvent) => {\r\n        var percentCompleted = Math.round( (progressEvent.loaded * 100) / progressEvent.total )\r\n\r\n        el.dispatchEvent(\r\n            new CustomEvent('livewire-upload-progress', {\r\n                bubbles: true, detail: { progress: percentCompleted }\r\n            })\r\n        )\r\n    }\r\n\r\n    let eventHandler = e => {\r\n        if (e.target.files.length === 0) return\r\n\r\n        start()\r\n\r\n        if (e.target.multiple) {\r\n            manager.uploadMultiple(property, e.target.files, finish, error, progress, cancel)\r\n        } else {\r\n            manager.upload(property, e.target.files[0], finish, error, progress, cancel)\r\n        }\r\n    }\r\n\r\n    el.addEventListener('change', eventHandler)\r\n\r\n    // There's a bug in browsers where selecting a file, removing it,\r\n    // then re-adding it doesn't fire the change event. This fixes it.\r\n    // Reference: https://stackoverflow.com/questions/12030686/html-input-file-selection-event-not-firing-upon-selecting-the-same-file\r\n    let clearFileInputValue = () => { el.value = null }\r\n    el.addEventListener('click', clearFileInputValue)\r\n\r\n    // Clear the input if the uploaded is cancelled...\r\n    el.addEventListener('livewire-upload-cancel', clearFileInputValue)\r\n\r\n    cleanup(() => {\r\n        el.removeEventListener('change', eventHandler)\r\n        el.removeEventListener('click', clearFileInputValue)\r\n    })\r\n}\r\n\r\nclass UploadManager {\r\n    constructor(component) {\r\n        this.component = component\r\n        this.uploadBag = new MessageBag\r\n        this.removeBag = new MessageBag\r\n    }\r\n\r\n    registerListeners() {\r\n        this.component.$wire.$on('upload:generatedSignedUrl', ({ name, url }) => {\r\n            // We have to add reduntant \"setLoading\" calls because the dom-patch\r\n            // from the first response will clear the setUploadLoading call\r\n            // from the first upload call.\r\n            setUploadLoading(this.component, name)\r\n\r\n            this.handleSignedUrl(name, url)\r\n        })\r\n\r\n        this.component.$wire.$on('upload:generatedSignedUrlForS3', ({ name, payload }) => {\r\n            setUploadLoading(this.component, name)\r\n\r\n            this.handleS3PreSignedUrl(name, payload)\r\n        })\r\n\r\n        this.component.$wire.$on('upload:finished', ({ name, tmpFilenames }) => this.markUploadFinished(name, tmpFilenames))\r\n        this.component.$wire.$on('upload:errored', ({ name }) => this.markUploadErrored(name))\r\n        this.component.$wire.$on('upload:removed', ({ name, tmpFilename }) => this.removeBag.shift(name).finishCallback(tmpFilename))\r\n    }\r\n\r\n    upload(name, file, finishCallback, errorCallback, progressCallback, cancelledCallback) {\r\n        this.setUpload(name, {\r\n            files: [file],\r\n            multiple: false,\r\n            finishCallback,\r\n            errorCallback,\r\n            progressCallback,\r\n            cancelledCallback,\r\n        })\r\n    }\r\n\r\n    uploadMultiple(name, files, finishCallback, errorCallback, progressCallback, cancelledCallback) {\r\n        this.setUpload(name, {\r\n            files: Array.from(files),\r\n            multiple: true,\r\n            finishCallback,\r\n            errorCallback,\r\n            progressCallback,\r\n            cancelledCallback,\r\n        })\r\n    }\r\n\r\n    removeUpload(name, tmpFilename, finishCallback) {\r\n        this.removeBag.push(name, {\r\n            tmpFilename, finishCallback\r\n        })\r\n\r\n        this.component.$wire.call('_removeUpload', name, tmpFilename);\r\n    }\r\n\r\n    setUpload(name, uploadObject) {\r\n        this.uploadBag.add(name, uploadObject)\r\n\r\n        if (this.uploadBag.get(name).length === 1) {\r\n            this.startUpload(name, uploadObject)\r\n        }\r\n    }\r\n\r\n    handleSignedUrl(name, url) {\r\n        let formData = new FormData()\r\n        Array.from(this.uploadBag.first(name).files).forEach(file => formData.append('files[]', file, file.name))\r\n\r\n        let headers = {\r\n            'Accept': 'application/json',\r\n        }\r\n\r\n        let csrfToken = getCsrfToken()\r\n\r\n        if (csrfToken) headers['X-CSRF-TOKEN'] = csrfToken\r\n\r\n        this.makeRequest(name, formData, 'post', url, headers, response => {\r\n            return response.paths\r\n        })\r\n    }\r\n\r\n    handleS3PreSignedUrl(name, payload) {\r\n        let formData = this.uploadBag.first(name).files[0]\r\n\r\n        let headers = payload.headers\r\n        if ('Host' in headers) delete headers.Host\r\n        let url = payload.url\r\n\r\n        this.makeRequest(name, formData, 'put', url, headers, response => {\r\n            return [payload.path]\r\n        })\r\n    }\r\n\r\n    makeRequest(name, formData, method, url, headers, retrievePaths) {\r\n        let request = new XMLHttpRequest()\r\n\r\n        request.open(method, url)\r\n\r\n        Object.entries(headers).forEach(([key, value]) => {\r\n            request.setRequestHeader(key, value)\r\n        })\r\n\r\n        request.upload.addEventListener('progress', e => {\r\n            e.detail = {}\r\n            e.detail.progress = Math.round((e.loaded * 100) / e.total)\r\n\r\n            this.uploadBag.first(name).progressCallback(e)\r\n        })\r\n\r\n        request.addEventListener('load', () => {\r\n            if ((request.status+'')[0] === '2') {\r\n                let paths = retrievePaths(request.response && JSON.parse(request.response))\r\n\r\n                this.component.$wire.call('_finishUpload', name, paths, this.uploadBag.first(name).multiple)\r\n\r\n                return\r\n            }\r\n\r\n            let errors = null\r\n\r\n            if (request.status === 422) {\r\n                errors = request.response\r\n            }\r\n\r\n            this.component.$wire.call('_uploadErrored', name, errors, this.uploadBag.first(name).multiple)\r\n        })\r\n\r\n        this.uploadBag.first(name).request = request\r\n\r\n        request.send(formData)\r\n    }\r\n\r\n    startUpload(name, uploadObject) {\r\n        let fileInfos = uploadObject.files.map(file => {\r\n            return { name: file.name, size: file.size, type: file.type }\r\n        })\r\n\r\n        this.component.$wire.call('_startUpload', name, fileInfos, uploadObject.multiple);\r\n\r\n        setUploadLoading(this.component, name)\r\n    }\r\n\r\n    markUploadFinished(name, tmpFilenames) {\r\n        unsetUploadLoading(this.component)\r\n\r\n        let uploadObject = this.uploadBag.shift(name)\r\n        uploadObject.finishCallback(uploadObject.multiple ? tmpFilenames : tmpFilenames[0])\r\n\r\n        if (this.uploadBag.get(name).length > 0) this.startUpload(name, this.uploadBag.last(name))\r\n    }\r\n\r\n    markUploadErrored(name) {\r\n        unsetUploadLoading(this.component)\r\n\r\n        this.uploadBag.shift(name).errorCallback()\r\n\r\n        if (this.uploadBag.get(name).length > 0) this.startUpload(name, this.uploadBag.last(name))\r\n    }\r\n\r\n    cancelUpload(name, cancelledCallback = null) {\r\n        unsetUploadLoading(this.component)\r\n\r\n        let uploadItem = this.uploadBag.first(name);\r\n\r\n        if (uploadItem) {\r\n            uploadItem.request.abort();\r\n\r\n            this.uploadBag.shift(name).cancelledCallback();\r\n\r\n            if (cancelledCallback) cancelledCallback()\r\n        }\r\n    }\r\n}\r\n\r\nexport default class MessageBag {\r\n    constructor() {\r\n        this.bag = {}\r\n    }\r\n\r\n    add(name, thing) {\r\n        if (! this.bag[name]) {\r\n            this.bag[name] = []\r\n        }\r\n\r\n        this.bag[name].push(thing)\r\n    }\r\n\r\n    push(name, thing) {\r\n        this.add(name, thing)\r\n    }\r\n\r\n    first(name) {\r\n        if (! this.bag[name]) return null\r\n\r\n        return this.bag[name][0]\r\n    }\r\n\r\n    last(name) {\r\n        return this.bag[name].slice(-1)[0]\r\n    }\r\n\r\n    get(name) {\r\n        return this.bag[name]\r\n    }\r\n\r\n    shift(name) {\r\n        return this.bag[name].shift()\r\n    }\r\n\r\n    call(name, ...params) {\r\n        (this.listeners[name] || []).forEach(callback => {\r\n            callback(...params)\r\n        })\r\n    }\r\n\r\n    has(name) {\r\n        return Object.keys(this.listeners).includes(name)\r\n    }\r\n}\r\n\r\nfunction setUploadLoading() {\r\n    // @todo\r\n}\r\n\r\nfunction unsetUploadLoading() {\r\n    // @todo\r\n}\r\n\r\nexport function upload(\r\n    component,\r\n    name,\r\n    file,\r\n    finishCallback = () => { },\r\n    errorCallback = () => { },\r\n    progressCallback = () => { },\r\n    cancelledCallback = () => { },\r\n) {\r\n    let uploadManager = getUploadManager(component)\r\n\r\n    uploadManager.upload(\r\n        name,\r\n        file,\r\n        finishCallback,\r\n        errorCallback,\r\n        progressCallback,\r\n        cancelledCallback,\r\n    )\r\n}\r\n\r\nexport function uploadMultiple(\r\n    component,\r\n    name,\r\n    files,\r\n    finishCallback = () => { },\r\n    errorCallback = () => { },\r\n    progressCallback = () => { },\r\n    cancelledCallback = () => { },\r\n) {\r\n    let uploadManager = getUploadManager(component)\r\n\r\n    uploadManager.uploadMultiple(\r\n        name,\r\n        files,\r\n        finishCallback,\r\n        errorCallback,\r\n        progressCallback,\r\n        cancelledCallback,\r\n    )\r\n}\r\n\r\nexport function removeUpload(\r\n    component,\r\n    name,\r\n    tmpFilename,\r\n    finishCallback = () => { },\r\n    errorCallback = () => { }\r\n) {\r\n    let uploadManager = getUploadManager(component)\r\n\r\n    uploadManager.removeUpload(\r\n        name,\r\n        tmpFilename,\r\n        finishCallback,\r\n        errorCallback\r\n    )\r\n}\r\n\r\nexport function cancelUpload(\r\n    component,\r\n    name,\r\n    cancelledCallback = () => { }\r\n) {\r\n    let uploadManager = getUploadManager(component)\r\n\r\n    uploadManager.cancelUpload(\r\n        name,\r\n        cancelledCallback\r\n    )\r\n}\r\n", "// packages/alpinejs/src/scheduler.js\nvar flushPending = false;\nvar flushing = false;\nvar queue = [];\nvar lastFlushedIndex = -1;\nfunction scheduler(callback) {\n  queueJob(callback);\n}\nfunction queueJob(job) {\n  if (!queue.includes(job))\n    queue.push(job);\n  queueFlush();\n}\nfunction dequeueJob(job) {\n  let index = queue.indexOf(job);\n  if (index !== -1 && index > lastFlushedIndex)\n    queue.splice(index, 1);\n}\nfunction queueFlush() {\n  if (!flushing && !flushPending) {\n    flushPending = true;\n    queueMicrotask(flushJobs);\n  }\n}\nfunction flushJobs() {\n  flushPending = false;\n  flushing = true;\n  for (let i = 0; i < queue.length; i++) {\n    queue[i]();\n    lastFlushedIndex = i;\n  }\n  queue.length = 0;\n  lastFlushedIndex = -1;\n  flushing = false;\n}\n\n// packages/alpinejs/src/reactivity.js\nvar reactive;\nvar effect;\nvar release;\nvar raw;\nvar shouldSchedule = true;\nfunction disableEffectScheduling(callback) {\n  shouldSchedule = false;\n  callback();\n  shouldSchedule = true;\n}\nfunction setReactivityEngine(engine) {\n  reactive = engine.reactive;\n  release = engine.release;\n  effect = (callback) => engine.effect(callback, { scheduler: (task) => {\n    if (shouldSchedule) {\n      scheduler(task);\n    } else {\n      task();\n    }\n  } });\n  raw = engine.raw;\n}\nfunction overrideEffect(override) {\n  effect = override;\n}\nfunction elementBoundEffect(el) {\n  let cleanup2 = () => {\n  };\n  let wrappedEffect = (callback) => {\n    let effectReference = effect(callback);\n    if (!el._x_effects) {\n      el._x_effects = /* @__PURE__ */ new Set();\n      el._x_runEffects = () => {\n        el._x_effects.forEach((i) => i());\n      };\n    }\n    el._x_effects.add(effectReference);\n    cleanup2 = () => {\n      if (effectReference === void 0)\n        return;\n      el._x_effects.delete(effectReference);\n      release(effectReference);\n    };\n    return effectReference;\n  };\n  return [wrappedEffect, () => {\n    cleanup2();\n  }];\n}\nfunction watch(getter, callback) {\n  let firstTime = true;\n  let oldValue;\n  let effectReference = effect(() => {\n    let value = getter();\n    JSON.stringify(value);\n    if (!firstTime) {\n      queueMicrotask(() => {\n        callback(value, oldValue);\n        oldValue = value;\n      });\n    } else {\n      oldValue = value;\n    }\n    firstTime = false;\n  });\n  return () => release(effectReference);\n}\n\n// packages/alpinejs/src/utils/dispatch.js\nfunction dispatch(el, name, detail = {}) {\n  el.dispatchEvent(\n    new CustomEvent(name, {\n      detail,\n      bubbles: true,\n      // Allows events to pass the shadow DOM barrier.\n      composed: true,\n      cancelable: true\n    })\n  );\n}\n\n// packages/alpinejs/src/utils/walk.js\nfunction walk(el, callback) {\n  if (typeof ShadowRoot === \"function\" && el instanceof ShadowRoot) {\n    Array.from(el.children).forEach((el2) => walk(el2, callback));\n    return;\n  }\n  let skip = false;\n  callback(el, () => skip = true);\n  if (skip)\n    return;\n  let node = el.firstElementChild;\n  while (node) {\n    walk(node, callback, false);\n    node = node.nextElementSibling;\n  }\n}\n\n// packages/alpinejs/src/utils/warn.js\nfunction warn(message, ...args) {\n  console.warn(`Alpine Warning: ${message}`, ...args);\n}\n\n// packages/alpinejs/src/lifecycle.js\nvar started = false;\nfunction start() {\n  if (started)\n    warn(\"Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems.\");\n  started = true;\n  if (!document.body)\n    warn(\"Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?\");\n  dispatch(document, \"alpine:init\");\n  dispatch(document, \"alpine:initializing\");\n  startObservingMutations();\n  onElAdded((el) => initTree(el, walk));\n  onElRemoved((el) => destroyTree(el));\n  onAttributesAdded((el, attrs) => {\n    directives(el, attrs).forEach((handle) => handle());\n  });\n  let outNestedComponents = (el) => !closestRoot(el.parentElement, true);\n  Array.from(document.querySelectorAll(allSelectors().join(\",\"))).filter(outNestedComponents).forEach((el) => {\n    initTree(el);\n  });\n  dispatch(document, \"alpine:initialized\");\n}\nvar rootSelectorCallbacks = [];\nvar initSelectorCallbacks = [];\nfunction rootSelectors() {\n  return rootSelectorCallbacks.map((fn) => fn());\n}\nfunction allSelectors() {\n  return rootSelectorCallbacks.concat(initSelectorCallbacks).map((fn) => fn());\n}\nfunction addRootSelector(selectorCallback) {\n  rootSelectorCallbacks.push(selectorCallback);\n}\nfunction addInitSelector(selectorCallback) {\n  initSelectorCallbacks.push(selectorCallback);\n}\nfunction closestRoot(el, includeInitSelectors = false) {\n  return findClosest(el, (element) => {\n    const selectors = includeInitSelectors ? allSelectors() : rootSelectors();\n    if (selectors.some((selector) => element.matches(selector)))\n      return true;\n  });\n}\nfunction findClosest(el, callback) {\n  if (!el)\n    return;\n  if (callback(el))\n    return el;\n  if (el._x_teleportBack)\n    el = el._x_teleportBack;\n  if (!el.parentElement)\n    return;\n  return findClosest(el.parentElement, callback);\n}\nfunction isRoot(el) {\n  return rootSelectors().some((selector) => el.matches(selector));\n}\nvar initInterceptors = [];\nfunction interceptInit(callback) {\n  initInterceptors.push(callback);\n}\nfunction initTree(el, walker = walk, intercept = () => {\n}) {\n  deferHandlingDirectives(() => {\n    walker(el, (el2, skip) => {\n      if (el2._x_inited) {\n        if (el2._x_ignore)\n          skip();\n        return;\n      }\n      intercept(el2, skip);\n      initInterceptors.forEach((i) => i(el2, skip));\n      directives(el2, el2.attributes).forEach((handle) => handle());\n      if (el2._x_ignore) {\n        skip();\n      } else {\n        el2._x_inited = true;\n      }\n    });\n  });\n}\nfunction destroyTree(root, walker = walk) {\n  walker(root, (el) => {\n    cleanupAttributes(el);\n    cleanupElement(el);\n    delete el._x_inited;\n  });\n}\n\n// packages/alpinejs/src/mutation.js\nvar onAttributeAddeds = [];\nvar onElRemoveds = [];\nvar onElAddeds = [];\nfunction onElAdded(callback) {\n  onElAddeds.push(callback);\n}\nfunction onElRemoved(el, callback) {\n  if (typeof callback === \"function\") {\n    if (!el._x_cleanups)\n      el._x_cleanups = [];\n    el._x_cleanups.push(callback);\n  } else {\n    callback = el;\n    onElRemoveds.push(callback);\n  }\n}\nfunction onAttributesAdded(callback) {\n  onAttributeAddeds.push(callback);\n}\nfunction onAttributeRemoved(el, name, callback) {\n  if (!el._x_attributeCleanups)\n    el._x_attributeCleanups = {};\n  if (!el._x_attributeCleanups[name])\n    el._x_attributeCleanups[name] = [];\n  el._x_attributeCleanups[name].push(callback);\n}\nfunction cleanupAttributes(el, names) {\n  if (!el._x_attributeCleanups)\n    return;\n  Object.entries(el._x_attributeCleanups).forEach(([name, value]) => {\n    if (names === void 0 || names.includes(name)) {\n      value.forEach((i) => i());\n      delete el._x_attributeCleanups[name];\n    }\n  });\n}\nfunction cleanupElement(el) {\n  if (el._x_cleanups) {\n    while (el._x_cleanups.length)\n      el._x_cleanups.pop()();\n  }\n}\nvar observer = new MutationObserver(onMutate);\nvar currentlyObserving = false;\nfunction startObservingMutations() {\n  observer.observe(document, { subtree: true, childList: true, attributes: true, attributeOldValue: true });\n  currentlyObserving = true;\n}\nfunction stopObservingMutations() {\n  flushObserver();\n  observer.disconnect();\n  currentlyObserving = false;\n}\nvar queuedMutations = [];\nfunction flushObserver() {\n  let records = observer.takeRecords();\n  queuedMutations.push(() => records.length > 0 && onMutate(records));\n  let queueLengthWhenTriggered = queuedMutations.length;\n  queueMicrotask(() => {\n    if (queuedMutations.length === queueLengthWhenTriggered) {\n      while (queuedMutations.length > 0)\n        queuedMutations.shift()();\n    }\n  });\n}\nfunction mutateDom(callback) {\n  if (!currentlyObserving)\n    return callback();\n  stopObservingMutations();\n  let result = callback();\n  startObservingMutations();\n  return result;\n}\nvar isCollecting = false;\nvar deferredMutations = [];\nfunction deferMutations() {\n  isCollecting = true;\n}\nfunction flushAndStopDeferringMutations() {\n  isCollecting = false;\n  onMutate(deferredMutations);\n  deferredMutations = [];\n}\nfunction onMutate(mutations) {\n  if (isCollecting) {\n    deferredMutations = deferredMutations.concat(mutations);\n    return;\n  }\n  let addedNodes = /* @__PURE__ */ new Set();\n  let removedNodes = /* @__PURE__ */ new Set();\n  let addedAttributes = /* @__PURE__ */ new Map();\n  let removedAttributes = /* @__PURE__ */ new Map();\n  for (let i = 0; i < mutations.length; i++) {\n    if (mutations[i].target._x_ignoreMutationObserver)\n      continue;\n    if (mutations[i].type === \"childList\") {\n      mutations[i].addedNodes.forEach((node) => node.nodeType === 1 && addedNodes.add(node));\n      mutations[i].removedNodes.forEach((node) => node.nodeType === 1 && removedNodes.add(node));\n    }\n    if (mutations[i].type === \"attributes\") {\n      let el = mutations[i].target;\n      let name = mutations[i].attributeName;\n      let oldValue = mutations[i].oldValue;\n      let add2 = () => {\n        if (!addedAttributes.has(el))\n          addedAttributes.set(el, []);\n        addedAttributes.get(el).push({ name, value: el.getAttribute(name) });\n      };\n      let remove = () => {\n        if (!removedAttributes.has(el))\n          removedAttributes.set(el, []);\n        removedAttributes.get(el).push(name);\n      };\n      if (el.hasAttribute(name) && oldValue === null) {\n        add2();\n      } else if (el.hasAttribute(name)) {\n        remove();\n        add2();\n      } else {\n        remove();\n      }\n    }\n  }\n  removedAttributes.forEach((attrs, el) => {\n    cleanupAttributes(el, attrs);\n  });\n  addedAttributes.forEach((attrs, el) => {\n    onAttributeAddeds.forEach((i) => i(el, attrs));\n  });\n  for (let node of removedNodes) {\n    if (addedNodes.has(node))\n      continue;\n    onElRemoveds.forEach((i) => i(node));\n    destroyTree(node);\n  }\n  addedNodes.forEach((node) => {\n    node._x_ignoreSelf = true;\n    node._x_ignore = true;\n  });\n  for (let node of addedNodes) {\n    if (!node.isConnected)\n      continue;\n    delete node._x_ignoreSelf;\n    delete node._x_ignore;\n    onElAddeds.forEach((i) => i(node));\n    node._x_ignore = true;\n    node._x_ignoreSelf = true;\n  }\n  addedNodes.forEach((node) => {\n    delete node._x_ignoreSelf;\n    delete node._x_ignore;\n  });\n  addedNodes = null;\n  removedNodes = null;\n  addedAttributes = null;\n  removedAttributes = null;\n}\n\n// packages/alpinejs/src/scope.js\nfunction scope(node) {\n  return mergeProxies(closestDataStack(node));\n}\nfunction addScopeToNode(node, data2, referenceNode) {\n  node._x_dataStack = [data2, ...closestDataStack(referenceNode || node)];\n  return () => {\n    node._x_dataStack = node._x_dataStack.filter((i) => i !== data2);\n  };\n}\nfunction closestDataStack(node) {\n  if (node._x_dataStack)\n    return node._x_dataStack;\n  if (typeof ShadowRoot === \"function\" && node instanceof ShadowRoot) {\n    return closestDataStack(node.host);\n  }\n  if (!node.parentNode) {\n    return [];\n  }\n  return closestDataStack(node.parentNode);\n}\nfunction mergeProxies(objects) {\n  return new Proxy({ objects }, mergeProxyTrap);\n}\nvar mergeProxyTrap = {\n  ownKeys({ objects }) {\n    return Array.from(\n      new Set(objects.flatMap((i) => Object.keys(i)))\n    );\n  },\n  has({ objects }, name) {\n    if (name == Symbol.unscopables)\n      return false;\n    return objects.some(\n      (obj) => Reflect.has(obj, name)\n    );\n  },\n  get({ objects }, name, thisProxy) {\n    if (name == \"toJSON\")\n      return collapseProxies;\n    return Reflect.get(\n      objects.find(\n        (obj) => Reflect.has(obj, name)\n      ) || {},\n      name,\n      thisProxy\n    );\n  },\n  set({ objects }, name, value, thisProxy) {\n    const target = objects.find(\n      (obj) => Reflect.has(obj, name)\n    ) || objects[objects.length - 1];\n    const descriptor = Object.getOwnPropertyDescriptor(target, name);\n    if (descriptor?.set && descriptor?.get)\n      return Reflect.set(target, name, value, thisProxy);\n    return Reflect.set(target, name, value);\n  }\n};\nfunction collapseProxies() {\n  let keys = Reflect.ownKeys(this);\n  return keys.reduce((acc, key) => {\n    acc[key] = Reflect.get(this, key);\n    return acc;\n  }, {});\n}\n\n// packages/alpinejs/src/interceptor.js\nfunction initInterceptors2(data2) {\n  let isObject2 = (val) => typeof val === \"object\" && !Array.isArray(val) && val !== null;\n  let recurse = (obj, basePath = \"\") => {\n    Object.entries(Object.getOwnPropertyDescriptors(obj)).forEach(([key, { value, enumerable }]) => {\n      if (enumerable === false || value === void 0)\n        return;\n      if (typeof value === \"object\" && value !== null && value.__v_skip)\n        return;\n      let path = basePath === \"\" ? key : `${basePath}.${key}`;\n      if (typeof value === \"object\" && value !== null && value._x_interceptor) {\n        obj[key] = value.initialize(data2, path, key);\n      } else {\n        if (isObject2(value) && value !== obj && !(value instanceof Element)) {\n          recurse(value, path);\n        }\n      }\n    });\n  };\n  return recurse(data2);\n}\nfunction interceptor(callback, mutateObj = () => {\n}) {\n  let obj = {\n    initialValue: void 0,\n    _x_interceptor: true,\n    initialize(data2, path, key) {\n      return callback(this.initialValue, () => get(data2, path), (value) => set(data2, path, value), path, key);\n    }\n  };\n  mutateObj(obj);\n  return (initialValue) => {\n    if (typeof initialValue === \"object\" && initialValue !== null && initialValue._x_interceptor) {\n      let initialize = obj.initialize.bind(obj);\n      obj.initialize = (data2, path, key) => {\n        let innerValue = initialValue.initialize(data2, path, key);\n        obj.initialValue = innerValue;\n        return initialize(data2, path, key);\n      };\n    } else {\n      obj.initialValue = initialValue;\n    }\n    return obj;\n  };\n}\nfunction get(obj, path) {\n  return path.split(\".\").reduce((carry, segment) => carry[segment], obj);\n}\nfunction set(obj, path, value) {\n  if (typeof path === \"string\")\n    path = path.split(\".\");\n  if (path.length === 1)\n    obj[path[0]] = value;\n  else if (path.length === 0)\n    throw error;\n  else {\n    if (obj[path[0]])\n      return set(obj[path[0]], path.slice(1), value);\n    else {\n      obj[path[0]] = {};\n      return set(obj[path[0]], path.slice(1), value);\n    }\n  }\n}\n\n// packages/alpinejs/src/magics.js\nvar magics = {};\nfunction magic(name, callback) {\n  magics[name] = callback;\n}\nfunction injectMagics(obj, el) {\n  Object.entries(magics).forEach(([name, callback]) => {\n    let memoizedUtilities = null;\n    function getUtilities() {\n      if (memoizedUtilities) {\n        return memoizedUtilities;\n      } else {\n        let [utilities, cleanup2] = getElementBoundUtilities(el);\n        memoizedUtilities = { interceptor, ...utilities };\n        onElRemoved(el, cleanup2);\n        return memoizedUtilities;\n      }\n    }\n    Object.defineProperty(obj, `$${name}`, {\n      get() {\n        return callback(el, getUtilities());\n      },\n      enumerable: false\n    });\n  });\n  return obj;\n}\n\n// packages/alpinejs/src/utils/error.js\nfunction tryCatch(el, expression, callback, ...args) {\n  try {\n    return callback(...args);\n  } catch (e) {\n    handleError(e, el, expression);\n  }\n}\nfunction handleError(error2, el, expression = void 0) {\n  error2 = Object.assign(\n    error2 ?? { message: \"No error message given.\" },\n    { el, expression }\n  );\n  console.warn(`Alpine Expression Error: ${error2.message}\n\n${expression ? 'Expression: \"' + expression + '\"\\n\\n' : \"\"}`, el);\n  setTimeout(() => {\n    throw error2;\n  }, 0);\n}\n\n// packages/alpinejs/src/evaluator.js\nvar shouldAutoEvaluateFunctions = true;\nfunction dontAutoEvaluateFunctions(callback) {\n  let cache = shouldAutoEvaluateFunctions;\n  shouldAutoEvaluateFunctions = false;\n  let result = callback();\n  shouldAutoEvaluateFunctions = cache;\n  return result;\n}\nfunction evaluate(el, expression, extras = {}) {\n  let result;\n  evaluateLater(el, expression)((value) => result = value, extras);\n  return result;\n}\nfunction evaluateLater(...args) {\n  return theEvaluatorFunction(...args);\n}\nvar theEvaluatorFunction = normalEvaluator;\nfunction setEvaluator(newEvaluator) {\n  theEvaluatorFunction = newEvaluator;\n}\nfunction normalEvaluator(el, expression) {\n  let overriddenMagics = {};\n  injectMagics(overriddenMagics, el);\n  let dataStack = [overriddenMagics, ...closestDataStack(el)];\n  let evaluator = typeof expression === \"function\" ? generateEvaluatorFromFunction(dataStack, expression) : generateEvaluatorFromString(dataStack, expression, el);\n  return tryCatch.bind(null, el, expression, evaluator);\n}\nfunction generateEvaluatorFromFunction(dataStack, func) {\n  return (receiver = () => {\n  }, { scope: scope2 = {}, params = [] } = {}) => {\n    let result = func.apply(mergeProxies([scope2, ...dataStack]), params);\n    runIfTypeOfFunction(receiver, result);\n  };\n}\nvar evaluatorMemo = {};\nfunction generateFunctionFromString(expression, el) {\n  if (evaluatorMemo[expression]) {\n    return evaluatorMemo[expression];\n  }\n  let AsyncFunction = Object.getPrototypeOf(async function() {\n  }).constructor;\n  let rightSideSafeExpression = /^[\\n\\s]*if.*\\(.*\\)/.test(expression.trim()) || /^(let|const)\\s/.test(expression.trim()) ? `(async()=>{ ${expression} })()` : expression;\n  const safeAsyncFunction = () => {\n    try {\n      let func2 = new AsyncFunction(\n        [\"__self\", \"scope\"],\n        `with (scope) { __self.result = ${rightSideSafeExpression} }; __self.finished = true; return __self.result;`\n      );\n      Object.defineProperty(func2, \"name\", {\n        value: `[Alpine] ${expression}`\n      });\n      return func2;\n    } catch (error2) {\n      handleError(error2, el, expression);\n      return Promise.resolve();\n    }\n  };\n  let func = safeAsyncFunction();\n  evaluatorMemo[expression] = func;\n  return func;\n}\nfunction generateEvaluatorFromString(dataStack, expression, el) {\n  let func = generateFunctionFromString(expression, el);\n  return (receiver = () => {\n  }, { scope: scope2 = {}, params = [] } = {}) => {\n    func.result = void 0;\n    func.finished = false;\n    let completeScope = mergeProxies([scope2, ...dataStack]);\n    if (typeof func === \"function\") {\n      let promise = func(func, completeScope).catch((error2) => handleError(error2, el, expression));\n      if (func.finished) {\n        runIfTypeOfFunction(receiver, func.result, completeScope, params, el);\n        func.result = void 0;\n      } else {\n        promise.then((result) => {\n          runIfTypeOfFunction(receiver, result, completeScope, params, el);\n        }).catch((error2) => handleError(error2, el, expression)).finally(() => func.result = void 0);\n      }\n    }\n  };\n}\nfunction runIfTypeOfFunction(receiver, value, scope2, params, el) {\n  if (shouldAutoEvaluateFunctions && typeof value === \"function\") {\n    let result = value.apply(scope2, params);\n    if (result instanceof Promise) {\n      result.then((i) => runIfTypeOfFunction(receiver, i, scope2, params)).catch((error2) => handleError(error2, el, value));\n    } else {\n      receiver(result);\n    }\n  } else if (typeof value === \"object\" && value instanceof Promise) {\n    value.then((i) => receiver(i));\n  } else {\n    receiver(value);\n  }\n}\n\n// packages/alpinejs/src/directives.js\nvar prefixAsString = \"x-\";\nfunction prefix(subject = \"\") {\n  return prefixAsString + subject;\n}\nfunction setPrefix(newPrefix) {\n  prefixAsString = newPrefix;\n}\nvar directiveHandlers = {};\nfunction directive(name, callback) {\n  directiveHandlers[name] = callback;\n  return {\n    before(directive2) {\n      if (!directiveHandlers[directive2]) {\n        console.warn(String.raw`Cannot find directive \\`${directive2}\\`. \\`${name}\\` will use the default order of execution`);\n        return;\n      }\n      const pos = directiveOrder.indexOf(directive2);\n      directiveOrder.splice(pos >= 0 ? pos : directiveOrder.indexOf(\"DEFAULT\"), 0, name);\n    }\n  };\n}\nfunction directives(el, attributes, originalAttributeOverride) {\n  attributes = Array.from(attributes);\n  if (el._x_virtualDirectives) {\n    let vAttributes = Object.entries(el._x_virtualDirectives).map(([name, value]) => ({ name, value }));\n    let staticAttributes = attributesOnly(vAttributes);\n    vAttributes = vAttributes.map((attribute) => {\n      if (staticAttributes.find((attr) => attr.name === attribute.name)) {\n        return {\n          name: `x-bind:${attribute.name}`,\n          value: `\"${attribute.value}\"`\n        };\n      }\n      return attribute;\n    });\n    attributes = attributes.concat(vAttributes);\n  }\n  let transformedAttributeMap = {};\n  let directives2 = attributes.map(toTransformedAttributes((newName, oldName) => transformedAttributeMap[newName] = oldName)).filter(outNonAlpineAttributes).map(toParsedDirectives(transformedAttributeMap, originalAttributeOverride)).sort(byPriority);\n  return directives2.map((directive2) => {\n    return getDirectiveHandler(el, directive2);\n  });\n}\nfunction attributesOnly(attributes) {\n  return Array.from(attributes).map(toTransformedAttributes()).filter((attr) => !outNonAlpineAttributes(attr));\n}\nvar isDeferringHandlers = false;\nvar directiveHandlerStacks = /* @__PURE__ */ new Map();\nvar currentHandlerStackKey = Symbol();\nfunction deferHandlingDirectives(callback) {\n  isDeferringHandlers = true;\n  let key = Symbol();\n  currentHandlerStackKey = key;\n  directiveHandlerStacks.set(key, []);\n  let flushHandlers = () => {\n    while (directiveHandlerStacks.get(key).length)\n      directiveHandlerStacks.get(key).shift()();\n    directiveHandlerStacks.delete(key);\n  };\n  let stopDeferring = () => {\n    isDeferringHandlers = false;\n    flushHandlers();\n  };\n  callback(flushHandlers);\n  stopDeferring();\n}\nfunction getElementBoundUtilities(el) {\n  let cleanups = [];\n  let cleanup2 = (callback) => cleanups.push(callback);\n  let [effect3, cleanupEffect] = elementBoundEffect(el);\n  cleanups.push(cleanupEffect);\n  let utilities = {\n    Alpine: alpine_default,\n    effect: effect3,\n    cleanup: cleanup2,\n    evaluateLater: evaluateLater.bind(evaluateLater, el),\n    evaluate: evaluate.bind(evaluate, el)\n  };\n  let doCleanup = () => cleanups.forEach((i) => i());\n  return [utilities, doCleanup];\n}\nfunction getDirectiveHandler(el, directive2) {\n  let noop = () => {\n  };\n  let handler4 = directiveHandlers[directive2.type] || noop;\n  let [utilities, cleanup2] = getElementBoundUtilities(el);\n  onAttributeRemoved(el, directive2.original, cleanup2);\n  let fullHandler = () => {\n    if (el._x_ignore || el._x_ignoreSelf)\n      return;\n    handler4.inline && handler4.inline(el, directive2, utilities);\n    handler4 = handler4.bind(handler4, el, directive2, utilities);\n    isDeferringHandlers ? directiveHandlerStacks.get(currentHandlerStackKey).push(handler4) : handler4();\n  };\n  fullHandler.runCleanups = cleanup2;\n  return fullHandler;\n}\nvar startingWith = (subject, replacement) => ({ name, value }) => {\n  if (name.startsWith(subject))\n    name = name.replace(subject, replacement);\n  return { name, value };\n};\nvar into = (i) => i;\nfunction toTransformedAttributes(callback = () => {\n}) {\n  return ({ name, value }) => {\n    let { name: newName, value: newValue } = attributeTransformers.reduce((carry, transform) => {\n      return transform(carry);\n    }, { name, value });\n    if (newName !== name)\n      callback(newName, name);\n    return { name: newName, value: newValue };\n  };\n}\nvar attributeTransformers = [];\nfunction mapAttributes(callback) {\n  attributeTransformers.push(callback);\n}\nfunction outNonAlpineAttributes({ name }) {\n  return alpineAttributeRegex().test(name);\n}\nvar alpineAttributeRegex = () => new RegExp(`^${prefixAsString}([^:^.]+)\\\\b`);\nfunction toParsedDirectives(transformedAttributeMap, originalAttributeOverride) {\n  return ({ name, value }) => {\n    let typeMatch = name.match(alpineAttributeRegex());\n    let valueMatch = name.match(/:([a-zA-Z0-9\\-_:]+)/);\n    let modifiers = name.match(/\\.[^.\\]]+(?=[^\\]]*$)/g) || [];\n    let original = originalAttributeOverride || transformedAttributeMap[name] || name;\n    return {\n      type: typeMatch ? typeMatch[1] : null,\n      value: valueMatch ? valueMatch[1] : null,\n      modifiers: modifiers.map((i) => i.replace(\".\", \"\")),\n      expression: value,\n      original\n    };\n  };\n}\nvar DEFAULT = \"DEFAULT\";\nvar directiveOrder = [\n  \"ignore\",\n  \"ref\",\n  \"data\",\n  \"id\",\n  \"anchor\",\n  \"bind\",\n  \"init\",\n  \"for\",\n  \"model\",\n  \"modelable\",\n  \"transition\",\n  \"show\",\n  \"if\",\n  DEFAULT,\n  \"teleport\"\n];\nfunction byPriority(a, b) {\n  let typeA = directiveOrder.indexOf(a.type) === -1 ? DEFAULT : a.type;\n  let typeB = directiveOrder.indexOf(b.type) === -1 ? DEFAULT : b.type;\n  return directiveOrder.indexOf(typeA) - directiveOrder.indexOf(typeB);\n}\n\n// packages/alpinejs/src/nextTick.js\nvar tickStack = [];\nvar isHolding = false;\nfunction nextTick(callback = () => {\n}) {\n  queueMicrotask(() => {\n    isHolding || setTimeout(() => {\n      releaseNextTicks();\n    });\n  });\n  return new Promise((res) => {\n    tickStack.push(() => {\n      callback();\n      res();\n    });\n  });\n}\nfunction releaseNextTicks() {\n  isHolding = false;\n  while (tickStack.length)\n    tickStack.shift()();\n}\nfunction holdNextTicks() {\n  isHolding = true;\n}\n\n// packages/alpinejs/src/utils/classes.js\nfunction setClasses(el, value) {\n  if (Array.isArray(value)) {\n    return setClassesFromString(el, value.join(\" \"));\n  } else if (typeof value === \"object\" && value !== null) {\n    return setClassesFromObject(el, value);\n  } else if (typeof value === \"function\") {\n    return setClasses(el, value());\n  }\n  return setClassesFromString(el, value);\n}\nfunction setClassesFromString(el, classString) {\n  let split = (classString2) => classString2.split(\" \").filter(Boolean);\n  let missingClasses = (classString2) => classString2.split(\" \").filter((i) => !el.classList.contains(i)).filter(Boolean);\n  let addClassesAndReturnUndo = (classes) => {\n    el.classList.add(...classes);\n    return () => {\n      el.classList.remove(...classes);\n    };\n  };\n  classString = classString === true ? classString = \"\" : classString || \"\";\n  return addClassesAndReturnUndo(missingClasses(classString));\n}\nfunction setClassesFromObject(el, classObject) {\n  let split = (classString) => classString.split(\" \").filter(Boolean);\n  let forAdd = Object.entries(classObject).flatMap(([classString, bool]) => bool ? split(classString) : false).filter(Boolean);\n  let forRemove = Object.entries(classObject).flatMap(([classString, bool]) => !bool ? split(classString) : false).filter(Boolean);\n  let added = [];\n  let removed = [];\n  forRemove.forEach((i) => {\n    if (el.classList.contains(i)) {\n      el.classList.remove(i);\n      removed.push(i);\n    }\n  });\n  forAdd.forEach((i) => {\n    if (!el.classList.contains(i)) {\n      el.classList.add(i);\n      added.push(i);\n    }\n  });\n  return () => {\n    removed.forEach((i) => el.classList.add(i));\n    added.forEach((i) => el.classList.remove(i));\n  };\n}\n\n// packages/alpinejs/src/utils/styles.js\nfunction setStyles(el, value) {\n  if (typeof value === \"object\" && value !== null) {\n    return setStylesFromObject(el, value);\n  }\n  return setStylesFromString(el, value);\n}\nfunction setStylesFromObject(el, value) {\n  let previousStyles = {};\n  Object.entries(value).forEach(([key, value2]) => {\n    previousStyles[key] = el.style[key];\n    if (!key.startsWith(\"--\")) {\n      key = kebabCase(key);\n    }\n    el.style.setProperty(key, value2);\n  });\n  setTimeout(() => {\n    if (el.style.length === 0) {\n      el.removeAttribute(\"style\");\n    }\n  });\n  return () => {\n    setStyles(el, previousStyles);\n  };\n}\nfunction setStylesFromString(el, value) {\n  let cache = el.getAttribute(\"style\", value);\n  el.setAttribute(\"style\", value);\n  return () => {\n    el.setAttribute(\"style\", cache || \"\");\n  };\n}\nfunction kebabCase(subject) {\n  return subject.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n}\n\n// packages/alpinejs/src/utils/once.js\nfunction once(callback, fallback = () => {\n}) {\n  let called = false;\n  return function() {\n    if (!called) {\n      called = true;\n      callback.apply(this, arguments);\n    } else {\n      fallback.apply(this, arguments);\n    }\n  };\n}\n\n// packages/alpinejs/src/directives/x-transition.js\ndirective(\"transition\", (el, { value, modifiers, expression }, { evaluate: evaluate2 }) => {\n  if (typeof expression === \"function\")\n    expression = evaluate2(expression);\n  if (expression === false)\n    return;\n  if (!expression || typeof expression === \"boolean\") {\n    registerTransitionsFromHelper(el, modifiers, value);\n  } else {\n    registerTransitionsFromClassString(el, expression, value);\n  }\n});\nfunction registerTransitionsFromClassString(el, classString, stage) {\n  registerTransitionObject(el, setClasses, \"\");\n  let directiveStorageMap = {\n    \"enter\": (classes) => {\n      el._x_transition.enter.during = classes;\n    },\n    \"enter-start\": (classes) => {\n      el._x_transition.enter.start = classes;\n    },\n    \"enter-end\": (classes) => {\n      el._x_transition.enter.end = classes;\n    },\n    \"leave\": (classes) => {\n      el._x_transition.leave.during = classes;\n    },\n    \"leave-start\": (classes) => {\n      el._x_transition.leave.start = classes;\n    },\n    \"leave-end\": (classes) => {\n      el._x_transition.leave.end = classes;\n    }\n  };\n  directiveStorageMap[stage](classString);\n}\nfunction registerTransitionsFromHelper(el, modifiers, stage) {\n  registerTransitionObject(el, setStyles);\n  let doesntSpecify = !modifiers.includes(\"in\") && !modifiers.includes(\"out\") && !stage;\n  let transitioningIn = doesntSpecify || modifiers.includes(\"in\") || [\"enter\"].includes(stage);\n  let transitioningOut = doesntSpecify || modifiers.includes(\"out\") || [\"leave\"].includes(stage);\n  if (modifiers.includes(\"in\") && !doesntSpecify) {\n    modifiers = modifiers.filter((i, index) => index < modifiers.indexOf(\"out\"));\n  }\n  if (modifiers.includes(\"out\") && !doesntSpecify) {\n    modifiers = modifiers.filter((i, index) => index > modifiers.indexOf(\"out\"));\n  }\n  let wantsAll = !modifiers.includes(\"opacity\") && !modifiers.includes(\"scale\");\n  let wantsOpacity = wantsAll || modifiers.includes(\"opacity\");\n  let wantsScale = wantsAll || modifiers.includes(\"scale\");\n  let opacityValue = wantsOpacity ? 0 : 1;\n  let scaleValue = wantsScale ? modifierValue(modifiers, \"scale\", 95) / 100 : 1;\n  let delay = modifierValue(modifiers, \"delay\", 0) / 1e3;\n  let origin = modifierValue(modifiers, \"origin\", \"center\");\n  let property = \"opacity, transform\";\n  let durationIn = modifierValue(modifiers, \"duration\", 150) / 1e3;\n  let durationOut = modifierValue(modifiers, \"duration\", 75) / 1e3;\n  let easing = `cubic-bezier(0.4, 0.0, 0.2, 1)`;\n  if (transitioningIn) {\n    el._x_transition.enter.during = {\n      transformOrigin: origin,\n      transitionDelay: `${delay}s`,\n      transitionProperty: property,\n      transitionDuration: `${durationIn}s`,\n      transitionTimingFunction: easing\n    };\n    el._x_transition.enter.start = {\n      opacity: opacityValue,\n      transform: `scale(${scaleValue})`\n    };\n    el._x_transition.enter.end = {\n      opacity: 1,\n      transform: `scale(1)`\n    };\n  }\n  if (transitioningOut) {\n    el._x_transition.leave.during = {\n      transformOrigin: origin,\n      transitionDelay: `${delay}s`,\n      transitionProperty: property,\n      transitionDuration: `${durationOut}s`,\n      transitionTimingFunction: easing\n    };\n    el._x_transition.leave.start = {\n      opacity: 1,\n      transform: `scale(1)`\n    };\n    el._x_transition.leave.end = {\n      opacity: opacityValue,\n      transform: `scale(${scaleValue})`\n    };\n  }\n}\nfunction registerTransitionObject(el, setFunction, defaultValue = {}) {\n  if (!el._x_transition)\n    el._x_transition = {\n      enter: { during: defaultValue, start: defaultValue, end: defaultValue },\n      leave: { during: defaultValue, start: defaultValue, end: defaultValue },\n      in(before = () => {\n      }, after = () => {\n      }) {\n        transition(el, setFunction, {\n          during: this.enter.during,\n          start: this.enter.start,\n          end: this.enter.end\n        }, before, after);\n      },\n      out(before = () => {\n      }, after = () => {\n      }) {\n        transition(el, setFunction, {\n          during: this.leave.during,\n          start: this.leave.start,\n          end: this.leave.end\n        }, before, after);\n      }\n    };\n}\nwindow.Element.prototype._x_toggleAndCascadeWithTransitions = function(el, value, show, hide) {\n  const nextTick2 = document.visibilityState === \"visible\" ? requestAnimationFrame : setTimeout;\n  let clickAwayCompatibleShow = () => nextTick2(show);\n  if (value) {\n    if (el._x_transition && (el._x_transition.enter || el._x_transition.leave)) {\n      el._x_transition.enter && (Object.entries(el._x_transition.enter.during).length || Object.entries(el._x_transition.enter.start).length || Object.entries(el._x_transition.enter.end).length) ? el._x_transition.in(show) : clickAwayCompatibleShow();\n    } else {\n      el._x_transition ? el._x_transition.in(show) : clickAwayCompatibleShow();\n    }\n    return;\n  }\n  el._x_hidePromise = el._x_transition ? new Promise((resolve, reject) => {\n    el._x_transition.out(() => {\n    }, () => resolve(hide));\n    el._x_transitioning && el._x_transitioning.beforeCancel(() => reject({ isFromCancelledTransition: true }));\n  }) : Promise.resolve(hide);\n  queueMicrotask(() => {\n    let closest = closestHide(el);\n    if (closest) {\n      if (!closest._x_hideChildren)\n        closest._x_hideChildren = [];\n      closest._x_hideChildren.push(el);\n    } else {\n      nextTick2(() => {\n        let hideAfterChildren = (el2) => {\n          let carry = Promise.all([\n            el2._x_hidePromise,\n            ...(el2._x_hideChildren || []).map(hideAfterChildren)\n          ]).then(([i]) => i());\n          delete el2._x_hidePromise;\n          delete el2._x_hideChildren;\n          return carry;\n        };\n        hideAfterChildren(el).catch((e) => {\n          if (!e.isFromCancelledTransition)\n            throw e;\n        });\n      });\n    }\n  });\n};\nfunction closestHide(el) {\n  let parent = el.parentNode;\n  if (!parent)\n    return;\n  return parent._x_hidePromise ? parent : closestHide(parent);\n}\nfunction transition(el, setFunction, { during, start: start2, end } = {}, before = () => {\n}, after = () => {\n}) {\n  if (el._x_transitioning)\n    el._x_transitioning.cancel();\n  if (Object.keys(during).length === 0 && Object.keys(start2).length === 0 && Object.keys(end).length === 0) {\n    before();\n    after();\n    return;\n  }\n  let undoStart, undoDuring, undoEnd;\n  performTransition(el, {\n    start() {\n      undoStart = setFunction(el, start2);\n    },\n    during() {\n      undoDuring = setFunction(el, during);\n    },\n    before,\n    end() {\n      undoStart();\n      undoEnd = setFunction(el, end);\n    },\n    after,\n    cleanup() {\n      undoDuring();\n      undoEnd();\n    }\n  });\n}\nfunction performTransition(el, stages) {\n  let interrupted, reachedBefore, reachedEnd;\n  let finish = once(() => {\n    mutateDom(() => {\n      interrupted = true;\n      if (!reachedBefore)\n        stages.before();\n      if (!reachedEnd) {\n        stages.end();\n        releaseNextTicks();\n      }\n      stages.after();\n      if (el.isConnected)\n        stages.cleanup();\n      delete el._x_transitioning;\n    });\n  });\n  el._x_transitioning = {\n    beforeCancels: [],\n    beforeCancel(callback) {\n      this.beforeCancels.push(callback);\n    },\n    cancel: once(function() {\n      while (this.beforeCancels.length) {\n        this.beforeCancels.shift()();\n      }\n      ;\n      finish();\n    }),\n    finish\n  };\n  mutateDom(() => {\n    stages.start();\n    stages.during();\n  });\n  holdNextTicks();\n  requestAnimationFrame(() => {\n    if (interrupted)\n      return;\n    let duration = Number(getComputedStyle(el).transitionDuration.replace(/,.*/, \"\").replace(\"s\", \"\")) * 1e3;\n    let delay = Number(getComputedStyle(el).transitionDelay.replace(/,.*/, \"\").replace(\"s\", \"\")) * 1e3;\n    if (duration === 0)\n      duration = Number(getComputedStyle(el).animationDuration.replace(\"s\", \"\")) * 1e3;\n    mutateDom(() => {\n      stages.before();\n    });\n    reachedBefore = true;\n    requestAnimationFrame(() => {\n      if (interrupted)\n        return;\n      mutateDom(() => {\n        stages.end();\n      });\n      releaseNextTicks();\n      setTimeout(el._x_transitioning.finish, duration + delay);\n      reachedEnd = true;\n    });\n  });\n}\nfunction modifierValue(modifiers, key, fallback) {\n  if (modifiers.indexOf(key) === -1)\n    return fallback;\n  const rawValue = modifiers[modifiers.indexOf(key) + 1];\n  if (!rawValue)\n    return fallback;\n  if (key === \"scale\") {\n    if (isNaN(rawValue))\n      return fallback;\n  }\n  if (key === \"duration\" || key === \"delay\") {\n    let match = rawValue.match(/([0-9]+)ms/);\n    if (match)\n      return match[1];\n  }\n  if (key === \"origin\") {\n    if ([\"top\", \"right\", \"left\", \"center\", \"bottom\"].includes(modifiers[modifiers.indexOf(key) + 2])) {\n      return [rawValue, modifiers[modifiers.indexOf(key) + 2]].join(\" \");\n    }\n  }\n  return rawValue;\n}\n\n// packages/alpinejs/src/clone.js\nvar isCloning = false;\nfunction skipDuringClone(callback, fallback = () => {\n}) {\n  return (...args) => isCloning ? fallback(...args) : callback(...args);\n}\nfunction onlyDuringClone(callback) {\n  return (...args) => isCloning && callback(...args);\n}\nvar interceptors = [];\nfunction interceptClone(callback) {\n  interceptors.push(callback);\n}\nfunction cloneNode(from, to) {\n  interceptors.forEach((i) => i(from, to));\n  isCloning = true;\n  dontRegisterReactiveSideEffects(() => {\n    initTree(to, (el, callback) => {\n      callback(el, () => {\n      });\n    });\n  });\n  isCloning = false;\n}\nvar isCloningLegacy = false;\nfunction clone(oldEl, newEl) {\n  if (!newEl._x_dataStack)\n    newEl._x_dataStack = oldEl._x_dataStack;\n  isCloning = true;\n  isCloningLegacy = true;\n  dontRegisterReactiveSideEffects(() => {\n    cloneTree(newEl);\n  });\n  isCloning = false;\n  isCloningLegacy = false;\n}\nfunction cloneTree(el) {\n  let hasRunThroughFirstEl = false;\n  let shallowWalker = (el2, callback) => {\n    walk(el2, (el3, skip) => {\n      if (hasRunThroughFirstEl && isRoot(el3))\n        return skip();\n      hasRunThroughFirstEl = true;\n      callback(el3, skip);\n    });\n  };\n  initTree(el, shallowWalker);\n}\nfunction dontRegisterReactiveSideEffects(callback) {\n  let cache = effect;\n  overrideEffect((callback2, el) => {\n    let storedEffect = cache(callback2);\n    release(storedEffect);\n    return () => {\n    };\n  });\n  callback();\n  overrideEffect(cache);\n}\n\n// packages/alpinejs/src/utils/bind.js\nfunction bind(el, name, value, modifiers = []) {\n  if (!el._x_bindings)\n    el._x_bindings = reactive({});\n  el._x_bindings[name] = value;\n  name = modifiers.includes(\"camel\") ? camelCase(name) : name;\n  switch (name) {\n    case \"value\":\n      bindInputValue(el, value);\n      break;\n    case \"style\":\n      bindStyles(el, value);\n      break;\n    case \"class\":\n      bindClasses(el, value);\n      break;\n    case \"selected\":\n    case \"checked\":\n      bindAttributeAndProperty(el, name, value);\n      break;\n    default:\n      bindAttribute(el, name, value);\n      break;\n  }\n}\nfunction bindInputValue(el, value) {\n  if (el.type === \"radio\") {\n    if (el.attributes.value === void 0) {\n      el.value = value;\n    }\n    if (window.fromModel) {\n      if (typeof value === \"boolean\") {\n        el.checked = safeParseBoolean(el.value) === value;\n      } else {\n        el.checked = checkedAttrLooseCompare(el.value, value);\n      }\n    }\n  } else if (el.type === \"checkbox\") {\n    if (Number.isInteger(value)) {\n      el.value = value;\n    } else if (!Array.isArray(value) && typeof value !== \"boolean\" && ![null, void 0].includes(value)) {\n      el.value = String(value);\n    } else {\n      if (Array.isArray(value)) {\n        el.checked = value.some((val) => checkedAttrLooseCompare(val, el.value));\n      } else {\n        el.checked = !!value;\n      }\n    }\n  } else if (el.tagName === \"SELECT\") {\n    updateSelect(el, value);\n  } else {\n    if (el.value === value)\n      return;\n    el.value = value === void 0 ? \"\" : value;\n  }\n}\nfunction bindClasses(el, value) {\n  if (el._x_undoAddedClasses)\n    el._x_undoAddedClasses();\n  el._x_undoAddedClasses = setClasses(el, value);\n}\nfunction bindStyles(el, value) {\n  if (el._x_undoAddedStyles)\n    el._x_undoAddedStyles();\n  el._x_undoAddedStyles = setStyles(el, value);\n}\nfunction bindAttributeAndProperty(el, name, value) {\n  bindAttribute(el, name, value);\n  setPropertyIfChanged(el, name, value);\n}\nfunction bindAttribute(el, name, value) {\n  if ([null, void 0, false].includes(value) && attributeShouldntBePreservedIfFalsy(name)) {\n    el.removeAttribute(name);\n  } else {\n    if (isBooleanAttr(name))\n      value = name;\n    setIfChanged(el, name, value);\n  }\n}\nfunction setIfChanged(el, attrName, value) {\n  if (el.getAttribute(attrName) != value) {\n    el.setAttribute(attrName, value);\n  }\n}\nfunction setPropertyIfChanged(el, propName, value) {\n  if (el[propName] !== value) {\n    el[propName] = value;\n  }\n}\nfunction updateSelect(el, value) {\n  const arrayWrappedValue = [].concat(value).map((value2) => {\n    return value2 + \"\";\n  });\n  Array.from(el.options).forEach((option) => {\n    option.selected = arrayWrappedValue.includes(option.value);\n  });\n}\nfunction camelCase(subject) {\n  return subject.toLowerCase().replace(/-(\\w)/g, (match, char) => char.toUpperCase());\n}\nfunction checkedAttrLooseCompare(valueA, valueB) {\n  return valueA == valueB;\n}\nfunction safeParseBoolean(rawValue) {\n  if ([1, \"1\", \"true\", \"on\", \"yes\", true].includes(rawValue)) {\n    return true;\n  }\n  if ([0, \"0\", \"false\", \"off\", \"no\", false].includes(rawValue)) {\n    return false;\n  }\n  return rawValue ? Boolean(rawValue) : null;\n}\nfunction isBooleanAttr(attrName) {\n  const booleanAttributes = [\n    \"disabled\",\n    \"checked\",\n    \"required\",\n    \"readonly\",\n    \"hidden\",\n    \"open\",\n    \"selected\",\n    \"autofocus\",\n    \"itemscope\",\n    \"multiple\",\n    \"novalidate\",\n    \"allowfullscreen\",\n    \"allowpaymentrequest\",\n    \"formnovalidate\",\n    \"autoplay\",\n    \"controls\",\n    \"loop\",\n    \"muted\",\n    \"playsinline\",\n    \"default\",\n    \"ismap\",\n    \"reversed\",\n    \"async\",\n    \"defer\",\n    \"nomodule\"\n  ];\n  return booleanAttributes.includes(attrName);\n}\nfunction attributeShouldntBePreservedIfFalsy(name) {\n  return ![\"aria-pressed\", \"aria-checked\", \"aria-expanded\", \"aria-selected\"].includes(name);\n}\nfunction getBinding(el, name, fallback) {\n  if (el._x_bindings && el._x_bindings[name] !== void 0)\n    return el._x_bindings[name];\n  return getAttributeBinding(el, name, fallback);\n}\nfunction extractProp(el, name, fallback, extract = true) {\n  if (el._x_bindings && el._x_bindings[name] !== void 0)\n    return el._x_bindings[name];\n  if (el._x_inlineBindings && el._x_inlineBindings[name] !== void 0) {\n    let binding = el._x_inlineBindings[name];\n    binding.extract = extract;\n    return dontAutoEvaluateFunctions(() => {\n      return evaluate(el, binding.expression);\n    });\n  }\n  return getAttributeBinding(el, name, fallback);\n}\nfunction getAttributeBinding(el, name, fallback) {\n  let attr = el.getAttribute(name);\n  if (attr === null)\n    return typeof fallback === \"function\" ? fallback() : fallback;\n  if (attr === \"\")\n    return true;\n  if (isBooleanAttr(name)) {\n    return !![name, \"true\"].includes(attr);\n  }\n  return attr;\n}\n\n// packages/alpinejs/src/utils/debounce.js\nfunction debounce(func, wait) {\n  var timeout;\n  return function() {\n    var context = this, args = arguments;\n    var later = function() {\n      timeout = null;\n      func.apply(context, args);\n    };\n    clearTimeout(timeout);\n    timeout = setTimeout(later, wait);\n  };\n}\n\n// packages/alpinejs/src/utils/throttle.js\nfunction throttle(func, limit) {\n  let inThrottle;\n  return function() {\n    let context = this, args = arguments;\n    if (!inThrottle) {\n      func.apply(context, args);\n      inThrottle = true;\n      setTimeout(() => inThrottle = false, limit);\n    }\n  };\n}\n\n// packages/alpinejs/src/entangle.js\nfunction entangle({ get: outerGet, set: outerSet }, { get: innerGet, set: innerSet }) {\n  let firstRun = true;\n  let outerHash;\n  let innerHash;\n  let reference = effect(() => {\n    let outer = outerGet();\n    let inner = innerGet();\n    if (firstRun) {\n      innerSet(cloneIfObject(outer));\n      firstRun = false;\n    } else {\n      let outerHashLatest = JSON.stringify(outer);\n      let innerHashLatest = JSON.stringify(inner);\n      if (outerHashLatest !== outerHash) {\n        innerSet(cloneIfObject(outer));\n      } else if (outerHashLatest !== innerHashLatest) {\n        outerSet(cloneIfObject(inner));\n      } else {\n      }\n    }\n    outerHash = JSON.stringify(outerGet());\n    innerHash = JSON.stringify(innerGet());\n  });\n  return () => {\n    release(reference);\n  };\n}\nfunction cloneIfObject(value) {\n  return typeof value === \"object\" ? JSON.parse(JSON.stringify(value)) : value;\n}\n\n// packages/alpinejs/src/plugin.js\nfunction plugin(callback) {\n  let callbacks = Array.isArray(callback) ? callback : [callback];\n  callbacks.forEach((i) => i(alpine_default));\n}\n\n// packages/alpinejs/src/store.js\nvar stores = {};\nvar isReactive = false;\nfunction store(name, value) {\n  if (!isReactive) {\n    stores = reactive(stores);\n    isReactive = true;\n  }\n  if (value === void 0) {\n    return stores[name];\n  }\n  stores[name] = value;\n  if (typeof value === \"object\" && value !== null && value.hasOwnProperty(\"init\") && typeof value.init === \"function\") {\n    stores[name].init();\n  }\n  initInterceptors2(stores[name]);\n}\nfunction getStores() {\n  return stores;\n}\n\n// packages/alpinejs/src/binds.js\nvar binds = {};\nfunction bind2(name, bindings) {\n  let getBindings = typeof bindings !== \"function\" ? () => bindings : bindings;\n  if (name instanceof Element) {\n    return applyBindingsObject(name, getBindings());\n  } else {\n    binds[name] = getBindings;\n  }\n  return () => {\n  };\n}\nfunction injectBindingProviders(obj) {\n  Object.entries(binds).forEach(([name, callback]) => {\n    Object.defineProperty(obj, name, {\n      get() {\n        return (...args) => {\n          return callback(...args);\n        };\n      }\n    });\n  });\n  return obj;\n}\nfunction applyBindingsObject(el, obj, original) {\n  let cleanupRunners = [];\n  while (cleanupRunners.length)\n    cleanupRunners.pop()();\n  let attributes = Object.entries(obj).map(([name, value]) => ({ name, value }));\n  let staticAttributes = attributesOnly(attributes);\n  attributes = attributes.map((attribute) => {\n    if (staticAttributes.find((attr) => attr.name === attribute.name)) {\n      return {\n        name: `x-bind:${attribute.name}`,\n        value: `\"${attribute.value}\"`\n      };\n    }\n    return attribute;\n  });\n  directives(el, attributes, original).map((handle) => {\n    cleanupRunners.push(handle.runCleanups);\n    handle();\n  });\n  return () => {\n    while (cleanupRunners.length)\n      cleanupRunners.pop()();\n  };\n}\n\n// packages/alpinejs/src/datas.js\nvar datas = {};\nfunction data(name, callback) {\n  datas[name] = callback;\n}\nfunction injectDataProviders(obj, context) {\n  Object.entries(datas).forEach(([name, callback]) => {\n    Object.defineProperty(obj, name, {\n      get() {\n        return (...args) => {\n          return callback.bind(context)(...args);\n        };\n      },\n      enumerable: false\n    });\n  });\n  return obj;\n}\n\n// packages/alpinejs/src/alpine.js\nvar Alpine = {\n  get reactive() {\n    return reactive;\n  },\n  get release() {\n    return release;\n  },\n  get effect() {\n    return effect;\n  },\n  get raw() {\n    return raw;\n  },\n  version: \"3.13.6\",\n  flushAndStopDeferringMutations,\n  dontAutoEvaluateFunctions,\n  disableEffectScheduling,\n  startObservingMutations,\n  stopObservingMutations,\n  setReactivityEngine,\n  onAttributeRemoved,\n  onAttributesAdded,\n  closestDataStack,\n  skipDuringClone,\n  onlyDuringClone,\n  addRootSelector,\n  addInitSelector,\n  interceptClone,\n  addScopeToNode,\n  deferMutations,\n  mapAttributes,\n  evaluateLater,\n  interceptInit,\n  setEvaluator,\n  mergeProxies,\n  extractProp,\n  findClosest,\n  onElRemoved,\n  closestRoot,\n  destroyTree,\n  interceptor,\n  // INTERNAL: not public API and is subject to change without major release.\n  transition,\n  // INTERNAL\n  setStyles,\n  // INTERNAL\n  mutateDom,\n  directive,\n  entangle,\n  throttle,\n  debounce,\n  evaluate,\n  initTree,\n  nextTick,\n  prefixed: prefix,\n  prefix: setPrefix,\n  plugin,\n  magic,\n  store,\n  start,\n  clone,\n  // INTERNAL\n  cloneNode,\n  // INTERNAL\n  bound: getBinding,\n  $data: scope,\n  watch,\n  walk,\n  data,\n  bind: bind2\n};\nvar alpine_default = Alpine;\n\n// node_modules/@vue/shared/dist/shared.esm-bundler.js\nfunction makeMap(str, expectsLowerCase) {\n  const map = /* @__PURE__ */ Object.create(null);\n  const list = str.split(\",\");\n  for (let i = 0; i < list.length; i++) {\n    map[list[i]] = true;\n  }\n  return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];\n}\nvar specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;\nvar isBooleanAttr2 = /* @__PURE__ */ makeMap(specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);\nvar EMPTY_OBJ = true ? Object.freeze({}) : {};\nvar EMPTY_ARR = true ? Object.freeze([]) : [];\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar hasOwn = (val, key) => hasOwnProperty.call(val, key);\nvar isArray = Array.isArray;\nvar isMap = (val) => toTypeString(val) === \"[object Map]\";\nvar isString = (val) => typeof val === \"string\";\nvar isSymbol = (val) => typeof val === \"symbol\";\nvar isObject = (val) => val !== null && typeof val === \"object\";\nvar objectToString = Object.prototype.toString;\nvar toTypeString = (value) => objectToString.call(value);\nvar toRawType = (value) => {\n  return toTypeString(value).slice(8, -1);\n};\nvar isIntegerKey = (key) => isString(key) && key !== \"NaN\" && key[0] !== \"-\" && \"\" + parseInt(key, 10) === key;\nvar cacheStringFunction = (fn) => {\n  const cache = /* @__PURE__ */ Object.create(null);\n  return (str) => {\n    const hit = cache[str];\n    return hit || (cache[str] = fn(str));\n  };\n};\nvar camelizeRE = /-(\\w)/g;\nvar camelize = cacheStringFunction((str) => {\n  return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : \"\");\n});\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, \"-$1\").toLowerCase());\nvar capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));\nvar toHandlerKey = cacheStringFunction((str) => str ? `on${capitalize(str)}` : ``);\nvar hasChanged = (value, oldValue) => value !== oldValue && (value === value || oldValue === oldValue);\n\n// node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js\nvar targetMap = /* @__PURE__ */ new WeakMap();\nvar effectStack = [];\nvar activeEffect;\nvar ITERATE_KEY = Symbol(true ? \"iterate\" : \"\");\nvar MAP_KEY_ITERATE_KEY = Symbol(true ? \"Map key iterate\" : \"\");\nfunction isEffect(fn) {\n  return fn && fn._isEffect === true;\n}\nfunction effect2(fn, options = EMPTY_OBJ) {\n  if (isEffect(fn)) {\n    fn = fn.raw;\n  }\n  const effect3 = createReactiveEffect(fn, options);\n  if (!options.lazy) {\n    effect3();\n  }\n  return effect3;\n}\nfunction stop(effect3) {\n  if (effect3.active) {\n    cleanup(effect3);\n    if (effect3.options.onStop) {\n      effect3.options.onStop();\n    }\n    effect3.active = false;\n  }\n}\nvar uid = 0;\nfunction createReactiveEffect(fn, options) {\n  const effect3 = function reactiveEffect() {\n    if (!effect3.active) {\n      return fn();\n    }\n    if (!effectStack.includes(effect3)) {\n      cleanup(effect3);\n      try {\n        enableTracking();\n        effectStack.push(effect3);\n        activeEffect = effect3;\n        return fn();\n      } finally {\n        effectStack.pop();\n        resetTracking();\n        activeEffect = effectStack[effectStack.length - 1];\n      }\n    }\n  };\n  effect3.id = uid++;\n  effect3.allowRecurse = !!options.allowRecurse;\n  effect3._isEffect = true;\n  effect3.active = true;\n  effect3.raw = fn;\n  effect3.deps = [];\n  effect3.options = options;\n  return effect3;\n}\nfunction cleanup(effect3) {\n  const { deps } = effect3;\n  if (deps.length) {\n    for (let i = 0; i < deps.length; i++) {\n      deps[i].delete(effect3);\n    }\n    deps.length = 0;\n  }\n}\nvar shouldTrack = true;\nvar trackStack = [];\nfunction pauseTracking() {\n  trackStack.push(shouldTrack);\n  shouldTrack = false;\n}\nfunction enableTracking() {\n  trackStack.push(shouldTrack);\n  shouldTrack = true;\n}\nfunction resetTracking() {\n  const last = trackStack.pop();\n  shouldTrack = last === void 0 ? true : last;\n}\nfunction track(target, type, key) {\n  if (!shouldTrack || activeEffect === void 0) {\n    return;\n  }\n  let depsMap = targetMap.get(target);\n  if (!depsMap) {\n    targetMap.set(target, depsMap = /* @__PURE__ */ new Map());\n  }\n  let dep = depsMap.get(key);\n  if (!dep) {\n    depsMap.set(key, dep = /* @__PURE__ */ new Set());\n  }\n  if (!dep.has(activeEffect)) {\n    dep.add(activeEffect);\n    activeEffect.deps.push(dep);\n    if (activeEffect.options.onTrack) {\n      activeEffect.options.onTrack({\n        effect: activeEffect,\n        target,\n        type,\n        key\n      });\n    }\n  }\n}\nfunction trigger(target, type, key, newValue, oldValue, oldTarget) {\n  const depsMap = targetMap.get(target);\n  if (!depsMap) {\n    return;\n  }\n  const effects = /* @__PURE__ */ new Set();\n  const add2 = (effectsToAdd) => {\n    if (effectsToAdd) {\n      effectsToAdd.forEach((effect3) => {\n        if (effect3 !== activeEffect || effect3.allowRecurse) {\n          effects.add(effect3);\n        }\n      });\n    }\n  };\n  if (type === \"clear\") {\n    depsMap.forEach(add2);\n  } else if (key === \"length\" && isArray(target)) {\n    depsMap.forEach((dep, key2) => {\n      if (key2 === \"length\" || key2 >= newValue) {\n        add2(dep);\n      }\n    });\n  } else {\n    if (key !== void 0) {\n      add2(depsMap.get(key));\n    }\n    switch (type) {\n      case \"add\":\n        if (!isArray(target)) {\n          add2(depsMap.get(ITERATE_KEY));\n          if (isMap(target)) {\n            add2(depsMap.get(MAP_KEY_ITERATE_KEY));\n          }\n        } else if (isIntegerKey(key)) {\n          add2(depsMap.get(\"length\"));\n        }\n        break;\n      case \"delete\":\n        if (!isArray(target)) {\n          add2(depsMap.get(ITERATE_KEY));\n          if (isMap(target)) {\n            add2(depsMap.get(MAP_KEY_ITERATE_KEY));\n          }\n        }\n        break;\n      case \"set\":\n        if (isMap(target)) {\n          add2(depsMap.get(ITERATE_KEY));\n        }\n        break;\n    }\n  }\n  const run = (effect3) => {\n    if (effect3.options.onTrigger) {\n      effect3.options.onTrigger({\n        effect: effect3,\n        target,\n        key,\n        type,\n        newValue,\n        oldValue,\n        oldTarget\n      });\n    }\n    if (effect3.options.scheduler) {\n      effect3.options.scheduler(effect3);\n    } else {\n      effect3();\n    }\n  };\n  effects.forEach(run);\n}\nvar isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);\nvar builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol).map((key) => Symbol[key]).filter(isSymbol));\nvar get2 = /* @__PURE__ */ createGetter();\nvar readonlyGet = /* @__PURE__ */ createGetter(true);\nvar arrayInstrumentations = /* @__PURE__ */ createArrayInstrumentations();\nfunction createArrayInstrumentations() {\n  const instrumentations = {};\n  [\"includes\", \"indexOf\", \"lastIndexOf\"].forEach((key) => {\n    instrumentations[key] = function(...args) {\n      const arr = toRaw(this);\n      for (let i = 0, l = this.length; i < l; i++) {\n        track(arr, \"get\", i + \"\");\n      }\n      const res = arr[key](...args);\n      if (res === -1 || res === false) {\n        return arr[key](...args.map(toRaw));\n      } else {\n        return res;\n      }\n    };\n  });\n  [\"push\", \"pop\", \"shift\", \"unshift\", \"splice\"].forEach((key) => {\n    instrumentations[key] = function(...args) {\n      pauseTracking();\n      const res = toRaw(this)[key].apply(this, args);\n      resetTracking();\n      return res;\n    };\n  });\n  return instrumentations;\n}\nfunction createGetter(isReadonly = false, shallow = false) {\n  return function get3(target, key, receiver) {\n    if (key === \"__v_isReactive\") {\n      return !isReadonly;\n    } else if (key === \"__v_isReadonly\") {\n      return isReadonly;\n    } else if (key === \"__v_raw\" && receiver === (isReadonly ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) {\n      return target;\n    }\n    const targetIsArray = isArray(target);\n    if (!isReadonly && targetIsArray && hasOwn(arrayInstrumentations, key)) {\n      return Reflect.get(arrayInstrumentations, key, receiver);\n    }\n    const res = Reflect.get(target, key, receiver);\n    if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {\n      return res;\n    }\n    if (!isReadonly) {\n      track(target, \"get\", key);\n    }\n    if (shallow) {\n      return res;\n    }\n    if (isRef(res)) {\n      const shouldUnwrap = !targetIsArray || !isIntegerKey(key);\n      return shouldUnwrap ? res.value : res;\n    }\n    if (isObject(res)) {\n      return isReadonly ? readonly(res) : reactive2(res);\n    }\n    return res;\n  };\n}\nvar set2 = /* @__PURE__ */ createSetter();\nfunction createSetter(shallow = false) {\n  return function set3(target, key, value, receiver) {\n    let oldValue = target[key];\n    if (!shallow) {\n      value = toRaw(value);\n      oldValue = toRaw(oldValue);\n      if (!isArray(target) && isRef(oldValue) && !isRef(value)) {\n        oldValue.value = value;\n        return true;\n      }\n    }\n    const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);\n    const result = Reflect.set(target, key, value, receiver);\n    if (target === toRaw(receiver)) {\n      if (!hadKey) {\n        trigger(target, \"add\", key, value);\n      } else if (hasChanged(value, oldValue)) {\n        trigger(target, \"set\", key, value, oldValue);\n      }\n    }\n    return result;\n  };\n}\nfunction deleteProperty(target, key) {\n  const hadKey = hasOwn(target, key);\n  const oldValue = target[key];\n  const result = Reflect.deleteProperty(target, key);\n  if (result && hadKey) {\n    trigger(target, \"delete\", key, void 0, oldValue);\n  }\n  return result;\n}\nfunction has(target, key) {\n  const result = Reflect.has(target, key);\n  if (!isSymbol(key) || !builtInSymbols.has(key)) {\n    track(target, \"has\", key);\n  }\n  return result;\n}\nfunction ownKeys(target) {\n  track(target, \"iterate\", isArray(target) ? \"length\" : ITERATE_KEY);\n  return Reflect.ownKeys(target);\n}\nvar mutableHandlers = {\n  get: get2,\n  set: set2,\n  deleteProperty,\n  has,\n  ownKeys\n};\nvar readonlyHandlers = {\n  get: readonlyGet,\n  set(target, key) {\n    if (true) {\n      console.warn(`Set operation on key \"${String(key)}\" failed: target is readonly.`, target);\n    }\n    return true;\n  },\n  deleteProperty(target, key) {\n    if (true) {\n      console.warn(`Delete operation on key \"${String(key)}\" failed: target is readonly.`, target);\n    }\n    return true;\n  }\n};\nvar toReactive = (value) => isObject(value) ? reactive2(value) : value;\nvar toReadonly = (value) => isObject(value) ? readonly(value) : value;\nvar toShallow = (value) => value;\nvar getProto = (v) => Reflect.getPrototypeOf(v);\nfunction get$1(target, key, isReadonly = false, isShallow = false) {\n  target = target[\n    \"__v_raw\"\n    /* RAW */\n  ];\n  const rawTarget = toRaw(target);\n  const rawKey = toRaw(key);\n  if (key !== rawKey) {\n    !isReadonly && track(rawTarget, \"get\", key);\n  }\n  !isReadonly && track(rawTarget, \"get\", rawKey);\n  const { has: has2 } = getProto(rawTarget);\n  const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n  if (has2.call(rawTarget, key)) {\n    return wrap(target.get(key));\n  } else if (has2.call(rawTarget, rawKey)) {\n    return wrap(target.get(rawKey));\n  } else if (target !== rawTarget) {\n    target.get(key);\n  }\n}\nfunction has$1(key, isReadonly = false) {\n  const target = this[\n    \"__v_raw\"\n    /* RAW */\n  ];\n  const rawTarget = toRaw(target);\n  const rawKey = toRaw(key);\n  if (key !== rawKey) {\n    !isReadonly && track(rawTarget, \"has\", key);\n  }\n  !isReadonly && track(rawTarget, \"has\", rawKey);\n  return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);\n}\nfunction size(target, isReadonly = false) {\n  target = target[\n    \"__v_raw\"\n    /* RAW */\n  ];\n  !isReadonly && track(toRaw(target), \"iterate\", ITERATE_KEY);\n  return Reflect.get(target, \"size\", target);\n}\nfunction add(value) {\n  value = toRaw(value);\n  const target = toRaw(this);\n  const proto = getProto(target);\n  const hadKey = proto.has.call(target, value);\n  if (!hadKey) {\n    target.add(value);\n    trigger(target, \"add\", value, value);\n  }\n  return this;\n}\nfunction set$1(key, value) {\n  value = toRaw(value);\n  const target = toRaw(this);\n  const { has: has2, get: get3 } = getProto(target);\n  let hadKey = has2.call(target, key);\n  if (!hadKey) {\n    key = toRaw(key);\n    hadKey = has2.call(target, key);\n  } else if (true) {\n    checkIdentityKeys(target, has2, key);\n  }\n  const oldValue = get3.call(target, key);\n  target.set(key, value);\n  if (!hadKey) {\n    trigger(target, \"add\", key, value);\n  } else if (hasChanged(value, oldValue)) {\n    trigger(target, \"set\", key, value, oldValue);\n  }\n  return this;\n}\nfunction deleteEntry(key) {\n  const target = toRaw(this);\n  const { has: has2, get: get3 } = getProto(target);\n  let hadKey = has2.call(target, key);\n  if (!hadKey) {\n    key = toRaw(key);\n    hadKey = has2.call(target, key);\n  } else if (true) {\n    checkIdentityKeys(target, has2, key);\n  }\n  const oldValue = get3 ? get3.call(target, key) : void 0;\n  const result = target.delete(key);\n  if (hadKey) {\n    trigger(target, \"delete\", key, void 0, oldValue);\n  }\n  return result;\n}\nfunction clear() {\n  const target = toRaw(this);\n  const hadItems = target.size !== 0;\n  const oldTarget = true ? isMap(target) ? new Map(target) : new Set(target) : void 0;\n  const result = target.clear();\n  if (hadItems) {\n    trigger(target, \"clear\", void 0, void 0, oldTarget);\n  }\n  return result;\n}\nfunction createForEach(isReadonly, isShallow) {\n  return function forEach(callback, thisArg) {\n    const observed = this;\n    const target = observed[\n      \"__v_raw\"\n      /* RAW */\n    ];\n    const rawTarget = toRaw(target);\n    const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n    !isReadonly && track(rawTarget, \"iterate\", ITERATE_KEY);\n    return target.forEach((value, key) => {\n      return callback.call(thisArg, wrap(value), wrap(key), observed);\n    });\n  };\n}\nfunction createIterableMethod(method, isReadonly, isShallow) {\n  return function(...args) {\n    const target = this[\n      \"__v_raw\"\n      /* RAW */\n    ];\n    const rawTarget = toRaw(target);\n    const targetIsMap = isMap(rawTarget);\n    const isPair = method === \"entries\" || method === Symbol.iterator && targetIsMap;\n    const isKeyOnly = method === \"keys\" && targetIsMap;\n    const innerIterator = target[method](...args);\n    const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n    !isReadonly && track(rawTarget, \"iterate\", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);\n    return {\n      // iterator protocol\n      next() {\n        const { value, done } = innerIterator.next();\n        return done ? { value, done } : {\n          value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),\n          done\n        };\n      },\n      // iterable protocol\n      [Symbol.iterator]() {\n        return this;\n      }\n    };\n  };\n}\nfunction createReadonlyMethod(type) {\n  return function(...args) {\n    if (true) {\n      const key = args[0] ? `on key \"${args[0]}\" ` : ``;\n      console.warn(`${capitalize(type)} operation ${key}failed: target is readonly.`, toRaw(this));\n    }\n    return type === \"delete\" ? false : this;\n  };\n}\nfunction createInstrumentations() {\n  const mutableInstrumentations2 = {\n    get(key) {\n      return get$1(this, key);\n    },\n    get size() {\n      return size(this);\n    },\n    has: has$1,\n    add,\n    set: set$1,\n    delete: deleteEntry,\n    clear,\n    forEach: createForEach(false, false)\n  };\n  const shallowInstrumentations2 = {\n    get(key) {\n      return get$1(this, key, false, true);\n    },\n    get size() {\n      return size(this);\n    },\n    has: has$1,\n    add,\n    set: set$1,\n    delete: deleteEntry,\n    clear,\n    forEach: createForEach(false, true)\n  };\n  const readonlyInstrumentations2 = {\n    get(key) {\n      return get$1(this, key, true);\n    },\n    get size() {\n      return size(this, true);\n    },\n    has(key) {\n      return has$1.call(this, key, true);\n    },\n    add: createReadonlyMethod(\n      \"add\"\n      /* ADD */\n    ),\n    set: createReadonlyMethod(\n      \"set\"\n      /* SET */\n    ),\n    delete: createReadonlyMethod(\n      \"delete\"\n      /* DELETE */\n    ),\n    clear: createReadonlyMethod(\n      \"clear\"\n      /* CLEAR */\n    ),\n    forEach: createForEach(true, false)\n  };\n  const shallowReadonlyInstrumentations2 = {\n    get(key) {\n      return get$1(this, key, true, true);\n    },\n    get size() {\n      return size(this, true);\n    },\n    has(key) {\n      return has$1.call(this, key, true);\n    },\n    add: createReadonlyMethod(\n      \"add\"\n      /* ADD */\n    ),\n    set: createReadonlyMethod(\n      \"set\"\n      /* SET */\n    ),\n    delete: createReadonlyMethod(\n      \"delete\"\n      /* DELETE */\n    ),\n    clear: createReadonlyMethod(\n      \"clear\"\n      /* CLEAR */\n    ),\n    forEach: createForEach(true, true)\n  };\n  const iteratorMethods = [\"keys\", \"values\", \"entries\", Symbol.iterator];\n  iteratorMethods.forEach((method) => {\n    mutableInstrumentations2[method] = createIterableMethod(method, false, false);\n    readonlyInstrumentations2[method] = createIterableMethod(method, true, false);\n    shallowInstrumentations2[method] = createIterableMethod(method, false, true);\n    shallowReadonlyInstrumentations2[method] = createIterableMethod(method, true, true);\n  });\n  return [\n    mutableInstrumentations2,\n    readonlyInstrumentations2,\n    shallowInstrumentations2,\n    shallowReadonlyInstrumentations2\n  ];\n}\nvar [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* @__PURE__ */ createInstrumentations();\nfunction createInstrumentationGetter(isReadonly, shallow) {\n  const instrumentations = shallow ? isReadonly ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly ? readonlyInstrumentations : mutableInstrumentations;\n  return (target, key, receiver) => {\n    if (key === \"__v_isReactive\") {\n      return !isReadonly;\n    } else if (key === \"__v_isReadonly\") {\n      return isReadonly;\n    } else if (key === \"__v_raw\") {\n      return target;\n    }\n    return Reflect.get(hasOwn(instrumentations, key) && key in target ? instrumentations : target, key, receiver);\n  };\n}\nvar mutableCollectionHandlers = {\n  get: /* @__PURE__ */ createInstrumentationGetter(false, false)\n};\nvar readonlyCollectionHandlers = {\n  get: /* @__PURE__ */ createInstrumentationGetter(true, false)\n};\nfunction checkIdentityKeys(target, has2, key) {\n  const rawKey = toRaw(key);\n  if (rawKey !== key && has2.call(target, rawKey)) {\n    const type = toRawType(target);\n    console.warn(`Reactive ${type} contains both the raw and reactive versions of the same object${type === `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.`);\n  }\n}\nvar reactiveMap = /* @__PURE__ */ new WeakMap();\nvar shallowReactiveMap = /* @__PURE__ */ new WeakMap();\nvar readonlyMap = /* @__PURE__ */ new WeakMap();\nvar shallowReadonlyMap = /* @__PURE__ */ new WeakMap();\nfunction targetTypeMap(rawType) {\n  switch (rawType) {\n    case \"Object\":\n    case \"Array\":\n      return 1;\n    case \"Map\":\n    case \"Set\":\n    case \"WeakMap\":\n    case \"WeakSet\":\n      return 2;\n    default:\n      return 0;\n  }\n}\nfunction getTargetType(value) {\n  return value[\n    \"__v_skip\"\n    /* SKIP */\n  ] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value));\n}\nfunction reactive2(target) {\n  if (target && target[\n    \"__v_isReadonly\"\n    /* IS_READONLY */\n  ]) {\n    return target;\n  }\n  return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);\n}\nfunction readonly(target) {\n  return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);\n}\nfunction createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {\n  if (!isObject(target)) {\n    if (true) {\n      console.warn(`value cannot be made reactive: ${String(target)}`);\n    }\n    return target;\n  }\n  if (target[\n    \"__v_raw\"\n    /* RAW */\n  ] && !(isReadonly && target[\n    \"__v_isReactive\"\n    /* IS_REACTIVE */\n  ])) {\n    return target;\n  }\n  const existingProxy = proxyMap.get(target);\n  if (existingProxy) {\n    return existingProxy;\n  }\n  const targetType = getTargetType(target);\n  if (targetType === 0) {\n    return target;\n  }\n  const proxy = new Proxy(target, targetType === 2 ? collectionHandlers : baseHandlers);\n  proxyMap.set(target, proxy);\n  return proxy;\n}\nfunction toRaw(observed) {\n  return observed && toRaw(observed[\n    \"__v_raw\"\n    /* RAW */\n  ]) || observed;\n}\nfunction isRef(r) {\n  return Boolean(r && r.__v_isRef === true);\n}\n\n// packages/alpinejs/src/magics/$nextTick.js\nmagic(\"nextTick\", () => nextTick);\n\n// packages/alpinejs/src/magics/$dispatch.js\nmagic(\"dispatch\", (el) => dispatch.bind(dispatch, el));\n\n// packages/alpinejs/src/magics/$watch.js\nmagic(\"watch\", (el, { evaluateLater: evaluateLater2, cleanup: cleanup2 }) => (key, callback) => {\n  let evaluate2 = evaluateLater2(key);\n  let getter = () => {\n    let value;\n    evaluate2((i) => value = i);\n    return value;\n  };\n  let unwatch = watch(getter, callback);\n  cleanup2(unwatch);\n});\n\n// packages/alpinejs/src/magics/$store.js\nmagic(\"store\", getStores);\n\n// packages/alpinejs/src/magics/$data.js\nmagic(\"data\", (el) => scope(el));\n\n// packages/alpinejs/src/magics/$root.js\nmagic(\"root\", (el) => closestRoot(el));\n\n// packages/alpinejs/src/magics/$refs.js\nmagic(\"refs\", (el) => {\n  if (el._x_refs_proxy)\n    return el._x_refs_proxy;\n  el._x_refs_proxy = mergeProxies(getArrayOfRefObject(el));\n  return el._x_refs_proxy;\n});\nfunction getArrayOfRefObject(el) {\n  let refObjects = [];\n  findClosest(el, (i) => {\n    if (i._x_refs)\n      refObjects.push(i._x_refs);\n  });\n  return refObjects;\n}\n\n// packages/alpinejs/src/ids.js\nvar globalIdMemo = {};\nfunction findAndIncrementId(name) {\n  if (!globalIdMemo[name])\n    globalIdMemo[name] = 0;\n  return ++globalIdMemo[name];\n}\nfunction closestIdRoot(el, name) {\n  return findClosest(el, (element) => {\n    if (element._x_ids && element._x_ids[name])\n      return true;\n  });\n}\nfunction setIdRoot(el, name) {\n  if (!el._x_ids)\n    el._x_ids = {};\n  if (!el._x_ids[name])\n    el._x_ids[name] = findAndIncrementId(name);\n}\n\n// packages/alpinejs/src/magics/$id.js\nmagic(\"id\", (el, { cleanup: cleanup2 }) => (name, key = null) => {\n  let cacheKey = `${name}${key ? `-${key}` : \"\"}`;\n  return cacheIdByNameOnElement(el, cacheKey, cleanup2, () => {\n    let root = closestIdRoot(el, name);\n    let id = root ? root._x_ids[name] : findAndIncrementId(name);\n    return key ? `${name}-${id}-${key}` : `${name}-${id}`;\n  });\n});\ninterceptClone((from, to) => {\n  if (from._x_id) {\n    to._x_id = from._x_id;\n  }\n});\nfunction cacheIdByNameOnElement(el, cacheKey, cleanup2, callback) {\n  if (!el._x_id)\n    el._x_id = {};\n  if (el._x_id[cacheKey])\n    return el._x_id[cacheKey];\n  let output = callback();\n  el._x_id[cacheKey] = output;\n  cleanup2(() => {\n    delete el._x_id[cacheKey];\n  });\n  return output;\n}\n\n// packages/alpinejs/src/magics/$el.js\nmagic(\"el\", (el) => el);\n\n// packages/alpinejs/src/magics/index.js\nwarnMissingPluginMagic(\"Focus\", \"focus\", \"focus\");\nwarnMissingPluginMagic(\"Persist\", \"persist\", \"persist\");\nfunction warnMissingPluginMagic(name, magicName, slug) {\n  magic(magicName, (el) => warn(`You can't use [$${magicName}] without first installing the \"${name}\" plugin here: https://alpinejs.dev/plugins/${slug}`, el));\n}\n\n// packages/alpinejs/src/directives/x-modelable.js\ndirective(\"modelable\", (el, { expression }, { effect: effect3, evaluateLater: evaluateLater2, cleanup: cleanup2 }) => {\n  let func = evaluateLater2(expression);\n  let innerGet = () => {\n    let result;\n    func((i) => result = i);\n    return result;\n  };\n  let evaluateInnerSet = evaluateLater2(`${expression} = __placeholder`);\n  let innerSet = (val) => evaluateInnerSet(() => {\n  }, { scope: { \"__placeholder\": val } });\n  let initialValue = innerGet();\n  innerSet(initialValue);\n  queueMicrotask(() => {\n    if (!el._x_model)\n      return;\n    el._x_removeModelListeners[\"default\"]();\n    let outerGet = el._x_model.get;\n    let outerSet = el._x_model.set;\n    let releaseEntanglement = entangle(\n      {\n        get() {\n          return outerGet();\n        },\n        set(value) {\n          outerSet(value);\n        }\n      },\n      {\n        get() {\n          return innerGet();\n        },\n        set(value) {\n          innerSet(value);\n        }\n      }\n    );\n    cleanup2(releaseEntanglement);\n  });\n});\n\n// packages/alpinejs/src/directives/x-teleport.js\ndirective(\"teleport\", (el, { modifiers, expression }, { cleanup: cleanup2 }) => {\n  if (el.tagName.toLowerCase() !== \"template\")\n    warn(\"x-teleport can only be used on a <template> tag\", el);\n  let target = getTarget(expression);\n  let clone2 = el.content.cloneNode(true).firstElementChild;\n  el._x_teleport = clone2;\n  clone2._x_teleportBack = el;\n  el.setAttribute(\"data-teleport-template\", true);\n  clone2.setAttribute(\"data-teleport-target\", true);\n  if (el._x_forwardEvents) {\n    el._x_forwardEvents.forEach((eventName) => {\n      clone2.addEventListener(eventName, (e) => {\n        e.stopPropagation();\n        el.dispatchEvent(new e.constructor(e.type, e));\n      });\n    });\n  }\n  addScopeToNode(clone2, {}, el);\n  let placeInDom = (clone3, target2, modifiers2) => {\n    if (modifiers2.includes(\"prepend\")) {\n      target2.parentNode.insertBefore(clone3, target2);\n    } else if (modifiers2.includes(\"append\")) {\n      target2.parentNode.insertBefore(clone3, target2.nextSibling);\n    } else {\n      target2.appendChild(clone3);\n    }\n  };\n  mutateDom(() => {\n    placeInDom(clone2, target, modifiers);\n    initTree(clone2);\n    clone2._x_ignore = true;\n  });\n  el._x_teleportPutBack = () => {\n    let target2 = getTarget(expression);\n    mutateDom(() => {\n      placeInDom(el._x_teleport, target2, modifiers);\n    });\n  };\n  cleanup2(() => clone2.remove());\n});\nvar teleportContainerDuringClone = document.createElement(\"div\");\nfunction getTarget(expression) {\n  let target = skipDuringClone(() => {\n    return document.querySelector(expression);\n  }, () => {\n    return teleportContainerDuringClone;\n  })();\n  if (!target)\n    warn(`Cannot find x-teleport element for selector: \"${expression}\"`);\n  return target;\n}\n\n// packages/alpinejs/src/directives/x-ignore.js\nvar handler = () => {\n};\nhandler.inline = (el, { modifiers }, { cleanup: cleanup2 }) => {\n  modifiers.includes(\"self\") ? el._x_ignoreSelf = true : el._x_ignore = true;\n  cleanup2(() => {\n    modifiers.includes(\"self\") ? delete el._x_ignoreSelf : delete el._x_ignore;\n  });\n};\ndirective(\"ignore\", handler);\n\n// packages/alpinejs/src/directives/x-effect.js\ndirective(\"effect\", skipDuringClone((el, { expression }, { effect: effect3 }) => {\n  effect3(evaluateLater(el, expression));\n}));\n\n// packages/alpinejs/src/utils/on.js\nfunction on(el, event, modifiers, callback) {\n  let listenerTarget = el;\n  let handler4 = (e) => callback(e);\n  let options = {};\n  let wrapHandler = (callback2, wrapper) => (e) => wrapper(callback2, e);\n  if (modifiers.includes(\"dot\"))\n    event = dotSyntax(event);\n  if (modifiers.includes(\"camel\"))\n    event = camelCase2(event);\n  if (modifiers.includes(\"passive\"))\n    options.passive = true;\n  if (modifiers.includes(\"capture\"))\n    options.capture = true;\n  if (modifiers.includes(\"window\"))\n    listenerTarget = window;\n  if (modifiers.includes(\"document\"))\n    listenerTarget = document;\n  if (modifiers.includes(\"debounce\")) {\n    let nextModifier = modifiers[modifiers.indexOf(\"debounce\") + 1] || \"invalid-wait\";\n    let wait = isNumeric(nextModifier.split(\"ms\")[0]) ? Number(nextModifier.split(\"ms\")[0]) : 250;\n    handler4 = debounce(handler4, wait);\n  }\n  if (modifiers.includes(\"throttle\")) {\n    let nextModifier = modifiers[modifiers.indexOf(\"throttle\") + 1] || \"invalid-wait\";\n    let wait = isNumeric(nextModifier.split(\"ms\")[0]) ? Number(nextModifier.split(\"ms\")[0]) : 250;\n    handler4 = throttle(handler4, wait);\n  }\n  if (modifiers.includes(\"prevent\"))\n    handler4 = wrapHandler(handler4, (next, e) => {\n      e.preventDefault();\n      next(e);\n    });\n  if (modifiers.includes(\"stop\"))\n    handler4 = wrapHandler(handler4, (next, e) => {\n      e.stopPropagation();\n      next(e);\n    });\n  if (modifiers.includes(\"self\"))\n    handler4 = wrapHandler(handler4, (next, e) => {\n      e.target === el && next(e);\n    });\n  if (modifiers.includes(\"away\") || modifiers.includes(\"outside\")) {\n    listenerTarget = document;\n    handler4 = wrapHandler(handler4, (next, e) => {\n      if (el.contains(e.target))\n        return;\n      if (e.target.isConnected === false)\n        return;\n      if (el.offsetWidth < 1 && el.offsetHeight < 1)\n        return;\n      if (el._x_isShown === false)\n        return;\n      next(e);\n    });\n  }\n  if (modifiers.includes(\"once\")) {\n    handler4 = wrapHandler(handler4, (next, e) => {\n      next(e);\n      listenerTarget.removeEventListener(event, handler4, options);\n    });\n  }\n  handler4 = wrapHandler(handler4, (next, e) => {\n    if (isKeyEvent(event)) {\n      if (isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers)) {\n        return;\n      }\n    }\n    next(e);\n  });\n  listenerTarget.addEventListener(event, handler4, options);\n  return () => {\n    listenerTarget.removeEventListener(event, handler4, options);\n  };\n}\nfunction dotSyntax(subject) {\n  return subject.replace(/-/g, \".\");\n}\nfunction camelCase2(subject) {\n  return subject.toLowerCase().replace(/-(\\w)/g, (match, char) => char.toUpperCase());\n}\nfunction isNumeric(subject) {\n  return !Array.isArray(subject) && !isNaN(subject);\n}\nfunction kebabCase2(subject) {\n  if ([\" \", \"_\"].includes(\n    subject\n  ))\n    return subject;\n  return subject.replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/[_\\s]/, \"-\").toLowerCase();\n}\nfunction isKeyEvent(event) {\n  return [\"keydown\", \"keyup\"].includes(event);\n}\nfunction isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers) {\n  let keyModifiers = modifiers.filter((i) => {\n    return ![\"window\", \"document\", \"prevent\", \"stop\", \"once\", \"capture\"].includes(i);\n  });\n  if (keyModifiers.includes(\"debounce\")) {\n    let debounceIndex = keyModifiers.indexOf(\"debounce\");\n    keyModifiers.splice(debounceIndex, isNumeric((keyModifiers[debounceIndex + 1] || \"invalid-wait\").split(\"ms\")[0]) ? 2 : 1);\n  }\n  if (keyModifiers.includes(\"throttle\")) {\n    let debounceIndex = keyModifiers.indexOf(\"throttle\");\n    keyModifiers.splice(debounceIndex, isNumeric((keyModifiers[debounceIndex + 1] || \"invalid-wait\").split(\"ms\")[0]) ? 2 : 1);\n  }\n  if (keyModifiers.length === 0)\n    return false;\n  if (keyModifiers.length === 1 && keyToModifiers(e.key).includes(keyModifiers[0]))\n    return false;\n  const systemKeyModifiers = [\"ctrl\", \"shift\", \"alt\", \"meta\", \"cmd\", \"super\"];\n  const selectedSystemKeyModifiers = systemKeyModifiers.filter((modifier) => keyModifiers.includes(modifier));\n  keyModifiers = keyModifiers.filter((i) => !selectedSystemKeyModifiers.includes(i));\n  if (selectedSystemKeyModifiers.length > 0) {\n    const activelyPressedKeyModifiers = selectedSystemKeyModifiers.filter((modifier) => {\n      if (modifier === \"cmd\" || modifier === \"super\")\n        modifier = \"meta\";\n      return e[`${modifier}Key`];\n    });\n    if (activelyPressedKeyModifiers.length === selectedSystemKeyModifiers.length) {\n      if (keyToModifiers(e.key).includes(keyModifiers[0]))\n        return false;\n    }\n  }\n  return true;\n}\nfunction keyToModifiers(key) {\n  if (!key)\n    return [];\n  key = kebabCase2(key);\n  let modifierToKeyMap = {\n    \"ctrl\": \"control\",\n    \"slash\": \"/\",\n    \"space\": \" \",\n    \"spacebar\": \" \",\n    \"cmd\": \"meta\",\n    \"esc\": \"escape\",\n    \"up\": \"arrow-up\",\n    \"down\": \"arrow-down\",\n    \"left\": \"arrow-left\",\n    \"right\": \"arrow-right\",\n    \"period\": \".\",\n    \"equal\": \"=\",\n    \"minus\": \"-\",\n    \"underscore\": \"_\"\n  };\n  modifierToKeyMap[key] = key;\n  return Object.keys(modifierToKeyMap).map((modifier) => {\n    if (modifierToKeyMap[modifier] === key)\n      return modifier;\n  }).filter((modifier) => modifier);\n}\n\n// packages/alpinejs/src/directives/x-model.js\ndirective(\"model\", (el, { modifiers, expression }, { effect: effect3, cleanup: cleanup2 }) => {\n  let scopeTarget = el;\n  if (modifiers.includes(\"parent\")) {\n    scopeTarget = el.parentNode;\n  }\n  let evaluateGet = evaluateLater(scopeTarget, expression);\n  let evaluateSet;\n  if (typeof expression === \"string\") {\n    evaluateSet = evaluateLater(scopeTarget, `${expression} = __placeholder`);\n  } else if (typeof expression === \"function\" && typeof expression() === \"string\") {\n    evaluateSet = evaluateLater(scopeTarget, `${expression()} = __placeholder`);\n  } else {\n    evaluateSet = () => {\n    };\n  }\n  let getValue = () => {\n    let result;\n    evaluateGet((value) => result = value);\n    return isGetterSetter(result) ? result.get() : result;\n  };\n  let setValue = (value) => {\n    let result;\n    evaluateGet((value2) => result = value2);\n    if (isGetterSetter(result)) {\n      result.set(value);\n    } else {\n      evaluateSet(() => {\n      }, {\n        scope: { \"__placeholder\": value }\n      });\n    }\n  };\n  if (typeof expression === \"string\" && el.type === \"radio\") {\n    mutateDom(() => {\n      if (!el.hasAttribute(\"name\"))\n        el.setAttribute(\"name\", expression);\n    });\n  }\n  var event = el.tagName.toLowerCase() === \"select\" || [\"checkbox\", \"radio\"].includes(el.type) || modifiers.includes(\"lazy\") ? \"change\" : \"input\";\n  let removeListener = isCloning ? () => {\n  } : on(el, event, modifiers, (e) => {\n    setValue(getInputValue(el, modifiers, e, getValue()));\n  });\n  if (modifiers.includes(\"fill\")) {\n    if ([void 0, null, \"\"].includes(getValue()) || el.type === \"checkbox\" && Array.isArray(getValue())) {\n      el.dispatchEvent(new Event(event, {}));\n    }\n  }\n  if (!el._x_removeModelListeners)\n    el._x_removeModelListeners = {};\n  el._x_removeModelListeners[\"default\"] = removeListener;\n  cleanup2(() => el._x_removeModelListeners[\"default\"]());\n  if (el.form) {\n    let removeResetListener = on(el.form, \"reset\", [], (e) => {\n      nextTick(() => el._x_model && el._x_model.set(el.value));\n    });\n    cleanup2(() => removeResetListener());\n  }\n  el._x_model = {\n    get() {\n      return getValue();\n    },\n    set(value) {\n      setValue(value);\n    }\n  };\n  el._x_forceModelUpdate = (value) => {\n    if (value === void 0 && typeof expression === \"string\" && expression.match(/\\./))\n      value = \"\";\n    window.fromModel = true;\n    mutateDom(() => bind(el, \"value\", value));\n    delete window.fromModel;\n  };\n  effect3(() => {\n    let value = getValue();\n    if (modifiers.includes(\"unintrusive\") && document.activeElement.isSameNode(el))\n      return;\n    el._x_forceModelUpdate(value);\n  });\n});\nfunction getInputValue(el, modifiers, event, currentValue) {\n  return mutateDom(() => {\n    if (event instanceof CustomEvent && event.detail !== void 0)\n      return event.detail !== null && event.detail !== void 0 ? event.detail : event.target.value;\n    else if (el.type === \"checkbox\") {\n      if (Array.isArray(currentValue)) {\n        let newValue = null;\n        if (modifiers.includes(\"number\")) {\n          newValue = safeParseNumber(event.target.value);\n        } else if (modifiers.includes(\"boolean\")) {\n          newValue = safeParseBoolean(event.target.value);\n        } else {\n          newValue = event.target.value;\n        }\n        return event.target.checked ? currentValue.concat([newValue]) : currentValue.filter((el2) => !checkedAttrLooseCompare2(el2, newValue));\n      } else {\n        return event.target.checked;\n      }\n    } else if (el.tagName.toLowerCase() === \"select\" && el.multiple) {\n      if (modifiers.includes(\"number\")) {\n        return Array.from(event.target.selectedOptions).map((option) => {\n          let rawValue = option.value || option.text;\n          return safeParseNumber(rawValue);\n        });\n      } else if (modifiers.includes(\"boolean\")) {\n        return Array.from(event.target.selectedOptions).map((option) => {\n          let rawValue = option.value || option.text;\n          return safeParseBoolean(rawValue);\n        });\n      }\n      return Array.from(event.target.selectedOptions).map((option) => {\n        return option.value || option.text;\n      });\n    } else {\n      if (modifiers.includes(\"number\")) {\n        return safeParseNumber(event.target.value);\n      } else if (modifiers.includes(\"boolean\")) {\n        return safeParseBoolean(event.target.value);\n      }\n      return modifiers.includes(\"trim\") ? event.target.value.trim() : event.target.value;\n    }\n  });\n}\nfunction safeParseNumber(rawValue) {\n  let number = rawValue ? parseFloat(rawValue) : null;\n  return isNumeric2(number) ? number : rawValue;\n}\nfunction checkedAttrLooseCompare2(valueA, valueB) {\n  return valueA == valueB;\n}\nfunction isNumeric2(subject) {\n  return !Array.isArray(subject) && !isNaN(subject);\n}\nfunction isGetterSetter(value) {\n  return value !== null && typeof value === \"object\" && typeof value.get === \"function\" && typeof value.set === \"function\";\n}\n\n// packages/alpinejs/src/directives/x-cloak.js\ndirective(\"cloak\", (el) => queueMicrotask(() => mutateDom(() => el.removeAttribute(prefix(\"cloak\")))));\n\n// packages/alpinejs/src/directives/x-init.js\naddInitSelector(() => `[${prefix(\"init\")}]`);\ndirective(\"init\", skipDuringClone((el, { expression }, { evaluate: evaluate2 }) => {\n  if (typeof expression === \"string\") {\n    return !!expression.trim() && evaluate2(expression, {}, false);\n  }\n  return evaluate2(expression, {}, false);\n}));\n\n// packages/alpinejs/src/directives/x-text.js\ndirective(\"text\", (el, { expression }, { effect: effect3, evaluateLater: evaluateLater2 }) => {\n  let evaluate2 = evaluateLater2(expression);\n  effect3(() => {\n    evaluate2((value) => {\n      mutateDom(() => {\n        el.textContent = value;\n      });\n    });\n  });\n});\n\n// packages/alpinejs/src/directives/x-html.js\ndirective(\"html\", (el, { expression }, { effect: effect3, evaluateLater: evaluateLater2 }) => {\n  let evaluate2 = evaluateLater2(expression);\n  effect3(() => {\n    evaluate2((value) => {\n      mutateDom(() => {\n        el.innerHTML = value;\n        el._x_ignoreSelf = true;\n        initTree(el);\n        delete el._x_ignoreSelf;\n      });\n    });\n  });\n});\n\n// packages/alpinejs/src/directives/x-bind.js\nmapAttributes(startingWith(\":\", into(prefix(\"bind:\"))));\nvar handler2 = (el, { value, modifiers, expression, original }, { effect: effect3 }) => {\n  if (!value) {\n    let bindingProviders = {};\n    injectBindingProviders(bindingProviders);\n    let getBindings = evaluateLater(el, expression);\n    getBindings((bindings) => {\n      applyBindingsObject(el, bindings, original);\n    }, { scope: bindingProviders });\n    return;\n  }\n  if (value === \"key\")\n    return storeKeyForXFor(el, expression);\n  if (el._x_inlineBindings && el._x_inlineBindings[value] && el._x_inlineBindings[value].extract) {\n    return;\n  }\n  let evaluate2 = evaluateLater(el, expression);\n  effect3(() => evaluate2((result) => {\n    if (result === void 0 && typeof expression === \"string\" && expression.match(/\\./)) {\n      result = \"\";\n    }\n    mutateDom(() => bind(el, value, result, modifiers));\n  }));\n};\nhandler2.inline = (el, { value, modifiers, expression }) => {\n  if (!value)\n    return;\n  if (!el._x_inlineBindings)\n    el._x_inlineBindings = {};\n  el._x_inlineBindings[value] = { expression, extract: false };\n};\ndirective(\"bind\", handler2);\nfunction storeKeyForXFor(el, expression) {\n  el._x_keyExpression = expression;\n}\n\n// packages/alpinejs/src/directives/x-data.js\naddRootSelector(() => `[${prefix(\"data\")}]`);\ndirective(\"data\", (el, { expression }, { cleanup: cleanup2 }) => {\n  if (shouldSkipRegisteringDataDuringClone(el))\n    return;\n  expression = expression === \"\" ? \"{}\" : expression;\n  let magicContext = {};\n  injectMagics(magicContext, el);\n  let dataProviderContext = {};\n  injectDataProviders(dataProviderContext, magicContext);\n  let data2 = evaluate(el, expression, { scope: dataProviderContext });\n  if (data2 === void 0 || data2 === true)\n    data2 = {};\n  injectMagics(data2, el);\n  let reactiveData = reactive(data2);\n  initInterceptors2(reactiveData);\n  let undo = addScopeToNode(el, reactiveData);\n  reactiveData[\"init\"] && evaluate(el, reactiveData[\"init\"]);\n  cleanup2(() => {\n    reactiveData[\"destroy\"] && evaluate(el, reactiveData[\"destroy\"]);\n    undo();\n  });\n});\ninterceptClone((from, to) => {\n  if (from._x_dataStack) {\n    to._x_dataStack = from._x_dataStack;\n    to.setAttribute(\"data-has-alpine-state\", true);\n  }\n});\nfunction shouldSkipRegisteringDataDuringClone(el) {\n  if (!isCloning)\n    return false;\n  if (isCloningLegacy)\n    return true;\n  return el.hasAttribute(\"data-has-alpine-state\");\n}\n\n// packages/alpinejs/src/directives/x-show.js\ndirective(\"show\", (el, { modifiers, expression }, { effect: effect3 }) => {\n  let evaluate2 = evaluateLater(el, expression);\n  if (!el._x_doHide)\n    el._x_doHide = () => {\n      mutateDom(() => {\n        el.style.setProperty(\"display\", \"none\", modifiers.includes(\"important\") ? \"important\" : void 0);\n      });\n    };\n  if (!el._x_doShow)\n    el._x_doShow = () => {\n      mutateDom(() => {\n        if (el.style.length === 1 && el.style.display === \"none\") {\n          el.removeAttribute(\"style\");\n        } else {\n          el.style.removeProperty(\"display\");\n        }\n      });\n    };\n  let hide = () => {\n    el._x_doHide();\n    el._x_isShown = false;\n  };\n  let show = () => {\n    el._x_doShow();\n    el._x_isShown = true;\n  };\n  let clickAwayCompatibleShow = () => setTimeout(show);\n  let toggle = once(\n    (value) => value ? show() : hide(),\n    (value) => {\n      if (typeof el._x_toggleAndCascadeWithTransitions === \"function\") {\n        el._x_toggleAndCascadeWithTransitions(el, value, show, hide);\n      } else {\n        value ? clickAwayCompatibleShow() : hide();\n      }\n    }\n  );\n  let oldValue;\n  let firstTime = true;\n  effect3(() => evaluate2((value) => {\n    if (!firstTime && value === oldValue)\n      return;\n    if (modifiers.includes(\"immediate\"))\n      value ? clickAwayCompatibleShow() : hide();\n    toggle(value);\n    oldValue = value;\n    firstTime = false;\n  }));\n});\n\n// packages/alpinejs/src/directives/x-for.js\ndirective(\"for\", (el, { expression }, { effect: effect3, cleanup: cleanup2 }) => {\n  let iteratorNames = parseForExpression(expression);\n  let evaluateItems = evaluateLater(el, iteratorNames.items);\n  let evaluateKey = evaluateLater(\n    el,\n    // the x-bind:key expression is stored for our use instead of evaluated.\n    el._x_keyExpression || \"index\"\n  );\n  el._x_prevKeys = [];\n  el._x_lookup = {};\n  effect3(() => loop(el, iteratorNames, evaluateItems, evaluateKey));\n  cleanup2(() => {\n    Object.values(el._x_lookup).forEach((el2) => el2.remove());\n    delete el._x_prevKeys;\n    delete el._x_lookup;\n  });\n});\nfunction loop(el, iteratorNames, evaluateItems, evaluateKey) {\n  let isObject2 = (i) => typeof i === \"object\" && !Array.isArray(i);\n  let templateEl = el;\n  evaluateItems((items) => {\n    if (isNumeric3(items) && items >= 0) {\n      items = Array.from(Array(items).keys(), (i) => i + 1);\n    }\n    if (items === void 0)\n      items = [];\n    let lookup = el._x_lookup;\n    let prevKeys = el._x_prevKeys;\n    let scopes = [];\n    let keys = [];\n    if (isObject2(items)) {\n      items = Object.entries(items).map(([key, value]) => {\n        let scope2 = getIterationScopeVariables(iteratorNames, value, key, items);\n        evaluateKey((value2) => {\n          if (keys.includes(value2))\n            warn(\"Duplicate key on x-for\", el);\n          keys.push(value2);\n        }, { scope: { index: key, ...scope2 } });\n        scopes.push(scope2);\n      });\n    } else {\n      for (let i = 0; i < items.length; i++) {\n        let scope2 = getIterationScopeVariables(iteratorNames, items[i], i, items);\n        evaluateKey((value) => {\n          if (keys.includes(value))\n            warn(\"Duplicate key on x-for\", el);\n          keys.push(value);\n        }, { scope: { index: i, ...scope2 } });\n        scopes.push(scope2);\n      }\n    }\n    let adds = [];\n    let moves = [];\n    let removes = [];\n    let sames = [];\n    for (let i = 0; i < prevKeys.length; i++) {\n      let key = prevKeys[i];\n      if (keys.indexOf(key) === -1)\n        removes.push(key);\n    }\n    prevKeys = prevKeys.filter((key) => !removes.includes(key));\n    let lastKey = \"template\";\n    for (let i = 0; i < keys.length; i++) {\n      let key = keys[i];\n      let prevIndex = prevKeys.indexOf(key);\n      if (prevIndex === -1) {\n        prevKeys.splice(i, 0, key);\n        adds.push([lastKey, i]);\n      } else if (prevIndex !== i) {\n        let keyInSpot = prevKeys.splice(i, 1)[0];\n        let keyForSpot = prevKeys.splice(prevIndex - 1, 1)[0];\n        prevKeys.splice(i, 0, keyForSpot);\n        prevKeys.splice(prevIndex, 0, keyInSpot);\n        moves.push([keyInSpot, keyForSpot]);\n      } else {\n        sames.push(key);\n      }\n      lastKey = key;\n    }\n    for (let i = 0; i < removes.length; i++) {\n      let key = removes[i];\n      if (!!lookup[key]._x_effects) {\n        lookup[key]._x_effects.forEach(dequeueJob);\n      }\n      lookup[key].remove();\n      lookup[key] = null;\n      delete lookup[key];\n    }\n    for (let i = 0; i < moves.length; i++) {\n      let [keyInSpot, keyForSpot] = moves[i];\n      let elInSpot = lookup[keyInSpot];\n      let elForSpot = lookup[keyForSpot];\n      let marker = document.createElement(\"div\");\n      mutateDom(() => {\n        if (!elForSpot)\n          warn(`x-for \":key\" is undefined or invalid`, templateEl, keyForSpot, lookup);\n        elForSpot.after(marker);\n        elInSpot.after(elForSpot);\n        elForSpot._x_currentIfEl && elForSpot.after(elForSpot._x_currentIfEl);\n        marker.before(elInSpot);\n        elInSpot._x_currentIfEl && elInSpot.after(elInSpot._x_currentIfEl);\n        marker.remove();\n      });\n      elForSpot._x_refreshXForScope(scopes[keys.indexOf(keyForSpot)]);\n    }\n    for (let i = 0; i < adds.length; i++) {\n      let [lastKey2, index] = adds[i];\n      let lastEl = lastKey2 === \"template\" ? templateEl : lookup[lastKey2];\n      if (lastEl._x_currentIfEl)\n        lastEl = lastEl._x_currentIfEl;\n      let scope2 = scopes[index];\n      let key = keys[index];\n      let clone2 = document.importNode(templateEl.content, true).firstElementChild;\n      let reactiveScope = reactive(scope2);\n      addScopeToNode(clone2, reactiveScope, templateEl);\n      clone2._x_refreshXForScope = (newScope) => {\n        Object.entries(newScope).forEach(([key2, value]) => {\n          reactiveScope[key2] = value;\n        });\n      };\n      mutateDom(() => {\n        lastEl.after(clone2);\n        skipDuringClone(() => initTree(clone2))();\n      });\n      if (typeof key === \"object\") {\n        warn(\"x-for key cannot be an object, it must be a string or an integer\", templateEl);\n      }\n      lookup[key] = clone2;\n    }\n    for (let i = 0; i < sames.length; i++) {\n      lookup[sames[i]]._x_refreshXForScope(scopes[keys.indexOf(sames[i])]);\n    }\n    templateEl._x_prevKeys = keys;\n  });\n}\nfunction parseForExpression(expression) {\n  let forIteratorRE = /,([^,\\}\\]]*)(?:,([^,\\}\\]]*))?$/;\n  let stripParensRE = /^\\s*\\(|\\)\\s*$/g;\n  let forAliasRE = /([\\s\\S]*?)\\s+(?:in|of)\\s+([\\s\\S]*)/;\n  let inMatch = expression.match(forAliasRE);\n  if (!inMatch)\n    return;\n  let res = {};\n  res.items = inMatch[2].trim();\n  let item = inMatch[1].replace(stripParensRE, \"\").trim();\n  let iteratorMatch = item.match(forIteratorRE);\n  if (iteratorMatch) {\n    res.item = item.replace(forIteratorRE, \"\").trim();\n    res.index = iteratorMatch[1].trim();\n    if (iteratorMatch[2]) {\n      res.collection = iteratorMatch[2].trim();\n    }\n  } else {\n    res.item = item;\n  }\n  return res;\n}\nfunction getIterationScopeVariables(iteratorNames, item, index, items) {\n  let scopeVariables = {};\n  if (/^\\[.*\\]$/.test(iteratorNames.item) && Array.isArray(item)) {\n    let names = iteratorNames.item.replace(\"[\", \"\").replace(\"]\", \"\").split(\",\").map((i) => i.trim());\n    names.forEach((name, i) => {\n      scopeVariables[name] = item[i];\n    });\n  } else if (/^\\{.*\\}$/.test(iteratorNames.item) && !Array.isArray(item) && typeof item === \"object\") {\n    let names = iteratorNames.item.replace(\"{\", \"\").replace(\"}\", \"\").split(\",\").map((i) => i.trim());\n    names.forEach((name) => {\n      scopeVariables[name] = item[name];\n    });\n  } else {\n    scopeVariables[iteratorNames.item] = item;\n  }\n  if (iteratorNames.index)\n    scopeVariables[iteratorNames.index] = index;\n  if (iteratorNames.collection)\n    scopeVariables[iteratorNames.collection] = items;\n  return scopeVariables;\n}\nfunction isNumeric3(subject) {\n  return !Array.isArray(subject) && !isNaN(subject);\n}\n\n// packages/alpinejs/src/directives/x-ref.js\nfunction handler3() {\n}\nhandler3.inline = (el, { expression }, { cleanup: cleanup2 }) => {\n  let root = closestRoot(el);\n  if (!root._x_refs)\n    root._x_refs = {};\n  root._x_refs[expression] = el;\n  cleanup2(() => delete root._x_refs[expression]);\n};\ndirective(\"ref\", handler3);\n\n// packages/alpinejs/src/directives/x-if.js\ndirective(\"if\", (el, { expression }, { effect: effect3, cleanup: cleanup2 }) => {\n  if (el.tagName.toLowerCase() !== \"template\")\n    warn(\"x-if can only be used on a <template> tag\", el);\n  let evaluate2 = evaluateLater(el, expression);\n  let show = () => {\n    if (el._x_currentIfEl)\n      return el._x_currentIfEl;\n    let clone2 = el.content.cloneNode(true).firstElementChild;\n    addScopeToNode(clone2, {}, el);\n    mutateDom(() => {\n      el.after(clone2);\n      skipDuringClone(() => initTree(clone2))();\n    });\n    el._x_currentIfEl = clone2;\n    el._x_undoIf = () => {\n      walk(clone2, (node) => {\n        if (!!node._x_effects) {\n          node._x_effects.forEach(dequeueJob);\n        }\n      });\n      clone2.remove();\n      delete el._x_currentIfEl;\n    };\n    return clone2;\n  };\n  let hide = () => {\n    if (!el._x_undoIf)\n      return;\n    el._x_undoIf();\n    delete el._x_undoIf;\n  };\n  effect3(() => evaluate2((value) => {\n    value ? show() : hide();\n  }));\n  cleanup2(() => el._x_undoIf && el._x_undoIf());\n});\n\n// packages/alpinejs/src/directives/x-id.js\ndirective(\"id\", (el, { expression }, { evaluate: evaluate2 }) => {\n  let names = evaluate2(expression);\n  names.forEach((name) => setIdRoot(el, name));\n});\ninterceptClone((from, to) => {\n  if (from._x_ids) {\n    to._x_ids = from._x_ids;\n  }\n});\n\n// packages/alpinejs/src/directives/x-on.js\nmapAttributes(startingWith(\"@\", into(prefix(\"on:\"))));\ndirective(\"on\", skipDuringClone((el, { value, modifiers, expression }, { cleanup: cleanup2 }) => {\n  let evaluate2 = expression ? evaluateLater(el, expression) : () => {\n  };\n  if (el.tagName.toLowerCase() === \"template\") {\n    if (!el._x_forwardEvents)\n      el._x_forwardEvents = [];\n    if (!el._x_forwardEvents.includes(value))\n      el._x_forwardEvents.push(value);\n  }\n  let removeListener = on(el, value, modifiers, (e) => {\n    evaluate2(() => {\n    }, { scope: { \"$event\": e }, params: [e] });\n  });\n  cleanup2(() => removeListener());\n}));\n\n// packages/alpinejs/src/directives/index.js\nwarnMissingPluginDirective(\"Collapse\", \"collapse\", \"collapse\");\nwarnMissingPluginDirective(\"Intersect\", \"intersect\", \"intersect\");\nwarnMissingPluginDirective(\"Focus\", \"trap\", \"focus\");\nwarnMissingPluginDirective(\"Mask\", \"mask\", \"mask\");\nfunction warnMissingPluginDirective(name, directiveName, slug) {\n  directive(directiveName, (el) => warn(`You can't use [x-${directiveName}] without first installing the \"${name}\" plugin here: https://alpinejs.dev/plugins/${slug}`, el));\n}\n\n// packages/alpinejs/src/index.js\nalpine_default.setEvaluator(normalEvaluator);\nalpine_default.setReactivityEngine({ reactive: reactive2, effect: effect2, release: stop, raw: toRaw });\nvar src_default = alpine_default;\n\n// packages/alpinejs/builds/module.js\nvar module_default = src_default;\nexport {\n  src_default as Alpine,\n  module_default as default\n};\n", "import Alpine from 'alpinejs'\r\n\r\nexport function generateEntangleFunction(component, cleanup) {\r\n    if (! cleanup) cleanup = () => {}\r\n\r\n    return (name, live = false) => {\r\n        let isLive = live\r\n        let livewireProperty = name\r\n        let livewireComponent = component.$wire\r\n        let livewirePropertyValue = livewireComponent.get(livewireProperty)\r\n\r\n        let interceptor = Alpine.interceptor((initialValue, getter, setter, path, key) => {\r\n            // Check to see if the Livewire property exists and if not log a console error\r\n            // and return so everything else keeps running.\r\n            if (typeof livewirePropertyValue === 'undefined') {\r\n                console.error(`Livewire Entangle Error: Livewire property ['${livewireProperty}'] cannot be found on component: ['${component.name}']`)\r\n                return\r\n            }\r\n\r\n                let release = Alpine.entangle({\r\n                    // Outer scope...\r\n                    get() {\r\n                        return livewireComponent.get(name)\r\n                    },\r\n                    set(value) {\r\n                        livewireComponent.set(name, value, isLive)\r\n                    }\r\n                }, {\r\n                    // Inner scope...\r\n                    get() {\r\n                        return getter()\r\n                    },\r\n                    set(value) {\r\n                        setter(value)\r\n                    }\r\n                })\r\n\r\n                cleanup(() => release())\r\n\r\n            return cloneIfObject(livewireComponent.get(name))\r\n        }, obj => {\r\n            Object.defineProperty(obj, 'live', {\r\n                get() {\r\n                    isLive = true\r\n\r\n                    return obj\r\n                }\r\n            })\r\n        })\r\n\r\n        return interceptor(livewirePropertyValue)\r\n    }\r\n}\r\n\r\nfunction cloneIfObject(value) {\r\n    return typeof value === 'object'\r\n        ? JSON.parse(JSON.stringify(value))\r\n        : value\r\n}\r\n", "import { isFunction } from '@/utils'\r\n\r\n/**\r\n * Our internal event listener bus...\r\n */\r\nlet listeners = []\r\n\r\n/**\r\n * Register a callback to run when an event is triggered...\r\n */\r\nexport function on(name, callback) {\r\n    if (! listeners[name]) listeners[name] = []\r\n\r\n    listeners[name].push(callback)\r\n\r\n    // Return an \"off\" callback to remove the listener...\r\n    return () => {\r\n        listeners[name] = listeners[name].filter(i => i !== callback)\r\n    }\r\n}\r\n\r\n/**\r\n * In addition to triggering an event, this method allows you to\r\n * defer running callbacks returned from listeners and pass a\r\n * value through each one so they can act like middleware.\r\n *\r\n * An example of using this combination to the fullest:\r\n *\r\n * // First let's look at the triggering phase:\r\n * let finish = trigger([event name], ...[event params])\r\n *\r\n * return finish([pass-through value])\r\n *\r\n * // Now, let's look at the \"listening\" phase:\r\n * on([event name], (...[event params]) => {\r\n *     // The contents of this callback will be run immediately on trigger.\r\n *\r\n *     return ([pass-through value]) => {\r\n *         // This callback will be run when \"finish()\" is called.\r\n *\r\n *         // The [pass-through value] can be mutated and must\r\n *         // be returned for the next callback to process.\r\n *         return [pass-through value]\r\n *     }\r\n * })\r\n */\r\nexport function trigger(name, ...params) {\r\n    let callbacks = listeners[name] || []\r\n\r\n    let finishers = []\r\n\r\n    for (let i = 0; i < callbacks.length; i++) {\r\n        let finisher = callbacks[i](...params)\r\n\r\n        if (isFunction(finisher)) finishers.push(finisher)\r\n    }\r\n\r\n    return (result) => {\r\n       return runFinishers(finishers, result)\r\n    }\r\n}\r\n\r\nexport async function triggerAsync(name, ...params) {\r\n    let callbacks = listeners[name] || []\r\n\r\n    let finishers = []\r\n\r\n    for (let i = 0; i < callbacks.length; i++) {\r\n        let finisher = await callbacks[i](...params)\r\n\r\n        if (isFunction(finisher)) finishers.push(finisher)\r\n    }\r\n\r\n    return (result) => {\r\n       return runFinishers(finishers, result)\r\n    }\r\n}\r\n\r\nexport function runFinishers(finishers, result)\r\n{\r\n    let latest = result\r\n\r\n    for (let i = 0; i < finishers.length; i++) {\r\n        let iResult = finishers[i](latest)\r\n\r\n        if (iResult !== undefined) {\r\n            latest = iResult\r\n        }\r\n    }\r\n\r\n    return latest\r\n}\r\n", "\r\n// This code and concept is all Jonathan Reinink - thanks main!\r\nexport function showHtmlModal(html) {\r\n    let page = document.createElement('html')\r\n    page.innerHTML = html\r\n    page.querySelectorAll('a').forEach(a =>\r\n        a.setAttribute('target', '_top')\r\n    )\r\n\r\n    let modal = document.getElementById('livewire-error')\r\n\r\n    if (typeof modal != 'undefined' && modal != null) {\r\n        // Modal already exists.\r\n        modal.innerHTML = ''\r\n    } else {\r\n        modal = document.createElement('div')\r\n        modal.id = 'livewire-error'\r\n        modal.style.position = 'fixed'\r\n        modal.style.width = '100vw'\r\n        modal.style.height = '100vh'\r\n        modal.style.padding = '50px'\r\n        modal.style.backgroundColor = 'rgba(0, 0, 0, .6)'\r\n        modal.style.zIndex = 200000\r\n    }\r\n\r\n    let iframe = document.createElement('iframe')\r\n    iframe.style.backgroundColor = '#17161A'\r\n    iframe.style.borderRadius = '5px'\r\n    iframe.style.width = '100%'\r\n    iframe.style.height = '100%'\r\n    modal.appendChild(iframe)\r\n\r\n    document.body.prepend(modal)\r\n    document.body.style.overflow = 'hidden'\r\n    iframe.contentWindow.document.open()\r\n    iframe.contentWindow.document.write(page.outerHTML)\r\n    iframe.contentWindow.document.close()\r\n\r\n    // Close on click.\r\n    modal.addEventListener('click', () => hideHtmlModal(modal))\r\n\r\n    // Close on escape key press.\r\n    modal.setAttribute('tabindex', 0)\r\n    modal.addEventListener('keydown', e => {\r\n        if (e.key === 'Escape') hideHtmlModal(modal)\r\n    })\r\n    modal.focus()\r\n}\r\n\r\nexport function hideHtmlModal(modal) {\r\n    modal.outerHTML = ''\r\n    document.body.style.overflow = 'visible'\r\n}\r\n", "import { sendRequest } from \"@/request\"\r\n\r\n/**\r\n * The RequestPool contains a list of commits to be sent to the server...\r\n */\r\nexport class RequestPool {\r\n    constructor() {\r\n        this.commits = new Set\r\n    }\r\n\r\n    add(commit) {\r\n        this.commits.add(commit)\r\n    }\r\n\r\n    delete(commit) {\r\n        this.commits.delete(commit)\r\n    }\r\n\r\n    hasCommitFor(component) {\r\n        return !! this.findCommitByComponent(component)\r\n    }\r\n\r\n    findCommitByComponent(component) {\r\n        // Determine if this pool already has a commit for this component...\r\n        for (let [idx, commit] of this.commits.entries()) {\r\n            if (commit.component === component) return commit\r\n        }\r\n    }\r\n\r\n    // Determine if a commit should be added to this pool or isolated into its own...\r\n    shouldHoldCommit(commit) {\r\n        return ! commit.isolate\r\n    }\r\n\r\n    empty() {\r\n        return this.commits.size === 0\r\n    }\r\n\r\n    async send() {\r\n        this.prepare()\r\n\r\n        // Send this pool of commits to the server and let the commits\r\n        // Manage their own response actions...\r\n        await sendRequest(this)\r\n    }\r\n\r\n    prepare() {\r\n        // Give each commit a chance to do any last-minute prep\r\n        // before being sent to the server.\r\n        this.commits.forEach(i => i.prepare())\r\n    }\r\n\r\n    payload() {\r\n        // Extract a request payload from each of the commits in this pool...\r\n        let commitPayloads = []\r\n\r\n        // Collect success and failure callbacks to be used inside aggregated callbacks...\r\n        let successReceivers = []\r\n        let failureReceivers = []\r\n\r\n        this.commits.forEach(commit => {\r\n            let [payload, succeed, fail] = commit.toRequestPayload()\r\n\r\n            commitPayloads.push(payload)\r\n            successReceivers.push(succeed)\r\n            failureReceivers.push(fail)\r\n        })\r\n\r\n        // Aggregate the success and failure callbacks for individual commits\r\n        // into something that can be called singularly...\r\n        let succeed = components => successReceivers.forEach(receiver => receiver(components.shift()))\r\n\r\n        let fail = () => failureReceivers.forEach(receiver => receiver())\r\n\r\n        return [ commitPayloads, succeed, fail ]\r\n    }\r\n}\r\n", "import { diff } from '@/utils'\r\nimport { on, trigger } from '@/hooks'\r\n\r\n/**\r\n * A commit represents an individual component updating itself server-side...\r\n */\r\nexport class Commit {\r\n    constructor(component) {\r\n        this.component = component\r\n        this.isolate = false\r\n        this.calls = []\r\n        this.receivers = []\r\n        this.resolvers = []\r\n    }\r\n\r\n    // Add a new resolver to be resolved when a commit is returned from the server...\r\n    addResolver(resolver) {\r\n        this.resolvers.push(resolver)\r\n    }\r\n\r\n    // Add a new action \"call\" to the commit payload...\r\n    addCall(method, params, receiver) {\r\n        this.calls.push({\r\n            path: '', method, params,\r\n            handleReturn(value) {\r\n                receiver(value)\r\n            },\r\n        })\r\n    }\r\n\r\n    prepare() {\r\n        trigger('commit.prepare', { component: this.component })\r\n    }\r\n\r\n    // Generate a JSON-friendly server-request payload...\r\n    toRequestPayload() {\r\n        // Generate a \"diff\" of the current last known server-side state, and\r\n        // the new front-end state so that we can update the server atomically...\r\n        let propertiesDiff = diff(this.component.canonical, this.component.ephemeral)\r\n\r\n        let updates = this.component.mergeQueuedUpdates(propertiesDiff)\r\n\r\n        let payload = {\r\n            snapshot: this.component.snapshotEncoded,\r\n            updates: updates,\r\n            calls: this.calls.map(i => ({\r\n                path: i.path,\r\n                method: i.method,\r\n                params: i.params,\r\n            }))\r\n        }\r\n\r\n        // Store success and failure hooks from commit listeners\r\n        // so they can be aggregated into a singular callback later...\r\n        let succeedCallbacks = []\r\n        let failCallbacks = []\r\n        let respondCallbacks = []\r\n\r\n        let succeed = (fwd) => succeedCallbacks.forEach(i => i(fwd))\r\n        let fail = () => failCallbacks.forEach(i => i())\r\n        let respond = () => respondCallbacks.forEach(i => i())\r\n\r\n        // Allow other areas of the codebase to hook into the lifecycle\r\n        // of an individual commit...\r\n        let finishTarget = trigger('commit', {\r\n            component: this.component,\r\n            commit: payload,\r\n            succeed: (callback) => {\r\n                succeedCallbacks.push(callback)\r\n            },\r\n            fail: (callback) => {\r\n                failCallbacks.push(callback)\r\n            },\r\n            respond: (callback) => {\r\n                respondCallbacks.push(callback)\r\n            },\r\n        })\r\n\r\n        // Handle the response payload for a commit...\r\n        let handleResponse = (response) => {\r\n            let { snapshot, effects } = response\r\n\r\n            respond()\r\n\r\n            // Take the new snapshot and merge it into the existing one...\r\n            this.component.mergeNewSnapshot(snapshot, effects, updates)\r\n\r\n            // Trigger any side effects from the payload like \"morph\" and \"dispatch event\"...\r\n            this.component.processEffects(this.component.effects)\r\n\r\n            if (effects['returns']) {\r\n                let returns = effects['returns']\r\n\r\n                // Here we'll match up returned values with their method call handlers. We need to build up\r\n                // two \"stacks\" of the same length and walk through them together to handle them properly...\r\n                let returnHandlerStack = this.calls.map(({ handleReturn }) => (handleReturn))\r\n\r\n                returnHandlerStack.forEach((handleReturn, index) => {\r\n                    handleReturn(returns[index])\r\n                })\r\n            }\r\n\r\n            let parsedSnapshot = JSON.parse(snapshot)\r\n\r\n            finishTarget({ snapshot: parsedSnapshot, effects })\r\n\r\n            this.resolvers.forEach(i => i())\r\n\r\n            succeed(response)\r\n        }\r\n\r\n        let handleFailure = () => {\r\n            respond()\r\n\r\n            fail()\r\n        }\r\n\r\n        return [payload, handleResponse, handleFailure]\r\n    }\r\n}\r\n", "import { trigger } from '@/hooks'\r\nimport { RequestPool } from './pool'\r\nimport { Commit } from './commit'\r\n\r\n/**\r\n * This bus manages the pooling of multiple commits and sending\r\n * those pools of commits to the server...\r\n */\r\nexport class CommitBus {\r\n    constructor() {\r\n        // A list of loose, un-pooled, commits ready to be pooled and sent to the server...\r\n        this.commits = new Set\r\n\r\n        // A list of commit pools currently out to the server...\r\n        this.pools = new Set\r\n    }\r\n\r\n    add(component) {\r\n        // If this component already has a commit, leave it, otherwise,\r\n        // create a new commit and add it to the list...\r\n        let commit = this.findCommitOr(component, () => {\r\n            let newCommit = new Commit(component)\r\n\r\n            this.commits.add(newCommit)\r\n\r\n            return newCommit\r\n        })\r\n\r\n        // Buffer the sending of a pool for 5ms to account for UI interactions\r\n        // that will trigger multiple events within a few milliseconds of each other.\r\n        // For example, clicking on a button that both unfocuses a field and registers a mousedown...\r\n        bufferPoolingForFiveMs(commit, () => {\r\n            // If this commit is already in a pool, leave it be...\r\n            let pool = this.findPoolWithComponent(commit.component)\r\n\r\n            if (! pool) {\r\n                // If it's not, create a new pool or add it to an existing one and trigger a network request...\r\n                this.createAndSendNewPool()\r\n            }\r\n        })\r\n\r\n        return commit\r\n    }\r\n\r\n    findCommitOr(component, callback) {\r\n        for (let [idx, commit] of this.commits.entries()) {\r\n            if (commit.component === component) {\r\n                return commit\r\n            }\r\n        }\r\n\r\n        return callback()\r\n    }\r\n\r\n    findPoolWithComponent(component) {\r\n        for (let [idx, pool] of this.pools.entries()) {\r\n            if (pool.hasCommitFor(component)) return pool\r\n        }\r\n    }\r\n\r\n    createAndSendNewPool() {\r\n        // Allow features like \"reactive properties\" to initiate associated\r\n        // commits before those commits are pooled for a network request...\r\n        trigger('commit.pooling', { commits: this.commits })\r\n\r\n        // Split commits up across one or multiple pools to be sent as seperate network requests...\r\n        let pools = this.corraleCommitsIntoPools()\r\n\r\n        // Clear all commits in the queue now that they're in pools...\r\n        this.commits.clear()\r\n\r\n        trigger('commit.pooled', { pools })\r\n\r\n        // Go through each pool and...\r\n        pools.forEach(pool => {\r\n            // Ignore empty pools (if other parts of the system have moved commits around different pools)...\r\n            if (pool.empty()) return\r\n\r\n            // Add it to the list of pending pools...\r\n            this.pools.add(pool)\r\n\r\n            // Send it's payload along to the server...\r\n            pool.send().then(() => {\r\n                // When it comes back, remove it from the list...\r\n                this.pools.delete(pool)\r\n\r\n                // Trigger another pooling phase in case commits have\r\n                // been added while the current request was out...\r\n                this.sendAnyQueuedCommits()\r\n            })\r\n        })\r\n    }\r\n\r\n    corraleCommitsIntoPools() {\r\n        let pools = new Set\r\n\r\n        // Go through each commit and assess wether it should be bundled\r\n        // with other commits or sperated into it's own pool (network request)...\r\n        for (let [idx, commit] of this.commits.entries()) {\r\n            let hasFoundPool = false\r\n\r\n            // If an existing pool wants to claim a commit, let it...\r\n            pools.forEach(pool => {\r\n                if (pool.shouldHoldCommit(commit)) {\r\n                    pool.add(commit)\r\n\r\n                    hasFoundPool = true\r\n                }\r\n            })\r\n\r\n            // Otherwise, create a new pool and seed it with this commit...\r\n            if (! hasFoundPool) {\r\n                let newPool = new RequestPool\r\n\r\n                newPool.add(commit)\r\n\r\n                pools.add(newPool)\r\n            }\r\n        }\r\n\r\n        return pools\r\n    }\r\n\r\n    sendAnyQueuedCommits() {\r\n        if (this.commits.size > 0) {\r\n            this.createAndSendNewPool()\r\n        }\r\n    }\r\n}\r\n\r\nlet buffersByCommit = new WeakMap\r\n\r\nfunction bufferPoolingForFiveMs(commit, callback) {\r\n    if (buffersByCommit.has(commit)) return\r\n\r\n    buffersByCommit.set(commit, setTimeout(() => {\r\n        callback()\r\n\r\n        buffersByCommit.delete(commit)\r\n    }, 5))\r\n}\r\n", "import { getCsrfToken, contentIsFromDump, splitDumpFromContent, getUpdateUri } from '@/utils'\r\nimport { trigger, triggerAsync } from '@/hooks'\r\nimport { showHtmlModal } from './modal'\r\nimport { CommitBus } from './bus'\r\n\r\n/**\r\n * This is the bus that manages pooling and sending\r\n * commits to the server as network requests...\r\n */\r\nlet commitBus = new CommitBus\r\n\r\n/**\r\n * Create a commit and trigger a network request...\r\n */\r\nexport async function requestCommit(component) {\r\n    let commit = commitBus.add(component)\r\n\r\n    let promise = new Promise((resolve) => {\r\n        commit.addResolver(resolve)\r\n    })\r\n\r\n    promise.commit = commit\r\n\r\n    return promise\r\n}\r\n\r\n/**\r\n * Create a commit with an \"action\" call and trigger a network request...\r\n */\r\nexport async function requestCall(component, method, params) {\r\n    let commit = commitBus.add(component)\r\n\r\n    let promise = new Promise((resolve) => {\r\n        commit.addCall(method, params, value => resolve(value))\r\n    })\r\n\r\n    promise.commit = commit\r\n\r\n    return promise\r\n}\r\n\r\n/**\r\n * Send a pool of commits to the server over HTTP...\r\n */\r\nexport async function sendRequest(pool) {\r\n    let [payload, handleSuccess, handleFailure] = pool.payload()\r\n\r\n    let options = {\r\n        method: 'POST',\r\n        body: JSON.stringify({\r\n            _token: getCsrfToken(),\r\n            components: payload,\r\n        }),\r\n        headers: {\r\n            'Content-type': 'application/json',\r\n            'X-Livewire': '',\r\n        },\r\n    }\r\n\r\n    let succeedCallbacks = []\r\n    let failCallbacks = []\r\n    let respondCallbacks = []\r\n\r\n    let succeed = (fwd) => succeedCallbacks.forEach(i => i(fwd))\r\n    let fail = (fwd) => failCallbacks.forEach(i => i(fwd))\r\n    let respond = (fwd) => respondCallbacks.forEach(i => i(fwd))\r\n\r\n    let finishProfile = trigger('request.profile', options)\r\n\r\n    let updateUri = getUpdateUri()\r\n\r\n    trigger('request', {\r\n        url: updateUri,\r\n        options,\r\n        payload: options.body,\r\n        respond: i => respondCallbacks.push(i),\r\n        succeed: i => succeedCallbacks.push(i),\r\n        fail: i => failCallbacks.push(i),\r\n    })\r\n\r\n    let response\r\n\r\n    try {\r\n        response = await fetch(updateUri, options)\r\n    } catch (e) {\r\n        // If something went wrong with the fetch (particularly\r\n        // this would happen if the connection went offline)\r\n        // fail with a 503 and allow Livewire to clean up\r\n\r\n        finishProfile({ content: '{}', failed: true })\r\n\r\n        handleFailure()\r\n\r\n        fail({\r\n            status: 503,\r\n            content: null,\r\n            preventDefault: () => {},\r\n        })\r\n\r\n        return\r\n    }\r\n\r\n    let mutableObject = {\r\n        status: response.status,\r\n        response,\r\n    }\r\n\r\n    respond(mutableObject)\r\n\r\n    response = mutableObject.response\r\n\r\n    let content = await response.text()\r\n\r\n    // Handle error response...\r\n    if (! response.ok) {\r\n        finishProfile({ content: '{}', failed: true })\r\n\r\n        let preventDefault = false\r\n\r\n        handleFailure()\r\n\r\n        fail({\r\n            status: response.status,\r\n            content,\r\n            preventDefault: () => preventDefault = true,\r\n        })\r\n\r\n        if (preventDefault) return\r\n\r\n        if (response.status === 419) {\r\n            handlePageExpiry()\r\n        }\r\n\r\n        return showFailureModal(content)\r\n    }\r\n\r\n    /**\r\n     * Sometimes a redirect happens on the backend outside of Livewire's control,\r\n     * for example to a login page from a middleware, so we will just redirect\r\n     * to that page.\r\n     */\r\n    if (response.redirected) {\r\n        window.location.href = response.url\r\n    }\r\n\r\n    /**\r\n     * Sometimes a response will be prepended with html to render a dump, so we\r\n     * will seperate the dump html from Livewire's JSON response content and\r\n     * render the dump in a modal and allow Livewire to continue with the\r\n     * request.\r\n     */\r\n    if (contentIsFromDump(content)) {\r\n        let dump\r\n        [dump, content] = splitDumpFromContent(content)\r\n\r\n        showHtmlModal(dump)\r\n\r\n        finishProfile({ content: '{}', failed: true })\r\n    } else {\r\n        finishProfile({ content, failed: false })\r\n    }\r\n\r\n    let { components, assets } = JSON.parse(content)\r\n\r\n    await triggerAsync('payload.intercept', { components, assets })\r\n\r\n    await handleSuccess(components)\r\n\r\n    succeed({ status: response.status, json: JSON.parse(content) })\r\n}\r\n\r\nfunction handlePageExpiry() {\r\n    confirm(\r\n        'This page has expired.\\nWould you like to refresh the page?'\r\n    ) && window.location.reload()\r\n}\r\n\r\nfunction showFailureModal(content) {\r\n    let html = content\r\n\r\n    showHtmlModal(html)\r\n}\r\n", "import { cancelUpload, removeUpload, upload, uploadMultiple } from './features/supportFileUploads'\r\nimport { dispatch, dispatchSelf, dispatchTo, listen } from '@/events'\r\nimport { generateEntangleFunction } from '@/features/supportEntangle'\r\nimport { closestComponent } from '@/store'\r\nimport { requestCommit, requestCall } from '@/request'\r\nimport { dataGet, dataSet } from '@/utils'\r\nimport Alpine from 'alpinejs'\r\n\r\nlet properties = {}\r\nlet fallback\r\n\r\nfunction wireProperty(name, callback, component = null) {\r\n    properties[name] = callback\r\n}\r\n\r\nfunction wireFallback(callback) {\r\n    fallback = callback\r\n}\r\n\r\n// For V2 backwards compatibility...\r\n// And I actually like both depending on the scenario...\r\nlet aliases = {\r\n    'on': '$on',\r\n    'el': '$el',\r\n    'id': '$id',\r\n    'get': '$get',\r\n    'set': '$set',\r\n    'call': '$call',\r\n    'commit': '$commit',\r\n    'watch': '$watch',\r\n    'entangle': '$entangle',\r\n    'dispatch': '$dispatch',\r\n    'dispatchTo': '$dispatchTo',\r\n    'dispatchSelf': '$dispatchSelf',\r\n    'upload': '$upload',\r\n    'uploadMultiple': '$uploadMultiple',\r\n    'removeUpload': '$removeUpload',\r\n    'cancelUpload': '$cancelUpload',\r\n}\r\n\r\nexport function generateWireObject(component, state) {\r\n    return new Proxy({}, {\r\n        get(target, property) {\r\n            if (property === '__instance') return component\r\n\r\n            if (property in aliases) {\r\n                return getProperty(component, aliases[property])\r\n            } else if (property in properties) {\r\n                return getProperty(component, property)\r\n            } else if (property in state) {\r\n                return state[property]\r\n            } else if (! ['then'].includes(property)) {\r\n                return getFallback(component)(property)\r\n            }\r\n        },\r\n\r\n        set(target, property, value) {\r\n            if (property in state) {\r\n                state[property] = value\r\n            }\r\n\r\n            return true\r\n        },\r\n    })\r\n}\r\n\r\nfunction getProperty(component, name) {\r\n    return properties[name](component)\r\n}\r\n\r\nfunction getFallback(component) {\r\n    return fallback(component)\r\n}\r\n\r\nAlpine.magic('wire', (el, { cleanup }) => {\r\n    // Purposely initializing an empty variable here is a \"memo\"\r\n    // so that a component is lazy-loaded when using $wire from Alpine...\r\n    let component\r\n\r\n    // Override $wire methods that need to be cleaned up when\r\n    // and element is removed. For example, `x-data=\"{ foo: $wire.entangle(...) }\"`:\r\n    // we would want the entangle effect freed if the element was removed from the DOM...\r\n    return new Proxy({}, {\r\n        get(target, property) {\r\n            if (! component) component = closestComponent(el)\r\n\r\n            if (['$entangle', 'entangle'].includes(property)) {\r\n                return generateEntangleFunction(component, cleanup)\r\n            }\r\n\r\n            return component.$wire[property]\r\n        },\r\n\r\n        set(target, property, value) {\r\n            if (! component) component = closestComponent(el)\r\n\r\n            component.$wire[property] = value\r\n\r\n            return true\r\n        },\r\n    })\r\n})\r\n\r\nwireProperty('__instance', (component) => component)\r\n\r\nwireProperty('$get', (component) => (property, reactive = true) => dataGet(reactive ? component.reactive : component.ephemeral, property))\r\n\r\nwireProperty('$el', (component) => {\r\n    return component.el\r\n})\r\n\r\nwireProperty('$id', (component) => {\r\n    return component.id\r\n})\r\n\r\nwireProperty('$set', (component) => async (property, value, live = true) => {\r\n    dataSet(component.reactive, property, value)\r\n\r\n    // If \"live\", send a request, queueing the property update to happen first\r\n    // on the server, then trickle back down to the client and get merged...\r\n    if (live) {\r\n        component.queueUpdate(property, value)\r\n\r\n        return await requestCommit(component)\r\n    }\r\n\r\n    return Promise.resolve()\r\n})\r\n\r\nwireProperty('$call', (component) => async (method, ...params) => {\r\n    return await component.$wire[method](...params)\r\n})\r\n\r\nwireProperty('$entangle', (component) => (name, live = false) => {\r\n    return generateEntangleFunction(component)(name, live)\r\n})\r\n\r\nwireProperty('$toggle', (component) => (name, live = true) => {\r\n    return component.$wire.set(name, ! component.$wire.get(name), live)\r\n})\r\n\r\nwireProperty('$watch', (component) => (path, callback) => {\r\n    let firstTime = true\r\n    let oldValue = undefined\r\n\r\n   Alpine.effect(() => {\r\n    // JSON.stringify touches every single property at any level enabling deep watching\r\n        let value = dataGet(component.reactive, path)\r\n        JSON.stringify(value)\r\n\r\n        if (! firstTime) {\r\n            // We have to queue this watcher as a microtask so that\r\n            // the watcher doesn't pick up its own dependencies.\r\n            queueMicrotask(() => {\r\n                callback(value, oldValue)\r\n\r\n                oldValue = value\r\n            })\r\n        } else {\r\n            oldValue = value\r\n        }\r\n\r\n        firstTime = false\r\n    })\r\n})\r\n\r\nwireProperty('$refresh', (component) => component.$wire.$commit)\r\nwireProperty('$commit', (component) => async () => await requestCommit(component))\r\n\r\nwireProperty('$on', (component) => (...params) => listen(component, ...params))\r\n\r\nwireProperty('$dispatch', (component) => (...params) => dispatch(component, ...params))\r\nwireProperty('$dispatchSelf', (component) => (...params) => dispatchSelf(component, ...params))\r\nwireProperty('$dispatchTo', () => (...params) => dispatchTo(...params))\r\nwireProperty('$upload', (component) => (...params) => upload(component, ...params))\r\nwireProperty('$uploadMultiple', (component) => (...params) => uploadMultiple(component, ...params))\r\nwireProperty('$removeUpload', (component) => (...params) => removeUpload(component, ...params))\r\nwireProperty('$cancelUpload', (component) => (...params) => cancelUpload(component, ...params))\r\n\r\nlet parentMemo = new WeakMap\r\n\r\nwireProperty('$parent', component => {\r\n    if (parentMemo.has(component)) return parentMemo.get(component).$wire\r\n\r\n    let parent = closestComponent(component.el.parentElement)\r\n\r\n    parentMemo.set(component, parent)\r\n\r\n    return parent.$wire\r\n})\r\n\r\nlet overriddenMethods = new WeakMap\r\n\r\nexport function overrideMethod(component, method, callback) {\r\n    if (! overriddenMethods.has(component)) {\r\n        overriddenMethods.set(component, {})\r\n    }\r\n\r\n    let obj = overriddenMethods.get(component)\r\n\r\n    obj[method] = callback\r\n\r\n    overriddenMethods.set(component, obj)\r\n}\r\n\r\nwireFallback((component) => (property) => async (...params) => {\r\n    // If this method is passed directly to a Vue or Alpine\r\n    // event listener (@click=\"someMethod\") without using\r\n    // parens, strip out the automatically added event.\r\n    if (params.length === 1 && params[0] instanceof Event) {\r\n        params = []\r\n    }\r\n\r\n    if (overriddenMethods.has(component)) {\r\n        let overrides = overriddenMethods.get(component)\r\n\r\n        if (typeof overrides[property] === 'function') {\r\n            return overrides[property](params)\r\n        }\r\n    }\r\n\r\n    return await requestCall(component, property, params)\r\n})\r\n", "import { dataSet, deepClone, diff, extractData} from '@/utils'\r\nimport { generateWireObject } from '@/$wire'\r\nimport { findComponent } from '@/store'\r\nimport { trigger } from '@/hooks'\r\n\r\nexport class Component {\r\n    constructor(el) {\r\n        if (el.__livewire) throw 'Component already initialized';\r\n\r\n        el.__livewire = this\r\n\r\n        this.el = el\r\n\r\n        this.id = el.getAttribute('wire:id')\r\n\r\n        this.__livewireId = this.id // @legacy\r\n\r\n        this.snapshotEncoded = el.getAttribute('wire:snapshot')\r\n\r\n        this.snapshot = JSON.parse(this.snapshotEncoded)\r\n\r\n        if (! this.snapshot) {\r\n            throw `Snapshot missing on Livewire component with id: ` + this.id\r\n        }\r\n\r\n        this.name = this.snapshot.memo.name\r\n\r\n        this.effects = JSON.parse(el.getAttribute('wire:effects'))\r\n        this.originalEffects = deepClone(this.effects)\r\n\r\n        // \"canonical\" data represents the last known server state.\r\n        this.canonical = extractData(deepClone(this.snapshot.data))\r\n        // \"ephemeral\" represents the most current state. (This can be freely manipulated by end users)\r\n        this.ephemeral = extractData(deepClone(this.snapshot.data))\r\n        // \"reactive\" is just ephemeral, except when you mutate it, front-ends like Vue react.\r\n        this.reactive = Alpine.reactive(this.ephemeral)\r\n\r\n        this.queuedUpdates = {}\r\n\r\n        // this.$wire = this.reactive\r\n        this.$wire = generateWireObject(this, this.reactive)\r\n\r\n        this.cleanups = []\r\n\r\n        // Effects will be processed after every request, but we'll also handle them on initialization.\r\n        this.processEffects(this.effects)\r\n    }\r\n\r\n    mergeNewSnapshot(snapshotEncoded, effects, updates = {}) {\r\n        let snapshot = JSON.parse(snapshotEncoded)\r\n\r\n        let oldCanonical = deepClone(this.canonical)\r\n        let updatedOldCanonical = this.applyUpdates(oldCanonical, updates)\r\n\r\n        let newCanonical = extractData(deepClone(snapshot.data))\r\n\r\n        let dirty = diff(updatedOldCanonical, newCanonical)\r\n\r\n        this.snapshotEncoded = snapshotEncoded\r\n\r\n        this.snapshot = snapshot\r\n\r\n        this.effects = effects\r\n\r\n        this.canonical = extractData(deepClone(snapshot.data))\r\n\r\n        let newData = extractData(deepClone(snapshot.data))\r\n\r\n        Object.entries(dirty).forEach(([key, value]) => {\r\n            let rootKey = key.split('.')[0]\r\n            this.reactive[rootKey] = newData[rootKey]\r\n        })\r\n        // Object.entries(this.ephemeral).forEach(([key, value]) => {\r\n        //     if (! deeplyEqual(this.ephemeral[key], newData[key])) {\r\n        //         this.reactive[key] = newData[key]\r\n        //     }\r\n        // })\r\n\r\n        return dirty\r\n    }\r\n\r\n    queueUpdate(propertyName, value) {\r\n        // These updates will be applied first on the server\r\n        // on the next request, then trickle back to the\r\n        // client on the next request that gets sent.\r\n        this.queuedUpdates[propertyName] = value\r\n    }\r\n\r\n    mergeQueuedUpdates(diff) {\r\n        // Before adding queuedUpdates into the diff list, we will remove any diffs\r\n        // that will be overriden by the queued update. Queued updates will take\r\n        // priority against ephemeral updates that have happend since them...\r\n        Object.entries(this.queuedUpdates).forEach(([updateKey, updateValue]) => {\r\n            Object.entries(diff).forEach(([diffKey, diffValue]) => {\r\n                if (diffKey.startsWith(updateValue)) {\r\n                    delete diff[diffKey]\r\n                }\r\n            })\r\n\r\n            diff[updateKey] = updateValue\r\n        })\r\n\r\n        this.queuedUpdates = []\r\n\r\n        return diff\r\n    }\r\n\r\n    applyUpdates(object, updates) {\r\n        for (let key in updates) {\r\n            dataSet(object, key, updates[key])\r\n        }\r\n\r\n        return object\r\n    }\r\n\r\n    replayUpdate(snapshot, html) {\r\n        let effects = { ...this.effects, html}\r\n\r\n        this.mergeNewSnapshot(JSON.stringify(snapshot), effects)\r\n\r\n        this.processEffects({ html })\r\n    }\r\n\r\n    /**\r\n     * Here we'll take the new state and side effects from the\r\n     * server and use them to update the existing data that\r\n     * users interact with, triggering reactive effects.\r\n     */\r\n    processEffects(effects) {\r\n        // This is for BC.\r\n        trigger('effects', this, effects)\r\n\r\n        trigger('effect', {\r\n            component: this,\r\n            effects,\r\n            cleanup: i => this.addCleanup(i)\r\n        })\r\n    }\r\n\r\n    get children() {\r\n        let meta = this.snapshot.memo\r\n        let childIds = Object.values(meta.children).map(i => i[1])\r\n\r\n        return childIds.map(id => findComponent(id))\r\n    }\r\n\r\n    inscribeSnapshotAndEffectsOnElement() {\r\n        let el = this.el\r\n\r\n        el.setAttribute('wire:snapshot', this.snapshotEncoded)\r\n\r\n        // We need to re-register any event listeners that were originally registered...\r\n        let effects = this.originalEffects.listeners\r\n            ? { listeners: this.originalEffects.listeners }\r\n            : {}\r\n\r\n        // We need to re-register any url/query-string bindings...\r\n        if (this.originalEffects.url) {\r\n            effects.url = this.originalEffects.url\r\n        }\r\n\r\n        el.setAttribute('wire:effects', JSON.stringify(effects))\r\n    }\r\n\r\n    addCleanup(cleanup) {\r\n        this.cleanups.push(cleanup)\r\n    }\r\n\r\n    cleanup() {\r\n        delete this.el.__livewire\r\n\r\n        while (this.cleanups.length > 0) {\r\n            this.cleanups.pop()()\r\n        }\r\n    }\r\n}\r\n", "import { Component } from \"@/component\";\r\nimport { trigger } from \"@/hooks\";\r\n\r\nlet components = {}\r\n\r\nexport function initComponent(el) {\r\n    let component = new Component(el)\r\n\r\n    if (components[component.id]) throw 'Component already registered'\r\n\r\n    let cleanup = (i) => component.addCleanup(i)\r\n\r\n    trigger('component.init', { component, cleanup })\r\n\r\n    components[component.id] = component\r\n\r\n    return component\r\n}\r\n\r\nexport function destroyComponent(id) {\r\n    let component = components[id]\r\n\r\n    if (! component) return\r\n\r\n    component.cleanup()\r\n\r\n    delete components[id]\r\n}\r\n\r\nexport function hasComponent(id) {\r\n    return !! components[id]\r\n}\r\n\r\nexport function findComponent(id) {\r\n    let component = components[id]\r\n\r\n    if (! component) throw 'Component not found: ' + id\r\n\r\n    return component\r\n}\r\n\r\nexport function closestComponent(el, strict = true) {\r\n    let closestRoot = Alpine.findClosest(el, i => i.__livewire)\r\n\r\n    if (! closestRoot) {\r\n        if (strict) throw \"Could not find Livewire component in DOM tree\"\r\n\r\n        return\r\n    }\r\n\r\n    return closestRoot.__livewire\r\n}\r\n\r\nexport function componentsByName(name) {\r\n    return Object.values(components).filter(component => {\r\n        return name == component.name\r\n    })\r\n}\r\n\r\nexport function getByName(name) {\r\n    return componentsByName(name).map(i => i.$wire)\r\n}\r\n\r\nexport function find(id) {\r\n    let component = components[id]\r\n\r\n    return component && component.$wire\r\n}\r\n\r\nexport function first() {\r\n    return Object.values(components)[0].$wire\r\n}\r\n\r\nexport function all() {\r\n    return Object.values(components)\r\n}\r\n", "import { componentsByName } from \"@/store\"\r\n\r\nexport function dispatch(component, name, params) {\r\n    dispatchEvent(component.el, name, params)\r\n}\r\n\r\nexport function dispatchGlobal(name, params) {\r\n    dispatchEvent(window, name, params)\r\n}\r\n\r\nexport function dispatchSelf(component, name, params) {\r\n    dispatchEvent(component.el, name, params, false)\r\n}\r\n\r\nexport function dispatchTo(componentName, name, params) {\r\n    let targets = componentsByName(componentName)\r\n\r\n    targets.forEach(target => {\r\n        dispatchEvent(target.el, name, params, false)\r\n    })\r\n}\r\n\r\nexport function listen(component, name, callback) {\r\n    component.el.addEventListener(name, e => {\r\n        callback(e.detail)\r\n    })\r\n}\r\n\r\nexport function on(eventName, callback) {\r\n    let handler = (e) => {\r\n        // Implemented for backwards compatibility...\r\n        if (! e.__livewire) return\r\n\r\n        callback(e.detail)\r\n    }\r\n\r\n    window.addEventListener(eventName, handler)\r\n\r\n    return () => {\r\n        window.removeEventListener(eventName, handler)\r\n    }\r\n}\r\n\r\nfunction dispatchEvent(target, name, params, bubbles = true) {\r\n    let e = new CustomEvent(name, { bubbles, detail: params })\r\n\r\n    e.__livewire = { name, params, receivedBy: [] }\r\n\r\n    target.dispatchEvent(e)\r\n}\r\n", "import { on } from './hooks'\r\n\r\nexport function matchesForLivewireDirective(attributeName) {\r\n    return attributeName.match(new RegExp('wire:'))\r\n}\r\n\r\nexport function extractDirective(el, name) {\r\n    let [value, ...modifiers] = name.replace(new RegExp('wire:'), '').split('.')\r\n\r\n    return new Directive(value, modifiers, name, el)\r\n}\r\n\r\nexport function directive(name, callback) {\r\n    on('directive.init', ({ el, component, directive, cleanup }) => {\r\n        if (directive.value === name) {\r\n            callback({\r\n                el, directive, component, cleanup\r\n            })\r\n        }\r\n    })\r\n}\r\n\r\nexport function getDirectives(el) {\r\n    return new DirectiveManager(el)\r\n}\r\n\r\nclass DirectiveManager {\r\n    constructor(el) {\r\n        this.el = el\r\n        this.directives = this.extractTypeModifiersAndValue()\r\n    }\r\n\r\n    all() {\r\n        return this.directives\r\n    }\r\n\r\n    has(value) {\r\n        return this.directives.map(directive => directive.value).includes(value)\r\n    }\r\n\r\n    missing(value) {\r\n        return ! this.has(value)\r\n    }\r\n\r\n    get(value) {\r\n        return this.directives.find(directive => directive.value === value)\r\n    }\r\n\r\n    extractTypeModifiersAndValue() {\r\n        return Array.from(this.el.getAttributeNames()\r\n            // Filter only the livewire directives.\r\n            .filter(name => matchesForLivewireDirective(name))\r\n            // Parse out the type, modifiers, and value from it.\r\n            .map(name => extractDirective(this.el, name)))\r\n    }\r\n}\r\n\r\nexport class Directive {\r\n    constructor(value, modifiers, rawName, el) {\r\n        this.rawName = this.raw = rawName\r\n        this.el = el\r\n        this.eventContext\r\n\r\n        this.value = value\r\n        this.modifiers = modifiers\r\n        this.expression = this.el.getAttribute(this.rawName)\r\n    }\r\n\r\n    get method() {\r\n        const { method } = this.parseOutMethodAndParams(this.expression)\r\n\r\n        return method\r\n    }\r\n\r\n    get params() {\r\n        const { params } = this.parseOutMethodAndParams(this.expression)\r\n\r\n        return params\r\n    }\r\n\r\n    parseOutMethodAndParams(rawMethod) {\r\n        let method = rawMethod\r\n        let params = []\r\n        const methodAndParamString = method.match(/(.*?)\\((.*)\\)/s)\r\n\r\n        if (methodAndParamString) {\r\n            method = methodAndParamString[1]\r\n\r\n            // Use a function that returns it's arguments to parse and eval all params\r\n            // This \"$event\" is for use inside the livewire event handler.\r\n            let func = new Function('$event', `return (function () {\r\n                for (var l=arguments.length, p=new Array(l), k=0; k<l; k++) {\r\n                    p[k] = arguments[k];\r\n                }\r\n                return [].concat(p);\r\n            })(${methodAndParamString[2]})`)\r\n\r\n            params = func(this.eventContext)\r\n        }\r\n\r\n        return { method, params }\r\n    }\r\n}\r\n", "// packages/collapse/src/index.js\nfunction src_default(Alpine) {\n  Alpine.directive(\"collapse\", collapse);\n  collapse.inline = (el, { modifiers }) => {\n    if (!modifiers.includes(\"min\"))\n      return;\n    el._x_doShow = () => {\n    };\n    el._x_doHide = () => {\n    };\n  };\n  function collapse(el, { modifiers }) {\n    let duration = modifierValue(modifiers, \"duration\", 250) / 1e3;\n    let floor = modifierValue(modifiers, \"min\", 0);\n    let fullyHide = !modifiers.includes(\"min\");\n    if (!el._x_isShown)\n      el.style.height = `${floor}px`;\n    if (!el._x_isShown && fullyHide)\n      el.hidden = true;\n    if (!el._x_isShown)\n      el.style.overflow = \"hidden\";\n    let setFunction = (el2, styles) => {\n      let revertFunction = Alpine.setStyles(el2, styles);\n      return styles.height ? () => {\n      } : revertFunction;\n    };\n    let transitionStyles = {\n      transitionProperty: \"height\",\n      transitionDuration: `${duration}s`,\n      transitionTimingFunction: \"cubic-bezier(0.4, 0.0, 0.2, 1)\"\n    };\n    el._x_transition = {\n      in(before = () => {\n      }, after = () => {\n      }) {\n        if (fullyHide)\n          el.hidden = false;\n        if (fullyHide)\n          el.style.display = null;\n        let current = el.getBoundingClientRect().height;\n        el.style.height = \"auto\";\n        let full = el.getBoundingClientRect().height;\n        if (current === full) {\n          current = floor;\n        }\n        Alpine.transition(el, Alpine.setStyles, {\n          during: transitionStyles,\n          start: { height: current + \"px\" },\n          end: { height: full + \"px\" }\n        }, () => el._x_isShown = true, () => {\n          if (el.getBoundingClientRect().height == full) {\n            el.style.overflow = null;\n          }\n        });\n      },\n      out(before = () => {\n      }, after = () => {\n      }) {\n        let full = el.getBoundingClientRect().height;\n        Alpine.transition(el, setFunction, {\n          during: transitionStyles,\n          start: { height: full + \"px\" },\n          end: { height: floor + \"px\" }\n        }, () => el.style.overflow = \"hidden\", () => {\n          el._x_isShown = false;\n          if (el.style.height == `${floor}px` && fullyHide) {\n            el.style.display = \"none\";\n            el.hidden = true;\n          }\n        });\n      }\n    };\n  }\n}\nfunction modifierValue(modifiers, key, fallback) {\n  if (modifiers.indexOf(key) === -1)\n    return fallback;\n  const rawValue = modifiers[modifiers.indexOf(key) + 1];\n  if (!rawValue)\n    return fallback;\n  if (key === \"duration\") {\n    let match = rawValue.match(/([0-9]+)ms/);\n    if (match)\n      return match[1];\n  }\n  if (key === \"min\") {\n    let match = rawValue.match(/([0-9]+)px/);\n    if (match)\n      return match[1];\n  }\n  return rawValue;\n}\n\n// packages/collapse/builds/module.js\nvar module_default = src_default;\nexport {\n  src_default as collapse,\n  module_default as default\n};\n", "// node_modules/tabbable/dist/index.esm.js\nvar candidateSelectors = [\"input\", \"select\", \"textarea\", \"a[href]\", \"button\", \"[tabindex]:not(slot)\", \"audio[controls]\", \"video[controls]\", '[contenteditable]:not([contenteditable=\"false\"])', \"details>summary:first-of-type\", \"details\"];\nvar candidateSelector = /* @__PURE__ */ candidateSelectors.join(\",\");\nvar NoElement = typeof Element === \"undefined\";\nvar matches = NoElement ? function() {\n} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\nvar getRootNode = !NoElement && Element.prototype.getRootNode ? function(element) {\n  return element.getRootNode();\n} : function(element) {\n  return element.ownerDocument;\n};\nvar getCandidates = function getCandidates2(el, includeContainer, filter) {\n  var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));\n  if (includeContainer && matches.call(el, candidateSelector)) {\n    candidates.unshift(el);\n  }\n  candidates = candidates.filter(filter);\n  return candidates;\n};\nvar getCandidatesIteratively = function getCandidatesIteratively2(elements, includeContainer, options) {\n  var candidates = [];\n  var elementsToCheck = Array.from(elements);\n  while (elementsToCheck.length) {\n    var element = elementsToCheck.shift();\n    if (element.tagName === \"SLOT\") {\n      var assigned = element.assignedElements();\n      var content = assigned.length ? assigned : element.children;\n      var nestedCandidates = getCandidatesIteratively2(content, true, options);\n      if (options.flatten) {\n        candidates.push.apply(candidates, nestedCandidates);\n      } else {\n        candidates.push({\n          scope: element,\n          candidates: nestedCandidates\n        });\n      }\n    } else {\n      var validCandidate = matches.call(element, candidateSelector);\n      if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {\n        candidates.push(element);\n      }\n      var shadowRoot = element.shadowRoot || // check for an undisclosed shadow\n      typeof options.getShadowRoot === \"function\" && options.getShadowRoot(element);\n      var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);\n      if (shadowRoot && validShadowRoot) {\n        var _nestedCandidates = getCandidatesIteratively2(shadowRoot === true ? element.children : shadowRoot.children, true, options);\n        if (options.flatten) {\n          candidates.push.apply(candidates, _nestedCandidates);\n        } else {\n          candidates.push({\n            scope: element,\n            candidates: _nestedCandidates\n          });\n        }\n      } else {\n        elementsToCheck.unshift.apply(elementsToCheck, element.children);\n      }\n    }\n  }\n  return candidates;\n};\nvar getTabindex = function getTabindex2(node, isScope) {\n  if (node.tabIndex < 0) {\n    if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute(\"tabindex\"), 10))) {\n      return 0;\n    }\n  }\n  return node.tabIndex;\n};\nvar sortOrderedTabbables = function sortOrderedTabbables2(a, b) {\n  return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;\n};\nvar isInput = function isInput2(node) {\n  return node.tagName === \"INPUT\";\n};\nvar isHiddenInput = function isHiddenInput2(node) {\n  return isInput(node) && node.type === \"hidden\";\n};\nvar isDetailsWithSummary = function isDetailsWithSummary2(node) {\n  var r = node.tagName === \"DETAILS\" && Array.prototype.slice.apply(node.children).some(function(child) {\n    return child.tagName === \"SUMMARY\";\n  });\n  return r;\n};\nvar getCheckedRadio = function getCheckedRadio2(nodes, form) {\n  for (var i = 0; i < nodes.length; i++) {\n    if (nodes[i].checked && nodes[i].form === form) {\n      return nodes[i];\n    }\n  }\n};\nvar isTabbableRadio = function isTabbableRadio2(node) {\n  if (!node.name) {\n    return true;\n  }\n  var radioScope = node.form || getRootNode(node);\n  var queryRadios = function queryRadios2(name) {\n    return radioScope.querySelectorAll('input[type=\"radio\"][name=\"' + name + '\"]');\n  };\n  var radioSet;\n  if (typeof window !== \"undefined\" && typeof window.CSS !== \"undefined\" && typeof window.CSS.escape === \"function\") {\n    radioSet = queryRadios(window.CSS.escape(node.name));\n  } else {\n    try {\n      radioSet = queryRadios(node.name);\n    } catch (err) {\n      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\", err.message);\n      return false;\n    }\n  }\n  var checked = getCheckedRadio(radioSet, node.form);\n  return !checked || checked === node;\n};\nvar isRadio = function isRadio2(node) {\n  return isInput(node) && node.type === \"radio\";\n};\nvar isNonTabbableRadio = function isNonTabbableRadio2(node) {\n  return isRadio(node) && !isTabbableRadio(node);\n};\nvar isZeroArea = function isZeroArea2(node) {\n  var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;\n  return width === 0 && height === 0;\n};\nvar isHidden = function isHidden2(node, _ref) {\n  var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;\n  if (getComputedStyle(node).visibility === \"hidden\") {\n    return true;\n  }\n  var isDirectSummary = matches.call(node, \"details>summary:first-of-type\");\n  var nodeUnderDetails = isDirectSummary ? node.parentElement : node;\n  if (matches.call(nodeUnderDetails, \"details:not([open]) *\")) {\n    return true;\n  }\n  var nodeRootHost = getRootNode(node).host;\n  var nodeIsAttached = (nodeRootHost === null || nodeRootHost === void 0 ? void 0 : nodeRootHost.ownerDocument.contains(nodeRootHost)) || node.ownerDocument.contains(node);\n  if (!displayCheck || displayCheck === \"full\") {\n    if (typeof getShadowRoot === \"function\") {\n      var originalNode = node;\n      while (node) {\n        var parentElement = node.parentElement;\n        var rootNode = getRootNode(node);\n        if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true) {\n          return isZeroArea(node);\n        } else if (node.assignedSlot) {\n          node = node.assignedSlot;\n        } else if (!parentElement && rootNode !== node.ownerDocument) {\n          node = rootNode.host;\n        } else {\n          node = parentElement;\n        }\n      }\n      node = originalNode;\n    }\n    if (nodeIsAttached) {\n      return !node.getClientRects().length;\n    }\n  } else if (displayCheck === \"non-zero-area\") {\n    return isZeroArea(node);\n  }\n  return false;\n};\nvar isDisabledFromFieldset = function isDisabledFromFieldset2(node) {\n  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {\n    var parentNode = node.parentElement;\n    while (parentNode) {\n      if (parentNode.tagName === \"FIELDSET\" && parentNode.disabled) {\n        for (var i = 0; i < parentNode.children.length; i++) {\n          var child = parentNode.children.item(i);\n          if (child.tagName === \"LEGEND\") {\n            return matches.call(parentNode, \"fieldset[disabled] *\") ? true : !child.contains(node);\n          }\n        }\n        return true;\n      }\n      parentNode = parentNode.parentElement;\n    }\n  }\n  return false;\n};\nvar isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable2(options, node) {\n  if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus\n  isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {\n    return false;\n  }\n  return true;\n};\nvar isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable2(options, node) {\n  if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {\n    return false;\n  }\n  return true;\n};\nvar isValidShadowRootTabbable = function isValidShadowRootTabbable2(shadowHostNode) {\n  var tabIndex = parseInt(shadowHostNode.getAttribute(\"tabindex\"), 10);\n  if (isNaN(tabIndex) || tabIndex >= 0) {\n    return true;\n  }\n  return false;\n};\nvar sortByOrder = function sortByOrder2(candidates) {\n  var regularTabbables = [];\n  var orderedTabbables = [];\n  candidates.forEach(function(item, i) {\n    var isScope = !!item.scope;\n    var element = isScope ? item.scope : item;\n    var candidateTabindex = getTabindex(element, isScope);\n    var elements = isScope ? sortByOrder2(item.candidates) : element;\n    if (candidateTabindex === 0) {\n      isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);\n    } else {\n      orderedTabbables.push({\n        documentOrder: i,\n        tabIndex: candidateTabindex,\n        item,\n        isScope,\n        content: elements\n      });\n    }\n  });\n  return orderedTabbables.sort(sortOrderedTabbables).reduce(function(acc, sortable) {\n    sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);\n    return acc;\n  }, []).concat(regularTabbables);\n};\nvar tabbable = function tabbable2(el, options) {\n  options = options || {};\n  var candidates;\n  if (options.getShadowRoot) {\n    candidates = getCandidatesIteratively([el], options.includeContainer, {\n      filter: isNodeMatchingSelectorTabbable.bind(null, options),\n      flatten: false,\n      getShadowRoot: options.getShadowRoot,\n      shadowRootFilter: isValidShadowRootTabbable\n    });\n  } else {\n    candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));\n  }\n  return sortByOrder(candidates);\n};\nvar focusable = function focusable2(el, options) {\n  options = options || {};\n  var candidates;\n  if (options.getShadowRoot) {\n    candidates = getCandidatesIteratively([el], options.includeContainer, {\n      filter: isNodeMatchingSelectorFocusable.bind(null, options),\n      flatten: true,\n      getShadowRoot: options.getShadowRoot\n    });\n  } else {\n    candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));\n  }\n  return candidates;\n};\nvar isTabbable = function isTabbable2(node, options) {\n  options = options || {};\n  if (!node) {\n    throw new Error(\"No node provided\");\n  }\n  if (matches.call(node, candidateSelector) === false) {\n    return false;\n  }\n  return isNodeMatchingSelectorTabbable(options, node);\n};\nvar focusableCandidateSelector = /* @__PURE__ */ candidateSelectors.concat(\"iframe\").join(\",\");\nvar isFocusable = function isFocusable2(node, options) {\n  options = options || {};\n  if (!node) {\n    throw new Error(\"No node provided\");\n  }\n  if (matches.call(node, focusableCandidateSelector) === false) {\n    return false;\n  }\n  return isNodeMatchingSelectorFocusable(options, node);\n};\n\n// node_modules/focus-trap/dist/focus-trap.esm.js\nfunction ownKeys(object, enumerableOnly) {\n  var keys = Object.keys(object);\n  if (Object.getOwnPropertySymbols) {\n    var symbols = Object.getOwnPropertySymbols(object);\n    enumerableOnly && (symbols = symbols.filter(function(sym) {\n      return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n    })), keys.push.apply(keys, symbols);\n  }\n  return keys;\n}\nfunction _objectSpread2(target) {\n  for (var i = 1; i < arguments.length; i++) {\n    var source = null != arguments[i] ? arguments[i] : {};\n    i % 2 ? ownKeys(Object(source), true).forEach(function(key) {\n      _defineProperty(target, key, source[key]);\n    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {\n      Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n    });\n  }\n  return target;\n}\nfunction _defineProperty(obj, key, value) {\n  if (key in obj) {\n    Object.defineProperty(obj, key, {\n      value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n  } else {\n    obj[key] = value;\n  }\n  return obj;\n}\nvar activeFocusTraps = function() {\n  var trapQueue = [];\n  return {\n    activateTrap: function activateTrap(trap) {\n      if (trapQueue.length > 0) {\n        var activeTrap = trapQueue[trapQueue.length - 1];\n        if (activeTrap !== trap) {\n          activeTrap.pause();\n        }\n      }\n      var trapIndex = trapQueue.indexOf(trap);\n      if (trapIndex === -1) {\n        trapQueue.push(trap);\n      } else {\n        trapQueue.splice(trapIndex, 1);\n        trapQueue.push(trap);\n      }\n    },\n    deactivateTrap: function deactivateTrap(trap) {\n      var trapIndex = trapQueue.indexOf(trap);\n      if (trapIndex !== -1) {\n        trapQueue.splice(trapIndex, 1);\n      }\n      if (trapQueue.length > 0) {\n        trapQueue[trapQueue.length - 1].unpause();\n      }\n    }\n  };\n}();\nvar isSelectableInput = function isSelectableInput2(node) {\n  return node.tagName && node.tagName.toLowerCase() === \"input\" && typeof node.select === \"function\";\n};\nvar isEscapeEvent = function isEscapeEvent2(e) {\n  return e.key === \"Escape\" || e.key === \"Esc\" || e.keyCode === 27;\n};\nvar isTabEvent = function isTabEvent2(e) {\n  return e.key === \"Tab\" || e.keyCode === 9;\n};\nvar delay = function delay2(fn) {\n  return setTimeout(fn, 0);\n};\nvar findIndex = function findIndex2(arr, fn) {\n  var idx = -1;\n  arr.every(function(value, i) {\n    if (fn(value)) {\n      idx = i;\n      return false;\n    }\n    return true;\n  });\n  return idx;\n};\nvar valueOrHandler = function valueOrHandler2(value) {\n  for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    params[_key - 1] = arguments[_key];\n  }\n  return typeof value === \"function\" ? value.apply(void 0, params) : value;\n};\nvar getActualTarget = function getActualTarget2(event) {\n  return event.target.shadowRoot && typeof event.composedPath === \"function\" ? event.composedPath()[0] : event.target;\n};\nvar createFocusTrap = function createFocusTrap2(elements, userOptions) {\n  var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;\n  var config = _objectSpread2({\n    returnFocusOnDeactivate: true,\n    escapeDeactivates: true,\n    delayInitialFocus: true\n  }, userOptions);\n  var state = {\n    // containers given to createFocusTrap()\n    // @type {Array<HTMLElement>}\n    containers: [],\n    // list of objects identifying tabbable nodes in `containers` in the trap\n    // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap\n    //  is active, but the trap should never get to a state where there isn't at least one group\n    //  with at least one tabbable node in it (that would lead to an error condition that would\n    //  result in an error being thrown)\n    // @type {Array<{\n    //   container: HTMLElement,\n    //   tabbableNodes: Array<HTMLElement>, // empty if none\n    //   focusableNodes: Array<HTMLElement>, // empty if none\n    //   firstTabbableNode: HTMLElement|null,\n    //   lastTabbableNode: HTMLElement|null,\n    //   nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined\n    // }>}\n    containerGroups: [],\n    // same order/length as `containers` list\n    // references to objects in `containerGroups`, but only those that actually have\n    //  tabbable nodes in them\n    // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__\n    //  the same length\n    tabbableGroups: [],\n    nodeFocusedBeforeActivation: null,\n    mostRecentlyFocusedNode: null,\n    active: false,\n    paused: false,\n    // timer ID for when delayInitialFocus is true and initial focus in this trap\n    //  has been delayed during activation\n    delayInitialFocusTimer: void 0\n  };\n  var trap;\n  var getOption = function getOption2(configOverrideOptions, optionName, configOptionName) {\n    return configOverrideOptions && configOverrideOptions[optionName] !== void 0 ? configOverrideOptions[optionName] : config[configOptionName || optionName];\n  };\n  var findContainerIndex = function findContainerIndex2(element) {\n    return state.containerGroups.findIndex(function(_ref) {\n      var container = _ref.container, tabbableNodes = _ref.tabbableNodes;\n      return container.contains(element) || // fall back to explicit tabbable search which will take into consideration any\n      //  web components if the `tabbableOptions.getShadowRoot` option was used for\n      //  the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't\n      //  look inside web components even if open)\n      tabbableNodes.find(function(node) {\n        return node === element;\n      });\n    });\n  };\n  var getNodeForOption = function getNodeForOption2(optionName) {\n    var optionValue = config[optionName];\n    if (typeof optionValue === \"function\") {\n      for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        params[_key2 - 1] = arguments[_key2];\n      }\n      optionValue = optionValue.apply(void 0, params);\n    }\n    if (optionValue === true) {\n      optionValue = void 0;\n    }\n    if (!optionValue) {\n      if (optionValue === void 0 || optionValue === false) {\n        return optionValue;\n      }\n      throw new Error(\"`\".concat(optionName, \"` was specified but was not a node, or did not return a node\"));\n    }\n    var node = optionValue;\n    if (typeof optionValue === \"string\") {\n      node = doc.querySelector(optionValue);\n      if (!node) {\n        throw new Error(\"`\".concat(optionName, \"` as selector refers to no known node\"));\n      }\n    }\n    return node;\n  };\n  var getInitialFocusNode = function getInitialFocusNode2() {\n    var node = getNodeForOption(\"initialFocus\");\n    if (node === false) {\n      return false;\n    }\n    if (node === void 0) {\n      if (findContainerIndex(doc.activeElement) >= 0) {\n        node = doc.activeElement;\n      } else {\n        var firstTabbableGroup = state.tabbableGroups[0];\n        var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;\n        node = firstTabbableNode || getNodeForOption(\"fallbackFocus\");\n      }\n    }\n    if (!node) {\n      throw new Error(\"Your focus-trap needs to have at least one focusable element\");\n    }\n    return node;\n  };\n  var updateTabbableNodes = function updateTabbableNodes2() {\n    state.containerGroups = state.containers.map(function(container) {\n      var tabbableNodes = tabbable(container, config.tabbableOptions);\n      var focusableNodes = focusable(container, config.tabbableOptions);\n      return {\n        container,\n        tabbableNodes,\n        focusableNodes,\n        firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,\n        lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,\n        /**\n         * Finds the __tabbable__ node that follows the given node in the specified direction,\n         *  in this container, if any.\n         * @param {HTMLElement} node\n         * @param {boolean} [forward] True if going in forward tab order; false if going\n         *  in reverse.\n         * @returns {HTMLElement|undefined} The next tabbable node, if any.\n         */\n        nextTabbableNode: function nextTabbableNode(node) {\n          var forward = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;\n          var nodeIdx = focusableNodes.findIndex(function(n) {\n            return n === node;\n          });\n          if (nodeIdx < 0) {\n            return void 0;\n          }\n          if (forward) {\n            return focusableNodes.slice(nodeIdx + 1).find(function(n) {\n              return isTabbable(n, config.tabbableOptions);\n            });\n          }\n          return focusableNodes.slice(0, nodeIdx).reverse().find(function(n) {\n            return isTabbable(n, config.tabbableOptions);\n          });\n        }\n      };\n    });\n    state.tabbableGroups = state.containerGroups.filter(function(group) {\n      return group.tabbableNodes.length > 0;\n    });\n    if (state.tabbableGroups.length <= 0 && !getNodeForOption(\"fallbackFocus\")) {\n      throw new Error(\"Your focus-trap must have at least one container with at least one tabbable node in it at all times\");\n    }\n  };\n  var tryFocus = function tryFocus2(node) {\n    if (node === false) {\n      return;\n    }\n    if (node === doc.activeElement) {\n      return;\n    }\n    if (!node || !node.focus) {\n      tryFocus2(getInitialFocusNode());\n      return;\n    }\n    node.focus({\n      preventScroll: !!config.preventScroll\n    });\n    state.mostRecentlyFocusedNode = node;\n    if (isSelectableInput(node)) {\n      node.select();\n    }\n  };\n  var getReturnFocusNode = function getReturnFocusNode2(previousActiveElement) {\n    var node = getNodeForOption(\"setReturnFocus\", previousActiveElement);\n    return node ? node : node === false ? false : previousActiveElement;\n  };\n  var checkPointerDown = function checkPointerDown2(e) {\n    var target = getActualTarget(e);\n    if (findContainerIndex(target) >= 0) {\n      return;\n    }\n    if (valueOrHandler(config.clickOutsideDeactivates, e)) {\n      trap.deactivate({\n        // if, on deactivation, we should return focus to the node originally-focused\n        //  when the trap was activated (or the configured `setReturnFocus` node),\n        //  then assume it's also OK to return focus to the outside node that was\n        //  just clicked, causing deactivation, as long as that node is focusable;\n        //  if it isn't focusable, then return focus to the original node focused\n        //  on activation (or the configured `setReturnFocus` node)\n        // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,\n        //  which will result in the outside click setting focus to the node\n        //  that was clicked, whether it's focusable or not; by setting\n        //  `returnFocus: true`, we'll attempt to re-focus the node originally-focused\n        //  on activation (or the configured `setReturnFocus` node)\n        returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)\n      });\n      return;\n    }\n    if (valueOrHandler(config.allowOutsideClick, e)) {\n      return;\n    }\n    e.preventDefault();\n  };\n  var checkFocusIn = function checkFocusIn2(e) {\n    var target = getActualTarget(e);\n    var targetContained = findContainerIndex(target) >= 0;\n    if (targetContained || target instanceof Document) {\n      if (targetContained) {\n        state.mostRecentlyFocusedNode = target;\n      }\n    } else {\n      e.stopImmediatePropagation();\n      tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());\n    }\n  };\n  var checkTab = function checkTab2(e) {\n    var target = getActualTarget(e);\n    updateTabbableNodes();\n    var destinationNode = null;\n    if (state.tabbableGroups.length > 0) {\n      var containerIndex = findContainerIndex(target);\n      var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : void 0;\n      if (containerIndex < 0) {\n        if (e.shiftKey) {\n          destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;\n        } else {\n          destinationNode = state.tabbableGroups[0].firstTabbableNode;\n        }\n      } else if (e.shiftKey) {\n        var startOfGroupIndex = findIndex(state.tabbableGroups, function(_ref2) {\n          var firstTabbableNode = _ref2.firstTabbableNode;\n          return target === firstTabbableNode;\n        });\n        if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {\n          startOfGroupIndex = containerIndex;\n        }\n        if (startOfGroupIndex >= 0) {\n          var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;\n          var destinationGroup = state.tabbableGroups[destinationGroupIndex];\n          destinationNode = destinationGroup.lastTabbableNode;\n        }\n      } else {\n        var lastOfGroupIndex = findIndex(state.tabbableGroups, function(_ref3) {\n          var lastTabbableNode = _ref3.lastTabbableNode;\n          return target === lastTabbableNode;\n        });\n        if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {\n          lastOfGroupIndex = containerIndex;\n        }\n        if (lastOfGroupIndex >= 0) {\n          var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;\n          var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];\n          destinationNode = _destinationGroup.firstTabbableNode;\n        }\n      }\n    } else {\n      destinationNode = getNodeForOption(\"fallbackFocus\");\n    }\n    if (destinationNode) {\n      e.preventDefault();\n      tryFocus(destinationNode);\n    }\n  };\n  var checkKey = function checkKey2(e) {\n    if (isEscapeEvent(e) && valueOrHandler(config.escapeDeactivates, e) !== false) {\n      e.preventDefault();\n      trap.deactivate();\n      return;\n    }\n    if (isTabEvent(e)) {\n      checkTab(e);\n      return;\n    }\n  };\n  var checkClick = function checkClick2(e) {\n    var target = getActualTarget(e);\n    if (findContainerIndex(target) >= 0) {\n      return;\n    }\n    if (valueOrHandler(config.clickOutsideDeactivates, e)) {\n      return;\n    }\n    if (valueOrHandler(config.allowOutsideClick, e)) {\n      return;\n    }\n    e.preventDefault();\n    e.stopImmediatePropagation();\n  };\n  var addListeners = function addListeners2() {\n    if (!state.active) {\n      return;\n    }\n    activeFocusTraps.activateTrap(trap);\n    state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function() {\n      tryFocus(getInitialFocusNode());\n    }) : tryFocus(getInitialFocusNode());\n    doc.addEventListener(\"focusin\", checkFocusIn, true);\n    doc.addEventListener(\"mousedown\", checkPointerDown, {\n      capture: true,\n      passive: false\n    });\n    doc.addEventListener(\"touchstart\", checkPointerDown, {\n      capture: true,\n      passive: false\n    });\n    doc.addEventListener(\"click\", checkClick, {\n      capture: true,\n      passive: false\n    });\n    doc.addEventListener(\"keydown\", checkKey, {\n      capture: true,\n      passive: false\n    });\n    return trap;\n  };\n  var removeListeners = function removeListeners2() {\n    if (!state.active) {\n      return;\n    }\n    doc.removeEventListener(\"focusin\", checkFocusIn, true);\n    doc.removeEventListener(\"mousedown\", checkPointerDown, true);\n    doc.removeEventListener(\"touchstart\", checkPointerDown, true);\n    doc.removeEventListener(\"click\", checkClick, true);\n    doc.removeEventListener(\"keydown\", checkKey, true);\n    return trap;\n  };\n  trap = {\n    get active() {\n      return state.active;\n    },\n    get paused() {\n      return state.paused;\n    },\n    activate: function activate(activateOptions) {\n      if (state.active) {\n        return this;\n      }\n      var onActivate = getOption(activateOptions, \"onActivate\");\n      var onPostActivate = getOption(activateOptions, \"onPostActivate\");\n      var checkCanFocusTrap = getOption(activateOptions, \"checkCanFocusTrap\");\n      if (!checkCanFocusTrap) {\n        updateTabbableNodes();\n      }\n      state.active = true;\n      state.paused = false;\n      state.nodeFocusedBeforeActivation = doc.activeElement;\n      if (onActivate) {\n        onActivate();\n      }\n      var finishActivation = function finishActivation2() {\n        if (checkCanFocusTrap) {\n          updateTabbableNodes();\n        }\n        addListeners();\n        if (onPostActivate) {\n          onPostActivate();\n        }\n      };\n      if (checkCanFocusTrap) {\n        checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);\n        return this;\n      }\n      finishActivation();\n      return this;\n    },\n    deactivate: function deactivate(deactivateOptions) {\n      if (!state.active) {\n        return this;\n      }\n      var options = _objectSpread2({\n        onDeactivate: config.onDeactivate,\n        onPostDeactivate: config.onPostDeactivate,\n        checkCanReturnFocus: config.checkCanReturnFocus\n      }, deactivateOptions);\n      clearTimeout(state.delayInitialFocusTimer);\n      state.delayInitialFocusTimer = void 0;\n      removeListeners();\n      state.active = false;\n      state.paused = false;\n      activeFocusTraps.deactivateTrap(trap);\n      var onDeactivate = getOption(options, \"onDeactivate\");\n      var onPostDeactivate = getOption(options, \"onPostDeactivate\");\n      var checkCanReturnFocus = getOption(options, \"checkCanReturnFocus\");\n      var returnFocus = getOption(options, \"returnFocus\", \"returnFocusOnDeactivate\");\n      if (onDeactivate) {\n        onDeactivate();\n      }\n      var finishDeactivation = function finishDeactivation2() {\n        delay(function() {\n          if (returnFocus) {\n            tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));\n          }\n          if (onPostDeactivate) {\n            onPostDeactivate();\n          }\n        });\n      };\n      if (returnFocus && checkCanReturnFocus) {\n        checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);\n        return this;\n      }\n      finishDeactivation();\n      return this;\n    },\n    pause: function pause() {\n      if (state.paused || !state.active) {\n        return this;\n      }\n      state.paused = true;\n      removeListeners();\n      return this;\n    },\n    unpause: function unpause() {\n      if (!state.paused || !state.active) {\n        return this;\n      }\n      state.paused = false;\n      updateTabbableNodes();\n      addListeners();\n      return this;\n    },\n    updateContainerElements: function updateContainerElements(containerElements) {\n      var elementsAsArray = [].concat(containerElements).filter(Boolean);\n      state.containers = elementsAsArray.map(function(element) {\n        return typeof element === \"string\" ? doc.querySelector(element) : element;\n      });\n      if (state.active) {\n        updateTabbableNodes();\n      }\n      return this;\n    }\n  };\n  trap.updateContainerElements(elements);\n  return trap;\n};\n\n// packages/focus/src/index.js\nfunction src_default(Alpine) {\n  let lastFocused;\n  let currentFocused;\n  window.addEventListener(\"focusin\", () => {\n    lastFocused = currentFocused;\n    currentFocused = document.activeElement;\n  });\n  Alpine.magic(\"focus\", (el) => {\n    let within = el;\n    return {\n      __noscroll: false,\n      __wrapAround: false,\n      within(el2) {\n        within = el2;\n        return this;\n      },\n      withoutScrolling() {\n        this.__noscroll = true;\n        return this;\n      },\n      noscroll() {\n        this.__noscroll = true;\n        return this;\n      },\n      withWrapAround() {\n        this.__wrapAround = true;\n        return this;\n      },\n      wrap() {\n        return this.withWrapAround();\n      },\n      focusable(el2) {\n        return isFocusable(el2);\n      },\n      previouslyFocused() {\n        return lastFocused;\n      },\n      lastFocused() {\n        return lastFocused;\n      },\n      focused() {\n        return currentFocused;\n      },\n      focusables() {\n        if (Array.isArray(within))\n          return within;\n        return focusable(within, { displayCheck: \"none\" });\n      },\n      all() {\n        return this.focusables();\n      },\n      isFirst(el2) {\n        let els = this.all();\n        return els[0] && els[0].isSameNode(el2);\n      },\n      isLast(el2) {\n        let els = this.all();\n        return els.length && els.slice(-1)[0].isSameNode(el2);\n      },\n      getFirst() {\n        return this.all()[0];\n      },\n      getLast() {\n        return this.all().slice(-1)[0];\n      },\n      getNext() {\n        let list = this.all();\n        let current = document.activeElement;\n        if (list.indexOf(current) === -1)\n          return;\n        if (this.__wrapAround && list.indexOf(current) === list.length - 1) {\n          return list[0];\n        }\n        return list[list.indexOf(current) + 1];\n      },\n      getPrevious() {\n        let list = this.all();\n        let current = document.activeElement;\n        if (list.indexOf(current) === -1)\n          return;\n        if (this.__wrapAround && list.indexOf(current) === 0) {\n          return list.slice(-1)[0];\n        }\n        return list[list.indexOf(current) - 1];\n      },\n      first() {\n        this.focus(this.getFirst());\n      },\n      last() {\n        this.focus(this.getLast());\n      },\n      next() {\n        this.focus(this.getNext());\n      },\n      previous() {\n        this.focus(this.getPrevious());\n      },\n      prev() {\n        return this.previous();\n      },\n      focus(el2) {\n        if (!el2)\n          return;\n        setTimeout(() => {\n          if (!el2.hasAttribute(\"tabindex\"))\n            el2.setAttribute(\"tabindex\", \"0\");\n          el2.focus({ preventScroll: this.__noscroll });\n        });\n      }\n    };\n  });\n  Alpine.directive(\"trap\", Alpine.skipDuringClone(\n    (el, { expression, modifiers }, { effect, evaluateLater, cleanup }) => {\n      let evaluator = evaluateLater(expression);\n      let oldValue = false;\n      let options = {\n        escapeDeactivates: false,\n        allowOutsideClick: true,\n        fallbackFocus: () => el\n      };\n      if (modifiers.includes(\"noautofocus\")) {\n        options.initialFocus = false;\n      } else {\n        let autofocusEl = el.querySelector(\"[autofocus]\");\n        if (autofocusEl)\n          options.initialFocus = autofocusEl;\n      }\n      let trap = createFocusTrap(el, options);\n      let undoInert = () => {\n      };\n      let undoDisableScrolling = () => {\n      };\n      const releaseFocus = () => {\n        undoInert();\n        undoInert = () => {\n        };\n        undoDisableScrolling();\n        undoDisableScrolling = () => {\n        };\n        trap.deactivate({\n          returnFocus: !modifiers.includes(\"noreturn\")\n        });\n      };\n      effect(() => evaluator((value) => {\n        if (oldValue === value)\n          return;\n        if (value && !oldValue) {\n          if (modifiers.includes(\"noscroll\"))\n            undoDisableScrolling = disableScrolling();\n          if (modifiers.includes(\"inert\"))\n            undoInert = setInert(el);\n          setTimeout(() => {\n            trap.activate();\n          }, 15);\n        }\n        if (!value && oldValue) {\n          releaseFocus();\n        }\n        oldValue = !!value;\n      }));\n      cleanup(releaseFocus);\n    },\n    // When cloning, we only want to add aria-hidden attributes to the\n    // DOM and not try to actually trap, as trapping can mess with the\n    // live DOM and isn't just isolated to the cloned DOM.\n    (el, { expression, modifiers }, { evaluate }) => {\n      if (modifiers.includes(\"inert\") && evaluate(expression))\n        setInert(el);\n    }\n  ));\n}\nfunction setInert(el) {\n  let undos = [];\n  crawlSiblingsUp(el, (sibling) => {\n    let cache = sibling.hasAttribute(\"aria-hidden\");\n    sibling.setAttribute(\"aria-hidden\", \"true\");\n    undos.push(() => cache || sibling.removeAttribute(\"aria-hidden\"));\n  });\n  return () => {\n    while (undos.length)\n      undos.pop()();\n  };\n}\nfunction crawlSiblingsUp(el, callback) {\n  if (el.isSameNode(document.body) || !el.parentNode)\n    return;\n  Array.from(el.parentNode.children).forEach((sibling) => {\n    if (sibling.isSameNode(el)) {\n      crawlSiblingsUp(el.parentNode, callback);\n    } else {\n      callback(sibling);\n    }\n  });\n}\nfunction disableScrolling() {\n  let overflow = document.documentElement.style.overflow;\n  let paddingRight = document.documentElement.style.paddingRight;\n  let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;\n  document.documentElement.style.overflow = \"hidden\";\n  document.documentElement.style.paddingRight = `${scrollbarWidth}px`;\n  return () => {\n    document.documentElement.style.overflow = overflow;\n    document.documentElement.style.paddingRight = paddingRight;\n  };\n}\n\n// packages/focus/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as focus\n};\n/*! Bundled license information:\n\ntabbable/dist/index.esm.js:\n  (*!\n  * tabbable 5.3.3\n  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE\n  *)\n\nfocus-trap/dist/focus-trap.esm.js:\n  (*!\n  * focus-trap 6.9.4\n  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE\n  *)\n*/\n", "// packages/persist/src/index.js\nfunction src_default(Alpine) {\n  let persist = () => {\n    let alias;\n    let storage;\n    try {\n      storage = localStorage;\n    } catch (e) {\n      console.error(e);\n      console.warn(\"Alpine: $persist is using temporary storage since localStorage is unavailable.\");\n      let dummy = /* @__PURE__ */ new Map();\n      storage = {\n        getItem: dummy.get.bind(dummy),\n        setItem: dummy.set.bind(dummy)\n      };\n    }\n    return Alpine.interceptor((initialValue, getter, setter, path, key) => {\n      let lookup = alias || `_x_${path}`;\n      let initial = storageHas(lookup, storage) ? storageGet(lookup, storage) : initialValue;\n      setter(initial);\n      Alpine.effect(() => {\n        let value = getter();\n        storageSet(lookup, value, storage);\n        setter(value);\n      });\n      return initial;\n    }, (func) => {\n      func.as = (key) => {\n        alias = key;\n        return func;\n      }, func.using = (target) => {\n        storage = target;\n        return func;\n      };\n    });\n  };\n  Object.defineProperty(Alpine, \"$persist\", { get: () => persist() });\n  Alpine.magic(\"persist\", persist);\n  Alpine.persist = (key, { get, set }, storage = localStorage) => {\n    let initial = storageHas(key, storage) ? storageGet(key, storage) : get();\n    set(initial);\n    Alpine.effect(() => {\n      let value = get();\n      storageSet(key, value, storage);\n      set(value);\n    });\n  };\n}\nfunction storageHas(key, storage) {\n  return storage.getItem(key) !== null;\n}\nfunction storageGet(key, storage) {\n  return JSON.parse(storage.getItem(key, storage));\n}\nfunction storageSet(key, value, storage) {\n  storage.setItem(key, JSON.stringify(value));\n}\n\n// packages/persist/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as persist\n};\n", "// packages/intersect/src/index.js\nfunction src_default(Alpine) {\n  Alpine.directive(\"intersect\", Alpine.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => {\n    let evaluate = evaluateLater(expression);\n    let options = {\n      rootMargin: getRootMargin(modifiers),\n      threshold: getThreshold(modifiers)\n    };\n    let observer = new IntersectionObserver((entries) => {\n      entries.forEach((entry) => {\n        if (entry.isIntersecting === (value === \"leave\"))\n          return;\n        evaluate();\n        modifiers.includes(\"once\") && observer.disconnect();\n      });\n    }, options);\n    observer.observe(el);\n    cleanup(() => {\n      observer.disconnect();\n    });\n  }));\n}\nfunction getThreshold(modifiers) {\n  if (modifiers.includes(\"full\"))\n    return 0.99;\n  if (modifiers.includes(\"half\"))\n    return 0.5;\n  if (!modifiers.includes(\"threshold\"))\n    return 0;\n  let threshold = modifiers[modifiers.indexOf(\"threshold\") + 1];\n  if (threshold === \"100\")\n    return 1;\n  if (threshold === \"0\")\n    return 0;\n  return Number(`.${threshold}`);\n}\nfunction getLengthValue(rawValue) {\n  let match = rawValue.match(/^(-?[0-9]+)(px|%)?$/);\n  return match ? match[1] + (match[2] || \"px\") : void 0;\n}\nfunction getRootMargin(modifiers) {\n  const key = \"margin\";\n  const fallback = \"0px 0px 0px 0px\";\n  const index = modifiers.indexOf(key);\n  if (index === -1)\n    return fallback;\n  let values = [];\n  for (let i = 1; i < 5; i++) {\n    values.push(getLengthValue(modifiers[index + i] || \"\"));\n  }\n  values = values.filter((v) => v !== void 0);\n  return values.length ? values.join(\" \").trim() : fallback;\n}\n\n// packages/intersect/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as intersect\n};\n", "// node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs\nvar min = Math.min;\nvar max = Math.max;\nvar round = Math.round;\nvar floor = Math.floor;\nvar createCoords = (v) => ({\n  x: v,\n  y: v\n});\nvar oppositeSideMap = {\n  left: \"right\",\n  right: \"left\",\n  bottom: \"top\",\n  top: \"bottom\"\n};\nvar oppositeAlignmentMap = {\n  start: \"end\",\n  end: \"start\"\n};\nfunction clamp(start, value, end) {\n  return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n  return typeof value === \"function\" ? value(param) : value;\n}\nfunction getSide(placement) {\n  return placement.split(\"-\")[0];\n}\nfunction getAlignment(placement) {\n  return placement.split(\"-\")[1];\n}\nfunction getOppositeAxis(axis) {\n  return axis === \"x\" ? \"y\" : \"x\";\n}\nfunction getAxisLength(axis) {\n  return axis === \"y\" ? \"height\" : \"width\";\n}\nfunction getSideAxis(placement) {\n  return [\"top\", \"bottom\"].includes(getSide(placement)) ? \"y\" : \"x\";\n}\nfunction getAlignmentAxis(placement) {\n  return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n  if (rtl === void 0) {\n    rtl = false;\n  }\n  const alignment = getAlignment(placement);\n  const alignmentAxis = getAlignmentAxis(placement);\n  const length = getAxisLength(alignmentAxis);\n  let mainAlignmentSide = alignmentAxis === \"x\" ? alignment === (rtl ? \"end\" : \"start\") ? \"right\" : \"left\" : alignment === \"start\" ? \"bottom\" : \"top\";\n  if (rects.reference[length] > rects.floating[length]) {\n    mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n  }\n  return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n  const oppositePlacement = getOppositePlacement(placement);\n  return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n  return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n  const lr = [\"left\", \"right\"];\n  const rl = [\"right\", \"left\"];\n  const tb = [\"top\", \"bottom\"];\n  const bt = [\"bottom\", \"top\"];\n  switch (side) {\n    case \"top\":\n    case \"bottom\":\n      if (rtl)\n        return isStart ? rl : lr;\n      return isStart ? lr : rl;\n    case \"left\":\n    case \"right\":\n      return isStart ? tb : bt;\n    default:\n      return [];\n  }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n  const alignment = getAlignment(placement);\n  let list = getSideList(getSide(placement), direction === \"start\", rtl);\n  if (alignment) {\n    list = list.map((side) => side + \"-\" + alignment);\n    if (flipAlignment) {\n      list = list.concat(list.map(getOppositeAlignmentPlacement));\n    }\n  }\n  return list;\n}\nfunction getOppositePlacement(placement) {\n  return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n  return {\n    top: 0,\n    right: 0,\n    bottom: 0,\n    left: 0,\n    ...padding\n  };\n}\nfunction getPaddingObject(padding) {\n  return typeof padding !== \"number\" ? expandPaddingObject(padding) : {\n    top: padding,\n    right: padding,\n    bottom: padding,\n    left: padding\n  };\n}\nfunction rectToClientRect(rect) {\n  return {\n    ...rect,\n    top: rect.y,\n    left: rect.x,\n    right: rect.x + rect.width,\n    bottom: rect.y + rect.height\n  };\n}\n\n// node_modules/@floating-ui/core/dist/floating-ui.core.mjs\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n  let {\n    reference,\n    floating\n  } = _ref;\n  const sideAxis = getSideAxis(placement);\n  const alignmentAxis = getAlignmentAxis(placement);\n  const alignLength = getAxisLength(alignmentAxis);\n  const side = getSide(placement);\n  const isVertical = sideAxis === \"y\";\n  const commonX = reference.x + reference.width / 2 - floating.width / 2;\n  const commonY = reference.y + reference.height / 2 - floating.height / 2;\n  const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n  let coords;\n  switch (side) {\n    case \"top\":\n      coords = {\n        x: commonX,\n        y: reference.y - floating.height\n      };\n      break;\n    case \"bottom\":\n      coords = {\n        x: commonX,\n        y: reference.y + reference.height\n      };\n      break;\n    case \"right\":\n      coords = {\n        x: reference.x + reference.width,\n        y: commonY\n      };\n      break;\n    case \"left\":\n      coords = {\n        x: reference.x - floating.width,\n        y: commonY\n      };\n      break;\n    default:\n      coords = {\n        x: reference.x,\n        y: reference.y\n      };\n  }\n  switch (getAlignment(placement)) {\n    case \"start\":\n      coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n      break;\n    case \"end\":\n      coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n      break;\n  }\n  return coords;\n}\nvar computePosition = async (reference, floating, config) => {\n  const {\n    placement = \"bottom\",\n    strategy = \"absolute\",\n    middleware = [],\n    platform: platform2\n  } = config;\n  const validMiddleware = middleware.filter(Boolean);\n  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));\n  let rects = await platform2.getElementRects({\n    reference,\n    floating,\n    strategy\n  });\n  let {\n    x,\n    y\n  } = computeCoordsFromPlacement(rects, placement, rtl);\n  let statefulPlacement = placement;\n  let middlewareData = {};\n  let resetCount = 0;\n  for (let i = 0; i < validMiddleware.length; i++) {\n    const {\n      name,\n      fn\n    } = validMiddleware[i];\n    const {\n      x: nextX,\n      y: nextY,\n      data,\n      reset\n    } = await fn({\n      x,\n      y,\n      initialPlacement: placement,\n      placement: statefulPlacement,\n      strategy,\n      middlewareData,\n      rects,\n      platform: platform2,\n      elements: {\n        reference,\n        floating\n      }\n    });\n    x = nextX != null ? nextX : x;\n    y = nextY != null ? nextY : y;\n    middlewareData = {\n      ...middlewareData,\n      [name]: {\n        ...middlewareData[name],\n        ...data\n      }\n    };\n    if (reset && resetCount <= 50) {\n      resetCount++;\n      if (typeof reset === \"object\") {\n        if (reset.placement) {\n          statefulPlacement = reset.placement;\n        }\n        if (reset.rects) {\n          rects = reset.rects === true ? await platform2.getElementRects({\n            reference,\n            floating,\n            strategy\n          }) : reset.rects;\n        }\n        ({\n          x,\n          y\n        } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n      }\n      i = -1;\n      continue;\n    }\n  }\n  return {\n    x,\n    y,\n    placement: statefulPlacement,\n    strategy,\n    middlewareData\n  };\n};\nasync function detectOverflow(state, options) {\n  var _await$platform$isEle;\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    x,\n    y,\n    platform: platform2,\n    rects,\n    elements,\n    strategy\n  } = state;\n  const {\n    boundary = \"clippingAncestors\",\n    rootBoundary = \"viewport\",\n    elementContext = \"floating\",\n    altBoundary = false,\n    padding = 0\n  } = evaluate(options, state);\n  const paddingObject = getPaddingObject(padding);\n  const altContext = elementContext === \"floating\" ? \"reference\" : \"floating\";\n  const element = elements[altBoundary ? altContext : elementContext];\n  const clippingClientRect = rectToClientRect(await platform2.getClippingRect({\n    element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),\n    boundary,\n    rootBoundary,\n    strategy\n  }));\n  const rect = elementContext === \"floating\" ? {\n    ...rects.floating,\n    x,\n    y\n  } : rects.reference;\n  const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));\n  const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {\n    x: 1,\n    y: 1\n  } : {\n    x: 1,\n    y: 1\n  };\n  const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({\n    rect,\n    offsetParent,\n    strategy\n  }) : rect);\n  return {\n    top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n    bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n    left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n    right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n  };\n}\nvar flip = function(options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: \"flip\",\n    options,\n    async fn(state) {\n      var _middlewareData$arrow, _middlewareData$flip;\n      const {\n        placement,\n        middlewareData,\n        rects,\n        initialPlacement,\n        platform: platform2,\n        elements\n      } = state;\n      const {\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = true,\n        fallbackPlacements: specifiedFallbackPlacements,\n        fallbackStrategy = \"bestFit\",\n        fallbackAxisSideDirection = \"none\",\n        flipAlignment = true,\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n        return {};\n      }\n      const side = getSide(placement);\n      const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n      const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));\n      const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n      if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== \"none\") {\n        fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n      }\n      const placements2 = [initialPlacement, ...fallbackPlacements];\n      const overflow = await detectOverflow(state, detectOverflowOptions);\n      const overflows = [];\n      let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n      if (checkMainAxis) {\n        overflows.push(overflow[side]);\n      }\n      if (checkCrossAxis) {\n        const sides2 = getAlignmentSides(placement, rects, rtl);\n        overflows.push(overflow[sides2[0]], overflow[sides2[1]]);\n      }\n      overflowsData = [...overflowsData, {\n        placement,\n        overflows\n      }];\n      if (!overflows.every((side2) => side2 <= 0)) {\n        var _middlewareData$flip2, _overflowsData$filter;\n        const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n        const nextPlacement = placements2[nextIndex];\n        if (nextPlacement) {\n          return {\n            data: {\n              index: nextIndex,\n              overflows: overflowsData\n            },\n            reset: {\n              placement: nextPlacement\n            }\n          };\n        }\n        let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n        if (!resetPlacement) {\n          switch (fallbackStrategy) {\n            case \"bestFit\": {\n              var _overflowsData$map$so;\n              const placement2 = (_overflowsData$map$so = overflowsData.map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];\n              if (placement2) {\n                resetPlacement = placement2;\n              }\n              break;\n            }\n            case \"initialPlacement\":\n              resetPlacement = initialPlacement;\n              break;\n          }\n        }\n        if (placement !== resetPlacement) {\n          return {\n            reset: {\n              placement: resetPlacement\n            }\n          };\n        }\n      }\n      return {};\n    }\n  };\n};\nasync function convertValueToCoords(state, options) {\n  const {\n    placement,\n    platform: platform2,\n    elements\n  } = state;\n  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));\n  const side = getSide(placement);\n  const alignment = getAlignment(placement);\n  const isVertical = getSideAxis(placement) === \"y\";\n  const mainAxisMulti = [\"left\", \"top\"].includes(side) ? -1 : 1;\n  const crossAxisMulti = rtl && isVertical ? -1 : 1;\n  const rawValue = evaluate(options, state);\n  let {\n    mainAxis,\n    crossAxis,\n    alignmentAxis\n  } = typeof rawValue === \"number\" ? {\n    mainAxis: rawValue,\n    crossAxis: 0,\n    alignmentAxis: null\n  } : {\n    mainAxis: 0,\n    crossAxis: 0,\n    alignmentAxis: null,\n    ...rawValue\n  };\n  if (alignment && typeof alignmentAxis === \"number\") {\n    crossAxis = alignment === \"end\" ? alignmentAxis * -1 : alignmentAxis;\n  }\n  return isVertical ? {\n    x: crossAxis * crossAxisMulti,\n    y: mainAxis * mainAxisMulti\n  } : {\n    x: mainAxis * mainAxisMulti,\n    y: crossAxis * crossAxisMulti\n  };\n}\nvar offset = function(options) {\n  if (options === void 0) {\n    options = 0;\n  }\n  return {\n    name: \"offset\",\n    options,\n    async fn(state) {\n      const {\n        x,\n        y\n      } = state;\n      const diffCoords = await convertValueToCoords(state, options);\n      return {\n        x: x + diffCoords.x,\n        y: y + diffCoords.y,\n        data: diffCoords\n      };\n    }\n  };\n};\nvar shift = function(options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: \"shift\",\n    options,\n    async fn(state) {\n      const {\n        x,\n        y,\n        placement\n      } = state;\n      const {\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = false,\n        limiter = {\n          fn: (_ref) => {\n            let {\n              x: x2,\n              y: y2\n            } = _ref;\n            return {\n              x: x2,\n              y: y2\n            };\n          }\n        },\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      const coords = {\n        x,\n        y\n      };\n      const overflow = await detectOverflow(state, detectOverflowOptions);\n      const crossAxis = getSideAxis(getSide(placement));\n      const mainAxis = getOppositeAxis(crossAxis);\n      let mainAxisCoord = coords[mainAxis];\n      let crossAxisCoord = coords[crossAxis];\n      if (checkMainAxis) {\n        const minSide = mainAxis === \"y\" ? \"top\" : \"left\";\n        const maxSide = mainAxis === \"y\" ? \"bottom\" : \"right\";\n        const min2 = mainAxisCoord + overflow[minSide];\n        const max2 = mainAxisCoord - overflow[maxSide];\n        mainAxisCoord = clamp(min2, mainAxisCoord, max2);\n      }\n      if (checkCrossAxis) {\n        const minSide = crossAxis === \"y\" ? \"top\" : \"left\";\n        const maxSide = crossAxis === \"y\" ? \"bottom\" : \"right\";\n        const min2 = crossAxisCoord + overflow[minSide];\n        const max2 = crossAxisCoord - overflow[maxSide];\n        crossAxisCoord = clamp(min2, crossAxisCoord, max2);\n      }\n      const limitedCoords = limiter.fn({\n        ...state,\n        [mainAxis]: mainAxisCoord,\n        [crossAxis]: crossAxisCoord\n      });\n      return {\n        ...limitedCoords,\n        data: {\n          x: limitedCoords.x - x,\n          y: limitedCoords.y - y\n        }\n      };\n    }\n  };\n};\n\n// node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs\nfunction getNodeName(node) {\n  if (isNode(node)) {\n    return (node.nodeName || \"\").toLowerCase();\n  }\n  return \"#document\";\n}\nfunction getWindow(node) {\n  var _node$ownerDocument;\n  return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n  var _ref;\n  return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n  return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n  return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n  return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n  if (typeof ShadowRoot === \"undefined\") {\n    return false;\n  }\n  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n  const {\n    overflow,\n    overflowX,\n    overflowY,\n    display\n  } = getComputedStyle(element);\n  return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && ![\"inline\", \"contents\"].includes(display);\n}\nfunction isTableElement(element) {\n  return [\"table\", \"td\", \"th\"].includes(getNodeName(element));\n}\nfunction isContainingBlock(element) {\n  const webkit = isWebKit();\n  const css = getComputedStyle(element);\n  return css.transform !== \"none\" || css.perspective !== \"none\" || (css.containerType ? css.containerType !== \"normal\" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== \"none\" : false) || !webkit && (css.filter ? css.filter !== \"none\" : false) || [\"transform\", \"perspective\", \"filter\"].some((value) => (css.willChange || \"\").includes(value)) || [\"paint\", \"layout\", \"strict\", \"content\"].some((value) => (css.contain || \"\").includes(value));\n}\nfunction getContainingBlock(element) {\n  let currentNode = getParentNode(element);\n  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n    if (isContainingBlock(currentNode)) {\n      return currentNode;\n    } else {\n      currentNode = getParentNode(currentNode);\n    }\n  }\n  return null;\n}\nfunction isWebKit() {\n  if (typeof CSS === \"undefined\" || !CSS.supports)\n    return false;\n  return CSS.supports(\"-webkit-backdrop-filter\", \"none\");\n}\nfunction isLastTraversableNode(node) {\n  return [\"html\", \"body\", \"#document\"].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n  return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n  if (isElement(element)) {\n    return {\n      scrollLeft: element.scrollLeft,\n      scrollTop: element.scrollTop\n    };\n  }\n  return {\n    scrollLeft: element.pageXOffset,\n    scrollTop: element.pageYOffset\n  };\n}\nfunction getParentNode(node) {\n  if (getNodeName(node) === \"html\") {\n    return node;\n  }\n  const result = (\n    // Step into the shadow DOM of the parent of a slotted node.\n    node.assignedSlot || // DOM Element detected.\n    node.parentNode || // ShadowRoot detected.\n    isShadowRoot(node) && node.host || // Fallback.\n    getDocumentElement(node)\n  );\n  return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n  const parentNode = getParentNode(node);\n  if (isLastTraversableNode(parentNode)) {\n    return node.ownerDocument ? node.ownerDocument.body : node.body;\n  }\n  if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n    return parentNode;\n  }\n  return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n  var _node$ownerDocument2;\n  if (list === void 0) {\n    list = [];\n  }\n  if (traverseIframes === void 0) {\n    traverseIframes = true;\n  }\n  const scrollableAncestor = getNearestOverflowAncestor(node);\n  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n  const win = getWindow(scrollableAncestor);\n  if (isBody) {\n    return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);\n  }\n  return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\n\n// node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs\nfunction getCssDimensions(element) {\n  const css = getComputedStyle(element);\n  let width = parseFloat(css.width) || 0;\n  let height = parseFloat(css.height) || 0;\n  const hasOffset = isHTMLElement(element);\n  const offsetWidth = hasOffset ? element.offsetWidth : width;\n  const offsetHeight = hasOffset ? element.offsetHeight : height;\n  const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n  if (shouldFallback) {\n    width = offsetWidth;\n    height = offsetHeight;\n  }\n  return {\n    width,\n    height,\n    $: shouldFallback\n  };\n}\nfunction unwrapElement(element) {\n  return !isElement(element) ? element.contextElement : element;\n}\nfunction getScale(element) {\n  const domElement = unwrapElement(element);\n  if (!isHTMLElement(domElement)) {\n    return createCoords(1);\n  }\n  const rect = domElement.getBoundingClientRect();\n  const {\n    width,\n    height,\n    $\n  } = getCssDimensions(domElement);\n  let x = ($ ? round(rect.width) : rect.width) / width;\n  let y = ($ ? round(rect.height) : rect.height) / height;\n  if (!x || !Number.isFinite(x)) {\n    x = 1;\n  }\n  if (!y || !Number.isFinite(y)) {\n    y = 1;\n  }\n  return {\n    x,\n    y\n  };\n}\nvar noOffsets = /* @__PURE__ */ createCoords(0);\nfunction getVisualOffsets(element) {\n  const win = getWindow(element);\n  if (!isWebKit() || !win.visualViewport) {\n    return noOffsets;\n  }\n  return {\n    x: win.visualViewport.offsetLeft,\n    y: win.visualViewport.offsetTop\n  };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n  if (isFixed === void 0) {\n    isFixed = false;\n  }\n  if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n    return false;\n  }\n  return isFixed;\n}\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n  if (includeScale === void 0) {\n    includeScale = false;\n  }\n  if (isFixedStrategy === void 0) {\n    isFixedStrategy = false;\n  }\n  const clientRect = element.getBoundingClientRect();\n  const domElement = unwrapElement(element);\n  let scale = createCoords(1);\n  if (includeScale) {\n    if (offsetParent) {\n      if (isElement(offsetParent)) {\n        scale = getScale(offsetParent);\n      }\n    } else {\n      scale = getScale(element);\n    }\n  }\n  const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n  let x = (clientRect.left + visualOffsets.x) / scale.x;\n  let y = (clientRect.top + visualOffsets.y) / scale.y;\n  let width = clientRect.width / scale.x;\n  let height = clientRect.height / scale.y;\n  if (domElement) {\n    const win = getWindow(domElement);\n    const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n    let currentIFrame = win.frameElement;\n    while (currentIFrame && offsetParent && offsetWin !== win) {\n      const iframeScale = getScale(currentIFrame);\n      const iframeRect = currentIFrame.getBoundingClientRect();\n      const css = getComputedStyle(currentIFrame);\n      const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n      const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n      x *= iframeScale.x;\n      y *= iframeScale.y;\n      width *= iframeScale.x;\n      height *= iframeScale.y;\n      x += left;\n      y += top;\n      currentIFrame = getWindow(currentIFrame).frameElement;\n    }\n  }\n  return rectToClientRect({\n    width,\n    height,\n    x,\n    y\n  });\n}\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n  let {\n    rect,\n    offsetParent,\n    strategy\n  } = _ref;\n  const isOffsetParentAnElement = isHTMLElement(offsetParent);\n  const documentElement = getDocumentElement(offsetParent);\n  if (offsetParent === documentElement) {\n    return rect;\n  }\n  let scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  let scale = createCoords(1);\n  const offsets = createCoords(0);\n  if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== \"fixed\") {\n    if (getNodeName(offsetParent) !== \"body\" || isOverflowElement(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n    if (isHTMLElement(offsetParent)) {\n      const offsetRect = getBoundingClientRect(offsetParent);\n      scale = getScale(offsetParent);\n      offsets.x = offsetRect.x + offsetParent.clientLeft;\n      offsets.y = offsetRect.y + offsetParent.clientTop;\n    }\n  }\n  return {\n    width: rect.width * scale.x,\n    height: rect.height * scale.y,\n    x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,\n    y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y\n  };\n}\nfunction getClientRects(element) {\n  return Array.from(element.getClientRects());\n}\nfunction getWindowScrollBarX(element) {\n  return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;\n}\nfunction getDocumentRect(element) {\n  const html = getDocumentElement(element);\n  const scroll = getNodeScroll(element);\n  const body = element.ownerDocument.body;\n  const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n  const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n  let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n  const y = -scroll.scrollTop;\n  if (getComputedStyle(body).direction === \"rtl\") {\n    x += max(html.clientWidth, body.clientWidth) - width;\n  }\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getViewportRect(element, strategy) {\n  const win = getWindow(element);\n  const html = getDocumentElement(element);\n  const visualViewport = win.visualViewport;\n  let width = html.clientWidth;\n  let height = html.clientHeight;\n  let x = 0;\n  let y = 0;\n  if (visualViewport) {\n    width = visualViewport.width;\n    height = visualViewport.height;\n    const visualViewportBased = isWebKit();\n    if (!visualViewportBased || visualViewportBased && strategy === \"fixed\") {\n      x = visualViewport.offsetLeft;\n      y = visualViewport.offsetTop;\n    }\n  }\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getInnerBoundingClientRect(element, strategy) {\n  const clientRect = getBoundingClientRect(element, true, strategy === \"fixed\");\n  const top = clientRect.top + element.clientTop;\n  const left = clientRect.left + element.clientLeft;\n  const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n  const width = element.clientWidth * scale.x;\n  const height = element.clientHeight * scale.y;\n  const x = left * scale.x;\n  const y = top * scale.y;\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n  let rect;\n  if (clippingAncestor === \"viewport\") {\n    rect = getViewportRect(element, strategy);\n  } else if (clippingAncestor === \"document\") {\n    rect = getDocumentRect(getDocumentElement(element));\n  } else if (isElement(clippingAncestor)) {\n    rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n  } else {\n    const visualOffsets = getVisualOffsets(element);\n    rect = {\n      ...clippingAncestor,\n      x: clippingAncestor.x - visualOffsets.x,\n      y: clippingAncestor.y - visualOffsets.y\n    };\n  }\n  return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n  const parentNode = getParentNode(element);\n  if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n    return false;\n  }\n  return getComputedStyle(parentNode).position === \"fixed\" || hasFixedPositionAncestor(parentNode, stopNode);\n}\nfunction getClippingElementAncestors(element, cache) {\n  const cachedResult = cache.get(element);\n  if (cachedResult) {\n    return cachedResult;\n  }\n  let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== \"body\");\n  let currentContainingBlockComputedStyle = null;\n  const elementIsFixed = getComputedStyle(element).position === \"fixed\";\n  let currentNode = elementIsFixed ? getParentNode(element) : element;\n  while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n    const computedStyle = getComputedStyle(currentNode);\n    const currentNodeIsContaining = isContainingBlock(currentNode);\n    if (!currentNodeIsContaining && computedStyle.position === \"fixed\") {\n      currentContainingBlockComputedStyle = null;\n    }\n    const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === \"static\" && !!currentContainingBlockComputedStyle && [\"absolute\", \"fixed\"].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n    if (shouldDropCurrentNode) {\n      result = result.filter((ancestor) => ancestor !== currentNode);\n    } else {\n      currentContainingBlockComputedStyle = computedStyle;\n    }\n    currentNode = getParentNode(currentNode);\n  }\n  cache.set(element, result);\n  return result;\n}\nfunction getClippingRect(_ref) {\n  let {\n    element,\n    boundary,\n    rootBoundary,\n    strategy\n  } = _ref;\n  const elementClippingAncestors = boundary === \"clippingAncestors\" ? getClippingElementAncestors(element, this._c) : [].concat(boundary);\n  const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n  const firstClippingAncestor = clippingAncestors[0];\n  const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n    const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n    accRect.top = max(rect.top, accRect.top);\n    accRect.right = min(rect.right, accRect.right);\n    accRect.bottom = min(rect.bottom, accRect.bottom);\n    accRect.left = max(rect.left, accRect.left);\n    return accRect;\n  }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n  return {\n    width: clippingRect.right - clippingRect.left,\n    height: clippingRect.bottom - clippingRect.top,\n    x: clippingRect.left,\n    y: clippingRect.top\n  };\n}\nfunction getDimensions(element) {\n  return getCssDimensions(element);\n}\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n  const isOffsetParentAnElement = isHTMLElement(offsetParent);\n  const documentElement = getDocumentElement(offsetParent);\n  const isFixed = strategy === \"fixed\";\n  const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n  let scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  const offsets = createCoords(0);\n  if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n    if (getNodeName(offsetParent) !== \"body\" || isOverflowElement(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n    if (isOffsetParentAnElement) {\n      const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n      offsets.x = offsetRect.x + offsetParent.clientLeft;\n      offsets.y = offsetRect.y + offsetParent.clientTop;\n    } else if (documentElement) {\n      offsets.x = getWindowScrollBarX(documentElement);\n    }\n  }\n  return {\n    x: rect.left + scroll.scrollLeft - offsets.x,\n    y: rect.top + scroll.scrollTop - offsets.y,\n    width: rect.width,\n    height: rect.height\n  };\n}\nfunction getTrueOffsetParent(element, polyfill) {\n  if (!isHTMLElement(element) || getComputedStyle(element).position === \"fixed\") {\n    return null;\n  }\n  if (polyfill) {\n    return polyfill(element);\n  }\n  return element.offsetParent;\n}\nfunction getOffsetParent(element, polyfill) {\n  const window2 = getWindow(element);\n  if (!isHTMLElement(element)) {\n    return window2;\n  }\n  let offsetParent = getTrueOffsetParent(element, polyfill);\n  while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === \"static\") {\n    offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n  }\n  if (offsetParent && (getNodeName(offsetParent) === \"html\" || getNodeName(offsetParent) === \"body\" && getComputedStyle(offsetParent).position === \"static\" && !isContainingBlock(offsetParent))) {\n    return window2;\n  }\n  return offsetParent || getContainingBlock(element) || window2;\n}\nvar getElementRects = async function(_ref) {\n  let {\n    reference,\n    floating,\n    strategy\n  } = _ref;\n  const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n  const getDimensionsFn = this.getDimensions;\n  return {\n    reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),\n    floating: {\n      x: 0,\n      y: 0,\n      ...await getDimensionsFn(floating)\n    }\n  };\n};\nfunction isRTL(element) {\n  return getComputedStyle(element).direction === \"rtl\";\n}\nvar platform = {\n  convertOffsetParentRelativeRectToViewportRelativeRect,\n  getDocumentElement,\n  getClippingRect,\n  getOffsetParent,\n  getElementRects,\n  getClientRects,\n  getDimensions,\n  getScale,\n  isElement,\n  isRTL\n};\nfunction observeMove(element, onMove) {\n  let io = null;\n  let timeoutId;\n  const root = getDocumentElement(element);\n  function cleanup() {\n    clearTimeout(timeoutId);\n    io && io.disconnect();\n    io = null;\n  }\n  function refresh(skip, threshold) {\n    if (skip === void 0) {\n      skip = false;\n    }\n    if (threshold === void 0) {\n      threshold = 1;\n    }\n    cleanup();\n    const {\n      left,\n      top,\n      width,\n      height\n    } = element.getBoundingClientRect();\n    if (!skip) {\n      onMove();\n    }\n    if (!width || !height) {\n      return;\n    }\n    const insetTop = floor(top);\n    const insetRight = floor(root.clientWidth - (left + width));\n    const insetBottom = floor(root.clientHeight - (top + height));\n    const insetLeft = floor(left);\n    const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n    const options = {\n      rootMargin,\n      threshold: max(0, min(1, threshold)) || 1\n    };\n    let isFirstUpdate = true;\n    function handleObserve(entries) {\n      const ratio = entries[0].intersectionRatio;\n      if (ratio !== threshold) {\n        if (!isFirstUpdate) {\n          return refresh();\n        }\n        if (!ratio) {\n          timeoutId = setTimeout(() => {\n            refresh(false, 1e-7);\n          }, 100);\n        } else {\n          refresh(false, ratio);\n        }\n      }\n      isFirstUpdate = false;\n    }\n    try {\n      io = new IntersectionObserver(handleObserve, {\n        ...options,\n        // Handle <iframe>s\n        root: root.ownerDocument\n      });\n    } catch (e) {\n      io = new IntersectionObserver(handleObserve, options);\n    }\n    io.observe(element);\n  }\n  refresh(true);\n  return cleanup;\n}\nfunction autoUpdate(reference, floating, update, options) {\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    ancestorScroll = true,\n    ancestorResize = true,\n    elementResize = typeof ResizeObserver === \"function\",\n    layoutShift = typeof IntersectionObserver === \"function\",\n    animationFrame = false\n  } = options;\n  const referenceEl = unwrapElement(reference);\n  const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];\n  ancestors.forEach((ancestor) => {\n    ancestorScroll && ancestor.addEventListener(\"scroll\", update, {\n      passive: true\n    });\n    ancestorResize && ancestor.addEventListener(\"resize\", update);\n  });\n  const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n  let reobserveFrame = -1;\n  let resizeObserver = null;\n  if (elementResize) {\n    resizeObserver = new ResizeObserver((_ref) => {\n      let [firstEntry] = _ref;\n      if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n        resizeObserver.unobserve(floating);\n        cancelAnimationFrame(reobserveFrame);\n        reobserveFrame = requestAnimationFrame(() => {\n          resizeObserver && resizeObserver.observe(floating);\n        });\n      }\n      update();\n    });\n    if (referenceEl && !animationFrame) {\n      resizeObserver.observe(referenceEl);\n    }\n    resizeObserver.observe(floating);\n  }\n  let frameId;\n  let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n  if (animationFrame) {\n    frameLoop();\n  }\n  function frameLoop() {\n    const nextRefRect = getBoundingClientRect(reference);\n    if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {\n      update();\n    }\n    prevRefRect = nextRefRect;\n    frameId = requestAnimationFrame(frameLoop);\n  }\n  update();\n  return () => {\n    ancestors.forEach((ancestor) => {\n      ancestorScroll && ancestor.removeEventListener(\"scroll\", update);\n      ancestorResize && ancestor.removeEventListener(\"resize\", update);\n    });\n    cleanupIo && cleanupIo();\n    resizeObserver && resizeObserver.disconnect();\n    resizeObserver = null;\n    if (animationFrame) {\n      cancelAnimationFrame(frameId);\n    }\n  };\n}\nvar computePosition2 = (reference, floating, options) => {\n  const cache = /* @__PURE__ */ new Map();\n  const mergedOptions = {\n    platform,\n    ...options\n  };\n  const platformWithCache = {\n    ...mergedOptions.platform,\n    _c: cache\n  };\n  return computePosition(reference, floating, {\n    ...mergedOptions,\n    platform: platformWithCache\n  });\n};\n\n// packages/anchor/src/index.js\nfunction src_default(Alpine) {\n  Alpine.magic(\"anchor\", (el) => {\n    if (!el._x_anchor)\n      throw \"Alpine: No x-anchor directive found on element using $anchor...\";\n    return el._x_anchor;\n  });\n  Alpine.interceptClone((from, to) => {\n    if (from && from._x_anchor && !to._x_anchor) {\n      to._x_anchor = from._x_anchor;\n    }\n  });\n  Alpine.directive(\"anchor\", Alpine.skipDuringClone(\n    (el, { expression, modifiers, value }, { cleanup, evaluate: evaluate2 }) => {\n      let { placement, offsetValue, unstyled } = getOptions(modifiers);\n      el._x_anchor = Alpine.reactive({ x: 0, y: 0 });\n      let reference = evaluate2(expression);\n      if (!reference)\n        throw \"Alpine: no element provided to x-anchor...\";\n      let compute = () => {\n        let previousValue;\n        computePosition2(reference, el, {\n          placement,\n          middleware: [flip(), shift({ padding: 5 }), offset(offsetValue)]\n        }).then(({ x, y }) => {\n          unstyled || setStyles(el, x, y);\n          if (JSON.stringify({ x, y }) !== previousValue) {\n            el._x_anchor.x = x;\n            el._x_anchor.y = y;\n          }\n          previousValue = JSON.stringify({ x, y });\n        });\n      };\n      let release = autoUpdate(reference, el, () => compute());\n      cleanup(() => release());\n    },\n    // When cloning (or \"morphing\"), we will graft the style and position data from the live tree...\n    (el, { expression, modifiers, value }, { cleanup, evaluate: evaluate2 }) => {\n      let { placement, offsetValue, unstyled } = getOptions(modifiers);\n      if (el._x_anchor) {\n        unstyled || setStyles(el, el._x_anchor.x, el._x_anchor.y);\n      }\n    }\n  ));\n}\nfunction setStyles(el, x, y) {\n  Object.assign(el.style, {\n    left: x + \"px\",\n    top: y + \"px\",\n    position: \"absolute\"\n  });\n}\nfunction getOptions(modifiers) {\n  let positions = [\"top\", \"top-start\", \"top-end\", \"right\", \"right-start\", \"right-end\", \"bottom\", \"bottom-start\", \"bottom-end\", \"left\", \"left-start\", \"left-end\"];\n  let placement = positions.find((i) => modifiers.includes(i));\n  let offsetValue = 0;\n  if (modifiers.includes(\"offset\")) {\n    let idx = modifiers.findIndex((i) => i === \"offset\");\n    offsetValue = modifiers[idx + 1] !== void 0 ? Number(modifiers[idx + 1]) : offsetValue;\n  }\n  let unstyled = modifiers.includes(\"no-style\");\n  return { placement, offsetValue, unstyled };\n}\n\n// packages/anchor/builds/module.js\nvar module_default = src_default;\nexport {\n  src_default as anchor,\n  module_default as default\n};\n", "\r\nexport function updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks() {\r\n    // Create a history state entry for the initial page load.\r\n    // (This is so later hitting back can restore this page).\r\n    let url = new URL(window.location.href, document.baseURI)\r\n\r\n    replaceUrl(url, document.documentElement.outerHTML)\r\n}\r\n\r\nexport function whenTheBackOrForwardButtonIsClicked(callback) {\r\n    window.addEventListener('popstate', e => {\r\n        let state = e.state || {}\r\n\r\n        let alpine = state.alpine || {}\r\n\r\n        if (! alpine._html) return\r\n\r\n        let html = fromSessionStorage(alpine._html)\r\n\r\n        callback(html)\r\n    })\r\n}\r\n\r\nexport function updateUrlAndStoreLatestHtmlForFutureBackButtons(html, destination) {\r\n    pushUrl(destination, html)\r\n}\r\n\r\nexport function pushUrl(url, html) {\r\n    updateUrl('pushState', url, html)\r\n}\r\n\r\nexport function replaceUrl(url, html) {\r\n    updateUrl('replaceState', url, html)\r\n}\r\n\r\nfunction updateUrl(method, url, html) {\r\n    let key = (new Date).getTime()\r\n\r\n    tryToStoreInSession(key, html)\r\n\r\n    let state = history.state || {}\r\n\r\n    if (! state.alpine) state.alpine = {}\r\n\r\n    state.alpine._html = key\r\n\r\n    try {\r\n        // 640k character limit:\r\n        history[method](state, document.title, url)\r\n    } catch (error) {\r\n        if (error instanceof DOMException && error.name === 'SecurityError') {\r\n            console.error('Livewire: You can\\'t use wire:navigate with a link to a different root domain: '+url)\r\n        }\r\n\r\n        console.error(error)\r\n    }\r\n}\r\n\r\nexport function fromSessionStorage(timestamp) {\r\n    let state = JSON.parse(sessionStorage.getItem('alpine:'+timestamp))\r\n\r\n    return state\r\n}\r\n\r\nfunction tryToStoreInSession(timestamp, value) {\r\n    // sessionStorage has a max storage limit (usally 5MB).\r\n    // If we meet that limit, we'll start removing entries\r\n    // (oldest first), until there's enough space to store\r\n    // the new one.\r\n    try {\r\n        sessionStorage.setItem('alpine:'+timestamp, JSON.stringify(value))\r\n    } catch (error) {\r\n        // 22 is Chrome, 1-14 is other browsers.\r\n        if (! [22, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14].includes(error.code)) return\r\n\r\n        let oldestTimestamp = Object.keys(sessionStorage)\r\n            .map(key => Number(key.replace('alpine:', '')))\r\n            .sort()\r\n            .shift()\r\n\r\n        if (! oldestTimestamp) return\r\n\r\n        sessionStorage.removeItem('alpine:'+oldestTimestamp)\r\n\r\n        tryToStoreInSession(timestamp, value)\r\n    }\r\n}\r\n", "\r\nexport function whenThisLinkIsPressed(el, callback) {\r\n    let isProgrammaticClick = e => ! e.isTrusted\r\n    let isNotPlainLeftClick = e => (e.which > 1) || (e.altKey) || (e.ctrlKey) || (e.metaKey) || (e.shiftKey)\r\n    let isNotPlainEnterKey = (e) => (e.which !== 13) || (e.altKey) || (e.ctrlKey) || (e.metaKey) || (e.shiftKey)\r\n\r\n    el.addEventListener('click', e => {\r\n        // This allows programmatic clicking of links via: `$0.click()`...\r\n        if (isProgrammaticClick(e)) {\r\n            e.preventDefault()\r\n\r\n            callback(whenReleased => whenReleased())\r\n\r\n            return\r\n        }\r\n\r\n        // This allows cmd+click and such to still work as expected...\r\n        if (isNotPlainLeftClick(e)) return;\r\n\r\n        // If it's a plain left click, we want to prevent \"click\" and let \"mouseup\" do its thing...\r\n        e.preventDefault()\r\n    })\r\n\r\n    el.addEventListener('mousedown', e => {\r\n        // We only care about left clicks for wire:navigate...\r\n        if (isNotPlainLeftClick(e)) return;\r\n\r\n        e.preventDefault()\r\n\r\n        callback((whenReleased) => {\r\n            let handler = e => {\r\n                e.preventDefault()\r\n\r\n                whenReleased()\r\n\r\n                el.removeEventListener('mouseup', handler)\r\n            }\r\n\r\n            el.addEventListener('mouseup', handler)\r\n        })\r\n    })\r\n\r\n    el.addEventListener(\"keydown\", e => {\r\n        // We only care about the enter key...\r\n        if (isNotPlainEnterKey(e)) return;\r\n\r\n        e.preventDefault()\r\n\r\n        callback(whenReleased => whenReleased())\r\n    })\r\n}\r\n\r\nexport function whenThisLinkIsHoveredFor(el, ms = 60, callback) {\r\n    el.addEventListener('mouseenter', e => {\r\n        let timeout = setTimeout(() => {\r\n            callback(e)\r\n        }, ms)\r\n\r\n        let handler = () => {\r\n            clearTimeout(timeout)\r\n            el.removeEventListener('mouseleave', handler)\r\n        }\r\n\r\n        el.addEventListener('mouseleave', handler)\r\n    })\r\n}\r\n\r\nexport function extractDestinationFromLink(linkEl) {\r\n    return createUrlObjectFromString(linkEl.getAttribute('href'))\r\n}\r\n\r\nexport function createUrlObjectFromString(urlString) {\r\n    return new URL(urlString, document.baseURI)\r\n}\r\n", "import { trigger } from \"@/hooks\"\r\nimport { createUrlObjectFromString } from \"./links\"\r\n\r\nexport function fetchHtml(destination, callback) {\r\n    let uri = destination.pathname + destination.search\r\n\r\n    performFetch(uri, (html, finalDestination) => {\r\n        callback(html, finalDestination)\r\n    })\r\n}\r\n\r\nexport function performFetch(uri, callback) {\r\n    let options = {\r\n        headers: {\r\n            'X-Livewire-Navigate': ''\r\n        }\r\n    }\r\n\r\n    trigger('navigate.request', {\r\n        url: uri,\r\n        options,\r\n    })\r\n\r\n    let finalDestination\r\n\r\n    fetch(uri, options).then(response => {\r\n        finalDestination = createUrlObjectFromString(response.url)\r\n\r\n        return response.text()\r\n    }).then(html => {\r\n        callback(html, finalDestination)\r\n    });\r\n}\r\n", "import { performFetch } from \"@/plugins/navigate/fetch\";\r\n\r\n// Warning: this could cause some memory leaks\r\nlet prefetches = {}\r\n\r\nexport function prefetchHtml(destination, callback) {\r\n    let path = destination.pathname\r\n\r\n    if (prefetches[path]) return\r\n\r\n    prefetches[path] = { finished: false, html: null, whenFinished: () => {} }\r\n\r\n    performFetch(path, (html, routedUri) => {\r\n        callback(html, routedUri)\r\n    })\r\n}\r\n\r\nexport function storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination) {\r\n    let state = prefetches[destination.pathname]\r\n    state.html = html\r\n    state.finished = true\r\n    state.finalDestination = finalDestination\r\n    state.whenFinished()\r\n}\r\n\r\nexport function getPretchedHtmlOr(destination, receive, ifNoPrefetchExists) {\r\n    let uri = destination.pathname + destination.search\r\n\r\n    if (! prefetches[uri]) return ifNoPrefetchExists()\r\n\r\n    if (prefetches[uri].finished) {\r\n        let html = prefetches[uri].html\r\n        let finalDestination = prefetches[uri].finalDestination\r\n\r\n        delete prefetches[uri]\r\n\r\n        return receive(html, finalDestination)\r\n    } else {\r\n        prefetches[uri].whenFinished = () => {\r\n            let html = prefetches[uri].html\r\n            let finalDestination = prefetches[uri].finalDestination\r\n\r\n            delete prefetches[uri]\r\n\r\n            receive(html, finalDestination)\r\n        }\r\n    }\r\n}\r\n\r\n", "import Alpine from \"alpinejs\"\r\n\r\nexport function packUpPersistedTeleports(persistedEl) {\r\n    // Persisted elements get removed from the DOM and then re-added later. We need to do the same\r\n    // with any `x-teleport`ed elements...\r\n    Alpine.mutateDom(() => {\r\n        persistedEl.querySelectorAll('[data-teleport-template]').forEach(i => i._x_teleport.remove())\r\n    })\r\n}\r\n\r\nexport function removeAnyLeftOverStaleTeleportTargets(body) {\r\n    // We need to remove any left-over teleported elements form the page\r\n    // as they are stale and will be re-initialized when Alpine boots up on this page...\r\n    Alpine.mutateDom(() => {\r\n        body.querySelectorAll('[data-teleport-target]').forEach(i => i.remove())\r\n    })\r\n}\r\n\r\nexport function unPackPersistedTeleports(persistedEl) {\r\n    // Before we put back any persisted elements, we're going to\r\n    // find any \"x-teleports\" and put their targets back on the page...\r\n    Alpine.walk(persistedEl, (el, skip) => {\r\n        if (! el._x_teleport) return;\r\n\r\n        el._x_teleportPutBack()\r\n\r\n        skip()\r\n    })\r\n}\r\n\r\nexport function isTeleportTarget(el) {\r\n    return el.hasAttribute('data-teleport-target')\r\n}\r\n", "\r\nexport function storeScrollInformationInHtmlBeforeNavigatingAway() {\r\n    document.body.setAttribute('data-scroll-x', document.body.scrollLeft)\r\n    document.body.setAttribute('data-scroll-y', document.body.scrollTop)\r\n\r\n    document.querySelectorAll(['[x-navigate\\\\:scroll]', '[wire\\\\:scroll]']).forEach(el => {\r\n        el.setAttribute('data-scroll-x', el.scrollLeft)\r\n        el.setAttribute('data-scroll-y', el.scrollTop)\r\n    })\r\n}\r\n\r\nexport function restoreScrollPositionOrScrollToTop() {\r\n    let scroll = el => {\r\n        if (! el.hasAttribute('data-scroll-x')) {\r\n            window.scrollTo({ top: 0, left: 0, behavior: 'instant' })\r\n        } else {\r\n            el.scrollTo({\r\n                top: Number(el.getAttribute('data-scroll-y')),\r\n                left: Number(el.getAttribute('data-scroll-x')),\r\n                behavior: 'instant',\r\n            })\r\n            el.removeAttribute('data-scroll-x')\r\n            el.removeAttribute('data-scroll-y')\r\n        }\r\n    }\r\n\r\n    queueMicrotask(() => {\r\n        scroll(document.body)\r\n\r\n        document.querySelectorAll(['[x-navigate\\\\:scroll]', '[wire\\\\:scroll]']).forEach(scroll)\r\n    })\r\n}\r\n", "import Alpine from 'alpinejs'\r\n\r\nlet els = {}\r\n\r\nexport function storePersistantElementsForLater(callback) {\r\n    els = {}\r\n\r\n    document.querySelectorAll('[x-persist]').forEach(i => {\r\n        els[i.getAttribute('x-persist')] = i\r\n\r\n        callback(i)\r\n\r\n        Alpine.mutateDom(() => {\r\n            i.remove()\r\n        })\r\n    })\r\n}\r\n\r\nexport function putPersistantElementsBack(callback) {\r\n    let usedPersists = []\r\n\r\n    document.querySelectorAll('[x-persist]').forEach(i => {\r\n        let old = els[i.getAttribute('x-persist')]\r\n\r\n        // There might be a brand new x-persist element...\r\n        if (! old) return\r\n\r\n        usedPersists.push(i.getAttribute('x-persist'))\r\n\r\n        old._x_wasPersisted = true\r\n\r\n        callback(old, i)\r\n\r\n        Alpine.mutateDom(() => {\r\n            i.replaceWith(old)\r\n        })\r\n    })\r\n\r\n    Object.entries(els).forEach(([key, el]) => {\r\n        if (usedPersists.includes(key)) return\r\n\r\n        // Destory the un-used persist DOM trees before releasing them...\r\n        Alpine.destroyTree(el)\r\n    })\r\n\r\n    // Release unused persists for garbage collection...\r\n    els = {}\r\n}\r\n\r\nexport function isPersistedElement(el) {\r\n    return el.hasAttribute('x-persist')\r\n}\r\n", "import NProgress from 'nprogress'\r\nimport { getNonce } from '@/utils'\r\n\r\nNProgress.configure({\r\n    minimum: 0.1,\r\n    trickleSpeed: 200,\r\n    showSpinner: false,\r\n})\r\n\r\ninjectStyles()\r\n\r\nlet inProgress = false\r\nexport function showAndStartProgressBar() {\r\n    inProgress = true\r\n    // Only show progress bar if it's been a little bit...\r\n    setTimeout(() => {\r\n        if (! inProgress) return\r\n        NProgress.start()\r\n    }, 150)\r\n\r\n    // createBar()\r\n\r\n    // incrementBar()\r\n}\r\n\r\nexport function finishAndHideProgressBar() {\r\n    inProgress = false\r\n    NProgress.done()\r\n    NProgress.remove()\r\n\r\n    // finishProgressBar(); destroyBar()\r\n}\r\n\r\nfunction createBar() {\r\n    let bar = document.createElement('div')\r\n\r\n    bar.setAttribute('id', 'alpine-progress-bar')\r\n    bar.setAttribute('x-navigate:persist', 'alpine-progress-bar')\r\n    bar.setAttribute('style', `\r\n        width: 100%;\r\n        height: 5px;\r\n        background: black;\r\n        position: absolute;\r\n        top: 0;\r\n        left: 0;\r\n        right: 0;\r\n        transition: all 0.5s ease;\r\n        transform: scaleX(0);\r\n        transform-origin: left;\r\n    `)\r\n\r\n    document.body.appendChild(bar)\r\n\r\n    return bar\r\n}\r\n\r\nfunction incrementBar(goal = .1) {\r\n    let bar = document.getElementById('alpine-progress-bar')\r\n\r\n    if (! bar) return\r\n\r\n    let percentage = Number(bar.style.transform.match(/scaleX\\((.+)\\)/)[1])\r\n\r\n    if (percentage > 1) return\r\n\r\n    bar.style.transform = 'scaleX(' + goal + ')'\r\n\r\n    setTimeout(() => {\r\n        incrementBar(percentage + .1)\r\n    }, 50)\r\n}\r\n\r\nfunction finishProgressBar(callback) {\r\n    let bar = document.getElementById('alpine-progress-bar')\r\n    bar.style.transform = 'scaleX(1)'\r\n}\r\n\r\nfunction destroyBar() {\r\n    document.getElementById('alpine-progress-bar').remove()\r\n}\r\n\r\nfunction injectStyles() {\r\n    let style = document.createElement('style')\r\n    style.innerHTML = `/* Make clicks pass-through */\r\n\r\n    #nprogress {\r\n      pointer-events: none;\r\n    }\r\n\r\n    #nprogress .bar {\r\n      background: var(--livewire-progress-bar-color, #29d);\r\n\r\n      position: fixed;\r\n      z-index: 1031;\r\n      top: 0;\r\n      left: 0;\r\n\r\n      width: 100%;\r\n      height: 2px;\r\n    }\r\n\r\n    /* Fancy blur effect */\r\n    #nprogress .peg {\r\n      display: block;\r\n      position: absolute;\r\n      right: 0px;\r\n      width: 100px;\r\n      height: 100%;\r\n      box-shadow: 0 0 10px var(--livewire-progress-bar-color, #29d), 0 0 5px var(--livewire-progress-bar-color, #29d);\r\n      opacity: 1.0;\r\n\r\n      -webkit-transform: rotate(3deg) translate(0px, -4px);\r\n          -ms-transform: rotate(3deg) translate(0px, -4px);\r\n              transform: rotate(3deg) translate(0px, -4px);\r\n    }\r\n\r\n    /* Remove these to get rid of the spinner */\r\n    #nprogress .spinner {\r\n      display: block;\r\n      position: fixed;\r\n      z-index: 1031;\r\n      top: 15px;\r\n      right: 15px;\r\n    }\r\n\r\n    #nprogress .spinner-icon {\r\n      width: 18px;\r\n      height: 18px;\r\n      box-sizing: border-box;\r\n\r\n      border: solid 2px transparent;\r\n      border-top-color: var(--livewire-progress-bar-color, #29d);\r\n      border-left-color: var(--livewire-progress-bar-color, #29d);\r\n      border-radius: 50%;\r\n\r\n      -webkit-animation: nprogress-spinner 400ms linear infinite;\r\n              animation: nprogress-spinner 400ms linear infinite;\r\n    }\r\n\r\n    .nprogress-custom-parent {\r\n      overflow: hidden;\r\n      position: relative;\r\n    }\r\n\r\n    .nprogress-custom-parent #nprogress .spinner,\r\n    .nprogress-custom-parent #nprogress .bar {\r\n      position: absolute;\r\n    }\r\n\r\n    @-webkit-keyframes nprogress-spinner {\r\n      0%   { -webkit-transform: rotate(0deg); }\r\n      100% { -webkit-transform: rotate(360deg); }\r\n    }\r\n    @keyframes nprogress-spinner {\r\n      0%   { transform: rotate(0deg); }\r\n      100% { transform: rotate(360deg); }\r\n    }\r\n    `\r\n\r\n    let nonce = getNonce()\r\n    if (nonce) {\r\n      style.nonce = nonce\r\n    }\r\n\r\n    document.head.appendChild(style)\r\n}\r\n", "let oldBodyScriptTagHashes = []\r\n\r\nlet attributesExemptFromScriptTagHashing = [\r\n    'data-csrf',\r\n    'aria-hidden',\r\n]\r\n\r\nexport function swapCurrentPageWithNewHtml(html, andThen) {\r\n    let newDocument = (new DOMParser()).parseFromString(html, \"text/html\")\r\n    let newBody = document.adoptNode(newDocument.body)\r\n    let newHead = document.adoptNode(newDocument.head)\r\n\r\n    oldBodyScriptTagHashes = oldBodyScriptTagHashes.concat(Array.from(document.body.querySelectorAll('script')).map(i => {\r\n        return simpleHash(ignoreAttributes(i.outerHTML, attributesExemptFromScriptTagHashing))\r\n    }))\r\n\r\n    let afterRemoteScriptsHaveLoaded = () => {}\r\n\r\n    mergeNewHead(newHead).finally(() => {\r\n        afterRemoteScriptsHaveLoaded()\r\n    })\r\n\r\n    prepNewBodyScriptTagsToRun(newBody, oldBodyScriptTagHashes)\r\n\r\n    let oldBody = document.body\r\n\r\n    document.body.replaceWith(newBody)\r\n\r\n    Alpine.destroyTree(oldBody)\r\n\r\n    andThen(i => afterRemoteScriptsHaveLoaded = i)\r\n}\r\n\r\nfunction prepNewBodyScriptTagsToRun(newBody, oldBodyScriptTagHashes) {\r\n    newBody.querySelectorAll('script').forEach(i => {\r\n        // We don't want to re-run script tags marked as \"data-navigate-once\"...\r\n        if (i.hasAttribute('data-navigate-once')) {\r\n            // However, if they didn't exist on the previous page, we do.\r\n            // Therefore, we'll check the \"old body script hashes\" to\r\n            // see if it was already there before skipping it...\r\n\r\n            let hash = simpleHash(\r\n                ignoreAttributes(i.outerHTML, attributesExemptFromScriptTagHashing)\r\n            )\r\n\r\n            if (oldBodyScriptTagHashes.includes(hash)) return\r\n        }\r\n\r\n        i.replaceWith(cloneScriptTag(i))\r\n    })\r\n}\r\n\r\nfunction mergeNewHead(newHead) {\r\n    let children = Array.from(document.head.children)\r\n    let headChildrenHtmlLookup = children.map(i => i.outerHTML)\r\n\r\n    // Only add scripts and styles that aren't already loaded on the page.\r\n    let garbageCollector = document.createDocumentFragment()\r\n\r\n    let touchedHeadElements = []\r\n\r\n    let remoteScriptsPromises = []\r\n\r\n    for (let child of Array.from(newHead.children)) {\r\n        if (isAsset(child)) {\r\n            if (! headChildrenHtmlLookup.includes(child.outerHTML)) {\r\n                if (isTracked(child)) {\r\n                    if (ifTheQueryStringChangedSinceLastRequest(child, children)) {\r\n                        setTimeout(() => window.location.reload())\r\n                    }\r\n                }\r\n\r\n                if (isScript(child)) {\r\n                    try {\r\n                        remoteScriptsPromises.push(\r\n                            injectScriptTagAndWaitForItToFullyLoad(\r\n                                cloneScriptTag(child)\r\n                            )\r\n                        )\r\n                    } catch (error) {\r\n                        // Let's eat any promise rejects so that we don't\r\n                        // break the rest of the Alpine intializing...\r\n                        // Any errors triggered by adding the script tag to the page\r\n                        // will still be thrown...\r\n                    }\r\n                } else {\r\n                    document.head.appendChild(child)\r\n                }\r\n            } else {\r\n                garbageCollector.appendChild(child)\r\n            }\r\n\r\n            touchedHeadElements.push(child)\r\n        }\r\n    }\r\n\r\n    // Remove any assets that aren't on the new page...\r\n    // @todo: Re-enable this code and find a better way to managed injected stylesheets. See livewire/livewire#6824\r\n    // for (let child of Array.from(document.head.children)) {\r\n    //     if (isAsset(child)) {\r\n    //         if (! touchedHeadElements.some(i => i.outerHTML === child.outerHTML)) {\r\n    //             child.remove()\r\n    //         }\r\n    //     }\r\n    // }\r\n\r\n    // How to free up the garbage collector?\r\n\r\n    // Remove existing non-asset elements like meta, base, title, template.\r\n    for (let child of Array.from(document.head.children)) {\r\n        if (! isAsset(child)) child.remove()\r\n    }\r\n\r\n    // Add new non-asset elements left over in the new head element.\r\n    for (let child of Array.from(newHead.children)) {\r\n        document.head.appendChild(child)\r\n    }\r\n\r\n    return Promise.all(remoteScriptsPromises)\r\n}\r\n\r\nasync function injectScriptTagAndWaitForItToFullyLoad(script) {\r\n    return new Promise((resolve, reject) => {\r\n        // Script assets need to be loaded synchronously so that scripts have\r\n        // their global variables available...\r\n        if (script.src) {\r\n            script.onload = () => resolve()\r\n            script.onerror = () => reject()\r\n        } else {\r\n            resolve()\r\n        }\r\n\r\n        document.head.appendChild(script)\r\n    })\r\n}\r\n\r\nfunction cloneScriptTag(el) {\r\n    let script = document.createElement('script')\r\n\r\n    script.textContent = el.textContent\r\n    script.async = el.async\r\n\r\n    for (let attr of el.attributes) {\r\n        script.setAttribute(attr.name, attr.value)\r\n    }\r\n\r\n    return script\r\n}\r\n\r\nfunction isTracked(el) {\r\n    return el.hasAttribute('data-navigate-track')\r\n}\r\n\r\nfunction ifTheQueryStringChangedSinceLastRequest(el, currentHeadChildren) {\r\n    let [uri, queryString] = extractUriAndQueryString(el)\r\n\r\n    return currentHeadChildren.some(child => {\r\n        if (! isTracked(child)) return false\r\n\r\n        let [currentUri, currentQueryString] = extractUriAndQueryString(child)\r\n\r\n        // Only consider a data-navigate-track element changed if the query string has changed (not the URI)...\r\n        if (currentUri === uri && queryString !== currentQueryString) return true\r\n    })\r\n}\r\n\r\nfunction extractUriAndQueryString(el) {\r\n    let url = isScript(el) ? el.src : el.href\r\n\r\n    return url.split('?')\r\n}\r\n\r\nfunction isAsset(el) {\r\n    return (el.tagName.toLowerCase() === 'link' && el.getAttribute('rel').toLowerCase() === 'stylesheet')\r\n        || el.tagName.toLowerCase() === 'style'\r\n        || el.tagName.toLowerCase() === 'script'\r\n}\r\n\r\nfunction isScript(el)   {\r\n    return el.tagName.toLowerCase() === 'script'\r\n}\r\n\r\nfunction simpleHash(str) {\r\n    return str.split('').reduce((a, b) => {\r\n        a = ((a << 5) - a) + b.charCodeAt(0)\r\n\r\n        return a & a\r\n    }, 0);\r\n}\r\n\r\nfunction ignoreAttributes(subject, attributesToRemove) {\r\n    let result = subject\r\n\r\n    attributesToRemove.forEach(attr => {\r\n        // Create a regex pattern to match the attribute and its value.\r\n        // The regex handles attributes that have values surrounded by either single or double quotes.\r\n        const regex = new RegExp(`${attr}=\"[^\"]*\"|${attr}='[^']*'`, 'g')\r\n\r\n        result = result.replace(regex, '')\r\n    })\r\n\r\n    // Remove all whitespace to make things less flaky...\r\n    result = result.replaceAll(' ', '')\r\n\r\n    return result.trim()\r\n}\r\n", "import { updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks, updateUrlAndStoreLatestHtmlForFutureBackButtons, whenTheBackOrForwardButtonIsClicked } from \"./history\"\r\nimport { getPretchedHtmlOr, prefetchHtml, storeThePrefetchedHtmlForWhenALinkIsClicked } from \"./prefetch\"\r\nimport { createUrlObjectFromString, extractDestinationFromLink, whenThisLinkIsHoveredFor, whenThisLinkIsPressed } from \"./links\"\r\nimport { isTeleportTarget, packUpPersistedTeleports, removeAnyLeftOverStaleTeleportTargets, unPackPersistedTeleports } from \"./teleport\"\r\nimport { restoreScrollPositionOrScrollToTop, storeScrollInformationInHtmlBeforeNavigatingAway } from \"./scroll\"\r\nimport { isPersistedElement, putPersistantElementsBack, storePersistantElementsForLater } from \"./persist\"\r\nimport { finishAndHideProgressBar, showAndStartProgressBar } from \"./bar\"\r\nimport { swapCurrentPageWithNewHtml } from \"./page\"\r\nimport { fetchHtml } from \"./fetch\"\r\n\r\nlet enablePersist = true\r\nlet showProgressBar = true\r\nlet restoreScroll = true\r\nlet autofocus = false\r\n\r\nexport default function (Alpine) {\r\n    Alpine.navigate = (url) => {\r\n        navigateTo(\r\n            createUrlObjectFromString(url)\r\n        )\r\n    }\r\n\r\n    Alpine.navigate.disableProgressBar = () => {\r\n        showProgressBar = false\r\n    }\r\n\r\n    Alpine.addInitSelector(() => `[${Alpine.prefixed('navigate')}]`)\r\n\r\n    Alpine.directive('navigate', (el, { modifiers }) => {\r\n        let shouldPrefetchOnHover = modifiers.includes('hover')\r\n\r\n        shouldPrefetchOnHover && whenThisLinkIsHoveredFor(el, 60, () => {\r\n            let destination = extractDestinationFromLink(el)\r\n\r\n            prefetchHtml(destination, (html, finalDestination) => {\r\n                storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination)\r\n            })\r\n        })\r\n\r\n        whenThisLinkIsPressed(el, (whenItIsReleased) => {\r\n            let destination = extractDestinationFromLink(el)\r\n\r\n            prefetchHtml(destination, (html, finalDestination) => {\r\n                storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination)\r\n            })\r\n\r\n            whenItIsReleased(() => {\r\n                navigateTo(destination)\r\n            })\r\n        })\r\n    })\r\n\r\n    function navigateTo(destination) {\r\n        showProgressBar && showAndStartProgressBar()\r\n\r\n        fetchHtmlOrUsePrefetchedHtml(destination, (html, finalDestination) => {\r\n            fireEventForOtherLibariesToHookInto('alpine:navigating')\r\n\r\n            restoreScroll && storeScrollInformationInHtmlBeforeNavigatingAway()\r\n\r\n            showProgressBar && finishAndHideProgressBar()\r\n\r\n            cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement()\r\n\r\n            updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks()\r\n\r\n            preventAlpineFromPickingUpDomChanges(Alpine, andAfterAllThis => {\r\n                enablePersist && storePersistantElementsForLater(persistedEl => {\r\n                    packUpPersistedTeleports(persistedEl)\r\n                })\r\n\r\n                swapCurrentPageWithNewHtml(html, (afterNewScriptsAreDoneLoading) => {\r\n                    removeAnyLeftOverStaleTeleportTargets(document.body)\r\n\r\n                    enablePersist && putPersistantElementsBack((persistedEl, newStub) => {\r\n                        unPackPersistedTeleports(persistedEl)\r\n                    })\r\n\r\n                    restoreScrollPositionOrScrollToTop()\r\n\r\n                    updateUrlAndStoreLatestHtmlForFutureBackButtons(html, finalDestination)\r\n\r\n                    fireEventForOtherLibariesToHookInto('alpine:navigated')\r\n\r\n                    afterNewScriptsAreDoneLoading(() => {\r\n                        andAfterAllThis(() => {\r\n                            setTimeout(() => {\r\n                                autofocus && autofocusElementsWithTheAutofocusAttribute()\r\n                            })\r\n\r\n                            nowInitializeAlpineOnTheNewPage(Alpine)\r\n                        })\r\n                    })\r\n                })\r\n            })\r\n        })\r\n    }\r\n\r\n    whenTheBackOrForwardButtonIsClicked((html) => {\r\n        // @todo: see if there's a way to update the current HTML BEFORE\r\n        // the back button is hit, and not AFTER:\r\n        storeScrollInformationInHtmlBeforeNavigatingAway()\r\n        // updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks()\r\n\r\n        preventAlpineFromPickingUpDomChanges(Alpine, andAfterAllThis => {\r\n            enablePersist && storePersistantElementsForLater(persistedEl => {\r\n                packUpPersistedTeleports(persistedEl)\r\n            })\r\n\r\n            swapCurrentPageWithNewHtml(html, () => {\r\n                removeAnyLeftOverStaleTeleportTargets(document.body)\r\n\r\n                enablePersist && putPersistantElementsBack((persistedEl, newStub) => {\r\n                    unPackPersistedTeleports(persistedEl)\r\n                })\r\n\r\n                restoreScrollPositionOrScrollToTop()\r\n\r\n                fireEventForOtherLibariesToHookInto('alpine:navigated')\r\n\r\n                andAfterAllThis(() => {\r\n                    autofocus && autofocusElementsWithTheAutofocusAttribute()\r\n\r\n                    nowInitializeAlpineOnTheNewPage(Alpine)\r\n                })\r\n            })\r\n\r\n        })\r\n    })\r\n\r\n    // Because DOMContentLoaded is fired on first load,\r\n    // we should fire alpine:navigated as a replacement as well...\r\n    setTimeout(() => {\r\n        fireEventForOtherLibariesToHookInto('alpine:navigated')\r\n    })\r\n}\r\n\r\nfunction fetchHtmlOrUsePrefetchedHtml(fromDestination, callback) {\r\n    getPretchedHtmlOr(fromDestination, callback, () => {\r\n        fetchHtml(fromDestination, callback)\r\n    })\r\n}\r\n\r\nfunction preventAlpineFromPickingUpDomChanges(Alpine, callback) {\r\n    Alpine.stopObservingMutations()\r\n\r\n    callback((afterAllThis) => {\r\n        Alpine.startObservingMutations()\r\n\r\n        queueMicrotask(() => {\r\n            afterAllThis()\r\n        })\r\n    })\r\n}\r\n\r\nfunction fireEventForOtherLibariesToHookInto(eventName) {\r\n    document.dispatchEvent(new CustomEvent(eventName, { bubbles: true }))\r\n}\r\n\r\nfunction nowInitializeAlpineOnTheNewPage(Alpine) {\r\n    Alpine.initTree(document.body, undefined, (el, skip) => {\r\n        if (el._x_wasPersisted) skip()\r\n    })\r\n}\r\n\r\nfunction autofocusElementsWithTheAutofocusAttribute() {\r\n    document.querySelector('[autofocus]') && document.querySelector('[autofocus]').focus()\r\n}\r\n\r\nfunction cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement() {\r\n    // Create a new tree walker that skips persisted elements...\r\n    let walker = function (root, callback) {\r\n        Alpine.walk(root, (el, skip) => {\r\n            if (isPersistedElement(el)) skip()\r\n            if (isTeleportTarget(el)) skip()\r\n            else callback(el, skip)\r\n        })\r\n    }\r\n\r\n    // Set Alpine in motion to destroy itself on the page. If this proves\r\n    // to be a performance issue at some point (walking the DOM tree),\r\n    // we can be more surgical about cleaning up x-for/if instead...\r\n    Alpine.destroyTree(document.body, walker)\r\n}\r\n", "import { isObjecty } from \"@/utils\"\r\n\r\nexport default function history(Alpine) {\r\n    Alpine.magic('queryString', (el, { interceptor }) =>  {\r\n        let alias\r\n        let alwaysShow = false\r\n        let usePush = false\r\n\r\n        return interceptor((initialSeedValue, getter, setter, path, key) => {\r\n            let queryKey = alias || path\r\n\r\n            let { initial, replace, push, pop } = track(queryKey, initialSeedValue, alwaysShow)\r\n\r\n            setter(initial)\r\n\r\n            if (! usePush) {\r\n                Alpine.effect(() => replace(getter()))\r\n            } else {\r\n                Alpine.effect(() => push(getter()))\r\n\r\n                pop(async newValue => {\r\n                    setter(newValue)\r\n\r\n                    let tillTheEndOfTheMicrotaskQueue = () => Promise.resolve()\r\n\r\n                    await tillTheEndOfTheMicrotaskQueue() // ...so that we preserve the internal lock...\r\n                })\r\n            }\r\n\r\n            return initial\r\n        }, func => {\r\n            func.alwaysShow = () => { alwaysShow = true; return func }\r\n            func.usePush = () => { usePush = true; return func }\r\n            func.as = key => { alias = key; return func }\r\n        })\r\n    })\r\n\r\n    Alpine.history = { track }\r\n}\r\n\r\nexport function track(name, initialSeedValue, alwaysShow = false) {\r\n    let { has, get, set, remove } = queryStringUtils()\r\n\r\n    let url = new URL(window.location.href)\r\n    let isInitiallyPresentInUrl = has(url, name)\r\n    let initialValue = isInitiallyPresentInUrl ? get(url, name) : initialSeedValue\r\n    let initialValueMemo = JSON.stringify(initialValue)\r\n    let hasReturnedToInitialValue = (newValue) => JSON.stringify(newValue) === initialValueMemo\r\n\r\n    if (alwaysShow) url = set(url, name, initialValue)\r\n\r\n    replace(url, name, { value: initialValue })\r\n\r\n    let lock = false\r\n\r\n    let update = (strategy, newValue) => {\r\n        if (lock) return\r\n\r\n        let url = new URL(window.location.href)\r\n\r\n        // This block of code is what needs to be changed for this failing test to pass:\r\n        if (! alwaysShow && ! isInitiallyPresentInUrl && hasReturnedToInitialValue(newValue)) {\r\n            url = remove(url, name)\r\n        // This is so that when deeply nested values are tracked, but their parent array/object\r\n        // is removed, we can handle it gracefully by removing the entry from the URL instead\r\n        // of letting it get set to `?someKey=undefined` which causes issues on refresh...\r\n        } else if (newValue === undefined) {\r\n            url = remove(url, name)\r\n        } else {\r\n            url = set(url, name, newValue)\r\n        }\r\n\r\n        // Right now, the above block, checks a few conditions and updates/removes an entry from the query string.\r\n        // The new strategy needs to be something like:\r\n        // - If \"alwaysShow\" is toggled on, then just \"set\" the whole thing with no deep diff\r\n        // - Otherwise, run a deep comparison callback (given the original value and new value).\r\n        //   - The callback recieves two params (leaf name and value)\r\n        //   - Check leaf name and value for existance in the original URL from page load. If it's there, just call \"set\"\r\n        //   - Check leaf name and value for equivelance to original name and value, if equal, call \"remove\", otherwise, \"set\"\r\n\r\n        // That code will look something like this:\r\n\r\n        // if (alwaysShow) {\r\n        //     set(url, name, newValue)\r\n        // } else {\r\n        //     deepCompare(name, newValue, originalValue, (leafName, leafValue) => {\r\n        //         // ....\r\n        //     })\r\n        // }\r\n\r\n        strategy(url, name, { value: newValue})\r\n    }\r\n\r\n    return {\r\n        initial: initialValue,\r\n\r\n        replace(newValue) { // Update via replaceState...\r\n            update(replace, newValue)\r\n        },\r\n\r\n        push(newValue) { // Update via pushState...\r\n            update(push, newValue)\r\n        },\r\n\r\n        pop(receiver) { // \"popstate\" handler...\r\n            let handler = (e) => {\r\n                if (! e.state || ! e.state.alpine) return\r\n\r\n                Object.entries(e.state.alpine).forEach(([iName, { value: newValue }]) => {\r\n                    if (iName !== name) return\r\n\r\n                    lock = true\r\n\r\n                    // Allow the \"receiver\" to be an async function in case a non-syncronous\r\n                    // operation (like an ajax) requests needs to happen while preserving\r\n                    // the \"locking\" mechanism (\"lock = true\" in this case)...\r\n                    let result = receiver(newValue)\r\n\r\n                    if (result instanceof Promise) {\r\n                        result.finally(() => lock = false)\r\n                    } else {\r\n                        lock = false\r\n                    }\r\n                })\r\n            }\r\n\r\n            window.addEventListener('popstate', handler)\r\n\r\n            return () => window.removeEventListener('popstate', handler)\r\n        }\r\n    }\r\n}\r\n\r\nfunction replace(url, key, object) {\r\n    let state = window.history.state || {}\r\n\r\n    if (! state.alpine) state.alpine = {}\r\n\r\n    state.alpine[key] = unwrap(object)\r\n\r\n    window.history.replaceState(state, '', url.toString())\r\n}\r\n\r\nfunction push(url, key, object) {\r\n    let state = window.history.state || {}\r\n\r\n    if (! state.alpine) state.alpine = {}\r\n\r\n    state = { alpine: {...state.alpine, ...{[key]: unwrap(object)}} }\r\n\r\n    window.history.pushState(state, '', url.toString())\r\n}\r\n\r\nfunction unwrap(object) {\r\n    if (object === undefined) return undefined\r\n\r\n    return JSON.parse(JSON.stringify(object))\r\n}\r\n\r\nfunction queryStringUtils() {\r\n    return {\r\n        has(url, key) {\r\n            let search = url.search\r\n\r\n            if (! search) return false\r\n\r\n            let data = fromQueryString(search)\r\n\r\n            return Object.keys(data).includes(key)\r\n        },\r\n        get(url, key) {\r\n            let search = url.search\r\n\r\n            if (! search) return false\r\n\r\n            let data = fromQueryString(search)\r\n\r\n            return data[key]\r\n        },\r\n        set(url, key, value) {\r\n            let data = fromQueryString(url.search)\r\n\r\n            data[key] = stripNulls(unwrap(value))\r\n\r\n            url.search = toQueryString(data)\r\n\r\n            return url\r\n        },\r\n        remove(url, key) {\r\n            let data = fromQueryString(url.search)\r\n\r\n            delete data[key]\r\n\r\n            url.search = toQueryString(data)\r\n\r\n            return url\r\n        },\r\n    }\r\n}\r\n\r\nfunction stripNulls(value) {\r\n    if (! isObjecty(value)) return value\r\n\r\n    for (let key in value) {\r\n        if (value[key] === null) delete value[key]\r\n        else value[key] = stripNulls(value[key])\r\n    }\r\n\r\n    return value\r\n}\r\n\r\n// This function converts JavaScript data to bracketed query string notation...\r\n// { items: [['foo']] } -> \"items[0][0]=foo\"\r\nfunction toQueryString(data) {\r\n    let isObjecty = (subject) => typeof subject === 'object' && subject !== null\r\n\r\n    let buildQueryStringEntries = (data, entries = {}, baseKey = '') => {\r\n        Object.entries(data).forEach(([iKey, iValue]) => {\r\n            let key = baseKey === '' ? iKey : `${baseKey}[${iKey}]`\r\n\r\n            if (iValue === null) {\r\n                entries[key] = '';\r\n            } else if (! isObjecty(iValue)) {\r\n                entries[key] = encodeURIComponent(iValue)\r\n                    .replaceAll('%20', '+') // Conform to RFC1738\r\n                    .replaceAll('%2C', ',')\r\n            } else {\r\n                entries = {...entries, ...buildQueryStringEntries(iValue, entries, key)}\r\n            }\r\n        })\r\n\r\n        return entries\r\n    }\r\n\r\n    let entries = buildQueryStringEntries(data)\r\n\r\n    return Object.entries(entries).map(([key, value]) => `${key}=${value}`).join('&')\r\n}\r\n\r\n// This function converts bracketed query string notation back to JS data...\r\n// \"items[0][0]=foo\" -> { items: [['foo']] }\r\nfunction fromQueryString(search) {\r\n    search = search.replace('?', '')\r\n\r\n    if (search === '') return {}\r\n\r\n    let insertDotNotatedValueIntoData = (key, value, data) => {\r\n        let [first, second, ...rest] = key.split('.')\r\n\r\n        // We're at a leaf node, let's make the assigment...\r\n        if (! second) return data[key] = value\r\n\r\n        // This is where we fill in empty arrays/objects allong the way to the assigment...\r\n        if (data[first] === undefined) {\r\n            data[first] = isNaN(second) ? {} : []\r\n        }\r\n\r\n        // Keep deferring assignment until the full key is built up...\r\n        insertDotNotatedValueIntoData([second, ...rest].join('.'), value, data[first])\r\n    }\r\n\r\n    let entries = search.split('&').map(i => i.split('='))\r\n\r\n    let data = {}\r\n\r\n    entries.forEach(([key, value]) => {\r\n        value = decodeURIComponent(value.replaceAll('+', '%20'))\r\n\r\n        if (! key.includes('[')) {\r\n            data[key] = value\r\n        } else {\r\n            // Convert to dot notation because it's easier...\r\n            let dotNotatedKey = key.replaceAll('[', '.').replaceAll(']', '')\r\n\r\n            insertDotNotatedValueIntoData(dotNotatedKey, value, data)\r\n        }\r\n    })\r\n\r\n    return data\r\n}\r\n", "// packages/morph/src/morph.js\nfunction morph(from, toHtml, options) {\n  monkeyPatchDomSetAttributeToAllowAtSymbols();\n  let fromEl;\n  let toEl;\n  let key, lookahead, updating, updated, removing, removed, adding, added;\n  function assignOptions(options2 = {}) {\n    let defaultGetKey = (el) => el.getAttribute(\"key\");\n    let noop = () => {\n    };\n    updating = options2.updating || noop;\n    updated = options2.updated || noop;\n    removing = options2.removing || noop;\n    removed = options2.removed || noop;\n    adding = options2.adding || noop;\n    added = options2.added || noop;\n    key = options2.key || defaultGetKey;\n    lookahead = options2.lookahead || false;\n  }\n  function patch(from2, to) {\n    if (differentElementNamesTypesOrKeys(from2, to)) {\n      return swapElements(from2, to);\n    }\n    let updateChildrenOnly = false;\n    if (shouldSkip(updating, from2, to, () => updateChildrenOnly = true))\n      return;\n    if (from2.nodeType === 1 && window.Alpine) {\n      window.Alpine.cloneNode(from2, to);\n    }\n    if (textOrComment(to)) {\n      patchNodeValue(from2, to);\n      updated(from2, to);\n      return;\n    }\n    if (!updateChildrenOnly) {\n      patchAttributes(from2, to);\n    }\n    updated(from2, to);\n    patchChildren(from2, to);\n  }\n  function differentElementNamesTypesOrKeys(from2, to) {\n    return from2.nodeType != to.nodeType || from2.nodeName != to.nodeName || getKey(from2) != getKey(to);\n  }\n  function swapElements(from2, to) {\n    if (shouldSkip(removing, from2))\n      return;\n    let toCloned = to.cloneNode(true);\n    if (shouldSkip(adding, toCloned))\n      return;\n    from2.replaceWith(toCloned);\n    removed(from2);\n    added(toCloned);\n  }\n  function patchNodeValue(from2, to) {\n    let value = to.nodeValue;\n    if (from2.nodeValue !== value) {\n      from2.nodeValue = value;\n    }\n  }\n  function patchAttributes(from2, to) {\n    if (from2._x_transitioning)\n      return;\n    if (from2._x_isShown && !to._x_isShown) {\n      return;\n    }\n    if (!from2._x_isShown && to._x_isShown) {\n      return;\n    }\n    let domAttributes = Array.from(from2.attributes);\n    let toAttributes = Array.from(to.attributes);\n    for (let i = domAttributes.length - 1; i >= 0; i--) {\n      let name = domAttributes[i].name;\n      if (!to.hasAttribute(name)) {\n        from2.removeAttribute(name);\n      }\n    }\n    for (let i = toAttributes.length - 1; i >= 0; i--) {\n      let name = toAttributes[i].name;\n      let value = toAttributes[i].value;\n      if (from2.getAttribute(name) !== value) {\n        from2.setAttribute(name, value);\n      }\n    }\n  }\n  function patchChildren(from2, to) {\n    if (from2._x_teleport)\n      from2 = from2._x_teleport;\n    if (to._x_teleport)\n      to = to._x_teleport;\n    let fromKeys = keyToMap(from2.children);\n    let fromKeyHoldovers = {};\n    let currentTo = getFirstNode(to);\n    let currentFrom = getFirstNode(from2);\n    while (currentTo) {\n      seedingMatchingId(currentTo, currentFrom);\n      let toKey = getKey(currentTo);\n      let fromKey = getKey(currentFrom);\n      if (!currentFrom) {\n        if (toKey && fromKeyHoldovers[toKey]) {\n          let holdover = fromKeyHoldovers[toKey];\n          from2.appendChild(holdover);\n          currentFrom = holdover;\n        } else {\n          if (!shouldSkip(adding, currentTo)) {\n            let clone = currentTo.cloneNode(true);\n            from2.appendChild(clone);\n            added(clone);\n          }\n          currentTo = getNextSibling(to, currentTo);\n          continue;\n        }\n      }\n      let isIf = (node) => node && node.nodeType === 8 && node.textContent === \"[if BLOCK]><![endif]\";\n      let isEnd = (node) => node && node.nodeType === 8 && node.textContent === \"[if ENDBLOCK]><![endif]\";\n      if (isIf(currentTo) && isIf(currentFrom)) {\n        let nestedIfCount = 0;\n        let fromBlockStart = currentFrom;\n        while (currentFrom) {\n          let next = getNextSibling(from2, currentFrom);\n          if (isIf(next)) {\n            nestedIfCount++;\n          } else if (isEnd(next) && nestedIfCount > 0) {\n            nestedIfCount--;\n          } else if (isEnd(next) && nestedIfCount === 0) {\n            currentFrom = next;\n            break;\n          }\n          currentFrom = next;\n        }\n        let fromBlockEnd = currentFrom;\n        nestedIfCount = 0;\n        let toBlockStart = currentTo;\n        while (currentTo) {\n          let next = getNextSibling(to, currentTo);\n          if (isIf(next)) {\n            nestedIfCount++;\n          } else if (isEnd(next) && nestedIfCount > 0) {\n            nestedIfCount--;\n          } else if (isEnd(next) && nestedIfCount === 0) {\n            currentTo = next;\n            break;\n          }\n          currentTo = next;\n        }\n        let toBlockEnd = currentTo;\n        let fromBlock = new Block(fromBlockStart, fromBlockEnd);\n        let toBlock = new Block(toBlockStart, toBlockEnd);\n        patchChildren(fromBlock, toBlock);\n        continue;\n      }\n      if (currentFrom.nodeType === 1 && lookahead && !currentFrom.isEqualNode(currentTo)) {\n        let nextToElementSibling = getNextSibling(to, currentTo);\n        let found = false;\n        while (!found && nextToElementSibling) {\n          if (nextToElementSibling.nodeType === 1 && currentFrom.isEqualNode(nextToElementSibling)) {\n            found = true;\n            currentFrom = addNodeBefore(from2, currentTo, currentFrom);\n            fromKey = getKey(currentFrom);\n          }\n          nextToElementSibling = getNextSibling(to, nextToElementSibling);\n        }\n      }\n      if (toKey !== fromKey) {\n        if (!toKey && fromKey) {\n          fromKeyHoldovers[fromKey] = currentFrom;\n          currentFrom = addNodeBefore(from2, currentTo, currentFrom);\n          fromKeyHoldovers[fromKey].remove();\n          currentFrom = getNextSibling(from2, currentFrom);\n          currentTo = getNextSibling(to, currentTo);\n          continue;\n        }\n        if (toKey && !fromKey) {\n          if (fromKeys[toKey]) {\n            currentFrom.replaceWith(fromKeys[toKey]);\n            currentFrom = fromKeys[toKey];\n          }\n        }\n        if (toKey && fromKey) {\n          let fromKeyNode = fromKeys[toKey];\n          if (fromKeyNode) {\n            fromKeyHoldovers[fromKey] = currentFrom;\n            currentFrom.replaceWith(fromKeyNode);\n            currentFrom = fromKeyNode;\n          } else {\n            fromKeyHoldovers[fromKey] = currentFrom;\n            currentFrom = addNodeBefore(from2, currentTo, currentFrom);\n            fromKeyHoldovers[fromKey].remove();\n            currentFrom = getNextSibling(from2, currentFrom);\n            currentTo = getNextSibling(to, currentTo);\n            continue;\n          }\n        }\n      }\n      let currentFromNext = currentFrom && getNextSibling(from2, currentFrom);\n      patch(currentFrom, currentTo);\n      currentTo = currentTo && getNextSibling(to, currentTo);\n      currentFrom = currentFromNext;\n    }\n    let removals = [];\n    while (currentFrom) {\n      if (!shouldSkip(removing, currentFrom))\n        removals.push(currentFrom);\n      currentFrom = getNextSibling(from2, currentFrom);\n    }\n    while (removals.length) {\n      let domForRemoval = removals.shift();\n      domForRemoval.remove();\n      removed(domForRemoval);\n    }\n  }\n  function getKey(el) {\n    return el && el.nodeType === 1 && key(el);\n  }\n  function keyToMap(els) {\n    let map = {};\n    for (let el of els) {\n      let theKey = getKey(el);\n      if (theKey) {\n        map[theKey] = el;\n      }\n    }\n    return map;\n  }\n  function addNodeBefore(parent, node, beforeMe) {\n    if (!shouldSkip(adding, node)) {\n      let clone = node.cloneNode(true);\n      parent.insertBefore(clone, beforeMe);\n      added(clone);\n      return clone;\n    }\n    return node;\n  }\n  assignOptions(options);\n  fromEl = from;\n  toEl = typeof toHtml === \"string\" ? createElement(toHtml) : toHtml;\n  if (window.Alpine && window.Alpine.closestDataStack && !from._x_dataStack) {\n    toEl._x_dataStack = window.Alpine.closestDataStack(from);\n    toEl._x_dataStack && window.Alpine.cloneNode(from, toEl);\n  }\n  patch(from, toEl);\n  fromEl = void 0;\n  toEl = void 0;\n  return from;\n}\nmorph.step = () => {\n};\nmorph.log = () => {\n};\nfunction shouldSkip(hook, ...args) {\n  let skip = false;\n  hook(...args, () => skip = true);\n  return skip;\n}\nvar patched = false;\nfunction createElement(html) {\n  const template = document.createElement(\"template\");\n  template.innerHTML = html;\n  return template.content.firstElementChild;\n}\nfunction textOrComment(el) {\n  return el.nodeType === 3 || el.nodeType === 8;\n}\nvar Block = class {\n  constructor(start, end) {\n    this.startComment = start;\n    this.endComment = end;\n  }\n  get children() {\n    let children = [];\n    let currentNode = this.startComment.nextSibling;\n    while (currentNode && currentNode !== this.endComment) {\n      children.push(currentNode);\n      currentNode = currentNode.nextSibling;\n    }\n    return children;\n  }\n  appendChild(child) {\n    this.endComment.before(child);\n  }\n  get firstChild() {\n    let first = this.startComment.nextSibling;\n    if (first === this.endComment)\n      return;\n    return first;\n  }\n  nextNode(reference) {\n    let next = reference.nextSibling;\n    if (next === this.endComment)\n      return;\n    return next;\n  }\n  insertBefore(newNode, reference) {\n    reference.before(newNode);\n    return newNode;\n  }\n};\nfunction getFirstNode(parent) {\n  return parent.firstChild;\n}\nfunction getNextSibling(parent, reference) {\n  let next;\n  if (parent instanceof Block) {\n    next = parent.nextNode(reference);\n  } else {\n    next = reference.nextSibling;\n  }\n  return next;\n}\nfunction monkeyPatchDomSetAttributeToAllowAtSymbols() {\n  if (patched)\n    return;\n  patched = true;\n  let original = Element.prototype.setAttribute;\n  let hostDiv = document.createElement(\"div\");\n  Element.prototype.setAttribute = function newSetAttribute(name, value) {\n    if (!name.includes(\"@\")) {\n      return original.call(this, name, value);\n    }\n    hostDiv.innerHTML = `<span ${name}=\"${value}\"></span>`;\n    let attr = hostDiv.firstElementChild.getAttributeNode(name);\n    hostDiv.firstElementChild.removeAttributeNode(attr);\n    this.setAttributeNode(attr);\n  };\n}\nfunction seedingMatchingId(to, from) {\n  let fromId = from && from._x_bindings && from._x_bindings.id;\n  if (!fromId)\n    return;\n  to.setAttribute(\"id\", fromId);\n  to.id = fromId;\n}\n\n// packages/morph/src/index.js\nfunction src_default(Alpine) {\n  Alpine.morph = morph;\n}\n\n// packages/morph/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as morph\n};\n", "// packages/mask/src/index.js\nfunction src_default(Alpine) {\n  Alpine.directive(\"mask\", (el, { value, expression }, { effect, evaluateLater, cleanup }) => {\n    let templateFn = () => expression;\n    let lastInputValue = \"\";\n    queueMicrotask(() => {\n      if ([\"function\", \"dynamic\"].includes(value)) {\n        let evaluator = evaluateLater(expression);\n        effect(() => {\n          templateFn = (input) => {\n            let result;\n            Alpine.dontAutoEvaluateFunctions(() => {\n              evaluator((value2) => {\n                result = typeof value2 === \"function\" ? value2(input) : value2;\n              }, { scope: {\n                // These are \"magics\" we'll make available to the x-mask:function:\n                \"$input\": input,\n                \"$money\": formatMoney.bind({ el })\n              } });\n            });\n            return result;\n          };\n          processInputValue(el, false);\n        });\n      } else {\n        processInputValue(el, false);\n      }\n      if (el._x_model)\n        el._x_model.set(el.value);\n    });\n    const controller = new AbortController();\n    cleanup(() => {\n      controller.abort();\n    });\n    el.addEventListener(\"input\", () => processInputValue(el), {\n      signal: controller.signal,\n      // Setting this as a capture phase listener to ensure it runs\n      // before wire:model or x-model added as a latent binding...\n      capture: true\n    });\n    el.addEventListener(\"blur\", () => processInputValue(el, false), { signal: controller.signal });\n    function processInputValue(el2, shouldRestoreCursor = true) {\n      let input = el2.value;\n      let template = templateFn(input);\n      if (!template || template === \"false\")\n        return false;\n      if (lastInputValue.length - el2.value.length === 1) {\n        return lastInputValue = el2.value;\n      }\n      let setInput = () => {\n        lastInputValue = el2.value = formatInput(input, template);\n      };\n      if (shouldRestoreCursor) {\n        restoreCursorPosition(el2, template, () => {\n          setInput();\n        });\n      } else {\n        setInput();\n      }\n    }\n    function formatInput(input, template) {\n      if (input === \"\")\n        return \"\";\n      let strippedDownInput = stripDown(template, input);\n      let rebuiltInput = buildUp(template, strippedDownInput);\n      return rebuiltInput;\n    }\n  }).before(\"model\");\n}\nfunction restoreCursorPosition(el, template, callback) {\n  let cursorPosition = el.selectionStart;\n  let unformattedValue = el.value;\n  callback();\n  let beforeLeftOfCursorBeforeFormatting = unformattedValue.slice(0, cursorPosition);\n  let newPosition = buildUp(\n    template,\n    stripDown(\n      template,\n      beforeLeftOfCursorBeforeFormatting\n    )\n  ).length;\n  el.setSelectionRange(newPosition, newPosition);\n}\nfunction stripDown(template, input) {\n  let inputToBeStripped = input;\n  let output = \"\";\n  let regexes = {\n    \"9\": /[0-9]/,\n    \"a\": /[a-zA-Z]/,\n    \"*\": /[a-zA-Z0-9]/\n  };\n  let wildcardTemplate = \"\";\n  for (let i = 0; i < template.length; i++) {\n    if ([\"9\", \"a\", \"*\"].includes(template[i])) {\n      wildcardTemplate += template[i];\n      continue;\n    }\n    for (let j = 0; j < inputToBeStripped.length; j++) {\n      if (inputToBeStripped[j] === template[i]) {\n        inputToBeStripped = inputToBeStripped.slice(0, j) + inputToBeStripped.slice(j + 1);\n        break;\n      }\n    }\n  }\n  for (let i = 0; i < wildcardTemplate.length; i++) {\n    let found = false;\n    for (let j = 0; j < inputToBeStripped.length; j++) {\n      if (regexes[wildcardTemplate[i]].test(inputToBeStripped[j])) {\n        output += inputToBeStripped[j];\n        inputToBeStripped = inputToBeStripped.slice(0, j) + inputToBeStripped.slice(j + 1);\n        found = true;\n        break;\n      }\n    }\n    if (!found)\n      break;\n  }\n  return output;\n}\nfunction buildUp(template, input) {\n  let clean = Array.from(input);\n  let output = \"\";\n  for (let i = 0; i < template.length; i++) {\n    if (![\"9\", \"a\", \"*\"].includes(template[i])) {\n      output += template[i];\n      continue;\n    }\n    if (clean.length === 0)\n      break;\n    output += clean.shift();\n  }\n  return output;\n}\nfunction formatMoney(input, delimiter = \".\", thousands, precision = 2) {\n  if (input === \"-\")\n    return \"-\";\n  if (/^\\D+$/.test(input))\n    return \"9\";\n  if (thousands === null || thousands === void 0) {\n    thousands = delimiter === \",\" ? \".\" : \",\";\n  }\n  let addThousands = (input2, thousands2) => {\n    let output = \"\";\n    let counter = 0;\n    for (let i = input2.length - 1; i >= 0; i--) {\n      if (input2[i] === thousands2)\n        continue;\n      if (counter === 3) {\n        output = input2[i] + thousands2 + output;\n        counter = 0;\n      } else {\n        output = input2[i] + output;\n      }\n      counter++;\n    }\n    return output;\n  };\n  let minus = input.startsWith(\"-\") ? \"-\" : \"\";\n  let strippedInput = input.replaceAll(new RegExp(`[^0-9\\\\${delimiter}]`, \"g\"), \"\");\n  let template = Array.from({ length: strippedInput.split(delimiter)[0].length }).fill(\"9\").join(\"\");\n  template = `${minus}${addThousands(template, thousands)}`;\n  if (precision > 0 && input.includes(delimiter))\n    template += `${delimiter}` + \"9\".repeat(precision);\n  queueMicrotask(() => {\n    if (this.el.value.endsWith(delimiter))\n      return;\n    if (this.el.value[this.el.selectionStart - 1] === delimiter) {\n      this.el.setSelectionRange(this.el.selectionStart - 1, this.el.selectionStart - 1);\n    }\n  });\n  return template;\n}\n\n// packages/mask/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as mask,\n  stripDown\n};\n", "import { closestComponent, destroyComponent, initComponent } from './store'\r\nimport { matchesForLivewireDirective, extractDirective } from './directives'\r\nimport { trigger } from './hooks'\r\nimport collapse from '@alpinejs/collapse'\r\nimport focus from '@alpinejs/focus'\r\nimport persist from '@alpinejs/persist'\r\nimport intersect from '@alpinejs/intersect'\r\nimport anchor from '@alpinejs/anchor'\r\nimport navigate from './plugins/navigate'\r\nimport history from './plugins/history'\r\nimport morph from '@alpinejs/morph'\r\nimport mask from '@alpinejs/mask'\r\nimport Alpine from 'alpinejs'\r\nimport { dispatch } from './utils'\r\n\r\nexport function start() {\r\n    setTimeout(() => ensureLivewireScriptIsntMisplaced())\r\n\r\n    dispatch(document, 'livewire:init')\r\n    dispatch(document, 'livewire:initializing')\r\n\r\n    Alpine.plugin(morph)\r\n    Alpine.plugin(history)\r\n    Alpine.plugin(intersect)\r\n    Alpine.plugin(collapse)\r\n    Alpine.plugin(anchor)\r\n    Alpine.plugin(focus)\r\n    Alpine.plugin(persist)\r\n    Alpine.plugin(navigate)\r\n    Alpine.plugin(mask)\r\n\r\n    Alpine.addRootSelector(() => '[wire\\\\:id]')\r\n\r\n    Alpine.onAttributesAdded((el, attributes) => {\r\n        // if there are no \"wire:\" directives we don't need to process this element any further.\r\n        // This prevents Livewire from causing general slowness for other Alpine elements on the page...\r\n        if (! Array.from(attributes).some(attribute => matchesForLivewireDirective(attribute.name))) return\r\n\r\n        let component = closestComponent(el, false)\r\n\r\n        if (! component) return\r\n\r\n        attributes.forEach(attribute => {\r\n            if (! matchesForLivewireDirective(attribute.name)) return;\r\n\r\n            let directive = extractDirective(el, attribute.name)\r\n\r\n            trigger('directive.init', { el, component, directive, cleanup: (callback) => {\r\n                Alpine.onAttributeRemoved(el, directive.raw, callback)\r\n            } })\r\n        })\r\n    })\r\n\r\n    Alpine.interceptInit(\r\n        Alpine.skipDuringClone(el => {\r\n            // if there are no \"wire:\" directives we don't need to process this element any further.\r\n            // This prevents Livewire from causing general slowness for other Alpine elements on the page...\r\n            if (! Array.from(el.attributes).some(attribute => matchesForLivewireDirective(attribute.name))) return\r\n\r\n            if (el.hasAttribute('wire:id')) {\r\n                let component = initComponent(el)\r\n\r\n                Alpine.onAttributeRemoved(el, 'wire:id', () => {\r\n                    destroyComponent(component.id)\r\n                })\r\n            }\r\n\r\n            let component = closestComponent(el, false)\r\n\r\n            if (component) {\r\n                trigger('element.init', { el, component })\r\n\r\n                let directives = Array.from(el.getAttributeNames())\r\n                    .filter(name => matchesForLivewireDirective(name))\r\n                    .map(name => extractDirective(el, name))\r\n\r\n                directives.forEach(directive => {\r\n                    trigger('directive.init', { el, component, directive, cleanup: (callback) => {\r\n                        Alpine.onAttributeRemoved(el, directive.raw, callback)\r\n                    } })\r\n                })\r\n            }\r\n        })\r\n    )\r\n\r\n    Alpine.start()\r\n\r\n    setTimeout(() => window.Livewire.initialRenderIsFinished = true)\r\n\r\n    dispatch(document, 'livewire:initialized')\r\n}\r\n\r\nfunction ensureLivewireScriptIsntMisplaced() {\r\n    let el = document.querySelector('script[data-update-uri][data-csrf]')\r\n\r\n    // If there is no Livewire-injected script on the page, move on...\r\n    if (! el) return\r\n\r\n    // If there is, let's ensure it's at the top-level. If it's nested\r\n    // inside a normal element, that probably means that a closing\r\n    // tag was missing in the template and Chrome moved the tag.\r\n\r\n    // We're only checking for \"div\" here because it's quick and useful...\r\n    let livewireEl = el.closest('[wire\\\\:id]')\r\n\r\n    if (livewireEl) {\r\n        console.warn('Livewire: missing closing tags found. Ensure your template elements contain matching closing tags.', livewireEl)\r\n    }\r\n}\r\n", "import { getDirectives } from '@/directives'\r\nimport { on } from '@/hooks'\r\nimport Alpine from 'alpinejs'\r\n\r\nlet cleanupStackByComponentId = {}\r\n\r\n// Adding a setTimeout here so that these event listeners are\r\n// registered AFTER most other event listenrs, this way, we\r\n// can call \"stopPropagation\" for things like wire:confirm\r\non('element.init', ({ el, component }) => setTimeout(() => {\r\n    let directives = getDirectives(el)\r\n\r\n    if (directives.missing('submit')) return\r\n\r\n    // Set a forms \"disabled\" state on inputs and buttons.\r\n    // Livewire will clean it all up automatically when the form\r\n    // submission returns and the new DOM lacks these additions.\r\n    el.addEventListener('submit', () => {\r\n        cleanupStackByComponentId[component.id] = []\r\n\r\n        Alpine.walk(component.el, (node, skip) => {\r\n            if (! el.contains(node)) return\r\n\r\n            if (node.hasAttribute('wire:ignore')) return skip()\r\n\r\n            if (\r\n                // <button type=\"submit\">\r\n                (node.tagName.toLowerCase() === 'button' &&\r\n                    node.type === 'submit') ||\r\n                // <select>\r\n                node.tagName.toLowerCase() === 'select' ||\r\n                // <input type=\"checkbox|radio\">\r\n                (node.tagName.toLowerCase() === 'input' &&\r\n                    (node.type === 'checkbox' || node.type === 'radio'))\r\n            ) {\r\n                if (!node.disabled)\r\n                    cleanupStackByComponentId[component.id].push(\r\n                        () => (node.disabled = false)\r\n                    )\r\n\r\n                node.disabled = true\r\n            } else if (\r\n                // <input type=\"text\">\r\n                node.tagName.toLowerCase() === 'input' ||\r\n                // <textarea>\r\n                node.tagName.toLowerCase() === 'textarea'\r\n            ) {\r\n                if (!node.readOnly)\r\n                    cleanupStackByComponentId[component.id].push(\r\n                        () => (node.readOnly = false)\r\n                    )\r\n\r\n                node.readOnly = true\r\n            }\r\n        })\r\n    })\r\n}))\r\n\r\non('commit', ({ component, respond }) => {\r\n    respond(() => {\r\n        cleanup(component)\r\n    })\r\n})\r\n\r\nfunction cleanup(component) {\r\n    if (! cleanupStackByComponentId[component.id]) return\r\n\r\n    while (cleanupStackByComponentId[component.id].length > 0) {\r\n        cleanupStackByComponentId[component.id].shift()()\r\n    }\r\n}\r\n", "import { on } from '@/hooks'\r\n\r\n// Ensure that all child components with reactive props (even deeply nested)\r\n// are included in the network request...\r\non('commit.pooling', ({ commits }) => {\r\n    commits.forEach(commit => {\r\n        let component = commit.component\r\n\r\n        getDeepChildrenWithBindings(component, child => {\r\n            child.$wire.$commit()\r\n        })\r\n    })\r\n})\r\n\r\n// Ensure that related components are pooled together, even if they chose\r\n// to be isolated normally...\r\non('commit.pooled', ({ pools }) => {\r\n    let commits = getPooledCommits(pools)\r\n\r\n    commits.forEach(commit => {\r\n        let component = commit.component\r\n\r\n        getDeepChildrenWithBindings(component, child => {\r\n            colocateCommitsByComponent(pools, component, child)\r\n        })\r\n    })\r\n})\r\n\r\nfunction getPooledCommits(pools) {\r\n    let commits = []\r\n\r\n    pools.forEach(pool => {\r\n        pool.commits.forEach(commit => {\r\n            commits.push(commit)\r\n        })\r\n    })\r\n\r\n    return commits\r\n}\r\n\r\nfunction colocateCommitsByComponent(pools, component, foreignComponent) {\r\n    let pool = findPoolWithComponent(pools, component)\r\n\r\n    let foreignPool = findPoolWithComponent(pools, foreignComponent)\r\n\r\n    let foreignCommit = foreignPool.findCommitByComponent(foreignComponent)\r\n\r\n    // Delete needs to come before add in case there are the same pool...\r\n    foreignPool.delete(foreignCommit)\r\n\r\n    pool.add(foreignCommit)\r\n\r\n    // Cleanup empty pools...\r\n    pools.forEach(pool => {\r\n        if (pool.empty()) pools.delete(pool)\r\n    })\r\n}\r\n\r\nfunction findPoolWithComponent(pools, component) {\r\n    for (let [idx, pool] of pools.entries()) {\r\n        if (pool.hasCommitFor(component)) return pool\r\n    }\r\n}\r\n\r\nfunction getDeepChildrenWithBindings(component, callback) {\r\n    getDeepChildren(component, child => {\r\n        if (hasReactiveProps(child) || hasWireModelableBindings(child)) {\r\n            callback(child)\r\n        }\r\n    })\r\n}\r\n\r\nfunction hasReactiveProps(component) {\r\n    let meta = component.snapshot.memo\r\n    let props = meta.props\r\n\r\n    return !! props\r\n}\r\n\r\nfunction hasWireModelableBindings(component) {\r\n    let meta = component.snapshot.memo\r\n    let bindings = meta.bindings\r\n\r\n    return !! bindings\r\n}\r\n\r\nfunction getDeepChildren(component, callback) {\r\n    component.children.forEach(child => {\r\n        callback(child)\r\n\r\n        getDeepChildren(child, callback)\r\n    })\r\n}\r\n", "import { on } from '@/hooks'\r\nimport Alpine from 'alpinejs'\r\n\r\nlet executedScripts = new WeakMap\r\n\r\nlet executedAssets = new Set\r\n\r\non('payload.intercept', async ({ assets }) => {\r\n    if(! assets) return\r\n\r\n    for (let [key, asset] of Object.entries(assets)) {\r\n        await onlyIfAssetsHaventBeenLoadedAlreadyOnThisPage(key, async () => {\r\n            await addAssetsToHeadTagOfPage(asset)\r\n        })\r\n    }\r\n})\r\n\r\n// Assets that were injected into the HTML need to be registered so that\r\n// they aren't loaded again...\r\non('component.init', ({ component }) => {\r\n    let assets = component.snapshot.memo.assets\r\n\r\n    if (assets) {\r\n        assets.forEach((key) => {\r\n            if (executedAssets.has(key)) return\r\n            executedAssets.add(key)\r\n        })\r\n    }\r\n})\r\n\r\non('effect', ({ component, effects }) => {\r\n    let scripts = effects.scripts\r\n\r\n    if (scripts) {\r\n        Object.entries(scripts).forEach(([key, content]) => {\r\n            onlyIfScriptHasntBeenRunAlreadyForThisComponent(component, key, () => {\r\n                let scriptContent = extractScriptTagContent(content)\r\n\r\n                Alpine.dontAutoEvaluateFunctions(() => {\r\n                    Alpine.evaluate(component.el, scriptContent, { '$wire': component.$wire })\r\n                })\r\n            })\r\n        })\r\n    }\r\n})\r\n\r\nfunction onlyIfScriptHasntBeenRunAlreadyForThisComponent(component, key, callback) {\r\n    if (executedScripts.has(component)) {\r\n        let alreadyRunKeys = executedScripts.get(component)\r\n\r\n        if (alreadyRunKeys.includes(key)) return\r\n    }\r\n\r\n    callback()\r\n\r\n    if (! executedScripts.has(component)) executedScripts.set(component, [])\r\n\r\n    let alreadyRunKeys = executedScripts.get(component)\r\n\r\n    alreadyRunKeys.push(key)\r\n\r\n    executedScripts.set(component, alreadyRunKeys)\r\n}\r\n\r\nfunction extractScriptTagContent(rawHtml) {\r\n    let scriptRegex = /<script\\b[^>]*>([\\s\\S]*?)<\\/script>/gm\r\n    let matches = scriptRegex.exec(rawHtml)\r\n    let innards =  matches && matches[1] ? matches[1].trim() : ''\r\n\r\n    return innards\r\n}\r\n\r\nasync function onlyIfAssetsHaventBeenLoadedAlreadyOnThisPage(key, callback) {\r\n    if (executedAssets.has(key)) return\r\n\r\n    await callback()\r\n\r\n    executedAssets.add(key)\r\n}\r\n\r\nasync function addAssetsToHeadTagOfPage(rawHtml) {\r\n    let newDocument = (new DOMParser()).parseFromString(rawHtml, \"text/html\")\r\n    let newHead = document.adoptNode(newDocument.head)\r\n\r\n    for (let child of newHead.children) {\r\n        try {\r\n            await runAssetSynchronously(child)\r\n        } catch (error) {\r\n            // Let's eat any promise rejects so that we don't\r\n            // break the rest of Livewire's handling of the response...\r\n            // Any errors triggered by adding the script tag to the page\r\n            // will still be thrown...\r\n        }\r\n    }\r\n}\r\n\r\nasync function runAssetSynchronously(child) {\r\n    return new Promise((resolve, reject) => {\r\n        if (isScript(child)) {\r\n            let script = cloneScriptTag(child)\r\n\r\n            // Script assets need to be loaded synchronously so that scripts have\r\n            // their global variables available...\r\n            if (script.src) {\r\n                script.onload = () => resolve()\r\n                script.onerror = () => reject()\r\n            } else {\r\n                resolve()\r\n            }\r\n\r\n            document.head.appendChild(script)\r\n        } else {\r\n            document.head.appendChild(child)\r\n\r\n            resolve()\r\n        }\r\n    })\r\n}\r\n\r\nfunction isScript(el)   {\r\n    return el.tagName.toLowerCase() === 'script'\r\n}\r\n\r\nfunction cloneScriptTag(el) {\r\n    let script = document.createElement('script')\r\n\r\n    script.textContent = el.textContent\r\n    script.async = el.async\r\n\r\n    for (let attr of el.attributes) {\r\n        script.setAttribute(attr.name, attr.value)\r\n    }\r\n\r\n    return script\r\n}\r\n", "import { on } from '@/hooks'\r\n\r\non('commit', ({ succeed }) => {\r\n    succeed(({ effects }) => {\r\n        let download = effects.download\r\n\r\n        if (! download) return\r\n\r\n        // We need to use window.webkitURL so downloads work on iOS Safari.\r\n        let urlObject = window.webkitURL || window.URL\r\n\r\n        let url = urlObject.createObjectURL(\r\n            base64toBlob(download.content, download.contentType)\r\n        )\r\n\r\n        let invisibleLink = document.createElement('a')\r\n\r\n        invisibleLink.style.display = 'none'\r\n        invisibleLink.href = url\r\n        invisibleLink.download = download.name\r\n\r\n        document.body.appendChild(invisibleLink)\r\n\r\n        invisibleLink.click()\r\n\r\n        setTimeout(function() {\r\n            urlObject.revokeObjectURL(url)\r\n        }, 0);\r\n    })\r\n})\r\n\r\nfunction base64toBlob(b64Data, contentType = '', sliceSize = 512) {\r\n    const byteCharacters = atob(b64Data)\r\n    const byteArrays = []\r\n\r\n    if (contentType === null) contentType = ''\r\n\r\n    for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {\r\n        let slice = byteCharacters.slice(offset, offset + sliceSize)\r\n\r\n        let byteNumbers = new Array(slice.length)\r\n\r\n        for (let i = 0; i < slice.length; i++) {\r\n            byteNumbers[i] = slice.charCodeAt(i)\r\n        }\r\n\r\n        let byteArray = new Uint8Array(byteNumbers)\r\n\r\n        byteArrays.push(byteArray)\r\n    }\r\n\r\n    return new Blob(byteArrays, { type: contentType });\r\n}\r\n", "import { overrideMethod } from '@/$wire'\r\nimport { on } from '@/hooks'\r\nimport Alpine from 'alpinejs'\r\n\r\non('effect', ({ component, effects }) => {\r\n    let js = effects.js\r\n    let xjs = effects.xjs\r\n\r\n    if (js) {\r\n        Object.entries(js).forEach(([method, body]) => {\r\n            overrideMethod(component, method, () => {\r\n                Alpine.evaluate(component.el, body)\r\n            })\r\n        })\r\n    }\r\n\r\n    if (xjs) {\r\n        xjs.forEach(expression => {\r\n            Alpine.evaluate(component.el, expression)\r\n        })\r\n    }\r\n})\r\n\r\n", "import { on } from '@/hooks'\r\n\r\nlet componentsThatWantToBeBundled = new WeakSet\r\n\r\nlet componentsThatAreLazy = new WeakSet\r\n\r\non('component.init', ({ component }) => {\r\n    let memo = component.snapshot.memo\r\n\r\n    // We only care about lazy components...\r\n    if (memo.lazyLoaded === undefined) return\r\n\r\n    componentsThatAreLazy.add(component)\r\n\r\n    // The component doesn't want its lazy load to be an isolated request\r\n    // then we'll mark it to detect at \"pool\" time to make sure it gets bundled...\r\n    if (memo.lazyIsolated !== undefined && memo.lazyIsolated === false) {\r\n        componentsThatWantToBeBundled.add(component)\r\n    }\r\n})\r\n\r\non('commit.pooling', ({ commits }) => {\r\n    commits.forEach(commit => {\r\n        // We only care about lazy components...\r\n        if (! componentsThatAreLazy.has(commit.component)) return\r\n\r\n        if (componentsThatWantToBeBundled.has(commit.component)) {\r\n            commit.isolate = false\r\n\r\n            componentsThatWantToBeBundled.delete(commit.component)\r\n        } else {\r\n            commit.isolate = true\r\n        }\r\n\r\n        // Component is no longer lazy after the first full request, so remove it...\r\n        componentsThatAreLazy.delete(commit.component)\r\n    })\r\n})\r\n", "import { on } from '@/hooks'\r\nimport { dataGet } from '@/utils'\r\nimport Alpine from 'alpinejs'\r\nimport { track } from '@/plugins/history'\r\n\r\non('effect', ({ component, effects, cleanup }) => {\r\n    let queryString = effects['url']\r\n\r\n    if (! queryString) return\r\n\r\n    Object.entries(queryString).forEach(([key, value]) => {\r\n        let { name, as, use, alwaysShow, except } = normalizeQueryStringEntry(key, value)\r\n\r\n        if (! as) as = name\r\n\r\n        let initialValue = [false, null, undefined].includes(except) ? dataGet(component.ephemeral, name) : except\r\n\r\n        let { replace, push, pop } = track(as, initialValue, alwaysShow)\r\n\r\n        if (use === 'replace') {\r\n            let effectReference = Alpine.effect(() => {\r\n                replace(dataGet(component.reactive, name))\r\n            })\r\n\r\n            cleanup(() => Alpine.release(effectReference))\r\n        } else if (use === 'push') {\r\n            let forgetCommitHandler = on('commit', ({ component: commitComponent, succeed }) => {\r\n                if (component !== commitComponent) return\r\n\r\n                let beforeValue = dataGet(component.canonical, name)\r\n\r\n                succeed(() => {\r\n                    let afterValue = dataGet(component.canonical, name)\r\n\r\n                    if (JSON.stringify(beforeValue) === JSON.stringify(afterValue)) return\r\n\r\n                    push(afterValue)\r\n                })\r\n            })\r\n\r\n            let forgetPopHandler = pop(async newValue => {\r\n                await component.$wire.set(name, newValue)\r\n\r\n                // @todo: this is the absolute worst thing ever I'm so sorry this needs to be refactored stat:\r\n                document.querySelectorAll('input').forEach(el => {\r\n                    el._x_forceModelUpdate && el._x_forceModelUpdate(el._x_model.get())\r\n                })\r\n            })\r\n\r\n            cleanup(() => {\r\n                forgetCommitHandler()\r\n                forgetPopHandler()\r\n            })\r\n        }\r\n    })\r\n})\r\n\r\nfunction normalizeQueryStringEntry(key, value) {\r\n    let defaults = { use: 'replace', alwaysShow: false }\r\n\r\n    if (typeof value === 'string') {\r\n        return {...defaults, name: value, as: value }\r\n    } else {\r\n        let fullerDefaults = {...defaults, name: key, as: key }\r\n\r\n        return {...fullerDefaults, ...value }\r\n    }\r\n}\r\n", "import { on } from '@/hooks'\r\nimport { dispatchSelf } from '@/events'\r\n\r\non('request', ({ options }) => {\r\n    if (window.Echo) {\r\n        options.headers['X-Socket-ID'] = window.Echo.socketId()\r\n    }\r\n})\r\n\r\non('effect', ({ component, effects }) => {\r\n    let listeners = effects.listeners || []\r\n\r\n    listeners.forEach(event => {\r\n        if (event.startsWith('echo')) {\r\n            if (typeof window.Echo === 'undefined') {\r\n                console.warn('Laravel Echo cannot be found')\r\n\r\n                return\r\n            }\r\n\r\n            let event_parts = event.split(/(echo:|echo-)|:|,/)\r\n\r\n            if (event_parts[1] == 'echo:') {\r\n                event_parts.splice(2, 0, 'channel', undefined)\r\n            }\r\n\r\n            if (event_parts[2] == 'notification') {\r\n                event_parts.push(undefined, undefined)\r\n            }\r\n\r\n            let [\r\n                s1,\r\n                signature,\r\n                channel_type,\r\n                s2,\r\n                channel,\r\n                s3,\r\n                event_name,\r\n            ] = event_parts\r\n\r\n            if (['channel', 'private', 'encryptedPrivate'].includes(channel_type)) {\r\n                let handler = e => dispatchSelf(component, event, [e])\r\n\r\n                window.Echo[channel_type](channel).listen(event_name, handler)\r\n\r\n                component.addCleanup(() => {\r\n                    window.Echo[channel_type](channel).stopListening(event_name, handler)\r\n                })\r\n            } else if (channel_type == 'presence') {\r\n                if (['here', 'joining', 'leaving'].includes(event_name)) {\r\n                    window.Echo.join(channel)[event_name](e => {\r\n                        dispatchSelf(component, event, [e])\r\n                    })\r\n\r\n                    // @todo: add listener cleanup...\r\n                } else{\r\n                    let handler = e => dispatchSelf(component, event, [e])\r\n\r\n                    window.Echo.join(channel).listen(event_name, handler)\r\n\r\n                    component.addCleanup(() => {\r\n                        window.Echo.leaveChannel(channel)\r\n                    })\r\n                }\r\n            } else if (channel_type == 'notification') {\r\n                window.Echo.private(channel).notification(notification => {\r\n                    dispatchSelf(component, event, [notification])\r\n                })\r\n\r\n                // @todo: add listener cleanup...\r\n            } else {\r\n                console.warn('Echo channel type not yet supported')\r\n            }\r\n        }\r\n    })\r\n})\r\n", "import { on } from '@/hooks'\r\n\r\nlet componentsThatAreIsolated = new WeakSet\r\n\r\non('component.init', ({ component }) => {\r\n    let memo = component.snapshot.memo\r\n\r\n    // We only care about isolated components...\r\n    if (memo.isolate !== true) return\r\n\r\n    componentsThatAreIsolated.add(component)\r\n})\r\n\r\non('commit.pooling', ({ commits }) => {\r\n    commits.forEach(commit => {\r\n        // We only care about isolated components...\r\n        if (! componentsThatAreIsolated.has(commit.component)) return\r\n\r\n        commit.isolate = true\r\n    })\r\n})\r\n", "shouldHideProgressBar() && Alpine.navigate.disableProgressBar()\r\n\r\ndocument.addEventListener('alpine:navigated', e => {\r\n    // Forward a \"livewire\" version of the Alpine event...\r\n    document.dispatchEvent(new CustomEvent('livewire:navigated', { bubbles: true }))\r\n})\r\n\r\ndocument.addEventListener('alpine:navigating', e => {\r\n    // Forward a \"livewire\" version of the Alpine event...\r\n    document.dispatchEvent(new CustomEvent('livewire:navigating', { bubbles: true }))\r\n})\r\n\r\nexport function shouldRedirectUsingNavigateOr(effects, url, or) {\r\n    let forceNavigate = effects.redirectUsingNavigate\r\n\r\n    if (forceNavigate) {\r\n        Alpine.navigate(url)\r\n    } else {\r\n        or()\r\n    }\r\n}\r\n\r\nfunction shouldHideProgressBar() {\r\n    if (!! document.querySelector('[data-no-progress-bar]')) return true\r\n\r\n    if (window.livewireScriptConfig && window.livewireScriptConfig.progressBar === false) return true\r\n\r\n    return false\r\n}\r\n", "import { on } from \"@/hooks\"\r\nimport { shouldRedirectUsingNavigateOr } from \"./supportNavigate\"\r\n\r\non('effect', ({ effects }) => {\r\n    if (! effects['redirect']) return\r\n\r\n    let url = effects['redirect']\r\n\r\n    shouldRedirectUsingNavigateOr(effects, url, () => {\r\n        window.location.href = url\r\n    })\r\n})\r\n", "import { trigger } from \"@/hooks\"\r\nimport { closestComponent } from \"@/store\"\r\nimport Alpine from 'alpinejs'\r\n\r\nexport function morph(component, el, html) {\r\n    let wrapperTag = el.parentElement\r\n        // If the root element is a \"tr\", we need the wrapper to be a \"table\"...\r\n        ? el.parentElement.tagName.toLowerCase()\r\n        : 'div'\r\n\r\n    let wrapper = document.createElement(wrapperTag)\r\n\r\n    wrapper.innerHTML = html\r\n    let parentComponent\r\n\r\n    try {\r\n        parentComponent = closestComponent(el.parentElement)\r\n    } catch (e) {}\r\n\r\n    parentComponent && (wrapper.__livewire = parentComponent)\r\n\r\n    let to = wrapper.firstElementChild\r\n\r\n    to.__livewire = component\r\n\r\n    trigger('morph', { el, toEl: to, component })\r\n\r\n    Alpine.morph(el, to, {\r\n        updating: (el, toEl, childrenOnly, skip) => {\r\n            if (isntElement(el)) return\r\n\r\n            trigger('morph.updating', { el, toEl, component, skip, childrenOnly })\r\n\r\n            if (el.__livewire_ignore === true) return skip()\r\n            if (el.__livewire_ignore_self === true) childrenOnly()\r\n\r\n            // Children will update themselves.\r\n            if (isComponentRootEl(el) && el.getAttribute('wire:id') !== component.id) return skip()\r\n\r\n            // Give the root Livewire \"to\" element, the same object reference as the \"from\"\r\n            // element. This ensures new Alpine magics like $wire and @entangle can\r\n            // initialize in the context of a real Livewire component object.\r\n            if (isComponentRootEl(el)) toEl.__livewire = component\r\n        },\r\n\r\n        updated: (el) => {\r\n            if (isntElement(el)) return\r\n\r\n            trigger('morph.updated', { el, component })\r\n        },\r\n\r\n        removing: (el, skip) => {\r\n            if (isntElement(el)) return\r\n\r\n            trigger('morph.removing', { el, component, skip })\r\n        },\r\n\r\n        removed: (el) => {\r\n            if (isntElement(el)) return\r\n\r\n            trigger('morph.removed', { el, component })\r\n        },\r\n\r\n        adding: (el) => {\r\n            trigger('morph.adding', { el, component })\r\n        },\r\n\r\n        added: (el) => {\r\n            if (isntElement(el)) return\r\n\r\n            const closestComponentId = closestComponent(el).id\r\n\r\n            trigger('morph.added', { el })\r\n        },\r\n\r\n        key: (el) => {\r\n            if (isntElement(el)) return\r\n\r\n            return el.hasAttribute(`wire:key`)\r\n                ? el.getAttribute(`wire:key`)\r\n                : // If no \"key\", then first check for \"wire:id\", then \"id\"\r\n                el.hasAttribute(`wire:id`)\r\n                    ? el.getAttribute(`wire:id`)\r\n                    : el.id\r\n        },\r\n\r\n        lookahead: false,\r\n    })\r\n}\r\n\r\nfunction isntElement(el) {\r\n    return typeof el.hasAttribute !== 'function'\r\n}\r\n\r\nfunction isComponentRootEl(el) {\r\n    return el.hasAttribute('wire:id')\r\n}\r\n", "import { morph } from '@/morph'\r\nimport { on } from '@/hooks'\r\n\r\non('effect', ({ component, effects }) => {\r\n    let html = effects.html\r\n    if (! html) return\r\n\r\n    // Wrapping this in a double queueMicrotask. The first one puts it after all\r\n    // other \"effect\" hooks, and the second one puts it after all reactive\r\n    // Alpine effects (that are processed via flushJobs in scheduler).\r\n    queueMicrotask(() => {\r\n        queueMicrotask(() => {\r\n            morph(component, component.el, html)\r\n        })\r\n    })\r\n})\r\n", "import { dispatch, dispatchSelf, dispatchTo } from '@/events'\r\nimport { on as hook } from '@/hooks'\r\n\r\nhook('effect', ({ component, effects }) => {\r\n    registerListeners(component, effects.listeners || [])\r\n\r\n    dispatchEvents(component, effects.dispatches || [])\r\n})\r\n\r\nfunction registerListeners(component, listeners) {\r\n    listeners.forEach(name => {\r\n        // Register a global listener...\r\n        let handler = (e) => {\r\n            if (e.__livewire) e.__livewire.receivedBy.push(component)\r\n\r\n            component.$wire.call('__dispatch', name, e.detail || {})\r\n        }\r\n\r\n        window.addEventListener(name, handler)\r\n\r\n        component.addCleanup(() => window.removeEventListener(name, handler))\r\n\r\n        // Register a listener for when \"to\" or \"self\"\r\n        component.el.addEventListener(name, (e) => {\r\n            // We don't care about non-Livewire dispatches...\r\n            if (! e.__livewire) return\r\n\r\n            // We don't care about Livewire bubbling dispatches (only \"to\" and \"self\")...\r\n            if (e.bubbles) return\r\n\r\n            if (e.__livewire) e.__livewire.receivedBy.push(component.id)\r\n\r\n            component.$wire.call('__dispatch', name, e.detail || {})\r\n        })\r\n    })\r\n}\r\n\r\nfunction dispatchEvents(component, dispatches) {\r\n    dispatches.forEach(({ name, params = {}, self = false, to }) => {\r\n        if (self) dispatchSelf(component, name, params)\r\n        else if (to) dispatchTo(to, name, params)\r\n        else dispatch(component, name, params)\r\n    })\r\n}\r\n\r\n\r\n", "import { directive } from \"@/directives\"\r\nimport { on } from '@/hooks'\r\nimport Alpine from 'alpinejs'\r\n\r\non('morph.added', ({ el }) => {\r\n    el.__addedByMorph = true\r\n})\r\n\r\ndirective('transition', ({ el, directive, component, cleanup }) => {\r\n    let visibility = Alpine.reactive({ state: el.__addedByMorph ? false : true })\r\n\r\n    // We're going to control the element's transition with Alpine transitions...\r\n    Alpine.bind(el, {\r\n        [directive.rawName.replace('wire:', 'x-')]: '',\r\n        'x-show'() { return visibility.state },\r\n    })\r\n\r\n    // If it's not the initial page load, transition the element in...\r\n    el.__addedByMorph && setTimeout(() => visibility.state = true)\r\n\r\n    let cleanups = []\r\n\r\n    cleanups.push(on('morph.removing', ({ el, skip }) => {\r\n        // Here we interupt morphdom from removing an element...\r\n        skip()\r\n\r\n        // When the transition ends...\r\n        el.addEventListener('transitionend', () => {\r\n            // We can actually remove the element and all the listeners along with it...\r\n            el.remove()\r\n        })\r\n\r\n        // Now we can trigger a transition:\r\n        visibility.state = false\r\n\r\n        cleanups.push(on('morph', ({ component: morphComponent }) => {\r\n            if (morphComponent !== component) return\r\n\r\n            // While this element is transitioning out, a new morph is about to occur.\r\n            // Let's expidite this one and clean it up so it doesn't interfere...\r\n            el.remove()\r\n\r\n            cleanups.forEach(i => i())\r\n        }))\r\n    }))\r\n\r\n    cleanup(() => cleanups.forEach(i => i()))\r\n})\r\n\r\n\r\n\r\n", "import { WeakBag } from './utils'\r\n\r\nlet callbacksByComponent = new WeakBag\r\n\r\nexport function debounceByComponent(component, callback, time) {\r\n    // Prepare yourself for what's happening here.\r\n    // Any text input with wire:model on it should be \"debounced\" by ~150ms by default.\r\n    // We can't use a simple debounce function because we need a way to clear all the pending\r\n    // debounces if a user submits a form or performs some other action.\r\n    // This is a modified debounce function that acts just like a debounce, except it stores\r\n    // the pending callbacks in a global property so we can \"clear them\" on command instead\r\n    // of waiting for their setTimeouts to expire. I know.\r\n\r\n    // This is a \"null\" callback. Each wire:model will resister one of these upon initialization.\r\n    let callbackRegister = { callback: () => { } }\r\n    callbacksByComponent.add(component, callbackRegister)\r\n\r\n    // This is a normal \"timeout\" for a debounce function.\r\n    var timeout\r\n\r\n    return e => {\r\n        clearTimeout(timeout)\r\n\r\n        timeout = setTimeout(() => {\r\n            callback(e)\r\n            timeout = undefined\r\n\r\n            // Because we just called the callback, let's return the\r\n            // callback register to it's normal \"null\" state.\r\n            callbackRegister.callback = () => { }\r\n        }, time)\r\n\r\n        // Register the current callback in the register as a kind-of \"escape-hatch\".\r\n        callbackRegister.callback = () => {\r\n            clearTimeout(timeout)\r\n            callback(e)\r\n        }\r\n    }\r\n}\r\n\r\nexport function callAndClearComponentDebounces(component, callback) {\r\n    // This is to protect against the following scenario:\r\n    // A user is typing into a debounced input, and hits the enter key.\r\n    // If the enter key submits a form or something, the submission\r\n    // will happen BEFORE the model input finishes syncing because\r\n    // of the debounce. This makes sure to clear anything in the debounce queue.\r\n\r\n    callbacksByComponent.each(component, callbackRegister => {\r\n        callbackRegister.callback()\r\n        callbackRegister.callback = () => { }\r\n    })\r\n\r\n    callback()\r\n}\r\n", "import { callAndClearComponentDebounces } from '@/debounce'\r\nimport { on } from '@/hooks'\r\nimport Alpine from 'alpinejs'\r\n\r\non('directive.init', ({ el, directive, cleanup, component }) => {\r\n    if (['snapshot', 'effects', 'model', 'init', 'loading', 'poll', 'ignore', 'id', 'data', 'key', 'target', 'dirty'].includes(directive.value)) return\r\n\r\n    let attribute = directive.rawName.replace('wire:', 'x-on:')\r\n\r\n    // Automatically add .prevent to wire:submit, if they didn't add it themselves...\r\n    if (directive.value === 'submit' && ! directive.modifiers.includes('prevent')) {\r\n        attribute = attribute + '.prevent'\r\n    }\r\n\r\n    let cleanupBinding = Alpine.bind(el, {\r\n        [attribute](e) {\r\n            let execute = () => {\r\n                callAndClearComponentDebounces(component, () => {\r\n                    // Forward these calls directly to $wire. Let them handle firing the request.\r\n                    Alpine.evaluate(el, '$wire.'+directive.expression, { scope: { $event: e }})\r\n                })\r\n            }\r\n\r\n            // Account for the existance of wire:confirm=\"...\" on the action...\r\n            if (el.__livewire_confirm) {\r\n                el.__livewire_confirm(() => {\r\n                    execute()\r\n                }, () => {\r\n                    e.stopImmediatePropagation()\r\n                })\r\n            } else {\r\n                execute()\r\n            }\r\n        }\r\n    })\r\n\r\n    cleanup(cleanupBinding)\r\n})\r\n", "import Alpine from 'alpinejs'\r\n\r\nAlpine.addInitSelector(() => `[wire\\\\:navigate]`)\r\nAlpine.addInitSelector(() => `[wire\\\\:navigate\\\\.hover]`)\r\n\r\nAlpine.interceptInit(\r\n    Alpine.skipDuringClone(el => {\r\n        if (el.hasAttribute('wire:navigate')) {\r\n            Alpine.bind(el, { ['x-navigate']: true })\r\n        } else if (el.hasAttribute('wire:navigate.hover')) {\r\n            Alpine.bind(el, { ['x-navigate.hover']: true })\r\n        }\r\n    })\r\n)\r\n\r\ndocument.addEventListener('alpine:navigating', () => {\r\n    // Before navigating away, we'll inscribe the latest state of each component\r\n    // in their HTML so that upon return, they will have the latest state...\r\n    Livewire.all().forEach(component => {\r\n        component.inscribeSnapshotAndEffectsOnElement()\r\n    })\r\n})\r\n", "import { directive } from \"@/directives\"\r\n\r\ndirective('confirm', ({ el, directive }) => {\r\n    let message = directive.expression\r\n    let shouldPrompt = directive.modifiers.includes('prompt')\r\n\r\n    // Convert sanitized linebreaks (\"\\n\") to real line breaks...\r\n    message = message.replaceAll('\\\\n', '\\n')\r\n\r\n    if (message === '') message = 'Are you sure?'\r\n\r\n    el.__livewire_confirm = (action, instead) => {\r\n        if (shouldPrompt) {\r\n            let [question, expected] = message.split('|')\r\n\r\n            if (! expected) {\r\n                console.warn('Livewire: Must provide expectation with wire:confirm.prompt')\r\n            } else {\r\n                let input = prompt(question)\r\n\r\n                if (input === expected) {\r\n                    action()\r\n                } else {\r\n                    instead()\r\n                }\r\n            }\r\n        } else {\r\n            if (confirm(message)) action()\r\n            else instead()\r\n        }\r\n    }\r\n})\r\n", "\r\nexport function toggleBooleanStateDirective(el, directive, isTruthy, cachedDisplay = null) {\r\n    isTruthy = directive.modifiers.includes('remove') ? ! isTruthy : isTruthy\r\n\r\n    if (directive.modifiers.includes('class')) {\r\n        let classes = directive.expression.split(' ').filter(String)\r\n\r\n        if (isTruthy) {\r\n            el.classList.add(...classes)\r\n        } else {\r\n            el.classList.remove(...classes)\r\n        }\r\n    } else if (directive.modifiers.includes('attr')) {\r\n        if (isTruthy) {\r\n            el.setAttribute(directive.expression, true)\r\n        } else {\r\n            el.removeAttribute(directive.expression)\r\n        }\r\n    } else {\r\n        let cache = cachedDisplay ?? window\r\n            .getComputedStyle(el, null)\r\n            .getPropertyValue('display')\r\n\r\n        let display = (['inline', 'block', 'table', 'flex', 'grid', 'inline-flex']\r\n            .filter(i => directive.modifiers.includes(i))[0] || 'inline-block')\r\n\r\n        // If element is to be removed, set display to it's current value\r\n        display = directive.modifiers.includes('remove') ? cache : display\r\n\r\n        el.style.display = isTruthy ? display : 'none'\r\n    }\r\n}\r\n", "import { toggleBooleanStateDirective } from './shared'\r\nimport { directive } from '@/directives'\r\n\r\nlet offlineHandlers = new Set\r\nlet onlineHandlers = new Set\r\n\r\nwindow.addEventListener('offline', () => offlineHandlers.forEach(i => i()))\r\nwindow.addEventListener('online', () => onlineHandlers.forEach(i => i()))\r\n\r\ndirective('offline', ({ el, directive, cleanup }) => {\r\n    let setOffline = () => toggleBooleanStateDirective(el, directive, true)\r\n    let setOnline = () => toggleBooleanStateDirective(el, directive, false)\r\n\r\n    offlineHandlers.add(setOffline)\r\n    onlineHandlers.add(setOnline)\r\n\r\n    cleanup(() => {\r\n        offlineHandlers.delete(setOffline)\r\n        onlineHandlers.delete(setOnline)\r\n    })\r\n})\r\n", "import { toggleBooleanStateDirective } from './shared'\r\nimport { directive, getDirectives } from \"@/directives\"\r\nimport { on } from '@/hooks'\r\n\r\ndirective('loading', ({ el, directive, component }) => {\r\n    let { targets, inverted } = getTargets(el)\r\n\r\n    let [delay, abortDelay] = applyDelay(directive)\r\n\r\n    whenTargetsArePartOfRequest(component, targets, inverted, [\r\n        () => delay(() => toggleBooleanStateDirective(el, directive, true)),\r\n        () => abortDelay(() => toggleBooleanStateDirective(el, directive, false)),\r\n    ])\r\n\r\n    whenTargetsArePartOfFileUpload(component, targets, [\r\n        () => delay(() => toggleBooleanStateDirective(el, directive, true)),\r\n        () => abortDelay(() => toggleBooleanStateDirective(el, directive, false)),\r\n    ])\r\n})\r\n\r\nfunction applyDelay(directive) {\r\n    if (! directive.modifiers.includes('delay') || directive.modifiers.includes('none')) return [i => i(), i => i()]\r\n\r\n    let duration = 200\r\n\r\n    let delayModifiers = {\r\n        'shortest': 50,\r\n        'shorter': 100,\r\n        'short': 150,\r\n        'default': 200,\r\n        'long': 300,\r\n        'longer': 500,\r\n        'longest': 1000,\r\n    }\r\n\r\n    Object.keys(delayModifiers).some(key => {\r\n        if (directive.modifiers.includes(key)) {\r\n            duration = delayModifiers[key]\r\n\r\n            return true\r\n        }\r\n    })\r\n\r\n    let timeout\r\n    let started = false\r\n\r\n    return [\r\n        (callback) => { // Initiate delay...\r\n            timeout = setTimeout(() => {\r\n                callback()\r\n\r\n                started = true\r\n            }, duration)\r\n        },\r\n        async (callback) => { // Execute or abort...\r\n            if (started) {\r\n                await callback()\r\n                started = false\r\n            } else {\r\n                clearTimeout(timeout)\r\n            }\r\n        },\r\n    ]\r\n}\r\n\r\nfunction whenTargetsArePartOfRequest(component, targets, inverted, [ startLoading, endLoading ]) {\r\n    on('commit', ({ component: iComponent, commit: payload, respond }) => {\r\n        if (iComponent !== component) return\r\n\r\n        if (targets.length > 0 && containsTargets(payload, targets) === inverted) return\r\n\r\n        startLoading()\r\n\r\n        respond(() => {\r\n            endLoading()\r\n        })\r\n    })\r\n}\r\n\r\nfunction whenTargetsArePartOfFileUpload(component, targets, [ startLoading, endLoading ]) {\r\n    let eventMismatch = e => {\r\n        let { id, property } = e.detail\r\n\r\n        if (id !== component.id) return true\r\n        if (targets.length > 0 && ! targets.map(i => i.target).includes(property)) return true\r\n\r\n        return false\r\n    }\r\n\r\n    window.addEventListener('livewire-upload-start', e => {\r\n        if (eventMismatch(e)) return\r\n\r\n        startLoading()\r\n    })\r\n\r\n    window.addEventListener('livewire-upload-finish', e => {\r\n        if (eventMismatch(e)) return\r\n\r\n        endLoading()\r\n    })\r\n\r\n    window.addEventListener('livewire-upload-error', e => {\r\n        if (eventMismatch(e)) return\r\n\r\n        endLoading()\r\n    })\r\n}\r\n\r\nfunction containsTargets(payload, targets) {\r\n    let { updates, calls } = payload\r\n\r\n    return targets.some(({ target, params }) => {\r\n        if (params) {\r\n            return calls.some(({ method, params: methodParams }) => {\r\n                return target === method\r\n                    && params === quickHash(JSON.stringify(methodParams))\r\n            })\r\n        }\r\n\r\n        let hasMatchingUpdate = Object.keys(updates).some(property => {\r\n            // If the property is nested, like `foo.bar`, we need to check if the root `foo` is the target.\r\n            if (property.includes('.')) {\r\n                let propertyRoot = property.split('.')[0]\r\n\r\n                if (propertyRoot === target) return true\r\n            }\r\n\r\n            return property === target\r\n        })\r\n\r\n        if (hasMatchingUpdate) return true\r\n\r\n        if (calls.map(i => i.method).includes(target)) return true\r\n    })\r\n}\r\n\r\nfunction getTargets(el) {\r\n    let directives = getDirectives(el)\r\n\r\n    let targets = []\r\n\r\n    let inverted = false\r\n\r\n    if (directives.has('target')) {\r\n        let directive = directives.get('target')\r\n\r\n        let raw = directive.expression\r\n\r\n        if (directive.modifiers.includes(\"except\")) inverted = true\r\n\r\n        if (raw.includes('(') && raw.includes(')')) {\r\n            targets.push({ target: directive.method, params: quickHash(JSON.stringify(directive.params)) })\r\n        } else if (raw.includes(',')) {\r\n            raw.split(',').map(i => i.trim()).forEach(target => {\r\n                targets.push({ target })\r\n            })\r\n        } else {\r\n            targets.push({ target: raw })\r\n        }\r\n    } else {\r\n        // If there is no wire:target, let's check for the existance of a wire:click=\"foo\" or something,\r\n        // and automatically scope this loading directive to that action.\r\n        let nonActionOrModelLivewireDirectives = [ 'init', 'dirty', 'offline', 'target', 'loading', 'poll', 'ignore', 'key', 'id' ]\r\n\r\n        directives\r\n            .all()\r\n            .filter(i => ! nonActionOrModelLivewireDirectives.includes(i.value))\r\n            .map(i => i.expression.split('(')[0])\r\n            .forEach(target => targets.push({ target }))\r\n    }\r\n\r\n    return { targets, inverted }\r\n}\r\n\r\nfunction quickHash(subject) {\r\n    return btoa(encodeURIComponent(subject))\r\n}\r\n", "import { contentIsFromDump } from '@/utils'\r\nimport { directive } from '@/directives'\r\nimport { on, trigger } from '@/hooks'\r\n\r\ndirective('stream', ({el, directive, cleanup }) => {\r\n    let { expression, modifiers } = directive\r\n\r\n    let off = on('stream', ({ name, content, replace }) => {\r\n        if (name !== expression) return\r\n\r\n        if (modifiers.includes('replace') || replace) {\r\n            el.innerHTML = content\r\n        } else {\r\n            el.innerHTML = el.innerHTML + content\r\n        }\r\n    })\r\n\r\n    cleanup(off)\r\n})\r\n\r\non('request', ({ respond }) => {\r\n    respond(mutableObject => {\r\n        let response = mutableObject.response\r\n\r\n        if (! response.headers.has('X-Livewire-Stream')) return\r\n\r\n        mutableObject.response = {\r\n            ok: true,\r\n            redirected: false,\r\n            status: 200,\r\n\r\n            async text() {\r\n                let finalResponse = await interceptStreamAndReturnFinalResponse(response, streamed => {\r\n                    trigger('stream', streamed)\r\n                })\r\n\r\n                if (contentIsFromDump(finalResponse)) {\r\n                    this.ok = false\r\n                }\r\n\r\n                return finalResponse\r\n            }\r\n        }\r\n    })\r\n})\r\n\r\nasync function interceptStreamAndReturnFinalResponse(response, callback) {\r\n    let reader = response.body.getReader()\r\n    let remainingResponse = ''\r\n\r\n    while (true) {\r\n        let { done, value: chunk } = await reader.read()\r\n\r\n        let decoder = new TextDecoder\r\n        let output = decoder.decode(chunk)\r\n\r\n        let [ streams, remaining ] = extractStreamObjects(remainingResponse + output)\r\n\r\n        streams.forEach(stream => {\r\n            callback(stream)\r\n        })\r\n\r\n        remainingResponse = remaining\r\n\r\n        if (done) return remainingResponse\r\n    }\r\n}\r\n\r\nfunction extractStreamObjects(raw) {\r\n    let regex = /({\"stream\":true.*?\"endStream\":true})/g\r\n\r\n    let matches = raw.match(regex)\r\n\r\n    let parsed = []\r\n\r\n    if (matches) {\r\n        for (let i = 0; i < matches.length; i++) {\r\n            parsed.push(JSON.parse(matches[i]).body)\r\n        }\r\n    }\r\n\r\n    let remaining = raw.replace(regex, '');\r\n\r\n    return [ parsed, remaining ];\r\n}\r\n", "import { directive } from \"@/directives\"\r\n\r\ndirective('ignore', ({ el, directive }) => {\r\n    if (directive.modifiers.includes('self')) {\r\n        el.__livewire_ignore_self = true\r\n    } else {\r\n        el.__livewire_ignore = true\r\n    }\r\n})\r\n", "import { toggleBooleanStateDirective } from './shared'\r\nimport { directive, getDirectives } from '@/directives'\r\nimport { dataGet, WeakBag } from '@/utils'\r\nimport { on } from '@/hooks'\r\n\r\nlet refreshDirtyStatesByComponent = new WeakBag\r\n\r\non('commit', ({ component, respond }) => {\r\n    respond(() => {\r\n        setTimeout(() => { // Doing a \"setTimeout\" to let morphdom do its thing first...\r\n            refreshDirtyStatesByComponent.each(component, i => i(false))\r\n        })\r\n    })\r\n})\r\n\r\ndirective('dirty', ({ el, directive, component }) => {\r\n    let targets = dirtyTargets(el)\r\n\r\n    let dirty = Alpine.reactive({ state: false })\r\n\r\n    let oldIsDirty = false\r\n\r\n    let initialDisplay = el.style.display\r\n\r\n    let refreshDirtyState = (isDirty) => {\r\n        toggleBooleanStateDirective(el, directive, isDirty, initialDisplay)\r\n\r\n        oldIsDirty = isDirty\r\n    }\r\n\r\n    refreshDirtyStatesByComponent.add(component, refreshDirtyState)\r\n\r\n    Alpine.effect(() => {\r\n        let isDirty = false\r\n\r\n        if (targets.length === 0) {\r\n            isDirty = JSON.stringify(component.canonical) !== JSON.stringify(component.reactive)\r\n        } else {\r\n            for (let i = 0; i < targets.length; i++) {\r\n                if (isDirty) break;\r\n\r\n                let target = targets[i]\r\n\r\n                isDirty = JSON.stringify(dataGet(component.canonical, target)) !== JSON.stringify(dataGet(component.reactive, target))\r\n            }\r\n        }\r\n\r\n        if (oldIsDirty !== isDirty) {\r\n            refreshDirtyState(isDirty)\r\n        }\r\n\r\n        oldIsDirty = isDirty\r\n    })\r\n})\r\n\r\nfunction dirtyTargets(el) {\r\n    let directives = getDirectives(el)\r\n    let targets = []\r\n\r\n    if (directives.has('model')) {\r\n        targets.push(directives.get('model').expression)\r\n    }\r\n\r\n    if (directives.has('target')) {\r\n        targets = targets.concat(\r\n            directives\r\n            .get('target')\r\n            .expression.split(',')\r\n            .map(s => s.trim())\r\n        )\r\n    }\r\n\r\n    return targets\r\n}\r\n", "import { directive } from '@/directives'\r\nimport { handleFileUpload } from '@/features/supportFileUploads'\r\nimport { closestComponent } from '@/store'\r\nimport { dataGet, dataSet } from '@/utils'\r\nimport Alpine from 'alpinejs'\r\n\r\ndirective('model', ({ el, directive, component, cleanup }) => {\r\n    let { expression, modifiers } = directive\r\n\r\n    if (! expression) {\r\n        return console.warn('Livewire: [wire:model] is missing a value.', el)\r\n    }\r\n\r\n    if (componentIsMissingProperty(component, expression)) {\r\n        return console.warn('Livewire: [wire:model=\"'+expression+'\"] property does not exist on component: ['+component.name+']', el)\r\n    }\r\n\r\n    // Handle file uploads differently...\r\n    if (el.type && el.type.toLowerCase() === 'file') {\r\n        return handleFileUpload(el, expression, component, cleanup)\r\n    }\r\n\r\n    let isLive = modifiers.includes('live')\r\n    let isLazy = modifiers.includes('lazy') || modifiers.includes('change')\r\n    let onBlur = modifiers.includes('blur')\r\n    let isDebounced = modifiers.includes('debounce')\r\n\r\n    // Trigger a network request (only if .live or .lazy is added to wire:model)...\r\n    let update = expression.startsWith('$parent')\r\n        ? () => component.$wire.$parent.$commit()\r\n        : () => component.$wire.$commit()\r\n\r\n    // If a plain wire:model is added to a text input, debounce the\r\n    // trigerring of network requests.\r\n    let debouncedUpdate = isTextInput(el) && ! isDebounced && isLive\r\n        ? debounce(update, 150)\r\n        : update\r\n\r\n    Alpine.bind(el, {\r\n        ['@change']() {\r\n            isLazy && update()\r\n        },\r\n        ['@blur']() {\r\n            onBlur && update()\r\n        },\r\n        ['x-model' + getModifierTail(modifiers)]() {\r\n            return {\r\n                get() {\r\n                    return dataGet(component.$wire, expression)\r\n                },\r\n                set(value) {\r\n                    dataSet(component.$wire, expression, value)\r\n\r\n                    isLive && (! isLazy) && (! onBlur) && debouncedUpdate()\r\n                },\r\n            }\r\n        }\r\n    })\r\n})\r\n\r\nfunction getModifierTail(modifiers) {\r\n    modifiers = modifiers.filter(i => ! [\r\n        'lazy', 'defer'\r\n    ].includes(i))\r\n\r\n    if (modifiers.length === 0) return ''\r\n\r\n    return '.' + modifiers.join('.')\r\n}\r\n\r\nfunction isTextInput(el) {\r\n    return (\r\n        ['INPUT', 'TEXTAREA'].includes(el.tagName.toUpperCase()) &&\r\n        !['checkbox', 'radio'].includes(el.type)\r\n    )\r\n}\r\n\r\nfunction isDirty(subject, dirty) {\r\n    // Check for exact match: wire:model=\"bob\" in ['bob']\r\n    if (dirty.includes(subject)) return true\r\n\r\n    // Check case of parent: wire:model=\"bob.1\" in ['bob']\r\n    return dirty.some(i => subject.startsWith(i))\r\n}\r\n\r\nfunction componentIsMissingProperty(component, property) {\r\n    if (property.startsWith('$parent')) {\r\n        let parent = closestComponent(component.el.parentElement, false)\r\n\r\n        if (! parent) return true\r\n\r\n        return componentIsMissingProperty(parent, property.split('$parent.')[1])\r\n    }\r\n\r\n    let baseProperty = property.split('.')[0]\r\n\r\n    return ! Object.keys(component.canonical).includes(baseProperty)\r\n}\r\n\r\nfunction debounce(func, wait) {\r\n    var timeout;\r\n\r\n    return function() {\r\n      var context = this, args = arguments;\r\n\r\n      var later = function() {\r\n            timeout = null\r\n\r\n            func.apply(context, args)\r\n      }\r\n\r\n      clearTimeout(timeout)\r\n\r\n      timeout = setTimeout(later, wait)\r\n    }\r\n}\r\n", "import { directive } from \"@/directives\"\r\nimport Alpine from 'alpinejs'\r\n\r\ndirective('init', ({ el, directive }) => {\r\n    let fullMethod = directive.expression ?? '$refresh'\r\n\r\n    Alpine.evaluate(el, `$wire.${fullMethod}`)\r\n})\r\n\r\n", "import { directive, getDirectives } from \"@/directives\"\r\nimport Alpine from 'alpinejs'\r\n\r\ndirective('poll', ({ el, directive }) => {\r\n    let interval = extractDurationFrom(directive.modifiers, 2000)\r\n\r\n    let { start, pauseWhile, throttleWhile, stopWhen } = poll(() => {\r\n        triggerComponentRequest(el, directive)\r\n    }, interval)\r\n\r\n    start()\r\n\r\n    throttleWhile(() => theTabIsInTheBackground() && theDirectiveIsMissingKeepAlive(directive))\r\n    pauseWhile(() => theDirectiveHasVisible(directive) && theElementIsNotInTheViewport(el))\r\n    pauseWhile(() => theDirectiveIsOffTheElement(el))\r\n    pauseWhile(() => livewireIsOffline())\r\n    stopWhen(() => theElementIsDisconnected(el))\r\n})\r\n\r\nfunction triggerComponentRequest(el, directive) {\r\n    Alpine.evaluate(el,\r\n        directive.expression ? '$wire.' + directive.expression : '$wire.$commit()'\r\n    )\r\n}\r\n\r\nfunction poll(callback, interval = 2000) {\r\n    let pauseConditions = []\r\n    let throttleConditions = []\r\n    let stopConditions = []\r\n\r\n    return {\r\n        start() {\r\n            let clear = syncronizedInterval(interval, () => {\r\n                if (stopConditions.some(i => i())) return clear()\r\n                if (pauseConditions.some(i => i())) return\r\n                if (throttleConditions.some(i => i()) && Math.random() < .95) return\r\n\r\n                callback()\r\n            })\r\n        },\r\n        pauseWhile(condition) {\r\n            pauseConditions.push(condition)\r\n        },\r\n        throttleWhile(condition) {\r\n            throttleConditions.push(condition)\r\n        },\r\n        stopWhen(condition) {\r\n            stopConditions.push(condition)\r\n        }\r\n    }\r\n}\r\n\r\nlet clocks = []\r\n\r\nfunction syncronizedInterval(ms, callback) {\r\n    if (! clocks[ms]) {\r\n        let clock = {\r\n            timer: setInterval(() => clock.callbacks.forEach(i => i()), ms),\r\n            callbacks: new Set,\r\n        }\r\n\r\n        clocks[ms] = clock\r\n    }\r\n\r\n    clocks[ms].callbacks.add(callback)\r\n\r\n    return () => {\r\n        clocks[ms].callbacks.delete(callback)\r\n\r\n        if (clocks[ms].callbacks.size === 0) {\r\n            clearInterval(clocks[ms].timer)\r\n            delete clocks[ms]\r\n        }\r\n    }\r\n}\r\n\r\nlet isOffline = false\r\n\r\nwindow.addEventListener('offline', () => isOffline = true)\r\nwindow.addEventListener('online', () => isOffline = false)\r\n\r\nfunction livewireIsOffline() {\r\n    return isOffline\r\n}\r\n\r\nlet inBackground = false\r\n\r\ndocument.addEventListener('visibilitychange', () => { inBackground = document.hidden }, false)\r\n\r\nfunction theTabIsInTheBackground() {\r\n    return inBackground\r\n}\r\n\r\nfunction theDirectiveIsOffTheElement(el) {\r\n    return ! getDirectives(el).has('poll')\r\n}\r\n\r\nfunction theDirectiveIsMissingKeepAlive(directive) {\r\n    return ! directive.modifiers.includes('keep-alive')\r\n}\r\n\r\nfunction theDirectiveHasVisible(directive) {\r\n    return directive.modifiers.includes('visible')\r\n}\r\n\r\nfunction theElementIsNotInTheViewport(el) {\r\n    let bounding = el.getBoundingClientRect()\r\n\r\n    return ! (\r\n        bounding.top < (window.innerHeight || document.documentElement.clientHeight) &&\r\n        bounding.left < (window.innerWidth || document.documentElement.clientWidth) &&\r\n        bounding.bottom > 0 &&\r\n        bounding.right > 0\r\n    )\r\n}\r\n\r\nfunction theElementIsDisconnected(el) {\r\n    return el.isConnected === false\r\n}\r\n\r\nfunction extractDurationFrom(modifiers, defaultDuration) {\r\n    let durationInMilliSeconds\r\n    let durationInMilliSecondsString = modifiers.find(mod => mod.match(/([0-9]+)ms/))\r\n    let durationInSecondsString = modifiers.find(mod => mod.match(/([0-9]+)s/))\r\n\r\n    if (durationInMilliSecondsString) {\r\n        durationInMilliSeconds = Number(durationInMilliSecondsString.replace('ms', ''))\r\n    } else if (durationInSecondsString) {\r\n        durationInMilliSeconds = Number(durationInSecondsString.replace('s', '')) * 1000\r\n    }\r\n\r\n    return durationInMilliSeconds || defaultDuration\r\n}\r\n", "import { dispatchGlobal as dispatch, dispatchTo, on } from './events'\r\nimport { find, first, getByName, all } from './store'\r\nimport { start } from './lifecycle'\r\nimport { on as hook, trigger, triggerAsync } from './hooks'\r\nimport { directive } from './directives'\r\nimport Alpine from 'alpinejs'\r\n\r\nlet Livewire = {\r\n    directive,\r\n    dispatchTo,\r\n    start,\r\n    first,\r\n    find,\r\n    getByName,\r\n    all,\r\n    hook,\r\n    trigger,\r\n    triggerAsync,\r\n    dispatch,\r\n    on,\r\n    get navigate() {\r\n        return Alpine.navigate\r\n    }\r\n}\r\n\r\nif (window.Livewire) console.warn('Detected multiple instances of Livewire running')\r\nif (window.Alpine) console.warn('Detected multiple instances of Alpine running')\r\n\r\n// Register features...\r\nimport './features/index'\r\n\r\n// Register directives...\r\nimport './directives/index'\r\n\r\n// Make globals...\r\nwindow.Livewire = Livewire\r\nwindow.Alpine = Alpine\r\n\r\nif (window.livewireScriptConfig === undefined) {\r\n    document.addEventListener('DOMContentLoaded', () => {\r\n        // Start Livewire...\r\n        Livewire.start()\r\n    })\r\n}\r\n\r\nexport { Livewire, Alpine };\r\n"],
  "mappings": "giBAAA,oBAGC,AAAC,UAAS,EAAM,EAAS,CAExB,AAAI,MAAO,SAAW,YAAc,OAAO,IACzC,OAAO,CAAO,EACT,AAAI,MAAO,KAAY,SAC5B,GAAO,QAAU,EAAQ,EAEzB,EAAK,UAAY,EAAQ,CAG7B,GAAG,GAAM,UAAW,CAClB,GAAI,GAAY,CAAC,EAEjB,EAAU,QAAU,QAEpB,GAAI,GAAW,EAAU,SAAW,CAClC,QAAS,IACT,OAAQ,OACR,cAAe,GACf,MAAO,IACP,QAAS,GACT,YAAa,IACb,aAAc,IACd,YAAa,GACb,YAAa,eACb,gBAAiB,mBACjB,OAAQ,OACR,SAAU,qIACZ,EASA,EAAU,UAAY,SAAS,EAAS,CACtC,GAAI,GAAK,EACT,IAAK,IAAO,GACV,EAAQ,EAAQ,GACZ,IAAU,QAAa,EAAQ,eAAe,CAAG,GAAG,GAAS,GAAO,GAG1E,MAAO,KACT,EAMA,EAAU,OAAS,KASnB,EAAU,IAAM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YAAsC,EAAI,CACtC,GAAI,GAAW,EAAG,sBAAsB,EAExC,MAAO,CACH,GAAS,IAAO,QAAO,aAAe,SAAS,gBAAgB,eAC/D,EAAS,KAAQ,QAAO,YAAc,SAAS,gBAAgB,cAC/D,EAAS,OAAS,GAClB,EAAS,MAAQ,EAEzB,CAEA,YAAkC,EAAI,CAClC,MAAO,GAAG,cAAgB,EAC9B,CAEA,YAA6B,EAAW,EAAiB,CACrD,GAAI,GACA,EAA+B,EAAU,KAAK,GAAO,EAAI,MAAM,YAAY,CAAC,EAC5E,EAA0B,EAAU,KAAK,GAAO,EAAI,MAAM,WAAW,CAAC,EAE1E,MAAI,GACA,EAAyB,OAAO,EAA6B,QAAQ,KAAM,EAAE,CAAC,EACvE,GACP,GAAyB,OAAO,EAAwB,QAAQ,IAAK,EAAE,CAAC,EAAI,KAGzE,GAA0B,CACrC,CC7HA,GAAI,IAAW,CACX,YACA,cACA,SACA,SACA,QACA,aACA,OACA,OACA,UACA,gBACA,YACA,MACA,GAAI,WAAW,CACX,MAAO,GAAO,QAClB,CACJ,EAEA,AAAI,OAAO,UAAU,QAAQ,KAAK,iDAAiD,EACnF,AAAI,OAAO,QAAQ,QAAQ,KAAK,+CAA+C,EAS/E,OAAO,SAAW,GAClB,OAAO,OAAS,EAEhB,AAAI,OAAO,uBAAyB,QAChC,SAAS,iBAAiB,mBAAoB,IAAM,CAEhD,GAAS,MAAM,CACnB,CAAC",
{"/livewire.js":"d76a01eb"}
    let data = {}
Fixed code:           el2._x_ignore && skip();
        if (removedNodes.has(node))
          continue;
        return objects.some((obj) => Object.prototype.hasOwnProperty.call(obj, name) || Reflect.has(obj, name));
        const target = objects.find((obj) => Object.prototype.hasOwnProperty.call(obj, name)) || objects[objects.length - 1];
      version: "3.13.7",
  let data = /* @__PURE__ */ Object.create(null);
        el2._x_ignore && skip();
      if (removedNodes.has(node))
        continue;
      return objects.some((obj) => Object.prototype.hasOwnProperty.call(obj, name) || Reflect.has(obj, name));
      const target = objects.find((obj) => Object.prototype.hasOwnProperty.call(obj, name)) || objects[objects.length - 1];
    version: "3.13.7",
    let data2 = /* @__PURE__ */ Object.create(null);
(()=>{var Ua=Object.create;var zn=Object.defineProperty;var Ha=Object.getOwnPropertyDescriptor;var qa=Object.getOwnPropertyNames;var Wa=Object.getPrototypeOf,Ka=Object.prototype.hasOwnProperty;var za=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Va=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qa(t))!Ka.call(e,i)&&i!==r&&zn(e,i,{get:()=>t[i],enumerable:!(n=Ha(t,i))||n.enumerable});return e};var Ja=(e,t,r)=>(r=e!=null?Ua(Wa(e)):{},Va(t||!e||!e.__esModule?zn(r,"default",{value:e,enumerable:!0}):r,e));var Ys=za((Rn,Xs)=>{(function(e,t){typeof define=="function"&&define.amd?define(t):typeof Rn=="object"?Xs.exports=t():e.NProgress=t()})(Rn,function(){var e={};e.version="0.2.0";var t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};e.configure=function(c){var f,m;for(f in c)m=c[f],m!==void 0&&c.hasOwnProperty(f)&&(t[f]=m);return this},e.status=null,e.set=function(c){var f=e.isStarted();c=r(c,t.minimum,1),e.status=c===1?null:c;var m=e.render(!f),v=m.querySelector(t.barSelector),g=t.speed,x=t.easing;return m.offsetWidth,o(function(b){t.positionUsing===""&&(t.positionUsing=e.getPositioningCSS()),s(v,i(c,g,x)),c===1?(s(m,{transition:"none",opacity:1}),m.offsetWidth,setTimeout(function(){s(m,{transition:"all "+g+"ms linear",opacity:0}),setTimeout(function(){e.remove(),b()},g)},g)):setTimeout(b,g)}),this},e.isStarted=function(){return typeof e.status=="number"},e.start=function(){e.status||e.set(0);var c=function(){setTimeout(function(){!e.status||(e.trickle(),c())},t.trickleSpeed)};return t.trickle&&c(),this},e.done=function(c){return!c&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(c){var f=e.status;return f?(typeof c!="number"&&(c=(1-f)*r(Math.random()*f,.1,.95)),f=r(f+c,0,.994),e.set(f)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var c=0,f=0;e.promise=function(m){return!m||m.state()==="resolved"?this:(f===0&&e.start(),c++,f++,m.always(function(){f--,f===0?(c=0,e.done()):e.set((c-f)/c)}),this)}}(),e.render=function(c){if(e.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var f=document.createElement("div");f.id="nprogress",f.innerHTML=t.template;var m=f.querySelector(t.barSelector),v=c?"-100":n(e.status||0),g=document.querySelector(t.parent),x;return s(m,{transition:"all 0 linear",transform:"translate3d("+v+"%,0,0)"}),t.showSpinner||(x=f.querySelector(t.spinnerSelector),x&&p(x)),g!=document.body&&l(g,"nprogress-custom-parent"),g.appendChild(f),f},e.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var c=document.getElementById("nprogress");c&&p(c)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var c=document.body.style,f="WebkitTransform"in c?"Webkit":"MozTransform"in c?"Moz":"msTransform"in c?"ms":"OTransform"in c?"O":"";return f+"Perspective"in c?"translate3d":f+"Transform"in c?"translate":"margin"};function r(c,f,m){return c<f?f:c>m?m:c}function n(c){return(-1+c)*100}function i(c,f,m){var v;return t.positionUsing==="translate3d"?v={transform:"translate3d("+n(c)+"%,0,0)"}:t.positionUsing==="translate"?v={transform:"translate("+n(c)+"%,0)"}:v={"margin-left":n(c)+"%"},v.transition="all "+f+"ms "+m,v}var o=function(){var c=[];function f(){var m=c.shift();m&&m(f)}return function(m){c.push(m),c.length==1&&f()}}(),s=function(){var c=["Webkit","O","Moz","ms"],f={};function m(b){return b.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(_,O){return O.toUpperCase()})}function v(b){var _=document.body.style;if(b in _)return b;for(var O=c.length,T=b.charAt(0).toUpperCase()+b.slice(1),w;O--;)if(w=c[O]+T,w in _)return w;return b}function g(b){return b=m(b),f[b]||(f[b]=v(b))}function x(b,_,O){_=g(_),b.style[_]=O}return function(b,_){var O=arguments,T,w;if(O.length==2)for(T in _)w=_[T],w!==void 0&&_.hasOwnProperty(T)&&x(b,T,w);else x(b,O[1],O[2])}}();function a(c,f){var m=typeof c=="string"?c:d(c);return m.indexOf(" "+f+" ")>=0}function l(c,f){var m=d(c),v=m+f;a(m,f)||(c.className=v.substring(1))}function u(c,f){var m=d(c),v;!a(c,f)||(v=m.replace(" "+f+" "," "),c.className=v.substring(1,v.length-1))}function d(c){return(" "+(c.className||"")+" ").replace(/\s+/gi," ")}function p(c){c&&c.parentNode&&c.parentNode.removeChild(c)}return e})});var Ie=class{constructor(){this.arrays=new WeakMap}add(t,r){this.arrays.has(t)||this.arrays.set(t,[]),this.arrays.get(t).push(r)}get(t){return this.arrays.has(t)?this.arrays.get(t):[]}each(t,r){return this.get(t).forEach(r)}};function gt(e,t,r={},n=!0){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:n,composed:!0,cancelable:!0}))}function vt(e){return typeof e=="object"&&e!==null}function Vn(e){return vt(e)&&!dr(e)}function dr(e){return Array.isArray(e)}function pr(e){return typeof e=="function"}function Jn(e){return typeof e!="object"||e===null}function le(e){return JSON.parse(JSON.stringify(e))}function W(e,t){return t===""?e:t.split(".").reduce((r,n)=>{if(r!==void 0)return r[n]},e)}function ve(e,t,r){let n=t.split(".");if(n.length===1)return e[t]=r;let i=n.shift(),o=n.join(".");e[i]===void 0&&(e[i]={}),ve(e[i],o,r)}function Ge(e,t,r={},n=""){if(e===t)return r;if(typeof e!=typeof t||Vn(e)&&dr(t)||dr(e)&&Vn(t)||Jn(e)||Jn(t))return r[n]=t,r;let i=Object.keys(e);return Object.entries(t).forEach(([o,s])=>{r={...r,...Ge(e[o],t[o],r,n===""?o:`${n}.${o}`)},i=i.filter(a=>a!==o)}),i.forEach(o=>{r[`${n}.${o}`]="__rm__"}),r}function be(e){let t=Gn(e)?e[0]:e,r=Gn(e)?e[1]:void 0;return vt(t)&&Object.entries(t).forEach(([n,i])=>{t[n]=be(i)}),t}function Gn(e){return Array.isArray(e)&&e.length===2&&typeof e[1]=="object"&&Object.keys(e[1]).includes("s")}function bt(){if(document.querySelector('meta[name="csrf-token"]'))return document.querySelector('meta[name="csrf-token"]').getAttribute("content");if(document.querySelector("[data-csrf]"))return document.querySelector("[data-csrf]").getAttribute("data-csrf");if(window.livewireScriptConfig.csrf??!1)return window.livewireScriptConfig.csrf;throw"Livewire: No CSRF token detected"}var Pe;function Xn(){if(Pe)return Pe;if(window.livewireScriptConfig&&(window.livewireScriptConfig.nonce??!1))return Pe=window.livewireScriptConfig.nonce,Pe;let e=document.querySelector("style[data-livewire-style][nonce]");return e?(Pe=e.nonce,Pe):null}function Yn(){return document.querySelector("[data-update-uri]")?.getAttribute("data-update-uri")??window.livewireScriptConfig.uri??null}function wt(e){return!!e.match(/<script>Sfdump\(".+"\)<\/script>/)}function Qn(e){let t=e.match(/.*<script>Sfdump\(".+"\)<\/script>/s);return[t,e.replace(t,"")]}var hr=new WeakMap;function Ye(e){if(!hr.has(e)){let t=new mr(e);hr.set(e,t),t.registerListeners()}return hr.get(e)}function Zn(e,t,r,n){let i=Ye(r),o=()=>e.dispatchEvent(new CustomEvent("livewire-upload-start",{bubbles:!0,detail:{id:r.id,property:t}})),s=()=>e.dispatchEvent(new CustomEvent("livewire-upload-finish",{bubbles:!0,detail:{id:r.id,property:t}})),a=()=>e.dispatchEvent(new CustomEvent("livewire-upload-error",{bubbles:!0,detail:{id:r.id,property:t}})),l=()=>e.dispatchEvent(new CustomEvent("livewire-upload-cancel",{bubbles:!0,detail:{id:r.id,property:t}})),u=c=>{var f=Math.round(c.loaded*100/c.total);e.dispatchEvent(new CustomEvent("livewire-upload-progress",{bubbles:!0,detail:{progress:f}}))},d=c=>{c.target.files.length!==0&&(o(),c.target.multiple?i.uploadMultiple(t,c.target.files,s,a,u,l):i.upload(t,c.target.files[0],s,a,u,l))};e.addEventListener("change",d);let p=()=>{e.value=null};e.addEventListener("click",p),e.addEventListener("livewire-upload-cancel",p),n(()=>{e.removeEventListener("change",d),e.removeEventListener("click",p)})}var mr=class{constructor(t){this.component=t,this.uploadBag=new Xe,this.removeBag=new Xe}registerListeners(){this.component.$wire.$on("upload:generatedSignedUrl",({name:t,url:r})=>{this.component,this.handleSignedUrl(t,r)}),this.component.$wire.$on("upload:generatedSignedUrlForS3",({name:t,payload:r})=>{this.component,this.handleS3PreSignedUrl(t,r)}),this.component.$wire.$on("upload:finished",({name:t,tmpFilenames:r})=>this.markUploadFinished(t,r)),this.component.$wire.$on("upload:errored",({name:t})=>this.markUploadErrored(t)),this.component.$wire.$on("upload:removed",({name:t,tmpFilename:r})=>this.removeBag.shift(t).finishCallback(r))}upload(t,r,n,i,o,s){this.setUpload(t,{files:[r],multiple:!1,finishCallback:n,errorCallback:i,progressCallback:o,cancelledCallback:s})}uploadMultiple(t,r,n,i,o,s){this.setUpload(t,{files:Array.from(r),multiple:!0,finishCallback:n,errorCallback:i,progressCallback:o,cancelledCallback:s})}removeUpload(t,r,n){this.removeBag.push(t,{tmpFilename:r,finishCallback:n}),this.component.$wire.call("_removeUpload",t,r)}setUpload(t,r){this.uploadBag.add(t,r),this.uploadBag.get(t).length===1&&this.startUpload(t,r)}handleSignedUrl(t,r){let n=new FormData;Array.from(this.uploadBag.first(t).files).forEach(s=>n.append("files[]",s,s.name));let i={Accept:"application/json"},o=bt();o&&(i["X-CSRF-TOKEN"]=o),this.makeRequest(t,n,"post",r,i,s=>s.paths)}handleS3PreSignedUrl(t,r){let n=this.uploadBag.first(t).files[0],i=r.headers;"Host"in i&&delete i.Host;let o=r.url;this.makeRequest(t,n,"put",o,i,s=>[r.path])}makeRequest(t,r,n,i,o,s){let a=new XMLHttpRequest;a.open(n,i),Object.entries(o).forEach(([l,u])=>{a.setRequestHeader(l,u)}),a.upload.addEventListener("progress",l=>{l.detail={},l.detail.progress=Math.round(l.loaded*100/l.total),this.uploadBag.first(t).progressCallback(l)}),a.addEventListener("load",()=>{if((a.status+"")[0]==="2"){let u=s(a.response&&JSON.parse(a.response));this.component.$wire.call("_finishUpload",t,u,this.uploadBag.first(t).multiple);return}let l=null;a.status===422&&(l=a.response),this.component.$wire.call("_uploadErrored",t,l,this.uploadBag.first(t).multiple)}),this.uploadBag.first(t).request=a,a.send(r)}startUpload(t,r){let n=r.files.map(i=>({name:i.name,size:i.size,type:i.type}));this.component.$wire.call("_startUpload",t,n,r.multiple),this.component}markUploadFinished(t,r){this.component;let n=this.uploadBag.shift(t);n.finishCallback(n.multiple?r:r[0]),this.uploadBag.get(t).length>0&&this.startUpload(t,this.uploadBag.last(t))}markUploadErrored(t){this.component,this.uploadBag.shift(t).errorCallback(),this.uploadBag.get(t).length>0&&this.startUpload(t,this.uploadBag.last(t))}cancelUpload(t,r=null){this.component;let n=this.uploadBag.first(t);n&&(n.request.abort(),this.uploadBag.shift(t).cancelledCallback(),r&&r())}},Xe=class{constructor(){this.bag={}}add(t,r){this.bag[t]||(this.bag[t]=[]),this.bag[t].push(r)}push(t,r){this.add(t,r)}first(t){return this.bag[t]?this.bag[t][0]:null}last(t){return this.bag[t].slice(-1)[0]}get(t){return this.bag[t]}shift(t){return this.bag[t].shift()}call(t,...r){(this.listeners[t]||[]).forEach(n=>{n(...r)})}has(t){return Object.keys(this.listeners).includes(t)}};function ei(e,t,r,n=()=>{},i=()=>{},o=()=>{},s=()=>{}){Ye(e).upload(t,r,n,i,o,s)}function ti(e,t,r,n=()=>{},i=()=>{},o=()=>{},s=()=>{}){Ye(e).uploadMultiple(t,r,n,i,o,s)}function ri(e,t,r,n=()=>{},i=()=>{}){Ye(e).removeUpload(t,r,n,i)}function ni(e,t,r=()=>{}){Ye(e).cancelUpload(t,r)}var yr=!1,xr=!1,xe=[],_r=-1;function Ga(e){Xa(e)}function Xa(e){xe.includes(e)||xe.push(e),Ya()}function bi(e){let t=xe.indexOf(e);t!==-1&&t>_r&&xe.splice(t,1)}function Ya(){!xr&&!yr&&(yr=!0,queueMicrotask(Qa))}function Qa(){yr=!1,xr=!0;for(let e=0;e<xe.length;e++)xe[e](),_r=e;xe.length=0,_r=-1,xr=!1}var De,Ae,$e,wi,Sr=!0;function Za(e){Sr=!1,e(),Sr=!0}function el(e){De=e.reactive,$e=e.release,Ae=t=>e.effect(t,{scheduler:r=>{Sr?Ga(r):r()}}),wi=e.raw}function ii(e){Ae=e}function tl(e){let t=()=>{};return[n=>{let i=Ae(n);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),$e(i))},i},()=>{t()}]}function yi(e,t){let r=!0,n,i=Ae(()=>{let o=e();JSON.stringify(o),r?n=o:queueMicrotask(()=>{t(o,n),n=o}),r=!1});return()=>$e(i)}function rt(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}function ce(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>ce(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)ce(n,t,!1),n=n.nextElementSibling}function Y(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var oi=!1;function rl(){oi&&Y("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),oi=!0,document.body||Y("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),rt(document,"alpine:init"),rt(document,"alpine:initializing"),qr(),ol(t=>ne(t,ce)),jr(t=>Br(t)),Li((t,r)=>{Vr(t,r).forEach(n=>n())});let e=t=>!Lt(t.parentElement,!0);Array.from(document.querySelectorAll(Si().join(","))).filter(e).forEach(t=>{ne(t)}),rt(document,"alpine:initialized")}var $r=[],xi=[];function _i(){return $r.map(e=>e())}function Si(){return $r.concat(xi).map(e=>e())}function Ei(e){$r.push(e)}function Ai(e){xi.push(e)}function Lt(e,t=!1){return ot(e,r=>{if((t?Si():_i()).some(i=>r.matches(i)))return!0})}function ot(e,t){if(!!e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return ot(e.parentElement,t)}}function nl(e){return _i().some(t=>e.matches(t))}var Ci=[];function il(e){Ci.push(e)}function ne(e,t=ce,r=()=>{}){wl(()=>{t(e,(n,i)=>{r(n,i),Ci.forEach(o=>o(n,i)),Vr(n,n.attributes).forEach(o=>o()),n._x_ignore&&i()})})}function Br(e,t=ce){t(e,r=>{Ri(r),sl(r)})}var Ti=[],Oi=[],ki=[];function ol(e){ki.push(e)}function jr(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Oi.push(t))}function Li(e){Ti.push(e)}function Ni(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function Ri(e,t){!e._x_attributeCleanups||Object.entries(e._x_attributeCleanups).forEach(([r,n])=>{(t===void 0||t.includes(r))&&(n.forEach(i=>i()),delete e._x_attributeCleanups[r])})}function sl(e){if(e._x_cleanups)for(;e._x_cleanups.length;)e._x_cleanups.pop()()}var Ur=new MutationObserver(Kr),Hr=!1;function qr(){Ur.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Hr=!0}function Pi(){al(),Ur.disconnect(),Hr=!1}var Qe=[];function al(){let e=Ur.takeRecords();Qe.push(()=>e.length>0&&Kr(e));let t=Qe.length;queueMicrotask(()=>{if(Qe.length===t)for(;Qe.length>0;)Qe.shift()()})}function B(e){if(!Hr)return e();Pi();let t=e();return qr(),t}var Wr=!1,Tt=[];function ll(){Wr=!0}function ul(){Wr=!1,Kr(Tt),Tt=[]}function Kr(e){if(Wr){Tt=Tt.concat(e);return}let t=new Set,r=new Set,n=new Map,i=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&(e[o].type==="childList"&&(e[o].addedNodes.forEach(s=>s.nodeType===1&&t.add(s)),e[o].removedNodes.forEach(s=>s.nodeType===1&&r.add(s))),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,l=e[o].oldValue,u=()=>{n.has(s)||n.set(s,[]),n.get(s).push({name:a,value:s.getAttribute(a)})},d=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&l===null?u():s.hasAttribute(a)?(d(),u()):d()}i.forEach((o,s)=>{Ri(s,o)}),n.forEach((o,s)=>{Ti.forEach(a=>a(s,o))});for(let o of r)t.has(o)||(Oi.forEach(s=>s(o)),Br(o));t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)r.has(o)||!o.isConnected||(delete o._x_ignoreSelf,delete o._x_ignore,ki.forEach(s=>s(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,r=null,n=null,i=null}function Ii(e){return at(Me(e))}function st(e,t,r){return e._x_dataStack=[t,...Me(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(n=>n!==t)}}function Me(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?Me(e.host):e.parentNode?Me(e.parentNode):[]}function at(e){return new Proxy({objects:e},cl)}var cl={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(r=>Object.prototype.hasOwnProperty.call(r,t)||Reflect.has(r,t))},get({objects:e},t,r){return t=="toJSON"?fl:Reflect.get(e.find(n=>Reflect.has(n,t))||{},t,r)},set({objects:e},t,r,n){let i=e.find(s=>Object.prototype.hasOwnProperty.call(s,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(i,t);return o?.set&&o?.get?Reflect.set(i,t,r,n):Reflect.set(i,t,r)}};function fl(){return Reflect.ownKeys(this).reduce((t,r)=>(t[r]=Reflect.get(this,r),t),{})}function Mi(e){let t=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,r=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0||typeof s=="object"&&s!==null&&s.__v_skip)return;let l=i===""?o:`${i}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?n[o]=s.initialize(e,l,o):t(s)&&s!==n&&!(s instanceof Element)&&r(s,l)})};return r(e)}function Fi(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(n,i,o){return e(this.initialValue,()=>dl(n,i),s=>Er(n,i,s),i,o)}};return t(r),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let i=r.initialize.bind(r);r.initialize=(o,s,a)=>{let l=n.initialize(o,s,a);return r.initialValue=l,i(o,s,a)}}else r.initialValue=n;return r}}function dl(e,t){return t.split(".").reduce((r,n)=>r[n],e)}function Er(e,t,r){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=r;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Er(e[t[0]],t.slice(1),r)}}var Di={};function Z(e,t){Di[e]=t}function Ar(e,t){return Object.entries(Di).forEach(([r,n])=>{let i=null;function o(){if(i)return i;{let[s,a]=qi(t);return i={interceptor:Fi,...s},jr(t,a),i}}Object.defineProperty(e,`$${r}`,{get(){return n(t,o())},enumerable:!1})}),e}function pl(e,t,r,...n){try{return r(...n)}catch(i){it(i,e,t)}}function it(e,t,r=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:r}),console.warn(`Alpine Expression Error: ${e.message}
`:""}`,t),setTimeout(()=>{throw e},0)}var At=!0;function $i(e){let t=At;At=!1;let r=e();return At=t,r}function _e(e,t,r={}){let n;return U(e,t)(i=>n=i,r),n}function U(...e){return Bi(...e)}var Bi=ji;function hl(e){Bi=e}function ji(e,t){let r={};Ar(r,e);let n=[r,...Me(e)],i=typeof t=="function"?ml(n,t):vl(n,t,e);return pl.bind(null,e,t,i)}function ml(e,t){return(r=()=>{},{scope:n={},params:i=[]}={})=>{let o=t.apply(at([n,...e]),i);Ot(r,o)}}var gr={};function gl(e,t){if(gr[e])return gr[e];let r=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let s=new r(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return it(s,t,e),Promise.resolve()}})();return gr[e]=o,o}function vl(e,t,r){let n=gl(t,r);return(i=()=>{},{scope:o={},params:s=[]}={})=>{n.result=void 0,n.finished=!1;let a=at([o,...e]);if(typeof n=="function"){let l=n(n,a).catch(u=>it(u,r,t));n.finished?(Ot(i,n.result,a,s,r),n.result=void 0):l.then(u=>{Ot(i,u,a,s,r)}).catch(u=>it(u,r,t)).finally(()=>n.result=void 0)}}}function Ot(e,t,r,n,i){if(At&&typeof t=="function"){let o=t.apply(r,n);o instanceof Promise?o.then(s=>Ot(e,s,r,n)).catch(s=>it(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var zr="x-";function Be(e=""){return zr+e}function bl(e){zr=e}var Cr={};function F(e,t){return Cr[e]=t,{before(r){if(!Cr[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${e}\` will use the default order of execution`);return}let n=ye.indexOf(r);ye.splice(n>=0?n:ye.indexOf("DEFAULT"),0,e)}}}function Vr(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),s=Ui(o);o=o.map(a=>s.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(o)}let n={};return t.map(zi((o,s)=>n[o]=s)).filter(Ji).map(xl(n,r)).sort(_l).map(o=>yl(e,o))}function Ui(e){return Array.from(e).map(zi()).filter(t=>!Ji(t))}var Tr=!1,tt=new Map,Hi=Symbol();function wl(e){Tr=!0;let t=Symbol();Hi=t,tt.set(t,[]);let r=()=>{for(;tt.get(t).length;)tt.get(t).shift()();tt.delete(t)},n=()=>{Tr=!1,r()};e(r),n()}function qi(e){let t=[],r=a=>t.push(a),[n,i]=tl(e);return t.push(i),[{Alpine:lt,effect:n,cleanup:r,evaluateLater:U.bind(U,e),evaluate:_e.bind(_e,e)},()=>t.forEach(a=>a())]}function yl(e,t){let r=()=>{},n=Cr[t.type]||r,[i,o]=qi(e);Ni(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,i),n=n.bind(n,e,t,i),Tr?tt.get(Hi).push(n):n())};return s.runCleanups=o,s}var Wi=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),Ki=e=>e;function zi(e=()=>{}){return({name:t,value:r})=>{let{name:n,value:i}=Vi.reduce((o,s)=>s(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var Vi=[];function Jr(e){Vi.push(e)}function Ji({name:e}){return Gi().test(e)}var Gi=()=>new RegExp(`^${zr}([^:^.]+)\\b`);function xl(e,t){return({name:r,value:n})=>{let i=r.match(Gi()),o=r.match(/:([a-zA-Z0-9\-_:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(l=>l.replace(".","")),expression:n,original:a}}}var Or="DEFAULT",ye=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Or,"teleport"];function _l(e,t){let r=ye.indexOf(e.type)===-1?Or:e.type,n=ye.indexOf(t.type)===-1?Or:t.type;return ye.indexOf(r)-ye.indexOf(n)}var kr=[],Gr=!1;function Xr(e=()=>{}){return queueMicrotask(()=>{Gr||setTimeout(()=>{Lr()})}),new Promise(t=>{kr.push(()=>{e(),t()})})}function Lr(){for(Gr=!1;kr.length;)kr.shift()()}function Sl(){Gr=!0}function Yr(e,t){return Array.isArray(t)?si(e,t.join(" ")):typeof t=="object"&&t!==null?El(e,t):typeof t=="function"?Yr(e,t()):si(e,t)}function si(e,t){let r=o=>o.split(" ").filter(Boolean),n=o=>o.split(" ").filter(s=>!e.classList.contains(s)).filter(Boolean),i=o=>(e.classList.add(...o),()=>{e.classList.remove(...o)});return t=t===!0?t="":t||"",i(n(t))}function El(e,t){let r=a=>a.split(" ").filter(Boolean),n=Object.entries(t).flatMap(([a,l])=>l?r(a):!1).filter(Boolean),i=Object.entries(t).flatMap(([a,l])=>l?!1:r(a)).filter(Boolean),o=[],s=[];return i.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),n.forEach(a=>{e.classList.contains(a)||(e.classList.add(a),o.push(a))}),()=>{s.forEach(a=>e.classList.add(a)),o.forEach(a=>e.classList.remove(a))}}function Nt(e,t){return typeof t=="object"&&t!==null?Al(e,t):Cl(e,t)}function Al(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{r[n]=e.style[n],n.startsWith("--")||(n=Tl(n)),e.style.setProperty(n,i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{Nt(e,r)}}function Cl(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r||"")}}function Tl(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Nr(e,t=()=>{}){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}F("transition",(e,{value:t,modifiers:r,expression:n},{evaluate:i})=>{typeof n=="function"&&(n=i(n)),n!==!1&&(!n||typeof n=="boolean"?kl(e,r,t):Ol(e,n,t))});function Ol(e,t,r){Xi(e,Yr,""),{enter:i=>{e._x_transition.enter.during=i},"enter-start":i=>{e._x_transition.enter.start=i},"enter-end":i=>{e._x_transition.enter.end=i},leave:i=>{e._x_transition.leave.during=i},"leave-start":i=>{e._x_transition.leave.start=i},"leave-end":i=>{e._x_transition.leave.end=i}}[r](t)}function kl(e,t,r){Xi(e,Nt);let n=!t.includes("in")&&!t.includes("out")&&!r,i=n||t.includes("in")||["enter"].includes(r),o=n||t.includes("out")||["leave"].includes(r);t.includes("in")&&!n&&(t=t.filter((x,b)=>b<t.indexOf("out"))),t.includes("out")&&!n&&(t=t.filter((x,b)=>b>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),l=s||t.includes("scale"),u=a?0:1,d=l?Ze(t,"scale",95)/100:1,p=Ze(t,"delay",0)/1e3,c=Ze(t,"origin","center"),f="opacity, transform",m=Ze(t,"duration",150)/1e3,v=Ze(t,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:c,transitionDelay:`${p}s`,transitionProperty:f,transitionDuration:`${m}s`,transitionTimingFunction:g},e._x_transition.enter.start={opacity:u,transform:`scale(${d})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:c,transitionDelay:`${p}s`,transitionProperty:f,transitionDuration:`${v}s`,transitionTimingFunction:g},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:u,transform:`scale(${d})`})}function Xi(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},i=()=>{}){Rr(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=()=>{},i=()=>{}){Rr(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,n){let i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,o=()=>i(r);if(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(r):o():e._x_transition?e._x_transition.in(r):o();return}e._x_hidePromise=e._x_transition?new Promise((s,a)=>{e._x_transition.out(()=>{},()=>s(n)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let s=Yi(e);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(e)):i(()=>{let a=l=>{let u=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(a)]).then(([d])=>d());return delete l._x_hidePromise,delete l._x_hideChildren,u};a(e).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function Yi(e){let t=e.parentNode;if(!!t)return t._x_hidePromise?t:Yi(t)}function Rr(e,t,{during:r,start:n,end:i}={},o=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(n).length===0&&Object.keys(i).length===0){o(),s();return}let a,l,u;Ll(e,{start(){a=t(e,n)},during(){l=t(e,r)},before:o,end(){a(),u=t(e,i)},after:s,cleanup(){l(),u()}})}function Ll(e,t){let r,n,i,o=Nr(()=>{B(()=>{r=!0,n||t.before(),i||(t.end(),Lr()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:Nr(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},B(()=>{t.start(),t.during()}),Sl(),requestAnimationFrame(()=>{if(r)return;let s=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),B(()=>{t.before()}),n=!0,requestAnimationFrame(()=>{r||(B(()=>{t.end()}),Lr(),setTimeout(e._x_transitioning.finish,s+a),i=!0)})})}function Ze(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n||t==="scale"&&isNaN(n))return r;if(t==="duration"||t==="delay"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[n,e[e.indexOf(t)+2]].join(" "):n}var fe=!1;function Ce(e,t=()=>{}){return(...r)=>fe?t(...r):e(...r)}function Nl(e){return(...t)=>fe&&e(...t)}var Qi=[];function Rt(e){Qi.push(e)}function Rl(e,t){Qi.forEach(r=>r(e,t)),fe=!0,Zi(()=>{ne(t,(r,n)=>{n(r,()=>{})})}),fe=!1}var Pr=!1;function Pl(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),fe=!0,Pr=!0,Zi(()=>{Il(t)}),fe=!1,Pr=!1}function Il(e){let t=!1;ne(e,(n,i)=>{ce(n,(o,s)=>{if(t&&nl(o))return s();t=!0,i(o,s)})})}function Zi(e){let t=Ae;ii((r,n)=>{let i=t(r);return $e(i),()=>{}}),e(),ii(t)}function eo(e,t,r,n=[]){switch(e._x_bindings||(e._x_bindings=De({})),e._x_bindings[t]=r,t=n.includes("camel")?Hl(t):t,t){case"value":Ml(e,r);break;case"style":Dl(e,r);break;case"class":Fl(e,r);break;case"selected":case"checked":$l(e,t,r);break;default:to(e,t,r);break}}function Ml(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=Ct(e.value)===t:e.checked=ai(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(r=>ai(r,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")Ul(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function Fl(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Yr(e,t)}function Dl(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Nt(e,t)}function $l(e,t,r){to(e,t,r),jl(e,t,r)}function to(e,t,r){[null,void 0,!1].includes(r)&&ql(t)?e.removeAttribute(t):(ro(t)&&(r=t),Bl(e,t,r))}function Bl(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}function jl(e,t,r){e[t]!==r&&(e[t]=r)}function Ul(e,t){let r=[].concat(t).map(n=>n+"");Array.from(e.options).forEach(n=>{n.selected=r.includes(n.value)})}function Hl(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function ai(e,t){return e==t}function Ct(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?Boolean(e):null}function ro(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function ql(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function Wl(e,t,r){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:no(e,t,r)}function Kl(e,t,r,n=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let i=e._x_inlineBindings[t];return i.extract=n,$i(()=>_e(e,i.expression))}return no(e,t,r)}function no(e,t,r){let n=e.getAttribute(t);return n===null?typeof r=="function"?r():r:n===""?!0:ro(t)?!![t,"true"].includes(n):n}function io(e,t){var r;return function(){var n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}function oo(e,t){let r;return function(){let n=this,i=arguments;r||(e.apply(n,i),r=!0,setTimeout(()=>r=!1,t))}}function so({get:e,set:t},{get:r,set:n}){let i=!0,o,s,a=Ae(()=>{let l=e(),u=r();if(i)n(vr(l)),i=!1;else{let d=JSON.stringify(l),p=JSON.stringify(u);d!==o?n(vr(l)):d!==p&&t(vr(u))}o=JSON.stringify(e()),s=JSON.stringify(r())});return()=>{$e(a)}}function vr(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function zl(e){(Array.isArray(e)?e:[e]).forEach(r=>r(lt))}var we={},li=!1;function Vl(e,t){if(li||(we=De(we),li=!0),t===void 0)return we[e];we[e]=t,typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&we[e].init(),Mi(we[e])}function Jl(){return we}var ao={};function Gl(e,t){let r=typeof t!="function"?()=>t:t;return e instanceof Element?lo(e,r()):(ao[e]=r,()=>{})}function Xl(e){return Object.entries(ao).forEach(([t,r])=>{Object.defineProperty(e,t,{get(){return(...n)=>r(...n)}})}),e}function lo(e,t,r){let n=[];for(;n.length;)n.pop()();let i=Object.entries(t).map(([s,a])=>({name:s,value:a})),o=Ui(i);return i=i.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),Vr(e,i,r).map(s=>{n.push(s.runCleanups),s()}),()=>{for(;n.length;)n.pop()()}}var uo={};function Yl(e,t){uo[e]=t}function Ql(e,t){return Object.entries(uo).forEach(([r,n])=>{Object.defineProperty(e,r,{get(){return(...i)=>n.bind(t)(...i)},enumerable:!1})}),e}var Zl={get reactive(){return De},get release(){return $e},get effect(){return Ae},get raw(){return wi},version:"3.13.7",flushAndStopDeferringMutations:ul,dontAutoEvaluateFunctions:$i,disableEffectScheduling:Za,startObservingMutations:qr,stopObservingMutations:Pi,setReactivityEngine:el,onAttributeRemoved:Ni,onAttributesAdded:Li,closestDataStack:Me,skipDuringClone:Ce,onlyDuringClone:Nl,addRootSelector:Ei,addInitSelector:Ai,interceptClone:Rt,addScopeToNode:st,deferMutations:ll,mapAttributes:Jr,evaluateLater:U,interceptInit:il,setEvaluator:hl,mergeProxies:at,extractProp:Kl,findClosest:ot,onElRemoved:jr,closestRoot:Lt,destroyTree:Br,interceptor:Fi,transition:Rr,setStyles:Nt,mutateDom:B,directive:F,entangle:so,throttle:oo,debounce:io,evaluate:_e,initTree:ne,nextTick:Xr,prefixed:Be,prefix:bl,plugin:zl,magic:Z,store:Vl,start:rl,clone:Pl,cloneNode:Rl,bound:Wl,$data:Ii,watch:yi,walk:ce,data:Yl,bind:Gl},lt=Zl;function co(e,t){let r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}var eu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ad=co(eu+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),tu=Object.freeze({}),Cd=Object.freeze([]),ru=Object.prototype.hasOwnProperty,Pt=(e,t)=>ru.call(e,t),Se=Array.isArray,nt=e=>fo(e)==="[object Map]",nu=e=>typeof e=="string",Qr=e=>typeof e=="symbol",It=e=>e!==null&&typeof e=="object",iu=Object.prototype.toString,fo=e=>iu.call(e),po=e=>fo(e).slice(8,-1),Zr=e=>nu(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mt=e=>{let t=Object.create(null);return r=>t[r]||(t[r]=e(r))},ou=/-(\w)/g,Td=Mt(e=>e.replace(ou,(t,r)=>r?r.toUpperCase():"")),su=/\B([A-Z])/g,Od=Mt(e=>e.replace(su,"-$1").toLowerCase()),ho=Mt(e=>e.charAt(0).toUpperCase()+e.slice(1)),kd=Mt(e=>e?`on${ho(e)}`:""),mo=(e,t)=>e!==t&&(e===e||t===t),Ir=new WeakMap,et=[],ee,Ee=Symbol("iterate"),Mr=Symbol("Map key iterate");function au(e){return e&&e._isEffect===!0}function lu(e,t=tu){au(e)&&(e=e.raw);let r=fu(e,t);return t.lazy||r(),r}function uu(e){e.active&&(go(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var cu=0;function fu(e,t){let r=function(){if(!r.active)return e();if(!et.includes(r)){go(r);try{return pu(),et.push(r),ee=r,e()}finally{et.pop(),vo(),ee=et[et.length-1]}}};return r.id=cu++,r.allowRecurse=!!t.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=t,r}function go(e){let{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var Fe=!0,en=[];function du(){en.push(Fe),Fe=!1}function pu(){en.push(Fe),Fe=!0}function vo(){let e=en.pop();Fe=e===void 0?!0:e}function Q(e,t,r){if(!Fe||ee===void 0)return;let n=Ir.get(e);n||Ir.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=new Set),i.has(ee)||(i.add(ee),ee.deps.push(i),ee.options.onTrack&&ee.options.onTrack({effect:ee,target:e,type:t,key:r}))}function de(e,t,r,n,i,o){let s=Ir.get(e);if(!s)return;let a=new Set,l=d=>{d&&d.forEach(p=>{(p!==ee||p.allowRecurse)&&a.add(p)})};if(t==="clear")s.forEach(l);else if(r==="length"&&Se(e))s.forEach((d,p)=>{(p==="length"||p>=n)&&l(d)});else switch(r!==void 0&&l(s.get(r)),t){case"add":Se(e)?Zr(r)&&l(s.get("length")):(l(s.get(Ee)),nt(e)&&l(s.get(Mr)));break;case"delete":Se(e)||(l(s.get(Ee)),nt(e)&&l(s.get(Mr)));break;case"set":nt(e)&&l(s.get(Ee));break}let u=d=>{d.options.onTrigger&&d.options.onTrigger({effect:d,target:e,key:r,type:t,newValue:n,oldValue:i,oldTarget:o}),d.options.scheduler?d.options.scheduler(d):d()};a.forEach(u)}var hu=co("__proto__,__v_isRef,__isVue"),bo=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Qr)),mu=wo(),gu=wo(!0),ui=vu();function vu(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){let n=I(this);for(let o=0,s=this.length;o<s;o++)Q(n,"get",o+"");let i=n[t](...r);return i===-1||i===!1?n[t](...r.map(I)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){du();let n=I(this)[t].apply(this,r);return vo(),n}}),e}function wo(e=!1,t=!1){return function(n,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?Pu:So:t?Ru:_o).get(n))return n;let s=Se(n);if(!e&&s&&Pt(ui,i))return Reflect.get(ui,i,o);let a=Reflect.get(n,i,o);return(Qr(i)?bo.has(i):hu(i))||(e||Q(n,"get",i),t)?a:Fr(a)?!s||!Zr(i)?a.value:a:It(a)?e?Eo(a):on(a):a}}var bu=wu();function wu(e=!1){return function(r,n,i,o){let s=r[n];if(!e&&(i=I(i),s=I(s),!Se(r)&&Fr(s)&&!Fr(i)))return s.value=i,!0;let a=Se(r)&&Zr(n)?Number(n)<r.length:Pt(r,n),l=Reflect.set(r,n,i,o);return r===I(o)&&(a?mo(i,s)&&de(r,"set",n,i,s):de(r,"add",n,i)),l}}function yu(e,t){let r=Pt(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&de(e,"delete",t,void 0,n),i}function xu(e,t){let r=Reflect.has(e,t);return(!Qr(t)||!bo.has(t))&&Q(e,"has",t),r}function _u(e){return Q(e,"iterate",Se(e)?"length":Ee),Reflect.ownKeys(e)}var Su={get:mu,set:bu,deleteProperty:yu,has:xu,ownKeys:_u},Eu={get:gu,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},tn=e=>It(e)?on(e):e,rn=e=>It(e)?Eo(e):e,nn=e=>e,Ft=e=>Reflect.getPrototypeOf(e);function yt(e,t,r=!1,n=!1){e=e.__v_raw;let i=I(e),o=I(t);t!==o&&!r&&Q(i,"get",t),!r&&Q(i,"get",o);let{has:s}=Ft(i),a=n?nn:r?rn:tn;if(s.call(i,t))return a(e.get(t));if(s.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function xt(e,t=!1){let r=this.__v_raw,n=I(r),i=I(e);return e!==i&&!t&&Q(n,"has",e),!t&&Q(n,"has",i),e===i?r.has(e):r.has(e)||r.has(i)}function _t(e,t=!1){return e=e.__v_raw,!t&&Q(I(e),"iterate",Ee),Reflect.get(e,"size",e)}function ci(e){e=I(e);let t=I(this);return Ft(t).has.call(t,e)||(t.add(e),de(t,"add",e,e)),this}function fi(e,t){t=I(t);let r=I(this),{has:n,get:i}=Ft(r),o=n.call(r,e);o?xo(r,n,e):(e=I(e),o=n.call(r,e));let s=i.call(r,e);return r.set(e,t),o?mo(t,s)&&de(r,"set",e,t,s):de(r,"add",e,t),this}function di(e){let t=I(this),{has:r,get:n}=Ft(t),i=r.call(t,e);i?xo(t,r,e):(e=I(e),i=r.call(t,e));let o=n?n.call(t,e):void 0,s=t.delete(e);return i&&de(t,"delete",e,void 0,o),s}function pi(){let e=I(this),t=e.size!==0,r=nt(e)?new Map(e):new Set(e),n=e.clear();return t&&de(e,"clear",void 0,void 0,r),n}function St(e,t){return function(n,i){let o=this,s=o.__v_raw,a=I(s),l=t?nn:e?rn:tn;return!e&&Q(a,"iterate",Ee),s.forEach((u,d)=>n.call(i,l(u),l(d),o))}}function Et(e,t,r){return function(...n){let i=this.__v_raw,o=I(i),s=nt(o),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...n),d=r?nn:t?rn:tn;return!t&&Q(o,"iterate",l?Mr:Ee),{next(){let{value:p,done:c}=u.next();return c?{value:p,done:c}:{value:a?[d(p[0]),d(p[1])]:d(p),done:c}},[Symbol.iterator](){return this}}}}function ue(e){return function(...t){{let r=t[0]?`on key "${t[0]}" `:"";console.warn(`${ho(e)} operation ${r}failed: target is readonly.`,I(this))}return e==="delete"?!1:this}}function Au(){let e={get(o){return yt(this,o)},get size(){return _t(this)},has:xt,add:ci,set:fi,delete:di,clear:pi,forEach:St(!1,!1)},t={get(o){return yt(this,o,!1,!0)},get size(){return _t(this)},has:xt,add:ci,set:fi,delete:di,clear:pi,forEach:St(!1,!0)},r={get(o){return yt(this,o,!0)},get size(){return _t(this,!0)},has(o){return xt.call(this,o,!0)},add:ue("add"),set:ue("set"),delete:ue("delete"),clear:ue("clear"),forEach:St(!0,!1)},n={get(o){return yt(this,o,!0,!0)},get size(){return _t(this,!0)},has(o){return xt.call(this,o,!0)},add:ue("add"),set:ue("set"),delete:ue("delete"),clear:ue("clear"),forEach:St(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Et(o,!1,!1),r[o]=Et(o,!0,!1),t[o]=Et(o,!1,!0),n[o]=Et(o,!0,!0)}),[e,r,t,n]}var[Cu,Tu,Ou,ku]=Au();function yo(e,t){let r=t?e?ku:Ou:e?Tu:Cu;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Pt(r,i)&&i in n?r:n,i,o)}var Lu={get:yo(!1,!1)},Nu={get:yo(!0,!1)};function xo(e,t,r){let n=I(r);if(n!==r&&t.call(e,n)){let i=po(e);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="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 _o=new WeakMap,Ru=new WeakMap,So=new WeakMap,Pu=new WeakMap;function Iu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mu(e){return e.__v_skip||!Object.isExtensible(e)?0:Iu(po(e))}function on(e){return e&&e.__v_isReadonly?e:Ao(e,!1,Su,Lu,_o)}function Eo(e){return Ao(e,!0,Eu,Nu,So)}function Ao(e,t,r,n,i){if(!It(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let o=i.get(e);if(o)return o;let s=Mu(e);if(s===0)return e;let a=new Proxy(e,s===2?n:r);return i.set(e,a),a}function I(e){return e&&I(e.__v_raw)||e}function Fr(e){return Boolean(e&&e.__v_isRef===!0)}Z("nextTick",()=>Xr);Z("dispatch",e=>rt.bind(rt,e));Z("watch",(e,{evaluateLater:t,cleanup:r})=>(n,i)=>{let o=t(n),a=yi(()=>{let l;return o(u=>l=u),l},i);r(a)});Z("store",Jl);Z("data",e=>Ii(e));Z("root",e=>Lt(e));Z("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=at(Fu(e))),e._x_refs_proxy));function Fu(e){let t=[];return ot(e,r=>{r._x_refs&&t.push(r._x_refs)}),t}var br={};function Co(e){return br[e]||(br[e]=0),++br[e]}function Du(e,t){return ot(e,r=>{if(r._x_ids&&r._x_ids[t])return!0})}function $u(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Co(t))}Z("id",(e,{cleanup:t})=>(r,n=null)=>{let i=`${r}${n?`-${n}`:""}`;return Bu(e,i,t,()=>{let o=Du(e,r),s=o?o._x_ids[r]:Co(r);return n?`${r}-${s}-${n}`:`${r}-${s}`})});Rt((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Bu(e,t,r,n){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let i=n();return e._x_id[t]=i,r(()=>{delete e._x_id[t]}),i}Z("el",e=>e);To("Focus","focus","focus");To("Persist","persist","persist");function To(e,t,r){Z(t,n=>Y(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}F("modelable",(e,{expression:t},{effect:r,evaluateLater:n,cleanup:i})=>{let o=n(t),s=()=>{let d;return o(p=>d=p),d},a=n(`${t} = __placeholder`),l=d=>a(()=>{},{scope:{__placeholder:d}}),u=s();l(u),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let d=e._x_model.get,p=e._x_model.set,c=so({get(){return d()},set(f){p(f)}},{get(){return s()},set(f){l(f)}});i(c)})});F("teleport",(e,{modifiers:t,expression:r},{cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&Y("x-teleport can only be used on a <template> tag",e);let i=hi(r),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(a=>{o.addEventListener(a,l=>{l.stopPropagation(),e.dispatchEvent(new l.constructor(l.type,l))})}),st(o,{},e);let s=(a,l,u)=>{u.includes("prepend")?l.parentNode.insertBefore(a,l):u.includes("append")?l.parentNode.insertBefore(a,l.nextSibling):l.appendChild(a)};B(()=>{s(o,i,t),ne(o),o._x_ignore=!0}),e._x_teleportPutBack=()=>{let a=hi(r);B(()=>{s(e._x_teleport,a,t)})},n(()=>o.remove())});var ju=document.createElement("div");function hi(e){let t=Ce(()=>document.querySelector(e),()=>ju)();return t||Y(`Cannot find x-teleport element for selector: "${e}"`),t}var Oo=()=>{};Oo.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,r(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};F("ignore",Oo);F("effect",Ce((e,{expression:t},{effect:r})=>{r(U(e,t))}));function Dr(e,t,r,n){let i=e,o=l=>n(l),s={},a=(l,u)=>d=>u(l,d);if(r.includes("dot")&&(t=Uu(t)),r.includes("camel")&&(t=Hu(t)),r.includes("passive")&&(s.passive=!0),r.includes("capture")&&(s.capture=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("debounce")){let l=r[r.indexOf("debounce")+1]||"invalid-wait",u=kt(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=io(o,u)}if(r.includes("throttle")){let l=r[r.indexOf("throttle")+1]||"invalid-wait",u=kt(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=oo(o,u)}return r.includes("prevent")&&(o=a(o,(l,u)=>{u.preventDefault(),l(u)})),r.includes("stop")&&(o=a(o,(l,u)=>{u.stopPropagation(),l(u)})),r.includes("self")&&(o=a(o,(l,u)=>{u.target===e&&l(u)})),(r.includes("away")||r.includes("outside"))&&(i=document,o=a(o,(l,u)=>{e.contains(u.target)||u.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&l(u))})),r.includes("once")&&(o=a(o,(l,u)=>{l(u),i.removeEventListener(t,o,s)})),o=a(o,(l,u)=>{Wu(t)&&Ku(u,r)||l(u)}),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function Uu(e){return e.replace(/-/g,".")}function Hu(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function kt(e){return!Array.isArray(e)&&!isNaN(e)}function qu(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function Wu(e){return["keydown","keyup"].includes(e)}function Ku(e,t){let r=t.filter(o=>!["window","document","prevent","stop","once","capture"].includes(o));if(r.includes("debounce")){let o=r.indexOf("debounce");r.splice(o,kt((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.includes("throttle")){let o=r.indexOf("throttle");r.splice(o,kt((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&mi(e.key).includes(r[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>r.includes(o));return r=r.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===i.length&&mi(e.key).includes(r[0]))}function mi(e){if(!e)return[];e=qu(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(r=>{if(t[r]===e)return r}).filter(r=>r)}F("model",(e,{modifiers:t,expression:r},{effect:n,cleanup:i})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let s=U(o,r),a;typeof r=="string"?a=U(o,`${r} = __placeholder`):typeof r=="function"&&typeof r()=="string"?a=U(o,`${r()} = __placeholder`):a=()=>{};let l=()=>{let c;return s(f=>c=f),gi(c)?c.get():c},u=c=>{let f;s(m=>f=m),gi(f)?f.set(c):a(()=>{},{scope:{__placeholder:c}})};typeof r=="string"&&e.type==="radio"&&B(()=>{e.hasAttribute("name")||e.setAttribute("name",r)});var d=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let p=fe?()=>{}:Dr(e,d,t,c=>{u(zu(e,t,c,l()))});if(t.includes("fill")&&([void 0,null,""].includes(l())||e.type==="checkbox"&&Array.isArray(l()))&&e.dispatchEvent(new Event(d,{})),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=p,i(()=>e._x_removeModelListeners.default()),e.form){let c=Dr(e.form,"reset",[],f=>{Xr(()=>e._x_model&&e._x_model.set(e.value))});i(()=>c())}e._x_model={get(){return l()},set(c){u(c)}},e._x_forceModelUpdate=c=>{c===void 0&&typeof r=="string"&&r.match(/\./)&&(c=""),window.fromModel=!0,B(()=>eo(e,"value",c)),delete window.fromModel},n(()=>{let c=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(c)})});function zu(e,t,r,n){return B(()=>{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail!==null&&r.detail!==void 0?r.detail:r.target.value;if(e.type==="checkbox")if(Array.isArray(n)){let i=null;return t.includes("number")?i=wr(r.target.value):t.includes("boolean")?i=Ct(r.target.value):i=r.target.value,r.target.checked?n.concat([i]):n.filter(o=>!Vu(o,i))}else return r.target.checked;else return e.tagName.toLowerCase()==="select"&&e.multiple?t.includes("number")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return wr(o)}):t.includes("boolean")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return Ct(o)}):Array.from(r.target.selectedOptions).map(i=>i.value||i.text):t.includes("number")?wr(r.target.value):t.includes("boolean")?Ct(r.target.value):t.includes("trim")?r.target.value.trim():r.target.value})}function wr(e){let t=e?parseFloat(e):null;return Ju(t)?t:e}function Vu(e,t){return e==t}function Ju(e){return!Array.isArray(e)&&!isNaN(e)}function gi(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}F("cloak",e=>queueMicrotask(()=>B(()=>e.removeAttribute(Be("cloak")))));Ai(()=>`[${Be("init")}]`);F("init",Ce((e,{expression:t},{evaluate:r})=>typeof t=="string"?!!t.trim()&&r(t,{},!1):r(t,{},!1)));F("text",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{B(()=>{e.textContent=o})})})});F("html",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{B(()=>{e.innerHTML=o,e._x_ignoreSelf=!0,ne(e),delete e._x_ignoreSelf})})})});Jr(Wi(":",Ki(Be("bind:"))));var ko=(e,{value:t,modifiers:r,expression:n,original:i},{effect:o})=>{if(!t){let a={};Xl(a),U(e,n)(u=>{lo(e,u,i)},{scope:a});return}if(t==="key")return Gu(e,n);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let s=U(e,n);o(()=>s(a=>{a===void 0&&typeof n=="string"&&n.match(/\./)&&(a=""),B(()=>eo(e,t,a,r))}))};ko.inline=(e,{value:t,modifiers:r,expression:n})=>{!t||(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:n,extract:!1})};F("bind",ko);function Gu(e,t){e._x_keyExpression=t}Ei(()=>`[${Be("data")}]`);F("data",(e,{expression:t},{cleanup:r})=>{if(Xu(e))return;t=t===""?"{}":t;let n={};Ar(n,e);let i={};Ql(i,n);let o=_e(e,t,{scope:i});(o===void 0||o===!0)&&(o={}),Ar(o,e);let s=De(o);Mi(s);let a=st(e,s);s.init&&_e(e,s.init),r(()=>{s.destroy&&_e(e,s.destroy),a()})});Rt((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function Xu(e){return fe?Pr?!0:e.hasAttribute("data-has-alpine-state"):!1}F("show",(e,{modifiers:t,expression:r},{effect:n})=>{let i=U(e,r);e._x_doHide||(e._x_doHide=()=>{B(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{B(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let o=()=>{e._x_doHide(),e._x_isShown=!1},s=()=>{e._x_doShow(),e._x_isShown=!0},a=()=>setTimeout(s),l=Nr(p=>p?s():o(),p=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,p,s,o):p?a():o()}),u,d=!0;n(()=>i(p=>{!d&&p===u||(t.includes("immediate")&&(p?a():o()),l(p),u=p,d=!1)}))});F("for",(e,{expression:t},{effect:r,cleanup:n})=>{let i=Qu(t),o=U(e,i.items),s=U(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},r(()=>Yu(e,i,o,s)),n(()=>{Object.values(e._x_lookup).forEach(a=>a.remove()),delete e._x_prevKeys,delete e._x_lookup})});function Yu(e,t,r,n){let i=s=>typeof s=="object"&&!Array.isArray(s),o=e;r(s=>{Zu(s)&&s>=0&&(s=Array.from(Array(s).keys(),g=>g+1)),s===void 0&&(s=[]);let a=e._x_lookup,l=e._x_prevKeys,u=[],d=[];if(i(s))s=Object.entries(s).map(([g,x])=>{let b=vi(t,x,g,s);n(_=>{d.includes(_)&&Y("Duplicate key on x-for",e),d.push(_)},{scope:{index:g,...b}}),u.push(b)});else for(let g=0;g<s.length;g++){let x=vi(t,s[g],g,s);n(b=>{d.includes(b)&&Y("Duplicate key on x-for",e),d.push(b)},{scope:{index:g,...x}}),u.push(x)}let p=[],c=[],f=[],m=[];for(let g=0;g<l.length;g++){let x=l[g];d.indexOf(x)===-1&&f.push(x)}l=l.filter(g=>!f.includes(g));let v="template";for(let g=0;g<d.length;g++){let x=d[g],b=l.indexOf(x);if(b===-1)l.splice(g,0,x),p.push([v,g]);else if(b!==g){let _=l.splice(g,1)[0],O=l.splice(b-1,1)[0];l.splice(g,0,O),l.splice(b,0,_),c.push([_,O])}else m.push(x);v=x}for(let g=0;g<f.length;g++){let x=f[g];a[x]._x_effects&&a[x]._x_effects.forEach(bi),a[x].remove(),a[x]=null,delete a[x]}for(let g=0;g<c.length;g++){let[x,b]=c[g],_=a[x],O=a[b],T=document.createElement("div");B(()=>{O||Y('x-for ":key" is undefined or invalid',o,b,a),O.after(T),_.after(O),O._x_currentIfEl&&O.after(O._x_currentIfEl),T.before(_),_._x_currentIfEl&&_.after(_._x_currentIfEl),T.remove()}),O._x_refreshXForScope(u[d.indexOf(b)])}for(let g=0;g<p.length;g++){let[x,b]=p[g],_=x==="template"?o:a[x];_._x_currentIfEl&&(_=_._x_currentIfEl);let O=u[b],T=d[b],w=document.importNode(o.content,!0).firstElementChild,h=De(O);st(w,h,o),w._x_refreshXForScope=y=>{Object.entries(y).forEach(([C,L])=>{h[C]=L})},B(()=>{_.after(w),Ce(()=>ne(w))()}),typeof T=="object"&&Y("x-for key cannot be an object, it must be a string or an integer",o),a[T]=w}for(let g=0;g<m.length;g++)a[m[g]]._x_refreshXForScope(u[d.indexOf(m[g])]);o._x_prevKeys=d})}function Qu(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(n);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(r,"").trim(),a=s.match(t);return a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function vi(e,t,r,n){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=t[a]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{i[s]=t[s]}):i[e.item]=t,e.index&&(i[e.index]=r),e.collection&&(i[e.collection]=n),i}function Zu(e){return!Array.isArray(e)&&!isNaN(e)}function Lo(){}Lo.inline=(e,{expression:t},{cleanup:r})=>{let n=Lt(e);n._x_refs||(n._x_refs={}),n._x_refs[t]=e,r(()=>delete n._x_refs[t])};F("ref",Lo);F("if",(e,{expression:t},{effect:r,cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&Y("x-if can only be used on a <template> tag",e);let i=U(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return st(a,{},e),B(()=>{e.after(a),Ce(()=>ne(a))()}),e._x_currentIfEl=a,e._x_undoIf=()=>{ce(a,l=>{l._x_effects&&l._x_effects.forEach(bi)}),a.remove(),delete e._x_currentIfEl},a},s=()=>{!e._x_undoIf||(e._x_undoIf(),delete e._x_undoIf)};r(()=>i(a=>{a?o():s()})),n(()=>e._x_undoIf&&e._x_undoIf())});F("id",(e,{expression:t},{evaluate:r})=>{r(t).forEach(i=>$u(e,i))});Rt((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});Jr(Wi("@",Ki(Be("on:"))));F("on",Ce((e,{value:t,modifiers:r,expression:n},{cleanup:i})=>{let o=n?U(e,n):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=Dr(e,t,r,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));Dt("Collapse","collapse","collapse");Dt("Intersect","intersect","intersect");Dt("Focus","trap","focus");Dt("Mask","mask","mask");function Dt(e,t,r){F(t,n=>Y(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}lt.setEvaluator(ji);lt.setReactivityEngine({reactive:on,effect:lu,release:uu,raw:I});var ec=lt,S=ec;function sn(e,t){return t||(t=()=>{}),(r,n=!1)=>{let i=n,o=r,s=e.$wire,a=s.get(o);return S.interceptor((u,d,p,c,f)=>{if(typeof a>"u"){console.error(`Livewire Entangle Error: Livewire property ['${o}'] cannot be found on component: ['${e.name}']`);return}let m=S.entangle({get(){return s.get(r)},set(v){s.set(r,v,i)}},{get(){return d()},set(v){p(v)}});return t(()=>m()),tc(s.get(r))},u=>{Object.defineProperty(u,"live",{get(){return i=!0,u}})})(a)}}function tc(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}var Te=[];function k(e,t){return Te[e]||(Te[e]=[]),Te[e].push(t),()=>{Te[e]=Te[e].filter(r=>r!==t)}}function R(e,...t){let r=Te[e]||[],n=[];for(let i=0;i<r.length;i++){let o=r[i](...t);pr(o)&&n.push(o)}return i=>No(n,i)}async function $t(e,...t){let r=Te[e]||[],n=[];for(let i=0;i<r.length;i++){let o=await r[i](...t);pr(o)&&n.push(o)}return i=>No(n,i)}function No(e,t){let r=t;for(let n=0;n<e.length;n++){let i=e[n](r);i!==void 0&&(r=i)}return r}function an(e){let t=document.createElement("html");t.innerHTML=e,t.querySelectorAll("a").forEach(i=>i.setAttribute("target","_top"));let r=document.getElementById("livewire-error");typeof r<"u"&&r!=null?r.innerHTML="":(r=document.createElement("div"),r.id="livewire-error",r.style.position="fixed",r.style.width="100vw",r.style.height="100vh",r.style.padding="50px",r.style.backgroundColor="rgba(0, 0, 0, .6)",r.style.zIndex=2e5);let n=document.createElement("iframe");n.style.backgroundColor="#17161A",n.style.borderRadius="5px",n.style.width="100%",n.style.height="100%",r.appendChild(n),document.body.prepend(r),document.body.style.overflow="hidden",n.contentWindow.document.open(),n.contentWindow.document.write(t.outerHTML),n.contentWindow.document.close(),r.addEventListener("click",()=>Ro(r)),r.setAttribute("tabindex",0),r.addEventListener("keydown",i=>{i.key==="Escape"&&Ro(r)}),r.focus()}function Ro(e){e.outerHTML="",document.body.style.overflow="visible"}var Bt=class{constructor(){this.commits=new Set}add(t){this.commits.add(t)}delete(t){this.commits.delete(t)}hasCommitFor(t){return!!this.findCommitByComponent(t)}findCommitByComponent(t){for(let[r,n]of this.commits.entries())if(n.component===t)return n}shouldHoldCommit(t){return!t.isolate}empty(){return this.commits.size===0}async send(){this.prepare(),await Po(this)}prepare(){this.commits.forEach(t=>t.prepare())}payload(){let t=[],r=[],n=[];return this.commits.forEach(s=>{let[a,l,u]=s.toRequestPayload();t.push(a),r.push(l),n.push(u)}),[t,s=>r.forEach(a=>a(s.shift())),()=>n.forEach(s=>s())]}};var jt=class{constructor(t){this.component=t,this.isolate=!1,this.calls=[],this.receivers=[],this.resolvers=[]}addResolver(t){this.resolvers.push(t)}addCall(t,r,n){this.calls.push({path:"",method:t,params:r,handleReturn(i){n(i)}})}prepare(){R("commit.prepare",{component:this.component})}toRequestPayload(){let t=Ge(this.component.canonical,this.component.ephemeral),r=this.component.mergeQueuedUpdates(t),n={snapshot:this.component.snapshotEncoded,updates:r,calls:this.calls.map(f=>({path:f.path,method:f.method,params:f.params}))},i=[],o=[],s=[],a=f=>i.forEach(m=>m(f)),l=()=>o.forEach(f=>f()),u=()=>s.forEach(f=>f()),d=R("commit",{component:this.component,commit:n,succeed:f=>{i.push(f)},fail:f=>{o.push(f)},respond:f=>{s.push(f)}});return[n,f=>{let{snapshot:m,effects:v}=f;if(u(),this.component.mergeNewSnapshot(m,v,r),this.component.processEffects(this.component.effects),v.returns){let x=v.returns;this.calls.map(({handleReturn:_})=>_).forEach((_,O)=>{_(x[O])})}let g=JSON.parse(m);d({snapshot:g,effects:v}),this.resolvers.forEach(x=>x()),a(f)},()=>{u(),l()}]}};var Ut=class{constructor(){this.commits=new Set,this.pools=new Set}add(t){let r=this.findCommitOr(t,()=>{let n=new jt(t);return this.commits.add(n),n});return rc(r,()=>{this.findPoolWithComponent(r.component)||this.createAndSendNewPool()}),r}findCommitOr(t,r){for(let[n,i]of this.commits.entries())if(i.component===t)return i;return r()}findPoolWithComponent(t){for(let[r,n]of this.pools.entries())if(n.hasCommitFor(t))return n}createAndSendNewPool(){R("commit.pooling",{commits:this.commits});let t=this.corraleCommitsIntoPools();this.commits.clear(),R("commit.pooled",{pools:t}),t.forEach(r=>{r.empty()||(this.pools.add(r),r.send().then(()=>{this.pools.delete(r),this.sendAnyQueuedCommits()}))})}corraleCommitsIntoPools(){let t=new Set;for(let[r,n]of this.commits.entries()){let i=!1;if(t.forEach(o=>{o.shouldHoldCommit(n)&&(o.add(n),i=!0)}),!i){let o=new Bt;o.add(n),t.add(o)}}return t}sendAnyQueuedCommits(){this.commits.size>0&&this.createAndSendNewPool()}},ln=new WeakMap;function rc(e,t){ln.has(e)||ln.set(e,setTimeout(()=>{t(),ln.delete(e)},5))}var Io=new Ut;async function un(e){let t=Io.add(e),r=new Promise(n=>{t.addResolver(n)});return r.commit=t,r}async function Mo(e,t,r){let n=Io.add(e),i=new Promise(o=>{n.addCall(t,r,s=>o(s))});return i.commit=n,i}async function Po(e){let[t,r,n]=e.payload(),i={method:"POST",body:JSON.stringify({_token:bt(),components:t}),headers:{"Content-type":"application/json","X-Livewire":""}},o=[],s=[],a=[],l=b=>o.forEach(_=>_(b)),u=b=>s.forEach(_=>_(b)),d=b=>a.forEach(_=>_(b)),p=R("request.profile",i),c=Yn();R("request",{url:c,options:i,payload:i.body,respond:b=>a.push(b),succeed:b=>o.push(b),fail:b=>s.push(b)});let f;try{f=await fetch(c,i)}catch{p({content:"{}",failed:!0}),n(),u({status:503,content:null,preventDefault:()=>{}});return}let m={status:f.status,response:f};d(m),f=m.response;let v=await f.text();if(!f.ok){p({content:"{}",failed:!0});let b=!1;return n(),u({status:f.status,content:v,preventDefault:()=>b=!0}),b?void 0:(f.status===419&&nc(),ic(v))}if(f.redirected&&(window.location.href=f.url),wt(v)){let b;[b,v]=Qn(v),an(b),p({content:"{}",failed:!0})}else p({content:v,failed:!1});let{components:g,assets:x}=JSON.parse(v);await $t("payload.intercept",{components:g,assets:x}),await r(g),l({status:f.status,json:JSON.parse(v)})}function nc(){confirm(`This page has expired.
Would you like to refresh the page?`)&&window.location.reload()}function ic(e){an(e)}var fn={},$o;function D(e,t,r=null){fn[e]=t}function oc(e){$o=e}var Fo={on:"$on",el:"$el",id:"$id",get:"$get",set:"$set",call:"$call",commit:"$commit",watch:"$watch",entangle:"$entangle",dispatch:"$dispatch",dispatchTo:"$dispatchTo",dispatchSelf:"$dispatchSelf",upload:"$upload",uploadMultiple:"$uploadMultiple",removeUpload:"$removeUpload",cancelUpload:"$cancelUpload"};function Bo(e,t){return new Proxy({},{get(r,n){if(n==="__instance")return e;if(n in Fo)return Do(e,Fo[n]);if(n in fn)return Do(e,n);if(n in t)return t[n];if(!["then"].includes(n))return sc(e)(n)},set(r,n,i){return n in t&&(t[n]=i),!0}})}function Do(e,t){return fn[t](e)}function sc(e){return $o(e)}S.magic("wire",(e,{cleanup:t})=>{let r;return new Proxy({},{get(n,i){return r||(r=z(e)),["$entangle","entangle"].includes(i)?sn(r,t):r.$wire[i]},set(n,i,o){return r||(r=z(e)),r.$wire[i]=o,!0}})});D("__instance",e=>e);D("$get",e=>(t,r=!0)=>W(r?e.reactive:e.ephemeral,t));D("$el",e=>e.el);D("$id",e=>e.id);D("$set",e=>async(t,r,n=!0)=>(ve(e.reactive,t,r),n?(e.queueUpdate(t,r),await un(e)):Promise.resolve()));D("$call",e=>async(t,...r)=>await e.$wire[t](...r));D("$entangle",e=>(t,r=!1)=>sn(e)(t,r));D("$toggle",e=>(t,r=!0)=>e.$wire.set(t,!e.$wire.get(t),r));D("$watch",e=>(t,r)=>{let n=!0,i;S.effect(()=>{let o=W(e.reactive,t);JSON.stringify(o),n?i=o:queueMicrotask(()=>{r(o,i),i=o}),n=!1})});D("$refresh",e=>e.$wire.$commit);D("$commit",e=>async()=>await un(e));D("$on",e=>(...t)=>Uo(e,...t));D("$dispatch",e=>(...t)=>Ht(e,...t));D("$dispatchSelf",e=>(...t)=>ie(e,...t));D("$dispatchTo",()=>(...e)=>Ue(...e));D("$upload",e=>(...t)=>ei(e,...t));D("$uploadMultiple",e=>(...t)=>ti(e,...t));D("$removeUpload",e=>(...t)=>ri(e,...t));D("$cancelUpload",e=>(...t)=>ni(e,...t));var cn=new WeakMap;D("$parent",e=>{if(cn.has(e))return cn.get(e).$wire;let t=z(e.el.parentElement);return cn.set(e,t),t.$wire});var je=new WeakMap;function jo(e,t,r){je.has(e)||je.set(e,{});let n=je.get(e);n[t]=r,je.set(e,n)}oc(e=>t=>async(...r)=>{if(r.length===1&&r[0]instanceof Event&&(r=[]),je.has(e)){let n=je.get(e);if(typeof n[t]=="function")return n[t](r)}return await Mo(e,t,r)});var qt=class{constructor(t){if(t.__livewire)throw"Component already initialized";if(t.__livewire=this,this.el=t,this.id=t.getAttribute("wire:id"),this.__livewireId=this.id,this.snapshotEncoded=t.getAttribute("wire:snapshot"),this.snapshot=JSON.parse(this.snapshotEncoded),!this.snapshot)throw"Snapshot missing on Livewire component with id: "+this.id;this.name=this.snapshot.memo.name,this.effects=JSON.parse(t.getAttribute("wire:effects")),this.originalEffects=le(this.effects),this.canonical=be(le(this.snapshot.data)),this.ephemeral=be(le(this.snapshot.data)),this.reactive=Alpine.reactive(this.ephemeral),this.queuedUpdates={},this.$wire=Bo(this,this.reactive),this.cleanups=[],this.processEffects(this.effects)}mergeNewSnapshot(t,r,n={}){let i=JSON.parse(t),o=le(this.canonical),s=this.applyUpdates(o,n),a=be(le(i.data)),l=Ge(s,a);this.snapshotEncoded=t,this.snapshot=i,this.effects=r,this.canonical=be(le(i.data));let u=be(le(i.data));return Object.entries(l).forEach(([d,p])=>{let c=d.split(".")[0];this.reactive[c]=u[c]}),l}queueUpdate(t,r){this.queuedUpdates[t]=r}mergeQueuedUpdates(t){return Object.entries(this.queuedUpdates).forEach(([r,n])=>{Object.entries(t).forEach(([i,o])=>{i.startsWith(n)&&delete t[i]}),t[r]=n}),this.queuedUpdates=[],t}applyUpdates(t,r){for(let n in r)ve(t,n,r[n]);return t}replayUpdate(t,r){let n={...this.effects,html:r};this.mergeNewSnapshot(JSON.stringify(t),n),this.processEffects({html:r})}processEffects(t){R("effects",this,t),R("effect",{component:this,effects:t,cleanup:r=>this.addCleanup(r)})}get children(){let t=this.snapshot.memo;return Object.values(t.children).map(n=>n[1]).map(n=>Ho(n))}inscribeSnapshotAndEffectsOnElement(){let t=this.el;t.setAttribute("wire:snapshot",this.snapshotEncoded);let r=this.originalEffects.listeners?{listeners:this.originalEffects.listeners}:{};this.originalEffects.url&&(r.url=this.originalEffects.url),t.setAttribute("wire:effects",JSON.stringify(r))}addCleanup(t){this.cleanups.push(t)}cleanup(){for(delete this.el.__livewire;this.cleanups.length>0;)this.cleanups.pop()()}};var oe={};function qo(e){let t=new qt(e);if(oe[t.id])throw"Component already registered";return R("component.init",{component:t,cleanup:n=>t.addCleanup(n)}),oe[t.id]=t,t}function Wo(e){let t=oe[e];!t||(t.cleanup(),delete oe[e])}function Ho(e){let t=oe[e];if(!t)throw"Component not found: "+e;return t}function z(e,t=!0){let r=Alpine.findClosest(e,n=>n.__livewire);if(!r){if(t)throw"Could not find Livewire component in DOM tree";return}return r.__livewire}function dn(e){return Object.values(oe).filter(t=>e==t.name)}function Ko(e){return dn(e).map(t=>t.$wire)}function zo(e){let t=oe[e];return t&&t.$wire}function Vo(){return Object.values(oe)[0].$wire}function Jo(){return Object.values(oe)}function Ht(e,t,r){Wt(e.el,t,r)}function Go(e,t){Wt(window,e,t)}function ie(e,t,r){Wt(e.el,t,r,!1)}function Ue(e,t,r){dn(e).forEach(i=>{Wt(i.el,t,r,!1)})}function Uo(e,t,r){e.el.addEventListener(t,n=>{r(n.detail)})}function Xo(e,t){let r=n=>{!n.__livewire||t(n.detail)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}}function Wt(e,t,r,n=!0){let i=new CustomEvent(t,{bubbles:n,detail:r});i.__livewire={name:t,params:r,receivedBy:[]},e.dispatchEvent(i)}function He(e){return e.match(new RegExp("wire:"))}function Kt(e,t){let[r,...n]=t.replace(new RegExp("wire:"),"").split(".");return new hn(r,n,t,e)}function M(e,t){k("directive.init",({el:r,component:n,directive:i,cleanup:o})=>{i.value===e&&t({el:r,directive:i,component:n,cleanup:o})})}function pe(e){return new pn(e)}var pn=class{constructor(t){this.el=t,this.directives=this.extractTypeModifiersAndValue()}all(){return this.directives}has(t){return this.directives.map(r=>r.value).includes(t)}missing(t){return!this.has(t)}get(t){return this.directives.find(r=>r.value===t)}extractTypeModifiersAndValue(){return Array.from(this.el.getAttributeNames().filter(t=>He(t)).map(t=>Kt(this.el,t)))}},hn=class{constructor(t,r,n,i){this.rawName=this.raw=n,this.el=i,this.eventContext,this.value=t,this.modifiers=r,this.expression=this.el.getAttribute(this.rawName)}get method(){let{method:t}=this.parseOutMethodAndParams(this.expression);return t}get params(){let{params:t}=this.parseOutMethodAndParams(this.expression);return t}parseOutMethodAndParams(t){let r=t,n=[],i=r.match(/(.*?)\((.*)\)/s);return i&&(r=i[1],n=new Function("$event",`return (function () {
            })(${i[2]})`)(this.eventContext)),{method:r,params:n}}};function ac(e){e.directive("collapse",t),t.inline=(r,{modifiers:n})=>{!n.includes("min")||(r._x_doShow=()=>{},r._x_doHide=()=>{})};function t(r,{modifiers:n}){let i=Yo(n,"duration",250)/1e3,o=Yo(n,"min",0),s=!n.includes("min");r._x_isShown||(r.style.height=`${o}px`),!r._x_isShown&&s&&(r.hidden=!0),r._x_isShown||(r.style.overflow="hidden");let a=(u,d)=>{let p=e.setStyles(u,d);return d.height?()=>{}:p},l={transitionProperty:"height",transitionDuration:`${i}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};r._x_transition={in(u=()=>{},d=()=>{}){s&&(r.hidden=!1),s&&(r.style.display=null);let p=r.getBoundingClientRect().height;r.style.height="auto";let c=r.getBoundingClientRect().height;p===c&&(p=o),e.transition(r,e.setStyles,{during:l,start:{height:p+"px"},end:{height:c+"px"}},()=>r._x_isShown=!0,()=>{r.getBoundingClientRect().height==c&&(r.style.overflow=null)})},out(u=()=>{},d=()=>{}){let p=r.getBoundingClientRect().height;e.transition(r,a,{during:l,start:{height:p+"px"},end:{height:o+"px"}},()=>r.style.overflow="hidden",()=>{r._x_isShown=!1,r.style.height==`${o}px`&&s&&(r.style.display="none",r.hidden=!0)})}}}}function Yo(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n)return r;if(t==="duration"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}if(t==="min"){let i=n.match(/([0-9]+)px/);if(i)return i[1]}return n}var Qo=ac;var ss=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Gt=ss.join(","),as=typeof Element>"u",Oe=as?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,mn=!as&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},ls=function(t,r,n){var i=Array.prototype.slice.apply(t.querySelectorAll(Gt));return r&&Oe.call(t,Gt)&&i.unshift(t),i=i.filter(n),i},us=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,u=e(l,!0,n);n.flatten?i.push.apply(i,u):i.push({scope:s,candidates:u})}else{var d=Oe.call(s,Gt);d&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var p=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),c=!n.shadowRootFilter||n.shadowRootFilter(s);if(p&&c){var f=e(p===!0?s.children:p.children,!0,n);n.flatten?i.push.apply(i,f):i.push({scope:s,candidates:f})}else o.unshift.apply(o,s.children)}}return i},cs=function(t,r){return t.tabIndex<0&&(r||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},lc=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},fs=function(t){return t.tagName==="INPUT"},uc=function(t){return fs(t)&&t.type==="hidden"},cc=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},fc=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},dc=function(t){if(!t.name)return!0;var r=t.form||mn(t),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(t.name));else try{i=n(t.name)}catch(s){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",s.message),!1}var o=fc(i,t.form);return!o||o===t},pc=function(t){return fs(t)&&t.type==="radio"},hc=function(t){return pc(t)&&!dc(t)},Zo=function(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},mc=function(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=Oe.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(Oe.call(s,"details:not([open]) *"))return!0;var a=mn(t).host,l=a?.ownerDocument.contains(a)||t.ownerDocument.contains(t);if(!n||n==="full"){if(typeof i=="function"){for(var u=t;t;){var d=t.parentElement,p=mn(t);if(d&&!d.shadowRoot&&i(d)===!0)return Zo(t);t.assignedSlot?t=t.assignedSlot:!d&&p!==t.ownerDocument?t=p.host:t=d}t=u}if(l)return!t.getClientRects().length}else if(n==="non-zero-area")return Zo(t);return!1},gc=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return Oe.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},Xt=function(t,r){return!(r.disabled||uc(r)||mc(r,t)||cc(r)||gc(r))},gn=function(t,r){return!(hc(r)||cs(r)<0||!Xt(t,r))},vc=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},bc=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scope,a=s?i.scope:i,l=cs(a,s),u=s?e(i.candidates):a;l===0?s?r.push.apply(r,u):r.push(a):n.push({documentOrder:o,tabIndex:l,item:i,isScope:s,content:u})}),n.sort(lc).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},wc=function(t,r){r=r||{};var n;return r.getShadowRoot?n=us([t],r.includeContainer,{filter:gn.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:vc}):n=ls(t,r.includeContainer,gn.bind(null,r)),bc(n)},ds=function(t,r){r=r||{};var n;return r.getShadowRoot?n=us([t],r.includeContainer,{filter:Xt.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=ls(t,r.includeContainer,Xt.bind(null,r)),n},zt=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Oe.call(t,Gt)===!1?!1:gn(r,t)},yc=ss.concat("iframe").join(","),Jt=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Oe.call(t,yc)===!1?!1:Xt(r,t)};function es(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ts(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?es(Object(r),!0).forEach(function(n){xc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):es(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var rs=function(){var e=[];return{activateTrap:function(r){if(e.length>0){var n=e[e.length-1];n!==r&&n.pause()}var i=e.indexOf(r);i===-1||e.splice(i,1),e.push(r)},deactivateTrap:function(r){var n=e.indexOf(r);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}}}(),_c=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Sc=function(t){return t.key==="Escape"||t.key==="Esc"||t.keyCode===27},Ec=function(t){return t.key==="Tab"||t.keyCode===9},ns=function(t){return setTimeout(t,0)},is=function(t,r){var n=-1;return t.every(function(i,o){return r(i)?(n=o,!1):!0}),n},ut=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,n):t},Vt=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Ac=function(t,r){var n=r?.document||document,i=ts({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},r),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s,a=function(w,h,y){return w&&w[h]!==void 0?w[h]:i[y||h]},l=function(w){return o.containerGroups.findIndex(function(h){var y=h.container,C=h.tabbableNodes;return y.contains(w)||C.find(function(L){return L===w})})},u=function(w){var h=i[w];if(typeof h=="function"){for(var y=arguments.length,C=new Array(y>1?y-1:0),L=1;L<y;L++)C[L-1]=arguments[L];h=h.apply(void 0,C)}if(h===!0&&(h=void 0),!h){if(h===void 0||h===!1)return h;throw new Error("`".concat(w,"` was specified but was not a node, or did not return a node"))}var A=h;if(typeof h=="string"&&(A=n.querySelector(h),!A))throw new Error("`".concat(w,"` as selector refers to no known node"));return A},d=function(){var w=u("initialFocus");if(w===!1)return!1;if(w===void 0)if(l(n.activeElement)>=0)w=n.activeElement;else{var h=o.tabbableGroups[0],y=h&&h.firstTabbableNode;w=y||u("fallbackFocus")}if(!w)throw new Error("Your focus-trap needs to have at least one focusable element");return w},p=function(){if(o.containerGroups=o.containers.map(function(w){var h=wc(w,i.tabbableOptions),y=ds(w,i.tabbableOptions);return{container:w,tabbableNodes:h,focusableNodes:y,firstTabbableNode:h.length>0?h[0]:null,lastTabbableNode:h.length>0?h[h.length-1]:null,nextTabbableNode:function(L){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,E=y.findIndex(function(j){return j===L});if(!(E<0))return A?y.slice(E+1).find(function(j){return zt(j,i.tabbableOptions)}):y.slice(0,E).reverse().find(function(j){return zt(j,i.tabbableOptions)})}}}),o.tabbableGroups=o.containerGroups.filter(function(w){return w.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},c=function T(w){if(w!==!1&&w!==n.activeElement){if(!w||!w.focus){T(d());return}w.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=w,_c(w)&&w.select()}},f=function(w){var h=u("setReturnFocus",w);return h||(h===!1?!1:w)},m=function(w){var h=Vt(w);if(!(l(h)>=0)){if(ut(i.clickOutsideDeactivates,w)){s.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Jt(h,i.tabbableOptions)});return}ut(i.allowOutsideClick,w)||w.preventDefault()}},v=function(w){var h=Vt(w),y=l(h)>=0;y||h instanceof Document?y&&(o.mostRecentlyFocusedNode=h):(w.stopImmediatePropagation(),c(o.mostRecentlyFocusedNode||d()))},g=function(w){var h=Vt(w);p();var y=null;if(o.tabbableGroups.length>0){var C=l(h),L=C>=0?o.containerGroups[C]:void 0;if(C<0)w.shiftKey?y=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:y=o.tabbableGroups[0].firstTabbableNode;else if(w.shiftKey){var A=is(o.tabbableGroups,function(H){var ge=H.firstTabbableNode;return h===ge});if(A<0&&(L.container===h||Jt(h,i.tabbableOptions)&&!zt(h,i.tabbableOptions)&&!L.nextTabbableNode(h,!1))&&(A=C),A>=0){var E=A===0?o.tabbableGroups.length-1:A-1,j=o.tabbableGroups[E];y=j.lastTabbableNode}}else{var P=is(o.tabbableGroups,function(H){var ge=H.lastTabbableNode;return h===ge});if(P<0&&(L.container===h||Jt(h,i.tabbableOptions)&&!zt(h,i.tabbableOptions)&&!L.nextTabbableNode(h))&&(P=C),P>=0){var $=P===o.tabbableGroups.length-1?0:P+1,q=o.tabbableGroups[$];y=q.firstTabbableNode}}}else y=u("fallbackFocus");y&&(w.preventDefault(),c(y))},x=function(w){if(Sc(w)&&ut(i.escapeDeactivates,w)!==!1){w.preventDefault(),s.deactivate();return}if(Ec(w)){g(w);return}},b=function(w){var h=Vt(w);l(h)>=0||ut(i.clickOutsideDeactivates,w)||ut(i.allowOutsideClick,w)||(w.preventDefault(),w.stopImmediatePropagation())},_=function(){if(!!o.active)return rs.activateTrap(s),o.delayInitialFocusTimer=i.delayInitialFocus?ns(function(){c(d())}):c(d()),n.addEventListener("focusin",v,!0),n.addEventListener("mousedown",m,{capture:!0,passive:!1}),n.addEventListener("touchstart",m,{capture:!0,passive:!1}),n.addEventListener("click",b,{capture:!0,passive:!1}),n.addEventListener("keydown",x,{capture:!0,passive:!1}),s},O=function(){if(!!o.active)return n.removeEventListener("focusin",v,!0),n.removeEventListener("mousedown",m,!0),n.removeEventListener("touchstart",m,!0),n.removeEventListener("click",b,!0),n.removeEventListener("keydown",x,!0),s};return s={get active(){return o.active},get paused(){return o.paused},activate:function(w){if(o.active)return this;var h=a(w,"onActivate"),y=a(w,"onPostActivate"),C=a(w,"checkCanFocusTrap");C||p(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=n.activeElement,h&&h();var L=function(){C&&p(),_(),y&&y()};return C?(C(o.containers.concat()).then(L,L),this):(L(),this)},deactivate:function(w){if(!o.active)return this;var h=ts({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},w);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,O(),o.active=!1,o.paused=!1,rs.deactivateTrap(s);var y=a(h,"onDeactivate"),C=a(h,"onPostDeactivate"),L=a(h,"checkCanReturnFocus"),A=a(h,"returnFocus","returnFocusOnDeactivate");y&&y();var E=function(){ns(function(){A&&c(f(o.nodeFocusedBeforeActivation)),C&&C()})};return A&&L?(L(f(o.nodeFocusedBeforeActivation)).then(E,E),this):(E(),this)},pause:function(){return o.paused||!o.active?this:(o.paused=!0,O(),this)},unpause:function(){return!o.paused||!o.active?this:(o.paused=!1,p(),_(),this)},updateContainerElements:function(w){var h=[].concat(w).filter(Boolean);return o.containers=h.map(function(y){return typeof y=="string"?n.querySelector(y):y}),o.active&&p(),this}},s.updateContainerElements(t),s};function Cc(e){let t,r;window.addEventListener("focusin",()=>{t=r,r=document.activeElement}),e.magic("focus",n=>{let i=n;return{__noscroll:!1,__wrapAround:!1,within(o){return i=o,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(o){return Jt(o)},previouslyFocused(){return t},lastFocused(){return t},focused(){return r},focusables(){return Array.isArray(i)?i:ds(i,{displayCheck:"none"})},all(){return this.focusables()},isFirst(o){let s=this.all();return s[0]&&s[0].isSameNode(o)},isLast(o){let s=this.all();return s.length&&s.slice(-1)[0].isSameNode(o)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let o=this.all(),s=document.activeElement;if(o.indexOf(s)!==-1)return this.__wrapAround&&o.indexOf(s)===o.length-1?o[0]:o[o.indexOf(s)+1]},getPrevious(){let o=this.all(),s=document.activeElement;if(o.indexOf(s)!==-1)return this.__wrapAround&&o.indexOf(s)===0?o.slice(-1)[0]:o[o.indexOf(s)-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(o){!o||setTimeout(()=>{o.hasAttribute("tabindex")||o.setAttribute("tabindex","0"),o.focus({preventScroll:this.__noscroll})})}}}),e.directive("trap",e.skipDuringClone((n,{expression:i,modifiers:o},{effect:s,evaluateLater:a,cleanup:l})=>{let u=a(i),d=!1,p={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>n};if(o.includes("noautofocus"))p.initialFocus=!1;else{let g=n.querySelector("[autofocus]");g&&(p.initialFocus=g)}let c=Ac(n,p),f=()=>{},m=()=>{},v=()=>{f(),f=()=>{},m(),m=()=>{},c.deactivate({returnFocus:!o.includes("noreturn")})};s(()=>u(g=>{d!==g&&(g&&!d&&(o.includes("noscroll")&&(m=Tc()),o.includes("inert")&&(f=os(n)),setTimeout(()=>{c.activate()},15)),!g&&d&&v(),d=!!g)})),l(v)},(n,{expression:i,modifiers:o},{evaluate:s})=>{o.includes("inert")&&s(i)&&os(n)}))}function os(e){let t=[];return ps(e,r=>{let n=r.hasAttribute("aria-hidden");r.setAttribute("aria-hidden","true"),t.push(()=>n||r.removeAttribute("aria-hidden"))}),()=>{for(;t.length;)t.pop()()}}function ps(e,t){e.isSameNode(document.body)||!e.parentNode||Array.from(e.parentNode.children).forEach(r=>{r.isSameNode(e)?ps(e.parentNode,t):t(r)})}function Tc(){let e=document.documentElement.style.overflow,t=document.documentElement.style.paddingRight,r=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${r}px`,()=>{document.documentElement.style.overflow=e,document.documentElement.style.paddingRight=t}}var hs=Cc;function Oc(e){let t=()=>{let r,n;try{n=localStorage}catch(i){console.error(i),console.warn("Alpine: $persist is using temporary storage since localStorage is unavailable.");let o=new Map;n={getItem:o.get.bind(o),setItem:o.set.bind(o)}}return e.interceptor((i,o,s,a,l)=>{let u=r||`_x_${a}`,d=ms(u,n)?gs(u,n):i;return s(d),e.effect(()=>{let p=o();vs(u,p,n),s(p)}),d},i=>{i.as=o=>(r=o,i),i.using=o=>(n=o,i)})};Object.defineProperty(e,"$persist",{get:()=>t()}),e.magic("persist",t),e.persist=(r,{get:n,set:i},o=localStorage)=>{let s=ms(r,o)?gs(r,o):n();i(s),e.effect(()=>{let a=n();vs(r,a,o),i(a)})}}function ms(e,t){return t.getItem(e)!==null}function gs(e,t){return JSON.parse(t.getItem(e,t))}function vs(e,t,r){r.setItem(e,JSON.stringify(t))}var bs=Oc;function kc(e){e.directive("intersect",e.skipDuringClone((t,{value:r,expression:n,modifiers:i},{evaluateLater:o,cleanup:s})=>{let a=o(n),l={rootMargin:Rc(i),threshold:Lc(i)},u=new IntersectionObserver(d=>{d.forEach(p=>{p.isIntersecting!==(r==="leave")&&(a(),i.includes("once")&&u.disconnect())})},l);u.observe(t),s(()=>{u.disconnect()})}))}function Lc(e){if(e.includes("full"))return .99;if(e.includes("half"))return .5;if(!e.includes("threshold"))return 0;let t=e[e.indexOf("threshold")+1];return t==="100"?1:t==="0"?0:Number(`.${t}`)}function Nc(e){let t=e.match(/^(-?[0-9]+)(px|%)?$/);return t?t[1]+(t[2]||"px"):void 0}function Rc(e){let t="margin",r="0px 0px 0px 0px",n=e.indexOf(t);if(n===-1)return r;let i=[];for(let o=1;o<5;o++)i.push(Nc(e[n+o]||""));return i=i.filter(o=>o!==void 0),i.length?i.join(" ").trim():r}var ws=kc;var Qt=Math.min,ke=Math.max,Zt=Math.round,Yt=Math.floor,he=e=>({x:e,y:e}),Pc={left:"right",right:"left",bottom:"top",top:"bottom"},Ic={start:"end",end:"start"};function ys(e,t,r){return ke(e,Qt(t,r))}function rr(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function nr(e){return e.split("-")[1]}function Ts(e){return e==="x"?"y":"x"}function Os(e){return e==="y"?"height":"width"}function ir(e){return["top","bottom"].includes(Le(e))?"y":"x"}function ks(e){return Ts(ir(e))}function Mc(e,t,r){r===void 0&&(r=!1);let n=nr(e),i=ks(e),o=Os(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=er(s)),[s,er(s)]}function Fc(e){let t=er(e);return[vn(e),t,vn(t)]}function vn(e){return e.replace(/start|end/g,t=>Ic[t])}function Dc(e,t,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:s;default:return[]}}function $c(e,t,r,n){let i=nr(e),o=Dc(Le(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(vn)))),o}function er(e){return e.replace(/left|right|bottom|top/g,t=>Pc[t])}function Bc(e){return{top:0,right:0,bottom:0,left:0,...e}}function jc(e){return typeof e!="number"?Bc(e):{top:e,right:e,bottom:e,left:e}}function tr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function xs(e,t,r){let{reference:n,floating:i}=e,o=ir(t),s=ks(t),a=Os(s),l=Le(t),u=o==="y",d=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2,c=n[a]/2-i[a]/2,f;switch(l){case"top":f={x:d,y:n.y-i.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:p};break;case"left":f={x:n.x-i.width,y:p};break;default:f={x:n.x,y:n.y}}switch(nr(t)){case"start":f[s]-=c*(r&&u?-1:1);break;case"end":f[s]+=c*(r&&u?-1:1);break}return f}var Uc=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:p}=xs(u,n,l),c=n,f={},m=0;for(let v=0;v<a.length;v++){let{name:g,fn:x}=a[v],{x:b,y:_,data:O,reset:T}=await x({x:d,y:p,initialPlacement:n,placement:c,strategy:i,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});if(d=b??d,p=_??p,f={...f,[g]:{...f[g],...O}},T&&m<=50){m++,typeof T=="object"&&(T.placement&&(c=T.placement),T.rects&&(u=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:d,y:p}=xs(u,c,l)),v=-1;continue}}return{x:d,y:p,placement:c,strategy:i,middlewareData:f}};async function Ls(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:c=!1,padding:f=0}=rr(t,e),m=jc(f),g=a[c?p==="floating"?"reference":"floating":p],x=tr(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(g)))==null||r?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),b=p==="floating"?{...s.floating,x:n,y:i}:s.reference,_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),O=await(o.isElement==null?void 0:o.isElement(_))?await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1}:{x:1,y:1},T=tr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:_,strategy:l}):b);return{top:(x.top-T.top+m.top)/O.y,bottom:(T.bottom-x.bottom+m.bottom)/O.y,left:(x.left-T.left+m.left)/O.x,right:(T.right-x.right+m.right)/O.x}}var Hc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:c,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...g}=rr(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let x=Le(i),b=Le(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),O=c||(b||!v?[er(a)]:Fc(a));!c&&m!=="none"&&O.push(...$c(a,v,m,_));let T=[a,...O],w=await Ls(t,g),h=[],y=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&h.push(w[x]),p){let E=Mc(i,s,_);h.push(w[E[0]],w[E[1]])}if(y=[...y,{placement:i,overflows:h}],!h.every(E=>E<=0)){var C,L;let E=(((C=o.flip)==null?void 0:C.index)||0)+1,j=T[E];if(j)return{data:{index:E,overflows:y},reset:{placement:j}};let P=(L=y.filter($=>$.overflows[0]<=0).sort(($,q)=>$.overflows[1]-q.overflows[1])[0])==null?void 0:L.placement;if(!P)switch(f){case"bestFit":{var A;let $=(A=y.map(q=>[q.placement,q.overflows.filter(H=>H>0).reduce((H,ge)=>H+ge,0)]).sort((q,H)=>q[1]-H[1])[0])==null?void 0:A[0];$&&(P=$);break}case"initialPlacement":P=a;break}if(i!==P)return{reset:{placement:P}}}return{}}}};async function qc(e,t){let{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Le(r),a=nr(r),l=ir(r)==="y",u=["left","top"].includes(s)?-1:1,d=o&&l?-1:1,p=rr(t,e),{mainAxis:c,crossAxis:f,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),l?{x:f*d,y:c*u}:{x:c*u,y:f*d}}var Wc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){let{x:r,y:n}=t,i=await qc(t,e);return{x:r+i.x,y:n+i.y,data:i}}}},Kc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:g=>{let{x,y:b}=g;return{x,y:b}}},...l}=rr(e,t),u={x:r,y:n},d=await Ls(t,l),p=ir(Le(i)),c=Ts(p),f=u[c],m=u[p];if(o){let g=c==="y"?"top":"left",x=c==="y"?"bottom":"right",b=f+d[g],_=f-d[x];f=ys(b,f,_)}if(s){let g=p==="y"?"top":"left",x=p==="y"?"bottom":"right",b=m+d[g],_=m-d[x];m=ys(b,m,_)}let v=a.fn({...t,[c]:f,[p]:m});return{...v,data:{x:v.x-r,y:v.y-n}}}}};function me(e){return Ns(e)?(e.nodeName||"").toLowerCase():"#document"}function K(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ae(e){var t;return(t=(Ns(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ns(e){return e instanceof Node||e instanceof K(e).Node}function se(e){return e instanceof Element||e instanceof K(e).Element}function te(e){return e instanceof HTMLElement||e instanceof K(e).HTMLElement}function _s(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof K(e).ShadowRoot}function ft(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function zc(e){return["table","td","th"].includes(me(e))}function bn(e){let t=wn(),r=V(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Vc(e){let t=We(e);for(;te(t)&&!or(t);){if(bn(t))return t;t=We(t)}return null}function wn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function or(e){return["html","body","#document"].includes(me(e))}function V(e){return K(e).getComputedStyle(e)}function sr(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function We(e){if(me(e)==="html")return e;let t=e.assignedSlot||e.parentNode||_s(e)&&e.host||ae(e);return _s(t)?t.host:t}function Rs(e){let t=We(e);return or(t)?e.ownerDocument?e.ownerDocument.body:e.body:te(t)&&ft(t)?t:Rs(t)}function ct(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Rs(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=K(i);return o?t.concat(s,s.visualViewport||[],ft(i)?i:[],s.frameElement&&r?ct(s.frameElement):[]):t.concat(i,ct(i,[],r))}function Ps(e){let t=V(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=te(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=Zt(r)!==o||Zt(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function yn(e){return se(e)?e:e.contextElement}function qe(e){let t=yn(e);if(!te(t))return he(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=Ps(t),s=(o?Zt(r.width):r.width)/n,a=(o?Zt(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Jc=he(0);function Is(e){let t=K(e);return!wn()||!t.visualViewport?Jc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gc(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==K(e)?!1:t}function Ne(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=yn(e),s=he(1);t&&(n?se(n)&&(s=qe(n)):s=qe(e));let a=Gc(o,r,n)?Is(o):he(0),l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,d=i.width/s.x,p=i.height/s.y;if(o){let c=K(o),f=n&&se(n)?K(n):n,m=c.frameElement;for(;m&&n&&f!==c;){let v=qe(m),g=m.getBoundingClientRect(),x=V(m),b=g.left+(m.clientLeft+parseFloat(x.paddingLeft))*v.x,_=g.top+(m.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=b,u+=_,m=K(m).frameElement}}return tr({width:d,height:p,x:l,y:u})}function Xc(e){let{rect:t,offsetParent:r,strategy:n}=e,i=te(r),o=ae(r);if(r===o)return t;let s={scrollLeft:0,scrollTop:0},a=he(1),l=he(0);if((i||!i&&n!=="fixed")&&((me(r)!=="body"||ft(o))&&(s=sr(r)),te(r))){let u=Ne(r);a=qe(r),l.x=u.x+r.clientLeft,l.y=u.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}}function Yc(e){return Array.from(e.getClientRects())}function Ms(e){return Ne(ae(e)).left+sr(e).scrollLeft}function Qc(e){let t=ae(e),r=sr(e),n=e.ownerDocument.body,i=ke(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=ke(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+Ms(e),a=-r.scrollTop;return V(n).direction==="rtl"&&(s+=ke(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Zc(e,t){let r=K(e),n=ae(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let u=wn();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function ef(e,t){let r=Ne(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=te(e)?qe(e):he(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=n*o.y;return{width:s,height:a,x:l,y:u}}function Ss(e,t,r){let n;if(t==="viewport")n=Zc(e,r);else if(t==="document")n=Qc(ae(e));else if(se(t))n=ef(t,r);else{let i=Is(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return tr(n)}function Fs(e,t){let r=We(e);return r===t||!se(r)||or(r)?!1:V(r).position==="fixed"||Fs(r,t)}function tf(e,t){let r=t.get(e);if(r)return r;let n=ct(e,[],!1).filter(a=>se(a)&&me(a)!=="body"),i=null,o=V(e).position==="fixed",s=o?We(e):e;for(;se(s)&&!or(s);){let a=V(s),l=bn(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ft(s)&&!l&&Fs(e,s))?n=n.filter(d=>d!==s):i=a,s=We(s)}return t.set(e,n),n}function rf(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?tf(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((u,d)=>{let p=Ss(t,d,i);return u.top=ke(p.top,u.top),u.right=Qt(p.right,u.right),u.bottom=Qt(p.bottom,u.bottom),u.left=ke(p.left,u.left),u},Ss(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function nf(e){return Ps(e)}function of(e,t,r){let n=te(t),i=ae(t),o=r==="fixed",s=Ne(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=he(0);if(n||!n&&!o)if((me(t)!=="body"||ft(i))&&(a=sr(t)),n){let u=Ne(t,!0,o,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&(l.x=Ms(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Es(e,t){return!te(e)||V(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ds(e,t){let r=K(e);if(!te(e))return r;let n=Es(e,t);for(;n&&zc(n)&&V(n).position==="static";)n=Es(n,t);return n&&(me(n)==="html"||me(n)==="body"&&V(n).position==="static"&&!bn(n))?r:n||Vc(e)||r}var sf=async function(e){let{reference:t,floating:r,strategy:n}=e,i=this.getOffsetParent||Ds,o=this.getDimensions;return{reference:of(t,await i(r),n),floating:{x:0,y:0,...await o(r)}}};function af(e){return V(e).direction==="rtl"}var lf={convertOffsetParentRelativeRectToViewportRelativeRect:Xc,getDocumentElement:ae,getClippingRect:rf,getOffsetParent:Ds,getElementRects:sf,getClientRects:Yc,getDimensions:nf,getScale:qe,isElement:se,isRTL:af};function uf(e,t){let r=null,n,i=ae(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();let{left:u,top:d,width:p,height:c}=e.getBoundingClientRect();if(a||t(),!p||!c)return;let f=Yt(d),m=Yt(i.clientWidth-(u+p)),v=Yt(i.clientHeight-(d+c)),g=Yt(u),b={rootMargin:-f+"px "+-m+"px "+-v+"px "+-g+"px",threshold:ke(0,Qt(1,l))||1},_=!0;function O(T){let w=T[0].intersectionRatio;if(w!==l){if(!_)return s();w?s(!1,w):n=setTimeout(()=>{s(!1,1e-7)},100)}_=!1}try{r=new IntersectionObserver(O,{...b,root:i.ownerDocument})}catch{r=new IntersectionObserver(O,b)}r.observe(e)}return s(!0),o}function cf(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=yn(e),d=i||o?[...u?ct(u):[],...ct(t)]:[];d.forEach(x=>{i&&x.addEventListener("scroll",r,{passive:!0}),o&&x.addEventListener("resize",r)});let p=u&&a?uf(u,r):null,c=-1,f=null;s&&(f=new ResizeObserver(x=>{let[b]=x;b&&b.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(c),c=requestAnimationFrame(()=>{f&&f.observe(t)})),r()}),u&&!l&&f.observe(u),f.observe(t));let m,v=l?Ne(e):null;l&&g();function g(){let x=Ne(e);v&&(x.x!==v.x||x.y!==v.y||x.width!==v.width||x.height!==v.height)&&r(),v=x,m=requestAnimationFrame(g)}return r(),()=>{d.forEach(x=>{i&&x.removeEventListener("scroll",r),o&&x.removeEventListener("resize",r)}),p&&p(),f&&f.disconnect(),f=null,l&&cancelAnimationFrame(m)}}var ff=(e,t,r)=>{let n=new Map,i={platform:lf,...r},o={...i.platform,_c:n};return Uc(e,t,{...i,platform:o})};function df(e){e.magic("anchor",t=>{if(!t._x_anchor)throw"Alpine: No x-anchor directive found on element using $anchor...";return t._x_anchor}),e.interceptClone((t,r)=>{t&&t._x_anchor&&!r._x_anchor&&(r._x_anchor=t._x_anchor)}),e.directive("anchor",e.skipDuringClone((t,{expression:r,modifiers:n,value:i},{cleanup:o,evaluate:s})=>{let{placement:a,offsetValue:l,unstyled:u}=Cs(n);t._x_anchor=e.reactive({x:0,y:0});let d=s(r);if(!d)throw"Alpine: no element provided to x-anchor...";let p=()=>{let f;ff(d,t,{placement:a,middleware:[Hc(),Kc({padding:5}),Wc(l)]}).then(({x:m,y:v})=>{u||As(t,m,v),JSON.stringify({x:m,y:v})!==f&&(t._x_anchor.x=m,t._x_anchor.y=v),f=JSON.stringify({x:m,y:v})})},c=cf(d,t,()=>p());o(()=>c())},(t,{expression:r,modifiers:n,value:i},{cleanup:o,evaluate:s})=>{let{placement:a,offsetValue:l,unstyled:u}=Cs(n);t._x_anchor&&(u||As(t,t._x_anchor.x,t._x_anchor.y))}))}function As(e,t,r){Object.assign(e.style,{left:t+"px",top:r+"px",position:"absolute"})}function Cs(e){let r=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].find(o=>e.includes(o)),n=0;if(e.includes("offset")){let o=e.findIndex(s=>s==="offset");n=e[o+1]!==void 0?Number(e[o+1]):n}let i=e.includes("no-style");return{placement:r,offsetValue:n,unstyled:i}}var $s=df;function Bs(){let e=new URL(window.location.href,document.baseURI);hf(e,document.documentElement.outerHTML)}function js(e){window.addEventListener("popstate",t=>{let n=(t.state||{}).alpine||{};if(!n._html)return;let i=mf(n._html);e(i)})}function Us(e,t){pf(t,e)}function pf(e,t){Hs("pushState",e,t)}function hf(e,t){Hs("replaceState",e,t)}function Hs(e,t,r){let n=new Date().getTime();qs(n,r);let i=history.state||{};i.alpine||(i.alpine={}),i.alpine._html=n;try{history[e](i,document.title,t)}catch(o){o instanceof DOMException&&o.name==="SecurityError"&&console.error("Livewire: You can't use wire:navigate with a link to a different root domain: "+t),console.error(o)}}function mf(e){return JSON.parse(sessionStorage.getItem("alpine:"+e))}function qs(e,t){try{sessionStorage.setItem("alpine:"+e,JSON.stringify(t))}catch(r){if(![22,1,2,3,4,5,6,7,8,9,10,11,12,13,14].includes(r.code))return;let n=Object.keys(sessionStorage).map(i=>Number(i.replace("alpine:",""))).sort().shift();if(!n)return;sessionStorage.removeItem("alpine:"+n),qs(e,t)}}function Ws(e,t){let r=o=>!o.isTrusted,n=o=>o.which>1||o.altKey||o.ctrlKey||o.metaKey||o.shiftKey,i=o=>o.which!==13||o.altKey||o.ctrlKey||o.metaKey||o.shiftKey;e.addEventListener("click",o=>{if(r(o)){o.preventDefault(),t(s=>s());return}n(o)||o.preventDefault()}),e.addEventListener("mousedown",o=>{n(o)||(o.preventDefault(),t(s=>{let a=l=>{l.preventDefault(),s(),e.removeEventListener("mouseup",a)};e.addEventListener("mouseup",a)}))}),e.addEventListener("keydown",o=>{i(o)||(o.preventDefault(),t(s=>s()))})}function Ks(e,t=60,r){e.addEventListener("mouseenter",n=>{let i=setTimeout(()=>{r(n)},t),o=()=>{clearTimeout(i),e.removeEventListener("mouseleave",o)};e.addEventListener("mouseleave",o)})}function xn(e){return dt(e.getAttribute("href"))}function dt(e){return new URL(e,document.baseURI)}function zs(e,t){let r=e.pathname+e.search;_n(r,(n,i)=>{t(n,i)})}function _n(e,t){let r={headers:{"X-Livewire-Navigate":""}};R("navigate.request",{url:e,options:r});let n;fetch(e,r).then(i=>(n=dt(i.url),i.text())).then(i=>{t(i,n)})}var J={};function Sn(e,t){let r=e.pathname;J[r]||(J[r]={finished:!1,html:null,whenFinished:()=>{}},_n(r,(n,i)=>{t(n,i)}))}function En(e,t,r){let n=J[t.pathname];n.html=e,n.finished=!0,n.finalDestination=r,n.whenFinished()}function Vs(e,t,r){let n=e.pathname+e.search;if(!J[n])return r();if(J[n].finished){let i=J[n].html,o=J[n].finalDestination;return delete J[n],t(i,o)}else J[n].whenFinished=()=>{let i=J[n].html,o=J[n].finalDestination;delete J[n],t(i,o)}}function An(e){S.mutateDom(()=>{e.querySelectorAll("[data-teleport-template]").forEach(t=>t._x_teleport.remove())})}function Cn(e){S.mutateDom(()=>{e.querySelectorAll("[data-teleport-target]").forEach(t=>t.remove())})}function Tn(e){S.walk(e,(t,r)=>{!t._x_teleport||(t._x_teleportPutBack(),r())})}function Js(e){return e.hasAttribute("data-teleport-target")}function On(){document.body.setAttribute("data-scroll-x",document.body.scrollLeft),document.body.setAttribute("data-scroll-y",document.body.scrollTop),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(e=>{e.setAttribute("data-scroll-x",e.scrollLeft),e.setAttribute("data-scroll-y",e.scrollTop)})}function kn(){let e=t=>{t.hasAttribute("data-scroll-x")?(t.scrollTo({top:Number(t.getAttribute("data-scroll-y")),left:Number(t.getAttribute("data-scroll-x")),behavior:"instant"}),t.removeAttribute("data-scroll-x"),t.removeAttribute("data-scroll-y")):window.scrollTo({top:0,left:0,behavior:"instant"})};queueMicrotask(()=>{e(document.body),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(e)})}var pt={};function Ln(e){pt={},document.querySelectorAll("[x-persist]").forEach(t=>{pt[t.getAttribute("x-persist")]=t,e(t),S.mutateDom(()=>{t.remove()})})}function Nn(e){let t=[];document.querySelectorAll("[x-persist]").forEach(r=>{let n=pt[r.getAttribute("x-persist")];!n||(t.push(r.getAttribute("x-persist")),n._x_wasPersisted=!0,e(n,r),S.mutateDom(()=>{r.replaceWith(n)}))}),Object.entries(pt).forEach(([r,n])=>{t.includes(r)||S.destroyTree(n)}),pt={}}function Gs(e){return e.hasAttribute("x-persist")}var ht=Ja(Ys());ht.default.configure({minimum:.1,trickleSpeed:200,showSpinner:!1});gf();var Pn=!1;function Qs(){Pn=!0,setTimeout(()=>{!Pn||ht.default.start()},150)}function Zs(){Pn=!1,ht.default.done(),ht.default.remove()}function gf(){let e=document.createElement("style");e.innerHTML=`/* Make clicks pass-through */
    `;let t=Xn();t&&(e.nonce=t),document.head.appendChild(e)}var In=[],ra=["data-csrf","aria-hidden"];function Mn(e,t){let r=new DOMParser().parseFromString(e,"text/html"),n=document.adoptNode(r.body),i=document.adoptNode(r.head);In=In.concat(Array.from(document.body.querySelectorAll("script")).map(a=>sa(aa(a.outerHTML,ra))));let o=()=>{};bf(i).finally(()=>{o()}),vf(n,In);let s=document.body;document.body.replaceWith(n),Alpine.destroyTree(s),t(a=>o=a)}function vf(e,t){e.querySelectorAll("script").forEach(r=>{if(r.hasAttribute("data-navigate-once")){let n=sa(aa(r.outerHTML,ra));if(t.includes(n))return}r.replaceWith(na(r))})}function bf(e){let t=Array.from(document.head.children),r=t.map(s=>s.outerHTML),n=document.createDocumentFragment(),i=[],o=[];for(let s of Array.from(e.children))if(ta(s)){if(r.includes(s.outerHTML))n.appendChild(s);else if(ia(s)&&yf(s,t)&&setTimeout(()=>window.location.reload()),oa(s))try{o.push(wf(na(s)))}catch{}else document.head.appendChild(s);i.push(s)}for(let s of Array.from(document.head.children))ta(s)||s.remove();for(let s of Array.from(e.children))document.head.appendChild(s);return Promise.all(o)}async function wf(e){return new Promise((t,r)=>{e.src?(e.onload=()=>t(),e.onerror=()=>r()):t(),document.head.appendChild(e)})}function na(e){let t=document.createElement("script");t.textContent=e.textContent,t.async=e.async;for(let r of e.attributes)t.setAttribute(r.name,r.value);return t}function ia(e){return e.hasAttribute("data-navigate-track")}function yf(e,t){let[r,n]=ea(e);return t.some(i=>{if(!ia(i))return!1;let[o,s]=ea(i);if(o===r&&n!==s)return!0})}function ea(e){return(oa(e)?e.src:e.href).split("?")}function ta(e){return e.tagName.toLowerCase()==="link"&&e.getAttribute("rel").toLowerCase()==="stylesheet"||e.tagName.toLowerCase()==="style"||e.tagName.toLowerCase()==="script"}function oa(e){return e.tagName.toLowerCase()==="script"}function sa(e){return e.split("").reduce((t,r)=>(t=(t<<5)-t+r.charCodeAt(0),t&t),0)}function aa(e,t){let r=e;return t.forEach(n=>{let i=new RegExp(`${n}="[^"]*"|${n}='[^']*'`,"g");r=r.replace(i,"")}),r=r.replaceAll(" ",""),r.trim()}var ar=!0,Fn=!0,xf=!0,la=!1;function da(e){e.navigate=r=>{t(dt(r))},e.navigate.disableProgressBar=()=>{Fn=!1},e.addInitSelector(()=>`[${e.prefixed("navigate")}]`),e.directive("navigate",(r,{modifiers:n})=>{n.includes("hover")&&Ks(r,60,()=>{let o=xn(r);Sn(o,(s,a)=>{En(s,o,a)})}),Ws(r,o=>{let s=xn(r);Sn(s,(a,l)=>{En(a,s,l)}),o(()=>{t(s)})})});function t(r){Fn&&Qs(),_f(r,(n,i)=>{lr("alpine:navigating"),xf&&On(),Fn&&Zs(),Sf(),Bs(),ua(e,o=>{ar&&Ln(s=>{An(s)}),Mn(n,s=>{Cn(document.body),ar&&Nn((a,l)=>{Tn(a)}),kn(),Us(n,i),lr("alpine:navigated"),s(()=>{o(()=>{setTimeout(()=>{la&&fa()}),ca(e)})})})})})}js(r=>{On(),ua(e,n=>{ar&&Ln(i=>{An(i)}),Mn(r,()=>{Cn(document.body),ar&&Nn((i,o)=>{Tn(i)}),kn(),lr("alpine:navigated"),n(()=>{la&&fa(),ca(e)})})})}),setTimeout(()=>{lr("alpine:navigated")})}function _f(e,t){Vs(e,t,()=>{zs(e,t)})}function ua(e,t){e.stopObservingMutations(),t(r=>{e.startObservingMutations(),queueMicrotask(()=>{r()})})}function lr(e){document.dispatchEvent(new CustomEvent(e,{bubbles:!0}))}function ca(e){e.initTree(document.body,void 0,(t,r)=>{t._x_wasPersisted&&r()})}function fa(){document.querySelector("[autofocus]")&&document.querySelector("[autofocus]").focus()}function Sf(){let e=function(t,r){Alpine.walk(t,(n,i)=>{Gs(n)&&i(),Js(n)?i():r(n,i)})};Alpine.destroyTree(document.body,e)}function Dn(e){e.magic("queryString",(t,{interceptor:r})=>{let n,i=!1,o=!1;return r((s,a,l,u,d)=>{let p=n||u,{initial:c,replace:f,push:m,pop:v}=cr(p,s,i);return l(c),o?(e.effect(()=>m(a())),v(async g=>{l(g),await(()=>Promise.resolve())()})):e.effect(()=>f(a())),c},s=>{s.alwaysShow=()=>(i=!0,s),s.usePush=()=>(o=!0,s),s.as=a=>(n=a,s)})}),e.history={track:cr}}function cr(e,t,r=!1){let{has:n,get:i,set:o,remove:s}=Af(),a=new URL(window.location.href),l=n(a,e),u=l?i(a,e):t,d=JSON.stringify(u),p=m=>JSON.stringify(m)===d;r&&(a=o(a,e,u)),pa(a,e,{value:u});let c=!1,f=(m,v)=>{if(c)return;let g=new URL(window.location.href);!r&&!l&&p(v)||v===void 0?g=s(g,e):g=o(g,e,v),m(g,e,{value:v})};return{initial:u,replace(m){f(pa,m)},push(m){f(Ef,m)},pop(m){let v=g=>{!g.state||!g.state.alpine||Object.entries(g.state.alpine).forEach(([x,{value:b}])=>{if(x!==e)return;c=!0;let _=m(b);_ instanceof Promise?_.finally(()=>c=!1):c=!1})};return window.addEventListener("popstate",v),()=>window.removeEventListener("popstate",v)}}}function pa(e,t,r){let n=window.history.state||{};n.alpine||(n.alpine={}),n.alpine[t]=$n(r),window.history.replaceState(n,"",e.toString())}function Ef(e,t,r){let n=window.history.state||{};n.alpine||(n.alpine={}),n={alpine:{...n.alpine,[t]:$n(r)}},window.history.pushState(n,"",e.toString())}function $n(e){if(e!==void 0)return JSON.parse(JSON.stringify(e))}function Af(){return{has(e,t){let r=e.search;if(!r)return!1;let n=ur(r);return Object.keys(n).includes(t)},get(e,t){let r=e.search;return r?ur(r)[t]:!1},set(e,t,r){let n=ur(e.search);return n[t]=ma($n(r)),e.search=ha(n),e},remove(e,t){let r=ur(e.search);return delete r[t],e.search=ha(r),e}}}function ma(e){if(!vt(e))return e;for(let t in e)e[t]===null?delete e[t]:e[t]=ma(e[t]);return e}function ha(e){let t=i=>typeof i=="object"&&i!==null,r=(i,o={},s="")=>(Object.entries(i).forEach(([a,l])=>{let u=s===""?a:`${s}[${a}]`;l===null?o[u]="":t(l)?o={...o,...r(l,o,u)}:o[u]=encodeURIComponent(l).replaceAll("%20","+").replaceAll("%2C",",")}),o),n=r(e);return Object.entries(n).map(([i,o])=>`${i}=${o}`).join("&")}function ur(e){if(e=e.replace("?",""),e==="")return{};let t=(i,o,s)=>{let[a,l,...u]=i.split(".");if(!l)return s[i]=o;s[a]===void 0&&(s[a]=isNaN(l)?{}:[]),t([l,...u].join("."),o,s[a])},r=e.split("&").map(i=>i.split("=")),n=Object.create(null);return r.forEach(([i,o])=>{if(o=decodeURIComponent(o.replaceAll("+","%20")),!i.includes("["))n[i]=o;else{let s=i.replaceAll("[",".").replaceAll("]","");t(s,o,n)}}),n}function jn(e,t,r){Of();let n,i,o,s,a,l,u,d,p,c;function f(h={}){let y=L=>L.getAttribute("key"),C=()=>{};a=h.updating||C,l=h.updated||C,u=h.removing||C,d=h.removed||C,p=h.adding||C,c=h.added||C,o=h.key||y,s=h.lookahead||!1}function m(h,y){if(v(h,y))return g(h,y);let C=!1;if(!Ke(a,h,y,()=>C=!0)){if(h.nodeType===1&&window.Alpine&&window.Alpine.cloneNode(h,y),Tf(y)){x(h,y),l(h,y);return}C||b(h,y),l(h,y),_(h,y)}}function v(h,y){return h.nodeType!=y.nodeType||h.nodeName!=y.nodeName||O(h)!=O(y)}function g(h,y){if(Ke(u,h))return;let C=y.cloneNode(!0);Ke(p,C)||(h.replaceWith(C),d(h),c(C))}function x(h,y){let C=y.nodeValue;h.nodeValue!==C&&(h.nodeValue=C)}function b(h,y){if(h._x_transitioning||h._x_isShown&&!y._x_isShown||!h._x_isShown&&y._x_isShown)return;let C=Array.from(h.attributes),L=Array.from(y.attributes);for(let A=C.length-1;A>=0;A--){let E=C[A].name;y.hasAttribute(E)||h.removeAttribute(E)}for(let A=L.length-1;A>=0;A--){let E=L[A].name,j=L[A].value;h.getAttribute(E)!==j&&h.setAttribute(E,j)}}function _(h,y){h._x_teleport&&(h=h._x_teleport),y._x_teleport&&(y=y._x_teleport);let C=T(h.children),L={},A=va(y),E=va(h);for(;A;){kf(A,E);let P=O(A),$=O(E);if(!E)if(P&&L[P]){let N=L[P];h.appendChild(N),E=N}else{if(!Ke(p,A)){let N=A.cloneNode(!0);h.appendChild(N),c(N)}A=G(y,A);continue}let q=N=>N&&N.nodeType===8&&N.textContent==="[if BLOCK]><![endif]",H=N=>N&&N.nodeType===8&&N.textContent==="[if ENDBLOCK]><![endif]";if(q(A)&&q(E)){let N=0,mt=E;for(;E;){let X=G(h,E);if(q(X))N++;else if(H(X)&&N>0)N--;else if(H(X)&&N===0){E=X;break}E=X}let Fa=E;N=0;let Da=A;for(;A;){let X=G(y,A);if(q(X))N++;else if(H(X)&&N>0)N--;else if(H(X)&&N===0){A=X;break}A=X}let $a=A,Ba=new Bn(mt,Fa),ja=new Bn(Da,$a);_(Ba,ja);continue}if(E.nodeType===1&&s&&!E.isEqualNode(A)){let N=G(y,A),mt=!1;for(;!mt&&N;)N.nodeType===1&&E.isEqualNode(N)&&(mt=!0,E=w(h,A,E),$=O(E)),N=G(y,N)}if(P!==$){if(!P&&$){L[$]=E,E=w(h,A,E),L[$].remove(),E=G(h,E),A=G(y,A);continue}if(P&&!$&&C[P]&&(E.replaceWith(C[P]),E=C[P]),P&&$){let N=C[P];if(N)L[$]=E,E.replaceWith(N),E=N;else{L[$]=E,E=w(h,A,E),L[$].remove(),E=G(h,E),A=G(y,A);continue}}}let ge=E&&G(h,E);m(E,A),A=A&&G(y,A),E=ge}let j=[];for(;E;)Ke(u,E)||j.push(E),E=G(h,E);for(;j.length;){let P=j.shift();P.remove(),d(P)}}function O(h){return h&&h.nodeType===1&&o(h)}function T(h){let y={};for(let C of h){let L=O(C);L&&(y[L]=C)}return y}function w(h,y,C){if(!Ke(p,y)){let L=y.cloneNode(!0);return h.insertBefore(L,C),c(L),L}return y}return f(r),n=e,i=typeof t=="string"?Cf(t):t,window.Alpine&&window.Alpine.closestDataStack&&!e._x_dataStack&&(i._x_dataStack=window.Alpine.closestDataStack(e),i._x_dataStack&&window.Alpine.cloneNode(e,i)),m(e,i),n=void 0,i=void 0,e}jn.step=()=>{};jn.log=()=>{};function Ke(e,...t){let r=!1;return e(...t,()=>r=!0),r}var ga=!1;function Cf(e){let t=document.createElement("template");return t.innerHTML=e,t.content.firstElementChild}function Tf(e){return e.nodeType===3||e.nodeType===8}var Bn=class{constructor(e,t){this.startComment=e,this.endComment=t}get children(){let e=[],t=this.startComment.nextSibling;for(;t&&t!==this.endComment;)e.push(t),t=t.nextSibling;return e}appendChild(e){this.endComment.before(e)}get firstChild(){let e=this.startComment.nextSibling;if(e!==this.endComment)return e}nextNode(e){let t=e.nextSibling;if(t!==this.endComment)return t}insertBefore(e,t){return t.before(e),e}};function va(e){return e.firstChild}function G(e,t){let r;return e instanceof Bn?r=e.nextNode(t):r=t.nextSibling,r}function Of(){if(ga)return;ga=!0;let e=Element.prototype.setAttribute,t=document.createElement("div");Element.prototype.setAttribute=function(n,i){if(!n.includes("@"))return e.call(this,n,i);t.innerHTML=`<span ${n}="${i}"></span>`;let o=t.firstElementChild.getAttributeNode(n);t.firstElementChild.removeAttributeNode(o),this.setAttributeNode(o)}}function kf(e,t){let r=t&&t._x_bindings&&t._x_bindings.id;!r||(e.setAttribute("id",r),e.id=r)}function Lf(e){e.morph=jn}var ba=Lf;function Nf(e){e.directive("mask",(t,{value:r,expression:n},{effect:i,evaluateLater:o,cleanup:s})=>{let a=()=>n,l="";queueMicrotask(()=>{if(["function","dynamic"].includes(r)){let c=o(n);i(()=>{a=f=>{let m;return e.dontAutoEvaluateFunctions(()=>{c(v=>{m=typeof v=="function"?v(f):v},{scope:{$input:f,$money:Pf.bind({el:t})}})}),m},d(t,!1)})}else d(t,!1);t._x_model&&t._x_model.set(t.value)});let u=new AbortController;s(()=>{u.abort()}),t.addEventListener("input",()=>d(t),{signal:u.signal,capture:!0}),t.addEventListener("blur",()=>d(t,!1),{signal:u.signal});function d(c,f=!0){let m=c.value,v=a(m);if(!v||v==="false")return!1;if(l.length-c.value.length===1)return l=c.value;let g=()=>{l=c.value=p(m,v)};f?Rf(c,v,()=>{g()}):g()}function p(c,f){if(c==="")return"";let m=wa(f,c);return ya(f,m)}}).before("model")}function Rf(e,t,r){let n=e.selectionStart,i=e.value;r();let o=i.slice(0,n),s=ya(t,wa(t,o)).length;e.setSelectionRange(s,s)}function wa(e,t){let r=t,n="",i={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},o="";for(let s=0;s<e.length;s++){if(["9","a","*"].includes(e[s])){o+=e[s];continue}for(let a=0;a<r.length;a++)if(r[a]===e[s]){r=r.slice(0,a)+r.slice(a+1);break}}for(let s=0;s<o.length;s++){let a=!1;for(let l=0;l<r.length;l++)if(i[o[s]].test(r[l])){n+=r[l],r=r.slice(0,l)+r.slice(l+1),a=!0;break}if(!a)break}return n}function ya(e,t){let r=Array.from(t),n="";for(let i=0;i<e.length;i++){if(!["9","a","*"].includes(e[i])){n+=e[i];continue}if(r.length===0)break;n+=r.shift()}return n}function Pf(e,t=".",r,n=2){if(e==="-")return"-";if(/^\D+$/.test(e))return"9";r==null&&(r=t===","?".":",");let i=(l,u)=>{let d="",p=0;for(let c=l.length-1;c>=0;c--)l[c]!==u&&(p===3?(d=l[c]+u+d,p=0):d=l[c]+d,p++);return d},o=e.startsWith("-")?"-":"",s=e.replaceAll(new RegExp(`[^0-9\\${t}]`,"g"),""),a=Array.from({length:s.split(t)[0].length}).fill("9").join("");return a=`${o}${i(a,r)}`,n>0&&e.includes(t)&&(a+=`${t}`+"9".repeat(n)),queueMicrotask(()=>{this.el.value.endsWith(t)||this.el.value[this.el.selectionStart-1]===t&&this.el.setSelectionRange(this.el.selectionStart-1,this.el.selectionStart-1)}),a}var xa=Nf;function _a(){setTimeout(()=>If()),gt(document,"livewire:init"),gt(document,"livewire:initializing"),S.plugin(ba),S.plugin(Dn),S.plugin(ws),S.plugin(Qo),S.plugin($s),S.plugin(hs),S.plugin(bs),S.plugin(da),S.plugin(xa),S.addRootSelector(()=>"[wire\\:id]"),S.onAttributesAdded((e,t)=>{if(!Array.from(t).some(n=>He(n.name)))return;let r=z(e,!1);!r||t.forEach(n=>{if(!He(n.name))return;let i=Kt(e,n.name);R("directive.init",{el:e,component:r,directive:i,cleanup:o=>{S.onAttributeRemoved(e,i.raw,o)}})})}),S.interceptInit(S.skipDuringClone(e=>{if(!Array.from(e.attributes).some(r=>He(r.name)))return;if(e.hasAttribute("wire:id")){let r=qo(e);S.onAttributeRemoved(e,"wire:id",()=>{Wo(r.id)})}let t=z(e,!1);t&&(R("element.init",{el:e,component:t}),Array.from(e.getAttributeNames()).filter(n=>He(n)).map(n=>Kt(e,n)).forEach(n=>{R("directive.init",{el:e,component:t,directive:n,cleanup:i=>{S.onAttributeRemoved(e,n.raw,i)}})}))})),S.start(),setTimeout(()=>window.Livewire.initialRenderIsFinished=!0),gt(document,"livewire:initialized")}function If(){let e=document.querySelector("script[data-update-uri][data-csrf]");if(!e)return;let t=e.closest("[wire\\:id]");t&&console.warn("Livewire: missing closing tags found. Ensure your template elements contain matching closing tags.",t)}var ze={};k("element.init",({el:e,component:t})=>setTimeout(()=>{pe(e).missing("submit")||e.addEventListener("submit",()=>{ze[t.id]=[],S.walk(t.el,(n,i)=>{if(!!e.contains(n)){if(n.hasAttribute("wire:ignore"))return i();n.tagName.toLowerCase()==="button"&&n.type==="submit"||n.tagName.toLowerCase()==="select"||n.tagName.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")?(n.disabled||ze[t.id].push(()=>n.disabled=!1),n.disabled=!0):(n.tagName.toLowerCase()==="input"||n.tagName.toLowerCase()==="textarea")&&(n.readOnly||ze[t.id].push(()=>n.readOnly=!1),n.readOnly=!0)}})})}));k("commit",({component:e,respond:t})=>{t(()=>{Mf(e)})});function Mf(e){if(!!ze[e.id])for(;ze[e.id].length>0;)ze[e.id].shift()()}k("commit.pooling",({commits:e})=>{e.forEach(t=>{let r=t.component;Ea(r,n=>{n.$wire.$commit()})})});k("commit.pooled",({pools:e})=>{Ff(e).forEach(r=>{let n=r.component;Ea(n,i=>{Df(e,n,i)})})});function Ff(e){let t=[];return e.forEach(r=>{r.commits.forEach(n=>{t.push(n)})}),t}function Df(e,t,r){let n=Sa(e,t),i=Sa(e,r),o=i.findCommitByComponent(r);i.delete(o),n.add(o),e.forEach(s=>{s.empty()&&e.delete(s)})}function Sa(e,t){for(let[r,n]of e.entries())if(n.hasCommitFor(t))return n}function Ea(e,t){Aa(e,r=>{($f(r)||Bf(r))&&t(r)})}function $f(e){return!!e.snapshot.memo.props}function Bf(e){return!!e.snapshot.memo.bindings}function Aa(e,t){e.children.forEach(r=>{t(r),Aa(r,t)})}var Ve=new WeakMap,fr=new Set;k("payload.intercept",async({assets:e})=>{if(!!e)for(let[t,r]of Object.entries(e))await Hf(t,async()=>{await qf(r)})});k("component.init",({component:e})=>{let t=e.snapshot.memo.assets;t&&t.forEach(r=>{fr.has(r)||fr.add(r)})});k("effect",({component:e,effects:t})=>{let r=t.scripts;r&&Object.entries(r).forEach(([n,i])=>{jf(e,n,()=>{let o=Uf(i);S.dontAutoEvaluateFunctions(()=>{S.evaluate(e.el,o,{$wire:e.$wire})})})})});function jf(e,t,r){if(Ve.has(e)&&Ve.get(e).includes(t))return;r(),Ve.has(e)||Ve.set(e,[]);let n=Ve.get(e);n.push(t),Ve.set(e,n)}function Uf(e){let r=/<script\b[^>]*>([\s\S]*?)<\/script>/gm.exec(e);return r&&r[1]?r[1].trim():""}async function Hf(e,t){fr.has(e)||(await t(),fr.add(e))}async function qf(e){let t=new DOMParser().parseFromString(e,"text/html"),r=document.adoptNode(t.head);for(let n of r.children)try{await Wf(n)}catch{}}async function Wf(e){return new Promise((t,r)=>{if(Kf(e)){let n=zf(e);n.src?(n.onload=()=>t(),n.onerror=()=>r()):t(),document.head.appendChild(n)}else document.head.appendChild(e),t()})}function Kf(e){return e.tagName.toLowerCase()==="script"}function zf(e){let t=document.createElement("script");t.textContent=e.textContent,t.async=e.async;for(let r of e.attributes)t.setAttribute(r.name,r.value);return t}k("commit",({succeed:e})=>{e(({effects:t})=>{let r=t.download;if(!r)return;let n=window.webkitURL||window.URL,i=n.createObjectURL(Vf(r.content,r.contentType)),o=document.createElement("a");o.style.display="none",o.href=i,o.download=r.name,document.body.appendChild(o),o.click(),setTimeout(function(){n.revokeObjectURL(i)},0)})});function Vf(e,t="",r=512){let n=atob(e),i=[];t===null&&(t="");for(let o=0;o<n.length;o+=r){let s=n.slice(o,o+r),a=new Array(s.length);for(let u=0;u<s.length;u++)a[u]=s.charCodeAt(u);let l=new Uint8Array(a);i.push(l)}return new Blob(i,{type:t})}k("effect",({component:e,effects:t})=>{let r=t.js,n=t.xjs;r&&Object.entries(r).forEach(([i,o])=>{jo(e,i,()=>{S.evaluate(e.el,o)})}),n&&n.forEach(i=>{S.evaluate(e.el,i)})});var Un=new WeakSet,Hn=new WeakSet;k("component.init",({component:e})=>{let t=e.snapshot.memo;t.lazyLoaded!==void 0&&(Hn.add(e),t.lazyIsolated!==void 0&&t.lazyIsolated===!1&&Un.add(e))});k("commit.pooling",({commits:e})=>{e.forEach(t=>{!Hn.has(t.component)||(Un.has(t.component)?(t.isolate=!1,Un.delete(t.component)):t.isolate=!0,Hn.delete(t.component))})});k("effect",({component:e,effects:t,cleanup:r})=>{let n=t.url;!n||Object.entries(n).forEach(([i,o])=>{let{name:s,as:a,use:l,alwaysShow:u,except:d}=Jf(i,o);a||(a=s);let p=[!1,null,void 0].includes(d)?W(e.ephemeral,s):d,{replace:c,push:f,pop:m}=cr(a,p,u);if(l==="replace"){let v=S.effect(()=>{c(W(e.reactive,s))});r(()=>S.release(v))}else if(l==="push"){let v=k("commit",({component:x,succeed:b})=>{if(e!==x)return;let _=W(e.canonical,s);b(()=>{let O=W(e.canonical,s);JSON.stringify(_)!==JSON.stringify(O)&&f(O)})}),g=m(async x=>{await e.$wire.set(s,x),document.querySelectorAll("input").forEach(b=>{b._x_forceModelUpdate&&b._x_forceModelUpdate(b._x_model.get())})});r(()=>{v(),g()})}})});function Jf(e,t){let r={use:"replace",alwaysShow:!1};return typeof t=="string"?{...r,name:t,as:t}:{...{...r,name:e,as:e},...t}}k("request",({options:e})=>{window.Echo&&(e.headers["X-Socket-ID"]=window.Echo.socketId())});k("effect",({component:e,effects:t})=>{(t.listeners||[]).forEach(n=>{if(n.startsWith("echo")){if(typeof window.Echo>"u"){console.warn("Laravel Echo cannot be found");return}let i=n.split(/(echo:|echo-)|:|,/);i[1]=="echo:"&&i.splice(2,0,"channel",void 0),i[2]=="notification"&&i.push(void 0,void 0);let[o,s,a,l,u,d,p]=i;if(["channel","private","encryptedPrivate"].includes(a)){let c=f=>ie(e,n,[f]);window.Echo[a](u).listen(p,c),e.addCleanup(()=>{window.Echo[a](u).stopListening(p,c)})}else if(a=="presence")if(["here","joining","leaving"].includes(p))window.Echo.join(u)[p](c=>{ie(e,n,[c])});else{let c=f=>ie(e,n,[f]);window.Echo.join(u).listen(p,c),e.addCleanup(()=>{window.Echo.leaveChannel(u)})}else a=="notification"?window.Echo.private(u).notification(c=>{ie(e,n,[c])}):console.warn("Echo channel type not yet supported")}})});var Ca=new WeakSet;k("component.init",({component:e})=>{e.snapshot.memo.isolate===!0&&Ca.add(e)});k("commit.pooling",({commits:e})=>{e.forEach(t=>{!Ca.has(t.component)||(t.isolate=!0)})});Gf()&&Alpine.navigate.disableProgressBar();document.addEventListener("alpine:navigated",e=>{document.dispatchEvent(new CustomEvent("livewire:navigated",{bubbles:!0}))});document.addEventListener("alpine:navigating",e=>{document.dispatchEvent(new CustomEvent("livewire:navigating",{bubbles:!0}))});function Ta(e,t,r){e.redirectUsingNavigate?Alpine.navigate(t):r()}function Gf(){return!!(document.querySelector("[data-no-progress-bar]")||window.livewireScriptConfig&&window.livewireScriptConfig.progressBar===!1)}k("effect",({effects:e})=>{if(!e.redirect)return;let t=e.redirect;Ta(e,t,()=>{window.location.href=t})});function ka(e,t,r){let n=t.parentElement?t.parentElement.tagName.toLowerCase():"div",i=document.createElement(n);i.innerHTML=r;let o;try{o=z(t.parentElement)}catch{}o&&(i.__livewire=o);let s=i.firstElementChild;s.__livewire=e,R("morph",{el:t,toEl:s,component:e}),S.morph(t,s,{updating:(a,l,u,d)=>{if(!Je(a)){if(R("morph.updating",{el:a,toEl:l,component:e,skip:d,childrenOnly:u}),a.__livewire_ignore===!0||(a.__livewire_ignore_self===!0&&u(),Oa(a)&&a.getAttribute("wire:id")!==e.id))return d();Oa(a)&&(l.__livewire=e)}},updated:a=>{Je(a)||R("morph.updated",{el:a,component:e})},removing:(a,l)=>{Je(a)||R("morph.removing",{el:a,component:e,skip:l})},removed:a=>{Je(a)||R("morph.removed",{el:a,component:e})},adding:a=>{R("morph.adding",{el:a,component:e})},added:a=>{if(Je(a))return;let l=z(a).id;R("morph.added",{el:a})},key:a=>{if(!Je(a))return a.hasAttribute("wire:key")?a.getAttribute("wire:key"):a.hasAttribute("wire:id")?a.getAttribute("wire:id"):a.id},lookahead:!1})}function Je(e){return typeof e.hasAttribute!="function"}function Oa(e){return e.hasAttribute("wire:id")}k("effect",({component:e,effects:t})=>{let r=t.html;!r||queueMicrotask(()=>{queueMicrotask(()=>{ka(e,e.el,r)})})});k("effect",({component:e,effects:t})=>{Xf(e,t.listeners||[]),Yf(e,t.dispatches||[])});function Xf(e,t){t.forEach(r=>{let n=i=>{i.__livewire&&i.__livewire.receivedBy.push(e),e.$wire.call("__dispatch",r,i.detail||{})};window.addEventListener(r,n),e.addCleanup(()=>window.removeEventListener(r,n)),e.el.addEventListener(r,i=>{!i.__livewire||i.bubbles||(i.__livewire&&i.__livewire.receivedBy.push(e.id),e.$wire.call("__dispatch",r,i.detail||{}))})})}function Yf(e,t){t.forEach(({name:r,params:n={},self:i=!1,to:o})=>{i?ie(e,r,n):o?Ue(o,r,n):Ht(e,r,n)})}k("morph.added",({el:e})=>{e.__addedByMorph=!0});M("transition",({el:e,directive:t,component:r,cleanup:n})=>{let i=S.reactive({state:!e.__addedByMorph});S.bind(e,{[t.rawName.replace("wire:","x-")]:"","x-show"(){return i.state}}),e.__addedByMorph&&setTimeout(()=>i.state=!0);let o=[];o.push(k("morph.removing",({el:s,skip:a})=>{a(),s.addEventListener("transitionend",()=>{s.remove()}),i.state=!1,o.push(k("morph",({component:l})=>{l===r&&(s.remove(),o.forEach(u=>u()))}))})),n(()=>o.forEach(s=>s()))});var Qf=new Ie;function La(e,t){Qf.each(e,r=>{r.callback(),r.callback=()=>{}}),t()}k("directive.init",({el:e,directive:t,cleanup:r,component:n})=>{if(["snapshot","effects","model","init","loading","poll","ignore","id","data","key","target","dirty"].includes(t.value))return;let i=t.rawName.replace("wire:","x-on:");t.value==="submit"&&!t.modifiers.includes("prevent")&&(i=i+".prevent");let o=S.bind(e,{[i](s){let a=()=>{La(n,()=>{S.evaluate(e,"$wire."+t.expression,{scope:{$event:s}})})};e.__livewire_confirm?e.__livewire_confirm(()=>{a()},()=>{s.stopImmediatePropagation()}):a()}});r(o)});S.addInitSelector(()=>"[wire\\:navigate]");S.addInitSelector(()=>"[wire\\:navigate\\.hover]");S.interceptInit(S.skipDuringClone(e=>{e.hasAttribute("wire:navigate")?S.bind(e,{["x-navigate"]:!0}):e.hasAttribute("wire:navigate.hover")&&S.bind(e,{["x-navigate.hover"]:!0})}));document.addEventListener("alpine:navigating",()=>{Livewire.all().forEach(e=>{e.inscribeSnapshotAndEffectsOnElement()})});M("confirm",({el:e,directive:t})=>{let r=t.expression,n=t.modifiers.includes("prompt");r=r.replaceAll("\\n",`
`),r===""&&(r="Are you sure?"),e.__livewire_confirm=(i,o)=>{if(n){let[s,a]=r.split("|");a?prompt(s)===a?i():o():console.warn("Livewire: Must provide expectation with wire:confirm.prompt")}else confirm(r)?i():o()}});function re(e,t,r,n=null){if(r=t.modifiers.includes("remove")?!r:r,t.modifiers.includes("class")){let i=t.expression.split(" ").filter(String);r?e.classList.add(...i):e.classList.remove(...i)}else if(t.modifiers.includes("attr"))r?e.setAttribute(t.expression,!0):e.removeAttribute(t.expression);else{let i=n??window.getComputedStyle(e,null).getPropertyValue("display"),o=["inline","block","table","flex","grid","inline-flex"].filter(s=>t.modifiers.includes(s))[0]||"inline-block";o=t.modifiers.includes("remove")?i:o,e.style.display=r?o:"none"}}var qn=new Set,Wn=new Set;window.addEventListener("offline",()=>qn.forEach(e=>e()));window.addEventListener("online",()=>Wn.forEach(e=>e()));M("offline",({el:e,directive:t,cleanup:r})=>{let n=()=>re(e,t,!0),i=()=>re(e,t,!1);qn.add(n),Wn.add(i),r(()=>{qn.delete(n),Wn.delete(i)})});M("loading",({el:e,directive:t,component:r})=>{let{targets:n,inverted:i}=nd(e),[o,s]=Zf(t);ed(r,n,i,[()=>o(()=>re(e,t,!0)),()=>s(()=>re(e,t,!1))]),td(r,n,[()=>o(()=>re(e,t,!0)),()=>s(()=>re(e,t,!1))])});function Zf(e){if(!e.modifiers.includes("delay")||e.modifiers.includes("none"))return[o=>o(),o=>o()];let t=200,r={shortest:50,shorter:100,short:150,default:200,long:300,longer:500,longest:1e3};Object.keys(r).some(o=>{if(e.modifiers.includes(o))return t=r[o],!0});let n,i=!1;return[o=>{n=setTimeout(()=>{o(),i=!0},t)},async o=>{i?(await o(),i=!1):clearTimeout(n)}]}function ed(e,t,r,[n,i]){k("commit",({component:o,commit:s,respond:a})=>{o===e&&(t.length>0&&rd(s,t)===r||(n(),a(()=>{i()})))})}function td(e,t,[r,n]){let i=o=>{let{id:s,property:a}=o.detail;return s!==e.id||t.length>0&&!t.map(l=>l.target).includes(a)};window.addEventListener("livewire-upload-start",o=>{i(o)||r()}),window.addEventListener("livewire-upload-finish",o=>{i(o)||n()}),window.addEventListener("livewire-upload-error",o=>{i(o)||n()})}function rd(e,t){let{updates:r,calls:n}=e;return t.some(({target:i,params:o})=>{if(o)return n.some(({method:a,params:l})=>i===a&&o===Na(JSON.stringify(l)));if(Object.keys(r).some(a=>a.includes(".")&&a.split(".")[0]===i?!0:a===i)||n.map(a=>a.method).includes(i))return!0})}function nd(e){let t=pe(e),r=[],n=!1;if(t.has("target")){let i=t.get("target"),o=i.expression;i.modifiers.includes("except")&&(n=!0),o.includes("(")&&o.includes(")")?r.push({target:i.method,params:Na(JSON.stringify(i.params))}):o.includes(",")?o.split(",").map(s=>s.trim()).forEach(s=>{r.push({target:s})}):r.push({target:o})}else{let i=["init","dirty","offline","target","loading","poll","ignore","key","id"];t.all().filter(o=>!i.includes(o.value)).map(o=>o.expression.split("(")[0]).forEach(o=>r.push({target:o}))}return{targets:r,inverted:n}}function Na(e){return btoa(encodeURIComponent(e))}M("stream",({el:e,directive:t,cleanup:r})=>{let{expression:n,modifiers:i}=t,o=k("stream",({name:s,content:a,replace:l})=>{s===n&&(i.includes("replace")||l?e.innerHTML=a:e.innerHTML=e.innerHTML+a)});r(o)});k("request",({respond:e})=>{e(t=>{let r=t.response;!r.headers.has("X-Livewire-Stream")||(t.response={ok:!0,redirected:!1,status:200,async text(){let n=await id(r,i=>{R("stream",i)});return wt(n)&&(this.ok=!1),n}})})});async function id(e,t){let r=e.body.getReader(),n="";for(;;){let{done:i,value:o}=await r.read(),a=new TextDecoder().decode(o),[l,u]=od(n+a);if(l.forEach(d=>{t(d)}),n=u,i)return n}}function od(e){let t=/({"stream":true.*?"endStream":true})/g,r=e.match(t),n=[];if(r)for(let o=0;o<r.length;o++)n.push(JSON.parse(r[o]).body);let i=e.replace(t,"");return[n,i]}M("ignore",({el:e,directive:t})=>{t.modifiers.includes("self")?e.__livewire_ignore_self=!0:e.__livewire_ignore=!0});var Ra=new Ie;k("commit",({component:e,respond:t})=>{t(()=>{setTimeout(()=>{Ra.each(e,r=>r(!1))})})});M("dirty",({el:e,directive:t,component:r})=>{let n=sd(e),i=Alpine.reactive({state:!1}),o=!1,s=e.style.display,a=l=>{re(e,t,l,s),o=l};Ra.add(r,a),Alpine.effect(()=>{let l=!1;if(n.length===0)l=JSON.stringify(r.canonical)!==JSON.stringify(r.reactive);else for(let u=0;u<n.length&&!l;u++){let d=n[u];l=JSON.stringify(W(r.canonical,d))!==JSON.stringify(W(r.reactive,d))}o!==l&&a(l),o=l})});function sd(e){let t=pe(e),r=[];return t.has("model")&&r.push(t.get("model").expression),t.has("target")&&(r=r.concat(t.get("target").expression.split(",").map(n=>n.trim()))),r}M("model",({el:e,directive:t,component:r,cleanup:n})=>{let{expression:i,modifiers:o}=t;if(!i)return console.warn("Livewire: [wire:model] is missing a value.",e);if(Pa(r,i))return console.warn('Livewire: [wire:model="'+i+'"] property does not exist on component: ['+r.name+"]",e);if(e.type&&e.type.toLowerCase()==="file")return Zn(e,i,r,n);let s=o.includes("live"),a=o.includes("lazy")||o.includes("change"),l=o.includes("blur"),u=o.includes("debounce"),d=i.startsWith("$parent")?()=>r.$wire.$parent.$commit():()=>r.$wire.$commit(),p=ld(e)&&!u&&s?ud(d,150):d;S.bind(e,{["@change"](){a&&d()},["@blur"](){l&&d()},["x-model"+ad(o)](){return{get(){return W(r.$wire,i)},set(c){ve(r.$wire,i,c),s&&!a&&!l&&p()}}}})});function ad(e){return e=e.filter(t=>!["lazy","defer"].includes(t)),e.length===0?"":"."+e.join(".")}function ld(e){return["INPUT","TEXTAREA"].includes(e.tagName.toUpperCase())&&!["checkbox","radio"].includes(e.type)}function Pa(e,t){if(t.startsWith("$parent")){let n=z(e.el.parentElement,!1);return n?Pa(n,t.split("$parent.")[1]):!0}let r=t.split(".")[0];return!Object.keys(e.canonical).includes(r)}function ud(e,t){var r;return function(){var n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}M("init",({el:e,directive:t})=>{let r=t.expression??"$refresh";S.evaluate(e,`$wire.${r}`)});M("poll",({el:e,directive:t})=>{let r=yd(t.modifiers,2e3),{start:n,pauseWhile:i,throttleWhile:o,stopWhen:s}=fd(()=>{cd(e,t)},r);n(),o(()=>hd()&&gd(t)),i(()=>vd(t)&&bd(e)),i(()=>md(e)),i(()=>pd()),s(()=>wd(e))});function cd(e,t){S.evaluate(e,t.expression?"$wire."+t.expression:"$wire.$commit()")}function fd(e,t=2e3){let r=[],n=[],i=[];return{start(){let o=dd(t,()=>{if(i.some(s=>s()))return o();r.some(s=>s())||n.some(s=>s())&&Math.random()<.95||e()})},pauseWhile(o){r.push(o)},throttleWhile(o){n.push(o)},stopWhen(o){i.push(o)}}}var Re=[];function dd(e,t){if(!Re[e]){let r={timer:setInterval(()=>r.callbacks.forEach(n=>n()),e),callbacks:new Set};Re[e]=r}return Re[e].callbacks.add(t),()=>{Re[e].callbacks.delete(t),Re[e].callbacks.size===0&&(clearInterval(Re[e].timer),delete Re[e])}}var Kn=!1;window.addEventListener("offline",()=>Kn=!0);window.addEventListener("online",()=>Kn=!1);function pd(){return Kn}var Ia=!1;document.addEventListener("visibilitychange",()=>{Ia=document.hidden},!1);function hd(){return Ia}function md(e){return!pe(e).has("poll")}function gd(e){return!e.modifiers.includes("keep-alive")}function vd(e){return e.modifiers.includes("visible")}function bd(e){let t=e.getBoundingClientRect();return!(t.top<(window.innerHeight||document.documentElement.clientHeight)&&t.left<(window.innerWidth||document.documentElement.clientWidth)&&t.bottom>0&&t.right>0)}function wd(e){return e.isConnected===!1}function yd(e,t){let r,n=e.find(o=>o.match(/([0-9]+)ms/)),i=e.find(o=>o.match(/([0-9]+)s/));return n?r=Number(n.replace("ms","")):i&&(r=Number(i.replace("s",""))*1e3),r||t}var Ma={directive:M,dispatchTo:Ue,start:_a,first:Vo,find:zo,getByName:Ko,all:Jo,hook:k,trigger:R,triggerAsync:$t,dispatch:Go,on:Xo,get navigate(){return S.navigate}};window.Livewire&&console.warn("Detected multiple instances of Livewire running");window.Alpine&&console.warn("Detected multiple instances of Alpine running");window.Livewire=Ma;window.Alpine=S;window.livewireScriptConfig===void 0&&document.addEventListener("DOMContentLoaded",()=>{Ma.start()});})();
  "sourcesContent": ["/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress\n * @license MIT */\n\n;(function(root, factory) {\n\n  if (typeof define === 'function' && define.amd) {\n    define(factory);\n  } else if (typeof exports === 'object') {\n    module.exports = factory();\n  } else {\n    root.NProgress = factory();\n  }\n\n})(this, function() {\n  var NProgress = {};\n\n  NProgress.version = '0.2.0';\n\n  var Settings = NProgress.settings = {\n    minimum: 0.08,\n    easing: 'ease',\n    positionUsing: '',\n    speed: 200,\n    trickle: true,\n    trickleRate: 0.02,\n    trickleSpeed: 800,\n    showSpinner: true,\n    barSelector: '[role=\"bar\"]',\n    spinnerSelector: '[role=\"spinner\"]',\n    parent: 'body',\n    template: '<div class=\"bar\" role=\"bar\"><div class=\"peg\"></div></div><div class=\"spinner\" role=\"spinner\"><div class=\"spinner-icon\"></div></div>'\n  };\n\n  /**\n   * Updates configuration.\n   *\n   *     NProgress.configure({\n   *       minimum: 0.1\n   *     });\n   */\n  NProgress.configure = function(options) {\n    var key, value;\n    for (key in options) {\n      value = options[key];\n      if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value;\n    }\n\n    return this;\n  };\n\n  /**\n   * Last number.\n   */\n\n  NProgress.status = null;\n\n  /**\n   * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`.\n   *\n   *     NProgress.set(0.4);\n   *     NProgress.set(1.0);\n   */\n\n  NProgress.set = function(n) {\n    var started = NProgress.isStarted();\n\n    n = clamp(n, Settings.minimum, 1);\n    NProgress.status = (n === 1 ? null : n);\n\n    var progress = NProgress.render(!started),\n        bar      = progress.querySelector(Settings.barSelector),\n        speed    = Settings.speed,\n        ease     = Settings.easing;\n\n    progress.offsetWidth; /* Repaint */\n\n    queue(function(next) {\n      // Set positionUsing if it hasn't already been set\n      if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS();\n\n      // Add transition\n      css(bar, barPositionCSS(n, speed, ease));\n\n      if (n === 1) {\n        // Fade out\n        css(progress, { \n          transition: 'none', \n          opacity: 1 \n        });\n        progress.offsetWidth; /* Repaint */\n\n        setTimeout(function() {\n          css(progress, { \n            transition: 'all ' + speed + 'ms linear', \n            opacity: 0 \n          });\n          setTimeout(function() {\n            NProgress.remove();\n            next();\n          }, speed);\n        }, speed);\n      } else {\n        setTimeout(next, speed);\n      }\n    });\n\n    return this;\n  };\n\n  NProgress.isStarted = function() {\n    return typeof NProgress.status === 'number';\n  };\n\n  /**\n   * Shows the progress bar.\n   * This is the same as setting the status to 0%, except that it doesn't go backwards.\n   *\n   *     NProgress.start();\n   *\n   */\n  NProgress.start = function() {\n    if (!NProgress.status) NProgress.set(0);\n\n    var work = function() {\n      setTimeout(function() {\n        if (!NProgress.status) return;\n        NProgress.trickle();\n        work();\n      }, Settings.trickleSpeed);\n    };\n\n    if (Settings.trickle) work();\n\n    return this;\n  };\n\n  /**\n   * Hides the progress bar.\n   * This is the *sort of* the same as setting the status to 100%, with the\n   * difference being `done()` makes some placebo effect of some realistic motion.\n   *\n   *     NProgress.done();\n   *\n   * If `true` is passed, it will show the progress bar even if its hidden.\n   *\n   *     NProgress.done(true);\n   */\n\n  NProgress.done = function(force) {\n    if (!force && !NProgress.status) return this;\n\n    return NProgress.inc(0.3 + 0.5 * Math.random()).set(1);\n  };\n\n  /**\n   * Increments by a random amount.\n   */\n\n  NProgress.inc = function(amount) {\n    var n = NProgress.status;\n\n    if (!n) {\n      return NProgress.start();\n    } else {\n      if (typeof amount !== 'number') {\n        amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95);\n      }\n\n      n = clamp(n + amount, 0, 0.994);\n      return NProgress.set(n);\n    }\n  };\n\n  NProgress.trickle = function() {\n    return NProgress.inc(Math.random() * Settings.trickleRate);\n  };\n\n  /**\n   * Waits for all supplied jQuery promises and\n   * increases the progress as the promises resolve.\n   *\n   * @param $promise jQUery Promise\n   */\n  (function() {\n    var initial = 0, current = 0;\n\n    NProgress.promise = function($promise) {\n      if (!$promise || $promise.state() === \"resolved\") {\n        return this;\n      }\n\n      if (current === 0) {\n        NProgress.start();\n      }\n\n      initial++;\n      current++;\n\n      $promise.always(function() {\n        current--;\n        if (current === 0) {\n            initial = 0;\n            NProgress.done();\n        } else {\n            NProgress.set((initial - current) / initial);\n        }\n      });\n\n      return this;\n    };\n\n  })();\n\n  /**\n   * (Internal) renders the progress bar markup based on the `template`\n   * setting.\n   */\n\n  NProgress.render = function(fromStart) {\n    if (NProgress.isRendered()) return document.getElementById('nprogress');\n\n    addClass(document.documentElement, 'nprogress-busy');\n    \n    var progress = document.createElement('div');\n    progress.id = 'nprogress';\n    progress.innerHTML = Settings.template;\n\n    var bar      = progress.querySelector(Settings.barSelector),\n        perc     = fromStart ? '-100' : toBarPerc(NProgress.status || 0),\n        parent   = document.querySelector(Settings.parent),\n        spinner;\n    \n    css(bar, {\n      transition: 'all 0 linear',\n      transform: 'translate3d(' + perc + '%,0,0)'\n    });\n\n    if (!Settings.showSpinner) {\n      spinner = progress.querySelector(Settings.spinnerSelector);\n      spinner && removeElement(spinner);\n    }\n\n    if (parent != document.body) {\n      addClass(parent, 'nprogress-custom-parent');\n    }\n\n    parent.appendChild(progress);\n    return progress;\n  };\n\n  /**\n   * Removes the element. Opposite of render().\n   */\n\n  NProgress.remove = function() {\n    removeClass(document.documentElement, 'nprogress-busy');\n    removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent');\n    var progress = document.getElementById('nprogress');\n    progress && removeElement(progress);\n  };\n\n  /**\n   * Checks if the progress bar is rendered.\n   */\n\n  NProgress.isRendered = function() {\n    return !!document.getElementById('nprogress');\n  };\n\n  /**\n   * Determine which positioning CSS rule to use.\n   */\n\n  NProgress.getPositioningCSS = function() {\n    // Sniff on document.body.style\n    var bodyStyle = document.body.style;\n\n    // Sniff prefixes\n    var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' :\n                       ('MozTransform' in bodyStyle) ? 'Moz' :\n                       ('msTransform' in bodyStyle) ? 'ms' :\n                       ('OTransform' in bodyStyle) ? 'O' : '';\n\n    if (vendorPrefix + 'Perspective' in bodyStyle) {\n      // Modern browsers with 3D support, e.g. Webkit, IE10\n      return 'translate3d';\n    } else if (vendorPrefix + 'Transform' in bodyStyle) {\n      // Browsers without 3D support, e.g. IE9\n      return 'translate';\n    } else {\n      // Browsers without translate() support, e.g. IE7-8\n      return 'margin';\n    }\n  };\n\n  /**\n   * Helpers\n   */\n\n  function clamp(n, min, max) {\n    if (n < min) return min;\n    if (n > max) return max;\n    return n;\n  }\n\n  /**\n   * (Internal) converts a percentage (`0..1`) to a bar translateX\n   * percentage (`-100%..0%`).\n   */\n\n  function toBarPerc(n) {\n    return (-1 + n) * 100;\n  }\n\n\n  /**\n   * (Internal) returns the correct CSS for changing the bar's\n   * position given an n percentage, and speed and ease from Settings\n   */\n\n  function barPositionCSS(n, speed, ease) {\n    var barCSS;\n\n    if (Settings.positionUsing === 'translate3d') {\n      barCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' };\n    } else if (Settings.positionUsing === 'translate') {\n      barCSS = { transform: 'translate('+toBarPerc(n)+'%,0)' };\n    } else {\n      barCSS = { 'margin-left': toBarPerc(n)+'%' };\n    }\n\n    barCSS.transition = 'all '+speed+'ms '+ease;\n\n    return barCSS;\n  }\n\n  /**\n   * (Internal) Queues a function to be executed.\n   */\n\n  var queue = (function() {\n    var pending = [];\n    \n    function next() {\n      var fn = pending.shift();\n      if (fn) {\n        fn(next);\n      }\n    }\n\n    return function(fn) {\n      pending.push(fn);\n      if (pending.length == 1) next();\n    };\n  })();\n\n  /**\n   * (Internal) Applies css properties to an element, similar to the jQuery \n   * css method.\n   *\n   * While this helper does assist with vendor prefixed property names, it \n   * does not perform any manipulation of values prior to setting styles.\n   */\n\n  var css = (function() {\n    var cssPrefixes = [ 'Webkit', 'O', 'Moz', 'ms' ],\n        cssProps    = {};\n\n    function camelCase(string) {\n      return string.replace(/^-ms-/, 'ms-').replace(/-([\\da-z])/gi, function(match, letter) {\n        return letter.toUpperCase();\n      });\n    }\n\n    function getVendorProp(name) {\n      var style = document.body.style;\n      if (name in style) return name;\n\n      var i = cssPrefixes.length,\n          capName = name.charAt(0).toUpperCase() + name.slice(1),\n          vendorName;\n      while (i--) {\n        vendorName = cssPrefixes[i] + capName;\n        if (vendorName in style) return vendorName;\n      }\n\n      return name;\n    }\n\n    function getStyleProp(name) {\n      name = camelCase(name);\n      return cssProps[name] || (cssProps[name] = getVendorProp(name));\n    }\n\n    function applyCss(element, prop, value) {\n      prop = getStyleProp(prop);\n      element.style[prop] = value;\n    }\n\n    return function(element, properties) {\n      var args = arguments,\n          prop, \n          value;\n\n      if (args.length == 2) {\n        for (prop in properties) {\n          value = properties[prop];\n          if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value);\n        }\n      } else {\n        applyCss(element, args[1], args[2]);\n      }\n    }\n  })();\n\n  /**\n   * (Internal) Determines if an element or space separated list of class names contains a class name.\n   */\n\n  function hasClass(element, name) {\n    var list = typeof element == 'string' ? element : classList(element);\n    return list.indexOf(' ' + name + ' ') >= 0;\n  }\n\n  /**\n   * (Internal) Adds a class to an element.\n   */\n\n  function addClass(element, name) {\n    var oldList = classList(element),\n        newList = oldList + name;\n\n    if (hasClass(oldList, name)) return; \n\n    // Trim the opening space.\n    element.className = newList.substring(1);\n  }\n\n  /**\n   * (Internal) Removes a class from an element.\n   */\n\n  function removeClass(element, name) {\n    var oldList = classList(element),\n        newList;\n\n    if (!hasClass(element, name)) return;\n\n    // Replace the class name.\n    newList = oldList.replace(' ' + name + ' ', ' ');\n\n    // Trim the opening and closing spaces.\n    element.className = newList.substring(1, newList.length - 1);\n  }\n\n  /**\n   * (Internal) Gets a space separated list of the class names on the element. \n   * The list is wrapped with a single space on each end to facilitate finding \n   * matches within the list.\n   */\n\n  function classList(element) {\n    return (' ' + (element.className || '') + ' ').replace(/\\s+/gi, ' ');\n  }\n\n  /**\n   * (Internal) Removes an element from the DOM.\n   */\n\n  function removeElement(element) {\n    element && element.parentNode && element.parentNode.removeChild(element);\n  }\n\n  return NProgress;\n});\n\n", "\nexport class Bag {\n    constructor() { this.arrays = {} }\n\n    add(key, value) {\n        if (! this.arrays[key]) this.arrays[key] = []\n        this.arrays[key].push(value)\n    }\n\n    get(key) { return this.arrays[key] || [] }\n\n    each(key, callback) { return this.get(key).forEach(callback) }\n}\n\nexport class WeakBag {\n    constructor() { this.arrays = new WeakMap }\n\n    add(key, value) {\n        if (! this.arrays.has(key) ) this.arrays.set(key, [])\n        this.arrays.get(key).push(value)\n    }\n\n    get(key) { return this.arrays.has(key) ? this.arrays.get(key) : [] }\n\n    each(key, callback) { return this.get(key).forEach(callback) }\n}\n\nexport function dispatch(el, name, detail = {}, bubbles = true) {\n    el.dispatchEvent(\n        new CustomEvent(name, {\n            detail,\n            bubbles,\n            // Allows events to pass the shadow DOM barrier.\n            composed: true,\n            cancelable: true,\n        })\n    )\n}\n\n/**\n * Type-checking in JS is weird and annoying, these are better.\n */\nexport function isObjecty(subject) { return (typeof subject === 'object' && subject !== null) }\nexport function isObject(subject) { return (isObjecty(subject) && ! isArray(subject)) }\nexport function isArray(subject) { return Array.isArray(subject) }\nexport function isFunction(subject) { return typeof subject === 'function' }\nexport function isPrimitive(subject) { return typeof subject !== 'object' || subject === null }\n\n/**\n * Clone an object deeply to wipe out any shared references.\n */\nexport function deepClone(obj) { return JSON.parse(JSON.stringify(obj)) }\n\n/**\n * Determine if two objects take the exact same shape.\n */\nexport function deeplyEqual(a, b) { return JSON.stringify(a) === JSON.stringify(b) }\n\n/**\n * An easy way to loop through arrays and objects.\n */\nexport function each(subject, callback) {\n    Object.entries(subject).forEach(([key, value]) => callback(key, value))\n}\n\n/**\n * Get a property from an object with support for dot-notation.\n */\nexport function dataGet(object, key) {\n    if (key === '') return object\n\n    return key.split('.').reduce((carry, i) => {\n        if (carry === undefined) return undefined\n\n        return carry[i]\n    }, object)\n}\n\n/**\n * Set a property on an object with support for dot-notation.\n */\nexport function dataSet(object, key, value) {\n    let segments = key.split('.')\n\n    if (segments.length === 1) {\n        return object[key] = value\n    }\n\n    let firstSegment = segments.shift()\n    let restOfSegments = segments.join('.')\n\n    if (object[firstSegment] === undefined) {\n        object[firstSegment] = {}\n    }\n\n    dataSet(object[firstSegment], restOfSegments, value)\n}\n\n/**\n * Create a flat, dot-notated diff of two obejcts.\n */\nexport function diff(left, right, diffs = {}, path = '') {\n    // Are they the same?\n    if (left === right) return diffs\n\n    // Are they COMPLETELY different?\n    if (typeof left !== typeof right || (isObject(left) && isArray(right)) || (isArray(left) && isObject(right))) {\n        diffs[path] = right;\n        return diffs\n    }\n\n    // Is the right or left side a primitive value (a leaf node)?\n    if (isPrimitive(left) || isPrimitive(right)) {\n        diffs[path] = right\n        return diffs\n    }\n\n    // We now know both are objects...\n    let leftKeys = Object.keys(left)\n\n    // Recursively diff the object's properties...\n    Object.entries(right).forEach(([key, value]) => {\n        diffs = {...diffs, ...diff(left[key], right[key], diffs, path === '' ? key : `${path}.${key}`)}\n        leftKeys = leftKeys.filter(i => i !== key)\n    })\n\n    // Mark any items for removal...\n    leftKeys.forEach(key => {\n        diffs[`${path}.${key}`] = '__rm__'\n    })\n\n    return diffs\n}\n\n/**\n * The data that's passed between the browser and server is in the form of\n * nested tuples consisting of the schema: [rawValue, metadata]. In this\n * method we're extracting the plain JS object of only the raw values.\n */\nexport function extractData(payload) {\n    let value = isSynthetic(payload) ? payload[0] : payload\n    let meta = isSynthetic(payload) ? payload[1] : undefined\n\n    if (isObjecty(value)) {\n        Object.entries(value).forEach(([key, iValue]) => {\n            value[key] = extractData(iValue)\n        })\n    }\n\n    return value\n}\n\n/**\n * Determine if the variable passed in is a node in a nested metadata\n * tuple tree. (Meaning it takes the form of: [rawData, metadata])\n */\nexport function isSynthetic(subject) {\n    return Array.isArray(subject)\n        && subject.length === 2\n        && typeof subject[1] === 'object'\n        && Object.keys(subject[1]).includes('s')\n}\n\n/**\n * Post requests in Laravel require a csrf token to be passed\n * along with the payload. Here, we'll try and locate one.\n */\nexport function getCsrfToken() {\n    // Purposely not caching. Fetching it fresh every time ensures we're\n    // not depending on a stale session's CSRF token...\n\n    if (document.querySelector('meta[name=\"csrf-token\"]')) {\n        return document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content')\n    }\n\n    if (document.querySelector('[data-csrf]')) {\n        return document.querySelector('[data-csrf]').getAttribute('data-csrf')\n    }\n\n    if (window.livewireScriptConfig['csrf'] ?? false) {\n        return window.livewireScriptConfig['csrf']\n    }\n\n    throw 'Livewire: No CSRF token detected'\n}\n\nlet nonce;\n\nexport function getNonce() {\n    if (nonce) return nonce\n\n\n    if (window.livewireScriptConfig && (window.livewireScriptConfig['nonce'] ?? false)) {\n        nonce = window.livewireScriptConfig['nonce']\n\n        return nonce\n    }\n\n    const elWithNonce = document.querySelector('style[data-livewire-style][nonce]')\n\n    if (elWithNonce) {\n        nonce = elWithNonce.nonce\n\n        return nonce\n    }\n\n    return null\n}\n\n/**\n * Livewire's update URI. This is configurable via Livewire::setUpdateRoute(...)\n */\nexport function getUpdateUri() {\n    return document.querySelector('[data-update-uri]')?.getAttribute('data-update-uri') ?? window.livewireScriptConfig['uri'] ?? null\n}\n\nexport function contentIsFromDump(content) {\n    return !! content.match(/<script>Sfdump\\(\".+\"\\)<\\/script>/)\n}\n\nexport function splitDumpFromContent(content) {\n    let dump = content.match(/.*<script>Sfdump\\(\".+\"\\)<\\/script>/s)\n\n    return [dump, content.replace(dump, '')]\n}\n", "import { getCsrfToken } from '@/utils';\n\nlet uploadManagers = new WeakMap\n\nfunction getUploadManager(component) {\n    if (! uploadManagers.has(component)) {\n        let manager = new UploadManager(component)\n\n        uploadManagers.set(component, manager)\n\n        manager.registerListeners()\n    }\n\n    return uploadManagers.get(component)\n}\n\nexport function handleFileUpload(el, property, component, cleanup) {\n    let manager = getUploadManager(component)\n\n    let start = () => el.dispatchEvent(new CustomEvent('livewire-upload-start', { bubbles: true, detail: { id: component.id, property} }))\n    let finish = () => el.dispatchEvent(new CustomEvent('livewire-upload-finish', { bubbles: true, detail: { id: component.id, property} }))\n    let error = () => el.dispatchEvent(new CustomEvent('livewire-upload-error', { bubbles: true, detail: { id: component.id, property} }))\n    let cancel = () => el.dispatchEvent(new CustomEvent('livewire-upload-cancel', { bubbles: true, detail: { id: component.id, property} }))\n    let progress = (progressEvent) => {\n        var percentCompleted = Math.round( (progressEvent.loaded * 100) / progressEvent.total )\n\n        el.dispatchEvent(\n            new CustomEvent('livewire-upload-progress', {\n                bubbles: true, detail: { progress: percentCompleted }\n            })\n        )\n    }\n\n    let eventHandler = e => {\n        if (e.target.files.length === 0) return\n\n        start()\n\n        if (e.target.multiple) {\n            manager.uploadMultiple(property, e.target.files, finish, error, progress, cancel)\n        } else {\n            manager.upload(property, e.target.files[0], finish, error, progress, cancel)\n        }\n    }\n\n    el.addEventListener('change', eventHandler)\n\n    // There's a bug in browsers where selecting a file, removing it,\n    // then re-adding it doesn't fire the change event. This fixes it.\n    // Reference: https://stackoverflow.com/questions/12030686/html-input-file-selection-event-not-firing-upon-selecting-the-same-file\n    let clearFileInputValue = () => { el.value = null }\n    el.addEventListener('click', clearFileInputValue)\n\n    // Clear the input if the uploaded is cancelled...\n    el.addEventListener('livewire-upload-cancel', clearFileInputValue)\n\n    cleanup(() => {\n        el.removeEventListener('change', eventHandler)\n        el.removeEventListener('click', clearFileInputValue)\n    })\n}\n\nclass UploadManager {\n    constructor(component) {\n        this.component = component\n        this.uploadBag = new MessageBag\n        this.removeBag = new MessageBag\n    }\n\n    registerListeners() {\n        this.component.$wire.$on('upload:generatedSignedUrl', ({ name, url }) => {\n            // We have to add reduntant \"setLoading\" calls because the dom-patch\n            // from the first response will clear the setUploadLoading call\n            // from the first upload call.\n            setUploadLoading(this.component, name)\n\n            this.handleSignedUrl(name, url)\n        })\n\n        this.component.$wire.$on('upload:generatedSignedUrlForS3', ({ name, payload }) => {\n            setUploadLoading(this.component, name)\n\n            this.handleS3PreSignedUrl(name, payload)\n        })\n\n        this.component.$wire.$on('upload:finished', ({ name, tmpFilenames }) => this.markUploadFinished(name, tmpFilenames))\n        this.component.$wire.$on('upload:errored', ({ name }) => this.markUploadErrored(name))\n        this.component.$wire.$on('upload:removed', ({ name, tmpFilename }) => this.removeBag.shift(name).finishCallback(tmpFilename))\n    }\n\n    upload(name, file, finishCallback, errorCallback, progressCallback, cancelledCallback) {\n        this.setUpload(name, {\n            files: [file],\n            multiple: false,\n            finishCallback,\n            errorCallback,\n            progressCallback,\n            cancelledCallback,\n        })\n    }\n\n    uploadMultiple(name, files, finishCallback, errorCallback, progressCallback, cancelledCallback) {\n        this.setUpload(name, {\n            files: Array.from(files),\n            multiple: true,\n            finishCallback,\n            errorCallback,\n            progressCallback,\n            cancelledCallback,\n        })\n    }\n\n    removeUpload(name, tmpFilename, finishCallback) {\n        this.removeBag.push(name, {\n            tmpFilename, finishCallback\n        })\n\n        this.component.$wire.call('_removeUpload', name, tmpFilename);\n    }\n\n    setUpload(name, uploadObject) {\n        this.uploadBag.add(name, uploadObject)\n\n        if (this.uploadBag.get(name).length === 1) {\n            this.startUpload(name, uploadObject)\n        }\n    }\n\n    handleSignedUrl(name, url) {\n        let formData = new FormData()\n        Array.from(this.uploadBag.first(name).files).forEach(file => formData.append('files[]', file, file.name))\n\n        let headers = {\n            'Accept': 'application/json',\n        }\n\n        let csrfToken = getCsrfToken()\n\n        if (csrfToken) headers['X-CSRF-TOKEN'] = csrfToken\n\n        this.makeRequest(name, formData, 'post', url, headers, response => {\n            return response.paths\n        })\n    }\n\n    handleS3PreSignedUrl(name, payload) {\n        let formData = this.uploadBag.first(name).files[0]\n\n        let headers = payload.headers\n        if ('Host' in headers) delete headers.Host\n        let url = payload.url\n\n        this.makeRequest(name, formData, 'put', url, headers, response => {\n            return [payload.path]\n        })\n    }\n\n    makeRequest(name, formData, method, url, headers, retrievePaths) {\n        let request = new XMLHttpRequest()\n\n        request.open(method, url)\n\n        Object.entries(headers).forEach(([key, value]) => {\n            request.setRequestHeader(key, value)\n        })\n\n        request.upload.addEventListener('progress', e => {\n            e.detail = {}\n            e.detail.progress = Math.round((e.loaded * 100) / e.total)\n\n            this.uploadBag.first(name).progressCallback(e)\n        })\n\n        request.addEventListener('load', () => {\n            if ((request.status+'')[0] === '2') {\n                let paths = retrievePaths(request.response && JSON.parse(request.response))\n\n                this.component.$wire.call('_finishUpload', name, paths, this.uploadBag.first(name).multiple)\n\n                return\n            }\n\n            let errors = null\n\n            if (request.status === 422) {\n                errors = request.response\n            }\n\n            this.component.$wire.call('_uploadErrored', name, errors, this.uploadBag.first(name).multiple)\n        })\n\n        this.uploadBag.first(name).request = request\n\n        request.send(formData)\n    }\n\n    startUpload(name, uploadObject) {\n        let fileInfos = uploadObject.files.map(file => {\n            return { name: file.name, size: file.size, type: file.type }\n        })\n\n        this.component.$wire.call('_startUpload', name, fileInfos, uploadObject.multiple);\n\n        setUploadLoading(this.component, name)\n    }\n\n    markUploadFinished(name, tmpFilenames) {\n        unsetUploadLoading(this.component)\n\n        let uploadObject = this.uploadBag.shift(name)\n        uploadObject.finishCallback(uploadObject.multiple ? tmpFilenames : tmpFilenames[0])\n\n        if (this.uploadBag.get(name).length > 0) this.startUpload(name, this.uploadBag.last(name))\n    }\n\n    markUploadErrored(name) {\n        unsetUploadLoading(this.component)\n\n        this.uploadBag.shift(name).errorCallback()\n\n        if (this.uploadBag.get(name).length > 0) this.startUpload(name, this.uploadBag.last(name))\n    }\n\n    cancelUpload(name, cancelledCallback = null) {\n        unsetUploadLoading(this.component)\n\n        let uploadItem = this.uploadBag.first(name);\n\n        if (uploadItem) {\n            uploadItem.request.abort();\n\n            this.uploadBag.shift(name).cancelledCallback();\n\n            if (cancelledCallback) cancelledCallback()\n        }\n    }\n}\n\nexport default class MessageBag {\n    constructor() {\n        this.bag = {}\n    }\n\n    add(name, thing) {\n        if (! this.bag[name]) {\n            this.bag[name] = []\n        }\n\n        this.bag[name].push(thing)\n    }\n\n    push(name, thing) {\n        this.add(name, thing)\n    }\n\n    first(name) {\n        if (! this.bag[name]) return null\n\n        return this.bag[name][0]\n    }\n\n    last(name) {\n        return this.bag[name].slice(-1)[0]\n    }\n\n    get(name) {\n        return this.bag[name]\n    }\n\n    shift(name) {\n        return this.bag[name].shift()\n    }\n\n    call(name, ...params) {\n        (this.listeners[name] || []).forEach(callback => {\n            callback(...params)\n        })\n    }\n\n    has(name) {\n        return Object.keys(this.listeners).includes(name)\n    }\n}\n\nfunction setUploadLoading() {\n    // @todo\n}\n\nfunction unsetUploadLoading() {\n    // @todo\n}\n\nexport function upload(\n    component,\n    name,\n    file,\n    finishCallback = () => { },\n    errorCallback = () => { },\n    progressCallback = () => { },\n    cancelledCallback = () => { },\n) {\n    let uploadManager = getUploadManager(component)\n\n    uploadManager.upload(\n        name,\n        file,\n        finishCallback,\n        errorCallback,\n        progressCallback,\n        cancelledCallback,\n    )\n}\n\nexport function uploadMultiple(\n    component,\n    name,\n    files,\n    finishCallback = () => { },\n    errorCallback = () => { },\n    progressCallback = () => { },\n    cancelledCallback = () => { },\n) {\n    let uploadManager = getUploadManager(component)\n\n    uploadManager.uploadMultiple(\n        name,\n        files,\n        finishCallback,\n        errorCallback,\n        progressCallback,\n        cancelledCallback,\n    )\n}\n\nexport function removeUpload(\n    component,\n    name,\n    tmpFilename,\n    finishCallback = () => { },\n    errorCallback = () => { }\n) {\n    let uploadManager = getUploadManager(component)\n\n    uploadManager.removeUpload(\n        name,\n        tmpFilename,\n        finishCallback,\n        errorCallback\n    )\n}\n\nexport function cancelUpload(\n    component,\n    name,\n    cancelledCallback = () => { }\n) {\n    let uploadManager = getUploadManager(component)\n\n    uploadManager.cancelUpload(\n        name,\n        cancelledCallback\n    )\n}\n", "// packages/alpinejs/src/scheduler.js\nvar flushPending = false;\nvar flushing = false;\nvar queue = [];\nvar lastFlushedIndex = -1;\nfunction scheduler(callback) {\n  queueJob(callback);\n}\nfunction queueJob(job) {\n  if (!queue.includes(job))\n    queue.push(job);\n  queueFlush();\n}\nfunction dequeueJob(job) {\n  let index = queue.indexOf(job);\n  if (index !== -1 && index > lastFlushedIndex)\n    queue.splice(index, 1);\n}\nfunction queueFlush() {\n  if (!flushing && !flushPending) {\n    flushPending = true;\n    queueMicrotask(flushJobs);\n  }\n}\nfunction flushJobs() {\n  flushPending = false;\n  flushing = true;\n  for (let i = 0; i < queue.length; i++) {\n    queue[i]();\n    lastFlushedIndex = i;\n  }\n  queue.length = 0;\n  lastFlushedIndex = -1;\n  flushing = false;\n}\n\n// packages/alpinejs/src/reactivity.js\nvar reactive;\nvar effect;\nvar release;\nvar raw;\nvar shouldSchedule = true;\nfunction disableEffectScheduling(callback) {\n  shouldSchedule = false;\n  callback();\n  shouldSchedule = true;\n}\nfunction setReactivityEngine(engine) {\n  reactive = engine.reactive;\n  release = engine.release;\n  effect = (callback) => engine.effect(callback, { scheduler: (task) => {\n    if (shouldSchedule) {\n      scheduler(task);\n    } else {\n      task();\n    }\n  } });\n  raw = engine.raw;\n}\nfunction overrideEffect(override) {\n  effect = override;\n}\nfunction elementBoundEffect(el) {\n  let cleanup2 = () => {\n  };\n  let wrappedEffect = (callback) => {\n    let effectReference = effect(callback);\n    if (!el._x_effects) {\n      el._x_effects = /* @__PURE__ */ new Set();\n      el._x_runEffects = () => {\n        el._x_effects.forEach((i) => i());\n      };\n    }\n    el._x_effects.add(effectReference);\n    cleanup2 = () => {\n      if (effectReference === void 0)\n        return;\n      el._x_effects.delete(effectReference);\n      release(effectReference);\n    };\n    return effectReference;\n  };\n  return [wrappedEffect, () => {\n    cleanup2();\n  }];\n}\nfunction watch(getter, callback) {\n  let firstTime = true;\n  let oldValue;\n  let effectReference = effect(() => {\n    let value = getter();\n    JSON.stringify(value);\n    if (!firstTime) {\n      queueMicrotask(() => {\n        callback(value, oldValue);\n        oldValue = value;\n      });\n    } else {\n      oldValue = value;\n    }\n    firstTime = false;\n  });\n  return () => release(effectReference);\n}\n\n// packages/alpinejs/src/utils/dispatch.js\nfunction dispatch(el, name, detail = {}) {\n  el.dispatchEvent(\n    new CustomEvent(name, {\n      detail,\n      bubbles: true,\n      // Allows events to pass the shadow DOM barrier.\n      composed: true,\n      cancelable: true\n    })\n  );\n}\n\n// packages/alpinejs/src/utils/walk.js\nfunction walk(el, callback) {\n  if (typeof ShadowRoot === \"function\" && el instanceof ShadowRoot) {\n    Array.from(el.children).forEach((el2) => walk(el2, callback));\n    return;\n  }\n  let skip = false;\n  callback(el, () => skip = true);\n  if (skip)\n    return;\n  let node = el.firstElementChild;\n  while (node) {\n    walk(node, callback, false);\n    node = node.nextElementSibling;\n  }\n}\n\n// packages/alpinejs/src/utils/warn.js\nfunction warn(message, ...args) {\n  console.warn(`Alpine Warning: ${message}`, ...args);\n}\n\n// packages/alpinejs/src/lifecycle.js\nvar started = false;\nfunction start() {\n  if (started)\n    warn(\"Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems.\");\n  started = true;\n  if (!document.body)\n    warn(\"Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?\");\n  dispatch(document, \"alpine:init\");\n  dispatch(document, \"alpine:initializing\");\n  startObservingMutations();\n  onElAdded((el) => initTree(el, walk));\n  onElRemoved((el) => destroyTree(el));\n  onAttributesAdded((el, attrs) => {\n    directives(el, attrs).forEach((handle) => handle());\n  });\n  let outNestedComponents = (el) => !closestRoot(el.parentElement, true);\n  Array.from(document.querySelectorAll(allSelectors().join(\",\"))).filter(outNestedComponents).forEach((el) => {\n    initTree(el);\n  });\n  dispatch(document, \"alpine:initialized\");\n}\nvar rootSelectorCallbacks = [];\nvar initSelectorCallbacks = [];\nfunction rootSelectors() {\n  return rootSelectorCallbacks.map((fn) => fn());\n}\nfunction allSelectors() {\n  return rootSelectorCallbacks.concat(initSelectorCallbacks).map((fn) => fn());\n}\nfunction addRootSelector(selectorCallback) {\n  rootSelectorCallbacks.push(selectorCallback);\n}\nfunction addInitSelector(selectorCallback) {\n  initSelectorCallbacks.push(selectorCallback);\n}\nfunction closestRoot(el, includeInitSelectors = false) {\n  return findClosest(el, (element) => {\n    const selectors = includeInitSelectors ? allSelectors() : rootSelectors();\n    if (selectors.some((selector) => element.matches(selector)))\n      return true;\n  });\n}\nfunction findClosest(el, callback) {\n  if (!el)\n    return;\n  if (callback(el))\n    return el;\n  if (el._x_teleportBack)\n    el = el._x_teleportBack;\n  if (!el.parentElement)\n    return;\n  return findClosest(el.parentElement, callback);\n}\nfunction isRoot(el) {\n  return rootSelectors().some((selector) => el.matches(selector));\n}\nvar initInterceptors = [];\nfunction interceptInit(callback) {\n  initInterceptors.push(callback);\n}\nfunction initTree(el, walker = walk, intercept = () => {\n}) {\n  deferHandlingDirectives(() => {\n    walker(el, (el2, skip) => {\n      intercept(el2, skip);\n      initInterceptors.forEach((i) => i(el2, skip));\n      directives(el2, el2.attributes).forEach((handle) => handle());\n      el2._x_ignore && skip();\n    });\n  });\n}\nfunction destroyTree(root, walker = walk) {\n  walker(root, (el) => {\n    cleanupAttributes(el);\n    cleanupElement(el);\n  });\n}\n\n// packages/alpinejs/src/mutation.js\nvar onAttributeAddeds = [];\nvar onElRemoveds = [];\nvar onElAddeds = [];\nfunction onElAdded(callback) {\n  onElAddeds.push(callback);\n}\nfunction onElRemoved(el, callback) {\n  if (typeof callback === \"function\") {\n    if (!el._x_cleanups)\n      el._x_cleanups = [];\n    el._x_cleanups.push(callback);\n  } else {\n    callback = el;\n    onElRemoveds.push(callback);\n  }\n}\nfunction onAttributesAdded(callback) {\n  onAttributeAddeds.push(callback);\n}\nfunction onAttributeRemoved(el, name, callback) {\n  if (!el._x_attributeCleanups)\n    el._x_attributeCleanups = {};\n  if (!el._x_attributeCleanups[name])\n    el._x_attributeCleanups[name] = [];\n  el._x_attributeCleanups[name].push(callback);\n}\nfunction cleanupAttributes(el, names) {\n  if (!el._x_attributeCleanups)\n    return;\n  Object.entries(el._x_attributeCleanups).forEach(([name, value]) => {\n    if (names === void 0 || names.includes(name)) {\n      value.forEach((i) => i());\n      delete el._x_attributeCleanups[name];\n    }\n  });\n}\nfunction cleanupElement(el) {\n  if (el._x_cleanups) {\n    while (el._x_cleanups.length)\n      el._x_cleanups.pop()();\n  }\n}\nvar observer = new MutationObserver(onMutate);\nvar currentlyObserving = false;\nfunction startObservingMutations() {\n  observer.observe(document, { subtree: true, childList: true, attributes: true, attributeOldValue: true });\n  currentlyObserving = true;\n}\nfunction stopObservingMutations() {\n  flushObserver();\n  observer.disconnect();\n  currentlyObserving = false;\n}\nvar queuedMutations = [];\nfunction flushObserver() {\n  let records = observer.takeRecords();\n  queuedMutations.push(() => records.length > 0 && onMutate(records));\n  let queueLengthWhenTriggered = queuedMutations.length;\n  queueMicrotask(() => {\n    if (queuedMutations.length === queueLengthWhenTriggered) {\n      while (queuedMutations.length > 0)\n        queuedMutations.shift()();\n    }\n  });\n}\nfunction mutateDom(callback) {\n  if (!currentlyObserving)\n    return callback();\n  stopObservingMutations();\n  let result = callback();\n  startObservingMutations();\n  return result;\n}\nvar isCollecting = false;\nvar deferredMutations = [];\nfunction deferMutations() {\n  isCollecting = true;\n}\nfunction flushAndStopDeferringMutations() {\n  isCollecting = false;\n  onMutate(deferredMutations);\n  deferredMutations = [];\n}\nfunction onMutate(mutations) {\n  if (isCollecting) {\n    deferredMutations = deferredMutations.concat(mutations);\n    return;\n  }\n  let addedNodes = /* @__PURE__ */ new Set();\n  let removedNodes = /* @__PURE__ */ new Set();\n  let addedAttributes = /* @__PURE__ */ new Map();\n  let removedAttributes = /* @__PURE__ */ new Map();\n  for (let i = 0; i < mutations.length; i++) {\n    if (mutations[i].target._x_ignoreMutationObserver)\n      continue;\n    if (mutations[i].type === \"childList\") {\n      mutations[i].addedNodes.forEach((node) => node.nodeType === 1 && addedNodes.add(node));\n      mutations[i].removedNodes.forEach((node) => node.nodeType === 1 && removedNodes.add(node));\n    }\n    if (mutations[i].type === \"attributes\") {\n      let el = mutations[i].target;\n      let name = mutations[i].attributeName;\n      let oldValue = mutations[i].oldValue;\n      let add2 = () => {\n        if (!addedAttributes.has(el))\n          addedAttributes.set(el, []);\n        addedAttributes.get(el).push({ name, value: el.getAttribute(name) });\n      };\n      let remove = () => {\n        if (!removedAttributes.has(el))\n          removedAttributes.set(el, []);\n        removedAttributes.get(el).push(name);\n      };\n      if (el.hasAttribute(name) && oldValue === null) {\n        add2();\n      } else if (el.hasAttribute(name)) {\n        remove();\n        add2();\n      } else {\n        remove();\n      }\n    }\n  }\n  removedAttributes.forEach((attrs, el) => {\n    cleanupAttributes(el, attrs);\n  });\n  addedAttributes.forEach((attrs, el) => {\n    onAttributeAddeds.forEach((i) => i(el, attrs));\n  });\n  for (let node of removedNodes) {\n    if (addedNodes.has(node))\n      continue;\n    onElRemoveds.forEach((i) => i(node));\n    destroyTree(node);\n  }\n  addedNodes.forEach((node) => {\n    node._x_ignoreSelf = true;\n    node._x_ignore = true;\n  });\n  for (let node of addedNodes) {\n    if (removedNodes.has(node))\n      continue;\n    if (!node.isConnected)\n      continue;\n    delete node._x_ignoreSelf;\n    delete node._x_ignore;\n    onElAddeds.forEach((i) => i(node));\n    node._x_ignore = true;\n    node._x_ignoreSelf = true;\n  }\n  addedNodes.forEach((node) => {\n    delete node._x_ignoreSelf;\n    delete node._x_ignore;\n  });\n  addedNodes = null;\n  removedNodes = null;\n  addedAttributes = null;\n  removedAttributes = null;\n}\n\n// packages/alpinejs/src/scope.js\nfunction scope(node) {\n  return mergeProxies(closestDataStack(node));\n}\nfunction addScopeToNode(node, data2, referenceNode) {\n  node._x_dataStack = [data2, ...closestDataStack(referenceNode || node)];\n  return () => {\n    node._x_dataStack = node._x_dataStack.filter((i) => i !== data2);\n  };\n}\nfunction closestDataStack(node) {\n  if (node._x_dataStack)\n    return node._x_dataStack;\n  if (typeof ShadowRoot === \"function\" && node instanceof ShadowRoot) {\n    return closestDataStack(node.host);\n  }\n  if (!node.parentNode) {\n    return [];\n  }\n  return closestDataStack(node.parentNode);\n}\nfunction mergeProxies(objects) {\n  return new Proxy({ objects }, mergeProxyTrap);\n}\nvar mergeProxyTrap = {\n  ownKeys({ objects }) {\n    return Array.from(\n      new Set(objects.flatMap((i) => Object.keys(i)))\n    );\n  },\n  has({ objects }, name) {\n    if (name == Symbol.unscopables)\n      return false;\n    return objects.some(\n      (obj) => Object.prototype.hasOwnProperty.call(obj, name) || Reflect.has(obj, name)\n    );\n  },\n  get({ objects }, name, thisProxy) {\n    if (name == \"toJSON\")\n      return collapseProxies;\n    return Reflect.get(\n      objects.find(\n        (obj) => Reflect.has(obj, name)\n      ) || {},\n      name,\n      thisProxy\n    );\n  },\n  set({ objects }, name, value, thisProxy) {\n    const target = objects.find(\n      (obj) => Object.prototype.hasOwnProperty.call(obj, name)\n    ) || objects[objects.length - 1];\n    const descriptor = Object.getOwnPropertyDescriptor(target, name);\n    if (descriptor?.set && descriptor?.get)\n      return Reflect.set(target, name, value, thisProxy);\n    return Reflect.set(target, name, value);\n  }\n};\nfunction collapseProxies() {\n  let keys = Reflect.ownKeys(this);\n  return keys.reduce((acc, key) => {\n    acc[key] = Reflect.get(this, key);\n    return acc;\n  }, {});\n}\n\n// packages/alpinejs/src/interceptor.js\nfunction initInterceptors2(data2) {\n  let isObject2 = (val) => typeof val === \"object\" && !Array.isArray(val) && val !== null;\n  let recurse = (obj, basePath = \"\") => {\n    Object.entries(Object.getOwnPropertyDescriptors(obj)).forEach(([key, { value, enumerable }]) => {\n      if (enumerable === false || value === void 0)\n        return;\n      if (typeof value === \"object\" && value !== null && value.__v_skip)\n        return;\n      let path = basePath === \"\" ? key : `${basePath}.${key}`;\n      if (typeof value === \"object\" && value !== null && value._x_interceptor) {\n        obj[key] = value.initialize(data2, path, key);\n      } else {\n        if (isObject2(value) && value !== obj && !(value instanceof Element)) {\n          recurse(value, path);\n        }\n      }\n    });\n  };\n  return recurse(data2);\n}\nfunction interceptor(callback, mutateObj = () => {\n}) {\n  let obj = {\n    initialValue: void 0,\n    _x_interceptor: true,\n    initialize(data2, path, key) {\n      return callback(this.initialValue, () => get(data2, path), (value) => set(data2, path, value), path, key);\n    }\n  };\n  mutateObj(obj);\n  return (initialValue) => {\n    if (typeof initialValue === \"object\" && initialValue !== null && initialValue._x_interceptor) {\n      let initialize = obj.initialize.bind(obj);\n      obj.initialize = (data2, path, key) => {\n        let innerValue = initialValue.initialize(data2, path, key);\n        obj.initialValue = innerValue;\n        return initialize(data2, path, key);\n      };\n    } else {\n      obj.initialValue = initialValue;\n    }\n    return obj;\n  };\n}\nfunction get(obj, path) {\n  return path.split(\".\").reduce((carry, segment) => carry[segment], obj);\n}\nfunction set(obj, path, value) {\n  if (typeof path === \"string\")\n    path = path.split(\".\");\n  if (path.length === 1)\n    obj[path[0]] = value;\n  else if (path.length === 0)\n    throw error;\n  else {\n    if (obj[path[0]])\n      return set(obj[path[0]], path.slice(1), value);\n    else {\n      obj[path[0]] = {};\n      return set(obj[path[0]], path.slice(1), value);\n    }\n  }\n}\n\n// packages/alpinejs/src/magics.js\nvar magics = {};\nfunction magic(name, callback) {\n  magics[name] = callback;\n}\nfunction injectMagics(obj, el) {\n  Object.entries(magics).forEach(([name, callback]) => {\n    let memoizedUtilities = null;\n    function getUtilities() {\n      if (memoizedUtilities) {\n        return memoizedUtilities;\n      } else {\n        let [utilities, cleanup2] = getElementBoundUtilities(el);\n        memoizedUtilities = { interceptor, ...utilities };\n        onElRemoved(el, cleanup2);\n        return memoizedUtilities;\n      }\n    }\n    Object.defineProperty(obj, `$${name}`, {\n      get() {\n        return callback(el, getUtilities());\n      },\n      enumerable: false\n    });\n  });\n  return obj;\n}\n\n// packages/alpinejs/src/utils/error.js\nfunction tryCatch(el, expression, callback, ...args) {\n  try {\n    return callback(...args);\n  } catch (e) {\n    handleError(e, el, expression);\n  }\n}\nfunction handleError(error2, el, expression = void 0) {\n  error2 = Object.assign(\n    error2 ?? { message: \"No error message given.\" },\n    { el, expression }\n  );\n  console.warn(`Alpine Expression Error: ${error2.message}\n\n${expression ? 'Expression: \"' + expression + '\"\\n\\n' : \"\"}`, el);\n  setTimeout(() => {\n    throw error2;\n  }, 0);\n}\n\n// packages/alpinejs/src/evaluator.js\nvar shouldAutoEvaluateFunctions = true;\nfunction dontAutoEvaluateFunctions(callback) {\n  let cache = shouldAutoEvaluateFunctions;\n  shouldAutoEvaluateFunctions = false;\n  let result = callback();\n  shouldAutoEvaluateFunctions = cache;\n  return result;\n}\nfunction evaluate(el, expression, extras = {}) {\n  let result;\n  evaluateLater(el, expression)((value) => result = value, extras);\n  return result;\n}\nfunction evaluateLater(...args) {\n  return theEvaluatorFunction(...args);\n}\nvar theEvaluatorFunction = normalEvaluator;\nfunction setEvaluator(newEvaluator) {\n  theEvaluatorFunction = newEvaluator;\n}\nfunction normalEvaluator(el, expression) {\n  let overriddenMagics = {};\n  injectMagics(overriddenMagics, el);\n  let dataStack = [overriddenMagics, ...closestDataStack(el)];\n  let evaluator = typeof expression === \"function\" ? generateEvaluatorFromFunction(dataStack, expression) : generateEvaluatorFromString(dataStack, expression, el);\n  return tryCatch.bind(null, el, expression, evaluator);\n}\nfunction generateEvaluatorFromFunction(dataStack, func) {\n  return (receiver = () => {\n  }, { scope: scope2 = {}, params = [] } = {}) => {\n    let result = func.apply(mergeProxies([scope2, ...dataStack]), params);\n    runIfTypeOfFunction(receiver, result);\n  };\n}\nvar evaluatorMemo = {};\nfunction generateFunctionFromString(expression, el) {\n  if (evaluatorMemo[expression]) {\n    return evaluatorMemo[expression];\n  }\n  let AsyncFunction = Object.getPrototypeOf(async function() {\n  }).constructor;\n  let rightSideSafeExpression = /^[\\n\\s]*if.*\\(.*\\)/.test(expression.trim()) || /^(let|const)\\s/.test(expression.trim()) ? `(async()=>{ ${expression} })()` : expression;\n  const safeAsyncFunction = () => {\n    try {\n      let func2 = new AsyncFunction(\n        [\"__self\", \"scope\"],\n        `with (scope) { __self.result = ${rightSideSafeExpression} }; __self.finished = true; return __self.result;`\n      );\n      Object.defineProperty(func2, \"name\", {\n        value: `[Alpine] ${expression}`\n      });\n      return func2;\n    } catch (error2) {\n      handleError(error2, el, expression);\n      return Promise.resolve();\n    }\n  };\n  let func = safeAsyncFunction();\n  evaluatorMemo[expression] = func;\n  return func;\n}\nfunction generateEvaluatorFromString(dataStack, expression, el) {\n  let func = generateFunctionFromString(expression, el);\n  return (receiver = () => {\n  }, { scope: scope2 = {}, params = [] } = {}) => {\n    func.result = void 0;\n    func.finished = false;\n    let completeScope = mergeProxies([scope2, ...dataStack]);\n    if (typeof func === \"function\") {\n      let promise = func(func, completeScope).catch((error2) => handleError(error2, el, expression));\n      if (func.finished) {\n        runIfTypeOfFunction(receiver, func.result, completeScope, params, el);\n        func.result = void 0;\n      } else {\n        promise.then((result) => {\n          runIfTypeOfFunction(receiver, result, completeScope, params, el);\n        }).catch((error2) => handleError(error2, el, expression)).finally(() => func.result = void 0);\n      }\n    }\n  };\n}\nfunction runIfTypeOfFunction(receiver, value, scope2, params, el) {\n  if (shouldAutoEvaluateFunctions && typeof value === \"function\") {\n    let result = value.apply(scope2, params);\n    if (result instanceof Promise) {\n      result.then((i) => runIfTypeOfFunction(receiver, i, scope2, params)).catch((error2) => handleError(error2, el, value));\n    } else {\n      receiver(result);\n    }\n  } else if (typeof value === \"object\" && value instanceof Promise) {\n    value.then((i) => receiver(i));\n  } else {\n    receiver(value);\n  }\n}\n\n// packages/alpinejs/src/directives.js\nvar prefixAsString = \"x-\";\nfunction prefix(subject = \"\") {\n  return prefixAsString + subject;\n}\nfunction setPrefix(newPrefix) {\n  prefixAsString = newPrefix;\n}\nvar directiveHandlers = {};\nfunction directive(name, callback) {\n  directiveHandlers[name] = callback;\n  return {\n    before(directive2) {\n      if (!directiveHandlers[directive2]) {\n        console.warn(String.raw`Cannot find directive \\`${directive2}\\`. \\`${name}\\` will use the default order of execution`);\n        return;\n      }\n      const pos = directiveOrder.indexOf(directive2);\n      directiveOrder.splice(pos >= 0 ? pos : directiveOrder.indexOf(\"DEFAULT\"), 0, name);\n    }\n  };\n}\nfunction directives(el, attributes, originalAttributeOverride) {\n  attributes = Array.from(attributes);\n  if (el._x_virtualDirectives) {\n    let vAttributes = Object.entries(el._x_virtualDirectives).map(([name, value]) => ({ name, value }));\n    let staticAttributes = attributesOnly(vAttributes);\n    vAttributes = vAttributes.map((attribute) => {\n      if (staticAttributes.find((attr) => attr.name === attribute.name)) {\n        return {\n          name: `x-bind:${attribute.name}`,\n          value: `\"${attribute.value}\"`\n        };\n      }\n      return attribute;\n    });\n    attributes = attributes.concat(vAttributes);\n  }\n  let transformedAttributeMap = {};\n  let directives2 = attributes.map(toTransformedAttributes((newName, oldName) => transformedAttributeMap[newName] = oldName)).filter(outNonAlpineAttributes).map(toParsedDirectives(transformedAttributeMap, originalAttributeOverride)).sort(byPriority);\n  return directives2.map((directive2) => {\n    return getDirectiveHandler(el, directive2);\n  });\n}\nfunction attributesOnly(attributes) {\n  return Array.from(attributes).map(toTransformedAttributes()).filter((attr) => !outNonAlpineAttributes(attr));\n}\nvar isDeferringHandlers = false;\nvar directiveHandlerStacks = /* @__PURE__ */ new Map();\nvar currentHandlerStackKey = Symbol();\nfunction deferHandlingDirectives(callback) {\n  isDeferringHandlers = true;\n  let key = Symbol();\n  currentHandlerStackKey = key;\n  directiveHandlerStacks.set(key, []);\n  let flushHandlers = () => {\n    while (directiveHandlerStacks.get(key).length)\n      directiveHandlerStacks.get(key).shift()();\n    directiveHandlerStacks.delete(key);\n  };\n  let stopDeferring = () => {\n    isDeferringHandlers = false;\n    flushHandlers();\n  };\n  callback(flushHandlers);\n  stopDeferring();\n}\nfunction getElementBoundUtilities(el) {\n  let cleanups = [];\n  let cleanup2 = (callback) => cleanups.push(callback);\n  let [effect3, cleanupEffect] = elementBoundEffect(el);\n  cleanups.push(cleanupEffect);\n  let utilities = {\n    Alpine: alpine_default,\n    effect: effect3,\n    cleanup: cleanup2,\n    evaluateLater: evaluateLater.bind(evaluateLater, el),\n    evaluate: evaluate.bind(evaluate, el)\n  };\n  let doCleanup = () => cleanups.forEach((i) => i());\n  return [utilities, doCleanup];\n}\nfunction getDirectiveHandler(el, directive2) {\n  let noop = () => {\n  };\n  let handler4 = directiveHandlers[directive2.type] || noop;\n  let [utilities, cleanup2] = getElementBoundUtilities(el);\n  onAttributeRemoved(el, directive2.original, cleanup2);\n  let fullHandler = () => {\n    if (el._x_ignore || el._x_ignoreSelf)\n      return;\n    handler4.inline && handler4.inline(el, directive2, utilities);\n    handler4 = handler4.bind(handler4, el, directive2, utilities);\n    isDeferringHandlers ? directiveHandlerStacks.get(currentHandlerStackKey).push(handler4) : handler4();\n  };\n  fullHandler.runCleanups = cleanup2;\n  return fullHandler;\n}\nvar startingWith = (subject, replacement) => ({ name, value }) => {\n  if (name.startsWith(subject))\n    name = name.replace(subject, replacement);\n  return { name, value };\n};\nvar into = (i) => i;\nfunction toTransformedAttributes(callback = () => {\n}) {\n  return ({ name, value }) => {\n    let { name: newName, value: newValue } = attributeTransformers.reduce((carry, transform) => {\n      return transform(carry);\n    }, { name, value });\n    if (newName !== name)\n      callback(newName, name);\n    return { name: newName, value: newValue };\n  };\n}\nvar attributeTransformers = [];\nfunction mapAttributes(callback) {\n  attributeTransformers.push(callback);\n}\nfunction outNonAlpineAttributes({ name }) {\n  return alpineAttributeRegex().test(name);\n}\nvar alpineAttributeRegex = () => new RegExp(`^${prefixAsString}([^:^.]+)\\\\b`);\nfunction toParsedDirectives(transformedAttributeMap, originalAttributeOverride) {\n  return ({ name, value }) => {\n    let typeMatch = name.match(alpineAttributeRegex());\n    let valueMatch = name.match(/:([a-zA-Z0-9\\-_:]+)/);\n    let modifiers = name.match(/\\.[^.\\]]+(?=[^\\]]*$)/g) || [];\n    let original = originalAttributeOverride || transformedAttributeMap[name] || name;\n    return {\n      type: typeMatch ? typeMatch[1] : null,\n      value: valueMatch ? valueMatch[1] : null,\n      modifiers: modifiers.map((i) => i.replace(\".\", \"\")),\n      expression: value,\n      original\n    };\n  };\n}\nvar DEFAULT = \"DEFAULT\";\nvar directiveOrder = [\n  \"ignore\",\n  \"ref\",\n  \"data\",\n  \"id\",\n  \"anchor\",\n  \"bind\",\n  \"init\",\n  \"for\",\n  \"model\",\n  \"modelable\",\n  \"transition\",\n  \"show\",\n  \"if\",\n  DEFAULT,\n  \"teleport\"\n];\nfunction byPriority(a, b) {\n  let typeA = directiveOrder.indexOf(a.type) === -1 ? DEFAULT : a.type;\n  let typeB = directiveOrder.indexOf(b.type) === -1 ? DEFAULT : b.type;\n  return directiveOrder.indexOf(typeA) - directiveOrder.indexOf(typeB);\n}\n\n// packages/alpinejs/src/nextTick.js\nvar tickStack = [];\nvar isHolding = false;\nfunction nextTick(callback = () => {\n}) {\n  queueMicrotask(() => {\n    isHolding || setTimeout(() => {\n      releaseNextTicks();\n    });\n  });\n  return new Promise((res) => {\n    tickStack.push(() => {\n      callback();\n      res();\n    });\n  });\n}\nfunction releaseNextTicks() {\n  isHolding = false;\n  while (tickStack.length)\n    tickStack.shift()();\n}\nfunction holdNextTicks() {\n  isHolding = true;\n}\n\n// packages/alpinejs/src/utils/classes.js\nfunction setClasses(el, value) {\n  if (Array.isArray(value)) {\n    return setClassesFromString(el, value.join(\" \"));\n  } else if (typeof value === \"object\" && value !== null) {\n    return setClassesFromObject(el, value);\n  } else if (typeof value === \"function\") {\n    return setClasses(el, value());\n  }\n  return setClassesFromString(el, value);\n}\nfunction setClassesFromString(el, classString) {\n  let split = (classString2) => classString2.split(\" \").filter(Boolean);\n  let missingClasses = (classString2) => classString2.split(\" \").filter((i) => !el.classList.contains(i)).filter(Boolean);\n  let addClassesAndReturnUndo = (classes) => {\n    el.classList.add(...classes);\n    return () => {\n      el.classList.remove(...classes);\n    };\n  };\n  classString = classString === true ? classString = \"\" : classString || \"\";\n  return addClassesAndReturnUndo(missingClasses(classString));\n}\nfunction setClassesFromObject(el, classObject) {\n  let split = (classString) => classString.split(\" \").filter(Boolean);\n  let forAdd = Object.entries(classObject).flatMap(([classString, bool]) => bool ? split(classString) : false).filter(Boolean);\n  let forRemove = Object.entries(classObject).flatMap(([classString, bool]) => !bool ? split(classString) : false).filter(Boolean);\n  let added = [];\n  let removed = [];\n  forRemove.forEach((i) => {\n    if (el.classList.contains(i)) {\n      el.classList.remove(i);\n      removed.push(i);\n    }\n  });\n  forAdd.forEach((i) => {\n    if (!el.classList.contains(i)) {\n      el.classList.add(i);\n      added.push(i);\n    }\n  });\n  return () => {\n    removed.forEach((i) => el.classList.add(i));\n    added.forEach((i) => el.classList.remove(i));\n  };\n}\n\n// packages/alpinejs/src/utils/styles.js\nfunction setStyles(el, value) {\n  if (typeof value === \"object\" && value !== null) {\n    return setStylesFromObject(el, value);\n  }\n  return setStylesFromString(el, value);\n}\nfunction setStylesFromObject(el, value) {\n  let previousStyles = {};\n  Object.entries(value).forEach(([key, value2]) => {\n    previousStyles[key] = el.style[key];\n    if (!key.startsWith(\"--\")) {\n      key = kebabCase(key);\n    }\n    el.style.setProperty(key, value2);\n  });\n  setTimeout(() => {\n    if (el.style.length === 0) {\n      el.removeAttribute(\"style\");\n    }\n  });\n  return () => {\n    setStyles(el, previousStyles);\n  };\n}\nfunction setStylesFromString(el, value) {\n  let cache = el.getAttribute(\"style\", value);\n  el.setAttribute(\"style\", value);\n  return () => {\n    el.setAttribute(\"style\", cache || \"\");\n  };\n}\nfunction kebabCase(subject) {\n  return subject.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n}\n\n// packages/alpinejs/src/utils/once.js\nfunction once(callback, fallback = () => {\n}) {\n  let called = false;\n  return function() {\n    if (!called) {\n      called = true;\n      callback.apply(this, arguments);\n    } else {\n      fallback.apply(this, arguments);\n    }\n  };\n}\n\n// packages/alpinejs/src/directives/x-transition.js\ndirective(\"transition\", (el, { value, modifiers, expression }, { evaluate: evaluate2 }) => {\n  if (typeof expression === \"function\")\n    expression = evaluate2(expression);\n  if (expression === false)\n    return;\n  if (!expression || typeof expression === \"boolean\") {\n    registerTransitionsFromHelper(el, modifiers, value);\n  } else {\n    registerTransitionsFromClassString(el, expression, value);\n  }\n});\nfunction registerTransitionsFromClassString(el, classString, stage) {\n  registerTransitionObject(el, setClasses, \"\");\n  let directiveStorageMap = {\n    \"enter\": (classes) => {\n      el._x_transition.enter.during = classes;\n    },\n    \"enter-start\": (classes) => {\n      el._x_transition.enter.start = classes;\n    },\n    \"enter-end\": (classes) => {\n      el._x_transition.enter.end = classes;\n    },\n    \"leave\": (classes) => {\n      el._x_transition.leave.during = classes;\n    },\n    \"leave-start\": (classes) => {\n      el._x_transition.leave.start = classes;\n    },\n    \"leave-end\": (classes) => {\n      el._x_transition.leave.end = classes;\n    }\n  };\n  directiveStorageMap[stage](classString);\n}\nfunction registerTransitionsFromHelper(el, modifiers, stage) {\n  registerTransitionObject(el, setStyles);\n  let doesntSpecify = !modifiers.includes(\"in\") && !modifiers.includes(\"out\") && !stage;\n  let transitioningIn = doesntSpecify || modifiers.includes(\"in\") || [\"enter\"].includes(stage);\n  let transitioningOut = doesntSpecify || modifiers.includes(\"out\") || [\"leave\"].includes(stage);\n  if (modifiers.includes(\"in\") && !doesntSpecify) {\n    modifiers = modifiers.filter((i, index) => index < modifiers.indexOf(\"out\"));\n  }\n  if (modifiers.includes(\"out\") && !doesntSpecify) {\n    modifiers = modifiers.filter((i, index) => index > modifiers.indexOf(\"out\"));\n  }\n  let wantsAll = !modifiers.includes(\"opacity\") && !modifiers.includes(\"scale\");\n  let wantsOpacity = wantsAll || modifiers.includes(\"opacity\");\n  let wantsScale = wantsAll || modifiers.includes(\"scale\");\n  let opacityValue = wantsOpacity ? 0 : 1;\n  let scaleValue = wantsScale ? modifierValue(modifiers, \"scale\", 95) / 100 : 1;\n  let delay = modifierValue(modifiers, \"delay\", 0) / 1e3;\n  let origin = modifierValue(modifiers, \"origin\", \"center\");\n  let property = \"opacity, transform\";\n  let durationIn = modifierValue(modifiers, \"duration\", 150) / 1e3;\n  let durationOut = modifierValue(modifiers, \"duration\", 75) / 1e3;\n  let easing = `cubic-bezier(0.4, 0.0, 0.2, 1)`;\n  if (transitioningIn) {\n    el._x_transition.enter.during = {\n      transformOrigin: origin,\n      transitionDelay: `${delay}s`,\n      transitionProperty: property,\n      transitionDuration: `${durationIn}s`,\n      transitionTimingFunction: easing\n    };\n    el._x_transition.enter.start = {\n      opacity: opacityValue,\n      transform: `scale(${scaleValue})`\n    };\n    el._x_transition.enter.end = {\n      opacity: 1,\n      transform: `scale(1)`\n    };\n  }\n  if (transitioningOut) {\n    el._x_transition.leave.during = {\n      transformOrigin: origin,\n      transitionDelay: `${delay}s`,\n      transitionProperty: property,\n      transitionDuration: `${durationOut}s`,\n      transitionTimingFunction: easing\n    };\n    el._x_transition.leave.start = {\n      opacity: 1,\n      transform: `scale(1)`\n    };\n    el._x_transition.leave.end = {\n      opacity: opacityValue,\n      transform: `scale(${scaleValue})`\n    };\n  }\n}\nfunction registerTransitionObject(el, setFunction, defaultValue = {}) {\n  if (!el._x_transition)\n    el._x_transition = {\n      enter: { during: defaultValue, start: defaultValue, end: defaultValue },\n      leave: { during: defaultValue, start: defaultValue, end: defaultValue },\n      in(before = () => {\n      }, after = () => {\n      }) {\n        transition(el, setFunction, {\n          during: this.enter.during,\n          start: this.enter.start,\n          end: this.enter.end\n        }, before, after);\n      },\n      out(before = () => {\n      }, after = () => {\n      }) {\n        transition(el, setFunction, {\n          during: this.leave.during,\n          start: this.leave.start,\n          end: this.leave.end\n        }, before, after);\n      }\n    };\n}\nwindow.Element.prototype._x_toggleAndCascadeWithTransitions = function(el, value, show, hide) {\n  const nextTick2 = document.visibilityState === \"visible\" ? requestAnimationFrame : setTimeout;\n  let clickAwayCompatibleShow = () => nextTick2(show);\n  if (value) {\n    if (el._x_transition && (el._x_transition.enter || el._x_transition.leave)) {\n      el._x_transition.enter && (Object.entries(el._x_transition.enter.during).length || Object.entries(el._x_transition.enter.start).length || Object.entries(el._x_transition.enter.end).length) ? el._x_transition.in(show) : clickAwayCompatibleShow();\n    } else {\n      el._x_transition ? el._x_transition.in(show) : clickAwayCompatibleShow();\n    }\n    return;\n  }\n  el._x_hidePromise = el._x_transition ? new Promise((resolve, reject) => {\n    el._x_transition.out(() => {\n    }, () => resolve(hide));\n    el._x_transitioning && el._x_transitioning.beforeCancel(() => reject({ isFromCancelledTransition: true }));\n  }) : Promise.resolve(hide);\n  queueMicrotask(() => {\n    let closest = closestHide(el);\n    if (closest) {\n      if (!closest._x_hideChildren)\n        closest._x_hideChildren = [];\n      closest._x_hideChildren.push(el);\n    } else {\n      nextTick2(() => {\n        let hideAfterChildren = (el2) => {\n          let carry = Promise.all([\n            el2._x_hidePromise,\n            ...(el2._x_hideChildren || []).map(hideAfterChildren)\n          ]).then(([i]) => i());\n          delete el2._x_hidePromise;\n          delete el2._x_hideChildren;\n          return carry;\n        };\n        hideAfterChildren(el).catch((e) => {\n          if (!e.isFromCancelledTransition)\n            throw e;\n        });\n      });\n    }\n  });\n};\nfunction closestHide(el) {\n  let parent = el.parentNode;\n  if (!parent)\n    return;\n  return parent._x_hidePromise ? parent : closestHide(parent);\n}\nfunction transition(el, setFunction, { during, start: start2, end } = {}, before = () => {\n}, after = () => {\n}) {\n  if (el._x_transitioning)\n    el._x_transitioning.cancel();\n  if (Object.keys(during).length === 0 && Object.keys(start2).length === 0 && Object.keys(end).length === 0) {\n    before();\n    after();\n    return;\n  }\n  let undoStart, undoDuring, undoEnd;\n  performTransition(el, {\n    start() {\n      undoStart = setFunction(el, start2);\n    },\n    during() {\n      undoDuring = setFunction(el, during);\n    },\n    before,\n    end() {\n      undoStart();\n      undoEnd = setFunction(el, end);\n    },\n    after,\n    cleanup() {\n      undoDuring();\n      undoEnd();\n    }\n  });\n}\nfunction performTransition(el, stages) {\n  let interrupted, reachedBefore, reachedEnd;\n  let finish = once(() => {\n    mutateDom(() => {\n      interrupted = true;\n      if (!reachedBefore)\n        stages.before();\n      if (!reachedEnd) {\n        stages.end();\n        releaseNextTicks();\n      }\n      stages.after();\n      if (el.isConnected)\n        stages.cleanup();\n      delete el._x_transitioning;\n    });\n  });\n  el._x_transitioning = {\n    beforeCancels: [],\n    beforeCancel(callback) {\n      this.beforeCancels.push(callback);\n    },\n    cancel: once(function() {\n      while (this.beforeCancels.length) {\n        this.beforeCancels.shift()();\n      }\n      ;\n      finish();\n    }),\n    finish\n  };\n  mutateDom(() => {\n    stages.start();\n    stages.during();\n  });\n  holdNextTicks();\n  requestAnimationFrame(() => {\n    if (interrupted)\n      return;\n    let duration = Number(getComputedStyle(el).transitionDuration.replace(/,.*/, \"\").replace(\"s\", \"\")) * 1e3;\n    let delay = Number(getComputedStyle(el).transitionDelay.replace(/,.*/, \"\").replace(\"s\", \"\")) * 1e3;\n    if (duration === 0)\n      duration = Number(getComputedStyle(el).animationDuration.replace(\"s\", \"\")) * 1e3;\n    mutateDom(() => {\n      stages.before();\n    });\n    reachedBefore = true;\n    requestAnimationFrame(() => {\n      if (interrupted)\n        return;\n      mutateDom(() => {\n        stages.end();\n      });\n      releaseNextTicks();\n      setTimeout(el._x_transitioning.finish, duration + delay);\n      reachedEnd = true;\n    });\n  });\n}\nfunction modifierValue(modifiers, key, fallback) {\n  if (modifiers.indexOf(key) === -1)\n    return fallback;\n  const rawValue = modifiers[modifiers.indexOf(key) + 1];\n  if (!rawValue)\n    return fallback;\n  if (key === \"scale\") {\n    if (isNaN(rawValue))\n      return fallback;\n  }\n  if (key === \"duration\" || key === \"delay\") {\n    let match = rawValue.match(/([0-9]+)ms/);\n    if (match)\n      return match[1];\n  }\n  if (key === \"origin\") {\n    if ([\"top\", \"right\", \"left\", \"center\", \"bottom\"].includes(modifiers[modifiers.indexOf(key) + 2])) {\n      return [rawValue, modifiers[modifiers.indexOf(key) + 2]].join(\" \");\n    }\n  }\n  return rawValue;\n}\n\n// packages/alpinejs/src/clone.js\nvar isCloning = false;\nfunction skipDuringClone(callback, fallback = () => {\n}) {\n  return (...args) => isCloning ? fallback(...args) : callback(...args);\n}\nfunction onlyDuringClone(callback) {\n  return (...args) => isCloning && callback(...args);\n}\nvar interceptors = [];\nfunction interceptClone(callback) {\n  interceptors.push(callback);\n}\nfunction cloneNode(from, to) {\n  interceptors.forEach((i) => i(from, to));\n  isCloning = true;\n  dontRegisterReactiveSideEffects(() => {\n    initTree(to, (el, callback) => {\n      callback(el, () => {\n      });\n    });\n  });\n  isCloning = false;\n}\nvar isCloningLegacy = false;\nfunction clone(oldEl, newEl) {\n  if (!newEl._x_dataStack)\n    newEl._x_dataStack = oldEl._x_dataStack;\n  isCloning = true;\n  isCloningLegacy = true;\n  dontRegisterReactiveSideEffects(() => {\n    cloneTree(newEl);\n  });\n  isCloning = false;\n  isCloningLegacy = false;\n}\nfunction cloneTree(el) {\n  let hasRunThroughFirstEl = false;\n  let shallowWalker = (el2, callback) => {\n    walk(el2, (el3, skip) => {\n      if (hasRunThroughFirstEl && isRoot(el3))\n        return skip();\n      hasRunThroughFirstEl = true;\n      callback(el3, skip);\n    });\n  };\n  initTree(el, shallowWalker);\n}\nfunction dontRegisterReactiveSideEffects(callback) {\n  let cache = effect;\n  overrideEffect((callback2, el) => {\n    let storedEffect = cache(callback2);\n    release(storedEffect);\n    return () => {\n    };\n  });\n  callback();\n  overrideEffect(cache);\n}\n\n// packages/alpinejs/src/utils/bind.js\nfunction bind(el, name, value, modifiers = []) {\n  if (!el._x_bindings)\n    el._x_bindings = reactive({});\n  el._x_bindings[name] = value;\n  name = modifiers.includes(\"camel\") ? camelCase(name) : name;\n  switch (name) {\n    case \"value\":\n      bindInputValue(el, value);\n      break;\n    case \"style\":\n      bindStyles(el, value);\n      break;\n    case \"class\":\n      bindClasses(el, value);\n      break;\n    case \"selected\":\n    case \"checked\":\n      bindAttributeAndProperty(el, name, value);\n      break;\n    default:\n      bindAttribute(el, name, value);\n      break;\n  }\n}\nfunction bindInputValue(el, value) {\n  if (el.type === \"radio\") {\n    if (el.attributes.value === void 0) {\n      el.value = value;\n    }\n    if (window.fromModel) {\n      if (typeof value === \"boolean\") {\n        el.checked = safeParseBoolean(el.value) === value;\n      } else {\n        el.checked = checkedAttrLooseCompare(el.value, value);\n      }\n    }\n  } else if (el.type === \"checkbox\") {\n    if (Number.isInteger(value)) {\n      el.value = value;\n    } else if (!Array.isArray(value) && typeof value !== \"boolean\" && ![null, void 0].includes(value)) {\n      el.value = String(value);\n    } else {\n      if (Array.isArray(value)) {\n        el.checked = value.some((val) => checkedAttrLooseCompare(val, el.value));\n      } else {\n        el.checked = !!value;\n      }\n    }\n  } else if (el.tagName === \"SELECT\") {\n    updateSelect(el, value);\n  } else {\n    if (el.value === value)\n      return;\n    el.value = value === void 0 ? \"\" : value;\n  }\n}\nfunction bindClasses(el, value) {\n  if (el._x_undoAddedClasses)\n    el._x_undoAddedClasses();\n  el._x_undoAddedClasses = setClasses(el, value);\n}\nfunction bindStyles(el, value) {\n  if (el._x_undoAddedStyles)\n    el._x_undoAddedStyles();\n  el._x_undoAddedStyles = setStyles(el, value);\n}\nfunction bindAttributeAndProperty(el, name, value) {\n  bindAttribute(el, name, value);\n  setPropertyIfChanged(el, name, value);\n}\nfunction bindAttribute(el, name, value) {\n  if ([null, void 0, false].includes(value) && attributeShouldntBePreservedIfFalsy(name)) {\n    el.removeAttribute(name);\n  } else {\n    if (isBooleanAttr(name))\n      value = name;\n    setIfChanged(el, name, value);\n  }\n}\nfunction setIfChanged(el, attrName, value) {\n  if (el.getAttribute(attrName) != value) {\n    el.setAttribute(attrName, value);\n  }\n}\nfunction setPropertyIfChanged(el, propName, value) {\n  if (el[propName] !== value) {\n    el[propName] = value;\n  }\n}\nfunction updateSelect(el, value) {\n  const arrayWrappedValue = [].concat(value).map((value2) => {\n    return value2 + \"\";\n  });\n  Array.from(el.options).forEach((option) => {\n    option.selected = arrayWrappedValue.includes(option.value);\n  });\n}\nfunction camelCase(subject) {\n  return subject.toLowerCase().replace(/-(\\w)/g, (match, char) => char.toUpperCase());\n}\nfunction checkedAttrLooseCompare(valueA, valueB) {\n  return valueA == valueB;\n}\nfunction safeParseBoolean(rawValue) {\n  if ([1, \"1\", \"true\", \"on\", \"yes\", true].includes(rawValue)) {\n    return true;\n  }\n  if ([0, \"0\", \"false\", \"off\", \"no\", false].includes(rawValue)) {\n    return false;\n  }\n  return rawValue ? Boolean(rawValue) : null;\n}\nfunction isBooleanAttr(attrName) {\n  const booleanAttributes = [\n    \"disabled\",\n    \"checked\",\n    \"required\",\n    \"readonly\",\n    \"hidden\",\n    \"open\",\n    \"selected\",\n    \"autofocus\",\n    \"itemscope\",\n    \"multiple\",\n    \"novalidate\",\n    \"allowfullscreen\",\n    \"allowpaymentrequest\",\n    \"formnovalidate\",\n    \"autoplay\",\n    \"controls\",\n    \"loop\",\n    \"muted\",\n    \"playsinline\",\n    \"default\",\n    \"ismap\",\n    \"reversed\",\n    \"async\",\n    \"defer\",\n    \"nomodule\"\n  ];\n  return booleanAttributes.includes(attrName);\n}\nfunction attributeShouldntBePreservedIfFalsy(name) {\n  return ![\"aria-pressed\", \"aria-checked\", \"aria-expanded\", \"aria-selected\"].includes(name);\n}\nfunction getBinding(el, name, fallback) {\n  if (el._x_bindings && el._x_bindings[name] !== void 0)\n    return el._x_bindings[name];\n  return getAttributeBinding(el, name, fallback);\n}\nfunction extractProp(el, name, fallback, extract = true) {\n  if (el._x_bindings && el._x_bindings[name] !== void 0)\n    return el._x_bindings[name];\n  if (el._x_inlineBindings && el._x_inlineBindings[name] !== void 0) {\n    let binding = el._x_inlineBindings[name];\n    binding.extract = extract;\n    return dontAutoEvaluateFunctions(() => {\n      return evaluate(el, binding.expression);\n    });\n  }\n  return getAttributeBinding(el, name, fallback);\n}\nfunction getAttributeBinding(el, name, fallback) {\n  let attr = el.getAttribute(name);\n  if (attr === null)\n    return typeof fallback === \"function\" ? fallback() : fallback;\n  if (attr === \"\")\n    return true;\n  if (isBooleanAttr(name)) {\n    return !![name, \"true\"].includes(attr);\n  }\n  return attr;\n}\n\n// packages/alpinejs/src/utils/debounce.js\nfunction debounce(func, wait) {\n  var timeout;\n  return function() {\n    var context = this, args = arguments;\n    var later = function() {\n      timeout = null;\n      func.apply(context, args);\n    };\n    clearTimeout(timeout);\n    timeout = setTimeout(later, wait);\n  };\n}\n\n// packages/alpinejs/src/utils/throttle.js\nfunction throttle(func, limit) {\n  let inThrottle;\n  return function() {\n    let context = this, args = arguments;\n    if (!inThrottle) {\n      func.apply(context, args);\n      inThrottle = true;\n      setTimeout(() => inThrottle = false, limit);\n    }\n  };\n}\n\n// packages/alpinejs/src/entangle.js\nfunction entangle({ get: outerGet, set: outerSet }, { get: innerGet, set: innerSet }) {\n  let firstRun = true;\n  let outerHash;\n  let innerHash;\n  let reference = effect(() => {\n    let outer = outerGet();\n    let inner = innerGet();\n    if (firstRun) {\n      innerSet(cloneIfObject(outer));\n      firstRun = false;\n    } else {\n      let outerHashLatest = JSON.stringify(outer);\n      let innerHashLatest = JSON.stringify(inner);\n      if (outerHashLatest !== outerHash) {\n        innerSet(cloneIfObject(outer));\n      } else if (outerHashLatest !== innerHashLatest) {\n        outerSet(cloneIfObject(inner));\n      } else {\n      }\n    }\n    outerHash = JSON.stringify(outerGet());\n    innerHash = JSON.stringify(innerGet());\n  });\n  return () => {\n    release(reference);\n  };\n}\nfunction cloneIfObject(value) {\n  return typeof value === \"object\" ? JSON.parse(JSON.stringify(value)) : value;\n}\n\n// packages/alpinejs/src/plugin.js\nfunction plugin(callback) {\n  let callbacks = Array.isArray(callback) ? callback : [callback];\n  callbacks.forEach((i) => i(alpine_default));\n}\n\n// packages/alpinejs/src/store.js\nvar stores = {};\nvar isReactive = false;\nfunction store(name, value) {\n  if (!isReactive) {\n    stores = reactive(stores);\n    isReactive = true;\n  }\n  if (value === void 0) {\n    return stores[name];\n  }\n  stores[name] = value;\n  if (typeof value === \"object\" && value !== null && value.hasOwnProperty(\"init\") && typeof value.init === \"function\") {\n    stores[name].init();\n  }\n  initInterceptors2(stores[name]);\n}\nfunction getStores() {\n  return stores;\n}\n\n// packages/alpinejs/src/binds.js\nvar binds = {};\nfunction bind2(name, bindings) {\n  let getBindings = typeof bindings !== \"function\" ? () => bindings : bindings;\n  if (name instanceof Element) {\n    return applyBindingsObject(name, getBindings());\n  } else {\n    binds[name] = getBindings;\n  }\n  return () => {\n  };\n}\nfunction injectBindingProviders(obj) {\n  Object.entries(binds).forEach(([name, callback]) => {\n    Object.defineProperty(obj, name, {\n      get() {\n        return (...args) => {\n          return callback(...args);\n        };\n      }\n    });\n  });\n  return obj;\n}\nfunction applyBindingsObject(el, obj, original) {\n  let cleanupRunners = [];\n  while (cleanupRunners.length)\n    cleanupRunners.pop()();\n  let attributes = Object.entries(obj).map(([name, value]) => ({ name, value }));\n  let staticAttributes = attributesOnly(attributes);\n  attributes = attributes.map((attribute) => {\n    if (staticAttributes.find((attr) => attr.name === attribute.name)) {\n      return {\n        name: `x-bind:${attribute.name}`,\n        value: `\"${attribute.value}\"`\n      };\n    }\n    return attribute;\n  });\n  directives(el, attributes, original).map((handle) => {\n    cleanupRunners.push(handle.runCleanups);\n    handle();\n  });\n  return () => {\n    while (cleanupRunners.length)\n      cleanupRunners.pop()();\n  };\n}\n\n// packages/alpinejs/src/datas.js\nvar datas = {};\nfunction data(name, callback) {\n  datas[name] = callback;\n}\nfunction injectDataProviders(obj, context) {\n  Object.entries(datas).forEach(([name, callback]) => {\n    Object.defineProperty(obj, name, {\n      get() {\n        return (...args) => {\n          return callback.bind(context)(...args);\n        };\n      },\n      enumerable: false\n    });\n  });\n  return obj;\n}\n\n// packages/alpinejs/src/alpine.js\nvar Alpine = {\n  get reactive() {\n    return reactive;\n  },\n  get release() {\n    return release;\n  },\n  get effect() {\n    return effect;\n  },\n  get raw() {\n    return raw;\n  },\n  version: \"3.13.7\",\n  flushAndStopDeferringMutations,\n  dontAutoEvaluateFunctions,\n  disableEffectScheduling,\n  startObservingMutations,\n  stopObservingMutations,\n  setReactivityEngine,\n  onAttributeRemoved,\n  onAttributesAdded,\n  closestDataStack,\n  skipDuringClone,\n  onlyDuringClone,\n  addRootSelector,\n  addInitSelector,\n  interceptClone,\n  addScopeToNode,\n  deferMutations,\n  mapAttributes,\n  evaluateLater,\n  interceptInit,\n  setEvaluator,\n  mergeProxies,\n  extractProp,\n  findClosest,\n  onElRemoved,\n  closestRoot,\n  destroyTree,\n  interceptor,\n  // INTERNAL: not public API and is subject to change without major release.\n  transition,\n  // INTERNAL\n  setStyles,\n  // INTERNAL\n  mutateDom,\n  directive,\n  entangle,\n  throttle,\n  debounce,\n  evaluate,\n  initTree,\n  nextTick,\n  prefixed: prefix,\n  prefix: setPrefix,\n  plugin,\n  magic,\n  store,\n  start,\n  clone,\n  // INTERNAL\n  cloneNode,\n  // INTERNAL\n  bound: getBinding,\n  $data: scope,\n  watch,\n  walk,\n  data,\n  bind: bind2\n};\nvar alpine_default = Alpine;\n\n// node_modules/@vue/shared/dist/shared.esm-bundler.js\nfunction makeMap(str, expectsLowerCase) {\n  const map = /* @__PURE__ */ Object.create(null);\n  const list = str.split(\",\");\n  for (let i = 0; i < list.length; i++) {\n    map[list[i]] = true;\n  }\n  return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];\n}\nvar specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;\nvar isBooleanAttr2 = /* @__PURE__ */ makeMap(specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);\nvar EMPTY_OBJ = true ? Object.freeze({}) : {};\nvar EMPTY_ARR = true ? Object.freeze([]) : [];\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar hasOwn = (val, key) => hasOwnProperty.call(val, key);\nvar isArray = Array.isArray;\nvar isMap = (val) => toTypeString(val) === \"[object Map]\";\nvar isString = (val) => typeof val === \"string\";\nvar isSymbol = (val) => typeof val === \"symbol\";\nvar isObject = (val) => val !== null && typeof val === \"object\";\nvar objectToString = Object.prototype.toString;\nvar toTypeString = (value) => objectToString.call(value);\nvar toRawType = (value) => {\n  return toTypeString(value).slice(8, -1);\n};\nvar isIntegerKey = (key) => isString(key) && key !== \"NaN\" && key[0] !== \"-\" && \"\" + parseInt(key, 10) === key;\nvar cacheStringFunction = (fn) => {\n  const cache = /* @__PURE__ */ Object.create(null);\n  return (str) => {\n    const hit = cache[str];\n    return hit || (cache[str] = fn(str));\n  };\n};\nvar camelizeRE = /-(\\w)/g;\nvar camelize = cacheStringFunction((str) => {\n  return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : \"\");\n});\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, \"-$1\").toLowerCase());\nvar capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));\nvar toHandlerKey = cacheStringFunction((str) => str ? `on${capitalize(str)}` : ``);\nvar hasChanged = (value, oldValue) => value !== oldValue && (value === value || oldValue === oldValue);\n\n// node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js\nvar targetMap = /* @__PURE__ */ new WeakMap();\nvar effectStack = [];\nvar activeEffect;\nvar ITERATE_KEY = Symbol(true ? \"iterate\" : \"\");\nvar MAP_KEY_ITERATE_KEY = Symbol(true ? \"Map key iterate\" : \"\");\nfunction isEffect(fn) {\n  return fn && fn._isEffect === true;\n}\nfunction effect2(fn, options = EMPTY_OBJ) {\n  if (isEffect(fn)) {\n    fn = fn.raw;\n  }\n  const effect3 = createReactiveEffect(fn, options);\n  if (!options.lazy) {\n    effect3();\n  }\n  return effect3;\n}\nfunction stop(effect3) {\n  if (effect3.active) {\n    cleanup(effect3);\n    if (effect3.options.onStop) {\n      effect3.options.onStop();\n    }\n    effect3.active = false;\n  }\n}\nvar uid = 0;\nfunction createReactiveEffect(fn, options) {\n  const effect3 = function reactiveEffect() {\n    if (!effect3.active) {\n      return fn();\n    }\n    if (!effectStack.includes(effect3)) {\n      cleanup(effect3);\n      try {\n        enableTracking();\n        effectStack.push(effect3);\n        activeEffect = effect3;\n        return fn();\n      } finally {\n        effectStack.pop();\n        resetTracking();\n        activeEffect = effectStack[effectStack.length - 1];\n      }\n    }\n  };\n  effect3.id = uid++;\n  effect3.allowRecurse = !!options.allowRecurse;\n  effect3._isEffect = true;\n  effect3.active = true;\n  effect3.raw = fn;\n  effect3.deps = [];\n  effect3.options = options;\n  return effect3;\n}\nfunction cleanup(effect3) {\n  const { deps } = effect3;\n  if (deps.length) {\n    for (let i = 0; i < deps.length; i++) {\n      deps[i].delete(effect3);\n    }\n    deps.length = 0;\n  }\n}\nvar shouldTrack = true;\nvar trackStack = [];\nfunction pauseTracking() {\n  trackStack.push(shouldTrack);\n  shouldTrack = false;\n}\nfunction enableTracking() {\n  trackStack.push(shouldTrack);\n  shouldTrack = true;\n}\nfunction resetTracking() {\n  const last = trackStack.pop();\n  shouldTrack = last === void 0 ? true : last;\n}\nfunction track(target, type, key) {\n  if (!shouldTrack || activeEffect === void 0) {\n    return;\n  }\n  let depsMap = targetMap.get(target);\n  if (!depsMap) {\n    targetMap.set(target, depsMap = /* @__PURE__ */ new Map());\n  }\n  let dep = depsMap.get(key);\n  if (!dep) {\n    depsMap.set(key, dep = /* @__PURE__ */ new Set());\n  }\n  if (!dep.has(activeEffect)) {\n    dep.add(activeEffect);\n    activeEffect.deps.push(dep);\n    if (activeEffect.options.onTrack) {\n      activeEffect.options.onTrack({\n        effect: activeEffect,\n        target,\n        type,\n        key\n      });\n    }\n  }\n}\nfunction trigger(target, type, key, newValue, oldValue, oldTarget) {\n  const depsMap = targetMap.get(target);\n  if (!depsMap) {\n    return;\n  }\n  const effects = /* @__PURE__ */ new Set();\n  const add2 = (effectsToAdd) => {\n    if (effectsToAdd) {\n      effectsToAdd.forEach((effect3) => {\n        if (effect3 !== activeEffect || effect3.allowRecurse) {\n          effects.add(effect3);\n        }\n      });\n    }\n  };\n  if (type === \"clear\") {\n    depsMap.forEach(add2);\n  } else if (key === \"length\" && isArray(target)) {\n    depsMap.forEach((dep, key2) => {\n      if (key2 === \"length\" || key2 >= newValue) {\n        add2(dep);\n      }\n    });\n  } else {\n    if (key !== void 0) {\n      add2(depsMap.get(key));\n    }\n    switch (type) {\n      case \"add\":\n        if (!isArray(target)) {\n          add2(depsMap.get(ITERATE_KEY));\n          if (isMap(target)) {\n            add2(depsMap.get(MAP_KEY_ITERATE_KEY));\n          }\n        } else if (isIntegerKey(key)) {\n          add2(depsMap.get(\"length\"));\n        }\n        break;\n      case \"delete\":\n        if (!isArray(target)) {\n          add2(depsMap.get(ITERATE_KEY));\n          if (isMap(target)) {\n            add2(depsMap.get(MAP_KEY_ITERATE_KEY));\n          }\n        }\n        break;\n      case \"set\":\n        if (isMap(target)) {\n          add2(depsMap.get(ITERATE_KEY));\n        }\n        break;\n    }\n  }\n  const run = (effect3) => {\n    if (effect3.options.onTrigger) {\n      effect3.options.onTrigger({\n        effect: effect3,\n        target,\n        key,\n        type,\n        newValue,\n        oldValue,\n        oldTarget\n      });\n    }\n    if (effect3.options.scheduler) {\n      effect3.options.scheduler(effect3);\n    } else {\n      effect3();\n    }\n  };\n  effects.forEach(run);\n}\nvar isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);\nvar builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol).map((key) => Symbol[key]).filter(isSymbol));\nvar get2 = /* @__PURE__ */ createGetter();\nvar readonlyGet = /* @__PURE__ */ createGetter(true);\nvar arrayInstrumentations = /* @__PURE__ */ createArrayInstrumentations();\nfunction createArrayInstrumentations() {\n  const instrumentations = {};\n  [\"includes\", \"indexOf\", \"lastIndexOf\"].forEach((key) => {\n    instrumentations[key] = function(...args) {\n      const arr = toRaw(this);\n      for (let i = 0, l = this.length; i < l; i++) {\n        track(arr, \"get\", i + \"\");\n      }\n      const res = arr[key](...args);\n      if (res === -1 || res === false) {\n        return arr[key](...args.map(toRaw));\n      } else {\n        return res;\n      }\n    };\n  });\n  [\"push\", \"pop\", \"shift\", \"unshift\", \"splice\"].forEach((key) => {\n    instrumentations[key] = function(...args) {\n      pauseTracking();\n      const res = toRaw(this)[key].apply(this, args);\n      resetTracking();\n      return res;\n    };\n  });\n  return instrumentations;\n}\nfunction createGetter(isReadonly = false, shallow = false) {\n  return function get3(target, key, receiver) {\n    if (key === \"__v_isReactive\") {\n      return !isReadonly;\n    } else if (key === \"__v_isReadonly\") {\n      return isReadonly;\n    } else if (key === \"__v_raw\" && receiver === (isReadonly ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) {\n      return target;\n    }\n    const targetIsArray = isArray(target);\n    if (!isReadonly && targetIsArray && hasOwn(arrayInstrumentations, key)) {\n      return Reflect.get(arrayInstrumentations, key, receiver);\n    }\n    const res = Reflect.get(target, key, receiver);\n    if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {\n      return res;\n    }\n    if (!isReadonly) {\n      track(target, \"get\", key);\n    }\n    if (shallow) {\n      return res;\n    }\n    if (isRef(res)) {\n      const shouldUnwrap = !targetIsArray || !isIntegerKey(key);\n      return shouldUnwrap ? res.value : res;\n    }\n    if (isObject(res)) {\n      return isReadonly ? readonly(res) : reactive2(res);\n    }\n    return res;\n  };\n}\nvar set2 = /* @__PURE__ */ createSetter();\nfunction createSetter(shallow = false) {\n  return function set3(target, key, value, receiver) {\n    let oldValue = target[key];\n    if (!shallow) {\n      value = toRaw(value);\n      oldValue = toRaw(oldValue);\n      if (!isArray(target) && isRef(oldValue) && !isRef(value)) {\n        oldValue.value = value;\n        return true;\n      }\n    }\n    const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);\n    const result = Reflect.set(target, key, value, receiver);\n    if (target === toRaw(receiver)) {\n      if (!hadKey) {\n        trigger(target, \"add\", key, value);\n      } else if (hasChanged(value, oldValue)) {\n        trigger(target, \"set\", key, value, oldValue);\n      }\n    }\n    return result;\n  };\n}\nfunction deleteProperty(target, key) {\n  const hadKey = hasOwn(target, key);\n  const oldValue = target[key];\n  const result = Reflect.deleteProperty(target, key);\n  if (result && hadKey) {\n    trigger(target, \"delete\", key, void 0, oldValue);\n  }\n  return result;\n}\nfunction has(target, key) {\n  const result = Reflect.has(target, key);\n  if (!isSymbol(key) || !builtInSymbols.has(key)) {\n    track(target, \"has\", key);\n  }\n  return result;\n}\nfunction ownKeys(target) {\n  track(target, \"iterate\", isArray(target) ? \"length\" : ITERATE_KEY);\n  return Reflect.ownKeys(target);\n}\nvar mutableHandlers = {\n  get: get2,\n  set: set2,\n  deleteProperty,\n  has,\n  ownKeys\n};\nvar readonlyHandlers = {\n  get: readonlyGet,\n  set(target, key) {\n    if (true) {\n      console.warn(`Set operation on key \"${String(key)}\" failed: target is readonly.`, target);\n    }\n    return true;\n  },\n  deleteProperty(target, key) {\n    if (true) {\n      console.warn(`Delete operation on key \"${String(key)}\" failed: target is readonly.`, target);\n    }\n    return true;\n  }\n};\nvar toReactive = (value) => isObject(value) ? reactive2(value) : value;\nvar toReadonly = (value) => isObject(value) ? readonly(value) : value;\nvar toShallow = (value) => value;\nvar getProto = (v) => Reflect.getPrototypeOf(v);\nfunction get$1(target, key, isReadonly = false, isShallow = false) {\n  target = target[\n    \"__v_raw\"\n    /* RAW */\n  ];\n  const rawTarget = toRaw(target);\n  const rawKey = toRaw(key);\n  if (key !== rawKey) {\n    !isReadonly && track(rawTarget, \"get\", key);\n  }\n  !isReadonly && track(rawTarget, \"get\", rawKey);\n  const { has: has2 } = getProto(rawTarget);\n  const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n  if (has2.call(rawTarget, key)) {\n    return wrap(target.get(key));\n  } else if (has2.call(rawTarget, rawKey)) {\n    return wrap(target.get(rawKey));\n  } else if (target !== rawTarget) {\n    target.get(key);\n  }\n}\nfunction has$1(key, isReadonly = false) {\n  const target = this[\n    \"__v_raw\"\n    /* RAW */\n  ];\n  const rawTarget = toRaw(target);\n  const rawKey = toRaw(key);\n  if (key !== rawKey) {\n    !isReadonly && track(rawTarget, \"has\", key);\n  }\n  !isReadonly && track(rawTarget, \"has\", rawKey);\n  return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);\n}\nfunction size(target, isReadonly = false) {\n  target = target[\n    \"__v_raw\"\n    /* RAW */\n  ];\n  !isReadonly && track(toRaw(target), \"iterate\", ITERATE_KEY);\n  return Reflect.get(target, \"size\", target);\n}\nfunction add(value) {\n  value = toRaw(value);\n  const target = toRaw(this);\n  const proto = getProto(target);\n  const hadKey = proto.has.call(target, value);\n  if (!hadKey) {\n    target.add(value);\n    trigger(target, \"add\", value, value);\n  }\n  return this;\n}\nfunction set$1(key, value) {\n  value = toRaw(value);\n  const target = toRaw(this);\n  const { has: has2, get: get3 } = getProto(target);\n  let hadKey = has2.call(target, key);\n  if (!hadKey) {\n    key = toRaw(key);\n    hadKey = has2.call(target, key);\n  } else if (true) {\n    checkIdentityKeys(target, has2, key);\n  }\n  const oldValue = get3.call(target, key);\n  target.set(key, value);\n  if (!hadKey) {\n    trigger(target, \"add\", key, value);\n  } else if (hasChanged(value, oldValue)) {\n    trigger(target, \"set\", key, value, oldValue);\n  }\n  return this;\n}\nfunction deleteEntry(key) {\n  const target = toRaw(this);\n  const { has: has2, get: get3 } = getProto(target);\n  let hadKey = has2.call(target, key);\n  if (!hadKey) {\n    key = toRaw(key);\n    hadKey = has2.call(target, key);\n  } else if (true) {\n    checkIdentityKeys(target, has2, key);\n  }\n  const oldValue = get3 ? get3.call(target, key) : void 0;\n  const result = target.delete(key);\n  if (hadKey) {\n    trigger(target, \"delete\", key, void 0, oldValue);\n  }\n  return result;\n}\nfunction clear() {\n  const target = toRaw(this);\n  const hadItems = target.size !== 0;\n  const oldTarget = true ? isMap(target) ? new Map(target) : new Set(target) : void 0;\n  const result = target.clear();\n  if (hadItems) {\n    trigger(target, \"clear\", void 0, void 0, oldTarget);\n  }\n  return result;\n}\nfunction createForEach(isReadonly, isShallow) {\n  return function forEach(callback, thisArg) {\n    const observed = this;\n    const target = observed[\n      \"__v_raw\"\n      /* RAW */\n    ];\n    const rawTarget = toRaw(target);\n    const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n    !isReadonly && track(rawTarget, \"iterate\", ITERATE_KEY);\n    return target.forEach((value, key) => {\n      return callback.call(thisArg, wrap(value), wrap(key), observed);\n    });\n  };\n}\nfunction createIterableMethod(method, isReadonly, isShallow) {\n  return function(...args) {\n    const target = this[\n      \"__v_raw\"\n      /* RAW */\n    ];\n    const rawTarget = toRaw(target);\n    const targetIsMap = isMap(rawTarget);\n    const isPair = method === \"entries\" || method === Symbol.iterator && targetIsMap;\n    const isKeyOnly = method === \"keys\" && targetIsMap;\n    const innerIterator = target[method](...args);\n    const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n    !isReadonly && track(rawTarget, \"iterate\", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);\n    return {\n      // iterator protocol\n      next() {\n        const { value, done } = innerIterator.next();\n        return done ? { value, done } : {\n          value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),\n          done\n        };\n      },\n      // iterable protocol\n      [Symbol.iterator]() {\n        return this;\n      }\n    };\n  };\n}\nfunction createReadonlyMethod(type) {\n  return function(...args) {\n    if (true) {\n      const key = args[0] ? `on key \"${args[0]}\" ` : ``;\n      console.warn(`${capitalize(type)} operation ${key}failed: target is readonly.`, toRaw(this));\n    }\n    return type === \"delete\" ? false : this;\n  };\n}\nfunction createInstrumentations() {\n  const mutableInstrumentations2 = {\n    get(key) {\n      return get$1(this, key);\n    },\n    get size() {\n      return size(this);\n    },\n    has: has$1,\n    add,\n    set: set$1,\n    delete: deleteEntry,\n    clear,\n    forEach: createForEach(false, false)\n  };\n  const shallowInstrumentations2 = {\n    get(key) {\n      return get$1(this, key, false, true);\n    },\n    get size() {\n      return size(this);\n    },\n    has: has$1,\n    add,\n    set: set$1,\n    delete: deleteEntry,\n    clear,\n    forEach: createForEach(false, true)\n  };\n  const readonlyInstrumentations2 = {\n    get(key) {\n      return get$1(this, key, true);\n    },\n    get size() {\n      return size(this, true);\n    },\n    has(key) {\n      return has$1.call(this, key, true);\n    },\n    add: createReadonlyMethod(\n      \"add\"\n      /* ADD */\n    ),\n    set: createReadonlyMethod(\n      \"set\"\n      /* SET */\n    ),\n    delete: createReadonlyMethod(\n      \"delete\"\n      /* DELETE */\n    ),\n    clear: createReadonlyMethod(\n      \"clear\"\n      /* CLEAR */\n    ),\n    forEach: createForEach(true, false)\n  };\n  const shallowReadonlyInstrumentations2 = {\n    get(key) {\n      return get$1(this, key, true, true);\n    },\n    get size() {\n      return size(this, true);\n    },\n    has(key) {\n      return has$1.call(this, key, true);\n    },\n    add: createReadonlyMethod(\n      \"add\"\n      /* ADD */\n    ),\n    set: createReadonlyMethod(\n      \"set\"\n      /* SET */\n    ),\n    delete: createReadonlyMethod(\n      \"delete\"\n      /* DELETE */\n    ),\n    clear: createReadonlyMethod(\n      \"clear\"\n      /* CLEAR */\n    ),\n    forEach: createForEach(true, true)\n  };\n  const iteratorMethods = [\"keys\", \"values\", \"entries\", Symbol.iterator];\n  iteratorMethods.forEach((method) => {\n    mutableInstrumentations2[method] = createIterableMethod(method, false, false);\n    readonlyInstrumentations2[method] = createIterableMethod(method, true, false);\n    shallowInstrumentations2[method] = createIterableMethod(method, false, true);\n    shallowReadonlyInstrumentations2[method] = createIterableMethod(method, true, true);\n  });\n  return [\n    mutableInstrumentations2,\n    readonlyInstrumentations2,\n    shallowInstrumentations2,\n    shallowReadonlyInstrumentations2\n  ];\n}\nvar [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* @__PURE__ */ createInstrumentations();\nfunction createInstrumentationGetter(isReadonly, shallow) {\n  const instrumentations = shallow ? isReadonly ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly ? readonlyInstrumentations : mutableInstrumentations;\n  return (target, key, receiver) => {\n    if (key === \"__v_isReactive\") {\n      return !isReadonly;\n    } else if (key === \"__v_isReadonly\") {\n      return isReadonly;\n    } else if (key === \"__v_raw\") {\n      return target;\n    }\n    return Reflect.get(hasOwn(instrumentations, key) && key in target ? instrumentations : target, key, receiver);\n  };\n}\nvar mutableCollectionHandlers = {\n  get: /* @__PURE__ */ createInstrumentationGetter(false, false)\n};\nvar readonlyCollectionHandlers = {\n  get: /* @__PURE__ */ createInstrumentationGetter(true, false)\n};\nfunction checkIdentityKeys(target, has2, key) {\n  const rawKey = toRaw(key);\n  if (rawKey !== key && has2.call(target, rawKey)) {\n    const type = toRawType(target);\n    console.warn(`Reactive ${type} contains both the raw and reactive versions of the same object${type === `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.`);\n  }\n}\nvar reactiveMap = /* @__PURE__ */ new WeakMap();\nvar shallowReactiveMap = /* @__PURE__ */ new WeakMap();\nvar readonlyMap = /* @__PURE__ */ new WeakMap();\nvar shallowReadonlyMap = /* @__PURE__ */ new WeakMap();\nfunction targetTypeMap(rawType) {\n  switch (rawType) {\n    case \"Object\":\n    case \"Array\":\n      return 1;\n    case \"Map\":\n    case \"Set\":\n    case \"WeakMap\":\n    case \"WeakSet\":\n      return 2;\n    default:\n      return 0;\n  }\n}\nfunction getTargetType(value) {\n  return value[\n    \"__v_skip\"\n    /* SKIP */\n  ] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value));\n}\nfunction reactive2(target) {\n  if (target && target[\n    \"__v_isReadonly\"\n    /* IS_READONLY */\n  ]) {\n    return target;\n  }\n  return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);\n}\nfunction readonly(target) {\n  return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);\n}\nfunction createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {\n  if (!isObject(target)) {\n    if (true) {\n      console.warn(`value cannot be made reactive: ${String(target)}`);\n    }\n    return target;\n  }\n  if (target[\n    \"__v_raw\"\n    /* RAW */\n  ] && !(isReadonly && target[\n    \"__v_isReactive\"\n    /* IS_REACTIVE */\n  ])) {\n    return target;\n  }\n  const existingProxy = proxyMap.get(target);\n  if (existingProxy) {\n    return existingProxy;\n  }\n  const targetType = getTargetType(target);\n  if (targetType === 0) {\n    return target;\n  }\n  const proxy = new Proxy(target, targetType === 2 ? collectionHandlers : baseHandlers);\n  proxyMap.set(target, proxy);\n  return proxy;\n}\nfunction toRaw(observed) {\n  return observed && toRaw(observed[\n    \"__v_raw\"\n    /* RAW */\n  ]) || observed;\n}\nfunction isRef(r) {\n  return Boolean(r && r.__v_isRef === true);\n}\n\n// packages/alpinejs/src/magics/$nextTick.js\nmagic(\"nextTick\", () => nextTick);\n\n// packages/alpinejs/src/magics/$dispatch.js\nmagic(\"dispatch\", (el) => dispatch.bind(dispatch, el));\n\n// packages/alpinejs/src/magics/$watch.js\nmagic(\"watch\", (el, { evaluateLater: evaluateLater2, cleanup: cleanup2 }) => (key, callback) => {\n  let evaluate2 = evaluateLater2(key);\n  let getter = () => {\n    let value;\n    evaluate2((i) => value = i);\n    return value;\n  };\n  let unwatch = watch(getter, callback);\n  cleanup2(unwatch);\n});\n\n// packages/alpinejs/src/magics/$store.js\nmagic(\"store\", getStores);\n\n// packages/alpinejs/src/magics/$data.js\nmagic(\"data\", (el) => scope(el));\n\n// packages/alpinejs/src/magics/$root.js\nmagic(\"root\", (el) => closestRoot(el));\n\n// packages/alpinejs/src/magics/$refs.js\nmagic(\"refs\", (el) => {\n  if (el._x_refs_proxy)\n    return el._x_refs_proxy;\n  el._x_refs_proxy = mergeProxies(getArrayOfRefObject(el));\n  return el._x_refs_proxy;\n});\nfunction getArrayOfRefObject(el) {\n  let refObjects = [];\n  findClosest(el, (i) => {\n    if (i._x_refs)\n      refObjects.push(i._x_refs);\n  });\n  return refObjects;\n}\n\n// packages/alpinejs/src/ids.js\nvar globalIdMemo = {};\nfunction findAndIncrementId(name) {\n  if (!globalIdMemo[name])\n    globalIdMemo[name] = 0;\n  return ++globalIdMemo[name];\n}\nfunction closestIdRoot(el, name) {\n  return findClosest(el, (element) => {\n    if (element._x_ids && element._x_ids[name])\n      return true;\n  });\n}\nfunction setIdRoot(el, name) {\n  if (!el._x_ids)\n    el._x_ids = {};\n  if (!el._x_ids[name])\n    el._x_ids[name] = findAndIncrementId(name);\n}\n\n// packages/alpinejs/src/magics/$id.js\nmagic(\"id\", (el, { cleanup: cleanup2 }) => (name, key = null) => {\n  let cacheKey = `${name}${key ? `-${key}` : \"\"}`;\n  return cacheIdByNameOnElement(el, cacheKey, cleanup2, () => {\n    let root = closestIdRoot(el, name);\n    let id = root ? root._x_ids[name] : findAndIncrementId(name);\n    return key ? `${name}-${id}-${key}` : `${name}-${id}`;\n  });\n});\ninterceptClone((from, to) => {\n  if (from._x_id) {\n    to._x_id = from._x_id;\n  }\n});\nfunction cacheIdByNameOnElement(el, cacheKey, cleanup2, callback) {\n  if (!el._x_id)\n    el._x_id = {};\n  if (el._x_id[cacheKey])\n    return el._x_id[cacheKey];\n  let output = callback();\n  el._x_id[cacheKey] = output;\n  cleanup2(() => {\n    delete el._x_id[cacheKey];\n  });\n  return output;\n}\n\n// packages/alpinejs/src/magics/$el.js\nmagic(\"el\", (el) => el);\n\n// packages/alpinejs/src/magics/index.js\nwarnMissingPluginMagic(\"Focus\", \"focus\", \"focus\");\nwarnMissingPluginMagic(\"Persist\", \"persist\", \"persist\");\nfunction warnMissingPluginMagic(name, magicName, slug) {\n  magic(magicName, (el) => warn(`You can't use [$${magicName}] without first installing the \"${name}\" plugin here: https://alpinejs.dev/plugins/${slug}`, el));\n}\n\n// packages/alpinejs/src/directives/x-modelable.js\ndirective(\"modelable\", (el, { expression }, { effect: effect3, evaluateLater: evaluateLater2, cleanup: cleanup2 }) => {\n  let func = evaluateLater2(expression);\n  let innerGet = () => {\n    let result;\n    func((i) => result = i);\n    return result;\n  };\n  let evaluateInnerSet = evaluateLater2(`${expression} = __placeholder`);\n  let innerSet = (val) => evaluateInnerSet(() => {\n  }, { scope: { \"__placeholder\": val } });\n  let initialValue = innerGet();\n  innerSet(initialValue);\n  queueMicrotask(() => {\n    if (!el._x_model)\n      return;\n    el._x_removeModelListeners[\"default\"]();\n    let outerGet = el._x_model.get;\n    let outerSet = el._x_model.set;\n    let releaseEntanglement = entangle(\n      {\n        get() {\n          return outerGet();\n        },\n        set(value) {\n          outerSet(value);\n        }\n      },\n      {\n        get() {\n          return innerGet();\n        },\n        set(value) {\n          innerSet(value);\n        }\n      }\n    );\n    cleanup2(releaseEntanglement);\n  });\n});\n\n// packages/alpinejs/src/directives/x-teleport.js\ndirective(\"teleport\", (el, { modifiers, expression }, { cleanup: cleanup2 }) => {\n  if (el.tagName.toLowerCase() !== \"template\")\n    warn(\"x-teleport can only be used on a <template> tag\", el);\n  let target = getTarget(expression);\n  let clone2 = el.content.cloneNode(true).firstElementChild;\n  el._x_teleport = clone2;\n  clone2._x_teleportBack = el;\n  el.setAttribute(\"data-teleport-template\", true);\n  clone2.setAttribute(\"data-teleport-target\", true);\n  if (el._x_forwardEvents) {\n    el._x_forwardEvents.forEach((eventName) => {\n      clone2.addEventListener(eventName, (e) => {\n        e.stopPropagation();\n        el.dispatchEvent(new e.constructor(e.type, e));\n      });\n    });\n  }\n  addScopeToNode(clone2, {}, el);\n  let placeInDom = (clone3, target2, modifiers2) => {\n    if (modifiers2.includes(\"prepend\")) {\n      target2.parentNode.insertBefore(clone3, target2);\n    } else if (modifiers2.includes(\"append\")) {\n      target2.parentNode.insertBefore(clone3, target2.nextSibling);\n    } else {\n      target2.appendChild(clone3);\n    }\n  };\n  mutateDom(() => {\n    placeInDom(clone2, target, modifiers);\n    initTree(clone2);\n    clone2._x_ignore = true;\n  });\n  el._x_teleportPutBack = () => {\n    let target2 = getTarget(expression);\n    mutateDom(() => {\n      placeInDom(el._x_teleport, target2, modifiers);\n    });\n  };\n  cleanup2(() => clone2.remove());\n});\nvar teleportContainerDuringClone = document.createElement(\"div\");\nfunction getTarget(expression) {\n  let target = skipDuringClone(() => {\n    return document.querySelector(expression);\n  }, () => {\n    return teleportContainerDuringClone;\n  })();\n  if (!target)\n    warn(`Cannot find x-teleport element for selector: \"${expression}\"`);\n  return target;\n}\n\n// packages/alpinejs/src/directives/x-ignore.js\nvar handler = () => {\n};\nhandler.inline = (el, { modifiers }, { cleanup: cleanup2 }) => {\n  modifiers.includes(\"self\") ? el._x_ignoreSelf = true : el._x_ignore = true;\n  cleanup2(() => {\n    modifiers.includes(\"self\") ? delete el._x_ignoreSelf : delete el._x_ignore;\n  });\n};\ndirective(\"ignore\", handler);\n\n// packages/alpinejs/src/directives/x-effect.js\ndirective(\"effect\", skipDuringClone((el, { expression }, { effect: effect3 }) => {\n  effect3(evaluateLater(el, expression));\n}));\n\n// packages/alpinejs/src/utils/on.js\nfunction on(el, event, modifiers, callback) {\n  let listenerTarget = el;\n  let handler4 = (e) => callback(e);\n  let options = {};\n  let wrapHandler = (callback2, wrapper) => (e) => wrapper(callback2, e);\n  if (modifiers.includes(\"dot\"))\n    event = dotSyntax(event);\n  if (modifiers.includes(\"camel\"))\n    event = camelCase2(event);\n  if (modifiers.includes(\"passive\"))\n    options.passive = true;\n  if (modifiers.includes(\"capture\"))\n    options.capture = true;\n  if (modifiers.includes(\"window\"))\n    listenerTarget = window;\n  if (modifiers.includes(\"document\"))\n    listenerTarget = document;\n  if (modifiers.includes(\"debounce\")) {\n    let nextModifier = modifiers[modifiers.indexOf(\"debounce\") + 1] || \"invalid-wait\";\n    let wait = isNumeric(nextModifier.split(\"ms\")[0]) ? Number(nextModifier.split(\"ms\")[0]) : 250;\n    handler4 = debounce(handler4, wait);\n  }\n  if (modifiers.includes(\"throttle\")) {\n    let nextModifier = modifiers[modifiers.indexOf(\"throttle\") + 1] || \"invalid-wait\";\n    let wait = isNumeric(nextModifier.split(\"ms\")[0]) ? Number(nextModifier.split(\"ms\")[0]) : 250;\n    handler4 = throttle(handler4, wait);\n  }\n  if (modifiers.includes(\"prevent\"))\n    handler4 = wrapHandler(handler4, (next, e) => {\n      e.preventDefault();\n      next(e);\n    });\n  if (modifiers.includes(\"stop\"))\n    handler4 = wrapHandler(handler4, (next, e) => {\n      e.stopPropagation();\n      next(e);\n    });\n  if (modifiers.includes(\"self\"))\n    handler4 = wrapHandler(handler4, (next, e) => {\n      e.target === el && next(e);\n    });\n  if (modifiers.includes(\"away\") || modifiers.includes(\"outside\")) {\n    listenerTarget = document;\n    handler4 = wrapHandler(handler4, (next, e) => {\n      if (el.contains(e.target))\n        return;\n      if (e.target.isConnected === false)\n        return;\n      if (el.offsetWidth < 1 && el.offsetHeight < 1)\n        return;\n      if (el._x_isShown === false)\n        return;\n      next(e);\n    });\n  }\n  if (modifiers.includes(\"once\")) {\n    handler4 = wrapHandler(handler4, (next, e) => {\n      next(e);\n      listenerTarget.removeEventListener(event, handler4, options);\n    });\n  }\n  handler4 = wrapHandler(handler4, (next, e) => {\n    if (isKeyEvent(event)) {\n      if (isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers)) {\n        return;\n      }\n    }\n    next(e);\n  });\n  listenerTarget.addEventListener(event, handler4, options);\n  return () => {\n    listenerTarget.removeEventListener(event, handler4, options);\n  };\n}\nfunction dotSyntax(subject) {\n  return subject.replace(/-/g, \".\");\n}\nfunction camelCase2(subject) {\n  return subject.toLowerCase().replace(/-(\\w)/g, (match, char) => char.toUpperCase());\n}\nfunction isNumeric(subject) {\n  return !Array.isArray(subject) && !isNaN(subject);\n}\nfunction kebabCase2(subject) {\n  if ([\" \", \"_\"].includes(\n    subject\n  ))\n    return subject;\n  return subject.replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/[_\\s]/, \"-\").toLowerCase();\n}\nfunction isKeyEvent(event) {\n  return [\"keydown\", \"keyup\"].includes(event);\n}\nfunction isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers) {\n  let keyModifiers = modifiers.filter((i) => {\n    return ![\"window\", \"document\", \"prevent\", \"stop\", \"once\", \"capture\"].includes(i);\n  });\n  if (keyModifiers.includes(\"debounce\")) {\n    let debounceIndex = keyModifiers.indexOf(\"debounce\");\n    keyModifiers.splice(debounceIndex, isNumeric((keyModifiers[debounceIndex + 1] || \"invalid-wait\").split(\"ms\")[0]) ? 2 : 1);\n  }\n  if (keyModifiers.includes(\"throttle\")) {\n    let debounceIndex = keyModifiers.indexOf(\"throttle\");\n    keyModifiers.splice(debounceIndex, isNumeric((keyModifiers[debounceIndex + 1] || \"invalid-wait\").split(\"ms\")[0]) ? 2 : 1);\n  }\n  if (keyModifiers.length === 0)\n    return false;\n  if (keyModifiers.length === 1 && keyToModifiers(e.key).includes(keyModifiers[0]))\n    return false;\n  const systemKeyModifiers = [\"ctrl\", \"shift\", \"alt\", \"meta\", \"cmd\", \"super\"];\n  const selectedSystemKeyModifiers = systemKeyModifiers.filter((modifier) => keyModifiers.includes(modifier));\n  keyModifiers = keyModifiers.filter((i) => !selectedSystemKeyModifiers.includes(i));\n  if (selectedSystemKeyModifiers.length > 0) {\n    const activelyPressedKeyModifiers = selectedSystemKeyModifiers.filter((modifier) => {\n      if (modifier === \"cmd\" || modifier === \"super\")\n        modifier = \"meta\";\n      return e[`${modifier}Key`];\n    });\n    if (activelyPressedKeyModifiers.length === selectedSystemKeyModifiers.length) {\n      if (keyToModifiers(e.key).includes(keyModifiers[0]))\n        return false;\n    }\n  }\n  return true;\n}\nfunction keyToModifiers(key) {\n  if (!key)\n    return [];\n  key = kebabCase2(key);\n  let modifierToKeyMap = {\n    \"ctrl\": \"control\",\n    \"slash\": \"/\",\n    \"space\": \" \",\n    \"spacebar\": \" \",\n    \"cmd\": \"meta\",\n    \"esc\": \"escape\",\n    \"up\": \"arrow-up\",\n    \"down\": \"arrow-down\",\n    \"left\": \"arrow-left\",\n    \"right\": \"arrow-right\",\n    \"period\": \".\",\n    \"equal\": \"=\",\n    \"minus\": \"-\",\n    \"underscore\": \"_\"\n  };\n  modifierToKeyMap[key] = key;\n  return Object.keys(modifierToKeyMap).map((modifier) => {\n    if (modifierToKeyMap[modifier] === key)\n      return modifier;\n  }).filter((modifier) => modifier);\n}\n\n// packages/alpinejs/src/directives/x-model.js\ndirective(\"model\", (el, { modifiers, expression }, { effect: effect3, cleanup: cleanup2 }) => {\n  let scopeTarget = el;\n  if (modifiers.includes(\"parent\")) {\n    scopeTarget = el.parentNode;\n  }\n  let evaluateGet = evaluateLater(scopeTarget, expression);\n  let evaluateSet;\n  if (typeof expression === \"string\") {\n    evaluateSet = evaluateLater(scopeTarget, `${expression} = __placeholder`);\n  } else if (typeof expression === \"function\" && typeof expression() === \"string\") {\n    evaluateSet = evaluateLater(scopeTarget, `${expression()} = __placeholder`);\n  } else {\n    evaluateSet = () => {\n    };\n  }\n  let getValue = () => {\n    let result;\n    evaluateGet((value) => result = value);\n    return isGetterSetter(result) ? result.get() : result;\n  };\n  let setValue = (value) => {\n    let result;\n    evaluateGet((value2) => result = value2);\n    if (isGetterSetter(result)) {\n      result.set(value);\n    } else {\n      evaluateSet(() => {\n      }, {\n        scope: { \"__placeholder\": value }\n      });\n    }\n  };\n  if (typeof expression === \"string\" && el.type === \"radio\") {\n    mutateDom(() => {\n      if (!el.hasAttribute(\"name\"))\n        el.setAttribute(\"name\", expression);\n    });\n  }\n  var event = el.tagName.toLowerCase() === \"select\" || [\"checkbox\", \"radio\"].includes(el.type) || modifiers.includes(\"lazy\") ? \"change\" : \"input\";\n  let removeListener = isCloning ? () => {\n  } : on(el, event, modifiers, (e) => {\n    setValue(getInputValue(el, modifiers, e, getValue()));\n  });\n  if (modifiers.includes(\"fill\")) {\n    if ([void 0, null, \"\"].includes(getValue()) || el.type === \"checkbox\" && Array.isArray(getValue())) {\n      el.dispatchEvent(new Event(event, {}));\n    }\n  }\n  if (!el._x_removeModelListeners)\n    el._x_removeModelListeners = {};\n  el._x_removeModelListeners[\"default\"] = removeListener;\n  cleanup2(() => el._x_removeModelListeners[\"default\"]());\n  if (el.form) {\n    let removeResetListener = on(el.form, \"reset\", [], (e) => {\n      nextTick(() => el._x_model && el._x_model.set(el.value));\n    });\n    cleanup2(() => removeResetListener());\n  }\n  el._x_model = {\n    get() {\n      return getValue();\n    },\n    set(value) {\n      setValue(value);\n    }\n  };\n  el._x_forceModelUpdate = (value) => {\n    if (value === void 0 && typeof expression === \"string\" && expression.match(/\\./))\n      value = \"\";\n    window.fromModel = true;\n    mutateDom(() => bind(el, \"value\", value));\n    delete window.fromModel;\n  };\n  effect3(() => {\n    let value = getValue();\n    if (modifiers.includes(\"unintrusive\") && document.activeElement.isSameNode(el))\n      return;\n    el._x_forceModelUpdate(value);\n  });\n});\nfunction getInputValue(el, modifiers, event, currentValue) {\n  return mutateDom(() => {\n    if (event instanceof CustomEvent && event.detail !== void 0)\n      return event.detail !== null && event.detail !== void 0 ? event.detail : event.target.value;\n    else if (el.type === \"checkbox\") {\n      if (Array.isArray(currentValue)) {\n        let newValue = null;\n        if (modifiers.includes(\"number\")) {\n          newValue = safeParseNumber(event.target.value);\n        } else if (modifiers.includes(\"boolean\")) {\n          newValue = safeParseBoolean(event.target.value);\n        } else {\n          newValue = event.target.value;\n        }\n        return event.target.checked ? currentValue.concat([newValue]) : currentValue.filter((el2) => !checkedAttrLooseCompare2(el2, newValue));\n      } else {\n        return event.target.checked;\n      }\n    } else if (el.tagName.toLowerCase() === \"select\" && el.multiple) {\n      if (modifiers.includes(\"number\")) {\n        return Array.from(event.target.selectedOptions).map((option) => {\n          let rawValue = option.value || option.text;\n          return safeParseNumber(rawValue);\n        });\n      } else if (modifiers.includes(\"boolean\")) {\n        return Array.from(event.target.selectedOptions).map((option) => {\n          let rawValue = option.value || option.text;\n          return safeParseBoolean(rawValue);\n        });\n      }\n      return Array.from(event.target.selectedOptions).map((option) => {\n        return option.value || option.text;\n      });\n    } else {\n      if (modifiers.includes(\"number\")) {\n        return safeParseNumber(event.target.value);\n      } else if (modifiers.includes(\"boolean\")) {\n        return safeParseBoolean(event.target.value);\n      }\n      return modifiers.includes(\"trim\") ? event.target.value.trim() : event.target.value;\n    }\n  });\n}\nfunction safeParseNumber(rawValue) {\n  let number = rawValue ? parseFloat(rawValue) : null;\n  return isNumeric2(number) ? number : rawValue;\n}\nfunction checkedAttrLooseCompare2(valueA, valueB) {\n  return valueA == valueB;\n}\nfunction isNumeric2(subject) {\n  return !Array.isArray(subject) && !isNaN(subject);\n}\nfunction isGetterSetter(value) {\n  return value !== null && typeof value === \"object\" && typeof value.get === \"function\" && typeof value.set === \"function\";\n}\n\n// packages/alpinejs/src/directives/x-cloak.js\ndirective(\"cloak\", (el) => queueMicrotask(() => mutateDom(() => el.removeAttribute(prefix(\"cloak\")))));\n\n// packages/alpinejs/src/directives/x-init.js\naddInitSelector(() => `[${prefix(\"init\")}]`);\ndirective(\"init\", skipDuringClone((el, { expression }, { evaluate: evaluate2 }) => {\n  if (typeof expression === \"string\") {\n    return !!expression.trim() && evaluate2(expression, {}, false);\n  }\n  return evaluate2(expression, {}, false);\n}));\n\n// packages/alpinejs/src/directives/x-text.js\ndirective(\"text\", (el, { expression }, { effect: effect3, evaluateLater: evaluateLater2 }) => {\n  let evaluate2 = evaluateLater2(expression);\n  effect3(() => {\n    evaluate2((value) => {\n      mutateDom(() => {\n        el.textContent = value;\n      });\n    });\n  });\n});\n\n// packages/alpinejs/src/directives/x-html.js\ndirective(\"html\", (el, { expression }, { effect: effect3, evaluateLater: evaluateLater2 }) => {\n  let evaluate2 = evaluateLater2(expression);\n  effect3(() => {\n    evaluate2((value) => {\n      mutateDom(() => {\n        el.innerHTML = value;\n        el._x_ignoreSelf = true;\n        initTree(el);\n        delete el._x_ignoreSelf;\n      });\n    });\n  });\n});\n\n// packages/alpinejs/src/directives/x-bind.js\nmapAttributes(startingWith(\":\", into(prefix(\"bind:\"))));\nvar handler2 = (el, { value, modifiers, expression, original }, { effect: effect3 }) => {\n  if (!value) {\n    let bindingProviders = {};\n    injectBindingProviders(bindingProviders);\n    let getBindings = evaluateLater(el, expression);\n    getBindings((bindings) => {\n      applyBindingsObject(el, bindings, original);\n    }, { scope: bindingProviders });\n    return;\n  }\n  if (value === \"key\")\n    return storeKeyForXFor(el, expression);\n  if (el._x_inlineBindings && el._x_inlineBindings[value] && el._x_inlineBindings[value].extract) {\n    return;\n  }\n  let evaluate2 = evaluateLater(el, expression);\n  effect3(() => evaluate2((result) => {\n    if (result === void 0 && typeof expression === \"string\" && expression.match(/\\./)) {\n      result = \"\";\n    }\n    mutateDom(() => bind(el, value, result, modifiers));\n  }));\n};\nhandler2.inline = (el, { value, modifiers, expression }) => {\n  if (!value)\n    return;\n  if (!el._x_inlineBindings)\n    el._x_inlineBindings = {};\n  el._x_inlineBindings[value] = { expression, extract: false };\n};\ndirective(\"bind\", handler2);\nfunction storeKeyForXFor(el, expression) {\n  el._x_keyExpression = expression;\n}\n\n// packages/alpinejs/src/directives/x-data.js\naddRootSelector(() => `[${prefix(\"data\")}]`);\ndirective(\"data\", (el, { expression }, { cleanup: cleanup2 }) => {\n  if (shouldSkipRegisteringDataDuringClone(el))\n    return;\n  expression = expression === \"\" ? \"{}\" : expression;\n  let magicContext = {};\n  injectMagics(magicContext, el);\n  let dataProviderContext = {};\n  injectDataProviders(dataProviderContext, magicContext);\n  let data2 = evaluate(el, expression, { scope: dataProviderContext });\n  if (data2 === void 0 || data2 === true)\n    data2 = {};\n  injectMagics(data2, el);\n  let reactiveData = reactive(data2);\n  initInterceptors2(reactiveData);\n  let undo = addScopeToNode(el, reactiveData);\n  reactiveData[\"init\"] && evaluate(el, reactiveData[\"init\"]);\n  cleanup2(() => {\n    reactiveData[\"destroy\"] && evaluate(el, reactiveData[\"destroy\"]);\n    undo();\n  });\n});\ninterceptClone((from, to) => {\n  if (from._x_dataStack) {\n    to._x_dataStack = from._x_dataStack;\n    to.setAttribute(\"data-has-alpine-state\", true);\n  }\n});\nfunction shouldSkipRegisteringDataDuringClone(el) {\n  if (!isCloning)\n    return false;\n  if (isCloningLegacy)\n    return true;\n  return el.hasAttribute(\"data-has-alpine-state\");\n}\n\n// packages/alpinejs/src/directives/x-show.js\ndirective(\"show\", (el, { modifiers, expression }, { effect: effect3 }) => {\n  let evaluate2 = evaluateLater(el, expression);\n  if (!el._x_doHide)\n    el._x_doHide = () => {\n      mutateDom(() => {\n        el.style.setProperty(\"display\", \"none\", modifiers.includes(\"important\") ? \"important\" : void 0);\n      });\n    };\n  if (!el._x_doShow)\n    el._x_doShow = () => {\n      mutateDom(() => {\n        if (el.style.length === 1 && el.style.display === \"none\") {\n          el.removeAttribute(\"style\");\n        } else {\n          el.style.removeProperty(\"display\");\n        }\n      });\n    };\n  let hide = () => {\n    el._x_doHide();\n    el._x_isShown = false;\n  };\n  let show = () => {\n    el._x_doShow();\n    el._x_isShown = true;\n  };\n  let clickAwayCompatibleShow = () => setTimeout(show);\n  let toggle = once(\n    (value) => value ? show() : hide(),\n    (value) => {\n      if (typeof el._x_toggleAndCascadeWithTransitions === \"function\") {\n        el._x_toggleAndCascadeWithTransitions(el, value, show, hide);\n      } else {\n        value ? clickAwayCompatibleShow() : hide();\n      }\n    }\n  );\n  let oldValue;\n  let firstTime = true;\n  effect3(() => evaluate2((value) => {\n    if (!firstTime && value === oldValue)\n      return;\n    if (modifiers.includes(\"immediate\"))\n      value ? clickAwayCompatibleShow() : hide();\n    toggle(value);\n    oldValue = value;\n    firstTime = false;\n  }));\n});\n\n// packages/alpinejs/src/directives/x-for.js\ndirective(\"for\", (el, { expression }, { effect: effect3, cleanup: cleanup2 }) => {\n  let iteratorNames = parseForExpression(expression);\n  let evaluateItems = evaluateLater(el, iteratorNames.items);\n  let evaluateKey = evaluateLater(\n    el,\n    // the x-bind:key expression is stored for our use instead of evaluated.\n    el._x_keyExpression || \"index\"\n  );\n  el._x_prevKeys = [];\n  el._x_lookup = {};\n  effect3(() => loop(el, iteratorNames, evaluateItems, evaluateKey));\n  cleanup2(() => {\n    Object.values(el._x_lookup).forEach((el2) => el2.remove());\n    delete el._x_prevKeys;\n    delete el._x_lookup;\n  });\n});\nfunction loop(el, iteratorNames, evaluateItems, evaluateKey) {\n  let isObject2 = (i) => typeof i === \"object\" && !Array.isArray(i);\n  let templateEl = el;\n  evaluateItems((items) => {\n    if (isNumeric3(items) && items >= 0) {\n      items = Array.from(Array(items).keys(), (i) => i + 1);\n    }\n    if (items === void 0)\n      items = [];\n    let lookup = el._x_lookup;\n    let prevKeys = el._x_prevKeys;\n    let scopes = [];\n    let keys = [];\n    if (isObject2(items)) {\n      items = Object.entries(items).map(([key, value]) => {\n        let scope2 = getIterationScopeVariables(iteratorNames, value, key, items);\n        evaluateKey((value2) => {\n          if (keys.includes(value2))\n            warn(\"Duplicate key on x-for\", el);\n          keys.push(value2);\n        }, { scope: { index: key, ...scope2 } });\n        scopes.push(scope2);\n      });\n    } else {\n      for (let i = 0; i < items.length; i++) {\n        let scope2 = getIterationScopeVariables(iteratorNames, items[i], i, items);\n        evaluateKey((value) => {\n          if (keys.includes(value))\n            warn(\"Duplicate key on x-for\", el);\n          keys.push(value);\n        }, { scope: { index: i, ...scope2 } });\n        scopes.push(scope2);\n      }\n    }\n    let adds = [];\n    let moves = [];\n    let removes = [];\n    let sames = [];\n    for (let i = 0; i < prevKeys.length; i++) {\n      let key = prevKeys[i];\n      if (keys.indexOf(key) === -1)\n        removes.push(key);\n    }\n    prevKeys = prevKeys.filter((key) => !removes.includes(key));\n    let lastKey = \"template\";\n    for (let i = 0; i < keys.length; i++) {\n      let key = keys[i];\n      let prevIndex = prevKeys.indexOf(key);\n      if (prevIndex === -1) {\n        prevKeys.splice(i, 0, key);\n        adds.push([lastKey, i]);\n      } else if (prevIndex !== i) {\n        let keyInSpot = prevKeys.splice(i, 1)[0];\n        let keyForSpot = prevKeys.splice(prevIndex - 1, 1)[0];\n        prevKeys.splice(i, 0, keyForSpot);\n        prevKeys.splice(prevIndex, 0, keyInSpot);\n        moves.push([keyInSpot, keyForSpot]);\n      } else {\n        sames.push(key);\n      }\n      lastKey = key;\n    }\n    for (let i = 0; i < removes.length; i++) {\n      let key = removes[i];\n      if (!!lookup[key]._x_effects) {\n        lookup[key]._x_effects.forEach(dequeueJob);\n      }\n      lookup[key].remove();\n      lookup[key] = null;\n      delete lookup[key];\n    }\n    for (let i = 0; i < moves.length; i++) {\n      let [keyInSpot, keyForSpot] = moves[i];\n      let elInSpot = lookup[keyInSpot];\n      let elForSpot = lookup[keyForSpot];\n      let marker = document.createElement(\"div\");\n      mutateDom(() => {\n        if (!elForSpot)\n          warn(`x-for \":key\" is undefined or invalid`, templateEl, keyForSpot, lookup);\n        elForSpot.after(marker);\n        elInSpot.after(elForSpot);\n        elForSpot._x_currentIfEl && elForSpot.after(elForSpot._x_currentIfEl);\n        marker.before(elInSpot);\n        elInSpot._x_currentIfEl && elInSpot.after(elInSpot._x_currentIfEl);\n        marker.remove();\n      });\n      elForSpot._x_refreshXForScope(scopes[keys.indexOf(keyForSpot)]);\n    }\n    for (let i = 0; i < adds.length; i++) {\n      let [lastKey2, index] = adds[i];\n      let lastEl = lastKey2 === \"template\" ? templateEl : lookup[lastKey2];\n      if (lastEl._x_currentIfEl)\n        lastEl = lastEl._x_currentIfEl;\n      let scope2 = scopes[index];\n      let key = keys[index];\n      let clone2 = document.importNode(templateEl.content, true).firstElementChild;\n      let reactiveScope = reactive(scope2);\n      addScopeToNode(clone2, reactiveScope, templateEl);\n      clone2._x_refreshXForScope = (newScope) => {\n        Object.entries(newScope).forEach(([key2, value]) => {\n          reactiveScope[key2] = value;\n        });\n      };\n      mutateDom(() => {\n        lastEl.after(clone2);\n        skipDuringClone(() => initTree(clone2))();\n      });\n      if (typeof key === \"object\") {\n        warn(\"x-for key cannot be an object, it must be a string or an integer\", templateEl);\n      }\n      lookup[key] = clone2;\n    }\n    for (let i = 0; i < sames.length; i++) {\n      lookup[sames[i]]._x_refreshXForScope(scopes[keys.indexOf(sames[i])]);\n    }\n    templateEl._x_prevKeys = keys;\n  });\n}\nfunction parseForExpression(expression) {\n  let forIteratorRE = /,([^,\\}\\]]*)(?:,([^,\\}\\]]*))?$/;\n  let stripParensRE = /^\\s*\\(|\\)\\s*$/g;\n  let forAliasRE = /([\\s\\S]*?)\\s+(?:in|of)\\s+([\\s\\S]*)/;\n  let inMatch = expression.match(forAliasRE);\n  if (!inMatch)\n    return;\n  let res = {};\n  res.items = inMatch[2].trim();\n  let item = inMatch[1].replace(stripParensRE, \"\").trim();\n  let iteratorMatch = item.match(forIteratorRE);\n  if (iteratorMatch) {\n    res.item = item.replace(forIteratorRE, \"\").trim();\n    res.index = iteratorMatch[1].trim();\n    if (iteratorMatch[2]) {\n      res.collection = iteratorMatch[2].trim();\n    }\n  } else {\n    res.item = item;\n  }\n  return res;\n}\nfunction getIterationScopeVariables(iteratorNames, item, index, items) {\n  let scopeVariables = {};\n  if (/^\\[.*\\]$/.test(iteratorNames.item) && Array.isArray(item)) {\n    let names = iteratorNames.item.replace(\"[\", \"\").replace(\"]\", \"\").split(\",\").map((i) => i.trim());\n    names.forEach((name, i) => {\n      scopeVariables[name] = item[i];\n    });\n  } else if (/^\\{.*\\}$/.test(iteratorNames.item) && !Array.isArray(item) && typeof item === \"object\") {\n    let names = iteratorNames.item.replace(\"{\", \"\").replace(\"}\", \"\").split(\",\").map((i) => i.trim());\n    names.forEach((name) => {\n      scopeVariables[name] = item[name];\n    });\n  } else {\n    scopeVariables[iteratorNames.item] = item;\n  }\n  if (iteratorNames.index)\n    scopeVariables[iteratorNames.index] = index;\n  if (iteratorNames.collection)\n    scopeVariables[iteratorNames.collection] = items;\n  return scopeVariables;\n}\nfunction isNumeric3(subject) {\n  return !Array.isArray(subject) && !isNaN(subject);\n}\n\n// packages/alpinejs/src/directives/x-ref.js\nfunction handler3() {\n}\nhandler3.inline = (el, { expression }, { cleanup: cleanup2 }) => {\n  let root = closestRoot(el);\n  if (!root._x_refs)\n    root._x_refs = {};\n  root._x_refs[expression] = el;\n  cleanup2(() => delete root._x_refs[expression]);\n};\ndirective(\"ref\", handler3);\n\n// packages/alpinejs/src/directives/x-if.js\ndirective(\"if\", (el, { expression }, { effect: effect3, cleanup: cleanup2 }) => {\n  if (el.tagName.toLowerCase() !== \"template\")\n    warn(\"x-if can only be used on a <template> tag\", el);\n  let evaluate2 = evaluateLater(el, expression);\n  let show = () => {\n    if (el._x_currentIfEl)\n      return el._x_currentIfEl;\n    let clone2 = el.content.cloneNode(true).firstElementChild;\n    addScopeToNode(clone2, {}, el);\n    mutateDom(() => {\n      el.after(clone2);\n      skipDuringClone(() => initTree(clone2))();\n    });\n    el._x_currentIfEl = clone2;\n    el._x_undoIf = () => {\n      walk(clone2, (node) => {\n        if (!!node._x_effects) {\n          node._x_effects.forEach(dequeueJob);\n        }\n      });\n      clone2.remove();\n      delete el._x_currentIfEl;\n    };\n    return clone2;\n  };\n  let hide = () => {\n    if (!el._x_undoIf)\n      return;\n    el._x_undoIf();\n    delete el._x_undoIf;\n  };\n  effect3(() => evaluate2((value) => {\n    value ? show() : hide();\n  }));\n  cleanup2(() => el._x_undoIf && el._x_undoIf());\n});\n\n// packages/alpinejs/src/directives/x-id.js\ndirective(\"id\", (el, { expression }, { evaluate: evaluate2 }) => {\n  let names = evaluate2(expression);\n  names.forEach((name) => setIdRoot(el, name));\n});\ninterceptClone((from, to) => {\n  if (from._x_ids) {\n    to._x_ids = from._x_ids;\n  }\n});\n\n// packages/alpinejs/src/directives/x-on.js\nmapAttributes(startingWith(\"@\", into(prefix(\"on:\"))));\ndirective(\"on\", skipDuringClone((el, { value, modifiers, expression }, { cleanup: cleanup2 }) => {\n  let evaluate2 = expression ? evaluateLater(el, expression) : () => {\n  };\n  if (el.tagName.toLowerCase() === \"template\") {\n    if (!el._x_forwardEvents)\n      el._x_forwardEvents = [];\n    if (!el._x_forwardEvents.includes(value))\n      el._x_forwardEvents.push(value);\n  }\n  let removeListener = on(el, value, modifiers, (e) => {\n    evaluate2(() => {\n    }, { scope: { \"$event\": e }, params: [e] });\n  });\n  cleanup2(() => removeListener());\n}));\n\n// packages/alpinejs/src/directives/index.js\nwarnMissingPluginDirective(\"Collapse\", \"collapse\", \"collapse\");\nwarnMissingPluginDirective(\"Intersect\", \"intersect\", \"intersect\");\nwarnMissingPluginDirective(\"Focus\", \"trap\", \"focus\");\nwarnMissingPluginDirective(\"Mask\", \"mask\", \"mask\");\nfunction warnMissingPluginDirective(name, directiveName, slug) {\n  directive(directiveName, (el) => warn(`You can't use [x-${directiveName}] without first installing the \"${name}\" plugin here: https://alpinejs.dev/plugins/${slug}`, el));\n}\n\n// packages/alpinejs/src/index.js\nalpine_default.setEvaluator(normalEvaluator);\nalpine_default.setReactivityEngine({ reactive: reactive2, effect: effect2, release: stop, raw: toRaw });\nvar src_default = alpine_default;\n\n// packages/alpinejs/builds/module.js\nvar module_default = src_default;\nexport {\n  src_default as Alpine,\n  module_default as default\n};\n", "import Alpine from 'alpinejs'\n\nexport function generateEntangleFunction(component, cleanup) {\n    if (! cleanup) cleanup = () => {}\n\n    return (name, live = false) => {\n        let isLive = live\n        let livewireProperty = name\n        let livewireComponent = component.$wire\n        let livewirePropertyValue = livewireComponent.get(livewireProperty)\n\n        let interceptor = Alpine.interceptor((initialValue, getter, setter, path, key) => {\n            // Check to see if the Livewire property exists and if not log a console error\n            // and return so everything else keeps running.\n            if (typeof livewirePropertyValue === 'undefined') {\n                console.error(`Livewire Entangle Error: Livewire property ['${livewireProperty}'] cannot be found on component: ['${component.name}']`)\n                return\n            }\n\n                let release = Alpine.entangle({\n                    // Outer scope...\n                    get() {\n                        return livewireComponent.get(name)\n                    },\n                    set(value) {\n                        livewireComponent.set(name, value, isLive)\n                    }\n                }, {\n                    // Inner scope...\n                    get() {\n                        return getter()\n                    },\n                    set(value) {\n                        setter(value)\n                    }\n                })\n\n                cleanup(() => release())\n\n            return cloneIfObject(livewireComponent.get(name))\n        }, obj => {\n            Object.defineProperty(obj, 'live', {\n                get() {\n                    isLive = true\n\n                    return obj\n                }\n            })\n        })\n\n        return interceptor(livewirePropertyValue)\n    }\n}\n\nfunction cloneIfObject(value) {\n    return typeof value === 'object'\n        ? JSON.parse(JSON.stringify(value))\n        : value\n}\n", "import { isFunction } from '@/utils'\n\n/**\n * Our internal event listener bus...\n */\nlet listeners = []\n\n/**\n * Register a callback to run when an event is triggered...\n */\nexport function on(name, callback) {\n    if (! listeners[name]) listeners[name] = []\n\n    listeners[name].push(callback)\n\n    // Return an \"off\" callback to remove the listener...\n    return () => {\n        listeners[name] = listeners[name].filter(i => i !== callback)\n    }\n}\n\n/**\n * In addition to triggering an event, this method allows you to\n * defer running callbacks returned from listeners and pass a\n * value through each one so they can act like middleware.\n *\n * An example of using this combination to the fullest:\n *\n * // First let's look at the triggering phase:\n * let finish = trigger([event name], ...[event params])\n *\n * return finish([pass-through value])\n *\n * // Now, let's look at the \"listening\" phase:\n * on([event name], (...[event params]) => {\n *     // The contents of this callback will be run immediately on trigger.\n *\n *     return ([pass-through value]) => {\n *         // This callback will be run when \"finish()\" is called.\n *\n *         // The [pass-through value] can be mutated and must\n *         // be returned for the next callback to process.\n *         return [pass-through value]\n *     }\n * })\n */\nexport function trigger(name, ...params) {\n    let callbacks = listeners[name] || []\n\n    let finishers = []\n\n    for (let i = 0; i < callbacks.length; i++) {\n        let finisher = callbacks[i](...params)\n\n        if (isFunction(finisher)) finishers.push(finisher)\n    }\n\n    return (result) => {\n       return runFinishers(finishers, result)\n    }\n}\n\nexport async function triggerAsync(name, ...params) {\n    let callbacks = listeners[name] || []\n\n    let finishers = []\n\n    for (let i = 0; i < callbacks.length; i++) {\n        let finisher = await callbacks[i](...params)\n\n        if (isFunction(finisher)) finishers.push(finisher)\n    }\n\n    return (result) => {\n       return runFinishers(finishers, result)\n    }\n}\n\nexport function runFinishers(finishers, result)\n{\n    let latest = result\n\n    for (let i = 0; i < finishers.length; i++) {\n        let iResult = finishers[i](latest)\n\n        if (iResult !== undefined) {\n            latest = iResult\n        }\n    }\n\n    return latest\n}\n", "\n// This code and concept is all Jonathan Reinink - thanks main!\nexport function showHtmlModal(html) {\n    let page = document.createElement('html')\n    page.innerHTML = html\n    page.querySelectorAll('a').forEach(a =>\n        a.setAttribute('target', '_top')\n    )\n\n    let modal = document.getElementById('livewire-error')\n\n    if (typeof modal != 'undefined' && modal != null) {\n        // Modal already exists.\n        modal.innerHTML = ''\n    } else {\n        modal = document.createElement('div')\n        modal.id = 'livewire-error'\n        modal.style.position = 'fixed'\n        modal.style.width = '100vw'\n        modal.style.height = '100vh'\n        modal.style.padding = '50px'\n        modal.style.backgroundColor = 'rgba(0, 0, 0, .6)'\n        modal.style.zIndex = 200000\n    }\n\n    let iframe = document.createElement('iframe')\n    iframe.style.backgroundColor = '#17161A'\n    iframe.style.borderRadius = '5px'\n    iframe.style.width = '100%'\n    iframe.style.height = '100%'\n    modal.appendChild(iframe)\n\n    document.body.prepend(modal)\n    document.body.style.overflow = 'hidden'\n    iframe.contentWindow.document.open()\n    iframe.contentWindow.document.write(page.outerHTML)\n    iframe.contentWindow.document.close()\n\n    // Close on click.\n    modal.addEventListener('click', () => hideHtmlModal(modal))\n\n    // Close on escape key press.\n    modal.setAttribute('tabindex', 0)\n    modal.addEventListener('keydown', e => {\n        if (e.key === 'Escape') hideHtmlModal(modal)\n    })\n    modal.focus()\n}\n\nexport function hideHtmlModal(modal) {\n    modal.outerHTML = ''\n    document.body.style.overflow = 'visible'\n}\n", "import { sendRequest } from \"@/request\"\n\n/**\n * The RequestPool contains a list of commits to be sent to the server...\n */\nexport class RequestPool {\n    constructor() {\n        this.commits = new Set\n    }\n\n    add(commit) {\n        this.commits.add(commit)\n    }\n\n    delete(commit) {\n        this.commits.delete(commit)\n    }\n\n    hasCommitFor(component) {\n        return !! this.findCommitByComponent(component)\n    }\n\n    findCommitByComponent(component) {\n        // Determine if this pool already has a commit for this component...\n        for (let [idx, commit] of this.commits.entries()) {\n            if (commit.component === component) return commit\n        }\n    }\n\n    // Determine if a commit should be added to this pool or isolated into its own...\n    shouldHoldCommit(commit) {\n        return ! commit.isolate\n    }\n\n    empty() {\n        return this.commits.size === 0\n    }\n\n    async send() {\n        this.prepare()\n\n        // Send this pool of commits to the server and let the commits\n        // Manage their own response actions...\n        await sendRequest(this)\n    }\n\n    prepare() {\n        // Give each commit a chance to do any last-minute prep\n        // before being sent to the server.\n        this.commits.forEach(i => i.prepare())\n    }\n\n    payload() {\n        // Extract a request payload from each of the commits in this pool...\n        let commitPayloads = []\n\n        // Collect success and failure callbacks to be used inside aggregated callbacks...\n        let successReceivers = []\n        let failureReceivers = []\n\n        this.commits.forEach(commit => {\n            let [payload, succeed, fail] = commit.toRequestPayload()\n\n            commitPayloads.push(payload)\n            successReceivers.push(succeed)\n            failureReceivers.push(fail)\n        })\n\n        // Aggregate the success and failure callbacks for individual commits\n        // into something that can be called singularly...\n        let succeed = components => successReceivers.forEach(receiver => receiver(components.shift()))\n\n        let fail = () => failureReceivers.forEach(receiver => receiver())\n\n        return [ commitPayloads, succeed, fail ]\n    }\n}\n", "import { diff } from '@/utils'\nimport { on, trigger } from '@/hooks'\n\n/**\n * A commit represents an individual component updating itself server-side...\n */\nexport class Commit {\n    constructor(component) {\n        this.component = component\n        this.isolate = false\n        this.calls = []\n        this.receivers = []\n        this.resolvers = []\n    }\n\n    // Add a new resolver to be resolved when a commit is returned from the server...\n    addResolver(resolver) {\n        this.resolvers.push(resolver)\n    }\n\n    // Add a new action \"call\" to the commit payload...\n    addCall(method, params, receiver) {\n        this.calls.push({\n            path: '', method, params,\n            handleReturn(value) {\n                receiver(value)\n            },\n        })\n    }\n\n    prepare() {\n        trigger('commit.prepare', { component: this.component })\n    }\n\n    // Generate a JSON-friendly server-request payload...\n    toRequestPayload() {\n        // Generate a \"diff\" of the current last known server-side state, and\n        // the new front-end state so that we can update the server atomically...\n        let propertiesDiff = diff(this.component.canonical, this.component.ephemeral)\n\n        let updates = this.component.mergeQueuedUpdates(propertiesDiff)\n\n        let payload = {\n            snapshot: this.component.snapshotEncoded,\n            updates: updates,\n            calls: this.calls.map(i => ({\n                path: i.path,\n                method: i.method,\n                params: i.params,\n            }))\n        }\n\n        // Store success and failure hooks from commit listeners\n        // so they can be aggregated into a singular callback later...\n        let succeedCallbacks = []\n        let failCallbacks = []\n        let respondCallbacks = []\n\n        let succeed = (fwd) => succeedCallbacks.forEach(i => i(fwd))\n        let fail = () => failCallbacks.forEach(i => i())\n        let respond = () => respondCallbacks.forEach(i => i())\n\n        // Allow other areas of the codebase to hook into the lifecycle\n        // of an individual commit...\n        let finishTarget = trigger('commit', {\n            component: this.component,\n            commit: payload,\n            succeed: (callback) => {\n                succeedCallbacks.push(callback)\n            },\n            fail: (callback) => {\n                failCallbacks.push(callback)\n            },\n            respond: (callback) => {\n                respondCallbacks.push(callback)\n            },\n        })\n\n        // Handle the response payload for a commit...\n        let handleResponse = (response) => {\n            let { snapshot, effects } = response\n\n            respond()\n\n            // Take the new snapshot and merge it into the existing one...\n            this.component.mergeNewSnapshot(snapshot, effects, updates)\n\n            // Trigger any side effects from the payload like \"morph\" and \"dispatch event\"...\n            this.component.processEffects(this.component.effects)\n\n            if (effects['returns']) {\n                let returns = effects['returns']\n\n                // Here we'll match up returned values with their method call handlers. We need to build up\n                // two \"stacks\" of the same length and walk through them together to handle them properly...\n                let returnHandlerStack = this.calls.map(({ handleReturn }) => (handleReturn))\n\n                returnHandlerStack.forEach((handleReturn, index) => {\n                    handleReturn(returns[index])\n                })\n            }\n\n            let parsedSnapshot = JSON.parse(snapshot)\n\n            finishTarget({ snapshot: parsedSnapshot, effects })\n\n            this.resolvers.forEach(i => i())\n\n            succeed(response)\n        }\n\n        let handleFailure = () => {\n            respond()\n\n            fail()\n        }\n\n        return [payload, handleResponse, handleFailure]\n    }\n}\n", "import { trigger } from '@/hooks'\nimport { RequestPool } from './pool'\nimport { Commit } from './commit'\n\n/**\n * This bus manages the pooling of multiple commits and sending\n * those pools of commits to the server...\n */\nexport class CommitBus {\n    constructor() {\n        // A list of loose, un-pooled, commits ready to be pooled and sent to the server...\n        this.commits = new Set\n\n        // A list of commit pools currently out to the server...\n        this.pools = new Set\n    }\n\n    add(component) {\n        // If this component already has a commit, leave it, otherwise,\n        // create a new commit and add it to the list...\n        let commit = this.findCommitOr(component, () => {\n            let newCommit = new Commit(component)\n\n            this.commits.add(newCommit)\n\n            return newCommit\n        })\n\n        // Buffer the sending of a pool for 5ms to account for UI interactions\n        // that will trigger multiple events within a few milliseconds of each other.\n        // For example, clicking on a button that both unfocuses a field and registers a mousedown...\n        bufferPoolingForFiveMs(commit, () => {\n            // If this commit is already in a pool, leave it be...\n            let pool = this.findPoolWithComponent(commit.component)\n\n            if (! pool) {\n                // If it's not, create a new pool or add it to an existing one and trigger a network request...\n                this.createAndSendNewPool()\n            }\n        })\n\n        return commit\n    }\n\n    findCommitOr(component, callback) {\n        for (let [idx, commit] of this.commits.entries()) {\n            if (commit.component === component) {\n                return commit\n            }\n        }\n\n        return callback()\n    }\n\n    findPoolWithComponent(component) {\n        for (let [idx, pool] of this.pools.entries()) {\n            if (pool.hasCommitFor(component)) return pool\n        }\n    }\n\n    createAndSendNewPool() {\n        // Allow features like \"reactive properties\" to initiate associated\n        // commits before those commits are pooled for a network request...\n        trigger('commit.pooling', { commits: this.commits })\n\n        // Split commits up across one or multiple pools to be sent as seperate network requests...\n        let pools = this.corraleCommitsIntoPools()\n\n        // Clear all commits in the queue now that they're in pools...\n        this.commits.clear()\n\n        trigger('commit.pooled', { pools })\n\n        // Go through each pool and...\n        pools.forEach(pool => {\n            // Ignore empty pools (if other parts of the system have moved commits around different pools)...\n            if (pool.empty()) return\n\n            // Add it to the list of pending pools...\n            this.pools.add(pool)\n\n            // Send it's payload along to the server...\n            pool.send().then(() => {\n                // When it comes back, remove it from the list...\n                this.pools.delete(pool)\n\n                // Trigger another pooling phase in case commits have\n                // been added while the current request was out...\n                this.sendAnyQueuedCommits()\n            })\n        })\n    }\n\n    corraleCommitsIntoPools() {\n        let pools = new Set\n\n        // Go through each commit and assess wether it should be bundled\n        // with other commits or sperated into it's own pool (network request)...\n        for (let [idx, commit] of this.commits.entries()) {\n            let hasFoundPool = false\n\n            // If an existing pool wants to claim a commit, let it...\n            pools.forEach(pool => {\n                if (pool.shouldHoldCommit(commit)) {\n                    pool.add(commit)\n\n                    hasFoundPool = true\n                }\n            })\n\n            // Otherwise, create a new pool and seed it with this commit...\n            if (! hasFoundPool) {\n                let newPool = new RequestPool\n\n                newPool.add(commit)\n\n                pools.add(newPool)\n            }\n        }\n\n        return pools\n    }\n\n    sendAnyQueuedCommits() {\n        if (this.commits.size > 0) {\n            this.createAndSendNewPool()\n        }\n    }\n}\n\nlet buffersByCommit = new WeakMap\n\nfunction bufferPoolingForFiveMs(commit, callback) {\n    if (buffersByCommit.has(commit)) return\n\n    buffersByCommit.set(commit, setTimeout(() => {\n        callback()\n\n        buffersByCommit.delete(commit)\n    }, 5))\n}\n", "import { getCsrfToken, contentIsFromDump, splitDumpFromContent, getUpdateUri } from '@/utils'\nimport { trigger, triggerAsync } from '@/hooks'\nimport { showHtmlModal } from './modal'\nimport { CommitBus } from './bus'\n\n/**\n * This is the bus that manages pooling and sending\n * commits to the server as network requests...\n */\nlet commitBus = new CommitBus\n\n/**\n * Create a commit and trigger a network request...\n */\nexport async function requestCommit(component) {\n    let commit = commitBus.add(component)\n\n    let promise = new Promise((resolve) => {\n        commit.addResolver(resolve)\n    })\n\n    promise.commit = commit\n\n    return promise\n}\n\n/**\n * Create a commit with an \"action\" call and trigger a network request...\n */\nexport async function requestCall(component, method, params) {\n    let commit = commitBus.add(component)\n\n    let promise = new Promise((resolve) => {\n        commit.addCall(method, params, value => resolve(value))\n    })\n\n    promise.commit = commit\n\n    return promise\n}\n\n/**\n * Send a pool of commits to the server over HTTP...\n */\nexport async function sendRequest(pool) {\n    let [payload, handleSuccess, handleFailure] = pool.payload()\n\n    let options = {\n        method: 'POST',\n        body: JSON.stringify({\n            _token: getCsrfToken(),\n            components: payload,\n        }),\n        headers: {\n            'Content-type': 'application/json',\n            'X-Livewire': '',\n        },\n    }\n\n    let succeedCallbacks = []\n    let failCallbacks = []\n    let respondCallbacks = []\n\n    let succeed = (fwd) => succeedCallbacks.forEach(i => i(fwd))\n    let fail = (fwd) => failCallbacks.forEach(i => i(fwd))\n    let respond = (fwd) => respondCallbacks.forEach(i => i(fwd))\n\n    let finishProfile = trigger('request.profile', options)\n\n    let updateUri = getUpdateUri()\n\n    trigger('request', {\n        url: updateUri,\n        options,\n        payload: options.body,\n        respond: i => respondCallbacks.push(i),\n        succeed: i => succeedCallbacks.push(i),\n        fail: i => failCallbacks.push(i),\n    })\n\n    let response\n\n    try {\n        response = await fetch(updateUri, options)\n    } catch (e) {\n        // If something went wrong with the fetch (particularly\n        // this would happen if the connection went offline)\n        // fail with a 503 and allow Livewire to clean up\n\n        finishProfile({ content: '{}', failed: true })\n\n        handleFailure()\n\n        fail({\n            status: 503,\n            content: null,\n            preventDefault: () => {},\n        })\n\n        return\n    }\n\n    let mutableObject = {\n        status: response.status,\n        response,\n    }\n\n    respond(mutableObject)\n\n    response = mutableObject.response\n\n    let content = await response.text()\n\n    // Handle error response...\n    if (! response.ok) {\n        finishProfile({ content: '{}', failed: true })\n\n        let preventDefault = false\n\n        handleFailure()\n\n        fail({\n            status: response.status,\n            content,\n            preventDefault: () => preventDefault = true,\n        })\n\n        if (preventDefault) return\n\n        if (response.status === 419) {\n            handlePageExpiry()\n        }\n\n        return showFailureModal(content)\n    }\n\n    /**\n     * Sometimes a redirect happens on the backend outside of Livewire's control,\n     * for example to a login page from a middleware, so we will just redirect\n     * to that page.\n     */\n    if (response.redirected) {\n        window.location.href = response.url\n    }\n\n    /**\n     * Sometimes a response will be prepended with html to render a dump, so we\n     * will seperate the dump html from Livewire's JSON response content and\n     * render the dump in a modal and allow Livewire to continue with the\n     * request.\n     */\n    if (contentIsFromDump(content)) {\n        let dump\n        [dump, content] = splitDumpFromContent(content)\n\n        showHtmlModal(dump)\n\n        finishProfile({ content: '{}', failed: true })\n    } else {\n        finishProfile({ content, failed: false })\n    }\n\n    let { components, assets } = JSON.parse(content)\n\n    await triggerAsync('payload.intercept', { components, assets })\n\n    await handleSuccess(components)\n\n    succeed({ status: response.status, json: JSON.parse(content) })\n}\n\nfunction handlePageExpiry() {\n    confirm(\n        'This page has expired.\\nWould you like to refresh the page?'\n    ) && window.location.reload()\n}\n\nfunction showFailureModal(content) {\n    let html = content\n\n    showHtmlModal(html)\n}\n", "import { cancelUpload, removeUpload, upload, uploadMultiple } from './features/supportFileUploads'\nimport { dispatch, dispatchSelf, dispatchTo, listen } from '@/events'\nimport { generateEntangleFunction } from '@/features/supportEntangle'\nimport { closestComponent } from '@/store'\nimport { requestCommit, requestCall } from '@/request'\nimport { dataGet, dataSet } from '@/utils'\nimport Alpine from 'alpinejs'\n\nlet properties = {}\nlet fallback\n\nfunction wireProperty(name, callback, component = null) {\n    properties[name] = callback\n}\n\nfunction wireFallback(callback) {\n    fallback = callback\n}\n\n// For V2 backwards compatibility...\n// And I actually like both depending on the scenario...\nlet aliases = {\n    'on': '$on',\n    'el': '$el',\n    'id': '$id',\n    'get': '$get',\n    'set': '$set',\n    'call': '$call',\n    'commit': '$commit',\n    'watch': '$watch',\n    'entangle': '$entangle',\n    'dispatch': '$dispatch',\n    'dispatchTo': '$dispatchTo',\n    'dispatchSelf': '$dispatchSelf',\n    'upload': '$upload',\n    'uploadMultiple': '$uploadMultiple',\n    'removeUpload': '$removeUpload',\n    'cancelUpload': '$cancelUpload',\n}\n\nexport function generateWireObject(component, state) {\n    return new Proxy({}, {\n        get(target, property) {\n            if (property === '__instance') return component\n\n            if (property in aliases) {\n                return getProperty(component, aliases[property])\n            } else if (property in properties) {\n                return getProperty(component, property)\n            } else if (property in state) {\n                return state[property]\n            } else if (! ['then'].includes(property)) {\n                return getFallback(component)(property)\n            }\n        },\n\n        set(target, property, value) {\n            if (property in state) {\n                state[property] = value\n            }\n\n            return true\n        },\n    })\n}\n\nfunction getProperty(component, name) {\n    return properties[name](component)\n}\n\nfunction getFallback(component) {\n    return fallback(component)\n}\n\nAlpine.magic('wire', (el, { cleanup }) => {\n    // Purposely initializing an empty variable here is a \"memo\"\n    // so that a component is lazy-loaded when using $wire from Alpine...\n    let component\n\n    // Override $wire methods that need to be cleaned up when\n    // and element is removed. For example, `x-data=\"{ foo: $wire.entangle(...) }\"`:\n    // we would want the entangle effect freed if the element was removed from the DOM...\n    return new Proxy({}, {\n        get(target, property) {\n            if (! component) component = closestComponent(el)\n\n            if (['$entangle', 'entangle'].includes(property)) {\n                return generateEntangleFunction(component, cleanup)\n            }\n\n            return component.$wire[property]\n        },\n\n        set(target, property, value) {\n            if (! component) component = closestComponent(el)\n\n            component.$wire[property] = value\n\n            return true\n        },\n    })\n})\n\nwireProperty('__instance', (component) => component)\n\nwireProperty('$get', (component) => (property, reactive = true) => dataGet(reactive ? component.reactive : component.ephemeral, property))\n\nwireProperty('$el', (component) => {\n    return component.el\n})\n\nwireProperty('$id', (component) => {\n    return component.id\n})\n\nwireProperty('$set', (component) => async (property, value, live = true) => {\n    dataSet(component.reactive, property, value)\n\n    // If \"live\", send a request, queueing the property update to happen first\n    // on the server, then trickle back down to the client and get merged...\n    if (live) {\n        component.queueUpdate(property, value)\n\n        return await requestCommit(component)\n    }\n\n    return Promise.resolve()\n})\n\nwireProperty('$call', (component) => async (method, ...params) => {\n    return await component.$wire[method](...params)\n})\n\nwireProperty('$entangle', (component) => (name, live = false) => {\n    return generateEntangleFunction(component)(name, live)\n})\n\nwireProperty('$toggle', (component) => (name, live = true) => {\n    return component.$wire.set(name, ! component.$wire.get(name), live)\n})\n\nwireProperty('$watch', (component) => (path, callback) => {\n    let firstTime = true\n    let oldValue = undefined\n\n   Alpine.effect(() => {\n    // JSON.stringify touches every single property at any level enabling deep watching\n        let value = dataGet(component.reactive, path)\n        JSON.stringify(value)\n\n        if (! firstTime) {\n            // We have to queue this watcher as a microtask so that\n            // the watcher doesn't pick up its own dependencies.\n            queueMicrotask(() => {\n                callback(value, oldValue)\n\n                oldValue = value\n            })\n        } else {\n            oldValue = value\n        }\n\n        firstTime = false\n    })\n})\n\nwireProperty('$refresh', (component) => component.$wire.$commit)\nwireProperty('$commit', (component) => async () => await requestCommit(component))\n\nwireProperty('$on', (component) => (...params) => listen(component, ...params))\n\nwireProperty('$dispatch', (component) => (...params) => dispatch(component, ...params))\nwireProperty('$dispatchSelf', (component) => (...params) => dispatchSelf(component, ...params))\nwireProperty('$dispatchTo', () => (...params) => dispatchTo(...params))\nwireProperty('$upload', (component) => (...params) => upload(component, ...params))\nwireProperty('$uploadMultiple', (component) => (...params) => uploadMultiple(component, ...params))\nwireProperty('$removeUpload', (component) => (...params) => removeUpload(component, ...params))\nwireProperty('$cancelUpload', (component) => (...params) => cancelUpload(component, ...params))\n\nlet parentMemo = new WeakMap\n\nwireProperty('$parent', component => {\n    if (parentMemo.has(component)) return parentMemo.get(component).$wire\n\n    let parent = closestComponent(component.el.parentElement)\n\n    parentMemo.set(component, parent)\n\n    return parent.$wire\n})\n\nlet overriddenMethods = new WeakMap\n\nexport function overrideMethod(component, method, callback) {\n    if (! overriddenMethods.has(component)) {\n        overriddenMethods.set(component, {})\n    }\n\n    let obj = overriddenMethods.get(component)\n\n    obj[method] = callback\n\n    overriddenMethods.set(component, obj)\n}\n\nwireFallback((component) => (property) => async (...params) => {\n    // If this method is passed directly to a Vue or Alpine\n    // event listener (@click=\"someMethod\") without using\n    // parens, strip out the automatically added event.\n    if (params.length === 1 && params[0] instanceof Event) {\n        params = []\n    }\n\n    if (overriddenMethods.has(component)) {\n        let overrides = overriddenMethods.get(component)\n\n        if (typeof overrides[property] === 'function') {\n            return overrides[property](params)\n        }\n    }\n\n    return await requestCall(component, property, params)\n})\n", "import { dataSet, deepClone, diff, extractData} from '@/utils'\nimport { generateWireObject } from '@/$wire'\nimport { findComponent } from '@/store'\nimport { trigger } from '@/hooks'\n\nexport class Component {\n    constructor(el) {\n        if (el.__livewire) throw 'Component already initialized';\n\n        el.__livewire = this\n\n        this.el = el\n\n        this.id = el.getAttribute('wire:id')\n\n        this.__livewireId = this.id // @legacy\n\n        this.snapshotEncoded = el.getAttribute('wire:snapshot')\n\n        this.snapshot = JSON.parse(this.snapshotEncoded)\n\n        if (! this.snapshot) {\n            throw `Snapshot missing on Livewire component with id: ` + this.id\n        }\n\n        this.name = this.snapshot.memo.name\n\n        this.effects = JSON.parse(el.getAttribute('wire:effects'))\n        this.originalEffects = deepClone(this.effects)\n\n        // \"canonical\" data represents the last known server state.\n        this.canonical = extractData(deepClone(this.snapshot.data))\n        // \"ephemeral\" represents the most current state. (This can be freely manipulated by end users)\n        this.ephemeral = extractData(deepClone(this.snapshot.data))\n        // \"reactive\" is just ephemeral, except when you mutate it, front-ends like Vue react.\n        this.reactive = Alpine.reactive(this.ephemeral)\n\n        this.queuedUpdates = {}\n\n        // this.$wire = this.reactive\n        this.$wire = generateWireObject(this, this.reactive)\n\n        this.cleanups = []\n\n        // Effects will be processed after every request, but we'll also handle them on initialization.\n        this.processEffects(this.effects)\n    }\n\n    mergeNewSnapshot(snapshotEncoded, effects, updates = {}) {\n        let snapshot = JSON.parse(snapshotEncoded)\n\n        let oldCanonical = deepClone(this.canonical)\n        let updatedOldCanonical = this.applyUpdates(oldCanonical, updates)\n\n        let newCanonical = extractData(deepClone(snapshot.data))\n\n        let dirty = diff(updatedOldCanonical, newCanonical)\n\n        this.snapshotEncoded = snapshotEncoded\n\n        this.snapshot = snapshot\n\n        this.effects = effects\n\n        this.canonical = extractData(deepClone(snapshot.data))\n\n        let newData = extractData(deepClone(snapshot.data))\n\n        Object.entries(dirty).forEach(([key, value]) => {\n            let rootKey = key.split('.')[0]\n            this.reactive[rootKey] = newData[rootKey]\n        })\n        // Object.entries(this.ephemeral).forEach(([key, value]) => {\n        //     if (! deeplyEqual(this.ephemeral[key], newData[key])) {\n        //         this.reactive[key] = newData[key]\n        //     }\n        // })\n\n        return dirty\n    }\n\n    queueUpdate(propertyName, value) {\n        // These updates will be applied first on the server\n        // on the next request, then trickle back to the\n        // client on the next request that gets sent.\n        this.queuedUpdates[propertyName] = value\n    }\n\n    mergeQueuedUpdates(diff) {\n        // Before adding queuedUpdates into the diff list, we will remove any diffs\n        // that will be overriden by the queued update. Queued updates will take\n        // priority against ephemeral updates that have happend since them...\n        Object.entries(this.queuedUpdates).forEach(([updateKey, updateValue]) => {\n            Object.entries(diff).forEach(([diffKey, diffValue]) => {\n                if (diffKey.startsWith(updateValue)) {\n                    delete diff[diffKey]\n                }\n            })\n\n            diff[updateKey] = updateValue\n        })\n\n        this.queuedUpdates = []\n\n        return diff\n    }\n\n    applyUpdates(object, updates) {\n        for (let key in updates) {\n            dataSet(object, key, updates[key])\n        }\n\n        return object\n    }\n\n    replayUpdate(snapshot, html) {\n        let effects = { ...this.effects, html}\n\n        this.mergeNewSnapshot(JSON.stringify(snapshot), effects)\n\n        this.processEffects({ html })\n    }\n\n    /**\n     * Here we'll take the new state and side effects from the\n     * server and use them to update the existing data that\n     * users interact with, triggering reactive effects.\n     */\n    processEffects(effects) {\n        // This is for BC.\n        trigger('effects', this, effects)\n\n        trigger('effect', {\n            component: this,\n            effects,\n            cleanup: i => this.addCleanup(i)\n        })\n    }\n\n    get children() {\n        let meta = this.snapshot.memo\n        let childIds = Object.values(meta.children).map(i => i[1])\n\n        return childIds.map(id => findComponent(id))\n    }\n\n    inscribeSnapshotAndEffectsOnElement() {\n        let el = this.el\n\n        el.setAttribute('wire:snapshot', this.snapshotEncoded)\n\n        // We need to re-register any event listeners that were originally registered...\n        let effects = this.originalEffects.listeners\n            ? { listeners: this.originalEffects.listeners }\n            : {}\n\n        // We need to re-register any url/query-string bindings...\n        if (this.originalEffects.url) {\n            effects.url = this.originalEffects.url\n        }\n\n        el.setAttribute('wire:effects', JSON.stringify(effects))\n    }\n\n    addCleanup(cleanup) {\n        this.cleanups.push(cleanup)\n    }\n\n    cleanup() {\n        delete this.el.__livewire\n\n        while (this.cleanups.length > 0) {\n            this.cleanups.pop()()\n        }\n    }\n}\n", "import { Component } from \"@/component\";\nimport { trigger } from \"@/hooks\";\n\nlet components = {}\n\nexport function initComponent(el) {\n    let component = new Component(el)\n\n    if (components[component.id]) throw 'Component already registered'\n\n    let cleanup = (i) => component.addCleanup(i)\n\n    trigger('component.init', { component, cleanup })\n\n    components[component.id] = component\n\n    return component\n}\n\nexport function destroyComponent(id) {\n    let component = components[id]\n\n    if (! component) return\n\n    component.cleanup()\n\n    delete components[id]\n}\n\nexport function hasComponent(id) {\n    return !! components[id]\n}\n\nexport function findComponent(id) {\n    let component = components[id]\n\n    if (! component) throw 'Component not found: ' + id\n\n    return component\n}\n\nexport function closestComponent(el, strict = true) {\n    let closestRoot = Alpine.findClosest(el, i => i.__livewire)\n\n    if (! closestRoot) {\n        if (strict) throw \"Could not find Livewire component in DOM tree\"\n\n        return\n    }\n\n    return closestRoot.__livewire\n}\n\nexport function componentsByName(name) {\n    return Object.values(components).filter(component => {\n        return name == component.name\n    })\n}\n\nexport function getByName(name) {\n    return componentsByName(name).map(i => i.$wire)\n}\n\nexport function find(id) {\n    let component = components[id]\n\n    return component && component.$wire\n}\n\nexport function first() {\n    return Object.values(components)[0].$wire\n}\n\nexport function all() {\n    return Object.values(components)\n}\n", "import { componentsByName } from \"@/store\"\n\nexport function dispatch(component, name, params) {\n    dispatchEvent(component.el, name, params)\n}\n\nexport function dispatchGlobal(name, params) {\n    dispatchEvent(window, name, params)\n}\n\nexport function dispatchSelf(component, name, params) {\n    dispatchEvent(component.el, name, params, false)\n}\n\nexport function dispatchTo(componentName, name, params) {\n    let targets = componentsByName(componentName)\n\n    targets.forEach(target => {\n        dispatchEvent(target.el, name, params, false)\n    })\n}\n\nexport function listen(component, name, callback) {\n    component.el.addEventListener(name, e => {\n        callback(e.detail)\n    })\n}\n\nexport function on(eventName, callback) {\n    let handler = (e) => {\n        // Implemented for backwards compatibility...\n        if (! e.__livewire) return\n\n        callback(e.detail)\n    }\n\n    window.addEventListener(eventName, handler)\n\n    return () => {\n        window.removeEventListener(eventName, handler)\n    }\n}\n\nfunction dispatchEvent(target, name, params, bubbles = true) {\n    let e = new CustomEvent(name, { bubbles, detail: params })\n\n    e.__livewire = { name, params, receivedBy: [] }\n\n    target.dispatchEvent(e)\n}\n", "import { on } from './hooks'\n\nexport function matchesForLivewireDirective(attributeName) {\n    return attributeName.match(new RegExp('wire:'))\n}\n\nexport function extractDirective(el, name) {\n    let [value, ...modifiers] = name.replace(new RegExp('wire:'), '').split('.')\n\n    return new Directive(value, modifiers, name, el)\n}\n\nexport function directive(name, callback) {\n    on('directive.init', ({ el, component, directive, cleanup }) => {\n        if (directive.value === name) {\n            callback({\n                el, directive, component, cleanup\n            })\n        }\n    })\n}\n\nexport function getDirectives(el) {\n    return new DirectiveManager(el)\n}\n\nclass DirectiveManager {\n    constructor(el) {\n        this.el = el\n        this.directives = this.extractTypeModifiersAndValue()\n    }\n\n    all() {\n        return this.directives\n    }\n\n    has(value) {\n        return this.directives.map(directive => directive.value).includes(value)\n    }\n\n    missing(value) {\n        return ! this.has(value)\n    }\n\n    get(value) {\n        return this.directives.find(directive => directive.value === value)\n    }\n\n    extractTypeModifiersAndValue() {\n        return Array.from(this.el.getAttributeNames()\n            // Filter only the livewire directives.\n            .filter(name => matchesForLivewireDirective(name))\n            // Parse out the type, modifiers, and value from it.\n            .map(name => extractDirective(this.el, name)))\n    }\n}\n\nexport class Directive {\n    constructor(value, modifiers, rawName, el) {\n        this.rawName = this.raw = rawName\n        this.el = el\n        this.eventContext\n\n        this.value = value\n        this.modifiers = modifiers\n        this.expression = this.el.getAttribute(this.rawName)\n    }\n\n    get method() {\n        const { method } = this.parseOutMethodAndParams(this.expression)\n\n        return method\n    }\n\n    get params() {\n        const { params } = this.parseOutMethodAndParams(this.expression)\n\n        return params\n    }\n\n    parseOutMethodAndParams(rawMethod) {\n        let method = rawMethod\n        let params = []\n        const methodAndParamString = method.match(/(.*?)\\((.*)\\)/s)\n\n        if (methodAndParamString) {\n            method = methodAndParamString[1]\n\n            // Use a function that returns it's arguments to parse and eval all params\n            // This \"$event\" is for use inside the livewire event handler.\n            let func = new Function('$event', `return (function () {\n                for (var l=arguments.length, p=new Array(l), k=0; k<l; k++) {\n                    p[k] = arguments[k];\n                }\n                return [].concat(p);\n            })(${methodAndParamString[2]})`)\n\n            params = func(this.eventContext)\n        }\n\n        return { method, params }\n    }\n}\n", "// packages/collapse/src/index.js\nfunction src_default(Alpine) {\n  Alpine.directive(\"collapse\", collapse);\n  collapse.inline = (el, { modifiers }) => {\n    if (!modifiers.includes(\"min\"))\n      return;\n    el._x_doShow = () => {\n    };\n    el._x_doHide = () => {\n    };\n  };\n  function collapse(el, { modifiers }) {\n    let duration = modifierValue(modifiers, \"duration\", 250) / 1e3;\n    let floor = modifierValue(modifiers, \"min\", 0);\n    let fullyHide = !modifiers.includes(\"min\");\n    if (!el._x_isShown)\n      el.style.height = `${floor}px`;\n    if (!el._x_isShown && fullyHide)\n      el.hidden = true;\n    if (!el._x_isShown)\n      el.style.overflow = \"hidden\";\n    let setFunction = (el2, styles) => {\n      let revertFunction = Alpine.setStyles(el2, styles);\n      return styles.height ? () => {\n      } : revertFunction;\n    };\n    let transitionStyles = {\n      transitionProperty: \"height\",\n      transitionDuration: `${duration}s`,\n      transitionTimingFunction: \"cubic-bezier(0.4, 0.0, 0.2, 1)\"\n    };\n    el._x_transition = {\n      in(before = () => {\n      }, after = () => {\n      }) {\n        if (fullyHide)\n          el.hidden = false;\n        if (fullyHide)\n          el.style.display = null;\n        let current = el.getBoundingClientRect().height;\n        el.style.height = \"auto\";\n        let full = el.getBoundingClientRect().height;\n        if (current === full) {\n          current = floor;\n        }\n        Alpine.transition(el, Alpine.setStyles, {\n          during: transitionStyles,\n          start: { height: current + \"px\" },\n          end: { height: full + \"px\" }\n        }, () => el._x_isShown = true, () => {\n          if (el.getBoundingClientRect().height == full) {\n            el.style.overflow = null;\n          }\n        });\n      },\n      out(before = () => {\n      }, after = () => {\n      }) {\n        let full = el.getBoundingClientRect().height;\n        Alpine.transition(el, setFunction, {\n          during: transitionStyles,\n          start: { height: full + \"px\" },\n          end: { height: floor + \"px\" }\n        }, () => el.style.overflow = \"hidden\", () => {\n          el._x_isShown = false;\n          if (el.style.height == `${floor}px` && fullyHide) {\n            el.style.display = \"none\";\n            el.hidden = true;\n          }\n        });\n      }\n    };\n  }\n}\nfunction modifierValue(modifiers, key, fallback) {\n  if (modifiers.indexOf(key) === -1)\n    return fallback;\n  const rawValue = modifiers[modifiers.indexOf(key) + 1];\n  if (!rawValue)\n    return fallback;\n  if (key === \"duration\") {\n    let match = rawValue.match(/([0-9]+)ms/);\n    if (match)\n      return match[1];\n  }\n  if (key === \"min\") {\n    let match = rawValue.match(/([0-9]+)px/);\n    if (match)\n      return match[1];\n  }\n  return rawValue;\n}\n\n// packages/collapse/builds/module.js\nvar module_default = src_default;\nexport {\n  src_default as collapse,\n  module_default as default\n};\n", "// node_modules/tabbable/dist/index.esm.js\nvar candidateSelectors = [\"input\", \"select\", \"textarea\", \"a[href]\", \"button\", \"[tabindex]:not(slot)\", \"audio[controls]\", \"video[controls]\", '[contenteditable]:not([contenteditable=\"false\"])', \"details>summary:first-of-type\", \"details\"];\nvar candidateSelector = /* @__PURE__ */ candidateSelectors.join(\",\");\nvar NoElement = typeof Element === \"undefined\";\nvar matches = NoElement ? function() {\n} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\nvar getRootNode = !NoElement && Element.prototype.getRootNode ? function(element) {\n  return element.getRootNode();\n} : function(element) {\n  return element.ownerDocument;\n};\nvar getCandidates = function getCandidates2(el, includeContainer, filter) {\n  var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));\n  if (includeContainer && matches.call(el, candidateSelector)) {\n    candidates.unshift(el);\n  }\n  candidates = candidates.filter(filter);\n  return candidates;\n};\nvar getCandidatesIteratively = function getCandidatesIteratively2(elements, includeContainer, options) {\n  var candidates = [];\n  var elementsToCheck = Array.from(elements);\n  while (elementsToCheck.length) {\n    var element = elementsToCheck.shift();\n    if (element.tagName === \"SLOT\") {\n      var assigned = element.assignedElements();\n      var content = assigned.length ? assigned : element.children;\n      var nestedCandidates = getCandidatesIteratively2(content, true, options);\n      if (options.flatten) {\n        candidates.push.apply(candidates, nestedCandidates);\n      } else {\n        candidates.push({\n          scope: element,\n          candidates: nestedCandidates\n        });\n      }\n    } else {\n      var validCandidate = matches.call(element, candidateSelector);\n      if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {\n        candidates.push(element);\n      }\n      var shadowRoot = element.shadowRoot || // check for an undisclosed shadow\n      typeof options.getShadowRoot === \"function\" && options.getShadowRoot(element);\n      var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);\n      if (shadowRoot && validShadowRoot) {\n        var _nestedCandidates = getCandidatesIteratively2(shadowRoot === true ? element.children : shadowRoot.children, true, options);\n        if (options.flatten) {\n          candidates.push.apply(candidates, _nestedCandidates);\n        } else {\n          candidates.push({\n            scope: element,\n            candidates: _nestedCandidates\n          });\n        }\n      } else {\n        elementsToCheck.unshift.apply(elementsToCheck, element.children);\n      }\n    }\n  }\n  return candidates;\n};\nvar getTabindex = function getTabindex2(node, isScope) {\n  if (node.tabIndex < 0) {\n    if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute(\"tabindex\"), 10))) {\n      return 0;\n    }\n  }\n  return node.tabIndex;\n};\nvar sortOrderedTabbables = function sortOrderedTabbables2(a, b) {\n  return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;\n};\nvar isInput = function isInput2(node) {\n  return node.tagName === \"INPUT\";\n};\nvar isHiddenInput = function isHiddenInput2(node) {\n  return isInput(node) && node.type === \"hidden\";\n};\nvar isDetailsWithSummary = function isDetailsWithSummary2(node) {\n  var r = node.tagName === \"DETAILS\" && Array.prototype.slice.apply(node.children).some(function(child) {\n    return child.tagName === \"SUMMARY\";\n  });\n  return r;\n};\nvar getCheckedRadio = function getCheckedRadio2(nodes, form) {\n  for (var i = 0; i < nodes.length; i++) {\n    if (nodes[i].checked && nodes[i].form === form) {\n      return nodes[i];\n    }\n  }\n};\nvar isTabbableRadio = function isTabbableRadio2(node) {\n  if (!node.name) {\n    return true;\n  }\n  var radioScope = node.form || getRootNode(node);\n  var queryRadios = function queryRadios2(name) {\n    return radioScope.querySelectorAll('input[type=\"radio\"][name=\"' + name + '\"]');\n  };\n  var radioSet;\n  if (typeof window !== \"undefined\" && typeof window.CSS !== \"undefined\" && typeof window.CSS.escape === \"function\") {\n    radioSet = queryRadios(window.CSS.escape(node.name));\n  } else {\n    try {\n      radioSet = queryRadios(node.name);\n    } catch (err) {\n      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\", err.message);\n      return false;\n    }\n  }\n  var checked = getCheckedRadio(radioSet, node.form);\n  return !checked || checked === node;\n};\nvar isRadio = function isRadio2(node) {\n  return isInput(node) && node.type === \"radio\";\n};\nvar isNonTabbableRadio = function isNonTabbableRadio2(node) {\n  return isRadio(node) && !isTabbableRadio(node);\n};\nvar isZeroArea = function isZeroArea2(node) {\n  var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;\n  return width === 0 && height === 0;\n};\nvar isHidden = function isHidden2(node, _ref) {\n  var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;\n  if (getComputedStyle(node).visibility === \"hidden\") {\n    return true;\n  }\n  var isDirectSummary = matches.call(node, \"details>summary:first-of-type\");\n  var nodeUnderDetails = isDirectSummary ? node.parentElement : node;\n  if (matches.call(nodeUnderDetails, \"details:not([open]) *\")) {\n    return true;\n  }\n  var nodeRootHost = getRootNode(node).host;\n  var nodeIsAttached = (nodeRootHost === null || nodeRootHost === void 0 ? void 0 : nodeRootHost.ownerDocument.contains(nodeRootHost)) || node.ownerDocument.contains(node);\n  if (!displayCheck || displayCheck === \"full\") {\n    if (typeof getShadowRoot === \"function\") {\n      var originalNode = node;\n      while (node) {\n        var parentElement = node.parentElement;\n        var rootNode = getRootNode(node);\n        if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true) {\n          return isZeroArea(node);\n        } else if (node.assignedSlot) {\n          node = node.assignedSlot;\n        } else if (!parentElement && rootNode !== node.ownerDocument) {\n          node = rootNode.host;\n        } else {\n          node = parentElement;\n        }\n      }\n      node = originalNode;\n    }\n    if (nodeIsAttached) {\n      return !node.getClientRects().length;\n    }\n  } else if (displayCheck === \"non-zero-area\") {\n    return isZeroArea(node);\n  }\n  return false;\n};\nvar isDisabledFromFieldset = function isDisabledFromFieldset2(node) {\n  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {\n    var parentNode = node.parentElement;\n    while (parentNode) {\n      if (parentNode.tagName === \"FIELDSET\" && parentNode.disabled) {\n        for (var i = 0; i < parentNode.children.length; i++) {\n          var child = parentNode.children.item(i);\n          if (child.tagName === \"LEGEND\") {\n            return matches.call(parentNode, \"fieldset[disabled] *\") ? true : !child.contains(node);\n          }\n        }\n        return true;\n      }\n      parentNode = parentNode.parentElement;\n    }\n  }\n  return false;\n};\nvar isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable2(options, node) {\n  if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus\n  isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {\n    return false;\n  }\n  return true;\n};\nvar isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable2(options, node) {\n  if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {\n    return false;\n  }\n  return true;\n};\nvar isValidShadowRootTabbable = function isValidShadowRootTabbable2(shadowHostNode) {\n  var tabIndex = parseInt(shadowHostNode.getAttribute(\"tabindex\"), 10);\n  if (isNaN(tabIndex) || tabIndex >= 0) {\n    return true;\n  }\n  return false;\n};\nvar sortByOrder = function sortByOrder2(candidates) {\n  var regularTabbables = [];\n  var orderedTabbables = [];\n  candidates.forEach(function(item, i) {\n    var isScope = !!item.scope;\n    var element = isScope ? item.scope : item;\n    var candidateTabindex = getTabindex(element, isScope);\n    var elements = isScope ? sortByOrder2(item.candidates) : element;\n    if (candidateTabindex === 0) {\n      isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);\n    } else {\n      orderedTabbables.push({\n        documentOrder: i,\n        tabIndex: candidateTabindex,\n        item,\n        isScope,\n        content: elements\n      });\n    }\n  });\n  return orderedTabbables.sort(sortOrderedTabbables).reduce(function(acc, sortable) {\n    sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);\n    return acc;\n  }, []).concat(regularTabbables);\n};\nvar tabbable = function tabbable2(el, options) {\n  options = options || {};\n  var candidates;\n  if (options.getShadowRoot) {\n    candidates = getCandidatesIteratively([el], options.includeContainer, {\n      filter: isNodeMatchingSelectorTabbable.bind(null, options),\n      flatten: false,\n      getShadowRoot: options.getShadowRoot,\n      shadowRootFilter: isValidShadowRootTabbable\n    });\n  } else {\n    candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));\n  }\n  return sortByOrder(candidates);\n};\nvar focusable = function focusable2(el, options) {\n  options = options || {};\n  var candidates;\n  if (options.getShadowRoot) {\n    candidates = getCandidatesIteratively([el], options.includeContainer, {\n      filter: isNodeMatchingSelectorFocusable.bind(null, options),\n      flatten: true,\n      getShadowRoot: options.getShadowRoot\n    });\n  } else {\n    candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));\n  }\n  return candidates;\n};\nvar isTabbable = function isTabbable2(node, options) {\n  options = options || {};\n  if (!node) {\n    throw new Error(\"No node provided\");\n  }\n  if (matches.call(node, candidateSelector) === false) {\n    return false;\n  }\n  return isNodeMatchingSelectorTabbable(options, node);\n};\nvar focusableCandidateSelector = /* @__PURE__ */ candidateSelectors.concat(\"iframe\").join(\",\");\nvar isFocusable = function isFocusable2(node, options) {\n  options = options || {};\n  if (!node) {\n    throw new Error(\"No node provided\");\n  }\n  if (matches.call(node, focusableCandidateSelector) === false) {\n    return false;\n  }\n  return isNodeMatchingSelectorFocusable(options, node);\n};\n\n// node_modules/focus-trap/dist/focus-trap.esm.js\nfunction ownKeys(object, enumerableOnly) {\n  var keys = Object.keys(object);\n  if (Object.getOwnPropertySymbols) {\n    var symbols = Object.getOwnPropertySymbols(object);\n    enumerableOnly && (symbols = symbols.filter(function(sym) {\n      return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n    })), keys.push.apply(keys, symbols);\n  }\n  return keys;\n}\nfunction _objectSpread2(target) {\n  for (var i = 1; i < arguments.length; i++) {\n    var source = null != arguments[i] ? arguments[i] : {};\n    i % 2 ? ownKeys(Object(source), true).forEach(function(key) {\n      _defineProperty(target, key, source[key]);\n    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {\n      Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n    });\n  }\n  return target;\n}\nfunction _defineProperty(obj, key, value) {\n  if (key in obj) {\n    Object.defineProperty(obj, key, {\n      value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n  } else {\n    obj[key] = value;\n  }\n  return obj;\n}\nvar activeFocusTraps = function() {\n  var trapQueue = [];\n  return {\n    activateTrap: function activateTrap(trap) {\n      if (trapQueue.length > 0) {\n        var activeTrap = trapQueue[trapQueue.length - 1];\n        if (activeTrap !== trap) {\n          activeTrap.pause();\n        }\n      }\n      var trapIndex = trapQueue.indexOf(trap);\n      if (trapIndex === -1) {\n        trapQueue.push(trap);\n      } else {\n        trapQueue.splice(trapIndex, 1);\n        trapQueue.push(trap);\n      }\n    },\n    deactivateTrap: function deactivateTrap(trap) {\n      var trapIndex = trapQueue.indexOf(trap);\n      if (trapIndex !== -1) {\n        trapQueue.splice(trapIndex, 1);\n      }\n      if (trapQueue.length > 0) {\n        trapQueue[trapQueue.length - 1].unpause();\n      }\n    }\n  };\n}();\nvar isSelectableInput = function isSelectableInput2(node) {\n  return node.tagName && node.tagName.toLowerCase() === \"input\" && typeof node.select === \"function\";\n};\nvar isEscapeEvent = function isEscapeEvent2(e) {\n  return e.key === \"Escape\" || e.key === \"Esc\" || e.keyCode === 27;\n};\nvar isTabEvent = function isTabEvent2(e) {\n  return e.key === \"Tab\" || e.keyCode === 9;\n};\nvar delay = function delay2(fn) {\n  return setTimeout(fn, 0);\n};\nvar findIndex = function findIndex2(arr, fn) {\n  var idx = -1;\n  arr.every(function(value, i) {\n    if (fn(value)) {\n      idx = i;\n      return false;\n    }\n    return true;\n  });\n  return idx;\n};\nvar valueOrHandler = function valueOrHandler2(value) {\n  for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    params[_key - 1] = arguments[_key];\n  }\n  return typeof value === \"function\" ? value.apply(void 0, params) : value;\n};\nvar getActualTarget = function getActualTarget2(event) {\n  return event.target.shadowRoot && typeof event.composedPath === \"function\" ? event.composedPath()[0] : event.target;\n};\nvar createFocusTrap = function createFocusTrap2(elements, userOptions) {\n  var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;\n  var config = _objectSpread2({\n    returnFocusOnDeactivate: true,\n    escapeDeactivates: true,\n    delayInitialFocus: true\n  }, userOptions);\n  var state = {\n    // containers given to createFocusTrap()\n    // @type {Array<HTMLElement>}\n    containers: [],\n    // list of objects identifying tabbable nodes in `containers` in the trap\n    // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap\n    //  is active, but the trap should never get to a state where there isn't at least one group\n    //  with at least one tabbable node in it (that would lead to an error condition that would\n    //  result in an error being thrown)\n    // @type {Array<{\n    //   container: HTMLElement,\n    //   tabbableNodes: Array<HTMLElement>, // empty if none\n    //   focusableNodes: Array<HTMLElement>, // empty if none\n    //   firstTabbableNode: HTMLElement|null,\n    //   lastTabbableNode: HTMLElement|null,\n    //   nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined\n    // }>}\n    containerGroups: [],\n    // same order/length as `containers` list\n    // references to objects in `containerGroups`, but only those that actually have\n    //  tabbable nodes in them\n    // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__\n    //  the same length\n    tabbableGroups: [],\n    nodeFocusedBeforeActivation: null,\n    mostRecentlyFocusedNode: null,\n    active: false,\n    paused: false,\n    // timer ID for when delayInitialFocus is true and initial focus in this trap\n    //  has been delayed during activation\n    delayInitialFocusTimer: void 0\n  };\n  var trap;\n  var getOption = function getOption2(configOverrideOptions, optionName, configOptionName) {\n    return configOverrideOptions && configOverrideOptions[optionName] !== void 0 ? configOverrideOptions[optionName] : config[configOptionName || optionName];\n  };\n  var findContainerIndex = function findContainerIndex2(element) {\n    return state.containerGroups.findIndex(function(_ref) {\n      var container = _ref.container, tabbableNodes = _ref.tabbableNodes;\n      return container.contains(element) || // fall back to explicit tabbable search which will take into consideration any\n      //  web components if the `tabbableOptions.getShadowRoot` option was used for\n      //  the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't\n      //  look inside web components even if open)\n      tabbableNodes.find(function(node) {\n        return node === element;\n      });\n    });\n  };\n  var getNodeForOption = function getNodeForOption2(optionName) {\n    var optionValue = config[optionName];\n    if (typeof optionValue === \"function\") {\n      for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        params[_key2 - 1] = arguments[_key2];\n      }\n      optionValue = optionValue.apply(void 0, params);\n    }\n    if (optionValue === true) {\n      optionValue = void 0;\n    }\n    if (!optionValue) {\n      if (optionValue === void 0 || optionValue === false) {\n        return optionValue;\n      }\n      throw new Error(\"`\".concat(optionName, \"` was specified but was not a node, or did not return a node\"));\n    }\n    var node = optionValue;\n    if (typeof optionValue === \"string\") {\n      node = doc.querySelector(optionValue);\n      if (!node) {\n        throw new Error(\"`\".concat(optionName, \"` as selector refers to no known node\"));\n      }\n    }\n    return node;\n  };\n  var getInitialFocusNode = function getInitialFocusNode2() {\n    var node = getNodeForOption(\"initialFocus\");\n    if (node === false) {\n      return false;\n    }\n    if (node === void 0) {\n      if (findContainerIndex(doc.activeElement) >= 0) {\n        node = doc.activeElement;\n      } else {\n        var firstTabbableGroup = state.tabbableGroups[0];\n        var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;\n        node = firstTabbableNode || getNodeForOption(\"fallbackFocus\");\n      }\n    }\n    if (!node) {\n      throw new Error(\"Your focus-trap needs to have at least one focusable element\");\n    }\n    return node;\n  };\n  var updateTabbableNodes = function updateTabbableNodes2() {\n    state.containerGroups = state.containers.map(function(container) {\n      var tabbableNodes = tabbable(container, config.tabbableOptions);\n      var focusableNodes = focusable(container, config.tabbableOptions);\n      return {\n        container,\n        tabbableNodes,\n        focusableNodes,\n        firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,\n        lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,\n        /**\n         * Finds the __tabbable__ node that follows the given node in the specified direction,\n         *  in this container, if any.\n         * @param {HTMLElement} node\n         * @param {boolean} [forward] True if going in forward tab order; false if going\n         *  in reverse.\n         * @returns {HTMLElement|undefined} The next tabbable node, if any.\n         */\n        nextTabbableNode: function nextTabbableNode(node) {\n          var forward = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;\n          var nodeIdx = focusableNodes.findIndex(function(n) {\n            return n === node;\n          });\n          if (nodeIdx < 0) {\n            return void 0;\n          }\n          if (forward) {\n            return focusableNodes.slice(nodeIdx + 1).find(function(n) {\n              return isTabbable(n, config.tabbableOptions);\n            });\n          }\n          return focusableNodes.slice(0, nodeIdx).reverse().find(function(n) {\n            return isTabbable(n, config.tabbableOptions);\n          });\n        }\n      };\n    });\n    state.tabbableGroups = state.containerGroups.filter(function(group) {\n      return group.tabbableNodes.length > 0;\n    });\n    if (state.tabbableGroups.length <= 0 && !getNodeForOption(\"fallbackFocus\")) {\n      throw new Error(\"Your focus-trap must have at least one container with at least one tabbable node in it at all times\");\n    }\n  };\n  var tryFocus = function tryFocus2(node) {\n    if (node === false) {\n      return;\n    }\n    if (node === doc.activeElement) {\n      return;\n    }\n    if (!node || !node.focus) {\n      tryFocus2(getInitialFocusNode());\n      return;\n    }\n    node.focus({\n      preventScroll: !!config.preventScroll\n    });\n    state.mostRecentlyFocusedNode = node;\n    if (isSelectableInput(node)) {\n      node.select();\n    }\n  };\n  var getReturnFocusNode = function getReturnFocusNode2(previousActiveElement) {\n    var node = getNodeForOption(\"setReturnFocus\", previousActiveElement);\n    return node ? node : node === false ? false : previousActiveElement;\n  };\n  var checkPointerDown = function checkPointerDown2(e) {\n    var target = getActualTarget(e);\n    if (findContainerIndex(target) >= 0) {\n      return;\n    }\n    if (valueOrHandler(config.clickOutsideDeactivates, e)) {\n      trap.deactivate({\n        // if, on deactivation, we should return focus to the node originally-focused\n        //  when the trap was activated (or the configured `setReturnFocus` node),\n        //  then assume it's also OK to return focus to the outside node that was\n        //  just clicked, causing deactivation, as long as that node is focusable;\n        //  if it isn't focusable, then return focus to the original node focused\n        //  on activation (or the configured `setReturnFocus` node)\n        // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,\n        //  which will result in the outside click setting focus to the node\n        //  that was clicked, whether it's focusable or not; by setting\n        //  `returnFocus: true`, we'll attempt to re-focus the node originally-focused\n        //  on activation (or the configured `setReturnFocus` node)\n        returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)\n      });\n      return;\n    }\n    if (valueOrHandler(config.allowOutsideClick, e)) {\n      return;\n    }\n    e.preventDefault();\n  };\n  var checkFocusIn = function checkFocusIn2(e) {\n    var target = getActualTarget(e);\n    var targetContained = findContainerIndex(target) >= 0;\n    if (targetContained || target instanceof Document) {\n      if (targetContained) {\n        state.mostRecentlyFocusedNode = target;\n      }\n    } else {\n      e.stopImmediatePropagation();\n      tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());\n    }\n  };\n  var checkTab = function checkTab2(e) {\n    var target = getActualTarget(e);\n    updateTabbableNodes();\n    var destinationNode = null;\n    if (state.tabbableGroups.length > 0) {\n      var containerIndex = findContainerIndex(target);\n      var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : void 0;\n      if (containerIndex < 0) {\n        if (e.shiftKey) {\n          destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;\n        } else {\n          destinationNode = state.tabbableGroups[0].firstTabbableNode;\n        }\n      } else if (e.shiftKey) {\n        var startOfGroupIndex = findIndex(state.tabbableGroups, function(_ref2) {\n          var firstTabbableNode = _ref2.firstTabbableNode;\n          return target === firstTabbableNode;\n        });\n        if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {\n          startOfGroupIndex = containerIndex;\n        }\n        if (startOfGroupIndex >= 0) {\n          var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;\n          var destinationGroup = state.tabbableGroups[destinationGroupIndex];\n          destinationNode = destinationGroup.lastTabbableNode;\n        }\n      } else {\n        var lastOfGroupIndex = findIndex(state.tabbableGroups, function(_ref3) {\n          var lastTabbableNode = _ref3.lastTabbableNode;\n          return target === lastTabbableNode;\n        });\n        if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {\n          lastOfGroupIndex = containerIndex;\n        }\n        if (lastOfGroupIndex >= 0) {\n          var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;\n          var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];\n          destinationNode = _destinationGroup.firstTabbableNode;\n        }\n      }\n    } else {\n      destinationNode = getNodeForOption(\"fallbackFocus\");\n    }\n    if (destinationNode) {\n      e.preventDefault();\n      tryFocus(destinationNode);\n    }\n  };\n  var checkKey = function checkKey2(e) {\n    if (isEscapeEvent(e) && valueOrHandler(config.escapeDeactivates, e) !== false) {\n      e.preventDefault();\n      trap.deactivate();\n      return;\n    }\n    if (isTabEvent(e)) {\n      checkTab(e);\n      return;\n    }\n  };\n  var checkClick = function checkClick2(e) {\n    var target = getActualTarget(e);\n    if (findContainerIndex(target) >= 0) {\n      return;\n    }\n    if (valueOrHandler(config.clickOutsideDeactivates, e)) {\n      return;\n    }\n    if (valueOrHandler(config.allowOutsideClick, e)) {\n      return;\n    }\n    e.preventDefault();\n    e.stopImmediatePropagation();\n  };\n  var addListeners = function addListeners2() {\n    if (!state.active) {\n      return;\n    }\n    activeFocusTraps.activateTrap(trap);\n    state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function() {\n      tryFocus(getInitialFocusNode());\n    }) : tryFocus(getInitialFocusNode());\n    doc.addEventListener(\"focusin\", checkFocusIn, true);\n    doc.addEventListener(\"mousedown\", checkPointerDown, {\n      capture: true,\n      passive: false\n    });\n    doc.addEventListener(\"touchstart\", checkPointerDown, {\n      capture: true,\n      passive: false\n    });\n    doc.addEventListener(\"click\", checkClick, {\n      capture: true,\n      passive: false\n    });\n    doc.addEventListener(\"keydown\", checkKey, {\n      capture: true,\n      passive: false\n    });\n    return trap;\n  };\n  var removeListeners = function removeListeners2() {\n    if (!state.active) {\n      return;\n    }\n    doc.removeEventListener(\"focusin\", checkFocusIn, true);\n    doc.removeEventListener(\"mousedown\", checkPointerDown, true);\n    doc.removeEventListener(\"touchstart\", checkPointerDown, true);\n    doc.removeEventListener(\"click\", checkClick, true);\n    doc.removeEventListener(\"keydown\", checkKey, true);\n    return trap;\n  };\n  trap = {\n    get active() {\n      return state.active;\n    },\n    get paused() {\n      return state.paused;\n    },\n    activate: function activate(activateOptions) {\n      if (state.active) {\n        return this;\n      }\n      var onActivate = getOption(activateOptions, \"onActivate\");\n      var onPostActivate = getOption(activateOptions, \"onPostActivate\");\n      var checkCanFocusTrap = getOption(activateOptions, \"checkCanFocusTrap\");\n      if (!checkCanFocusTrap) {\n        updateTabbableNodes();\n      }\n      state.active = true;\n      state.paused = false;\n      state.nodeFocusedBeforeActivation = doc.activeElement;\n      if (onActivate) {\n        onActivate();\n      }\n      var finishActivation = function finishActivation2() {\n        if (checkCanFocusTrap) {\n          updateTabbableNodes();\n        }\n        addListeners();\n        if (onPostActivate) {\n          onPostActivate();\n        }\n      };\n      if (checkCanFocusTrap) {\n        checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);\n        return this;\n      }\n      finishActivation();\n      return this;\n    },\n    deactivate: function deactivate(deactivateOptions) {\n      if (!state.active) {\n        return this;\n      }\n      var options = _objectSpread2({\n        onDeactivate: config.onDeactivate,\n        onPostDeactivate: config.onPostDeactivate,\n        checkCanReturnFocus: config.checkCanReturnFocus\n      }, deactivateOptions);\n      clearTimeout(state.delayInitialFocusTimer);\n      state.delayInitialFocusTimer = void 0;\n      removeListeners();\n      state.active = false;\n      state.paused = false;\n      activeFocusTraps.deactivateTrap(trap);\n      var onDeactivate = getOption(options, \"onDeactivate\");\n      var onPostDeactivate = getOption(options, \"onPostDeactivate\");\n      var checkCanReturnFocus = getOption(options, \"checkCanReturnFocus\");\n      var returnFocus = getOption(options, \"returnFocus\", \"returnFocusOnDeactivate\");\n      if (onDeactivate) {\n        onDeactivate();\n      }\n      var finishDeactivation = function finishDeactivation2() {\n        delay(function() {\n          if (returnFocus) {\n            tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));\n          }\n          if (onPostDeactivate) {\n            onPostDeactivate();\n          }\n        });\n      };\n      if (returnFocus && checkCanReturnFocus) {\n        checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);\n        return this;\n      }\n      finishDeactivation();\n      return this;\n    },\n    pause: function pause() {\n      if (state.paused || !state.active) {\n        return this;\n      }\n      state.paused = true;\n      removeListeners();\n      return this;\n    },\n    unpause: function unpause() {\n      if (!state.paused || !state.active) {\n        return this;\n      }\n      state.paused = false;\n      updateTabbableNodes();\n      addListeners();\n      return this;\n    },\n    updateContainerElements: function updateContainerElements(containerElements) {\n      var elementsAsArray = [].concat(containerElements).filter(Boolean);\n      state.containers = elementsAsArray.map(function(element) {\n        return typeof element === \"string\" ? doc.querySelector(element) : element;\n      });\n      if (state.active) {\n        updateTabbableNodes();\n      }\n      return this;\n    }\n  };\n  trap.updateContainerElements(elements);\n  return trap;\n};\n\n// packages/focus/src/index.js\nfunction src_default(Alpine) {\n  let lastFocused;\n  let currentFocused;\n  window.addEventListener(\"focusin\", () => {\n    lastFocused = currentFocused;\n    currentFocused = document.activeElement;\n  });\n  Alpine.magic(\"focus\", (el) => {\n    let within = el;\n    return {\n      __noscroll: false,\n      __wrapAround: false,\n      within(el2) {\n        within = el2;\n        return this;\n      },\n      withoutScrolling() {\n        this.__noscroll = true;\n        return this;\n      },\n      noscroll() {\n        this.__noscroll = true;\n        return this;\n      },\n      withWrapAround() {\n        this.__wrapAround = true;\n        return this;\n      },\n      wrap() {\n        return this.withWrapAround();\n      },\n      focusable(el2) {\n        return isFocusable(el2);\n      },\n      previouslyFocused() {\n        return lastFocused;\n      },\n      lastFocused() {\n        return lastFocused;\n      },\n      focused() {\n        return currentFocused;\n      },\n      focusables() {\n        if (Array.isArray(within))\n          return within;\n        return focusable(within, { displayCheck: \"none\" });\n      },\n      all() {\n        return this.focusables();\n      },\n      isFirst(el2) {\n        let els = this.all();\n        return els[0] && els[0].isSameNode(el2);\n      },\n      isLast(el2) {\n        let els = this.all();\n        return els.length && els.slice(-1)[0].isSameNode(el2);\n      },\n      getFirst() {\n        return this.all()[0];\n      },\n      getLast() {\n        return this.all().slice(-1)[0];\n      },\n      getNext() {\n        let list = this.all();\n        let current = document.activeElement;\n        if (list.indexOf(current) === -1)\n          return;\n        if (this.__wrapAround && list.indexOf(current) === list.length - 1) {\n          return list[0];\n        }\n        return list[list.indexOf(current) + 1];\n      },\n      getPrevious() {\n        let list = this.all();\n        let current = document.activeElement;\n        if (list.indexOf(current) === -1)\n          return;\n        if (this.__wrapAround && list.indexOf(current) === 0) {\n          return list.slice(-1)[0];\n        }\n        return list[list.indexOf(current) - 1];\n      },\n      first() {\n        this.focus(this.getFirst());\n      },\n      last() {\n        this.focus(this.getLast());\n      },\n      next() {\n        this.focus(this.getNext());\n      },\n      previous() {\n        this.focus(this.getPrevious());\n      },\n      prev() {\n        return this.previous();\n      },\n      focus(el2) {\n        if (!el2)\n          return;\n        setTimeout(() => {\n          if (!el2.hasAttribute(\"tabindex\"))\n            el2.setAttribute(\"tabindex\", \"0\");\n          el2.focus({ preventScroll: this.__noscroll });\n        });\n      }\n    };\n  });\n  Alpine.directive(\"trap\", Alpine.skipDuringClone(\n    (el, { expression, modifiers }, { effect, evaluateLater, cleanup }) => {\n      let evaluator = evaluateLater(expression);\n      let oldValue = false;\n      let options = {\n        escapeDeactivates: false,\n        allowOutsideClick: true,\n        fallbackFocus: () => el\n      };\n      if (modifiers.includes(\"noautofocus\")) {\n        options.initialFocus = false;\n      } else {\n        let autofocusEl = el.querySelector(\"[autofocus]\");\n        if (autofocusEl)\n          options.initialFocus = autofocusEl;\n      }\n      let trap = createFocusTrap(el, options);\n      let undoInert = () => {\n      };\n      let undoDisableScrolling = () => {\n      };\n      const releaseFocus = () => {\n        undoInert();\n        undoInert = () => {\n        };\n        undoDisableScrolling();\n        undoDisableScrolling = () => {\n        };\n        trap.deactivate({\n          returnFocus: !modifiers.includes(\"noreturn\")\n        });\n      };\n      effect(() => evaluator((value) => {\n        if (oldValue === value)\n          return;\n        if (value && !oldValue) {\n          if (modifiers.includes(\"noscroll\"))\n            undoDisableScrolling = disableScrolling();\n          if (modifiers.includes(\"inert\"))\n            undoInert = setInert(el);\n          setTimeout(() => {\n            trap.activate();\n          }, 15);\n        }\n        if (!value && oldValue) {\n          releaseFocus();\n        }\n        oldValue = !!value;\n      }));\n      cleanup(releaseFocus);\n    },\n    // When cloning, we only want to add aria-hidden attributes to the\n    // DOM and not try to actually trap, as trapping can mess with the\n    // live DOM and isn't just isolated to the cloned DOM.\n    (el, { expression, modifiers }, { evaluate }) => {\n      if (modifiers.includes(\"inert\") && evaluate(expression))\n        setInert(el);\n    }\n  ));\n}\nfunction setInert(el) {\n  let undos = [];\n  crawlSiblingsUp(el, (sibling) => {\n    let cache = sibling.hasAttribute(\"aria-hidden\");\n    sibling.setAttribute(\"aria-hidden\", \"true\");\n    undos.push(() => cache || sibling.removeAttribute(\"aria-hidden\"));\n  });\n  return () => {\n    while (undos.length)\n      undos.pop()();\n  };\n}\nfunction crawlSiblingsUp(el, callback) {\n  if (el.isSameNode(document.body) || !el.parentNode)\n    return;\n  Array.from(el.parentNode.children).forEach((sibling) => {\n    if (sibling.isSameNode(el)) {\n      crawlSiblingsUp(el.parentNode, callback);\n    } else {\n      callback(sibling);\n    }\n  });\n}\nfunction disableScrolling() {\n  let overflow = document.documentElement.style.overflow;\n  let paddingRight = document.documentElement.style.paddingRight;\n  let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;\n  document.documentElement.style.overflow = \"hidden\";\n  document.documentElement.style.paddingRight = `${scrollbarWidth}px`;\n  return () => {\n    document.documentElement.style.overflow = overflow;\n    document.documentElement.style.paddingRight = paddingRight;\n  };\n}\n\n// packages/focus/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as focus\n};\n/*! Bundled license information:\n\ntabbable/dist/index.esm.js:\n  (*!\n  * tabbable 5.3.3\n  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE\n  *)\n\nfocus-trap/dist/focus-trap.esm.js:\n  (*!\n  * focus-trap 6.9.4\n  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE\n  *)\n*/\n", "// packages/persist/src/index.js\nfunction src_default(Alpine) {\n  let persist = () => {\n    let alias;\n    let storage;\n    try {\n      storage = localStorage;\n    } catch (e) {\n      console.error(e);\n      console.warn(\"Alpine: $persist is using temporary storage since localStorage is unavailable.\");\n      let dummy = /* @__PURE__ */ new Map();\n      storage = {\n        getItem: dummy.get.bind(dummy),\n        setItem: dummy.set.bind(dummy)\n      };\n    }\n    return Alpine.interceptor((initialValue, getter, setter, path, key) => {\n      let lookup = alias || `_x_${path}`;\n      let initial = storageHas(lookup, storage) ? storageGet(lookup, storage) : initialValue;\n      setter(initial);\n      Alpine.effect(() => {\n        let value = getter();\n        storageSet(lookup, value, storage);\n        setter(value);\n      });\n      return initial;\n    }, (func) => {\n      func.as = (key) => {\n        alias = key;\n        return func;\n      }, func.using = (target) => {\n        storage = target;\n        return func;\n      };\n    });\n  };\n  Object.defineProperty(Alpine, \"$persist\", { get: () => persist() });\n  Alpine.magic(\"persist\", persist);\n  Alpine.persist = (key, { get, set }, storage = localStorage) => {\n    let initial = storageHas(key, storage) ? storageGet(key, storage) : get();\n    set(initial);\n    Alpine.effect(() => {\n      let value = get();\n      storageSet(key, value, storage);\n      set(value);\n    });\n  };\n}\nfunction storageHas(key, storage) {\n  return storage.getItem(key) !== null;\n}\nfunction storageGet(key, storage) {\n  return JSON.parse(storage.getItem(key, storage));\n}\nfunction storageSet(key, value, storage) {\n  storage.setItem(key, JSON.stringify(value));\n}\n\n// packages/persist/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as persist\n};\n", "// packages/intersect/src/index.js\nfunction src_default(Alpine) {\n  Alpine.directive(\"intersect\", Alpine.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => {\n    let evaluate = evaluateLater(expression);\n    let options = {\n      rootMargin: getRootMargin(modifiers),\n      threshold: getThreshold(modifiers)\n    };\n    let observer = new IntersectionObserver((entries) => {\n      entries.forEach((entry) => {\n        if (entry.isIntersecting === (value === \"leave\"))\n          return;\n        evaluate();\n        modifiers.includes(\"once\") && observer.disconnect();\n      });\n    }, options);\n    observer.observe(el);\n    cleanup(() => {\n      observer.disconnect();\n    });\n  }));\n}\nfunction getThreshold(modifiers) {\n  if (modifiers.includes(\"full\"))\n    return 0.99;\n  if (modifiers.includes(\"half\"))\n    return 0.5;\n  if (!modifiers.includes(\"threshold\"))\n    return 0;\n  let threshold = modifiers[modifiers.indexOf(\"threshold\") + 1];\n  if (threshold === \"100\")\n    return 1;\n  if (threshold === \"0\")\n    return 0;\n  return Number(`.${threshold}`);\n}\nfunction getLengthValue(rawValue) {\n  let match = rawValue.match(/^(-?[0-9]+)(px|%)?$/);\n  return match ? match[1] + (match[2] || \"px\") : void 0;\n}\nfunction getRootMargin(modifiers) {\n  const key = \"margin\";\n  const fallback = \"0px 0px 0px 0px\";\n  const index = modifiers.indexOf(key);\n  if (index === -1)\n    return fallback;\n  let values = [];\n  for (let i = 1; i < 5; i++) {\n    values.push(getLengthValue(modifiers[index + i] || \"\"));\n  }\n  values = values.filter((v) => v !== void 0);\n  return values.length ? values.join(\" \").trim() : fallback;\n}\n\n// packages/intersect/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as intersect\n};\n", "// node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs\nvar min = Math.min;\nvar max = Math.max;\nvar round = Math.round;\nvar floor = Math.floor;\nvar createCoords = (v) => ({\n  x: v,\n  y: v\n});\nvar oppositeSideMap = {\n  left: \"right\",\n  right: \"left\",\n  bottom: \"top\",\n  top: \"bottom\"\n};\nvar oppositeAlignmentMap = {\n  start: \"end\",\n  end: \"start\"\n};\nfunction clamp(start, value, end) {\n  return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n  return typeof value === \"function\" ? value(param) : value;\n}\nfunction getSide(placement) {\n  return placement.split(\"-\")[0];\n}\nfunction getAlignment(placement) {\n  return placement.split(\"-\")[1];\n}\nfunction getOppositeAxis(axis) {\n  return axis === \"x\" ? \"y\" : \"x\";\n}\nfunction getAxisLength(axis) {\n  return axis === \"y\" ? \"height\" : \"width\";\n}\nfunction getSideAxis(placement) {\n  return [\"top\", \"bottom\"].includes(getSide(placement)) ? \"y\" : \"x\";\n}\nfunction getAlignmentAxis(placement) {\n  return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n  if (rtl === void 0) {\n    rtl = false;\n  }\n  const alignment = getAlignment(placement);\n  const alignmentAxis = getAlignmentAxis(placement);\n  const length = getAxisLength(alignmentAxis);\n  let mainAlignmentSide = alignmentAxis === \"x\" ? alignment === (rtl ? \"end\" : \"start\") ? \"right\" : \"left\" : alignment === \"start\" ? \"bottom\" : \"top\";\n  if (rects.reference[length] > rects.floating[length]) {\n    mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n  }\n  return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n  const oppositePlacement = getOppositePlacement(placement);\n  return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n  return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n  const lr = [\"left\", \"right\"];\n  const rl = [\"right\", \"left\"];\n  const tb = [\"top\", \"bottom\"];\n  const bt = [\"bottom\", \"top\"];\n  switch (side) {\n    case \"top\":\n    case \"bottom\":\n      if (rtl)\n        return isStart ? rl : lr;\n      return isStart ? lr : rl;\n    case \"left\":\n    case \"right\":\n      return isStart ? tb : bt;\n    default:\n      return [];\n  }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n  const alignment = getAlignment(placement);\n  let list = getSideList(getSide(placement), direction === \"start\", rtl);\n  if (alignment) {\n    list = list.map((side) => side + \"-\" + alignment);\n    if (flipAlignment) {\n      list = list.concat(list.map(getOppositeAlignmentPlacement));\n    }\n  }\n  return list;\n}\nfunction getOppositePlacement(placement) {\n  return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n  return {\n    top: 0,\n    right: 0,\n    bottom: 0,\n    left: 0,\n    ...padding\n  };\n}\nfunction getPaddingObject(padding) {\n  return typeof padding !== \"number\" ? expandPaddingObject(padding) : {\n    top: padding,\n    right: padding,\n    bottom: padding,\n    left: padding\n  };\n}\nfunction rectToClientRect(rect) {\n  return {\n    ...rect,\n    top: rect.y,\n    left: rect.x,\n    right: rect.x + rect.width,\n    bottom: rect.y + rect.height\n  };\n}\n\n// node_modules/@floating-ui/core/dist/floating-ui.core.mjs\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n  let {\n    reference,\n    floating\n  } = _ref;\n  const sideAxis = getSideAxis(placement);\n  const alignmentAxis = getAlignmentAxis(placement);\n  const alignLength = getAxisLength(alignmentAxis);\n  const side = getSide(placement);\n  const isVertical = sideAxis === \"y\";\n  const commonX = reference.x + reference.width / 2 - floating.width / 2;\n  const commonY = reference.y + reference.height / 2 - floating.height / 2;\n  const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n  let coords;\n  switch (side) {\n    case \"top\":\n      coords = {\n        x: commonX,\n        y: reference.y - floating.height\n      };\n      break;\n    case \"bottom\":\n      coords = {\n        x: commonX,\n        y: reference.y + reference.height\n      };\n      break;\n    case \"right\":\n      coords = {\n        x: reference.x + reference.width,\n        y: commonY\n      };\n      break;\n    case \"left\":\n      coords = {\n        x: reference.x - floating.width,\n        y: commonY\n      };\n      break;\n    default:\n      coords = {\n        x: reference.x,\n        y: reference.y\n      };\n  }\n  switch (getAlignment(placement)) {\n    case \"start\":\n      coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n      break;\n    case \"end\":\n      coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n      break;\n  }\n  return coords;\n}\nvar computePosition = async (reference, floating, config) => {\n  const {\n    placement = \"bottom\",\n    strategy = \"absolute\",\n    middleware = [],\n    platform: platform2\n  } = config;\n  const validMiddleware = middleware.filter(Boolean);\n  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));\n  let rects = await platform2.getElementRects({\n    reference,\n    floating,\n    strategy\n  });\n  let {\n    x,\n    y\n  } = computeCoordsFromPlacement(rects, placement, rtl);\n  let statefulPlacement = placement;\n  let middlewareData = {};\n  let resetCount = 0;\n  for (let i = 0; i < validMiddleware.length; i++) {\n    const {\n      name,\n      fn\n    } = validMiddleware[i];\n    const {\n      x: nextX,\n      y: nextY,\n      data,\n      reset\n    } = await fn({\n      x,\n      y,\n      initialPlacement: placement,\n      placement: statefulPlacement,\n      strategy,\n      middlewareData,\n      rects,\n      platform: platform2,\n      elements: {\n        reference,\n        floating\n      }\n    });\n    x = nextX != null ? nextX : x;\n    y = nextY != null ? nextY : y;\n    middlewareData = {\n      ...middlewareData,\n      [name]: {\n        ...middlewareData[name],\n        ...data\n      }\n    };\n    if (reset && resetCount <= 50) {\n      resetCount++;\n      if (typeof reset === \"object\") {\n        if (reset.placement) {\n          statefulPlacement = reset.placement;\n        }\n        if (reset.rects) {\n          rects = reset.rects === true ? await platform2.getElementRects({\n            reference,\n            floating,\n            strategy\n          }) : reset.rects;\n        }\n        ({\n          x,\n          y\n        } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n      }\n      i = -1;\n      continue;\n    }\n  }\n  return {\n    x,\n    y,\n    placement: statefulPlacement,\n    strategy,\n    middlewareData\n  };\n};\nasync function detectOverflow(state, options) {\n  var _await$platform$isEle;\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    x,\n    y,\n    platform: platform2,\n    rects,\n    elements,\n    strategy\n  } = state;\n  const {\n    boundary = \"clippingAncestors\",\n    rootBoundary = \"viewport\",\n    elementContext = \"floating\",\n    altBoundary = false,\n    padding = 0\n  } = evaluate(options, state);\n  const paddingObject = getPaddingObject(padding);\n  const altContext = elementContext === \"floating\" ? \"reference\" : \"floating\";\n  const element = elements[altBoundary ? altContext : elementContext];\n  const clippingClientRect = rectToClientRect(await platform2.getClippingRect({\n    element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),\n    boundary,\n    rootBoundary,\n    strategy\n  }));\n  const rect = elementContext === \"floating\" ? {\n    ...rects.floating,\n    x,\n    y\n  } : rects.reference;\n  const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));\n  const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {\n    x: 1,\n    y: 1\n  } : {\n    x: 1,\n    y: 1\n  };\n  const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({\n    rect,\n    offsetParent,\n    strategy\n  }) : rect);\n  return {\n    top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n    bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n    left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n    right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n  };\n}\nvar flip = function(options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: \"flip\",\n    options,\n    async fn(state) {\n      var _middlewareData$arrow, _middlewareData$flip;\n      const {\n        placement,\n        middlewareData,\n        rects,\n        initialPlacement,\n        platform: platform2,\n        elements\n      } = state;\n      const {\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = true,\n        fallbackPlacements: specifiedFallbackPlacements,\n        fallbackStrategy = \"bestFit\",\n        fallbackAxisSideDirection = \"none\",\n        flipAlignment = true,\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n        return {};\n      }\n      const side = getSide(placement);\n      const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n      const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));\n      const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n      if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== \"none\") {\n        fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n      }\n      const placements2 = [initialPlacement, ...fallbackPlacements];\n      const overflow = await detectOverflow(state, detectOverflowOptions);\n      const overflows = [];\n      let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n      if (checkMainAxis) {\n        overflows.push(overflow[side]);\n      }\n      if (checkCrossAxis) {\n        const sides2 = getAlignmentSides(placement, rects, rtl);\n        overflows.push(overflow[sides2[0]], overflow[sides2[1]]);\n      }\n      overflowsData = [...overflowsData, {\n        placement,\n        overflows\n      }];\n      if (!overflows.every((side2) => side2 <= 0)) {\n        var _middlewareData$flip2, _overflowsData$filter;\n        const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n        const nextPlacement = placements2[nextIndex];\n        if (nextPlacement) {\n          return {\n            data: {\n              index: nextIndex,\n              overflows: overflowsData\n            },\n            reset: {\n              placement: nextPlacement\n            }\n          };\n        }\n        let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n        if (!resetPlacement) {\n          switch (fallbackStrategy) {\n            case \"bestFit\": {\n              var _overflowsData$map$so;\n              const placement2 = (_overflowsData$map$so = overflowsData.map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];\n              if (placement2) {\n                resetPlacement = placement2;\n              }\n              break;\n            }\n            case \"initialPlacement\":\n              resetPlacement = initialPlacement;\n              break;\n          }\n        }\n        if (placement !== resetPlacement) {\n          return {\n            reset: {\n              placement: resetPlacement\n            }\n          };\n        }\n      }\n      return {};\n    }\n  };\n};\nasync function convertValueToCoords(state, options) {\n  const {\n    placement,\n    platform: platform2,\n    elements\n  } = state;\n  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));\n  const side = getSide(placement);\n  const alignment = getAlignment(placement);\n  const isVertical = getSideAxis(placement) === \"y\";\n  const mainAxisMulti = [\"left\", \"top\"].includes(side) ? -1 : 1;\n  const crossAxisMulti = rtl && isVertical ? -1 : 1;\n  const rawValue = evaluate(options, state);\n  let {\n    mainAxis,\n    crossAxis,\n    alignmentAxis\n  } = typeof rawValue === \"number\" ? {\n    mainAxis: rawValue,\n    crossAxis: 0,\n    alignmentAxis: null\n  } : {\n    mainAxis: 0,\n    crossAxis: 0,\n    alignmentAxis: null,\n    ...rawValue\n  };\n  if (alignment && typeof alignmentAxis === \"number\") {\n    crossAxis = alignment === \"end\" ? alignmentAxis * -1 : alignmentAxis;\n  }\n  return isVertical ? {\n    x: crossAxis * crossAxisMulti,\n    y: mainAxis * mainAxisMulti\n  } : {\n    x: mainAxis * mainAxisMulti,\n    y: crossAxis * crossAxisMulti\n  };\n}\nvar offset = function(options) {\n  if (options === void 0) {\n    options = 0;\n  }\n  return {\n    name: \"offset\",\n    options,\n    async fn(state) {\n      const {\n        x,\n        y\n      } = state;\n      const diffCoords = await convertValueToCoords(state, options);\n      return {\n        x: x + diffCoords.x,\n        y: y + diffCoords.y,\n        data: diffCoords\n      };\n    }\n  };\n};\nvar shift = function(options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: \"shift\",\n    options,\n    async fn(state) {\n      const {\n        x,\n        y,\n        placement\n      } = state;\n      const {\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = false,\n        limiter = {\n          fn: (_ref) => {\n            let {\n              x: x2,\n              y: y2\n            } = _ref;\n            return {\n              x: x2,\n              y: y2\n            };\n          }\n        },\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      const coords = {\n        x,\n        y\n      };\n      const overflow = await detectOverflow(state, detectOverflowOptions);\n      const crossAxis = getSideAxis(getSide(placement));\n      const mainAxis = getOppositeAxis(crossAxis);\n      let mainAxisCoord = coords[mainAxis];\n      let crossAxisCoord = coords[crossAxis];\n      if (checkMainAxis) {\n        const minSide = mainAxis === \"y\" ? \"top\" : \"left\";\n        const maxSide = mainAxis === \"y\" ? \"bottom\" : \"right\";\n        const min2 = mainAxisCoord + overflow[minSide];\n        const max2 = mainAxisCoord - overflow[maxSide];\n        mainAxisCoord = clamp(min2, mainAxisCoord, max2);\n      }\n      if (checkCrossAxis) {\n        const minSide = crossAxis === \"y\" ? \"top\" : \"left\";\n        const maxSide = crossAxis === \"y\" ? \"bottom\" : \"right\";\n        const min2 = crossAxisCoord + overflow[minSide];\n        const max2 = crossAxisCoord - overflow[maxSide];\n        crossAxisCoord = clamp(min2, crossAxisCoord, max2);\n      }\n      const limitedCoords = limiter.fn({\n        ...state,\n        [mainAxis]: mainAxisCoord,\n        [crossAxis]: crossAxisCoord\n      });\n      return {\n        ...limitedCoords,\n        data: {\n          x: limitedCoords.x - x,\n          y: limitedCoords.y - y\n        }\n      };\n    }\n  };\n};\n\n// node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs\nfunction getNodeName(node) {\n  if (isNode(node)) {\n    return (node.nodeName || \"\").toLowerCase();\n  }\n  return \"#document\";\n}\nfunction getWindow(node) {\n  var _node$ownerDocument;\n  return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n  var _ref;\n  return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n  return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n  return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n  return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n  if (typeof ShadowRoot === \"undefined\") {\n    return false;\n  }\n  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n  const {\n    overflow,\n    overflowX,\n    overflowY,\n    display\n  } = getComputedStyle(element);\n  return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && ![\"inline\", \"contents\"].includes(display);\n}\nfunction isTableElement(element) {\n  return [\"table\", \"td\", \"th\"].includes(getNodeName(element));\n}\nfunction isContainingBlock(element) {\n  const webkit = isWebKit();\n  const css = getComputedStyle(element);\n  return css.transform !== \"none\" || css.perspective !== \"none\" || (css.containerType ? css.containerType !== \"normal\" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== \"none\" : false) || !webkit && (css.filter ? css.filter !== \"none\" : false) || [\"transform\", \"perspective\", \"filter\"].some((value) => (css.willChange || \"\").includes(value)) || [\"paint\", \"layout\", \"strict\", \"content\"].some((value) => (css.contain || \"\").includes(value));\n}\nfunction getContainingBlock(element) {\n  let currentNode = getParentNode(element);\n  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n    if (isContainingBlock(currentNode)) {\n      return currentNode;\n    } else {\n      currentNode = getParentNode(currentNode);\n    }\n  }\n  return null;\n}\nfunction isWebKit() {\n  if (typeof CSS === \"undefined\" || !CSS.supports)\n    return false;\n  return CSS.supports(\"-webkit-backdrop-filter\", \"none\");\n}\nfunction isLastTraversableNode(node) {\n  return [\"html\", \"body\", \"#document\"].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n  return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n  if (isElement(element)) {\n    return {\n      scrollLeft: element.scrollLeft,\n      scrollTop: element.scrollTop\n    };\n  }\n  return {\n    scrollLeft: element.pageXOffset,\n    scrollTop: element.pageYOffset\n  };\n}\nfunction getParentNode(node) {\n  if (getNodeName(node) === \"html\") {\n    return node;\n  }\n  const result = (\n    // Step into the shadow DOM of the parent of a slotted node.\n    node.assignedSlot || // DOM Element detected.\n    node.parentNode || // ShadowRoot detected.\n    isShadowRoot(node) && node.host || // Fallback.\n    getDocumentElement(node)\n  );\n  return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n  const parentNode = getParentNode(node);\n  if (isLastTraversableNode(parentNode)) {\n    return node.ownerDocument ? node.ownerDocument.body : node.body;\n  }\n  if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n    return parentNode;\n  }\n  return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n  var _node$ownerDocument2;\n  if (list === void 0) {\n    list = [];\n  }\n  if (traverseIframes === void 0) {\n    traverseIframes = true;\n  }\n  const scrollableAncestor = getNearestOverflowAncestor(node);\n  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n  const win = getWindow(scrollableAncestor);\n  if (isBody) {\n    return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);\n  }\n  return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\n\n// node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs\nfunction getCssDimensions(element) {\n  const css = getComputedStyle(element);\n  let width = parseFloat(css.width) || 0;\n  let height = parseFloat(css.height) || 0;\n  const hasOffset = isHTMLElement(element);\n  const offsetWidth = hasOffset ? element.offsetWidth : width;\n  const offsetHeight = hasOffset ? element.offsetHeight : height;\n  const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n  if (shouldFallback) {\n    width = offsetWidth;\n    height = offsetHeight;\n  }\n  return {\n    width,\n    height,\n    $: shouldFallback\n  };\n}\nfunction unwrapElement(element) {\n  return !isElement(element) ? element.contextElement : element;\n}\nfunction getScale(element) {\n  const domElement = unwrapElement(element);\n  if (!isHTMLElement(domElement)) {\n    return createCoords(1);\n  }\n  const rect = domElement.getBoundingClientRect();\n  const {\n    width,\n    height,\n    $\n  } = getCssDimensions(domElement);\n  let x = ($ ? round(rect.width) : rect.width) / width;\n  let y = ($ ? round(rect.height) : rect.height) / height;\n  if (!x || !Number.isFinite(x)) {\n    x = 1;\n  }\n  if (!y || !Number.isFinite(y)) {\n    y = 1;\n  }\n  return {\n    x,\n    y\n  };\n}\nvar noOffsets = /* @__PURE__ */ createCoords(0);\nfunction getVisualOffsets(element) {\n  const win = getWindow(element);\n  if (!isWebKit() || !win.visualViewport) {\n    return noOffsets;\n  }\n  return {\n    x: win.visualViewport.offsetLeft,\n    y: win.visualViewport.offsetTop\n  };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n  if (isFixed === void 0) {\n    isFixed = false;\n  }\n  if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n    return false;\n  }\n  return isFixed;\n}\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n  if (includeScale === void 0) {\n    includeScale = false;\n  }\n  if (isFixedStrategy === void 0) {\n    isFixedStrategy = false;\n  }\n  const clientRect = element.getBoundingClientRect();\n  const domElement = unwrapElement(element);\n  let scale = createCoords(1);\n  if (includeScale) {\n    if (offsetParent) {\n      if (isElement(offsetParent)) {\n        scale = getScale(offsetParent);\n      }\n    } else {\n      scale = getScale(element);\n    }\n  }\n  const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n  let x = (clientRect.left + visualOffsets.x) / scale.x;\n  let y = (clientRect.top + visualOffsets.y) / scale.y;\n  let width = clientRect.width / scale.x;\n  let height = clientRect.height / scale.y;\n  if (domElement) {\n    const win = getWindow(domElement);\n    const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n    let currentIFrame = win.frameElement;\n    while (currentIFrame && offsetParent && offsetWin !== win) {\n      const iframeScale = getScale(currentIFrame);\n      const iframeRect = currentIFrame.getBoundingClientRect();\n      const css = getComputedStyle(currentIFrame);\n      const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n      const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n      x *= iframeScale.x;\n      y *= iframeScale.y;\n      width *= iframeScale.x;\n      height *= iframeScale.y;\n      x += left;\n      y += top;\n      currentIFrame = getWindow(currentIFrame).frameElement;\n    }\n  }\n  return rectToClientRect({\n    width,\n    height,\n    x,\n    y\n  });\n}\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n  let {\n    rect,\n    offsetParent,\n    strategy\n  } = _ref;\n  const isOffsetParentAnElement = isHTMLElement(offsetParent);\n  const documentElement = getDocumentElement(offsetParent);\n  if (offsetParent === documentElement) {\n    return rect;\n  }\n  let scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  let scale = createCoords(1);\n  const offsets = createCoords(0);\n  if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== \"fixed\") {\n    if (getNodeName(offsetParent) !== \"body\" || isOverflowElement(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n    if (isHTMLElement(offsetParent)) {\n      const offsetRect = getBoundingClientRect(offsetParent);\n      scale = getScale(offsetParent);\n      offsets.x = offsetRect.x + offsetParent.clientLeft;\n      offsets.y = offsetRect.y + offsetParent.clientTop;\n    }\n  }\n  return {\n    width: rect.width * scale.x,\n    height: rect.height * scale.y,\n    x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,\n    y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y\n  };\n}\nfunction getClientRects(element) {\n  return Array.from(element.getClientRects());\n}\nfunction getWindowScrollBarX(element) {\n  return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;\n}\nfunction getDocumentRect(element) {\n  const html = getDocumentElement(element);\n  const scroll = getNodeScroll(element);\n  const body = element.ownerDocument.body;\n  const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n  const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n  let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n  const y = -scroll.scrollTop;\n  if (getComputedStyle(body).direction === \"rtl\") {\n    x += max(html.clientWidth, body.clientWidth) - width;\n  }\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getViewportRect(element, strategy) {\n  const win = getWindow(element);\n  const html = getDocumentElement(element);\n  const visualViewport = win.visualViewport;\n  let width = html.clientWidth;\n  let height = html.clientHeight;\n  let x = 0;\n  let y = 0;\n  if (visualViewport) {\n    width = visualViewport.width;\n    height = visualViewport.height;\n    const visualViewportBased = isWebKit();\n    if (!visualViewportBased || visualViewportBased && strategy === \"fixed\") {\n      x = visualViewport.offsetLeft;\n      y = visualViewport.offsetTop;\n    }\n  }\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getInnerBoundingClientRect(element, strategy) {\n  const clientRect = getBoundingClientRect(element, true, strategy === \"fixed\");\n  const top = clientRect.top + element.clientTop;\n  const left = clientRect.left + element.clientLeft;\n  const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n  const width = element.clientWidth * scale.x;\n  const height = element.clientHeight * scale.y;\n  const x = left * scale.x;\n  const y = top * scale.y;\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n  let rect;\n  if (clippingAncestor === \"viewport\") {\n    rect = getViewportRect(element, strategy);\n  } else if (clippingAncestor === \"document\") {\n    rect = getDocumentRect(getDocumentElement(element));\n  } else if (isElement(clippingAncestor)) {\n    rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n  } else {\n    const visualOffsets = getVisualOffsets(element);\n    rect = {\n      ...clippingAncestor,\n      x: clippingAncestor.x - visualOffsets.x,\n      y: clippingAncestor.y - visualOffsets.y\n    };\n  }\n  return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n  const parentNode = getParentNode(element);\n  if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n    return false;\n  }\n  return getComputedStyle(parentNode).position === \"fixed\" || hasFixedPositionAncestor(parentNode, stopNode);\n}\nfunction getClippingElementAncestors(element, cache) {\n  const cachedResult = cache.get(element);\n  if (cachedResult) {\n    return cachedResult;\n  }\n  let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== \"body\");\n  let currentContainingBlockComputedStyle = null;\n  const elementIsFixed = getComputedStyle(element).position === \"fixed\";\n  let currentNode = elementIsFixed ? getParentNode(element) : element;\n  while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n    const computedStyle = getComputedStyle(currentNode);\n    const currentNodeIsContaining = isContainingBlock(currentNode);\n    if (!currentNodeIsContaining && computedStyle.position === \"fixed\") {\n      currentContainingBlockComputedStyle = null;\n    }\n    const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === \"static\" && !!currentContainingBlockComputedStyle && [\"absolute\", \"fixed\"].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n    if (shouldDropCurrentNode) {\n      result = result.filter((ancestor) => ancestor !== currentNode);\n    } else {\n      currentContainingBlockComputedStyle = computedStyle;\n    }\n    currentNode = getParentNode(currentNode);\n  }\n  cache.set(element, result);\n  return result;\n}\nfunction getClippingRect(_ref) {\n  let {\n    element,\n    boundary,\n    rootBoundary,\n    strategy\n  } = _ref;\n  const elementClippingAncestors = boundary === \"clippingAncestors\" ? getClippingElementAncestors(element, this._c) : [].concat(boundary);\n  const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n  const firstClippingAncestor = clippingAncestors[0];\n  const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n    const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n    accRect.top = max(rect.top, accRect.top);\n    accRect.right = min(rect.right, accRect.right);\n    accRect.bottom = min(rect.bottom, accRect.bottom);\n    accRect.left = max(rect.left, accRect.left);\n    return accRect;\n  }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n  return {\n    width: clippingRect.right - clippingRect.left,\n    height: clippingRect.bottom - clippingRect.top,\n    x: clippingRect.left,\n    y: clippingRect.top\n  };\n}\nfunction getDimensions(element) {\n  return getCssDimensions(element);\n}\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n  const isOffsetParentAnElement = isHTMLElement(offsetParent);\n  const documentElement = getDocumentElement(offsetParent);\n  const isFixed = strategy === \"fixed\";\n  const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n  let scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  const offsets = createCoords(0);\n  if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n    if (getNodeName(offsetParent) !== \"body\" || isOverflowElement(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n    if (isOffsetParentAnElement) {\n      const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n      offsets.x = offsetRect.x + offsetParent.clientLeft;\n      offsets.y = offsetRect.y + offsetParent.clientTop;\n    } else if (documentElement) {\n      offsets.x = getWindowScrollBarX(documentElement);\n    }\n  }\n  return {\n    x: rect.left + scroll.scrollLeft - offsets.x,\n    y: rect.top + scroll.scrollTop - offsets.y,\n    width: rect.width,\n    height: rect.height\n  };\n}\nfunction getTrueOffsetParent(element, polyfill) {\n  if (!isHTMLElement(element) || getComputedStyle(element).position === \"fixed\") {\n    return null;\n  }\n  if (polyfill) {\n    return polyfill(element);\n  }\n  return element.offsetParent;\n}\nfunction getOffsetParent(element, polyfill) {\n  const window2 = getWindow(element);\n  if (!isHTMLElement(element)) {\n    return window2;\n  }\n  let offsetParent = getTrueOffsetParent(element, polyfill);\n  while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === \"static\") {\n    offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n  }\n  if (offsetParent && (getNodeName(offsetParent) === \"html\" || getNodeName(offsetParent) === \"body\" && getComputedStyle(offsetParent).position === \"static\" && !isContainingBlock(offsetParent))) {\n    return window2;\n  }\n  return offsetParent || getContainingBlock(element) || window2;\n}\nvar getElementRects = async function(_ref) {\n  let {\n    reference,\n    floating,\n    strategy\n  } = _ref;\n  const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n  const getDimensionsFn = this.getDimensions;\n  return {\n    reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),\n    floating: {\n      x: 0,\n      y: 0,\n      ...await getDimensionsFn(floating)\n    }\n  };\n};\nfunction isRTL(element) {\n  return getComputedStyle(element).direction === \"rtl\";\n}\nvar platform = {\n  convertOffsetParentRelativeRectToViewportRelativeRect,\n  getDocumentElement,\n  getClippingRect,\n  getOffsetParent,\n  getElementRects,\n  getClientRects,\n  getDimensions,\n  getScale,\n  isElement,\n  isRTL\n};\nfunction observeMove(element, onMove) {\n  let io = null;\n  let timeoutId;\n  const root = getDocumentElement(element);\n  function cleanup() {\n    clearTimeout(timeoutId);\n    io && io.disconnect();\n    io = null;\n  }\n  function refresh(skip, threshold) {\n    if (skip === void 0) {\n      skip = false;\n    }\n    if (threshold === void 0) {\n      threshold = 1;\n    }\n    cleanup();\n    const {\n      left,\n      top,\n      width,\n      height\n    } = element.getBoundingClientRect();\n    if (!skip) {\n      onMove();\n    }\n    if (!width || !height) {\n      return;\n    }\n    const insetTop = floor(top);\n    const insetRight = floor(root.clientWidth - (left + width));\n    const insetBottom = floor(root.clientHeight - (top + height));\n    const insetLeft = floor(left);\n    const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n    const options = {\n      rootMargin,\n      threshold: max(0, min(1, threshold)) || 1\n    };\n    let isFirstUpdate = true;\n    function handleObserve(entries) {\n      const ratio = entries[0].intersectionRatio;\n      if (ratio !== threshold) {\n        if (!isFirstUpdate) {\n          return refresh();\n        }\n        if (!ratio) {\n          timeoutId = setTimeout(() => {\n            refresh(false, 1e-7);\n          }, 100);\n        } else {\n          refresh(false, ratio);\n        }\n      }\n      isFirstUpdate = false;\n    }\n    try {\n      io = new IntersectionObserver(handleObserve, {\n        ...options,\n        // Handle <iframe>s\n        root: root.ownerDocument\n      });\n    } catch (e) {\n      io = new IntersectionObserver(handleObserve, options);\n    }\n    io.observe(element);\n  }\n  refresh(true);\n  return cleanup;\n}\nfunction autoUpdate(reference, floating, update, options) {\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    ancestorScroll = true,\n    ancestorResize = true,\n    elementResize = typeof ResizeObserver === \"function\",\n    layoutShift = typeof IntersectionObserver === \"function\",\n    animationFrame = false\n  } = options;\n  const referenceEl = unwrapElement(reference);\n  const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];\n  ancestors.forEach((ancestor) => {\n    ancestorScroll && ancestor.addEventListener(\"scroll\", update, {\n      passive: true\n    });\n    ancestorResize && ancestor.addEventListener(\"resize\", update);\n  });\n  const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n  let reobserveFrame = -1;\n  let resizeObserver = null;\n  if (elementResize) {\n    resizeObserver = new ResizeObserver((_ref) => {\n      let [firstEntry] = _ref;\n      if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n        resizeObserver.unobserve(floating);\n        cancelAnimationFrame(reobserveFrame);\n        reobserveFrame = requestAnimationFrame(() => {\n          resizeObserver && resizeObserver.observe(floating);\n        });\n      }\n      update();\n    });\n    if (referenceEl && !animationFrame) {\n      resizeObserver.observe(referenceEl);\n    }\n    resizeObserver.observe(floating);\n  }\n  let frameId;\n  let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n  if (animationFrame) {\n    frameLoop();\n  }\n  function frameLoop() {\n    const nextRefRect = getBoundingClientRect(reference);\n    if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {\n      update();\n    }\n    prevRefRect = nextRefRect;\n    frameId = requestAnimationFrame(frameLoop);\n  }\n  update();\n  return () => {\n    ancestors.forEach((ancestor) => {\n      ancestorScroll && ancestor.removeEventListener(\"scroll\", update);\n      ancestorResize && ancestor.removeEventListener(\"resize\", update);\n    });\n    cleanupIo && cleanupIo();\n    resizeObserver && resizeObserver.disconnect();\n    resizeObserver = null;\n    if (animationFrame) {\n      cancelAnimationFrame(frameId);\n    }\n  };\n}\nvar computePosition2 = (reference, floating, options) => {\n  const cache = /* @__PURE__ */ new Map();\n  const mergedOptions = {\n    platform,\n    ...options\n  };\n  const platformWithCache = {\n    ...mergedOptions.platform,\n    _c: cache\n  };\n  return computePosition(reference, floating, {\n    ...mergedOptions,\n    platform: platformWithCache\n  });\n};\n\n// packages/anchor/src/index.js\nfunction src_default(Alpine) {\n  Alpine.magic(\"anchor\", (el) => {\n    if (!el._x_anchor)\n      throw \"Alpine: No x-anchor directive found on element using $anchor...\";\n    return el._x_anchor;\n  });\n  Alpine.interceptClone((from, to) => {\n    if (from && from._x_anchor && !to._x_anchor) {\n      to._x_anchor = from._x_anchor;\n    }\n  });\n  Alpine.directive(\"anchor\", Alpine.skipDuringClone(\n    (el, { expression, modifiers, value }, { cleanup, evaluate: evaluate2 }) => {\n      let { placement, offsetValue, unstyled } = getOptions(modifiers);\n      el._x_anchor = Alpine.reactive({ x: 0, y: 0 });\n      let reference = evaluate2(expression);\n      if (!reference)\n        throw \"Alpine: no element provided to x-anchor...\";\n      let compute = () => {\n        let previousValue;\n        computePosition2(reference, el, {\n          placement,\n          middleware: [flip(), shift({ padding: 5 }), offset(offsetValue)]\n        }).then(({ x, y }) => {\n          unstyled || setStyles(el, x, y);\n          if (JSON.stringify({ x, y }) !== previousValue) {\n            el._x_anchor.x = x;\n            el._x_anchor.y = y;\n          }\n          previousValue = JSON.stringify({ x, y });\n        });\n      };\n      let release = autoUpdate(reference, el, () => compute());\n      cleanup(() => release());\n    },\n    // When cloning (or \"morphing\"), we will graft the style and position data from the live tree...\n    (el, { expression, modifiers, value }, { cleanup, evaluate: evaluate2 }) => {\n      let { placement, offsetValue, unstyled } = getOptions(modifiers);\n      if (el._x_anchor) {\n        unstyled || setStyles(el, el._x_anchor.x, el._x_anchor.y);\n      }\n    }\n  ));\n}\nfunction setStyles(el, x, y) {\n  Object.assign(el.style, {\n    left: x + \"px\",\n    top: y + \"px\",\n    position: \"absolute\"\n  });\n}\nfunction getOptions(modifiers) {\n  let positions = [\"top\", \"top-start\", \"top-end\", \"right\", \"right-start\", \"right-end\", \"bottom\", \"bottom-start\", \"bottom-end\", \"left\", \"left-start\", \"left-end\"];\n  let placement = positions.find((i) => modifiers.includes(i));\n  let offsetValue = 0;\n  if (modifiers.includes(\"offset\")) {\n    let idx = modifiers.findIndex((i) => i === \"offset\");\n    offsetValue = modifiers[idx + 1] !== void 0 ? Number(modifiers[idx + 1]) : offsetValue;\n  }\n  let unstyled = modifiers.includes(\"no-style\");\n  return { placement, offsetValue, unstyled };\n}\n\n// packages/anchor/builds/module.js\nvar module_default = src_default;\nexport {\n  src_default as anchor,\n  module_default as default\n};\n", "\nexport function updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks() {\n    // Create a history state entry for the initial page load.\n    // (This is so later hitting back can restore this page).\n    let url = new URL(window.location.href, document.baseURI)\n\n    replaceUrl(url, document.documentElement.outerHTML)\n}\n\nexport function whenTheBackOrForwardButtonIsClicked(callback) {\n    window.addEventListener('popstate', e => {\n        let state = e.state || {}\n\n        let alpine = state.alpine || {}\n\n        if (! alpine._html) return\n\n        let html = fromSessionStorage(alpine._html)\n\n        callback(html)\n    })\n}\n\nexport function updateUrlAndStoreLatestHtmlForFutureBackButtons(html, destination) {\n    pushUrl(destination, html)\n}\n\nexport function pushUrl(url, html) {\n    updateUrl('pushState', url, html)\n}\n\nexport function replaceUrl(url, html) {\n    updateUrl('replaceState', url, html)\n}\n\nfunction updateUrl(method, url, html) {\n    let key = (new Date).getTime()\n\n    tryToStoreInSession(key, html)\n\n    let state = history.state || {}\n\n    if (! state.alpine) state.alpine = {}\n\n    state.alpine._html = key\n\n    try {\n        // 640k character limit:\n        history[method](state, document.title, url)\n    } catch (error) {\n        if (error instanceof DOMException && error.name === 'SecurityError') {\n            console.error('Livewire: You can\\'t use wire:navigate with a link to a different root domain: '+url)\n        }\n\n        console.error(error)\n    }\n}\n\nexport function fromSessionStorage(timestamp) {\n    let state = JSON.parse(sessionStorage.getItem('alpine:'+timestamp))\n\n    return state\n}\n\nfunction tryToStoreInSession(timestamp, value) {\n    // sessionStorage has a max storage limit (usally 5MB).\n    // If we meet that limit, we'll start removing entries\n    // (oldest first), until there's enough space to store\n    // the new one.\n    try {\n        sessionStorage.setItem('alpine:'+timestamp, JSON.stringify(value))\n    } catch (error) {\n        // 22 is Chrome, 1-14 is other browsers.\n        if (! [22, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14].includes(error.code)) return\n\n        let oldestTimestamp = Object.keys(sessionStorage)\n            .map(key => Number(key.replace('alpine:', '')))\n            .sort()\n            .shift()\n\n        if (! oldestTimestamp) return\n\n        sessionStorage.removeItem('alpine:'+oldestTimestamp)\n\n        tryToStoreInSession(timestamp, value)\n    }\n}\n", "\nexport function whenThisLinkIsPressed(el, callback) {\n    let isProgrammaticClick = e => ! e.isTrusted\n    let isNotPlainLeftClick = e => (e.which > 1) || (e.altKey) || (e.ctrlKey) || (e.metaKey) || (e.shiftKey)\n    let isNotPlainEnterKey = (e) => (e.which !== 13) || (e.altKey) || (e.ctrlKey) || (e.metaKey) || (e.shiftKey)\n\n    el.addEventListener('click', e => {\n        // This allows programmatic clicking of links via: `$0.click()`...\n        if (isProgrammaticClick(e)) {\n            e.preventDefault()\n\n            callback(whenReleased => whenReleased())\n\n            return\n        }\n\n        // This allows cmd+click and such to still work as expected...\n        if (isNotPlainLeftClick(e)) return;\n\n        // If it's a plain left click, we want to prevent \"click\" and let \"mouseup\" do its thing...\n        e.preventDefault()\n    })\n\n    el.addEventListener('mousedown', e => {\n        // We only care about left clicks for wire:navigate...\n        if (isNotPlainLeftClick(e)) return;\n\n        e.preventDefault()\n\n        callback((whenReleased) => {\n            let handler = e => {\n                e.preventDefault()\n\n                whenReleased()\n\n                el.removeEventListener('mouseup', handler)\n            }\n\n            el.addEventListener('mouseup', handler)\n        })\n    })\n\n    el.addEventListener(\"keydown\", e => {\n        // We only care about the enter key...\n        if (isNotPlainEnterKey(e)) return;\n\n        e.preventDefault()\n\n        callback(whenReleased => whenReleased())\n    })\n}\n\nexport function whenThisLinkIsHoveredFor(el, ms = 60, callback) {\n    el.addEventListener('mouseenter', e => {\n        let timeout = setTimeout(() => {\n            callback(e)\n        }, ms)\n\n        let handler = () => {\n            clearTimeout(timeout)\n            el.removeEventListener('mouseleave', handler)\n        }\n\n        el.addEventListener('mouseleave', handler)\n    })\n}\n\nexport function extractDestinationFromLink(linkEl) {\n    return createUrlObjectFromString(linkEl.getAttribute('href'))\n}\n\nexport function createUrlObjectFromString(urlString) {\n    return new URL(urlString, document.baseURI)\n}\n", "import { trigger } from \"@/hooks\"\nimport { createUrlObjectFromString } from \"./links\"\n\nexport function fetchHtml(destination, callback) {\n    let uri = destination.pathname + destination.search\n\n    performFetch(uri, (html, finalDestination) => {\n        callback(html, finalDestination)\n    })\n}\n\nexport function performFetch(uri, callback) {\n    let options = {\n        headers: {\n            'X-Livewire-Navigate': ''\n        }\n    }\n\n    trigger('navigate.request', {\n        url: uri,\n        options,\n    })\n\n    let finalDestination\n\n    fetch(uri, options).then(response => {\n        finalDestination = createUrlObjectFromString(response.url)\n\n        return response.text()\n    }).then(html => {\n        callback(html, finalDestination)\n    });\n}\n", "import { performFetch } from \"@/plugins/navigate/fetch\";\n\n// Warning: this could cause some memory leaks\nlet prefetches = {}\n\nexport function prefetchHtml(destination, callback) {\n    let path = destination.pathname\n\n    if (prefetches[path]) return\n\n    prefetches[path] = { finished: false, html: null, whenFinished: () => {} }\n\n    performFetch(path, (html, routedUri) => {\n        callback(html, routedUri)\n    })\n}\n\nexport function storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination) {\n    let state = prefetches[destination.pathname]\n    state.html = html\n    state.finished = true\n    state.finalDestination = finalDestination\n    state.whenFinished()\n}\n\nexport function getPretchedHtmlOr(destination, receive, ifNoPrefetchExists) {\n    let uri = destination.pathname + destination.search\n\n    if (! prefetches[uri]) return ifNoPrefetchExists()\n\n    if (prefetches[uri].finished) {\n        let html = prefetches[uri].html\n        let finalDestination = prefetches[uri].finalDestination\n\n        delete prefetches[uri]\n\n        return receive(html, finalDestination)\n    } else {\n        prefetches[uri].whenFinished = () => {\n            let html = prefetches[uri].html\n            let finalDestination = prefetches[uri].finalDestination\n\n            delete prefetches[uri]\n\n            receive(html, finalDestination)\n        }\n    }\n}\n\n", "import Alpine from \"alpinejs\"\n\nexport function packUpPersistedTeleports(persistedEl) {\n    // Persisted elements get removed from the DOM and then re-added later. We need to do the same\n    // with any `x-teleport`ed elements...\n    Alpine.mutateDom(() => {\n        persistedEl.querySelectorAll('[data-teleport-template]').forEach(i => i._x_teleport.remove())\n    })\n}\n\nexport function removeAnyLeftOverStaleTeleportTargets(body) {\n    // We need to remove any left-over teleported elements form the page\n    // as they are stale and will be re-initialized when Alpine boots up on this page...\n    Alpine.mutateDom(() => {\n        body.querySelectorAll('[data-teleport-target]').forEach(i => i.remove())\n    })\n}\n\nexport function unPackPersistedTeleports(persistedEl) {\n    // Before we put back any persisted elements, we're going to\n    // find any \"x-teleports\" and put their targets back on the page...\n    Alpine.walk(persistedEl, (el, skip) => {\n        if (! el._x_teleport) return;\n\n        el._x_teleportPutBack()\n\n        skip()\n    })\n}\n\nexport function isTeleportTarget(el) {\n    return el.hasAttribute('data-teleport-target')\n}\n", "\nexport function storeScrollInformationInHtmlBeforeNavigatingAway() {\n    document.body.setAttribute('data-scroll-x', document.body.scrollLeft)\n    document.body.setAttribute('data-scroll-y', document.body.scrollTop)\n\n    document.querySelectorAll(['[x-navigate\\\\:scroll]', '[wire\\\\:scroll]']).forEach(el => {\n        el.setAttribute('data-scroll-x', el.scrollLeft)\n        el.setAttribute('data-scroll-y', el.scrollTop)\n    })\n}\n\nexport function restoreScrollPositionOrScrollToTop() {\n    let scroll = el => {\n        if (! el.hasAttribute('data-scroll-x')) {\n            window.scrollTo({ top: 0, left: 0, behavior: 'instant' })\n        } else {\n            el.scrollTo({\n                top: Number(el.getAttribute('data-scroll-y')),\n                left: Number(el.getAttribute('data-scroll-x')),\n                behavior: 'instant',\n            })\n            el.removeAttribute('data-scroll-x')\n            el.removeAttribute('data-scroll-y')\n        }\n    }\n\n    queueMicrotask(() => {\n        scroll(document.body)\n\n        document.querySelectorAll(['[x-navigate\\\\:scroll]', '[wire\\\\:scroll]']).forEach(scroll)\n    })\n}\n", "import Alpine from 'alpinejs'\n\nlet els = {}\n\nexport function storePersistantElementsForLater(callback) {\n    els = {}\n\n    document.querySelectorAll('[x-persist]').forEach(i => {\n        els[i.getAttribute('x-persist')] = i\n\n        callback(i)\n\n        Alpine.mutateDom(() => {\n            i.remove()\n        })\n    })\n}\n\nexport function putPersistantElementsBack(callback) {\n    let usedPersists = []\n\n    document.querySelectorAll('[x-persist]').forEach(i => {\n        let old = els[i.getAttribute('x-persist')]\n\n        // There might be a brand new x-persist element...\n        if (! old) return\n\n        usedPersists.push(i.getAttribute('x-persist'))\n\n        old._x_wasPersisted = true\n\n        callback(old, i)\n\n        Alpine.mutateDom(() => {\n            i.replaceWith(old)\n        })\n    })\n\n    Object.entries(els).forEach(([key, el]) => {\n        if (usedPersists.includes(key)) return\n\n        // Destory the un-used persist DOM trees before releasing them...\n        Alpine.destroyTree(el)\n    })\n\n    // Release unused persists for garbage collection...\n    els = {}\n}\n\nexport function isPersistedElement(el) {\n    return el.hasAttribute('x-persist')\n}\n", "import NProgress from 'nprogress'\nimport { getNonce } from '@/utils'\n\nNProgress.configure({\n    minimum: 0.1,\n    trickleSpeed: 200,\n    showSpinner: false,\n})\n\ninjectStyles()\n\nlet inProgress = false\nexport function showAndStartProgressBar() {\n    inProgress = true\n    // Only show progress bar if it's been a little bit...\n    setTimeout(() => {\n        if (! inProgress) return\n        NProgress.start()\n    }, 150)\n\n    // createBar()\n\n    // incrementBar()\n}\n\nexport function finishAndHideProgressBar() {\n    inProgress = false\n    NProgress.done()\n    NProgress.remove()\n\n    // finishProgressBar(); destroyBar()\n}\n\nfunction createBar() {\n    let bar = document.createElement('div')\n\n    bar.setAttribute('id', 'alpine-progress-bar')\n    bar.setAttribute('x-navigate:persist', 'alpine-progress-bar')\n    bar.setAttribute('style', `\n        width: 100%;\n        height: 5px;\n        background: black;\n        position: absolute;\n        top: 0;\n        left: 0;\n        right: 0;\n        transition: all 0.5s ease;\n        transform: scaleX(0);\n        transform-origin: left;\n    `)\n\n    document.body.appendChild(bar)\n\n    return bar\n}\n\nfunction incrementBar(goal = .1) {\n    let bar = document.getElementById('alpine-progress-bar')\n\n    if (! bar) return\n\n    let percentage = Number(bar.style.transform.match(/scaleX\\((.+)\\)/)[1])\n\n    if (percentage > 1) return\n\n    bar.style.transform = 'scaleX(' + goal + ')'\n\n    setTimeout(() => {\n        incrementBar(percentage + .1)\n    }, 50)\n}\n\nfunction finishProgressBar(callback) {\n    let bar = document.getElementById('alpine-progress-bar')\n    bar.style.transform = 'scaleX(1)'\n}\n\nfunction destroyBar() {\n    document.getElementById('alpine-progress-bar').remove()\n}\n\nfunction injectStyles() {\n    let style = document.createElement('style')\n    style.innerHTML = `/* Make clicks pass-through */\n\n    #nprogress {\n      pointer-events: none;\n    }\n\n    #nprogress .bar {\n      background: var(--livewire-progress-bar-color, #29d);\n\n      position: fixed;\n      z-index: 1031;\n      top: 0;\n      left: 0;\n\n      width: 100%;\n      height: 2px;\n    }\n\n    /* Fancy blur effect */\n    #nprogress .peg {\n      display: block;\n      position: absolute;\n      right: 0px;\n      width: 100px;\n      height: 100%;\n      box-shadow: 0 0 10px var(--livewire-progress-bar-color, #29d), 0 0 5px var(--livewire-progress-bar-color, #29d);\n      opacity: 1.0;\n\n      -webkit-transform: rotate(3deg) translate(0px, -4px);\n          -ms-transform: rotate(3deg) translate(0px, -4px);\n              transform: rotate(3deg) translate(0px, -4px);\n    }\n\n    /* Remove these to get rid of the spinner */\n    #nprogress .spinner {\n      display: block;\n      position: fixed;\n      z-index: 1031;\n      top: 15px;\n      right: 15px;\n    }\n\n    #nprogress .spinner-icon {\n      width: 18px;\n      height: 18px;\n      box-sizing: border-box;\n\n      border: solid 2px transparent;\n      border-top-color: var(--livewire-progress-bar-color, #29d);\n      border-left-color: var(--livewire-progress-bar-color, #29d);\n      border-radius: 50%;\n\n      -webkit-animation: nprogress-spinner 400ms linear infinite;\n              animation: nprogress-spinner 400ms linear infinite;\n    }\n\n    .nprogress-custom-parent {\n      overflow: hidden;\n      position: relative;\n    }\n\n    .nprogress-custom-parent #nprogress .spinner,\n    .nprogress-custom-parent #nprogress .bar {\n      position: absolute;\n    }\n\n    @-webkit-keyframes nprogress-spinner {\n      0%   { -webkit-transform: rotate(0deg); }\n      100% { -webkit-transform: rotate(360deg); }\n    }\n    @keyframes nprogress-spinner {\n      0%   { transform: rotate(0deg); }\n      100% { transform: rotate(360deg); }\n    }\n    `\n\n    let nonce = getNonce()\n    if (nonce) {\n      style.nonce = nonce\n    }\n\n    document.head.appendChild(style)\n}\n", "let oldBodyScriptTagHashes = []\n\nlet attributesExemptFromScriptTagHashing = [\n    'data-csrf',\n    'aria-hidden',\n]\n\nexport function swapCurrentPageWithNewHtml(html, andThen) {\n    let newDocument = (new DOMParser()).parseFromString(html, \"text/html\")\n    let newBody = document.adoptNode(newDocument.body)\n    let newHead = document.adoptNode(newDocument.head)\n\n    oldBodyScriptTagHashes = oldBodyScriptTagHashes.concat(Array.from(document.body.querySelectorAll('script')).map(i => {\n        return simpleHash(ignoreAttributes(i.outerHTML, attributesExemptFromScriptTagHashing))\n    }))\n\n    let afterRemoteScriptsHaveLoaded = () => {}\n\n    mergeNewHead(newHead).finally(() => {\n        afterRemoteScriptsHaveLoaded()\n    })\n\n    prepNewBodyScriptTagsToRun(newBody, oldBodyScriptTagHashes)\n\n    let oldBody = document.body\n\n    document.body.replaceWith(newBody)\n\n    Alpine.destroyTree(oldBody)\n\n    andThen(i => afterRemoteScriptsHaveLoaded = i)\n}\n\nfunction prepNewBodyScriptTagsToRun(newBody, oldBodyScriptTagHashes) {\n    newBody.querySelectorAll('script').forEach(i => {\n        // We don't want to re-run script tags marked as \"data-navigate-once\"...\n        if (i.hasAttribute('data-navigate-once')) {\n            // However, if they didn't exist on the previous page, we do.\n            // Therefore, we'll check the \"old body script hashes\" to\n            // see if it was already there before skipping it...\n\n            let hash = simpleHash(\n                ignoreAttributes(i.outerHTML, attributesExemptFromScriptTagHashing)\n            )\n\n            if (oldBodyScriptTagHashes.includes(hash)) return\n        }\n\n        i.replaceWith(cloneScriptTag(i))\n    })\n}\n\nfunction mergeNewHead(newHead) {\n    let children = Array.from(document.head.children)\n    let headChildrenHtmlLookup = children.map(i => i.outerHTML)\n\n    // Only add scripts and styles that aren't already loaded on the page.\n    let garbageCollector = document.createDocumentFragment()\n\n    let touchedHeadElements = []\n\n    let remoteScriptsPromises = []\n\n    for (let child of Array.from(newHead.children)) {\n        if (isAsset(child)) {\n            if (! headChildrenHtmlLookup.includes(child.outerHTML)) {\n                if (isTracked(child)) {\n                    if (ifTheQueryStringChangedSinceLastRequest(child, children)) {\n                        setTimeout(() => window.location.reload())\n                    }\n                }\n\n                if (isScript(child)) {\n                    try {\n                        remoteScriptsPromises.push(\n                            injectScriptTagAndWaitForItToFullyLoad(\n                                cloneScriptTag(child)\n                            )\n                        )\n                    } catch (error) {\n                        // Let's eat any promise rejects so that we don't\n                        // break the rest of the Alpine intializing...\n                        // Any errors triggered by adding the script tag to the page\n                        // will still be thrown...\n                    }\n                } else {\n                    document.head.appendChild(child)\n                }\n            } else {\n                garbageCollector.appendChild(child)\n            }\n\n            touchedHeadElements.push(child)\n        }\n    }\n\n    // Remove any assets that aren't on the new page...\n    // @todo: Re-enable this code and find a better way to managed injected stylesheets. See livewire/livewire#6824\n    // for (let child of Array.from(document.head.children)) {\n    //     if (isAsset(child)) {\n    //         if (! touchedHeadElements.some(i => i.outerHTML === child.outerHTML)) {\n    //             child.remove()\n    //         }\n    //     }\n    // }\n\n    // How to free up the garbage collector?\n\n    // Remove existing non-asset elements like meta, base, title, template.\n    for (let child of Array.from(document.head.children)) {\n        if (! isAsset(child)) child.remove()\n    }\n\n    // Add new non-asset elements left over in the new head element.\n    for (let child of Array.from(newHead.children)) {\n        document.head.appendChild(child)\n    }\n\n    return Promise.all(remoteScriptsPromises)\n}\n\nasync function injectScriptTagAndWaitForItToFullyLoad(script) {\n    return new Promise((resolve, reject) => {\n        // Script assets need to be loaded synchronously so that scripts have\n        // their global variables available...\n        if (script.src) {\n            script.onload = () => resolve()\n            script.onerror = () => reject()\n        } else {\n            resolve()\n        }\n\n        document.head.appendChild(script)\n    })\n}\n\nfunction cloneScriptTag(el) {\n    let script = document.createElement('script')\n\n    script.textContent = el.textContent\n    script.async = el.async\n\n    for (let attr of el.attributes) {\n        script.setAttribute(attr.name, attr.value)\n    }\n\n    return script\n}\n\nfunction isTracked(el) {\n    return el.hasAttribute('data-navigate-track')\n}\n\nfunction ifTheQueryStringChangedSinceLastRequest(el, currentHeadChildren) {\n    let [uri, queryString] = extractUriAndQueryString(el)\n\n    return currentHeadChildren.some(child => {\n        if (! isTracked(child)) return false\n\n        let [currentUri, currentQueryString] = extractUriAndQueryString(child)\n\n        // Only consider a data-navigate-track element changed if the query string has changed (not the URI)...\n        if (currentUri === uri && queryString !== currentQueryString) return true\n    })\n}\n\nfunction extractUriAndQueryString(el) {\n    let url = isScript(el) ? el.src : el.href\n\n    return url.split('?')\n}\n\nfunction isAsset(el) {\n    return (el.tagName.toLowerCase() === 'link' && el.getAttribute('rel').toLowerCase() === 'stylesheet')\n        || el.tagName.toLowerCase() === 'style'\n        || el.tagName.toLowerCase() === 'script'\n}\n\nfunction isScript(el)   {\n    return el.tagName.toLowerCase() === 'script'\n}\n\nfunction simpleHash(str) {\n    return str.split('').reduce((a, b) => {\n        a = ((a << 5) - a) + b.charCodeAt(0)\n\n        return a & a\n    }, 0);\n}\n\nfunction ignoreAttributes(subject, attributesToRemove) {\n    let result = subject\n\n    attributesToRemove.forEach(attr => {\n        // Create a regex pattern to match the attribute and its value.\n        // The regex handles attributes that have values surrounded by either single or double quotes.\n        const regex = new RegExp(`${attr}=\"[^\"]*\"|${attr}='[^']*'`, 'g')\n\n        result = result.replace(regex, '')\n    })\n\n    // Remove all whitespace to make things less flaky...\n    result = result.replaceAll(' ', '')\n\n    return result.trim()\n}\n", "import { updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks, updateUrlAndStoreLatestHtmlForFutureBackButtons, whenTheBackOrForwardButtonIsClicked } from \"./history\"\nimport { getPretchedHtmlOr, prefetchHtml, storeThePrefetchedHtmlForWhenALinkIsClicked } from \"./prefetch\"\nimport { createUrlObjectFromString, extractDestinationFromLink, whenThisLinkIsHoveredFor, whenThisLinkIsPressed } from \"./links\"\nimport { isTeleportTarget, packUpPersistedTeleports, removeAnyLeftOverStaleTeleportTargets, unPackPersistedTeleports } from \"./teleport\"\nimport { restoreScrollPositionOrScrollToTop, storeScrollInformationInHtmlBeforeNavigatingAway } from \"./scroll\"\nimport { isPersistedElement, putPersistantElementsBack, storePersistantElementsForLater } from \"./persist\"\nimport { finishAndHideProgressBar, showAndStartProgressBar } from \"./bar\"\nimport { swapCurrentPageWithNewHtml } from \"./page\"\nimport { fetchHtml } from \"./fetch\"\n\nlet enablePersist = true\nlet showProgressBar = true\nlet restoreScroll = true\nlet autofocus = false\n\nexport default function (Alpine) {\n    Alpine.navigate = (url) => {\n        navigateTo(\n            createUrlObjectFromString(url)\n        )\n    }\n\n    Alpine.navigate.disableProgressBar = () => {\n        showProgressBar = false\n    }\n\n    Alpine.addInitSelector(() => `[${Alpine.prefixed('navigate')}]`)\n\n    Alpine.directive('navigate', (el, { modifiers }) => {\n        let shouldPrefetchOnHover = modifiers.includes('hover')\n\n        shouldPrefetchOnHover && whenThisLinkIsHoveredFor(el, 60, () => {\n            let destination = extractDestinationFromLink(el)\n\n            prefetchHtml(destination, (html, finalDestination) => {\n                storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination)\n            })\n        })\n\n        whenThisLinkIsPressed(el, (whenItIsReleased) => {\n            let destination = extractDestinationFromLink(el)\n\n            prefetchHtml(destination, (html, finalDestination) => {\n                storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination)\n            })\n\n            whenItIsReleased(() => {\n                navigateTo(destination)\n            })\n        })\n    })\n\n    function navigateTo(destination) {\n        showProgressBar && showAndStartProgressBar()\n\n        fetchHtmlOrUsePrefetchedHtml(destination, (html, finalDestination) => {\n            fireEventForOtherLibariesToHookInto('alpine:navigating')\n\n            restoreScroll && storeScrollInformationInHtmlBeforeNavigatingAway()\n\n            showProgressBar && finishAndHideProgressBar()\n\n            cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement()\n\n            updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks()\n\n            preventAlpineFromPickingUpDomChanges(Alpine, andAfterAllThis => {\n                enablePersist && storePersistantElementsForLater(persistedEl => {\n                    packUpPersistedTeleports(persistedEl)\n                })\n\n                swapCurrentPageWithNewHtml(html, (afterNewScriptsAreDoneLoading) => {\n                    removeAnyLeftOverStaleTeleportTargets(document.body)\n\n                    enablePersist && putPersistantElementsBack((persistedEl, newStub) => {\n                        unPackPersistedTeleports(persistedEl)\n                    })\n\n                    restoreScrollPositionOrScrollToTop()\n\n                    updateUrlAndStoreLatestHtmlForFutureBackButtons(html, finalDestination)\n\n                    fireEventForOtherLibariesToHookInto('alpine:navigated')\n\n                    afterNewScriptsAreDoneLoading(() => {\n                        andAfterAllThis(() => {\n                            setTimeout(() => {\n                                autofocus && autofocusElementsWithTheAutofocusAttribute()\n                            })\n\n                            nowInitializeAlpineOnTheNewPage(Alpine)\n                        })\n                    })\n                })\n            })\n        })\n    }\n\n    whenTheBackOrForwardButtonIsClicked((html) => {\n        // @todo: see if there's a way to update the current HTML BEFORE\n        // the back button is hit, and not AFTER:\n        storeScrollInformationInHtmlBeforeNavigatingAway()\n        // updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks()\n\n        preventAlpineFromPickingUpDomChanges(Alpine, andAfterAllThis => {\n            enablePersist && storePersistantElementsForLater(persistedEl => {\n                packUpPersistedTeleports(persistedEl)\n            })\n\n            swapCurrentPageWithNewHtml(html, () => {\n                removeAnyLeftOverStaleTeleportTargets(document.body)\n\n                enablePersist && putPersistantElementsBack((persistedEl, newStub) => {\n                    unPackPersistedTeleports(persistedEl)\n                })\n\n                restoreScrollPositionOrScrollToTop()\n\n                fireEventForOtherLibariesToHookInto('alpine:navigated')\n\n                andAfterAllThis(() => {\n                    autofocus && autofocusElementsWithTheAutofocusAttribute()\n\n                    nowInitializeAlpineOnTheNewPage(Alpine)\n                })\n            })\n\n        })\n    })\n\n    // Because DOMContentLoaded is fired on first load,\n    // we should fire alpine:navigated as a replacement as well...\n    setTimeout(() => {\n        fireEventForOtherLibariesToHookInto('alpine:navigated')\n    })\n}\n\nfunction fetchHtmlOrUsePrefetchedHtml(fromDestination, callback) {\n    getPretchedHtmlOr(fromDestination, callback, () => {\n        fetchHtml(fromDestination, callback)\n    })\n}\n\nfunction preventAlpineFromPickingUpDomChanges(Alpine, callback) {\n    Alpine.stopObservingMutations()\n\n    callback((afterAllThis) => {\n        Alpine.startObservingMutations()\n\n        queueMicrotask(() => {\n            afterAllThis()\n        })\n    })\n}\n\nfunction fireEventForOtherLibariesToHookInto(eventName) {\n    document.dispatchEvent(new CustomEvent(eventName, { bubbles: true }))\n}\n\nfunction nowInitializeAlpineOnTheNewPage(Alpine) {\n    Alpine.initTree(document.body, undefined, (el, skip) => {\n        if (el._x_wasPersisted) skip()\n    })\n}\n\nfunction autofocusElementsWithTheAutofocusAttribute() {\n    document.querySelector('[autofocus]') && document.querySelector('[autofocus]').focus()\n}\n\nfunction cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement() {\n    // Create a new tree walker that skips persisted elements...\n    let walker = function (root, callback) {\n        Alpine.walk(root, (el, skip) => {\n            if (isPersistedElement(el)) skip()\n            if (isTeleportTarget(el)) skip()\n            else callback(el, skip)\n        })\n    }\n\n    // Set Alpine in motion to destroy itself on the page. If this proves\n    // to be a performance issue at some point (walking the DOM tree),\n    // we can be more surgical about cleaning up x-for/if instead...\n    Alpine.destroyTree(document.body, walker)\n}\n", "import { isObjecty } from \"@/utils\"\n\nexport default function history(Alpine) {\n    Alpine.magic('queryString', (el, { interceptor }) =>  {\n        let alias\n        let alwaysShow = false\n        let usePush = false\n\n        return interceptor((initialSeedValue, getter, setter, path, key) => {\n            let queryKey = alias || path\n\n            let { initial, replace, push, pop } = track(queryKey, initialSeedValue, alwaysShow)\n\n            setter(initial)\n\n            if (! usePush) {\n                Alpine.effect(() => replace(getter()))\n            } else {\n                Alpine.effect(() => push(getter()))\n\n                pop(async newValue => {\n                    setter(newValue)\n\n                    let tillTheEndOfTheMicrotaskQueue = () => Promise.resolve()\n\n                    await tillTheEndOfTheMicrotaskQueue() // ...so that we preserve the internal lock...\n                })\n            }\n\n            return initial\n        }, func => {\n            func.alwaysShow = () => { alwaysShow = true; return func }\n            func.usePush = () => { usePush = true; return func }\n            func.as = key => { alias = key; return func }\n        })\n    })\n\n    Alpine.history = { track }\n}\n\nexport function track(name, initialSeedValue, alwaysShow = false) {\n    let { has, get, set, remove } = queryStringUtils()\n\n    let url = new URL(window.location.href)\n    let isInitiallyPresentInUrl = has(url, name)\n    let initialValue = isInitiallyPresentInUrl ? get(url, name) : initialSeedValue\n    let initialValueMemo = JSON.stringify(initialValue)\n    let hasReturnedToInitialValue = (newValue) => JSON.stringify(newValue) === initialValueMemo\n\n    if (alwaysShow) url = set(url, name, initialValue)\n\n    replace(url, name, { value: initialValue })\n\n    let lock = false\n\n    let update = (strategy, newValue) => {\n        if (lock) return\n\n        let url = new URL(window.location.href)\n\n        // This block of code is what needs to be changed for this failing test to pass:\n        if (! alwaysShow && ! isInitiallyPresentInUrl && hasReturnedToInitialValue(newValue)) {\n            url = remove(url, name)\n        // This is so that when deeply nested values are tracked, but their parent array/object\n        // is removed, we can handle it gracefully by removing the entry from the URL instead\n        // of letting it get set to `?someKey=undefined` which causes issues on refresh...\n        } else if (newValue === undefined) {\n            url = remove(url, name)\n        } else {\n            url = set(url, name, newValue)\n        }\n\n        // Right now, the above block, checks a few conditions and updates/removes an entry from the query string.\n        // The new strategy needs to be something like:\n        // - If \"alwaysShow\" is toggled on, then just \"set\" the whole thing with no deep diff\n        // - Otherwise, run a deep comparison callback (given the original value and new value).\n        //   - The callback recieves two params (leaf name and value)\n        //   - Check leaf name and value for existance in the original URL from page load. If it's there, just call \"set\"\n        //   - Check leaf name and value for equivelance to original name and value, if equal, call \"remove\", otherwise, \"set\"\n\n        // That code will look something like this:\n\n        // if (alwaysShow) {\n        //     set(url, name, newValue)\n        // } else {\n        //     deepCompare(name, newValue, originalValue, (leafName, leafValue) => {\n        //         // ....\n        //     })\n        // }\n\n        strategy(url, name, { value: newValue})\n    }\n\n    return {\n        initial: initialValue,\n\n        replace(newValue) { // Update via replaceState...\n            update(replace, newValue)\n        },\n\n        push(newValue) { // Update via pushState...\n            update(push, newValue)\n        },\n\n        pop(receiver) { // \"popstate\" handler...\n            let handler = (e) => {\n                if (! e.state || ! e.state.alpine) return\n\n                Object.entries(e.state.alpine).forEach(([iName, { value: newValue }]) => {\n                    if (iName !== name) return\n\n                    lock = true\n\n                    // Allow the \"receiver\" to be an async function in case a non-syncronous\n                    // operation (like an ajax) requests needs to happen while preserving\n                    // the \"locking\" mechanism (\"lock = true\" in this case)...\n                    let result = receiver(newValue)\n\n                    if (result instanceof Promise) {\n                        result.finally(() => lock = false)\n                    } else {\n                        lock = false\n                    }\n                })\n            }\n\n            window.addEventListener('popstate', handler)\n\n            return () => window.removeEventListener('popstate', handler)\n        }\n    }\n}\n\nfunction replace(url, key, object) {\n    let state = window.history.state || {}\n\n    if (! state.alpine) state.alpine = {}\n\n    state.alpine[key] = unwrap(object)\n\n    window.history.replaceState(state, '', url.toString())\n}\n\nfunction push(url, key, object) {\n    let state = window.history.state || {}\n\n    if (! state.alpine) state.alpine = {}\n\n    state = { alpine: {...state.alpine, ...{[key]: unwrap(object)}} }\n\n    window.history.pushState(state, '', url.toString())\n}\n\nfunction unwrap(object) {\n    if (object === undefined) return undefined\n\n    return JSON.parse(JSON.stringify(object))\n}\n\nfunction queryStringUtils() {\n    return {\n        has(url, key) {\n            let search = url.search\n\n            if (! search) return false\n\n            let data = fromQueryString(search)\n\n            return Object.keys(data).includes(key)\n        },\n        get(url, key) {\n            let search = url.search\n\n            if (! search) return false\n\n            let data = fromQueryString(search)\n\n            return data[key]\n        },\n        set(url, key, value) {\n            let data = fromQueryString(url.search)\n\n            data[key] = stripNulls(unwrap(value))\n\n            url.search = toQueryString(data)\n\n            return url\n        },\n        remove(url, key) {\n            let data = fromQueryString(url.search)\n\n            delete data[key]\n\n            url.search = toQueryString(data)\n\n            return url\n        },\n    }\n}\n\nfunction stripNulls(value) {\n    if (! isObjecty(value)) return value\n\n    for (let key in value) {\n        if (value[key] === null) delete value[key]\n        else value[key] = stripNulls(value[key])\n    }\n\n    return value\n}\n\n// This function converts JavaScript data to bracketed query string notation...\n// { items: [['foo']] } -> \"items[0][0]=foo\"\nfunction toQueryString(data) {\n    let isObjecty = (subject) => typeof subject === 'object' && subject !== null\n\n    let buildQueryStringEntries = (data, entries = {}, baseKey = '') => {\n        Object.entries(data).forEach(([iKey, iValue]) => {\n            let key = baseKey === '' ? iKey : `${baseKey}[${iKey}]`\n\n            if (iValue === null) {\n                entries[key] = '';\n            } else if (! isObjecty(iValue)) {\n                entries[key] = encodeURIComponent(iValue)\n                    .replaceAll('%20', '+') // Conform to RFC1738\n                    .replaceAll('%2C', ',')\n            } else {\n                entries = {...entries, ...buildQueryStringEntries(iValue, entries, key)}\n            }\n        })\n\n        return entries\n    }\n\n    let entries = buildQueryStringEntries(data)\n\n    return Object.entries(entries).map(([key, value]) => `${key}=${value}`).join('&')\n}\n\n// This function converts bracketed query string notation back to JS data...\n// \"items[0][0]=foo\" -> { items: [['foo']] }\nfunction fromQueryString(search) {\n    search = search.replace('?', '')\n\n    if (search === '') return {}\n\n    let insertDotNotatedValueIntoData = (key, value, data) => {\n        let [first, second, ...rest] = key.split('.')\n\n        // We're at a leaf node, let's make the assigment...\n        if (! second) return data[key] = value\n\n        // This is where we fill in empty arrays/objects allong the way to the assigment...\n        if (data[first] === undefined) {\n            data[first] = isNaN(second) ? {} : []\n        }\n\n        // Keep deferring assignment until the full key is built up...\n        insertDotNotatedValueIntoData([second, ...rest].join('.'), value, data[first])\n    }\n\n    let entries = search.split('&').map(i => i.split('='))\n\n    // let data = {} creates a security (XSS) vulnerability here. We need to use\n    // Object.create(null) instead so that we have a \"pure\" object that doesnt\n    // inherit Object.prototype and expose the js internals to manipulation.\n    let data = Object.create(null)\n\n    entries.forEach(([key, value]) => {\n        value = decodeURIComponent(value.replaceAll('+', '%20'))\n\n        if (! key.includes('[')) {\n            data[key] = value\n        } else {\n            // Convert to dot notation because it's easier...\n            let dotNotatedKey = key.replaceAll('[', '.').replaceAll(']', '')\n\n            insertDotNotatedValueIntoData(dotNotatedKey, value, data)\n        }\n    })\n\n    return data\n}\n", "// packages/morph/src/morph.js\nfunction morph(from, toHtml, options) {\n  monkeyPatchDomSetAttributeToAllowAtSymbols();\n  let fromEl;\n  let toEl;\n  let key, lookahead, updating, updated, removing, removed, adding, added;\n  function assignOptions(options2 = {}) {\n    let defaultGetKey = (el) => el.getAttribute(\"key\");\n    let noop = () => {\n    };\n    updating = options2.updating || noop;\n    updated = options2.updated || noop;\n    removing = options2.removing || noop;\n    removed = options2.removed || noop;\n    adding = options2.adding || noop;\n    added = options2.added || noop;\n    key = options2.key || defaultGetKey;\n    lookahead = options2.lookahead || false;\n  }\n  function patch(from2, to) {\n    if (differentElementNamesTypesOrKeys(from2, to)) {\n      return swapElements(from2, to);\n    }\n    let updateChildrenOnly = false;\n    if (shouldSkip(updating, from2, to, () => updateChildrenOnly = true))\n      return;\n    if (from2.nodeType === 1 && window.Alpine) {\n      window.Alpine.cloneNode(from2, to);\n    }\n    if (textOrComment(to)) {\n      patchNodeValue(from2, to);\n      updated(from2, to);\n      return;\n    }\n    if (!updateChildrenOnly) {\n      patchAttributes(from2, to);\n    }\n    updated(from2, to);\n    patchChildren(from2, to);\n  }\n  function differentElementNamesTypesOrKeys(from2, to) {\n    return from2.nodeType != to.nodeType || from2.nodeName != to.nodeName || getKey(from2) != getKey(to);\n  }\n  function swapElements(from2, to) {\n    if (shouldSkip(removing, from2))\n      return;\n    let toCloned = to.cloneNode(true);\n    if (shouldSkip(adding, toCloned))\n      return;\n    from2.replaceWith(toCloned);\n    removed(from2);\n    added(toCloned);\n  }\n  function patchNodeValue(from2, to) {\n    let value = to.nodeValue;\n    if (from2.nodeValue !== value) {\n      from2.nodeValue = value;\n    }\n  }\n  function patchAttributes(from2, to) {\n    if (from2._x_transitioning)\n      return;\n    if (from2._x_isShown && !to._x_isShown) {\n      return;\n    }\n    if (!from2._x_isShown && to._x_isShown) {\n      return;\n    }\n    let domAttributes = Array.from(from2.attributes);\n    let toAttributes = Array.from(to.attributes);\n    for (let i = domAttributes.length - 1; i >= 0; i--) {\n      let name = domAttributes[i].name;\n      if (!to.hasAttribute(name)) {\n        from2.removeAttribute(name);\n      }\n    }\n    for (let i = toAttributes.length - 1; i >= 0; i--) {\n      let name = toAttributes[i].name;\n      let value = toAttributes[i].value;\n      if (from2.getAttribute(name) !== value) {\n        from2.setAttribute(name, value);\n      }\n    }\n  }\n  function patchChildren(from2, to) {\n    if (from2._x_teleport)\n      from2 = from2._x_teleport;\n    if (to._x_teleport)\n      to = to._x_teleport;\n    let fromKeys = keyToMap(from2.children);\n    let fromKeyHoldovers = {};\n    let currentTo = getFirstNode(to);\n    let currentFrom = getFirstNode(from2);\n    while (currentTo) {\n      seedingMatchingId(currentTo, currentFrom);\n      let toKey = getKey(currentTo);\n      let fromKey = getKey(currentFrom);\n      if (!currentFrom) {\n        if (toKey && fromKeyHoldovers[toKey]) {\n          let holdover = fromKeyHoldovers[toKey];\n          from2.appendChild(holdover);\n          currentFrom = holdover;\n        } else {\n          if (!shouldSkip(adding, currentTo)) {\n            let clone = currentTo.cloneNode(true);\n            from2.appendChild(clone);\n            added(clone);\n          }\n          currentTo = getNextSibling(to, currentTo);\n          continue;\n        }\n      }\n      let isIf = (node) => node && node.nodeType === 8 && node.textContent === \"[if BLOCK]><![endif]\";\n      let isEnd = (node) => node && node.nodeType === 8 && node.textContent === \"[if ENDBLOCK]><![endif]\";\n      if (isIf(currentTo) && isIf(currentFrom)) {\n        let nestedIfCount = 0;\n        let fromBlockStart = currentFrom;\n        while (currentFrom) {\n          let next = getNextSibling(from2, currentFrom);\n          if (isIf(next)) {\n            nestedIfCount++;\n          } else if (isEnd(next) && nestedIfCount > 0) {\n            nestedIfCount--;\n          } else if (isEnd(next) && nestedIfCount === 0) {\n            currentFrom = next;\n            break;\n          }\n          currentFrom = next;\n        }\n        let fromBlockEnd = currentFrom;\n        nestedIfCount = 0;\n        let toBlockStart = currentTo;\n        while (currentTo) {\n          let next = getNextSibling(to, currentTo);\n          if (isIf(next)) {\n            nestedIfCount++;\n          } else if (isEnd(next) && nestedIfCount > 0) {\n            nestedIfCount--;\n          } else if (isEnd(next) && nestedIfCount === 0) {\n            currentTo = next;\n            break;\n          }\n          currentTo = next;\n        }\n        let toBlockEnd = currentTo;\n        let fromBlock = new Block(fromBlockStart, fromBlockEnd);\n        let toBlock = new Block(toBlockStart, toBlockEnd);\n        patchChildren(fromBlock, toBlock);\n        continue;\n      }\n      if (currentFrom.nodeType === 1 && lookahead && !currentFrom.isEqualNode(currentTo)) {\n        let nextToElementSibling = getNextSibling(to, currentTo);\n        let found = false;\n        while (!found && nextToElementSibling) {\n          if (nextToElementSibling.nodeType === 1 && currentFrom.isEqualNode(nextToElementSibling)) {\n            found = true;\n            currentFrom = addNodeBefore(from2, currentTo, currentFrom);\n            fromKey = getKey(currentFrom);\n          }\n          nextToElementSibling = getNextSibling(to, nextToElementSibling);\n        }\n      }\n      if (toKey !== fromKey) {\n        if (!toKey && fromKey) {\n          fromKeyHoldovers[fromKey] = currentFrom;\n          currentFrom = addNodeBefore(from2, currentTo, currentFrom);\n          fromKeyHoldovers[fromKey].remove();\n          currentFrom = getNextSibling(from2, currentFrom);\n          currentTo = getNextSibling(to, currentTo);\n          continue;\n        }\n        if (toKey && !fromKey) {\n          if (fromKeys[toKey]) {\n            currentFrom.replaceWith(fromKeys[toKey]);\n            currentFrom = fromKeys[toKey];\n          }\n        }\n        if (toKey && fromKey) {\n          let fromKeyNode = fromKeys[toKey];\n          if (fromKeyNode) {\n            fromKeyHoldovers[fromKey] = currentFrom;\n            currentFrom.replaceWith(fromKeyNode);\n            currentFrom = fromKeyNode;\n          } else {\n            fromKeyHoldovers[fromKey] = currentFrom;\n            currentFrom = addNodeBefore(from2, currentTo, currentFrom);\n            fromKeyHoldovers[fromKey].remove();\n            currentFrom = getNextSibling(from2, currentFrom);\n            currentTo = getNextSibling(to, currentTo);\n            continue;\n          }\n        }\n      }\n      let currentFromNext = currentFrom && getNextSibling(from2, currentFrom);\n      patch(currentFrom, currentTo);\n      currentTo = currentTo && getNextSibling(to, currentTo);\n      currentFrom = currentFromNext;\n    }\n    let removals = [];\n    while (currentFrom) {\n      if (!shouldSkip(removing, currentFrom))\n        removals.push(currentFrom);\n      currentFrom = getNextSibling(from2, currentFrom);\n    }\n    while (removals.length) {\n      let domForRemoval = removals.shift();\n      domForRemoval.remove();\n      removed(domForRemoval);\n    }\n  }\n  function getKey(el) {\n    return el && el.nodeType === 1 && key(el);\n  }\n  function keyToMap(els) {\n    let map = {};\n    for (let el of els) {\n      let theKey = getKey(el);\n      if (theKey) {\n        map[theKey] = el;\n      }\n    }\n    return map;\n  }\n  function addNodeBefore(parent, node, beforeMe) {\n    if (!shouldSkip(adding, node)) {\n      let clone = node.cloneNode(true);\n      parent.insertBefore(clone, beforeMe);\n      added(clone);\n      return clone;\n    }\n    return node;\n  }\n  assignOptions(options);\n  fromEl = from;\n  toEl = typeof toHtml === \"string\" ? createElement(toHtml) : toHtml;\n  if (window.Alpine && window.Alpine.closestDataStack && !from._x_dataStack) {\n    toEl._x_dataStack = window.Alpine.closestDataStack(from);\n    toEl._x_dataStack && window.Alpine.cloneNode(from, toEl);\n  }\n  patch(from, toEl);\n  fromEl = void 0;\n  toEl = void 0;\n  return from;\n}\nmorph.step = () => {\n};\nmorph.log = () => {\n};\nfunction shouldSkip(hook, ...args) {\n  let skip = false;\n  hook(...args, () => skip = true);\n  return skip;\n}\nvar patched = false;\nfunction createElement(html) {\n  const template = document.createElement(\"template\");\n  template.innerHTML = html;\n  return template.content.firstElementChild;\n}\nfunction textOrComment(el) {\n  return el.nodeType === 3 || el.nodeType === 8;\n}\nvar Block = class {\n  constructor(start, end) {\n    this.startComment = start;\n    this.endComment = end;\n  }\n  get children() {\n    let children = [];\n    let currentNode = this.startComment.nextSibling;\n    while (currentNode && currentNode !== this.endComment) {\n      children.push(currentNode);\n      currentNode = currentNode.nextSibling;\n    }\n    return children;\n  }\n  appendChild(child) {\n    this.endComment.before(child);\n  }\n  get firstChild() {\n    let first = this.startComment.nextSibling;\n    if (first === this.endComment)\n      return;\n    return first;\n  }\n  nextNode(reference) {\n    let next = reference.nextSibling;\n    if (next === this.endComment)\n      return;\n    return next;\n  }\n  insertBefore(newNode, reference) {\n    reference.before(newNode);\n    return newNode;\n  }\n};\nfunction getFirstNode(parent) {\n  return parent.firstChild;\n}\nfunction getNextSibling(parent, reference) {\n  let next;\n  if (parent instanceof Block) {\n    next = parent.nextNode(reference);\n  } else {\n    next = reference.nextSibling;\n  }\n  return next;\n}\nfunction monkeyPatchDomSetAttributeToAllowAtSymbols() {\n  if (patched)\n    return;\n  patched = true;\n  let original = Element.prototype.setAttribute;\n  let hostDiv = document.createElement(\"div\");\n  Element.prototype.setAttribute = function newSetAttribute(name, value) {\n    if (!name.includes(\"@\")) {\n      return original.call(this, name, value);\n    }\n    hostDiv.innerHTML = `<span ${name}=\"${value}\"></span>`;\n    let attr = hostDiv.firstElementChild.getAttributeNode(name);\n    hostDiv.firstElementChild.removeAttributeNode(attr);\n    this.setAttributeNode(attr);\n  };\n}\nfunction seedingMatchingId(to, from) {\n  let fromId = from && from._x_bindings && from._x_bindings.id;\n  if (!fromId)\n    return;\n  to.setAttribute(\"id\", fromId);\n  to.id = fromId;\n}\n\n// packages/morph/src/index.js\nfunction src_default(Alpine) {\n  Alpine.morph = morph;\n}\n\n// packages/morph/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as morph\n};\n", "// packages/mask/src/index.js\nfunction src_default(Alpine) {\n  Alpine.directive(\"mask\", (el, { value, expression }, { effect, evaluateLater, cleanup }) => {\n    let templateFn = () => expression;\n    let lastInputValue = \"\";\n    queueMicrotask(() => {\n      if ([\"function\", \"dynamic\"].includes(value)) {\n        let evaluator = evaluateLater(expression);\n        effect(() => {\n          templateFn = (input) => {\n            let result;\n            Alpine.dontAutoEvaluateFunctions(() => {\n              evaluator((value2) => {\n                result = typeof value2 === \"function\" ? value2(input) : value2;\n              }, { scope: {\n                // These are \"magics\" we'll make available to the x-mask:function:\n                \"$input\": input,\n                \"$money\": formatMoney.bind({ el })\n              } });\n            });\n            return result;\n          };\n          processInputValue(el, false);\n        });\n      } else {\n        processInputValue(el, false);\n      }\n      if (el._x_model)\n        el._x_model.set(el.value);\n    });\n    const controller = new AbortController();\n    cleanup(() => {\n      controller.abort();\n    });\n    el.addEventListener(\"input\", () => processInputValue(el), {\n      signal: controller.signal,\n      // Setting this as a capture phase listener to ensure it runs\n      // before wire:model or x-model added as a latent binding...\n      capture: true\n    });\n    el.addEventListener(\"blur\", () => processInputValue(el, false), { signal: controller.signal });\n    function processInputValue(el2, shouldRestoreCursor = true) {\n      let input = el2.value;\n      let template = templateFn(input);\n      if (!template || template === \"false\")\n        return false;\n      if (lastInputValue.length - el2.value.length === 1) {\n        return lastInputValue = el2.value;\n      }\n      let setInput = () => {\n        lastInputValue = el2.value = formatInput(input, template);\n      };\n      if (shouldRestoreCursor) {\n        restoreCursorPosition(el2, template, () => {\n          setInput();\n        });\n      } else {\n        setInput();\n      }\n    }\n    function formatInput(input, template) {\n      if (input === \"\")\n        return \"\";\n      let strippedDownInput = stripDown(template, input);\n      let rebuiltInput = buildUp(template, strippedDownInput);\n      return rebuiltInput;\n    }\n  }).before(\"model\");\n}\nfunction restoreCursorPosition(el, template, callback) {\n  let cursorPosition = el.selectionStart;\n  let unformattedValue = el.value;\n  callback();\n  let beforeLeftOfCursorBeforeFormatting = unformattedValue.slice(0, cursorPosition);\n  let newPosition = buildUp(\n    template,\n    stripDown(\n      template,\n      beforeLeftOfCursorBeforeFormatting\n    )\n  ).length;\n  el.setSelectionRange(newPosition, newPosition);\n}\nfunction stripDown(template, input) {\n  let inputToBeStripped = input;\n  let output = \"\";\n  let regexes = {\n    \"9\": /[0-9]/,\n    \"a\": /[a-zA-Z]/,\n    \"*\": /[a-zA-Z0-9]/\n  };\n  let wildcardTemplate = \"\";\n  for (let i = 0; i < template.length; i++) {\n    if ([\"9\", \"a\", \"*\"].includes(template[i])) {\n      wildcardTemplate += template[i];\n      continue;\n    }\n    for (let j = 0; j < inputToBeStripped.length; j++) {\n      if (inputToBeStripped[j] === template[i]) {\n        inputToBeStripped = inputToBeStripped.slice(0, j) + inputToBeStripped.slice(j + 1);\n        break;\n      }\n    }\n  }\n  for (let i = 0; i < wildcardTemplate.length; i++) {\n    let found = false;\n    for (let j = 0; j < inputToBeStripped.length; j++) {\n      if (regexes[wildcardTemplate[i]].test(inputToBeStripped[j])) {\n        output += inputToBeStripped[j];\n        inputToBeStripped = inputToBeStripped.slice(0, j) + inputToBeStripped.slice(j + 1);\n        found = true;\n        break;\n      }\n    }\n    if (!found)\n      break;\n  }\n  return output;\n}\nfunction buildUp(template, input) {\n  let clean = Array.from(input);\n  let output = \"\";\n  for (let i = 0; i < template.length; i++) {\n    if (![\"9\", \"a\", \"*\"].includes(template[i])) {\n      output += template[i];\n      continue;\n    }\n    if (clean.length === 0)\n      break;\n    output += clean.shift();\n  }\n  return output;\n}\nfunction formatMoney(input, delimiter = \".\", thousands, precision = 2) {\n  if (input === \"-\")\n    return \"-\";\n  if (/^\\D+$/.test(input))\n    return \"9\";\n  if (thousands === null || thousands === void 0) {\n    thousands = delimiter === \",\" ? \".\" : \",\";\n  }\n  let addThousands = (input2, thousands2) => {\n    let output = \"\";\n    let counter = 0;\n    for (let i = input2.length - 1; i >= 0; i--) {\n      if (input2[i] === thousands2)\n        continue;\n      if (counter === 3) {\n        output = input2[i] + thousands2 + output;\n        counter = 0;\n      } else {\n        output = input2[i] + output;\n      }\n      counter++;\n    }\n    return output;\n  };\n  let minus = input.startsWith(\"-\") ? \"-\" : \"\";\n  let strippedInput = input.replaceAll(new RegExp(`[^0-9\\\\${delimiter}]`, \"g\"), \"\");\n  let template = Array.from({ length: strippedInput.split(delimiter)[0].length }).fill(\"9\").join(\"\");\n  template = `${minus}${addThousands(template, thousands)}`;\n  if (precision > 0 && input.includes(delimiter))\n    template += `${delimiter}` + \"9\".repeat(precision);\n  queueMicrotask(() => {\n    if (this.el.value.endsWith(delimiter))\n      return;\n    if (this.el.value[this.el.selectionStart - 1] === delimiter) {\n      this.el.setSelectionRange(this.el.selectionStart - 1, this.el.selectionStart - 1);\n    }\n  });\n  return template;\n}\n\n// packages/mask/builds/module.js\nvar module_default = src_default;\nexport {\n  module_default as default,\n  src_default as mask,\n  stripDown\n};\n", "import { closestComponent, destroyComponent, initComponent } from './store'\nimport { matchesForLivewireDirective, extractDirective } from './directives'\nimport { trigger } from './hooks'\nimport collapse from '@alpinejs/collapse'\nimport focus from '@alpinejs/focus'\nimport persist from '@alpinejs/persist'\nimport intersect from '@alpinejs/intersect'\nimport anchor from '@alpinejs/anchor'\nimport navigate from './plugins/navigate'\nimport history from './plugins/history'\nimport morph from '@alpinejs/morph'\nimport mask from '@alpinejs/mask'\nimport Alpine from 'alpinejs'\nimport { dispatch } from './utils'\n\nexport function start() {\n    setTimeout(() => ensureLivewireScriptIsntMisplaced())\n\n    dispatch(document, 'livewire:init')\n    dispatch(document, 'livewire:initializing')\n\n    Alpine.plugin(morph)\n    Alpine.plugin(history)\n    Alpine.plugin(intersect)\n    Alpine.plugin(collapse)\n    Alpine.plugin(anchor)\n    Alpine.plugin(focus)\n    Alpine.plugin(persist)\n    Alpine.plugin(navigate)\n    Alpine.plugin(mask)\n\n    Alpine.addRootSelector(() => '[wire\\\\:id]')\n\n    Alpine.onAttributesAdded((el, attributes) => {\n        // if there are no \"wire:\" directives we don't need to process this element any further.\n        // This prevents Livewire from causing general slowness for other Alpine elements on the page...\n        if (! Array.from(attributes).some(attribute => matchesForLivewireDirective(attribute.name))) return\n\n        let component = closestComponent(el, false)\n\n        if (! component) return\n\n        attributes.forEach(attribute => {\n            if (! matchesForLivewireDirective(attribute.name)) return;\n\n            let directive = extractDirective(el, attribute.name)\n\n            trigger('directive.init', { el, component, directive, cleanup: (callback) => {\n                Alpine.onAttributeRemoved(el, directive.raw, callback)\n            } })\n        })\n    })\n\n    Alpine.interceptInit(\n        Alpine.skipDuringClone(el => {\n            // if there are no \"wire:\" directives we don't need to process this element any further.\n            // This prevents Livewire from causing general slowness for other Alpine elements on the page...\n            if (! Array.from(el.attributes).some(attribute => matchesForLivewireDirective(attribute.name))) return\n\n            if (el.hasAttribute('wire:id')) {\n                let component = initComponent(el)\n\n                Alpine.onAttributeRemoved(el, 'wire:id', () => {\n                    destroyComponent(component.id)\n                })\n            }\n\n            let component = closestComponent(el, false)\n\n            if (component) {\n                trigger('element.init', { el, component })\n\n                let directives = Array.from(el.getAttributeNames())\n                    .filter(name => matchesForLivewireDirective(name))\n                    .map(name => extractDirective(el, name))\n\n                directives.forEach(directive => {\n                    trigger('directive.init', { el, component, directive, cleanup: (callback) => {\n                        Alpine.onAttributeRemoved(el, directive.raw, callback)\n                    } })\n                })\n            }\n        })\n    )\n\n    Alpine.start()\n\n    setTimeout(() => window.Livewire.initialRenderIsFinished = true)\n\n    dispatch(document, 'livewire:initialized')\n}\n\nfunction ensureLivewireScriptIsntMisplaced() {\n    let el = document.querySelector('script[data-update-uri][data-csrf]')\n\n    // If there is no Livewire-injected script on the page, move on...\n    if (! el) return\n\n    // If there is, let's ensure it's at the top-level. If it's nested\n    // inside a normal element, that probably means that a closing\n    // tag was missing in the template and Chrome moved the tag.\n\n    // We're only checking for \"div\" here because it's quick and useful...\n    let livewireEl = el.closest('[wire\\\\:id]')\n\n    if (livewireEl) {\n        console.warn('Livewire: missing closing tags found. Ensure your template elements contain matching closing tags.', livewireEl)\n    }\n}\n", "import { getDirectives } from '@/directives'\nimport { on } from '@/hooks'\nimport Alpine from 'alpinejs'\n\nlet cleanupStackByComponentId = {}\n\n// Adding a setTimeout here so that these event listeners are\n// registered AFTER most other event listenrs, this way, we\n// can call \"stopPropagation\" for things like wire:confirm\non('element.init', ({ el, component }) => setTimeout(() => {\n    let directives = getDirectives(el)\n\n    if (directives.missing('submit')) return\n\n    // Set a forms \"disabled\" state on inputs and buttons.\n    // Livewire will clean it all up automatically when the form\n    // submission returns and the new DOM lacks these additions.\n    el.addEventListener('submit', () => {\n        cleanupStackByComponentId[component.id] = []\n\n        Alpine.walk(component.el, (node, skip) => {\n            if (! el.contains(node)) return\n\n            if (node.hasAttribute('wire:ignore')) return skip()\n\n            if (\n                // <button type=\"submit\">\n                (node.tagName.toLowerCase() === 'button' &&\n                    node.type === 'submit') ||\n                // <select>\n                node.tagName.toLowerCase() === 'select' ||\n                // <input type=\"checkbox|radio\">\n                (node.tagName.toLowerCase() === 'input' &&\n                    (node.type === 'checkbox' || node.type === 'radio'))\n            ) {\n                if (!node.disabled)\n                    cleanupStackByComponentId[component.id].push(\n                        () => (node.disabled = false)\n                    )\n\n                node.disabled = true\n            } else if (\n                // <input type=\"text\">\n                node.tagName.toLowerCase() === 'input' ||\n                // <textarea>\n                node.tagName.toLowerCase() === 'textarea'\n            ) {\n                if (!node.readOnly)\n                    cleanupStackByComponentId[component.id].push(\n                        () => (node.readOnly = false)\n                    )\n\n                node.readOnly = true\n            }\n        })\n    })\n}))\n\non('commit', ({ component, respond }) => {\n    respond(() => {\n        cleanup(component)\n    })\n})\n\nfunction cleanup(component) {\n    if (! cleanupStackByComponentId[component.id]) return\n\n    while (cleanupStackByComponentId[component.id].length > 0) {\n        cleanupStackByComponentId[component.id].shift()()\n    }\n}\n", "import { on } from '@/hooks'\n\n// Ensure that all child components with reactive props (even deeply nested)\n// are included in the network request...\non('commit.pooling', ({ commits }) => {\n    commits.forEach(commit => {\n        let component = commit.component\n\n        getDeepChildrenWithBindings(component, child => {\n            child.$wire.$commit()\n        })\n    })\n})\n\n// Ensure that related components are pooled together, even if they chose\n// to be isolated normally...\non('commit.pooled', ({ pools }) => {\n    let commits = getPooledCommits(pools)\n\n    commits.forEach(commit => {\n        let component = commit.component\n\n        getDeepChildrenWithBindings(component, child => {\n            colocateCommitsByComponent(pools, component, child)\n        })\n    })\n})\n\nfunction getPooledCommits(pools) {\n    let commits = []\n\n    pools.forEach(pool => {\n        pool.commits.forEach(commit => {\n            commits.push(commit)\n        })\n    })\n\n    return commits\n}\n\nfunction colocateCommitsByComponent(pools, component, foreignComponent) {\n    let pool = findPoolWithComponent(pools, component)\n\n    let foreignPool = findPoolWithComponent(pools, foreignComponent)\n\n    let foreignCommit = foreignPool.findCommitByComponent(foreignComponent)\n\n    // Delete needs to come before add in case there are the same pool...\n    foreignPool.delete(foreignCommit)\n\n    pool.add(foreignCommit)\n\n    // Cleanup empty pools...\n    pools.forEach(pool => {\n        if (pool.empty()) pools.delete(pool)\n    })\n}\n\nfunction findPoolWithComponent(pools, component) {\n    for (let [idx, pool] of pools.entries()) {\n        if (pool.hasCommitFor(component)) return pool\n    }\n}\n\nfunction getDeepChildrenWithBindings(component, callback) {\n    getDeepChildren(component, child => {\n        if (hasReactiveProps(child) || hasWireModelableBindings(child)) {\n            callback(child)\n        }\n    })\n}\n\nfunction hasReactiveProps(component) {\n    let meta = component.snapshot.memo\n    let props = meta.props\n\n    return !! props\n}\n\nfunction hasWireModelableBindings(component) {\n    let meta = component.snapshot.memo\n    let bindings = meta.bindings\n\n    return !! bindings\n}\n\nfunction getDeepChildren(component, callback) {\n    component.children.forEach(child => {\n        callback(child)\n\n        getDeepChildren(child, callback)\n    })\n}\n", "import { on } from '@/hooks'\nimport Alpine from 'alpinejs'\n\nlet executedScripts = new WeakMap\n\nlet executedAssets = new Set\n\non('payload.intercept', async ({ assets }) => {\n    if(! assets) return\n\n    for (let [key, asset] of Object.entries(assets)) {\n        await onlyIfAssetsHaventBeenLoadedAlreadyOnThisPage(key, async () => {\n            await addAssetsToHeadTagOfPage(asset)\n        })\n    }\n})\n\n// Assets that were injected into the HTML need to be registered so that\n// they aren't loaded again...\non('component.init', ({ component }) => {\n    let assets = component.snapshot.memo.assets\n\n    if (assets) {\n        assets.forEach((key) => {\n            if (executedAssets.has(key)) return\n            executedAssets.add(key)\n        })\n    }\n})\n\non('effect', ({ component, effects }) => {\n    let scripts = effects.scripts\n\n    if (scripts) {\n        Object.entries(scripts).forEach(([key, content]) => {\n            onlyIfScriptHasntBeenRunAlreadyForThisComponent(component, key, () => {\n                let scriptContent = extractScriptTagContent(content)\n\n                Alpine.dontAutoEvaluateFunctions(() => {\n                    Alpine.evaluate(component.el, scriptContent, { '$wire': component.$wire })\n                })\n            })\n        })\n    }\n})\n\nfunction onlyIfScriptHasntBeenRunAlreadyForThisComponent(component, key, callback) {\n    if (executedScripts.has(component)) {\n        let alreadyRunKeys = executedScripts.get(component)\n\n        if (alreadyRunKeys.includes(key)) return\n    }\n\n    callback()\n\n    if (! executedScripts.has(component)) executedScripts.set(component, [])\n\n    let alreadyRunKeys = executedScripts.get(component)\n\n    alreadyRunKeys.push(key)\n\n    executedScripts.set(component, alreadyRunKeys)\n}\n\nfunction extractScriptTagContent(rawHtml) {\n    let scriptRegex = /<script\\b[^>]*>([\\s\\S]*?)<\\/script>/gm\n    let matches = scriptRegex.exec(rawHtml)\n    let innards =  matches && matches[1] ? matches[1].trim() : ''\n\n    return innards\n}\n\nasync function onlyIfAssetsHaventBeenLoadedAlreadyOnThisPage(key, callback) {\n    if (executedAssets.has(key)) return\n\n    await callback()\n\n    executedAssets.add(key)\n}\n\nasync function addAssetsToHeadTagOfPage(rawHtml) {\n    let newDocument = (new DOMParser()).parseFromString(rawHtml, \"text/html\")\n    let newHead = document.adoptNode(newDocument.head)\n\n    for (let child of newHead.children) {\n        try {\n            await runAssetSynchronously(child)\n        } catch (error) {\n            // Let's eat any promise rejects so that we don't\n            // break the rest of Livewire's handling of the response...\n            // Any errors triggered by adding the script tag to the page\n            // will still be thrown...\n        }\n    }\n}\n\nasync function runAssetSynchronously(child) {\n    return new Promise((resolve, reject) => {\n        if (isScript(child)) {\n            let script = cloneScriptTag(child)\n\n            // Script assets need to be loaded synchronously so that scripts have\n            // their global variables available...\n            if (script.src) {\n                script.onload = () => resolve()\n                script.onerror = () => reject()\n            } else {\n                resolve()\n            }\n\n            document.head.appendChild(script)\n        } else {\n            document.head.appendChild(child)\n\n            resolve()\n        }\n    })\n}\n\nfunction isScript(el)   {\n    return el.tagName.toLowerCase() === 'script'\n}\n\nfunction cloneScriptTag(el) {\n    let script = document.createElement('script')\n\n    script.textContent = el.textContent\n    script.async = el.async\n\n    for (let attr of el.attributes) {\n        script.setAttribute(attr.name, attr.value)\n    }\n\n    return script\n}\n", "import { on } from '@/hooks'\n\non('commit', ({ succeed }) => {\n    succeed(({ effects }) => {\n        let download = effects.download\n\n        if (! download) return\n\n        // We need to use window.webkitURL so downloads work on iOS Safari.\n        let urlObject = window.webkitURL || window.URL\n\n        let url = urlObject.createObjectURL(\n            base64toBlob(download.content, download.contentType)\n        )\n\n        let invisibleLink = document.createElement('a')\n\n        invisibleLink.style.display = 'none'\n        invisibleLink.href = url\n        invisibleLink.download = download.name\n\n        document.body.appendChild(invisibleLink)\n\n        invisibleLink.click()\n\n        setTimeout(function() {\n            urlObject.revokeObjectURL(url)\n        }, 0);\n    })\n})\n\nfunction base64toBlob(b64Data, contentType = '', sliceSize = 512) {\n    const byteCharacters = atob(b64Data)\n    const byteArrays = []\n\n    if (contentType === null) contentType = ''\n\n    for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {\n        let slice = byteCharacters.slice(offset, offset + sliceSize)\n\n        let byteNumbers = new Array(slice.length)\n\n        for (let i = 0; i < slice.length; i++) {\n            byteNumbers[i] = slice.charCodeAt(i)\n        }\n\n        let byteArray = new Uint8Array(byteNumbers)\n\n        byteArrays.push(byteArray)\n    }\n\n    return new Blob(byteArrays, { type: contentType });\n}\n", "import { overrideMethod } from '@/$wire'\nimport { on } from '@/hooks'\nimport Alpine from 'alpinejs'\n\non('effect', ({ component, effects }) => {\n    let js = effects.js\n    let xjs = effects.xjs\n\n    if (js) {\n        Object.entries(js).forEach(([method, body]) => {\n            overrideMethod(component, method, () => {\n                Alpine.evaluate(component.el, body)\n            })\n        })\n    }\n\n    if (xjs) {\n        xjs.forEach(expression => {\n            Alpine.evaluate(component.el, expression)\n        })\n    }\n})\n\n", "import { on } from '@/hooks'\n\nlet componentsThatWantToBeBundled = new WeakSet\n\nlet componentsThatAreLazy = new WeakSet\n\non('component.init', ({ component }) => {\n    let memo = component.snapshot.memo\n\n    // We only care about lazy components...\n    if (memo.lazyLoaded === undefined) return\n\n    componentsThatAreLazy.add(component)\n\n    // The component doesn't want its lazy load to be an isolated request\n    // then we'll mark it to detect at \"pool\" time to make sure it gets bundled...\n    if (memo.lazyIsolated !== undefined && memo.lazyIsolated === false) {\n        componentsThatWantToBeBundled.add(component)\n    }\n})\n\non('commit.pooling', ({ commits }) => {\n    commits.forEach(commit => {\n        // We only care about lazy components...\n        if (! componentsThatAreLazy.has(commit.component)) return\n\n        if (componentsThatWantToBeBundled.has(commit.component)) {\n            commit.isolate = false\n\n            componentsThatWantToBeBundled.delete(commit.component)\n        } else {\n            commit.isolate = true\n        }\n\n        // Component is no longer lazy after the first full request, so remove it...\n        componentsThatAreLazy.delete(commit.component)\n    })\n})\n", "import { on } from '@/hooks'\nimport { dataGet } from '@/utils'\nimport Alpine from 'alpinejs'\nimport { track } from '@/plugins/history'\n\non('effect', ({ component, effects, cleanup }) => {\n    let queryString = effects['url']\n\n    if (! queryString) return\n\n    Object.entries(queryString).forEach(([key, value]) => {\n        let { name, as, use, alwaysShow, except } = normalizeQueryStringEntry(key, value)\n\n        if (! as) as = name\n\n        let initialValue = [false, null, undefined].includes(except) ? dataGet(component.ephemeral, name) : except\n\n        let { replace, push, pop } = track(as, initialValue, alwaysShow)\n\n        if (use === 'replace') {\n            let effectReference = Alpine.effect(() => {\n                replace(dataGet(component.reactive, name))\n            })\n\n            cleanup(() => Alpine.release(effectReference))\n        } else if (use === 'push') {\n            let forgetCommitHandler = on('commit', ({ component: commitComponent, succeed }) => {\n                if (component !== commitComponent) return\n\n                let beforeValue = dataGet(component.canonical, name)\n\n                succeed(() => {\n                    let afterValue = dataGet(component.canonical, name)\n\n                    if (JSON.stringify(beforeValue) === JSON.stringify(afterValue)) return\n\n                    push(afterValue)\n                })\n            })\n\n            let forgetPopHandler = pop(async newValue => {\n                await component.$wire.set(name, newValue)\n\n                // @todo: this is the absolute worst thing ever I'm so sorry this needs to be refactored stat:\n                document.querySelectorAll('input').forEach(el => {\n                    el._x_forceModelUpdate && el._x_forceModelUpdate(el._x_model.get())\n                })\n            })\n\n            cleanup(() => {\n                forgetCommitHandler()\n                forgetPopHandler()\n            })\n        }\n    })\n})\n\nfunction normalizeQueryStringEntry(key, value) {\n    let defaults = { use: 'replace', alwaysShow: false }\n\n    if (typeof value === 'string') {\n        return {...defaults, name: value, as: value }\n    } else {\n        let fullerDefaults = {...defaults, name: key, as: key }\n\n        return {...fullerDefaults, ...value }\n    }\n}\n", "import { on } from '@/hooks'\nimport { dispatchSelf } from '@/events'\n\non('request', ({ options }) => {\n    if (window.Echo) {\n        options.headers['X-Socket-ID'] = window.Echo.socketId()\n    }\n})\n\non('effect', ({ component, effects }) => {\n    let listeners = effects.listeners || []\n\n    listeners.forEach(event => {\n        if (event.startsWith('echo')) {\n            if (typeof window.Echo === 'undefined') {\n                console.warn('Laravel Echo cannot be found')\n\n                return\n            }\n\n            let event_parts = event.split(/(echo:|echo-)|:|,/)\n\n            if (event_parts[1] == 'echo:') {\n                event_parts.splice(2, 0, 'channel', undefined)\n            }\n\n            if (event_parts[2] == 'notification') {\n                event_parts.push(undefined, undefined)\n            }\n\n            let [\n                s1,\n                signature,\n                channel_type,\n                s2,\n                channel,\n                s3,\n                event_name,\n            ] = event_parts\n\n            if (['channel', 'private', 'encryptedPrivate'].includes(channel_type)) {\n                let handler = e => dispatchSelf(component, event, [e])\n\n                window.Echo[channel_type](channel).listen(event_name, handler)\n\n                component.addCleanup(() => {\n                    window.Echo[channel_type](channel).stopListening(event_name, handler)\n                })\n            } else if (channel_type == 'presence') {\n                if (['here', 'joining', 'leaving'].includes(event_name)) {\n                    window.Echo.join(channel)[event_name](e => {\n                        dispatchSelf(component, event, [e])\n                    })\n\n                    // @todo: add listener cleanup...\n                } else{\n                    let handler = e => dispatchSelf(component, event, [e])\n\n                    window.Echo.join(channel).listen(event_name, handler)\n\n                    component.addCleanup(() => {\n                        window.Echo.leaveChannel(channel)\n                    })\n                }\n            } else if (channel_type == 'notification') {\n                window.Echo.private(channel).notification(notification => {\n                    dispatchSelf(component, event, [notification])\n                })\n\n                // @todo: add listener cleanup...\n            } else {\n                console.warn('Echo channel type not yet supported')\n            }\n        }\n    })\n})\n", "import { on } from '@/hooks'\n\nlet componentsThatAreIsolated = new WeakSet\n\non('component.init', ({ component }) => {\n    let memo = component.snapshot.memo\n\n    // We only care about isolated components...\n    if (memo.isolate !== true) return\n\n    componentsThatAreIsolated.add(component)\n})\n\non('commit.pooling', ({ commits }) => {\n    commits.forEach(commit => {\n        // We only care about isolated components...\n        if (! componentsThatAreIsolated.has(commit.component)) return\n\n        commit.isolate = true\n    })\n})\n", "shouldHideProgressBar() && Alpine.navigate.disableProgressBar()\n\ndocument.addEventListener('alpine:navigated', e => {\n    // Forward a \"livewire\" version of the Alpine event...\n    document.dispatchEvent(new CustomEvent('livewire:navigated', { bubbles: true }))\n})\n\ndocument.addEventListener('alpine:navigating', e => {\n    // Forward a \"livewire\" version of the Alpine event...\n    document.dispatchEvent(new CustomEvent('livewire:navigating', { bubbles: true }))\n})\n\nexport function shouldRedirectUsingNavigateOr(effects, url, or) {\n    let forceNavigate = effects.redirectUsingNavigate\n\n    if (forceNavigate) {\n        Alpine.navigate(url)\n    } else {\n        or()\n    }\n}\n\nfunction shouldHideProgressBar() {\n    if (!! document.querySelector('[data-no-progress-bar]')) return true\n\n    if (window.livewireScriptConfig && window.livewireScriptConfig.progressBar === false) return true\n\n    return false\n}\n", "import { on } from \"@/hooks\"\nimport { shouldRedirectUsingNavigateOr } from \"./supportNavigate\"\n\non('effect', ({ effects }) => {\n    if (! effects['redirect']) return\n\n    let url = effects['redirect']\n\n    shouldRedirectUsingNavigateOr(effects, url, () => {\n        window.location.href = url\n    })\n})\n", "import { trigger } from \"@/hooks\"\nimport { closestComponent } from \"@/store\"\nimport Alpine from 'alpinejs'\n\nexport function morph(component, el, html) {\n    let wrapperTag = el.parentElement\n        // If the root element is a \"tr\", we need the wrapper to be a \"table\"...\n        ? el.parentElement.tagName.toLowerCase()\n        : 'div'\n\n    let wrapper = document.createElement(wrapperTag)\n\n    wrapper.innerHTML = html\n    let parentComponent\n\n    try {\n        parentComponent = closestComponent(el.parentElement)\n    } catch (e) {}\n\n    parentComponent && (wrapper.__livewire = parentComponent)\n\n    let to = wrapper.firstElementChild\n\n    to.__livewire = component\n\n    trigger('morph', { el, toEl: to, component })\n\n    Alpine.morph(el, to, {\n        updating: (el, toEl, childrenOnly, skip) => {\n            if (isntElement(el)) return\n\n            trigger('morph.updating', { el, toEl, component, skip, childrenOnly })\n\n            if (el.__livewire_ignore === true) return skip()\n            if (el.__livewire_ignore_self === true) childrenOnly()\n\n            // Children will update themselves.\n            if (isComponentRootEl(el) && el.getAttribute('wire:id') !== component.id) return skip()\n\n            // Give the root Livewire \"to\" element, the same object reference as the \"from\"\n            // element. This ensures new Alpine magics like $wire and @entangle can\n            // initialize in the context of a real Livewire component object.\n            if (isComponentRootEl(el)) toEl.__livewire = component\n        },\n\n        updated: (el) => {\n            if (isntElement(el)) return\n\n            trigger('morph.updated', { el, component })\n        },\n\n        removing: (el, skip) => {\n            if (isntElement(el)) return\n\n            trigger('morph.removing', { el, component, skip })\n        },\n\n        removed: (el) => {\n            if (isntElement(el)) return\n\n            trigger('morph.removed', { el, component })\n        },\n\n        adding: (el) => {\n            trigger('morph.adding', { el, component })\n        },\n\n        added: (el) => {\n            if (isntElement(el)) return\n\n            const closestComponentId = closestComponent(el).id\n\n            trigger('morph.added', { el })\n        },\n\n        key: (el) => {\n            if (isntElement(el)) return\n\n            return el.hasAttribute(`wire:key`)\n                ? el.getAttribute(`wire:key`)\n                : // If no \"key\", then first check for \"wire:id\", then \"id\"\n                el.hasAttribute(`wire:id`)\n                    ? el.getAttribute(`wire:id`)\n                    : el.id\n        },\n\n        lookahead: false,\n    })\n}\n\nfunction isntElement(el) {\n    return typeof el.hasAttribute !== 'function'\n}\n\nfunction isComponentRootEl(el) {\n    return el.hasAttribute('wire:id')\n}\n", "import { morph } from '@/morph'\nimport { on } from '@/hooks'\n\non('effect', ({ component, effects }) => {\n    let html = effects.html\n    if (! html) return\n\n    // Wrapping this in a double queueMicrotask. The first one puts it after all\n    // other \"effect\" hooks, and the second one puts it after all reactive\n    // Alpine effects (that are processed via flushJobs in scheduler).\n    queueMicrotask(() => {\n        queueMicrotask(() => {\n            morph(component, component.el, html)\n        })\n    })\n})\n", "import { dispatch, dispatchSelf, dispatchTo } from '@/events'\nimport { on as hook } from '@/hooks'\n\nhook('effect', ({ component, effects }) => {\n    registerListeners(component, effects.listeners || [])\n\n    dispatchEvents(component, effects.dispatches || [])\n})\n\nfunction registerListeners(component, listeners) {\n    listeners.forEach(name => {\n        // Register a global listener...\n        let handler = (e) => {\n            if (e.__livewire) e.__livewire.receivedBy.push(component)\n\n            component.$wire.call('__dispatch', name, e.detail || {})\n        }\n\n        window.addEventListener(name, handler)\n\n        component.addCleanup(() => window.removeEventListener(name, handler))\n\n        // Register a listener for when \"to\" or \"self\"\n        component.el.addEventListener(name, (e) => {\n            // We don't care about non-Livewire dispatches...\n            if (! e.__livewire) return\n\n            // We don't care about Livewire bubbling dispatches (only \"to\" and \"self\")...\n            if (e.bubbles) return\n\n            if (e.__livewire) e.__livewire.receivedBy.push(component.id)\n\n            component.$wire.call('__dispatch', name, e.detail || {})\n        })\n    })\n}\n\nfunction dispatchEvents(component, dispatches) {\n    dispatches.forEach(({ name, params = {}, self = false, to }) => {\n        if (self) dispatchSelf(component, name, params)\n        else if (to) dispatchTo(to, name, params)\n        else dispatch(component, name, params)\n    })\n}\n\n\n", "import { directive } from \"@/directives\"\nimport { on } from '@/hooks'\nimport Alpine from 'alpinejs'\n\non('morph.added', ({ el }) => {\n    el.__addedByMorph = true\n})\n\ndirective('transition', ({ el, directive, component, cleanup }) => {\n    let visibility = Alpine.reactive({ state: el.__addedByMorph ? false : true })\n\n    // We're going to control the element's transition with Alpine transitions...\n    Alpine.bind(el, {\n        [directive.rawName.replace('wire:', 'x-')]: '',\n        'x-show'() { return visibility.state },\n    })\n\n    // If it's not the initial page load, transition the element in...\n    el.__addedByMorph && setTimeout(() => visibility.state = true)\n\n    let cleanups = []\n\n    cleanups.push(on('morph.removing', ({ el, skip }) => {\n        // Here we interupt morphdom from removing an element...\n        skip()\n\n        // When the transition ends...\n        el.addEventListener('transitionend', () => {\n            // We can actually remove the element and all the listeners along with it...\n            el.remove()\n        })\n\n        // Now we can trigger a transition:\n        visibility.state = false\n\n        cleanups.push(on('morph', ({ component: morphComponent }) => {\n            if (morphComponent !== component) return\n\n            // While this element is transitioning out, a new morph is about to occur.\n            // Let's expidite this one and clean it up so it doesn't interfere...\n            el.remove()\n\n            cleanups.forEach(i => i())\n        }))\n    }))\n\n    cleanup(() => cleanups.forEach(i => i()))\n})\n\n\n\n", "import { WeakBag } from './utils'\n\nlet callbacksByComponent = new WeakBag\n\nexport function debounceByComponent(component, callback, time) {\n    // Prepare yourself for what's happening here.\n    // Any text input with wire:model on it should be \"debounced\" by ~150ms by default.\n    // We can't use a simple debounce function because we need a way to clear all the pending\n    // debounces if a user submits a form or performs some other action.\n    // This is a modified debounce function that acts just like a debounce, except it stores\n    // the pending callbacks in a global property so we can \"clear them\" on command instead\n    // of waiting for their setTimeouts to expire. I know.\n\n    // This is a \"null\" callback. Each wire:model will resister one of these upon initialization.\n    let callbackRegister = { callback: () => { } }\n    callbacksByComponent.add(component, callbackRegister)\n\n    // This is a normal \"timeout\" for a debounce function.\n    var timeout\n\n    return e => {\n        clearTimeout(timeout)\n\n        timeout = setTimeout(() => {\n            callback(e)\n            timeout = undefined\n\n            // Because we just called the callback, let's return the\n            // callback register to it's normal \"null\" state.\n            callbackRegister.callback = () => { }\n        }, time)\n\n        // Register the current callback in the register as a kind-of \"escape-hatch\".\n        callbackRegister.callback = () => {\n            clearTimeout(timeout)\n            callback(e)\n        }\n    }\n}\n\nexport function callAndClearComponentDebounces(component, callback) {\n    // This is to protect against the following scenario:\n    // A user is typing into a debounced input, and hits the enter key.\n    // If the enter key submits a form or something, the submission\n    // will happen BEFORE the model input finishes syncing because\n    // of the debounce. This makes sure to clear anything in the debounce queue.\n\n    callbacksByComponent.each(component, callbackRegister => {\n        callbackRegister.callback()\n        callbackRegister.callback = () => { }\n    })\n\n    callback()\n}\n", "import { callAndClearComponentDebounces } from '@/debounce'\nimport { on } from '@/hooks'\nimport Alpine from 'alpinejs'\n\non('directive.init', ({ el, directive, cleanup, component }) => {\n    if (['snapshot', 'effects', 'model', 'init', 'loading', 'poll', 'ignore', 'id', 'data', 'key', 'target', 'dirty'].includes(directive.value)) return\n\n    let attribute = directive.rawName.replace('wire:', 'x-on:')\n\n    // Automatically add .prevent to wire:submit, if they didn't add it themselves...\n    if (directive.value === 'submit' && ! directive.modifiers.includes('prevent')) {\n        attribute = attribute + '.prevent'\n    }\n\n    let cleanupBinding = Alpine.bind(el, {\n        [attribute](e) {\n            let execute = () => {\n                callAndClearComponentDebounces(component, () => {\n                    // Forward these calls directly to $wire. Let them handle firing the request.\n                    Alpine.evaluate(el, '$wire.'+directive.expression, { scope: { $event: e }})\n                })\n            }\n\n            // Account for the existance of wire:confirm=\"...\" on the action...\n            if (el.__livewire_confirm) {\n                el.__livewire_confirm(() => {\n                    execute()\n                }, () => {\n                    e.stopImmediatePropagation()\n                })\n            } else {\n                execute()\n            }\n        }\n    })\n\n    cleanup(cleanupBinding)\n})\n", "import Alpine from 'alpinejs'\n\nAlpine.addInitSelector(() => `[wire\\\\:navigate]`)\nAlpine.addInitSelector(() => `[wire\\\\:navigate\\\\.hover]`)\n\nAlpine.interceptInit(\n    Alpine.skipDuringClone(el => {\n        if (el.hasAttribute('wire:navigate')) {\n            Alpine.bind(el, { ['x-navigate']: true })\n        } else if (el.hasAttribute('wire:navigate.hover')) {\n            Alpine.bind(el, { ['x-navigate.hover']: true })\n        }\n    })\n)\n\ndocument.addEventListener('alpine:navigating', () => {\n    // Before navigating away, we'll inscribe the latest state of each component\n    // in their HTML so that upon return, they will have the latest state...\n    Livewire.all().forEach(component => {\n        component.inscribeSnapshotAndEffectsOnElement()\n    })\n})\n", "import { directive } from \"@/directives\"\n\ndirective('confirm', ({ el, directive }) => {\n    let message = directive.expression\n    let shouldPrompt = directive.modifiers.includes('prompt')\n\n    // Convert sanitized linebreaks (\"\\n\") to real line breaks...\n    message = message.replaceAll('\\\\n', '\\n')\n\n    if (message === '') message = 'Are you sure?'\n\n    el.__livewire_confirm = (action, instead) => {\n        if (shouldPrompt) {\n            let [question, expected] = message.split('|')\n\n            if (! expected) {\n                console.warn('Livewire: Must provide expectation with wire:confirm.prompt')\n            } else {\n                let input = prompt(question)\n\n                if (input === expected) {\n                    action()\n                } else {\n                    instead()\n                }\n            }\n        } else {\n            if (confirm(message)) action()\n            else instead()\n        }\n    }\n})\n", "\nexport function toggleBooleanStateDirective(el, directive, isTruthy, cachedDisplay = null) {\n    isTruthy = directive.modifiers.includes('remove') ? ! isTruthy : isTruthy\n\n    if (directive.modifiers.includes('class')) {\n        let classes = directive.expression.split(' ').filter(String)\n\n        if (isTruthy) {\n            el.classList.add(...classes)\n        } else {\n            el.classList.remove(...classes)\n        }\n    } else if (directive.modifiers.includes('attr')) {\n        if (isTruthy) {\n            el.setAttribute(directive.expression, true)\n        } else {\n            el.removeAttribute(directive.expression)\n        }\n    } else {\n        let cache = cachedDisplay ?? window\n            .getComputedStyle(el, null)\n            .getPropertyValue('display')\n\n        let display = (['inline', 'block', 'table', 'flex', 'grid', 'inline-flex']\n            .filter(i => directive.modifiers.includes(i))[0] || 'inline-block')\n\n        // If element is to be removed, set display to it's current value\n        display = directive.modifiers.includes('remove') ? cache : display\n\n        el.style.display = isTruthy ? display : 'none'\n    }\n}\n", "import { toggleBooleanStateDirective } from './shared'\nimport { directive } from '@/directives'\n\nlet offlineHandlers = new Set\nlet onlineHandlers = new Set\n\nwindow.addEventListener('offline', () => offlineHandlers.forEach(i => i()))\nwindow.addEventListener('online', () => onlineHandlers.forEach(i => i()))\n\ndirective('offline', ({ el, directive, cleanup }) => {\n    let setOffline = () => toggleBooleanStateDirective(el, directive, true)\n    let setOnline = () => toggleBooleanStateDirective(el, directive, false)\n\n    offlineHandlers.add(setOffline)\n    onlineHandlers.add(setOnline)\n\n    cleanup(() => {\n        offlineHandlers.delete(setOffline)\n        onlineHandlers.delete(setOnline)\n    })\n})\n", "import { toggleBooleanStateDirective } from './shared'\nimport { directive, getDirectives } from \"@/directives\"\nimport { on } from '@/hooks'\n\ndirective('loading', ({ el, directive, component }) => {\n    let { targets, inverted } = getTargets(el)\n\n    let [delay, abortDelay] = applyDelay(directive)\n\n    whenTargetsArePartOfRequest(component, targets, inverted, [\n        () => delay(() => toggleBooleanStateDirective(el, directive, true)),\n        () => abortDelay(() => toggleBooleanStateDirective(el, directive, false)),\n    ])\n\n    whenTargetsArePartOfFileUpload(component, targets, [\n        () => delay(() => toggleBooleanStateDirective(el, directive, true)),\n        () => abortDelay(() => toggleBooleanStateDirective(el, directive, false)),\n    ])\n})\n\nfunction applyDelay(directive) {\n    if (! directive.modifiers.includes('delay') || directive.modifiers.includes('none')) return [i => i(), i => i()]\n\n    let duration = 200\n\n    let delayModifiers = {\n        'shortest': 50,\n        'shorter': 100,\n        'short': 150,\n        'default': 200,\n        'long': 300,\n        'longer': 500,\n        'longest': 1000,\n    }\n\n    Object.keys(delayModifiers).some(key => {\n        if (directive.modifiers.includes(key)) {\n            duration = delayModifiers[key]\n\n            return true\n        }\n    })\n\n    let timeout\n    let started = false\n\n    return [\n        (callback) => { // Initiate delay...\n            timeout = setTimeout(() => {\n                callback()\n\n                started = true\n            }, duration)\n        },\n        async (callback) => { // Execute or abort...\n            if (started) {\n                await callback()\n                started = false\n            } else {\n                clearTimeout(timeout)\n            }\n        },\n    ]\n}\n\nfunction whenTargetsArePartOfRequest(component, targets, inverted, [ startLoading, endLoading ]) {\n    on('commit', ({ component: iComponent, commit: payload, respond }) => {\n        if (iComponent !== component) return\n\n        if (targets.length > 0 && containsTargets(payload, targets) === inverted) return\n\n        startLoading()\n\n        respond(() => {\n            endLoading()\n        })\n    })\n}\n\nfunction whenTargetsArePartOfFileUpload(component, targets, [ startLoading, endLoading ]) {\n    let eventMismatch = e => {\n        let { id, property } = e.detail\n\n        if (id !== component.id) return true\n        if (targets.length > 0 && ! targets.map(i => i.target).includes(property)) return true\n\n        return false\n    }\n\n    window.addEventListener('livewire-upload-start', e => {\n        if (eventMismatch(e)) return\n\n        startLoading()\n    })\n\n    window.addEventListener('livewire-upload-finish', e => {\n        if (eventMismatch(e)) return\n\n        endLoading()\n    })\n\n    window.addEventListener('livewire-upload-error', e => {\n        if (eventMismatch(e)) return\n\n        endLoading()\n    })\n}\n\nfunction containsTargets(payload, targets) {\n    let { updates, calls } = payload\n\n    return targets.some(({ target, params }) => {\n        if (params) {\n            return calls.some(({ method, params: methodParams }) => {\n                return target === method\n                    && params === quickHash(JSON.stringify(methodParams))\n            })\n        }\n\n        let hasMatchingUpdate = Object.keys(updates).some(property => {\n            // If the property is nested, like `foo.bar`, we need to check if the root `foo` is the target.\n            if (property.includes('.')) {\n                let propertyRoot = property.split('.')[0]\n\n                if (propertyRoot === target) return true\n            }\n\n            return property === target\n        })\n\n        if (hasMatchingUpdate) return true\n\n        if (calls.map(i => i.method).includes(target)) return true\n    })\n}\n\nfunction getTargets(el) {\n    let directives = getDirectives(el)\n\n    let targets = []\n\n    let inverted = false\n\n    if (directives.has('target')) {\n        let directive = directives.get('target')\n\n        let raw = directive.expression\n\n        if (directive.modifiers.includes(\"except\")) inverted = true\n\n        if (raw.includes('(') && raw.includes(')')) {\n            targets.push({ target: directive.method, params: quickHash(JSON.stringify(directive.params)) })\n        } else if (raw.includes(',')) {\n            raw.split(',').map(i => i.trim()).forEach(target => {\n                targets.push({ target })\n            })\n        } else {\n            targets.push({ target: raw })\n        }\n    } else {\n        // If there is no wire:target, let's check for the existance of a wire:click=\"foo\" or something,\n        // and automatically scope this loading directive to that action.\n        let nonActionOrModelLivewireDirectives = [ 'init', 'dirty', 'offline', 'target', 'loading', 'poll', 'ignore', 'key', 'id' ]\n\n        directives\n            .all()\n            .filter(i => ! nonActionOrModelLivewireDirectives.includes(i.value))\n            .map(i => i.expression.split('(')[0])\n            .forEach(target => targets.push({ target }))\n    }\n\n    return { targets, inverted }\n}\n\nfunction quickHash(subject) {\n    return btoa(encodeURIComponent(subject))\n}\n", "import { contentIsFromDump } from '@/utils'\nimport { directive } from '@/directives'\nimport { on, trigger } from '@/hooks'\n\ndirective('stream', ({el, directive, cleanup }) => {\n    let { expression, modifiers } = directive\n\n    let off = on('stream', ({ name, content, replace }) => {\n        if (name !== expression) return\n\n        if (modifiers.includes('replace') || replace) {\n            el.innerHTML = content\n        } else {\n            el.innerHTML = el.innerHTML + content\n        }\n    })\n\n    cleanup(off)\n})\n\non('request', ({ respond }) => {\n    respond(mutableObject => {\n        let response = mutableObject.response\n\n        if (! response.headers.has('X-Livewire-Stream')) return\n\n        mutableObject.response = {\n            ok: true,\n            redirected: false,\n            status: 200,\n\n            async text() {\n                let finalResponse = await interceptStreamAndReturnFinalResponse(response, streamed => {\n                    trigger('stream', streamed)\n                })\n\n                if (contentIsFromDump(finalResponse)) {\n                    this.ok = false\n                }\n\n                return finalResponse\n            }\n        }\n    })\n})\n\nasync function interceptStreamAndReturnFinalResponse(response, callback) {\n    let reader = response.body.getReader()\n    let remainingResponse = ''\n\n    while (true) {\n        let { done, value: chunk } = await reader.read()\n\n        let decoder = new TextDecoder\n        let output = decoder.decode(chunk)\n\n        let [ streams, remaining ] = extractStreamObjects(remainingResponse + output)\n\n        streams.forEach(stream => {\n            callback(stream)\n        })\n\n        remainingResponse = remaining\n\n        if (done) return remainingResponse\n    }\n}\n\nfunction extractStreamObjects(raw) {\n    let regex = /({\"stream\":true.*?\"endStream\":true})/g\n\n    let matches = raw.match(regex)\n\n    let parsed = []\n\n    if (matches) {\n        for (let i = 0; i < matches.length; i++) {\n            parsed.push(JSON.parse(matches[i]).body)\n        }\n    }\n\n    let remaining = raw.replace(regex, '');\n\n    return [ parsed, remaining ];\n}\n", "import { directive } from \"@/directives\"\n\ndirective('ignore', ({ el, directive }) => {\n    if (directive.modifiers.includes('self')) {\n        el.__livewire_ignore_self = true\n    } else {\n        el.__livewire_ignore = true\n    }\n})\n", "import { toggleBooleanStateDirective } from './shared'\nimport { directive, getDirectives } from '@/directives'\nimport { dataGet, WeakBag } from '@/utils'\nimport { on } from '@/hooks'\n\nlet refreshDirtyStatesByComponent = new WeakBag\n\non('commit', ({ component, respond }) => {\n    respond(() => {\n        setTimeout(() => { // Doing a \"setTimeout\" to let morphdom do its thing first...\n            refreshDirtyStatesByComponent.each(component, i => i(false))\n        })\n    })\n})\n\ndirective('dirty', ({ el, directive, component }) => {\n    let targets = dirtyTargets(el)\n\n    let dirty = Alpine.reactive({ state: false })\n\n    let oldIsDirty = false\n\n    let initialDisplay = el.style.display\n\n    let refreshDirtyState = (isDirty) => {\n        toggleBooleanStateDirective(el, directive, isDirty, initialDisplay)\n\n        oldIsDirty = isDirty\n    }\n\n    refreshDirtyStatesByComponent.add(component, refreshDirtyState)\n\n    Alpine.effect(() => {\n        let isDirty = false\n\n        if (targets.length === 0) {\n            isDirty = JSON.stringify(component.canonical) !== JSON.stringify(component.reactive)\n        } else {\n            for (let i = 0; i < targets.length; i++) {\n                if (isDirty) break;\n\n                let target = targets[i]\n\n                isDirty = JSON.stringify(dataGet(component.canonical, target)) !== JSON.stringify(dataGet(component.reactive, target))\n            }\n        }\n\n        if (oldIsDirty !== isDirty) {\n            refreshDirtyState(isDirty)\n        }\n\n        oldIsDirty = isDirty\n    })\n})\n\nfunction dirtyTargets(el) {\n    let directives = getDirectives(el)\n    let targets = []\n\n    if (directives.has('model')) {\n        targets.push(directives.get('model').expression)\n    }\n\n    if (directives.has('target')) {\n        targets = targets.concat(\n            directives\n            .get('target')\n            .expression.split(',')\n            .map(s => s.trim())\n        )\n    }\n\n    return targets\n}\n", "import { directive } from '@/directives'\nimport { handleFileUpload } from '@/features/supportFileUploads'\nimport { closestComponent } from '@/store'\nimport { dataGet, dataSet } from '@/utils'\nimport Alpine from 'alpinejs'\n\ndirective('model', ({ el, directive, component, cleanup }) => {\n    let { expression, modifiers } = directive\n\n    if (! expression) {\n        return console.warn('Livewire: [wire:model] is missing a value.', el)\n    }\n\n    if (componentIsMissingProperty(component, expression)) {\n        return console.warn('Livewire: [wire:model=\"'+expression+'\"] property does not exist on component: ['+component.name+']', el)\n    }\n\n    // Handle file uploads differently...\n    if (el.type && el.type.toLowerCase() === 'file') {\n        return handleFileUpload(el, expression, component, cleanup)\n    }\n\n    let isLive = modifiers.includes('live')\n    let isLazy = modifiers.includes('lazy') || modifiers.includes('change')\n    let onBlur = modifiers.includes('blur')\n    let isDebounced = modifiers.includes('debounce')\n\n    // Trigger a network request (only if .live or .lazy is added to wire:model)...\n    let update = expression.startsWith('$parent')\n        ? () => component.$wire.$parent.$commit()\n        : () => component.$wire.$commit()\n\n    // If a plain wire:model is added to a text input, debounce the\n    // trigerring of network requests.\n    let debouncedUpdate = isTextInput(el) && ! isDebounced && isLive\n        ? debounce(update, 150)\n        : update\n\n    Alpine.bind(el, {\n        ['@change']() {\n            isLazy && update()\n        },\n        ['@blur']() {\n            onBlur && update()\n        },\n        ['x-model' + getModifierTail(modifiers)]() {\n            return {\n                get() {\n                    return dataGet(component.$wire, expression)\n                },\n                set(value) {\n                    dataSet(component.$wire, expression, value)\n\n                    isLive && (! isLazy) && (! onBlur) && debouncedUpdate()\n                },\n            }\n        }\n    })\n})\n\nfunction getModifierTail(modifiers) {\n    modifiers = modifiers.filter(i => ! [\n        'lazy', 'defer'\n    ].includes(i))\n\n    if (modifiers.length === 0) return ''\n\n    return '.' + modifiers.join('.')\n}\n\nfunction isTextInput(el) {\n    return (\n        ['INPUT', 'TEXTAREA'].includes(el.tagName.toUpperCase()) &&\n        !['checkbox', 'radio'].includes(el.type)\n    )\n}\n\nfunction isDirty(subject, dirty) {\n    // Check for exact match: wire:model=\"bob\" in ['bob']\n    if (dirty.includes(subject)) return true\n\n    // Check case of parent: wire:model=\"bob.1\" in ['bob']\n    return dirty.some(i => subject.startsWith(i))\n}\n\nfunction componentIsMissingProperty(component, property) {\n    if (property.startsWith('$parent')) {\n        let parent = closestComponent(component.el.parentElement, false)\n\n        if (! parent) return true\n\n        return componentIsMissingProperty(parent, property.split('$parent.')[1])\n    }\n\n    let baseProperty = property.split('.')[0]\n\n    return ! Object.keys(component.canonical).includes(baseProperty)\n}\n\nfunction debounce(func, wait) {\n    var timeout;\n\n    return function() {\n      var context = this, args = arguments;\n\n      var later = function() {\n            timeout = null\n\n            func.apply(context, args)\n      }\n\n      clearTimeout(timeout)\n\n      timeout = setTimeout(later, wait)\n    }\n}\n", "import { directive } from \"@/directives\"\nimport Alpine from 'alpinejs'\n\ndirective('init', ({ el, directive }) => {\n    let fullMethod = directive.expression ?? '$refresh'\n\n    Alpine.evaluate(el, `$wire.${fullMethod}`)\n})\n\n", "import { directive, getDirectives } from \"@/directives\"\nimport Alpine from 'alpinejs'\n\ndirective('poll', ({ el, directive }) => {\n    let interval = extractDurationFrom(directive.modifiers, 2000)\n\n    let { start, pauseWhile, throttleWhile, stopWhen } = poll(() => {\n        triggerComponentRequest(el, directive)\n    }, interval)\n\n    start()\n\n    throttleWhile(() => theTabIsInTheBackground() && theDirectiveIsMissingKeepAlive(directive))\n    pauseWhile(() => theDirectiveHasVisible(directive) && theElementIsNotInTheViewport(el))\n    pauseWhile(() => theDirectiveIsOffTheElement(el))\n    pauseWhile(() => livewireIsOffline())\n    stopWhen(() => theElementIsDisconnected(el))\n})\n\nfunction triggerComponentRequest(el, directive) {\n    Alpine.evaluate(el,\n        directive.expression ? '$wire.' + directive.expression : '$wire.$commit()'\n    )\n}\n\nfunction poll(callback, interval = 2000) {\n    let pauseConditions = []\n    let throttleConditions = []\n    let stopConditions = []\n\n    return {\n        start() {\n            let clear = syncronizedInterval(interval, () => {\n                if (stopConditions.some(i => i())) return clear()\n                if (pauseConditions.some(i => i())) return\n                if (throttleConditions.some(i => i()) && Math.random() < .95) return\n\n                callback()\n            })\n        },\n        pauseWhile(condition) {\n            pauseConditions.push(condition)\n        },\n        throttleWhile(condition) {\n            throttleConditions.push(condition)\n        },\n        stopWhen(condition) {\n            stopConditions.push(condition)\n        }\n    }\n}\n\nlet clocks = []\n\nfunction syncronizedInterval(ms, callback) {\n    if (! clocks[ms]) {\n        let clock = {\n            timer: setInterval(() => clock.callbacks.forEach(i => i()), ms),\n            callbacks: new Set,\n        }\n\n        clocks[ms] = clock\n    }\n\n    clocks[ms].callbacks.add(callback)\n\n    return () => {\n        clocks[ms].callbacks.delete(callback)\n\n        if (clocks[ms].callbacks.size === 0) {\n            clearInterval(clocks[ms].timer)\n            delete clocks[ms]\n        }\n    }\n}\n\nlet isOffline = false\n\nwindow.addEventListener('offline', () => isOffline = true)\nwindow.addEventListener('online', () => isOffline = false)\n\nfunction livewireIsOffline() {\n    return isOffline\n}\n\nlet inBackground = false\n\ndocument.addEventListener('visibilitychange', () => { inBackground = document.hidden }, false)\n\nfunction theTabIsInTheBackground() {\n    return inBackground\n}\n\nfunction theDirectiveIsOffTheElement(el) {\n    return ! getDirectives(el).has('poll')\n}\n\nfunction theDirectiveIsMissingKeepAlive(directive) {\n    return ! directive.modifiers.includes('keep-alive')\n}\n\nfunction theDirectiveHasVisible(directive) {\n    return directive.modifiers.includes('visible')\n}\n\nfunction theElementIsNotInTheViewport(el) {\n    let bounding = el.getBoundingClientRect()\n\n    return ! (\n        bounding.top < (window.innerHeight || document.documentElement.clientHeight) &&\n        bounding.left < (window.innerWidth || document.documentElement.clientWidth) &&\n        bounding.bottom > 0 &&\n        bounding.right > 0\n    )\n}\n\nfunction theElementIsDisconnected(el) {\n    return el.isConnected === false\n}\n\nfunction extractDurationFrom(modifiers, defaultDuration) {\n    let durationInMilliSeconds\n    let durationInMilliSecondsString = modifiers.find(mod => mod.match(/([0-9]+)ms/))\n    let durationInSecondsString = modifiers.find(mod => mod.match(/([0-9]+)s/))\n\n    if (durationInMilliSecondsString) {\n        durationInMilliSeconds = Number(durationInMilliSecondsString.replace('ms', ''))\n    } else if (durationInSecondsString) {\n        durationInMilliSeconds = Number(durationInSecondsString.replace('s', '')) * 1000\n    }\n\n    return durationInMilliSeconds || defaultDuration\n}\n", "import { dispatchGlobal as dispatch, dispatchTo, on } from './events'\nimport { find, first, getByName, all } from './store'\nimport { start } from './lifecycle'\nimport { on as hook, trigger, triggerAsync } from './hooks'\nimport { directive } from './directives'\nimport Alpine from 'alpinejs'\n\nlet Livewire = {\n    directive,\n    dispatchTo,\n    start,\n    first,\n    find,\n    getByName,\n    all,\n    hook,\n    trigger,\n    triggerAsync,\n    dispatch,\n    on,\n    get navigate() {\n        return Alpine.navigate\n    }\n}\n\nif (window.Livewire) console.warn('Detected multiple instances of Livewire running')\nif (window.Alpine) console.warn('Detected multiple instances of Alpine running')\n\n// Register features...\nimport './features/index'\n\n// Register directives...\nimport './directives/index'\n\n// Make globals...\nwindow.Livewire = Livewire\nwindow.Alpine = Alpine\n\nif (window.livewireScriptConfig === undefined) {\n    document.addEventListener('DOMContentLoaded', () => {\n        // Start Livewire...\n        Livewire.start()\n    })\n}\n\nexport { Livewire, Alpine };\n"],
  "mappings": "giBAAA,oBAGC,AAAC,UAAS,EAAM,EAAS,CAExB,AAAI,MAAO,SAAW,YAAc,OAAO,IACzC,OAAO,CAAO,EACT,AAAI,MAAO,KAAY,SAC5B,GAAO,QAAU,EAAQ,EAEzB,EAAK,UAAY,EAAQ,CAG7B,GAAG,GAAM,UAAW,CAClB,GAAI,GAAY,CAAC,EAEjB,EAAU,QAAU,QAEpB,GAAI,GAAW,EAAU,SAAW,CAClC,QAAS,IACT,OAAQ,OACR,cAAe,GACf,MAAO,IACP,QAAS,GACT,YAAa,IACb,aAAc,IACd,YAAa,GACb,YAAa,eACb,gBAAiB,mBACjB,OAAQ,OACR,SAAU,qIACZ,EASA,EAAU,UAAY,SAAS,EAAS,CACtC,GAAI,GAAK,EACT,IAAK,IAAO,GACV,EAAQ,EAAQ,GACZ,IAAU,QAAa,EAAQ,eAAe,CAAG,GAAG,GAAS,GAAO,GAG1E,MAAO,KACT,EAMA,EAAU,OAAS,KASnB,EAAU,IAAM,SAAS,EAAG,CAC1B,GAAI,GAAU,EAAU,UAAU,EAElC,EAAI,EAAM,EAAG,EAAS,QAAS,CAAC,EAChC,EAAU,OAAU,IAAM,EAAI,KAAO,EAErC,GAAI,GAAW,EAAU,OAAO,CAAC,CAAO,EACpC,EAAW,EAAS,cAAc,EAAS,WAAW,EACtD,EAAW,EAAS,MACpB,EAAW,EAAS,OAExB,SAAS,YAET,EAAM,SAAS,EAAM,CAEnB,AAAI,EAAS,gBAAkB,IAAI,GAAS,cAAgB,EAAU,kBAAkB,GAGxF,EAAI,EAAK,EAAe,EAAG,EAAO,CAAI,CAAC,EAEvC,AAAI,IAAM,EAER,GAAI,EAAU,CACZ,WAAY,OACZ,QAAS,CACX,CAAC,EACD,EAAS,YAET,W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wB,QAAQ,IAAK,EAAE,CAAC,EAAI,KAGzE,GAA0B,CACrC,CC7HA,GAAI,IAAW,CACX,YACA,cACA,SACA,SACA,QACA,aACA,OACA,OACA,UACA,gBACA,YACA,MACA,GAAI,WAAW,CACX,MAAO,GAAO,QAClB,CACJ,EAEA,AAAI,OAAO,UAAU,QAAQ,KAAK,iDAAiD,EACnF,AAAI,OAAO,QAAQ,QAAQ,KAAK,+CAA+C,EAS/E,OAAO,SAAW,GAClB,OAAO,OAAS,EAEhB,AAAI,OAAO,uBAAyB,QAChC,SAAS,iBAAiB,mBAAoB,IAAM,CAEhD,GAAS,MAAM,CACnB,CAAC",
{"/livewire.js":"5d8beb2e"}
    // let data = {} creates a security (XSS) vulnerability here. We need to use
    // Object.create(null) instead so that we have a "pure" object that doesnt
    // inherit Object.prototype and expose the js internals to manipulation.
    let data = Object.create(null)

    /** @test */
    public function cannot_inject_js_through_query_string()
    {
        $this->tweakApplication(function() {
            app('livewire')->component('foo', new class extends Component {
                #[Url]
                public $foo = 'bar';

                public function render()
                {
                    return <<<'HTML'
                    <div>
                        <div>Hi!</div>
                        <!-- We wrap the alert in a setTimeout so that the injection has a chance to run first... -->
                        <!-- <script>setTimeout(() => alert('foo'), 100)</script> -->
                    </div>
                    HTML;
                }
            });

            \Illuminate\Support\Facades\Route::get('/foo', function () {
                return app('livewire')->new('foo')();
            })->middleware('web');
        });

        $this->browse(function ($browser) {
            $browser->visit('/foo?constructor.prototype.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&__proto__.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&constructor[prototype][html]=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&constructor.prototype.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&__proto__.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&__proto__[html]=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E#constructor.prototype.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&__proto__.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&constructor[prototype][html]=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&constructor.prototype.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&__proto__.html=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E&__proto__[html]=%22%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E');

            try {
                $alert = $browser->driver->switchTo()->alert()->getText();
            } catch (\Facebook\WebDriver\Exception\NoSuchAlertException $e) {
                $this->assertTrue(true);

                return;
            }

            $browser->waitForDialog();
            $browser->acceptDialog();
            $browser->waitForDialog();
            $browser->acceptDialog();

            $this->assertTrue(false, 'Maliciously injected alert detected');
        });
    }