snipe-it/public/js/dist/all-defer.js
snipe 23c1d664fe Prod assets
Signed-off-by: snipe <[email protected]>
2024-06-24 22:07:01 +01:00

2 lines
43 KiB
JavaScript

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