function Te(r){r.directive("collapse",e),e.inline=(t,{modifiers:i})=>{i.includes("min")&&(t._x_doShow=()=>{},t._x_doHide=()=>{})};function e(t,{modifiers:i}){let o=J(i,"duration",250)/1e3,a=J(i,"min",0),l=!i.includes("min");t._x_isShown||(t.style.height=`${a}px`),!t._x_isShown&&l&&(t.hidden=!0),t._x_isShown||(t.style.overflow="hidden");let v=(g,p)=>{let b=r.setStyles(g,p);return p.height?()=>{}:b},w={transitionProperty:"height",transitionDuration:`${o}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};t._x_transition={in(g=()=>{},p=()=>{}){l&&(t.hidden=!1),l&&(t.style.display=null);let b=t.getBoundingClientRect().height;t.style.height="auto";let S=t.getBoundingClientRect().height;b===S&&(b=a),r.transition(t,r.setStyles,{during:w,start:{height:b+"px"},end:{height:S+"px"}},()=>t._x_isShown=!0,()=>{Math.abs(t.getBoundingClientRect().height-S)<1&&(t.style.overflow=null)})},out(g=()=>{},p=()=>{}){let b=t.getBoundingClientRect().height;r.transition(t,v,{during:w,start:{height:b+"px"},end:{height:a+"px"}},()=>t.style.overflow="hidden",()=>{t._x_isShown=!1,t.style.height==`${a}px`&&l&&(t.style.display="none",t.hidden=!0)})}}}}function J(r,e,t){if(r.indexOf(e)===-1)return t;const i=r[r.indexOf(e)+1];if(!i)return t;if(e==="duration"){let o=i.match(/([0-9]+)ms/);if(o)return o[1]}if(e==="min"){let o=i.match(/([0-9]+)px/);if(o)return o[1]}return i}var ze=Te,se=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],G=se.join(","),ce=typeof Element>"u",O=ce?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,q=!ce&&Element.prototype.getRootNode?function(r){return r.getRootNode()}:function(r){return r.ownerDocument},de=function(e,t,i){var o=Array.prototype.slice.apply(e.querySelectorAll(G));return t&&O.call(e,G)&&o.unshift(e),o=o.filter(i),o},fe=function r(e,t,i){for(var o=[],a=Array.from(e);a.length;){var l=a.shift();if(l.tagName==="SLOT"){var v=l.assignedElements(),w=v.length?v:l.children,g=r(w,!0,i);i.flatten?o.push.apply(o,g):o.push({scope:l,candidates:g})}else{var p=O.call(l,G);p&&i.filter(l)&&(t||!e.includes(l))&&o.push(l);var b=l.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(l),S=!i.shadowRootFilter||i.shadowRootFilter(l);if(b&&S){var E=r(b===!0?l.children:b.children,!0,i);i.flatten?o.push.apply(o,E):o.push({scope:l,candidates:E})}else a.unshift.apply(a,l.children)}}return o},he=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},Ne=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ve=function(e){return e.tagName==="INPUT"},Ee=function(e){return ve(e)&&e.type==="hidden"},xe=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(i){return i.tagName==="SUMMARY"});return t},Fe=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]},Ce=function(e){if(!e.name)return!0;var t=e.form||q(e),i=function(v){return t.querySelectorAll('input[type="radio"][name="'+v+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=i(window.CSS.escape(e.name));else try{o=i(e.name)}catch(l){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",l.message),!1}var a=Fe(o,e.form);return!a||a===e},Ae=function(e){return ve(e)&&e.type==="radio"},_e=function(e){return Ae(e)&&!Ce(e)},Z=function(e){var t=e.getBoundingClientRect(),i=t.width,o=t.height;return i===0&&o===0},ke=function(e,t){var i=t.displayCheck,o=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var a=O.call(e,"details>summary:first-of-type"),l=a?e.parentElement:e;if(O.call(l,"details:not([open]) *"))return!0;var v=q(e).host,w=(v==null?void 0:v.ownerDocument.contains(v))||e.ownerDocument.contains(e);if(!i||i==="full"){if(typeof o=="function"){for(var g=e;e;){var p=e.parentElement,b=q(e);if(p&&!p.shadowRoot&&o(p)===!0)return Z(e);e.assignedSlot?e=e.assignedSlot:!p&&b!==e.ownerDocument?e=b.host:e=p}e=g}if(w)return!e.getClientRects().length}else if(i==="non-zero-area")return Z(e);return!1},Oe=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var i=0;i<t.children.length;i++){var o=t.children.item(i);if(o.tagName==="LEGEND")return O.call(t,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}t=t.parentElement}return!1},W=function(e,t){return!(t.disabled||Ee(t)||ke(t,e)||xe(t)||Oe(t))},U=function(e,t){return!(_e(t)||he(t)<0||!W(e,t))},Re=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},De=function r(e){var t=[],i=[];return e.forEach(function(o,a){var l=!!o.scope,v=l?o.scope:o,w=he(v,l),g=l?r(o.candidates):v;w===0?l?t.push.apply(t,g):t.push(v):i.push({documentOrder:a,tabIndex:w,item:o,isScope:l,content:g})}),i.sort(Ne).reduce(function(o,a){return a.isScope?o.push.apply(o,a.content):o.push(a.content),o},[]).concat(t)},Ie=function(e,t){t=t||{};var i;return t.getShadowRoot?i=fe([e],t.includeContainer,{filter:U.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Re}):i=de(e,t.includeContainer,U.bind(null,t)),De(i)},be=function(e,t){t=t||{};var i;return t.getShadowRoot?i=fe([e],t.includeContainer,{filter:W.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):i=de(e,t.includeContainer,W.bind(null,t)),i},j=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return O.call(e,G)===!1?!1:U(t,e)},Le=se.concat("iframe").join(","),V=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return O.call(e,Le)===!1?!1:W(t,e)};function Q(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}function X(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Q(Object(t),!0).forEach(function(i){Pe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Q(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}function Pe(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var ee=function(){var r=[];return{activateTrap:function(t){if(r.length>0){var i=r[r.length-1];i!==t&&i.pause()}var o=r.indexOf(t);o===-1||r.splice(o,1),r.push(t)},deactivateTrap:function(t){var i=r.indexOf(t);i!==-1&&r.splice(i,1),r.length>0&&r[r.length-1].unpause()}}}(),Be=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},$e=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},Ke=function(e){return e.key==="Tab"||e.keyCode===9},te=function(e){return setTimeout(e,0)},re=function(e,t){var i=-1;return e.every(function(o,a){return t(o)?(i=a,!1):!0}),i},B=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return typeof e=="function"?e.apply(void 0,i):e},H=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Me=function(e,t){var i=(t==null?void 0:t.document)||document,o=X({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},l,v=function(n,u,s){return n&&n[u]!==void 0?n[u]:o[s||u]},w=function(n){return a.containerGroups.findIndex(function(u){var s=u.container,f=u.tabbableNodes;return s.contains(n)||f.find(function(d){return d===n})})},g=function(n){var u=o[n];if(typeof u=="function"){for(var s=arguments.length,f=new Array(s>1?s-1:0),d=1;d<s;d++)f[d-1]=arguments[d];u=u.apply(void 0,f)}if(u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error("`".concat(n,"` was specified but was not a node, or did not return a node"))}var c=u;if(typeof u=="string"&&(c=i.querySelector(u),!c))throw new Error("`".concat(n,"` as selector refers to no known node"));return c},p=function(){var n=g("initialFocus");if(n===!1)return!1;if(n===void 0)if(w(i.activeElement)>=0)n=i.activeElement;else{var u=a.tabbableGroups[0],s=u&&u.firstTabbableNode;n=s||g("fallbackFocus")}if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n},b=function(){if(a.containerGroups=a.containers.map(function(n){var u=Ie(n,o.tabbableOptions),s=be(n,o.tabbableOptions);return{container:n,tabbableNodes:u,focusableNodes:s,firstTabbableNode:u.length>0?u[0]:null,lastTabbableNode:u.length>0?u[u.length-1]:null,nextTabbableNode:function(d){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,T=s.findIndex(function(y){return y===d});if(!(T<0))return c?s.slice(T+1).find(function(y){return j(y,o.tabbableOptions)}):s.slice(0,T).reverse().find(function(y){return j(y,o.tabbableOptions)})}}}),a.tabbableGroups=a.containerGroups.filter(function(n){return n.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!g("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},S=function m(n){if(n!==!1&&n!==i.activeElement){if(!n||!n.focus){m(p());return}n.focus({preventScroll:!!o.preventScroll}),a.mostRecentlyFocusedNode=n,Be(n)&&n.select()}},E=function(n){var u=g("setReturnFocus",n);return u||(u===!1?!1:n)},A=function(n){var u=H(n);if(!(w(u)>=0)){if(B(o.clickOutsideDeactivates,n)){l.deactivate({returnFocus:o.returnFocusOnDeactivate&&!V(u,o.tabbableOptions)});return}B(o.allowOutsideClick,n)||n.preventDefault()}},k=function(n){var u=H(n),s=w(u)>=0;s||u instanceof Document?s&&(a.mostRecentlyFocusedNode=u):(n.stopImmediatePropagation(),S(a.mostRecentlyFocusedNode||p()))},F=function(n){var u=H(n);b();var s=null;if(a.tabbableGroups.length>0){var f=w(u),d=f>=0?a.containerGroups[f]:void 0;if(f<0)n.shiftKey?s=a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:s=a.tabbableGroups[0].firstTabbableNode;else if(n.shiftKey){var c=re(a.tabbableGroups,function(P){var h=P.firstTabbableNode;return u===h});if(c<0&&(d.container===u||V(u,o.tabbableOptions)&&!j(u,o.tabbableOptions)&&!d.nextTabbableNode(u,!1))&&(c=f),c>=0){var T=c===0?a.tabbableGroups.length-1:c-1,y=a.tabbableGroups[T];s=y.lastTabbableNode}}else{var N=re(a.tabbableGroups,function(P){var h=P.lastTabbableNode;return u===h});if(N<0&&(d.container===u||V(u,o.tabbableOptions)&&!j(u,o.tabbableOptions)&&!d.nextTabbableNode(u))&&(N=f),N>=0){var R=N===a.tabbableGroups.length-1?0:N+1,D=a.tabbableGroups[R];s=D.firstTabbableNode}}}else s=g("fallbackFocus");s&&(n.preventDefault(),S(s))},$=function(n){if($e(n)&&B(o.escapeDeactivates,n)!==!1){n.preventDefault(),l.deactivate();return}if(Ke(n)){F(n);return}},L=function(n){var u=H(n);w(u)>=0||B(o.clickOutsideDeactivates,n)||B(o.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())},_=function(){if(a.active)return ee.activateTrap(l),a.delayInitialFocusTimer=o.delayInitialFocus?te(function(){S(p())}):S(p()),i.addEventListener("focusin",k,!0),i.addEventListener("mousedown",A,{capture:!0,passive:!1}),i.addEventListener("touchstart",A,{capture:!0,passive:!1}),i.addEventListener("click",L,{capture:!0,passive:!1}),i.addEventListener("keydown",$,{capture:!0,passive:!1}),l},K=function(){if(a.active)return i.removeEventListener("focusin",k,!0),i.removeEventListener("mousedown",A,!0),i.removeEventListener("touchstart",A,!0),i.removeEventListener("click",L,!0),i.removeEventListener("keydown",$,!0),l};return l={get active(){return a.active},get paused(){return a.paused},activate:function(n){if(a.active)return this;var u=v(n,"onActivate"),s=v(n,"onPostActivate"),f=v(n,"checkCanFocusTrap");f||b(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=i.activeElement,u&&u();var d=function(){f&&b(),_(),s&&s()};return f?(f(a.containers.concat()).then(d,d),this):(d(),this)},deactivate:function(n){if(!a.active)return this;var u=X({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},n);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,K(),a.active=!1,a.paused=!1,ee.deactivateTrap(l);var s=v(u,"onDeactivate"),f=v(u,"onPostDeactivate"),d=v(u,"checkCanReturnFocus"),c=v(u,"returnFocus","returnFocusOnDeactivate");s&&s();var T=function(){te(function(){c&&S(E(a.nodeFocusedBeforeActivation)),f&&f()})};return c&&d?(d(E(a.nodeFocusedBeforeActivation)).then(T,T),this):(T(),this)},pause:function(){return a.paused||!a.active?this:(a.paused=!0,K(),this)},unpause:function(){return!a.paused||!a.active?this:(a.paused=!1,b(),_(),this)},updateContainerElements:function(n){var u=[].concat(n).filter(Boolean);return a.containers=u.map(function(s){return typeof s=="string"?i.querySelector(s):s}),a.active&&b(),this}},l.updateContainerElements(e),l};function je(r){let e,t;window.addEventListener("focusin",()=>{e=t,t=document.activeElement}),r.magic("focus",i=>{let o=i;return{__noscroll:!1,__wrapAround:!1,within(a){return o=a,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(a){return V(a)},previouslyFocused(){return e},lastFocused(){return e},focused(){return t},focusables(){return Array.isArray(o)?o:be(o,{displayCheck:"none"})},all(){return this.focusables()},isFirst(a){let l=this.all();return l[0]&&l[0].isSameNode(a)},isLast(a){let l=this.all();return l.length&&l.slice(-1)[0].isSameNode(a)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let a=this.all(),l=document.activeElement;if(a.indexOf(l)!==-1)return this.__wrapAround&&a.indexOf(l)===a.length-1?a[0]:a[a.indexOf(l)+1]},getPrevious(){let a=this.all(),l=document.activeElement;if(a.indexOf(l)!==-1)return this.__wrapAround&&a.indexOf(l)===0?a.slice(-1)[0]:a[a.indexOf(l)-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(a){a&&setTimeout(()=>{a.hasAttribute("tabindex")||a.setAttribute("tabindex","0"),a.focus({preventScroll:this.__noscroll})})}}}),r.directive("trap",r.skipDuringClone((i,{expression:o,modifiers:a},{effect:l,evaluateLater:v,cleanup:w})=>{let g=v(o),p=!1,b={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>i};if(a.includes("noautofocus"))b.initialFocus=!1;else{let F=i.querySelector("[autofocus]");F&&(b.initialFocus=F)}let S=Me(i,b),E=()=>{},A=()=>{};const k=()=>{E(),E=()=>{},A(),A=()=>{},S.deactivate({returnFocus:!a.includes("noreturn")})};l(()=>g(F=>{p!==F&&(F&&!p&&(a.includes("noscroll")&&(A=He()),a.includes("inert")&&(E=ne(i)),setTimeout(()=>{S.activate()},15)),!F&&p&&k(),p=!!F)})),w(k)},(i,{expression:o,modifiers:a},{evaluate:l})=>{a.includes("inert")&&l(o)&&ne(i)}))}function ne(r){let e=[];return pe(r,t=>{let i=t.hasAttribute("aria-hidden");t.setAttribute("aria-hidden","true"),e.push(()=>i||t.removeAttribute("aria-hidden"))}),()=>{for(;e.length;)e.pop()()}}function pe(r,e){r.isSameNode(document.body)||!r.parentNode||Array.from(r.parentNode.children).forEach(t=>{t.isSameNode(r)?pe(r.parentNode,e):e(t)})}function He(){let r=document.documentElement.style.overflow,e=document.documentElement.style.paddingRight,t=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${t}px`,()=>{document.documentElement.style.overflow=r,document.documentElement.style.paddingRight=e}}var Je=je;/*! Bundled license information:

tabbable/dist/index.esm.js:
  (*!
  * tabbable 5.3.3
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
  *)

focus-trap/dist/focus-trap.esm.js:
  (*!
  * focus-trap 6.9.4
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
  *)
*/function z(r,e,t){We();let i,o,a,l,v,w,g,p,b;function S(n={}){let u=f=>f.getAttribute("key"),s=()=>{};l=n.updating||s,v=n.updated||s,w=n.removing||s,g=n.removed||s,p=n.adding||s,b=n.added||s,o=n.key||u,a=n.lookahead||!1}function E(n,u){if(A(n,u))return k(n,u);let s=!1;if(!I(l,n,u,()=>s=!0)){if(n.nodeType===1&&window.Alpine&&(window.Alpine.cloneNode(n,u),n._x_teleport&&u._x_teleport&&E(n._x_teleport,u._x_teleport)),Ge(u)){F(n,u),v(n,u);return}s||$(n,u),v(n,u),L(n,u)}}function A(n,u){return n.nodeType!=u.nodeType||n.nodeName!=u.nodeName||_(n)!=_(u)}function k(n,u){if(I(w,n))return;let s=u.cloneNode(!0);I(p,s)||(n.replaceWith(s),g(n),b(s))}function F(n,u){let s=u.nodeValue;n.nodeValue!==s&&(n.nodeValue=s)}function $(n,u){if(n._x_transitioning||n._x_isShown&&!u._x_isShown||!n._x_isShown&&u._x_isShown)return;let s=Array.from(n.attributes),f=Array.from(u.attributes);for(let d=s.length-1;d>=0;d--){let c=s[d].name;u.hasAttribute(c)||n.removeAttribute(c)}for(let d=f.length-1;d>=0;d--){let c=f[d].name,T=f[d].value;n.getAttribute(c)!==T&&n.setAttribute(c,T)}}function L(n,u){let s=K(n.children),f={},d=ae(u),c=ae(n);for(;d;){qe(d,c);let y=_(d),N=_(c);if(!c)if(y&&f[y]){let h=f[y];n.appendChild(h),c=h}else{if(!I(p,d)){let h=d.cloneNode(!0);n.appendChild(h),b(h)}d=x(u,d);continue}let R=h=>h&&h.nodeType===8&&h.textContent==="[if BLOCK]><![endif]",D=h=>h&&h.nodeType===8&&h.textContent==="[if ENDBLOCK]><![endif]";if(R(d)&&R(c)){let h=0,M=c;for(;c;){let C=x(n,c);if(R(C))h++;else if(D(C)&&h>0)h--;else if(D(C)&&h===0){c=C;break}c=C}let ge=c;h=0;let me=d;for(;d;){let C=x(u,d);if(R(C))h++;else if(D(C)&&h>0)h--;else if(D(C)&&h===0){d=C;break}d=C}let ye=d,we=new Y(M,ge),Se=new Y(me,ye);L(we,Se);continue}if(c.nodeType===1&&a&&!c.isEqualNode(d)){let h=x(u,d),M=!1;for(;!M&&h;)h.nodeType===1&&c.isEqualNode(h)&&(M=!0,c=m(n,d,c),N=_(c)),h=x(u,h)}if(y!==N){if(!y&&N){f[N]=c,c=m(n,d,c),f[N].remove(),c=x(n,c),d=x(u,d);continue}if(y&&!N&&s[y]&&(c.replaceWith(s[y]),c=s[y]),y&&N){let h=s[y];if(h)f[N]=c,c.replaceWith(h),c=h;else{f[N]=c,c=m(n,d,c),f[N].remove(),c=x(n,c),d=x(u,d);continue}}}let P=c&&x(n,c);E(c,d),d=d&&x(u,d),c=P}let T=[];for(;c;)I(w,c)||T.push(c),c=x(n,c);for(;T.length;){let y=T.shift();y.remove(),g(y)}}function _(n){return n&&n.nodeType===1&&o(n)}function K(n){let u={};for(let s of n){let f=_(s);f&&(u[f]=s)}return u}function m(n,u,s){if(!I(p,u)){let f=u.cloneNode(!0);return n.insertBefore(f,s),b(f),f}return u}return S(t),i=typeof e=="string"?Ve(e):e,window.Alpine&&window.Alpine.closestDataStack&&!r._x_dataStack&&(i._x_dataStack=window.Alpine.closestDataStack(r),i._x_dataStack&&window.Alpine.cloneNode(r,i)),E(r,i),i=void 0,r}z.step=()=>{};z.log=()=>{};function I(r,...e){let t=!1;return r(...e,()=>t=!0),t}var ie=!1;function Ve(r){const e=document.createElement("template");return e.innerHTML=r,e.content.firstElementChild}function Ge(r){return r.nodeType===3||r.nodeType===8}var Y=class{constructor(r,e){this.startComment=r,this.endComment=e}get children(){let r=[],e=this.startComment.nextSibling;for(;e&&e!==this.endComment;)r.push(e),e=e.nextSibling;return r}appendChild(r){this.endComment.before(r)}get firstChild(){let r=this.startComment.nextSibling;if(r!==this.endComment)return r}nextNode(r){let e=r.nextSibling;if(e!==this.endComment)return e}insertBefore(r,e){return e.before(r),r}};function ae(r){return r.firstChild}function x(r,e){let t;return r instanceof Y?t=r.nextNode(e):t=e.nextSibling,t}function We(){if(ie)return;ie=!0;let r=Element.prototype.setAttribute,e=document.createElement("div");Element.prototype.setAttribute=function(i,o){if(!i.includes("@"))return r.call(this,i,o);e.innerHTML=`<span ${i}="${o}"></span>`;let a=e.firstElementChild.getAttributeNode(i);e.firstElementChild.removeAttributeNode(a),this.setAttributeNode(a)}}function qe(r,e){let t=e&&e._x_bindings&&e._x_bindings.id;t&&(r.setAttribute("id",t),r.id=t)}function Ue(r){r.morph=z}var Ze=Ue;function Ye(r){let e=()=>{let t,i;try{i=localStorage}catch(o){console.error(o),console.warn("Alpine: $persist is using temporary storage since localStorage is unavailable.");let a=new Map;i={getItem:a.get.bind(a),setItem:a.set.bind(a)}}return r.interceptor((o,a,l,v,w)=>{let g=t||`_x_${v}`,p=ue(g,i)?oe(g,i):o;return l(p),r.effect(()=>{let b=a();le(g,b,i),l(b)}),p},o=>{o.as=a=>(t=a,o),o.using=a=>(i=a,o)})};Object.defineProperty(r,"$persist",{get:()=>e()}),r.magic("persist",e),r.persist=(t,{get:i,set:o},a=localStorage)=>{let l=ue(t,a)?oe(t,a):i();o(l),r.effect(()=>{let v=i();le(t,v,a),o(v)})}}function ue(r,e){return e.getItem(r)!==null}function oe(r,e){let t=e.getItem(r,e);if(t!==void 0)return JSON.parse(t)}function le(r,e,t){t.setItem(r,JSON.stringify(e))}var Qe=Ye;export{Je as a,Ze as b,Qe as c,ze as m};
