1var Re=!1,Pe=!1,B=[],je=-1,Je=!1;function Zn(e){tr(e)}function Qn(){Je=!0}function er(){Je=!1,Lt()}function tr(e){B.includes(e)||B.push(e),Lt()}function nr(e){let t=B.indexOf(e);t!==-1&&t>je&&B.splice(t,1)}function Lt(){if(!Pe&&!Re){if(Je)return;Re=!0,queueMicrotask(rr)}}function rr(){Re=!1,Pe=!0;for(let e=0;e<B.length;e++)B[e](),je=e;B.length=0,je=-1,Pe=!1}var X,U,G,Rt,De=!0;function ir(e){De=!1,e(),De=!0}function or(e){X=e.reactive,G=e.release,U=t=>e.effect(t,{scheduler:n=>{De?Zn(n):n()}}),Rt=e.raw}function wt(e){U=e}function sr(e){let t=()=>{};return[r=>{let i=U(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),G(i))},i},()=>{t()}]}function Pt(e,t){let n=!0,r,i=U(()=>{let o=e();if(JSON.stringify(o),!n&&(typeof o=="object"||o!==r)){let s=r;queueMicrotask(()=>{t(o,s)})}r=o,n=!1});return()=>G(i)}async function ar(e){Qn();try{await e(),await Promise.resolve()}finally{er()}}var jt=[],Dt=[],Bt=[];function lr(e){Bt.push(e)}function Xe(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Dt.push(t))}function Nt(e){jt.push(e)}function qt(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function Ft(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}function cr(e){var t,n;for((t=e._x_effects)==null||t.forEach(nr);(n=e._x_cleanups)!=null&&n.length;)e._x_cleanups.pop()()}var Ge=new MutationObserver(tt),Ze=!1;function Qe(){Ge.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Ze=!0}function Wt(){ur(),Ge.disconnect(),Ze=!1}var ne=[];function ur(){let e=Ge.takeRecords();ne.push(()=>e.length>0&&tt(e));let t=ne.length;queueMicrotask(()=>{if(ne.length===t)for(;ne.length>0;)ne.shift()()})}function w(e){if(!Ze)return e();Wt();let t=e();return Qe(),t}var et=!1,ve=[];function fr(){et=!0}function dr(){et=!1,tt(ve),ve=[]}function tt(e){if(et){ve=ve.concat(e);return}let t=[],n=new Set,r=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].removedNodes.forEach(s=>{s.nodeType===1&&s._x_marker&&n.add(s)}),e[o].addedNodes.forEach(s=>{if(s.nodeType===1){if(n.has(s)){n.delete(s);return}s._x_marker||t.push(s)}})),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,l=e[o].oldValue,c=()=>{r.has(s)||r.set(s,[]),r.get(s).push({name:a,value:s.getAttribute(a)})},u=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&l===null?c():s.hasAttribute(a)?(u(),c()):u()}i.forEach((o,s)=>{Ft(s,o)}),r.forEach((o,s)=>{jt.forEach(a=>a(s,o))});for(let o of n)t.some(s=>s.contains(o))||Dt.forEach(s=>s(o));for(let o of t)o.isConnected&&Bt.forEach(s=>s(o));t=null,n=null,r=null,i=null}function Ht(e){return H(W(e))}function fe(e,t,n){return e._x_dataStack=[t,...W(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function W(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?W(e.host):e.parentNode?W(e.parentNode):[]}function H(e){return new Proxy({objects:e},hr)}var hr={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(n=>Object.prototype.hasOwnProperty.call(n,t)||Reflect.has(n,t))},get({objects:e},t,n){return t=="toJSON"?pr:Reflect.get(e.find(r=>Reflect.has(r,t))||{},t,n)},set({objects:e},t,n,r){const i=e.find(s=>Object.prototype.hasOwnProperty.call(s,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(i,t);return o!=null&&o.set&&(o!=null&&o.get)?o.set.call(r,n)||!0:Reflect.set(i,t,n)}};function pr(){return Reflect.ownKeys(this).reduce((t,n)=>(t[n]=Reflect.get(this,n),t),{})}function nt(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0||typeof s=="object"&&s!==null&&s.__v_skip)return;let l=i===""?o:`${i}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?r[o]=s.initialize(e,l,o):t(s)&&s!==r&&!(s instanceof Element)&&n(s,l)})};return n(e)}function Kt(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o){return e(this.initialValue,()=>gr(r,i),s=>Be(r,i,s),i,o)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,s,a)=>
vendor: 16,100 bytes, lines 1-5
1{let l=r.initialize(o,s,a);return n.initialValue=l,i(o,s,a)}}else n.initialValue=r;return n}}function gr(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function Be(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Be(e[t[0]],t.slice(1),n)}}var zt={};function T(e,t){zt[e]=t}function le(e,t){let n=_r(t);return Object.entries(zt).forEach(([r,i])=>{Object.defineProperty(e,`$${r}`,{get(){return i(t,n)},enumerable:!1})}),e}function _r(e){let[t,n]=Qt(e),r={interceptor:Kt,...t};return Xe(e,n),r}function mr(e,t,n,...r){try{return n(...r)}catch(i){ce(i,e,t)}}function ce(...e){return Ut(...e)}var Ut=wr;function yr(e){Ut=e}function wr(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} 2 3${n?'Expression: "'+n+`" 4 5`:""}`,t),setTimeout(()=>{throw e},0)}var V=!0;function Yt(e){let t=V;V=!1;let n=e();return V=t,n}function N(e,t,n={}){let r;return E(e,t)(i=>r=i,n),r}function E(...e){return Vt(...e)}var Vt=Xt;function vr(e){Vt=e}var Jt;function br(e){Jt=e}function Xt(e,t){let n={};le(n,e);let r=[n,...W(e)],i=typeof t=="function"?xr(r,t):Er(r,t,e);return mr.bind(null,e,t,i)}function xr(e,t){return(n=()=>{},{scope:r={},params:i=[],context:o}={})=>{if(!V){ue(n,t,H([r,...e]),i);return}let s=t.apply(H([r,...e]),i);ue(n,s)}}var $e={};function Sr(e,t){if($e[e])return $e[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let s=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return ce(s,t,e),Promise.resolve()}})();return $e[e]=o,o}function Er(e,t,n){let r=Sr(t,n);return(i=()=>{},{scope:o={},params:s=[],context:a}={})=>{r.result=void 0,r.finished=!1;let l=H([o,...e]);if(typeof r=="function"){let c=r.call(a,r,l).catch(u=>ce(u,n,t));r.finished?(ue(i,r.result,l,s,n),r.result=void 0):c.then(u=>{ue(i,u,l,s,n)}).catch(u=>ce(u,n,t)).finally(()=>r.result=void 0)}}}function ue(e,t,n,r,i){if(V&&typeof t=="function"){let o=t.apply(n,r);o instanceof Promise?o.then(s=>ue(e,s,n,r)).catch(s=>ce(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}function Ar(...e){return Jt(...e)}function Cr(e,t,n={}){let r={};le(r,e);let i=[r,...W(e)],o=H([n.scope??{},...i]),s=n.params??[];if(t.includes("await")){let a=Object.getPrototypeOf(async function(){}).constructor,l=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t;return new a(["scope"],`with (scope) { let __result = ${l}; return __result }`).call(n.context,o)}else{let a=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(()=>{ ${t} })()`:t,c=new Function(["scope"],`with (scope) { let __result = ${a}; return __result }`).call(n.context,o);return typeof c=="function"&&V?c.apply(o,s):c}}var rt="x-";function Z(e=""){return rt+e}function Or(e){rt=e}var be={};function x(e,t){return be[e]=t,{before(n){if(!be[n]){console.warn(String.raw`Cannot find directive \`${n}\`. \`${e}\` will use the default order of execution`);return}const r=D.indexOf(n);D.splice(r>=0?r:D.indexOf("DEFAULT"),0,e)}}}function Mr(e){return Object.keys(be).includes(e)}function it(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),s=Gt(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 r={};return t.map(nn((o,s)=>r[o]=s)).filter(on).map(kr(r,n)).sort(Ir).map(o=>$r(e,o))}function Gt(e){return Array.from(e).map(nn()).filter(t=>!on(t))}var Ne=!1,oe=new Map,Zt=Symbol();function Tr(e){Ne=!0;let t=Symbol();Zt=t,oe.set(t,[]);let n=()=>{for(;oe.get(t).length;)oe.get(t).shift()();oe.delete(t)},r=()=>{Ne=!1,n()};e(n),r()}function Qt(e){let t=[],n=a=>t.push(a),[r,i]=sr(e);return t.push(i),[{Alpine:ee,effect:r,cleanup:n,evaluateLater:E.bind(E,e),evaluate:N.bind(N,e)},()=>t.forEach(a=>a())]}function $r(e,t){let n=()=>{},r=be[t.type]||n,[i,o]=Qt(e);qt(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),Ne?oe.get(Zt).push(r):r())};return s.runCleanups=o,s}var en=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),tn=e=>e;function nn(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=rn.reduce((o,s)=>s(o),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var rn=[];function ot(e){rn.push(e)}function on({name:e}){return sn().test(e)}var sn=()=>new RegExp(`^${rt}([^:^.]+)\\b`);function kr(e,t){return({name:n,value:r})=>{n===r&&(r="");let i=n.match(sn()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(l=>l.replace(".","")),expression:r,original:a}}}var qe="DEFAULT",D=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",qe,"teleport"];function Ir(e,t){let n=D.indexOf(e.type)===-1?qe:e.type,r=D.indexOf(t.type)===-1?qe:t.type;return D.indexOf(n)-D.indexOf(r)}function se(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function K(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>K(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)K(r,t),r=r.nextElementSibling}function A(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var vt=!1;function Lr(){vt&&A("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),vt=!0,document.body||A("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),se(document,"alpine:init"),se(document,"alpine:initializing"),Qe(),lr(t=>k(t,K)),Xe(t=>Q(t)),Nt((t,n)=>{it(t,n).forEach(r=>r())});let e=t=>!Se(t.parentElement,!0);Array.from(document.querySelectorAll(cn().join(","))).filter(e).forEach(t=>{k(t)}),se(document,"alpine:initialized"),setTimeout(()=>{Dr()})}var st=[],an=[];function ln(){return st.map(e=>e())}function cn(){return st.concat(an).map(e=>e())}function un(e){st.push(e)}function fn(e){an.push(e)}function Se(e,t=!1){return z(e,n=>{if((t?cn():ln()).some(i=>n.matches(i)))return!0})}function z(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentNode instanceof ShadowRoot)return z(e.parentNode.host,t);if(e.parentElement)return z(e.parentElement,t)}}function Rr(e){return ln().some(t=>e.matches(t))}var dn=[];function Pr(e){dn.push(e)}var jr=1;function k(e,t=K,n=()=>{}){z(e,r=>r._x_ignore)||Tr(()=>{t(e,(r,i)=>{r._x_marker||(n(r,i),dn.forEach(o=>o(r,i)),it(r,r.attributes).forEach(o=>o()),r._x_ignore||(r._x_marker=jr++),r._x_ignore&&i())})})}function Q(e,t=K){t(e,n=>{cr(n),Ft(n),delete n._x_marker})}function Dr(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,n,r])=>{Mr(n)||r.some(i=>{if(document.querySelector(i))return A(`found "${i}", but missing ${t} plugin`),!0})})}var Fe=[],at=!1;function lt(e=()=>{}){return queueMicrotask(()=>{at||setTimeout(()=>{We()})}),new Promise(t=>{Fe.push(()=>{e(),t()})})}function We(){for(at=!1;Fe.length;)Fe.shift()()}function Br(){at=!0}function ct(e,t){return Array.isArray(t)?bt(e,t.join(" ")):typeof t=="object"&&t!==null?Nr(e,t):typeof t=="function"?ct(e,t()):bt(e,t)}function bt(e,t){let n=i=>i.split(" ").filter(o=>!e.classList.contains(o)).filter(Boolean),r=i=>(e.classList.add(...i),()=>{e.classList.remove(...i)});return t=t===!0?t="":t||"",r(n(t))}function Nr(e,t){let n=a=>a.split(" ").filter(Boolean),r=Object.entries(t).flatMap(([a,l])=>l?n(a):!1).filter(Boolean),i=Object.entries(t).flatMap(([a,l])=>l?!1:n(a)).filter(Boolean),o=[],s=[];return i.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),r.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 Ee(e,t){return typeof t=="object"&&t!==null?qr(e,t):Fr(e,t)}function qr(e,t){let n={};return Object.entries(t).forEach(([r,i])=>{n[r]=e.style[r],r.startsWith("--")||(r=Wr(r)),e.style.setProperty(r,i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{Ee(e,n)}}function Fr(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}function Wr(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function He(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}x("transition",(e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{typeof r=="function"&&(r=i(r)),r!==!1&&(!r||typeof r=="boolean"?Kr(e,n,t):Hr(e,r,t))});function Hr(e,t,n){hn(e,ct,""),{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}}[n](t)}function Kr(e,t,n){hn(e,Ee);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((g,y)=>y<t.indexOf("out"))),t.includes("out")&&!r&&(t=t.filter((g,y)=>y>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),l=s||t.includes("scale"),c=a?0:1,u=l?re(t,"scale",95)/100:1,d=re(t,"delay",0)/1e3,h=re(t,"origin","center"),_="opacity, transform",v=re(t,"duration",150)/1e3,p=re(t,"duration",75)/1e3,f="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:h,transitionDelay:`${d}s`,transitionProperty:_,transitionDuration:`${v}s`,transitionTimingFunction:f},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:h,transitionDelay:`${d}s`,transitionProperty:_,transitionDuration:`${p}s`,transitionTimingFunction:f},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:c,transform:`scale(${u})`})}function hn(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(r=()=>{},i=()=>{}){Ke(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},r,i)},out(r=()=>{},i=()=>{}){Ke(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},r,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){const i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let o=()=>i(n);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(n):o():e._x_transition?e._x_transition.in(n):o();return}e._x_hidePromise=e._x_transition?new Promise((s,a)=>{e._x_transition.out(()=>{},()=>s(r)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let s=pn(e);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(e)):i(()=>{let a=l=>{let c=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(a)]).then(([u])=>u==null?void 0:u());return delete l._x_hidePromise,delete l._x_hideChildren,c};a(e).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function pn(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:pn(t)}function Ke(e,t,{during:n,start:r,end:i}={},o=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(i).length===0){o(),s();return}let a,l,c;zr(e,{start(){a=t(e,r)},during(){l=t(e,n)},before:o,end(){a(),c=t(e,i)},after:s,cleanup(){l(),c()}})}function zr(e,t){let n,r,i,o=He(()=>{w(()=>{n=!0,r||t.before(),i||(t.end(),We()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:He(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},w(()=>{t.start(),t.during()}),Br(),requestAnimationFrame(()=>{if(n)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),w(()=>{t.before()}),r=!0,requestAnimationFrame(()=>{n||(w(()=>{t.end()}),We(),setTimeout(e._x_transitioning.finish,s+a),i=!0)})})}function re(e,t,n){if(e.indexOf(t)===-1)return n;const r=e[e.indexOf(t)+1];if(!r||t==="scale"&&isNaN(r))return n;if(t==="duration"||t==="delay"){let i=r.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(" "):r}var L=!1;function P(e,t=()=>{}){return(...n)=>L?t(...n):e(...n)}function Ur(e){return(...t)=>L&&e(...t)}var gn=[];function Ae(e){gn.push(e)}function Yr(e,t){gn.forEach(n=>n(e,t)),L=!0,_n(()=>{k(t,(n,r)=>{r(n,()=>{})})}),L=!1}var ze=!1;function Vr(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),L=!0,ze=!0,_n(()=>{Jr(t)}),L=!1,ze=!1}function Jr(e){let t=!1;k(e,(r,i)=>{K(r,(o,s)=>{if(t&&Rr(o))return s();t=!0,i(o,s)})})}function _n(e){let t=U;wt((n,r)=>{let i=t(n);return G(i),()=>{}}),e(),wt(t)}function mn(e,t,n,r=[]){switch(e._x_bindings||(e._x_bindings=X({})),e._x_bindings[t]=n,t=r.includes("camel")?ri(t):t,t){case"value":Xr(e,n);break;case"style":Zr(e,n);break;case"class":Gr(e,n);break;case"selected":case"checked":Qr(e,t,n);break;default:yn(e,t,n);break}}function Xr(e,t){if(bn(e))e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=we(e.value)===t:e.checked=xt(e.value,t));else if(ut(e))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(n=>xt(n,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")ni(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function Gr(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=ct(e,t)}function Zr(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Ee(e,t)}function Qr(e,t,n){yn(e,t,n),ti(e,t,n)}function yn(e,t,n){[null,void 0,!1].includes(n)&&oi(t)?e.removeAttribute(t):(wn(t)&&(n=t),ei(e,t,n))}function ei(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function ti(e,t,n){e[t]!==n&&(e[t]=n)}function ni(e,t){const n=[].concat(t).map(r=>r+"");Array.from(e.options).forEach(r=>{r.selected=n.includes(r.value)})}function ri(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function xt(e,t){return e==t}function we(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}var ii=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function wn(e){return ii.has(e)}function oi(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function si(e,t,n){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:vn(e,t,n)}function ai(e,t,n,r=!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=r,Yt(()=>N(e,i.expression))}return vn(e,t,n)}
5function vn(e,t,n){let r=e.getAttribute(t);return r===null?typeof n=="function"?n():n:r===""?!0:wn(t)?!![t,"true"].includes(r):r}function ut(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function bn(e){return e.type==="radio"||e.localName==="ui-radio"}function xn(e,t){let n;return function(){const r=this,i=arguments,o=function(){n=null,e.apply(r,i)};clearTimeout(n),n=setTimeout(o,t)}}function Sn(e,t){let n;return function(){let r=this,i=arguments;n||(e.apply(r,i),n=!0,setTimeout(()=>n=!1,t))}}function En({get:e,set:t},{get:n,set:r}){let i=!0,o,s=U(()=>{let a=e(),l=n();if(i)r(ke(a)),i=!1;else{let c=JSON.stringify(a),u=JSON.stringify(l);c!==o?r(ke(a)):c!==u&&t(ke(l))}o=JSON.stringify(e()),JSON.stringify(n())});return()=>{G(s)}}function ke(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function li(e){(Array.isArray(e)?e:[e]).forEach(n=>n(ee))}var j={},St=!1;function ci(e,t){if(St||(j=X(j),St=!0),t===void 0)return j[e];j[e]=t,nt(j[e]),typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&j[e].init()}function ui(){return j}var An={};function fi(e,t){let n=typeof t!="function"?()=>t:t;return e instanceof Element?Cn(e,n()):(An[e]=n,()=>{})}function di(e){return Object.entries(An).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...r)=>n(...r)}})}),e}function Cn(e,t,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(t).map(([s,a])=>({name:s,value:a})),o=Gt(i);return i=i.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),it(e,i,n).map(s=>{r.push(s.runCleanups),s()}),()=>{for(;r.length;)r.pop()()}}var On={};function hi(e,t){On[e]=t}function pi(e,t){return Object.entries(On).forEach(([n,r])=>{Object.defineProperty(e,n,{get(){return(...i)=>r.bind(t)(...i)},enumerable:!1})}),e}var gi={get reactive(){return X},get release(){return G},get effect(){return U},get raw(){return Rt},get transaction(){return ar},version:"3.15.8",flushAndStopDeferringMutations:dr,dontAutoEvaluateFunctions:Yt,disableEffectScheduling:ir,startObservingMutations:Qe,stopObservingMutations:Wt,setReactivityEngine:or,onAttributeRemoved:qt,onAttributesAdded:Nt,closestDataStack:W,skipDuringClone:P,onlyDuringClone:Ur,addRootSelector:un,addInitSelector:fn,setErrorHandler:yr,interceptClone:Ae,addScopeToNode:fe,deferMutations:fr,mapAttributes:ot,evaluateLater:E,interceptInit:Pr,initInterceptors:nt,injectMagics:le,setEvaluator:vr,setRawEvaluator:br,mergeProxies:H,extractProp:ai,findClosest:z,onElRemoved:Xe,closestRoot:Se,destroyTree:Q,interceptor:Kt,transition:Ke,setStyles:Ee,mutateDom:w,directive:x,entangle:En,throttle:Sn,debounce:xn,evaluate:N,evaluateRaw:Ar,initTree:k,nextTick:lt,prefixed:Z,prefix:Or,plugin:li,magic:T,store:ci,start:Lr,clone:Vr,cloneNode:Yr,bound:si,$data:Ht,watch:Pt,walk:K,data:hi,bind:fi},ee=gi;function _i(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return i=>!!n[i]}var mi=Object.freeze({}),yi=Object.prototype.hasOwnProperty,Ce=(e,t)=>yi.call(e,t),q=Array.isArray,ae=e=>Mn(e)==="[object Map]",wi=e=>typeof e=="string",ft=e=>typeof e=="symbol",Oe=e=>e!==null&&typeof e=="object",vi=Object.prototype.toString,Mn=e=>vi.call(e),Tn=e=>Mn(e).slice(8,-1),dt=e=>wi(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},xi=bi(e=>e.charAt(0).toUpperCase()+e.slice(1)),$n=(e,t)=>e!==t&&(e===e||t===t),Ue=new WeakMap,ie=[],$,F=Symbol("iterate"),Ye=Symbol("Map key iterate");function Si(e){return e&&e._isEffect===!0}function Ei(e,t=mi){Si(e)&&(e=e.raw);const n=Oi(e,t);return t.lazy||n(),n}function Ai(e){e.active&&(kn(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var Ci=0;function Oi(e,t){const n=function(){if(!n.active)return e();if(!ie.includes(n)){kn(n);
5try{return Ti(),ie.push(n),$=n,e()}finally{ie.pop(),In(),$=ie[ie.length-1]}}};return n.id=Ci++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function kn(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var J=!0,ht=[];function Mi(){ht.push(J),J=!1}function Ti(){ht.push(J),J=!0}function In(){const e=ht.pop();J=e===void 0?!0:e}function M(e,t,n){if(!J||$===void 0)return;let r=Ue.get(e);r||Ue.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has($)||(i.add($),$.deps.push(i),$.options.onTrack&&$.options.onTrack({effect:$,target:e,type:t,key:n}))}function R(e,t,n,r,i,o){const s=Ue.get(e);if(!s)return;const a=new Set,l=u=>{u&&u.forEach(d=>{(d!==$||d.allowRecurse)&&a.add(d)})};if(t==="clear")s.forEach(l);else if(n==="length"&&q(e))s.forEach((u,d)=>{(d==="length"||d>=r)&&l(u)});else switch(n!==void 0&&l(s.get(n)),t){case"add":q(e)?dt(n)&&l(s.get("length")):(l(s.get(F)),ae(e)&&l(s.get(Ye)));break;case"delete":q(e)||(l(s.get(F)),ae(e)&&l(s.get(Ye)));break;case"set":ae(e)&&l(s.get(F));break}const c=u=>{u.options.onTrigger&&u.options.onTrigger({effect:u,target:e,key:n,type:t,newValue:r,oldValue:i,oldTarget:o}),u.options.scheduler?u.options.scheduler(u):u()};a.forEach(c)}var $i=_i("__proto__,__v_isRef,__isVue"),Ln=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(ft)),ki=Rn(),Ii=Rn(!0),Et=Li();function Li(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=m(this);for(let o=0,s=this.length;o<s;o++)M(r,"get",o+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(m)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Mi();const r=m(this)[t].apply(this,n);return In(),r}}),e}function Rn(e=!1,t=!1){return function(r,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?Yi:Bn:t?Ui:Dn).get(r))return r;const s=q(r);if(!e&&s&&Ce(Et,i))return Reflect.get(Et,i,o);const a=Reflect.get(r,i,o);return(ft(i)?Ln.has(i):$i(i))||(e||M(r,"get",i),t)?a:Ve(a)?!s||!dt(i)?a.value:a:Oe(a)?e?Nn(a):mt(a):a}}var Ri=Pi();function Pi(e=!1){return function(n,r,i,o){let s=n[r];if(!e&&(i=m(i),s=m(s),!q(n)&&Ve(s)&&!Ve(i)))return s.value=i,!0;const a=q(n)&&dt(r)?Number(r)<n.length:Ce(n,r),l=Reflect.set(n,r,i,o);return n===m(o)&&(a?$n(i,s)&&R(n,"set",r,i,s):R(n,"add",r,i)),l}}function ji(e,t){const n=Ce(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&R(e,"delete",t,void 0,r),i}function Di(e,t){const n=Reflect.has(e,t);return(!ft(t)||!Ln.has(t))&&M(e,"has",t),n}function Bi(e){return M(e,"iterate",q(e)?"length":F),Reflect.ownKeys(e)}var Ni={get:ki,set:Ri,deleteProperty:ji,has:Di,ownKeys:Bi},qi={get:Ii,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}},pt=e=>Oe(e)?mt(e):e,gt=e=>Oe(e)?Nn(e):e,_t=e=>e,Me=e=>Reflect.getPrototypeOf(e);function de(e,t,n=!1,r=!1){e=e.__v_raw;const i=m(e),o=m(t);t!==o&&!n&&M(i,"get",t),!n&&M(i,"get",o);const{has:s}=Me(i),a=r?_t:n?gt:pt;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 he(e,t=!1){const n=this.__v_raw,r=m(n),i=m(e);return e!==i&&!t&&M(r,"has",e),!t&&M(r,"has",i),e===i?n.has(e):n.has(e)||n.has(i)}function pe(e,t=!1){return e=e.__v_raw,!t&&M(m(e),"iterate",F),Reflect.get(e,"size",e)}function At(e){e=m(e);const t=m(this);return Me(t).has.call(t,e)||(t.add(e),R(t,"add",e,e)),this}function Ct(e,t){t=m(t);const n=m(this),{has:r,get:i}=Me(n);let o=r.call(n,e);o?jn(n,r,e):(e=m(e),o=r.call(n,e));const s=i.call(n,e);return n.set(e,t),o?$n(t,s)&&R(n,"set",e,t,s):R(n,"add",e,t),this}function Ot(e){const t=m(this),{has:n,get:r}=Me(t);let i=n.call(t,e);i?jn(t,n,e):(e=m(e),i=n.call(t,e));const o=r?r.call(t,e):void 0,s=t.delete(e);return i&&R(t,"delete",e,void 0,o),s}function Mt(){const e=m(this),t=e.size!==0,n=ae(e)?new Map(e):new Set(e),r=e.clear();return t&&R(e,"clear",void 0,void 0,n),r}function ge(e,t){return function(r,i){const o=this,s=o.__v_raw,a=m(s),l=t?_t:e?gt:pt;
5return!e&&M(a,"iterate",F),s.forEach((c,u)=>r.call(i,l(c),l(u),o))}}function _e(e,t,n){return function(...r){const i=this.__v_raw,o=m(i),s=ae(o),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,c=i[e](...r),u=n?_t:t?gt:pt;return!t&&M(o,"iterate",l?Ye:F),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:a?[u(d[0]),u(d[1])]:u(d),done:h}},[Symbol.iterator](){return this}}}}function I(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${xi(e)} operation ${n}failed: target is readonly.`,m(this))}return e==="delete"?!1:this}}function Fi(){const e={get(o){return de(this,o)},get size(){return pe(this)},has:he,add:At,set:Ct,delete:Ot,clear:Mt,forEach:ge(!1,!1)},t={get(o){return de(this,o,!1,!0)},get size(){return pe(this)},has:he,add:At,set:Ct,delete:Ot,clear:Mt,forEach:ge(!1,!0)},n={get(o){return de(this,o,!0)},get size(){return pe(this,!0)},has(o){return he.call(this,o,!0)},add:I("add"),set:I("set"),delete:I("delete"),clear:I("clear"),forEach:ge(!0,!1)},r={get(o){return de(this,o,!0,!0)},get size(){return pe(this,!0)},has(o){return he.call(this,o,!0)},add:I("add"),set:I("set"),delete:I("delete"),clear:I("clear"),forEach:ge(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=_e(o,!1,!1),n[o]=_e(o,!0,!1),t[o]=_e(o,!1,!0),r[o]=_e(o,!0,!0)}),[e,n,t,r]}var[Wi,Hi]=Fi();function Pn(e,t){const n=e?Hi:Wi;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Ce(n,i)&&i in r?n:r,i,o)}var Ki={get:Pn(!1)},zi={get:Pn(!0)};function jn(e,t,n){const r=m(n);if(r!==n&&t.call(e,r)){const i=Tn(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 Dn=new WeakMap,Ui=new WeakMap,Bn=new WeakMap,Yi=new WeakMap;function Vi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ji(e){return e.__v_skip||!Object.isExtensible(e)?0:Vi(Tn(e))}function mt(e){return e&&e.__v_isReadonly?e:qn(e,!1,Ni,Ki,Dn)}function Nn(e){return qn(e,!0,qi,zi,Bn)}function qn(e,t,n,r,i){if(!Oe(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 s=Ji(e);if(s===0)return e;const a=new Proxy(e,s===2?r:n);return i.set(e,a),a}function m(e){return e&&m(e.__v_raw)||e}function Ve(e){return!!(e&&e.__v_isRef===!0)}T("nextTick",()=>lt);T("dispatch",e=>se.bind(se,e));T("watch",(e,{evaluateLater:t,cleanup:n})=>(r,i)=>{let o=t(r),a=Pt(()=>{let l;return o(c=>l=c),l},i);n(a)});T("store",ui);T("data",e=>Ht(e));T("root",e=>Se(e));T("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=H(Xi(e))),e._x_refs_proxy));function Xi(e){let t=[];return z(e,n=>{n._x_refs&&t.push(n._x_refs)}),t}var Ie={};function Fn(e){return Ie[e]||(Ie[e]=0),++Ie[e]}function Gi(e,t){return z(e,n=>{if(n._x_ids&&n._x_ids[t])return!0})}function Zi(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Fn(t))}T("id",(e,{cleanup:t})=>(n,r=null)=>{let i=`${n}${r?`-${r}`:""}`;return Qi(e,i,t,()=>{let o=Gi(e,n),s=o?o._x_ids[n]:Fn(n);return r?`${n}-${s}-${r}`:`${n}-${s}`})});Ae((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Qi(e,t,n,r){if(e._x_id||(e._x_id={}),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}T("el",e=>e);Wn("Focus","focus","focus");Wn("Persist","persist","persist");function Wn(e,t,n){T(t,r=>A(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}x("modelable",(e,{expression:t},{effect:n,evaluateLater:r,cleanup:i})=>{let o=r(t),s=()=>{let u;return o(d=>u=d),u},a=r(`${t} = __placeholder`),l=u=>a(()=>{},{scope:{__placeholder:u}}),c=s();l(c),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let u=e._x_model.get,d=e._x_model.set,h=En({get(){return u()},set(_){d(_)}},{get(){return s()},set(_){l(_)}});i(h)})});x("teleport",(e,{modifiers:t,expression:n}
vendor: 4,817 bytes, line 5
5,{cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&A("x-teleport can only be used on a <template> tag",e);let i=Tt(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(a=>{o.addEventListener(a,l=>{l.stopPropagation(),e.dispatchEvent(new l.constructor(l.type,l))})}),fe(o,{},e);let s=(a,l,c)=>{c.includes("prepend")?l.parentNode.insertBefore(a,l):c.includes("append")?l.parentNode.insertBefore(a,l.nextSibling):l.appendChild(a)};w(()=>{s(o,i,t),P(()=>{k(o)})()}),e._x_teleportPutBack=()=>{let a=Tt(n);w(()=>{s(e._x_teleport,a,t)})},r(()=>w(()=>{o.remove(),Q(o)}))});var eo=document.createElement("div");function Tt(e){let t=P(()=>document.querySelector(e),()=>eo)();return t||A(`Cannot find x-teleport element for selector: "${e}"`),t}var Hn=()=>{};Hn.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})};x("ignore",Hn);x("effect",P((e,{expression:t},{effect:n})=>{n(E(e,t))}));function Y(e,t,n,r){let i=e,o=l=>r(l),s={},a=(l,c)=>u=>c(l,u);if(n.includes("dot")&&(t=to(t)),n.includes("camel")&&(t=no(t)),n.includes("passive")&&(s.passive=!0),n.includes("capture")&&(s.capture=!0),n.includes("window")&&(i=window),n.includes("document")&&(i=document),n.includes("debounce")){let l=n[n.indexOf("debounce")+1]||"invalid-wait",c=xe(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=xn(o,c)}if(n.includes("throttle")){let l=n[n.indexOf("throttle")+1]||"invalid-wait",c=xe(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=Sn(o,c)}return n.includes("prevent")&&(o=a(o,(l,c)=>{c.preventDefault(),l(c)})),n.includes("stop")&&(o=a(o,(l,c)=>{c.stopPropagation(),l(c)})),n.includes("once")&&(o=a(o,(l,c)=>{l(c),i.removeEventListener(t,o,s)})),(n.includes("away")||n.includes("outside"))&&(i=document,o=a(o,(l,c)=>{e.contains(c.target)||c.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&l(c))})),n.includes("self")&&(o=a(o,(l,c)=>{c.target===e&&l(c)})),t==="submit"&&(o=a(o,(l,c)=>{c.target._x_pendingModelUpdates&&c.target._x_pendingModelUpdates.forEach(u=>u()),l(c)})),(io(t)||Kn(t))&&(o=a(o,(l,c)=>{oo(c,n)||l(c)})),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function to(e){return e.replace(/-/g,".")}function no(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function xe(e){return!Array.isArray(e)&&!isNaN(e)}function ro(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function io(e){return["keydown","keyup"].includes(e)}function Kn(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}function oo(e,t){let n=t.filter(o=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll","blur","change","lazy"].includes(o));if(n.includes("debounce")){let o=n.indexOf("debounce");n.splice(o,xe((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let o=n.indexOf("throttle");n.splice(o,xe((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&$t(e.key).includes(n[0]))return!1;const i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>n.includes(o));return n=n.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===i.length&&(Kn(e.type)||$t(e.key).includes(n[0])))}function $t(e){if(!e)return[];e=ro(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:".",comma:",",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(n=>{if(t[n]===e)return n}).filter(n=>n)}x("model",(e,{modifiers:t,expression:n},{effect:r,cleanup:i})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let s=E(o,n),a;typeof n=="string"?a=E(o,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?a=E(o,`${n()} = __placeholder`):a=()=>{};let l=()=>{let p;return s(f=>p=f),kt(p)?p.get():p},c=p=>{let f;s(g=>f=g),kt(f)?f.set(p):a(()=>{},{scope:{__placeholder:p}})};typeof n=="string"&&e.type==="radio"&&w(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});let u=t.includes("change")||t.includes("lazy"),d=t.includes("blur"),h=t.includes("enter"),_=u||d||h,v;if(L)v=()=>{};else if(_){let p=[],f=g=>c(me(e,t,g,l()));if(u&&p.push(Y(e,"change",t,f)),d&&(p.push(Y(e,"blur",t,f)),e.form)){let g=()=>f({target:e});e.form._x_pendingModelUpdates||(e.form._x_pendingModelUpdates=[]),e.form._x_pendingModelUpdates.push(g),i(()=>e.form._x_pendingModelUpdates.splice(e.form._x_pendingModelUpdates.indexOf(g),1))}h&&p.push(Y(e,"keydown",t,g=>{g.key==="Enter"&&f(g)})),v=()=>
5p.forEach(g=>g())}else{let p=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)?"change":"input";v=Y(e,p,t,f=>{c(me(e,t,f,l()))})}if(t.includes("fill")&&([void 0,null,""].includes(l())||ut(e)&&Array.isArray(l())||e.tagName.toLowerCase()==="select"&&e.multiple)&&c(me(e,t,{target:e},l())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=v,i(()=>e._x_removeModelListeners.default()),e.form){let p=Y(e.form,"reset",[],f=>{lt(()=>e._x_model&&e._x_model.set(me(e,t,{target:e},l())))});i(()=>p())}e._x_model={get(){return l()},set(p){c(p)}},e._x_forceModelUpdate=p=>{p===void 0&&typeof n=="string"&&n.match(/\./)&&(p=""),window.fromModel=!0,w(()=>mn(e,"value",p)),delete window.fromModel},r(()=>{let p=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(p)})});function me(e,t,n,r){return w(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(ut(e))if(Array.isArray(r)){let i=null;return t.includes("number")?i=Le(n.target.value):t.includes("boolean")?i=we(n.target.value):i=n.target.value,n.target.checked?r.includes(i)?r:r.concat([i]):r.filter(o=>!so(o,i))}else return n.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(i=>{let o=i.value||i.text;return Le(o)}):t.includes("boolean")?Array.from(n.target.selectedOptions).map(i=>{let o=i.value||i.text;return we(o)}):Array.from(n.target.selectedOptions).map(i=>i.value||i.text);{let i;return bn(e)?n.target.checked?i=n.target.value:i=r:i=n.target.value,t.includes("number")?Le(i):t.includes("boolean")?we(i):t.includes("trim")?i.trim():i}}})}function Le(e){let t=e?parseFloat(e):null;return ao(t)?t:e}function so(e,t){return e==t}function ao(e){return!Array.isArray(e)&&!isNaN(e)}function kt(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}x("cloak",e=>queueMicrotask(()=>w(()=>e.removeAttribute(Z("cloak")))));fn(()=>`[${Z("init")}]`);x("init",P((e,{expression:t},{evaluate:n})=>typeof t=="string"?!!t.trim()&&n(t,{},!1):n(t,{},!1)));x("text",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(o=>{w(()=>{e.textContent=o})})})});x("html",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(o=>{w(()=>{e.innerHTML=o,e._x_ignoreSelf=!0,k(e),delete e._x_ignoreSelf})})})});ot(en(":",tn(Z("bind:"))));var zn=(e,{value:t,modifiers:n,expression:r,original:i},{effect:o,cleanup:s})=>{if(!t){let l={};di(l),E(e,r)(u=>{Cn(e,u,i)},{scope:l});return}if(t==="key")return lo(e,r);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let a=E(e,r);o(()=>a(l=>{l===void 0&&typeof r=="string"&&r.match(/\./)&&(l=""),w(()=>mn(e,t,l,n))})),s(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};zn.inline=(e,{value:t,modifiers:n,expression:r})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:r,extract:!1})};x("bind",zn);function lo(e,t){e._x_keyExpression=t}un(()=>`[${Z("data")}]`);x("data",(e,{expression:t},{cleanup:n})=>{if(co(e))return;t=t===""?"{}":t;let r={};le(r,e);let i={};pi(i,r);let o=N(e,t,{scope:i});(o===void 0||o===!0)&&(o={}),le(o,e);let s=X(o);nt(s);let a=fe(e,s);s.init&&N(e,s.init),n(()=>{s.destroy&&N(e,s.destroy),a()})});Ae((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function co(e){return L?ze?!0:e.hasAttribute("data-has-alpine-state"):!1}x("show",(e,{modifiers:t,expression:n},{effect:r})=>{let i=E(e,n);e._x_doHide||(e._x_doHide=()=>{w(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{w(()=>{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=He(d=>d?s():o(),d=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,d,s,o):d?a():o()}),c,u=!0;r(()=>i(d=>{!u&&d===c||(t.includes("immediate")&&(d?a():o()),l(d),c=d,u=!1)}))});x("for",(e,{expression:t},{effect:n,cleanup:r})=>{let i=fo(t),o=E(e,i.items),s=E(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n(()=>uo(e,i,o,s)),r(()=>
5{Object.values(e._x_lookup).forEach(a=>w(()=>{Q(a),a.remove()})),delete e._x_prevKeys,delete e._x_lookup})});function uo(e,t,n,r){let i=s=>typeof s=="object"&&!Array.isArray(s),o=e;n(s=>{ho(s)&&s>=0&&(s=Array.from(Array(s).keys(),f=>f+1)),s===void 0&&(s=[]);let a=e._x_lookup,l=e._x_prevKeys,c=[],u=[];if(i(s))s=Object.entries(s).map(([f,g])=>{let y=It(t,g,f,s);r(b=>{u.includes(b)&&A("Duplicate key on x-for",e),u.push(b)},{scope:{index:f,...y}}),c.push(y)});else for(let f=0;f<s.length;f++){let g=It(t,s[f],f,s);r(y=>{u.includes(y)&&A("Duplicate key on x-for",e),u.push(y)},{scope:{index:f,...g}}),c.push(g)}let d=[],h=[],_=[],v=[];for(let f=0;f<l.length;f++){let g=l[f];u.indexOf(g)===-1&&_.push(g)}l=l.filter(f=>!_.includes(f));let p="template";for(let f=0;f<u.length;f++){let g=u[f],y=l.indexOf(g);if(y===-1)l.splice(f,0,g),d.push([p,f]);else if(y!==f){let b=l.splice(f,1)[0],S=l.splice(y-1,1)[0];l.splice(f,0,S),l.splice(y,0,b),h.push([b,S])}else v.push(g);p=g}for(let f=0;f<_.length;f++){let g=_[f];g in a&&(w(()=>{Q(a[g]),a[g].remove()}),delete a[g])}for(let f=0;f<h.length;f++){let[g,y]=h[f],b=a[g],S=a[y],O=document.createElement("div");w(()=>{S||A('x-for ":key" is undefined or invalid',o,y,a),S.after(O),b.after(S),S._x_currentIfEl&&S.after(S._x_currentIfEl),O.before(b),b._x_currentIfEl&&b.after(b._x_currentIfEl),O.remove()}),S._x_refreshXForScope(c[u.indexOf(y)])}for(let f=0;f<d.length;f++){let[g,y]=d[f],b=g==="template"?o:a[g];b._x_currentIfEl&&(b=b._x_currentIfEl);let S=c[y],O=u[y],te=document.importNode(o.content,!0).firstElementChild,yt=X(S);fe(te,yt,o),te._x_refreshXForScope=Jn=>{Object.entries(Jn).forEach(([Xn,Gn])=>{yt[Xn]=Gn})},w(()=>{b.after(te),P(()=>k(te))()}),typeof O=="object"&&A("x-for key cannot be an object, it must be a string or an integer",o),a[O]=te}for(let f=0;f<v.length;f++)a[v[f]]._x_refreshXForScope(c[u.indexOf(v[f])]);o._x_prevKeys=u})}function fo(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 s=i[1].replace(n,"").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 It(e,t,n,r){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]=n),e.collection&&(i[e.collection]=r),i}function ho(e){return!Array.isArray(e)&&!isNaN(e)}function Un(){}Un.inline=(e,{expression:t},{cleanup:n})=>{let r=Se(e);r._x_refs||(r._x_refs={}),r._x_refs[t]=e,n(()=>delete r._x_refs[t])};x("ref",Un);x("if",(e,{expression:t},{effect:n,cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&A("x-if can only be used on a <template> tag",e);let i=E(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return fe(a,{},e),w(()=>{e.after(a),P(()=>k(a))()}),e._x_currentIfEl=a,e._x_undoIf=()=>{w(()=>{Q(a),a.remove()}),delete e._x_currentIfEl},a},s=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>i(a=>{a?o():s()})),r(()=>e._x_undoIf&&e._x_undoIf())});x("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(i=>Zi(e,i))});Ae((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});ot(en("@",tn(Z("on:"))));x("on",P((e,{value:t,modifiers:n,expression:r},{cleanup:i})=>{let o=r?E(e,r):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=Y(e,t,n,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));Te("Collapse","collapse","collapse");Te("Intersect","intersect","intersect");Te("Focus","trap","focus");Te("Mask","mask","mask");function Te(e,t,n){x(t,r=>A(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}ee.setEvaluator(Xt);ee.setRawEvaluator(Cr);ee.setReactivityEngine({reactive:mt,effect:Ei,release:Ai,raw:m});var po=ee,C=po;function go(e){e.directive("mask",(t,{value:n,expression:r},{effect:i,evaluateLater:o,cleanup:s})=>{let a=()=>r,l="";queueMicrotask(()=>
5{if(["function","dynamic"].includes(n)){let h=o(r);i(()=>{a=_=>{let v;return e.dontAutoEvaluateFunctions(()=>{h(p=>{v=typeof p=="function"?p(_):p},{scope:{$input:_,$money:mo.bind({el:t})}})}),v},u(t,!1)})}else u(t,!1);if(t._x_model){if(t._x_model.get()===t.value||t._x_model.get()===null&&t.value==="")return;t._x_model.set(t.value)}});const c=new AbortController;s(()=>{c.abort()}),t.addEventListener("input",()=>u(t),{signal:c.signal,capture:!0}),t.addEventListener("blur",()=>u(t,!1),{signal:c.signal});function u(h,_=!0){let v=h.value,p=a(v);if(!p||p==="false")return!1;if(l.length-h.value.length===1)return l=h.value;let f=()=>{l=h.value=d(v,p)};_?_o(h,p,()=>{f()}):f()}function d(h,_){if(h==="")return"";let v=Yn(_,h);return Vn(_,v)}}).before("model")}function _o(e,t,n){let r=e.selectionStart,i=e.value;n();let o=i.slice(0,r),s=Vn(t,Yn(t,o)).length;e.setSelectionRange(s,s)}function Yn(e,t){let n=t,r="",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<n.length;a++)if(n[a]===e[s]){n=n.slice(0,a)+n.slice(a+1);break}}for(let s=0;s<o.length;s++){let a=!1;for(let l=0;l<n.length;l++)if(i[o[s]].test(n[l])){r+=n[l],n=n.slice(0,l)+n.slice(l+1),a=!0;break}if(!a)break}return r}function Vn(e,t){let n=Array.from(t),r="";for(let i=0;i<e.length;i++){if(!["9","a","*"].includes(e[i])){r+=e[i];continue}if(n.length===0)break;r+=n.shift()}return r}function mo(e,t=".",n,r=2){if(e==="-")return"-";if(/^\D+$/.test(e))return"9";n==null&&(n=t===","?".":",");let i=(l,c)=>{let u="",d=0;for(let h=l.length-1;h>=0;h--)l[h]!==c&&(d===3?(u=l[h]+c+u,d=0):u=l[h]+u,d++);return u},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,n)}`,r>0&&e.includes(t)&&(a+=`${t}`+"9".repeat(r)),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 yo=go;function wo(e){e.directive("intersect",e.skipDuringClone((t,{value:n,expression:r,modifiers:i},{evaluateLater:o,cleanup:s})=>{let a=o(r),l=xo(i),c={rootMargin:Eo(i),threshold:l,root:i.includes("parent")?t.parentElement:null};if(i.includes("dwell")){vo(t,n,i,a,s,c,l);return}let u=new IntersectionObserver(d=>{d.forEach(h=>{h.isIntersecting!==(n==="leave")&&(a(),i.includes("once")&&u.disconnect())})},c);u.observe(t),s(()=>{u.disconnect()})}))}function vo(e,t,n,r,i,o,s){let a,l,c=!1,u=!1,d=bo(n),h,_=()=>{clearTimeout(a),a=void 0},v=()=>{u=!1,!(!l||document.hidden||!ye(l,t,s))&&(c=!0,r(),n.includes("once")&&(h.disconnect(),document.removeEventListener("visibilitychange",b)))},p=()=>{h&&h.disconnect(),h=new IntersectionObserver(y,o),h.observe(e)},f=()=>{if(a=void 0,document.hidden)return;let S=h.takeRecords();if(S.some(O=>!ye(O,t,s))){y(S);return}u=!0,l=void 0,p()},g=()=>{a!==void 0||c||document.hidden||!l||ye(l,t,s)&&(a=setTimeout(f,d))},y=S=>{S.forEach(O=>{if(l=O,!ye(O,t,s)){_(),c=!1,u=!1;return}if(u){v();return}g()})},b=()=>{if(document.hidden){_(),l=void 0,c=!1,u=!1,h.disconnect();return}p()};p(),document.addEventListener("visibilitychange",b),i(()=>{_(),h.disconnect(),document.removeEventListener("visibilitychange",b)})}function ye(e,t,n){let r=n===0?e.isIntersecting:e.isIntersecting&&e.intersectionRatio>=n;return t==="leave"?!r:r}function bo(e){let n=(e[e.indexOf("dwell")+1]||"").match(/^([0-9]+)(ms)?$/);return n?Number(n[1]):250}function xo(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:+`.${t}`}function So(e){let t=e.match(/^(-?[0-9]+)(px|%)?$/);return t?t[1]+(t[2]||"px"):void 0}function Eo(e){const t="margin",n="0px 0px 0px 0px",r=e.indexOf(t);if(r===-1)return n;let i=[];for(let o=1;o<5;o++)i.push(So(e[r+o]||""));return i=i.filter(o=>o!==void 0),i.length?i.join(" ").trim():n}var Ao=wo;(function(){const e=document.querySelector("[data-campaign-page]");if(!e)return;const t=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","gbraid","wbraid","fbclid","msclkid","ttclid","twclid"],n=new URLSearchParams(window.location.search),r={page_path:window.location.pathname,campaign_channel:e.dataset.campaignChannel||"",campaign_audience:e.dataset.campaignAudience||"",campaign_topic:e.dataset.campaignTopic||"",goal_event:e.dataset.goalEvent||""},i=e.dataset.chatFirstMessage||"",o=a=>{try{const l=new URL(a.href,window.location.href);return/(^|\.)doctronic\.ai$/.test(l.hostname)&&!l.pathname.startsWith("/lp/")}catch{return!1}},s=a=>{const l=new URL(a.href,window.location.href);t.forEach(c=>{n.has(c)&&!l.searchParams.has(c)&&l.searchParams.set(c,n.get(c))}),i&&l.pathname.replace(/\/$/,"")==="/chat"&&!l.searchParams.has("firstMessage")&&l.searchParams.set("firstMessage",i),a.href=l.toString()};document.querySelectorAll("a[href]").forEach(a=>{o(a)&&(s(a),a.addEventListener("click",()=>{typeof window.fireEvent=="function"&&window.fireEvent("LandingPage_CTA_Click",Object.assign({cta:a.dataset.campaignCta||"block"},r))}))}),typeof window.fireEvent=="function"&&window.fireEvent("LandingPage_View",r)})();C.plugin(yo);C.plugin(Ao);C.data("stickyCta",(e=30)=>({triggered:!1,threshold:e,init(){window.addEventListener("scroll",()=>this.checkScroll())},checkScroll(){const t=window.scrollY/(document.body.scrollHeight-window.innerHeight)*100;!this.triggered&&t>=this.threshold&&(this.triggered=!0)}}));C.data("newsletterModal",(e=5,t=30,n=null,r=null)=>
5({step:1,open:!1,email:"",phone:"",formData:{},errors:{email:null,phone:null},fieldErrors:{},init(){if(console.log("[Modal] init",{trigger:n,clickEvent:r,delaySeconds:e}),window.addEventListener("open-modal",()=>{console.log("[Modal] received open-modal"),this.open=!0,document.body.classList.add("overflow-hidden")}),n==="on_click"&&r){console.log("[Modal] listening for window event ->",r),window.addEventListener(r,o=>{var s,a;console.log("[Modal] received",r,o.detail),(s=o.detail)!=null&&s.email&&(this.email=o.detail.email,this.formData.email=o.detail.email),(a=o.detail)!=null&&a.phone&&(this.phone=o.detail.phone,this.formData.phone=o.detail.phone),this.open=!0,document.body.classList.add("overflow-hidden")});return}if(!window.forceModalOpen&&this.getCookie("dct_modal_popup"))return;const i=e?e*1e3:5e3;setTimeout(()=>{this.open=!0,document.body.classList.add("overflow-hidden")},i)},dismiss(i){typeof fireBlogExitModalDismissClick=="function"&&fireBlogExitModalDismissClick({is_tpa:window.location.pathname.includes("/tpa")}),this.setCookie("dct_modal_popup",i,t),this.open=!1,document.body.classList.remove("overflow-hidden")},async send(i,o){var a;console.log(i,o);const s="https://cms.doctronic.ai";if(i==="fields"){this.fieldErrors={};let l=!0;if(document.querySelector('#modal-content [data-handle="phone"]')){const u=await fetch(`${s}/modal/validate/phone`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({phone:this.formData.phone})});if(console.log(JSON.stringify({phone:this.formData.phone})),u.status===422){const{errors:d}=await u.json();this.fieldErrors.phone=(a=d.phone)==null?void 0:a[0],l=!1}else if(u.ok){const{phone:d}=await u.json();d&&(this.formData.phone=d)}}if(document.querySelectorAll('#modal-content [data-required="true"]').forEach(u=>{const d=u.dataset.handle;this.formData[d]||(this.fieldErrors[d]="This field is required.",l=!1)}),this.formData.email&&document.querySelector('#modal-content [data-handle="email"]')&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(this.formData.email)||(this.fieldErrors.email="Please enter a valid email.",l=!1)),!l)return;typeof fireLeadGenModalSubmitSuccess=="function"&&fireLeadGenModalSubmitSuccess({timestamp:new Date().toISOString(),form_type:"lead_gen_modal",location:"lead_gen_modal",page_url:window.location.href,page_path:window.location.pathname,is_tpa:window.location.pathname.includes("/tpa"),click_event:r||null,step:o,fields:{...this.formData}}),this.step=o+1;return}if(i==="email"){const l=await fetch(`${s}/modal/validate/email`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({email:this.email})});if(l.status===422){const{errors:c}=await l.json();this.errors={...c},console.log(this.errors);return}this.step=o+1,typeof fireBlogNewsletterSignupModalEmailSubmitSuccess=="function"&&fireBlogNewsletterSignupModalEmailSubmitSuccess({email:this.email,is_tpa:window.location.pathname.includes("/tpa")})}if(i==="phone"){const l=await fetch(`${s}/modal/validate/phone`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({phone:this.phone})});if(l.status===422){const{errors:c}=await l.json();this.errors={...c};return}this.step=o+1,typeof fireBlogNewsletterSignupModalSMSSubmitSuccess=="function"&&fireBlogNewsletterSignupModalSMSSubmitSuccess({phone:this.phone,is_tpa:window.location.pathname.includes("/tpa")})}},thankYou(){},getCookie(i){const o=document.cookie.match(new RegExp("(^| )"+i+"=([^;]+)"));return o?o[2]:null},setCookie(i,o,s){const a=new Date(Date.now()+s*864e5).toUTCString();document.cookie=`${i}=${o}; expires=${a}; path=/`}}));C.data("blogToc",()=>({items:[],activeIndex:0,offset:90,pinned:!1,canLeft:!1,canRight:!1,_ticking:!1,init(){this.$nextTick(()=>this.build()),window.addEventListener("resize",()=>{this.measure(),this.updateArrows()})},updateArrows(){const e=this.$refs.track;e&&(this.canLeft=e.scrollLeft>4,this.canRight=e.scrollLeft+e.clientWidth<e.scrollWidth-4)},nudge(e){const t=this.$refs.track;t&&t.scrollBy({left:e*t.clientWidth*.6,behavior:"smooth"})},build(){const e=document.getElementById("blog-article");
5if(!e)return;const t=new Set;this.items=Array.from(e.querySelectorAll("h2")).map(n=>{let r=n.id;if(!r){for(r=(n.textContent||"section").toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").slice(0,64)||"section";t.has(r);)r+="-2";n.id=r}return t.add(r),{id:r,label:(n.textContent||"").trim()}}),this.$nextTick(()=>{this.measure(),this.updateArrows(),"ResizeObserver"in window&&this.$refs.track&&new ResizeObserver(()=>this.updateArrows()).observe(this.$refs.track),setTimeout(()=>this.updateArrows(),300)}),window.addEventListener("scroll",()=>this.onScroll(),{passive:!0}),this.onScroll(),this.$nextTick(()=>this.onScroll())},barOffset(){return(this.$root.offsetHeight||54)+24},measure(){this.offset=this.barOffset(),this.items.forEach(({id:e})=>{const t=document.getElementById(e);t&&(t.style.scrollMarginTop=`${this.offset}px`)})},onScroll(){this._ticking||(this._ticking=!0,requestAnimationFrame(()=>{this._ticking=!1;const e=this.items.length>1&&this.$root.offsetHeight>0&&this.$root.getBoundingClientRect().top<=1;if(e!==this.pinned){this.pinned=e;const i=document.querySelector("header");i&&(i.style.transform=e?"translateY(-100%)":"")}const t=this.barOffset();let n=0;this.items.forEach((i,o)=>{const s=document.getElementById(i.id);s&&s.getBoundingClientRect().top<=t+8&&(n=o)}),window.innerHeight+window.scrollY>=document.body.scrollHeight-4&&this.items.length&&(n=this.items.length-1),n!==this.activeIndex&&(this.activeIndex=n,this.centerActive())}))},centerActive(){const e=this.$refs.track,t=e==null?void 0:e.querySelectorAll("button")[this.activeIndex];!e||!t||e.scrollTo({left:t.offsetLeft-e.clientWidth/2+t.offsetWidth/2,behavior:"smooth"})},go(e){var l;const t=document.getElementById((l=this.items[e])==null?void 0:l.id);if(!t)return;const n=()=>t.getBoundingClientRect().top+window.scrollY-this.barOffset()+8;window.scrollTo({top:n(),behavior:"smooth"}),clearInterval(this._settleTimer);const r=()=>clearInterval(this._settleTimer);["wheel","touchstart","keydown"].forEach(c=>window.addEventListener(c,r,{once:!0,passive:!0}));let i=null,o=null,s=0,a=0;this._settleTimer=setInterval(()=>{s++;const c=window.scrollY===i||window.scrollY===o;i=window.scrollY,c&&(Math.abs(t.getBoundingClientRect().top-(this.barOffset()-8))>6?(o=n(),window.scrollTo({top:o,behavior:"auto"}),a=0):a++),(a>=3||s>=20)&&(clearInterval(this._settleTimer),t.setAttribute("tabindex","-1"),t.focus({preventScroll:!0}))},200)}}));C.data("blogSlider",()=>({page:0,pages:1,step:0,max:0,init(){this.$nextTick(()=>this.measure()),window.addEventListener("resize",()=>this.measure())},measure(){const e=this.$refs.track;if(!e||!e.children.length)return;const t=e.children[0],n=e.children[1],r=n?n.offsetLeft-t.offsetLeft-t.offsetWidth:0;this.max=e.scrollWidth-e.clientWidth,this.step=e.clientWidth+r,this.pages=this.max<=0?1:Math.max(1,Math.round((e.scrollWidth+r)/this.step)),this.onScroll()},onScroll(){const e=this.$refs.track;e&&(this.page=e.scrollLeft>=this.max-2?this.pages-1:Math.min(this.pages-1,Math.round(e.scrollLeft/this.step)))},goTo(e){const t=this.$refs.track;if(!t)return;const n=Math.max(0,Math.min(e,this.pages-1));t.scrollTo({left:n===this.pages-1?this.max:n*this.step,behavior:"smooth"})},prev(){this.goTo(this.page-1)},next(){this.goTo(this.page+1)}}));C.data("bottomStickyBar",(e=30)=>({triggered:!1,footerInView:!1,get visible(){return this.triggered&&!this.footerInView},init(){window.addEventListener("scroll",()=>this.checkScroll(),{passive:!0});const t=document.querySelector("footer");t&&"IntersectionObserver"in window&&new IntersectionObserver(n=>{this.footerInView=n[0].isIntersecting}).observe(t)},checkScroll(){const t=document.body.scrollHeight-window.innerHeight;t<=0||!this.triggered&&window.scrollY/t*100>=e&&(this.triggered=!0)}}));C.data("longformToc",()=>({active:"",pinned:!1,ids:[],_ticking:!1,init(){this.ids=Array.from(this.$root.querySelectorAll("[data-target]")).map(e=>e.dataset.target),window.addEventListener("scroll",()=>this.onScroll(),{passive:!0}),window.addEventListener("resize",()=>this.onScroll()),this.$nextTick(()=>this.onScroll())},barOffset(){return(this.$root.offsetHeight||54)+24},go(e){const t=document.getElementById(e);t&&window.scrollTo({top:t.getBoundingClientRect().top+window.scrollY-this.barOffset(),behavior:"smooth"})},onScroll(){this._ticking||(this._ticking=!0,requestAnimationFrame(()=>{this._ticking=!1;const e=this.$root.offsetHeight>0,t=e&&this.$root.getBoundingClientRect().top<=1;if(t!==this.pinned){this.pinned=t;const i=document.querySelector("header");i&&(i.style.transform=t?"translateY(-100%)":"")}if(!e)return;const n=this.barOffset();let r=this.ids[0]||"";if(this.ids.forEach(i=>
5{const o=document.getElementById(i);o&&o.getBoundingClientRect().top<=n+8&&(r=i)}),r!==this.active){this.active=r;const i=this.$refs.track,o=i==null?void 0:i.querySelector(`[data-target="${r}"]`);i&&o&&i.scrollTo({left:o.offsetLeft-i.clientWidth/2+o.offsetWidth/2,behavior:"smooth"})}}))}}));C.data("blogTermDirectory",()=>({active:"",pinned:!1,canLeft:!1,canRight:!1,_ticking:!1,init(){this.$root.querySelectorAll("[data-jump]").forEach(e=>{document.querySelector(e.getAttribute("href"))||(e.classList.add("pointer-events-none","opacity-30"),e.setAttribute("aria-disabled","true"),e.removeAttribute("href"))}),window.addEventListener("scroll",()=>this.onScroll(),{passive:!0}),window.addEventListener("resize",()=>this.updateArrows()),this.onScroll(),this.updateArrows(),setTimeout(()=>this.updateArrows(),300)},updateArrows(){const e=this.$refs.track;e&&(this.canLeft=e.scrollLeft>4,this.canRight=e.scrollLeft+e.clientWidth<e.scrollWidth-4)},nudge(e){const t=this.$refs.track;t&&t.scrollBy({left:e*t.clientWidth*.6,behavior:"smooth"})},spyOffset(){const e=this.$root.querySelector("nav");return(e?e.getBoundingClientRect().bottom:130)+24},jump(e){const t=document.querySelector(e.currentTarget.getAttribute("href")||"");t&&(e.preventDefault(),window.scrollTo({top:t.getBoundingClientRect().top+window.scrollY-this.spyOffset()+16,behavior:"smooth"}))},onScroll(){this._ticking||(this._ticking=!0,requestAnimationFrame(()=>{this._ticking=!1;const e=this.$root.querySelector("nav"),t=e?e.getBoundingClientRect().top<=1:!1;if(t!==this.pinned){this.pinned=t;const i=document.querySelector("header");i&&(i.style.transform=t?"translateY(-100%)":"")}const n=this.spyOffset();let r="";this.$root.querySelectorAll("section[data-letter]").forEach(i=>{i.getBoundingClientRect().top<=n&&(r=i.dataset.letter)}),this.active=r}))}}));C.data("blogSearch",(e="",t="",n="blog")=>({query:"",results:[],loading:!1,searched:!1,algolia:!!(e&&t),get searching(){return this.query.trim().length>=2},async search(){const r=this.query.trim();if(r.length<2){this.results=[],this.searched=!1,this.loading=!1;return}try{const i=this.algolia?await this.searchAlgolia(r):await this.searchDatabase(r);if(r!==this.query.trim())return;i!==null&&(this.results=i,this.searched=!0)}catch{}finally{r===this.query.trim()&&(this.loading=!1)}},async searchAlgolia(r){const i=await fetch(`https://${e}-dsn.algolia.net/1/indexes/${n}/query`,{method:"POST",headers:{"X-Algolia-Application-Id":e,"X-Algolia-API-Key":t},body:JSON.stringify({query:r,hitsPerPage:50})});if(!i.ok)return null;const{hits:o}=await i.json();return o.filter(s=>s.title&&s.slug).map(s=>({title:s.title,url:`/blog/${s.slug}`}))},async searchDatabase(r){const i=await fetch(`/entries-search?collection=blog&q=${encodeURIComponent(r)}`);if(!i.ok)return null;const{entries:o}=await i.json();return o.filter(s=>s.title&&s.url)},clear(){this.query="",this.results=[],this.searched=!1,this.loading=!1}}));(()=>{const e=s=>{const a=getComputedStyle(s).backgroundColor;return a&&!a.startsWith("rgba(0, 0, 0, 0")?a:null},t=(s,a)=>{const l=getComputedStyle(s).backgroundImage,c=l&&l.match(/linear-gradient\((.+)\)/);if(c){const u=c[1].match(/rgba?\([^)]+\)/g);if(u&&u.length){const d=c[1].includes("to top")||c[1].startsWith("0deg");return a==="top"===d?u[u.length-1]:u[0]}}return e(s)},n=s=>{const a=getComputedStyle(s);return a.display!=="none"&&a.position!=="fixed"&&a.position!=="absolute"&&s.offsetHeight>60},r=(s,a)=>{let l=null,c=document.querySelector("main");for(let u=0;c&&u<4;u++){l=t(c,a)??l;const d=Array.from(c.children).filter(n);if(c=s?d[d.length-1]:d[0],c&&c.offsetWidth<window.innerWidth*.95)break}return l},i=document.querySelector("header[data-blend]");if(i){const s=getComputedStyle(i).backgroundColor,a=r(!1,"top")||s;i.style.transition="background-color 0.3s ease";const l=()=>{i.style.backgroundColor=window.scrollY>8?s:a};l(),window.addEventListener("scroll",l,{passive:!0})}const o=document.querySelector("footer[data-blend]");if(o){const s=r(!0,"bottom");if(s){const a=document.createElement("div");a.setAttribute("aria-hidden","true"),a.style.cssText=`position:absolute;
5left:0;right:0;top:0;height:96px;pointer-events:none;z-index:1;background:linear-gradient(to bottom, ${s}, transparent)`,o.prepend(a)}}})();window.Alpine=C;C.start();document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll('a[href*="#"]').forEach(t=>{t.addEventListener("click",function(n){const r=this.getAttribute("href");if(r.startsWith("#")||r.includes("#")){n.preventDefault();const i=r.includes("#")?r.split("#")[1]:r.substring(1),o=document.getElementById(i);if(o){const a=o.getBoundingClientRect().top+window.pageYOffset-80;window.scrollTo({top:a,behavior:"smooth"})}}})})});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.