1(()=>{var De=!1,Re=!1,N=[],Ne=-1;function tr(e){nr(e)}function nr(e){N.includes(e)||N.push(e),ir()}function rr(e){let t=N.indexOf(e);t!==-1&&t>Ne&&N.splice(t,1)}function ir(){!Re&&!De&&(De=!0,queueMicrotask(or))}function or(){De=!1,Re=!0;for(let e=0;e<N.length;e++)N[e](),Ne=e;N.length=0,Ne=-1,Re=!1}var Y,K,J,$t,Fe=!0;function ar(e){Fe=!1,e(),Fe=!0}function sr(e){Y=e.reactive,J=e.release,K=t=>e.effect(t,{scheduler:n=>{Fe?tr(n):n()}}),$t=e.raw}function xt(e){K=e}function lr(e){let t=()=>{};return[r=>{let i=K(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),J(i))},i},()=>{t()}]}function Dt(e,t){let n=!0,r,i=K(()=>{let o=e();JSON.stringify(o),n?r=o:queueMicrotask(()=>{t(o,r),r=o}),n=!1});return()=>J(i)}var Rt=[],Nt=[],Ft=[];function cr(e){Ft.push(e)}function Qe(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Nt.push(t))}function Bt(e){Rt.push(e)}function zt(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function Ht(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 ur(e){for(e._x_effects?.forEach(rr);e._x_cleanups?.length;)e._x_cleanups.pop()()}var et=new MutationObserver(it),tt=!1;function nt(){et.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),tt=!0}function Kt(){dr(),et.disconnect(),tt=!1}var ee=[];function dr(){let e=et.takeRecords();ee.push(()=>e.length>0&&it(e));let t=ee.length;queueMicrotask(()=>{if(ee.length===t)for(;ee.length>0;)ee.shift()()})}function _(e){if(!tt)return e();Kt();let t=e();return nt(),t}var rt=!1,ye=[];function fr(){rt=!0}function pr(){rt=!1,it(ye),ye=[]}function it(e){if(rt){ye=ye.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(a=>{a.nodeType===1&&a._x_marker&&n.add(a)}),e[o].addedNodes.forEach(a=>{if(a.nodeType===1){if(n.has(a)){n.delete(a);return}a._x_marker||t.push(a)}})),e[o].type==="attributes")){let a=e[o].target,s=e[o].attributeName,l=e[o].oldValue,c=()=>{r.has(a)||r.set(a,[]),r.get(a).push({name:s,value:a.getAttribute(s)})},u=()=>{i.has(a)||i.set(a,[]),i.get(a).push(s)};a.hasAttribute(s)&&l===null?c():a.hasAttribute(s)?(u(),c()):u()}i.forEach((o,a)=>{Ht(a,o)}),r.forEach((o,a)=>{Rt.forEach(s=>s(a,o))});for(let o of n)t.some(a=>a.contains(o))||Nt.forEach(a=>a(o));for(let o of t)o.isConnected&&Ft.forEach(a=>a(o));t=null,n=null,r=null,i=null}function qt(e){return le(W(e))}function se(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 le(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"?gr:Reflect.get(e.find(r=>Reflect.has(r,t))||{},t,n)},set({objects:e},t,n,r){let i=e.find(a=>Object.prototype.hasOwnProperty.call(a,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(i,t);return o?.set&&o?.get?o.set.call(r,n)||!0:Reflect.set(i,t,n)}};function gr(){return Reflect.ownKeys(this).reduce((t,n)=>(t[n]=Reflect.get(this,n),t),{})}function Wt(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([o,{value:a,enumerable:s}])=>{if(s===!1||a===void 0||typeof a=="object"&&a!==null&&a.__v_skip)return;let l=i===""?o:`${i}.${o}`;typeof a=="object"&&a!==null&&a._x_interceptor?r[o]=a.initialize(e,l,o):t(a)&&a!==r&&!(a instanceof Element)&&n(a,l)})};return n(e)}function Ut(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o){return e(this.initialValue,()=>_r(r,i),a=>Be(r,i,a),i,o)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,a,s)=>
vendor: 4,088 bytes, lines 1-5
1{let l=r.initialize(o,a,s);return n.initialValue=l,i(o,a,s)}}else n.initialValue=r;return n}}function _r(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 Yt={};function M(e,t){Yt[e]=t}function ze(e,t){let n=vr(t);return Object.entries(Yt).forEach(([r,i])=>{Object.defineProperty(e,`$${r}`,{get(){return i(t,n)},enumerable:!1})}),e}function vr(e){let[t,n]=Qt(e),r={interceptor:Ut,...t};return Qe(e,n),r}function yr(e,t,n,...r){try{return n(...r)}catch(i){ae(i,e,t)}}function ae(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 _e=!0;function Jt(e){let t=_e;_e=!1;let n=e();return _e=t,n}function F(e,t,n={}){let r;return x(e,t)(i=>r=i,n),r}function x(...e){return Gt(...e)}var Gt=Vt;function mr(e){Gt=e}function Vt(e,t){let n={};ze(n,e);let r=[n,...W(e)],i=typeof t=="function"?wr(r,t):br(r,t,e);return yr.bind(null,e,t,i)}function wr(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let o=t.apply(le([r,...e]),i);me(n,o)}}var Le={};function xr(e,t){if(Le[e])return Le[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 a=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(a,"name",{value:`[Alpine] ${e}`}),a}catch(a){return ae(a,t,e),Promise.resolve()}})();return Le[e]=o,o}function br(e,t,n){let r=xr(t,n);return(i=()=>{},{scope:o={},params:a=[]}={})=>{r.result=void 0,r.finished=!1;let s=le([o,...e]);if(typeof r=="function"){let l=r(r,s).catch(c=>ae(c,n,t));r.finished?(me(i,r.result,s,a,n),r.result=void 0):l.then(c=>{me(i,c,s,a,n)}).catch(c=>ae(c,n,t)).finally(()=>r.result=void 0)}}}function me(e,t,n,r,i){if(_e&&typeof t=="function"){let o=t.apply(n,r);o instanceof Promise?o.then(a=>me(e,a,n,r)).catch(a=>ae(a,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var ot="x-";function G(e=""){return ot+e}function Sr(e){ot=e}var we={};function y(e,t){return we[e]=t,{before(n){if(!we[n]){console.warn(String.raw`Cannot find directive \`${n}\`. \`${e}\` will use the default order of execution`);return}let r=R.indexOf(n);R.splice(r>=0?r:R.indexOf("DEFAULT"),0,e)}}}function Er(e){return Object.keys(we).includes(e)}function at(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([s,l])=>({name:s,value:l})),a=Xt(o);o=o.map(s=>a.find(l=>l.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),t=t.concat(o)}let r={};return t.map(nn((o,a)=>r[o]=a)).filter(on).map(Cr(r,n)).sort(Or).map(o=>Ar(e,o))}function Xt(e){return Array.from(e).map(nn()).filter(t=>!on(t))}var He=!1,re=new Map,Zt=Symbol();function Mr(e){He=!0;let t=Symbol();Zt=t,re.set(t,[]);let n=()=>{for(;re.get(t).length;)re.get(t).shift()();re.delete(t)},r=()=>{He=!1,n()};e(n),r()}function Qt(e){let t=[],n=s=>t.push(s),[r,i]=lr(e);return t.push(i),[{Alpine:ce,effect:r,cleanup:n,evaluateLater:x.bind(x,e),evaluate:F.bind(F,e)},()=>t.forEach(s=>s())]}function Ar(e,t){let n=()=>{},r=we[t.type]||n,[i,o]=Qt(e);zt(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),He?re.get(Zt).push(r):r())};return a.runCleanups=o,a}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,a)=>a(o),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var rn=[];function st(e){rn.push(e)}function on({name:e}){return an().test(e)}var an=()=>new RegExp(`^${ot}([^:^.]+)\\b`);function Cr(e,t){return({name:n,value:r})=>{let i=n.match(an()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),a=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],s=t||e[n]||n;
5return{type:i?i[1]:null,value:o?o[1]:null,modifiers:a.map(l=>l.replace(".","")),expression:r,original:s}}}var Ke="DEFAULT",R=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Ke,"teleport"];function Or(e,t){let n=R.indexOf(e.type)===-1?Ke:e.type,r=R.indexOf(t.type)===-1?Ke:t.type;return R.indexOf(n)-R.indexOf(r)}function ie(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function H(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>H(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)H(r,t,!1),r=r.nextElementSibling}function S(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var bt=!1;function kr(){bt&&S("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),bt=!0,document.body||S("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),ie(document,"alpine:init"),ie(document,"alpine:initializing"),nt(),cr(t=>C(t,H)),Qe(t=>X(t)),Bt((t,n)=>{at(t,n).forEach(r=>r())});let e=t=>!be(t.parentElement,!0);Array.from(document.querySelectorAll(cn().join(","))).filter(e).forEach(t=>{C(t)}),ie(document,"alpine:initialized"),setTimeout(()=>{Pr()})}var lt=[],sn=[];function ln(){return lt.map(e=>e())}function cn(){return lt.concat(sn).map(e=>e())}function un(e){lt.push(e)}function dn(e){sn.push(e)}function be(e,t=!1){return V(e,n=>{if((t?cn():ln()).some(i=>n.matches(i)))return!0})}function V(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return V(e.parentElement,t)}}function Tr(e){return ln().some(t=>e.matches(t))}var fn=[];function Lr(e){fn.push(e)}var Ir=1;function C(e,t=H,n=()=>{}){V(e,r=>r._x_ignore)||Mr(()=>{t(e,(r,i)=>{r._x_marker||(n(r,i),fn.forEach(o=>o(r,i)),at(r,r.attributes).forEach(o=>
vendor: 10,416 bytes, line 5
5o()),r._x_ignore||(r._x_marker=Ir++),r._x_ignore&&i())})})}function X(e,t=H){t(e,n=>{ur(n),Ht(n),delete n._x_marker})}function Pr(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,n,r])=>{Er(n)||r.some(i=>{if(document.querySelector(i))return S(`found "${i}", but missing ${t} plugin`),!0})})}var qe=[],ct=!1;function ut(e=()=>{}){return queueMicrotask(()=>{ct||setTimeout(()=>{We()})}),new Promise(t=>{qe.push(()=>{e(),t()})})}function We(){for(ct=!1;qe.length;)qe.shift()()}function jr(){ct=!0}function dt(e,t){return Array.isArray(t)?St(e,t.join(" ")):typeof t=="object"&&t!==null?$r(e,t):typeof t=="function"?dt(e,t()):St(e,t)}function St(e,t){let n=o=>o.split(" ").filter(Boolean),r=o=>o.split(" ").filter(a=>!e.classList.contains(a)).filter(Boolean),i=o=>(e.classList.add(...o),()=>{e.classList.remove(...o)});return t=t===!0?t="":t||"",i(r(t))}function $r(e,t){let n=s=>s.split(" ").filter(Boolean),r=Object.entries(t).flatMap(([s,l])=>l?n(s):!1).filter(Boolean),i=Object.entries(t).flatMap(([s,l])=>l?!1:n(s)).filter(Boolean),o=[],a=[];return i.forEach(s=>{e.classList.contains(s)&&(e.classList.remove(s),a.push(s))}),r.forEach(s=>{e.classList.contains(s)||(e.classList.add(s),o.push(s))}),()=>{a.forEach(s=>e.classList.add(s)),o.forEach(s=>e.classList.remove(s))}}function Se(e,t){return typeof t=="object"&&t!==null?Dr(e,t):Rr(e,t)}function Dr(e,t){let n={};return Object.entries(t).forEach(([r,i])=>{n[r]=e.style[r],r.startsWith("--")||(r=Nr(r)),e.style.setProperty(r,i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{Se(e,n)}}function Rr(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}function Nr(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ue(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}y("transition",(e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{typeof r=="function"&&(r=i(r)),r!==!1&&(!r||typeof r=="boolean"?Br(e,n,t):Fr(e,r,t))});function Fr(e,t,n){pn(e,dt,""),{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 Br(e,t,n){pn(e,Se);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,v)=>v<t.indexOf("out"))),t.includes("out")&&!r&&(t=t.filter((g,v)=>v>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?te(t,"scale",95)/100:1,f=te(t,"delay",0)/1e3,p=te(t,"origin","center"),m="opacity, transform",k=te(t,"duration",150)/1e3,ue=te(t,"duration",75)/1e3,d="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:p,transitionDelay:`${f}s`,transitionProperty:m,transitionDuration:`${k}s`,transitionTimingFunction:d},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:p,transitionDelay:`${f}s`,transitionProperty:m,transitionDuration:`${ue}s`,transitionTimingFunction:d},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:c,transform:`scale(${u})`})}function pn(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=()=>{}){Ye(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},r,i)},out(r=()=>{},i=()=>{}){Ye(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){let i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,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((a,s)=>{e._x_transition.out(()=>{},()=>a(r)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>s({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let a=hn(e);a?(a._x_hideChildren||(a._x_hideChildren=[]),a._x_hideChildren.push(e)):i(()=>{let s=l=>{let c=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(s)]).then(([u])=>u?.());return delete l._x_hidePromise,delete l._x_hideChildren,c};s(e).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function hn(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:hn(t)}function Ye(e,t,{during:n,start:r,end:i}={},o=()=>{},a=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(i).length===0){o(),a();return}let s,l,c;zr(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 zr(e,t){let n,r,i,o=Ue(()=>{_(()=>{n=!0,r||t.before(),i||(t.end(),We()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(a){this.beforeCancels.push(a)},cancel:Ue(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},_(()=>{t.start(),t.during()}),jr(),requestAnimationFrame(()=>{if(n)return;let a=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,s=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;a===0&&(a=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),_(()=>{t.before()}),r=!0,requestAnimationFrame(()=>{n||(_(()=>{t.end()}),We(),setTimeout(e._x_transitioning.finish,a+s),i=!0)})})}function te(e,t,n){if(e.indexOf(t)===-1)return n;let 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 Hr(e){return(...t)=>L&&e(...t)}var gn=[];function Ee(e){gn.push(e)}function Kr(e,t){gn.forEach(n=>n(e,t)),L=!0,_n(()=>{C(t,(n,r)=>{r(n,()=>{})})}),L=!1}var Je=!1;function qr(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),L=!0,Je=!0,_n(()=>{Wr(t)}),L=!1,Je=!1}function Wr(e){let t=!1;C(e,(r,i)=>{H(r,(o,a)=>{if(t&&Tr(o))return a();t=!0,i(o,a)})})}function _n(e){let t=K;xt((n,r)=>{let i=t(n);return J(i),()=>{}}),e(),xt(t)}function vn(e,t,n,r=[]){switch(e._x_bindings||(e._x_bindings=Y({})),e._x_bindings[t]=n,t=r.includes("camel")?Qr(t):t,t){case"value":Ur(e,n);break;case"style":Jr(e,n);break;case"class":Yr(e,n);break;case"selected":case"checked":Gr(e,t,n);break;default:yn(e,t,n);break}}function Ur(e,t){if(xn(e))e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=ve(e.value)===t:e.checked=Et(e.value,t));else if(ft(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=>Et(n,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")Zr(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function Yr(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=dt(e,t)}function Jr(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Se(e,t)}function Gr(e,t,n){yn(e,t,n),Xr(e,t,n)}function yn(e,t,n){[null,void 0,!1].includes(n)&&ti(t)?e.removeAttribute(t):(mn(t)&&(n=t),Vr(e,t,n))}function Vr(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function Xr(e,t,n){e[t]!==n&&(e[t]=n)}function Zr(e,t){let n=[].concat(t).map(r=>r+"");Array.from(e.options).forEach(r=>{r.selected=n.includes(r.value)})}function Qr(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Et(e,t){return e==t}function ve(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}var ei=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 mn(e){return ei.has(e)}function ti(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function ni(e,t,n){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:wn(e,t,n)}function ri(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,Jt(()=>F(e,i.expression))}return wn(e,t,n)}function wn(e,t,n){let r=e.getAttribute(t);return r===null?typeof n=="function"?n():n:r===""?!0:mn(t)?!![t,"true"].includes(r):r}function ft(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function xn(e){return e.type==="radio"||e.localName==="ui-radio"}function bn(e,t){var n;return function(){var 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,a,s=K(()=>{let l=e(),c=n();if(i)r(Ie(l)),i=!1;else{let u=JSON.stringify(l),f=JSON.stringify(c);u!==o?r(Ie(l)):u!==f&&t(Ie(c))}o=JSON.stringify(e()),a=JSON.stringify(n())});return()=>{J(s)}}function Ie(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function ii(e){(Array.isArray(e)?e:[e]).forEach(n=>n(ce))}var D={},Mt=!1;function oi(e,t){if(Mt||(D=Y(D),Mt=!0),t===void 0)return D[e];D[e]=t,Wt(D[e]),typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&D[e].init()}function ai(){return D}var Mn={};function si(e,t){let n=typeof t!="function"?()=>t:t;return e instanceof Element?An(e,n()):(Mn[e]=n,()=>{})}
5function li(e){return Object.entries(Mn).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...r)=>n(...r)}})}),e}function An(e,t,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(t).map(([a,s])=>({name:a,value:s})),o=Xt(i);return i=i.map(a=>o.find(s=>s.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),at(e,i,n).map(a=>{r.push(a.runCleanups),a()}),()=>{for(;r.length;)r.pop()()}}var Cn={};function ci(e,t){Cn[e]=t}function ui(e,t){return Object.entries(Cn).forEach(([n,r])=>{Object.defineProperty(e,n,{get(){return(...i)=>r.bind(t)(...i)},enumerable:!1})}),e}var di={get reactive(){return Y},get release(){return J},get effect(){return K},get raw(){return $t},version:"3.14.9",flushAndStopDeferringMutations:pr,dontAutoEvaluateFunctions:Jt,disableEffectScheduling:ar,startObservingMutations:nt,stopObservingMutations:Kt,setReactivityEngine:sr,onAttributeRemoved:zt,onAttributesAdded:Bt,closestDataStack:W,skipDuringClone:P,onlyDuringClone:Hr,addRootSelector:un,addInitSelector:dn,interceptClone:Ee,addScopeToNode:se,deferMutations:fr,mapAttributes:st,evaluateLater:x,interceptInit:Lr,setEvaluator:mr,mergeProxies:le,extractProp:ri,findClosest:V,onElRemoved:Qe,closestRoot:be,destroyTree:X,interceptor:Ut,transition:Ye,setStyles:Se,mutateDom:_,directive:y,entangle:En,throttle:Sn,debounce:bn,evaluate:F,initTree:C,nextTick:ut,prefixed:G,prefix:Sr,plugin:ii,magic:M,store:oi,start:kr,clone:qr,cloneNode:Kr,bound:ni,$data:qt,watch:Dt,walk:H,data:ci,bind:si},ce=di;function On(e,t){let n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}var fi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",_o=On(fi+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),pi=Object.freeze({}),vo=Object.freeze([]),hi=Object.prototype.hasOwnProperty,Me=(e,t)=>hi.call(e,t),B=Array.isArray,oe=e=>kn(e)==="[object Map]",gi=e=>typeof e=="string",pt=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",_i=Object.prototype.toString,kn=e=>_i.call(e),Tn=e=>kn(e).slice(8,-1),ht=e=>gi(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ce=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vi=/-(\w)/g,yo=Ce(e=>e.replace(vi,(t,n)=>n?n.toUpperCase():"")),yi=/\B([A-Z])/g,mo=Ce(e=>e.replace(yi,"-$1").toLowerCase()),Ln=Ce(e=>e.charAt(0).toUpperCase()+e.slice(1)),wo=Ce(e=>e?`on${Ln(e)}`:""),In=(e,t)=>e!==t&&(e===e||t===t),Ge=new WeakMap,ne=[],A,z=Symbol("iterate"),Ve=Symbol("Map key iterate");function mi(e){return e&&e._isEffect===!0}function wi(e,t=pi){mi(e)&&(e=e.raw);let n=Si(e,t);return t.lazy||n(),n}function xi(e){e.active&&(Pn(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var bi=0;function Si(e,t){let n=function(){if(!n.active)return e();if(!ne.includes(n)){Pn(n);try{return Mi(),ne.push(n),A=n,e()}finally{ne.pop(),jn(),A=ne[ne.length-1]}}};return n.id=bi++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function Pn(e){let{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var U=!0,gt=[];function Ei(){gt.push(U),U=!1}function Mi(){gt.push(U),U=!0}function jn(){let e=gt.pop();U=e===void 0?!0:e}function E(e,t,n){if(!U||A===void 0)return;let r=Ge.get(e);r||Ge.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has(A)||(i.add(A),A.deps.push(i),A.options.onTrack&&A.options.onTrack({effect:A,target:e,type:t,key:n}))}function I(e,t,n,r,i,o){let a=Ge.get(e);if(!a)return;let s=new Set,l=u=>{u&&u.forEach(f=>{(f!==A||f.allowRecurse)&&s.add(f)})};
5if(t==="clear")a.forEach(l);else if(n==="length"&&B(e))a.forEach((u,f)=>{(f==="length"||f>=r)&&l(u)});else switch(n!==void 0&&l(a.get(n)),t){case"add":B(e)?ht(n)&&l(a.get("length")):(l(a.get(z)),oe(e)&&l(a.get(Ve)));break;case"delete":B(e)||(l(a.get(z)),oe(e)&&l(a.get(Ve)));break;case"set":oe(e)&&l(a.get(z));break}let 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()};s.forEach(c)}var Ai=On("__proto__,__v_isRef,__isVue"),$n=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(pt)),Ci=Dn(),Oi=Dn(!0),At=ki();function ki(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){let r=h(this);for(let o=0,a=this.length;o<a;o++)E(r,"get",o+"");let i=r[t](...n);return i===-1||i===!1?r[t](...n.map(h)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ei();let r=h(this)[t].apply(this,n);return jn(),r}}),e}function Dn(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?Wi:Bn:t?qi:Fn).get(r))return r;let a=B(r);if(!e&&a&&Me(At,i))return Reflect.get(At,i,o);let s=Reflect.get(r,i,o);return(pt(i)?$n.has(i):Ai(i))||(e||E(r,"get",i),t)?s:Xe(s)?!a||!ht(i)?s.value:s:Ae(s)?e?zn(s):mt(s):s}}var Ti=Li();function Li(e=!1){return function(n,r,i,o){let a=n[r];if(!e&&(i=h(i),a=h(a),!B(n)&&Xe(a)&&!Xe(i)))return a.value=i,!0;let s=B(n)&&ht(r)?Number(r)<n.length:Me(n,r),l=Reflect.set(n,r,i,o);return n===h(o)&&(s?In(i,a)&&I(n,"set",r,i,a):I(n,"add",r,i)),l}}function Ii(e,t){let n=Me(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&I(e,"delete",t,void 0,r),i}function Pi(e,t){let n=Reflect.has(e,t);return(!pt(t)||!$n.has(t))&&E(e,"has",t),n}function ji(e){return E(e,"iterate",B(e)?"length":z),Reflect.ownKeys(e)}var $i={get:Ci,set:Ti,deleteProperty:Ii,has:Pi,ownKeys:ji},Di={get:Oi,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}},_t=e=>Ae(e)?mt(e):e,vt=e=>Ae(e)?zn(e):e,yt=e=>e,Oe=e=>Reflect.getPrototypeOf(e);function de(e,t,n=!1,r=!1){e=e.__v_raw;let i=h(e),o=h(t);t!==o&&!n&&E(i,"get",t),!n&&E(i,"get",o);let{has:a}=Oe(i),s=r?yt:n?vt:_t;if(a.call(i,t))return s(e.get(t));if(a.call(i,o))return s(e.get(o));e!==i&&e.get(t)}function fe(e,t=!1){let n=this.__v_raw,r=h(n),i=h(e);return e!==i&&!t&&E(r,"has",e),!t&&E(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&&E(h(e),"iterate",z),Reflect.get(e,"size",e)}function Ct(e){e=h(e);let t=h(this);return Oe(t).has.call(t,e)||(t.add(e),I(t,"add",e,e)),this}function Ot(e,t){t=h(t);let n=h(this),{has:r,get:i}=Oe(n),o=r.call(n,e);o?Nn(n,r,e):(e=h(e),o=r.call(n,e));let a=i.call(n,e);return n.set(e,t),o?In(t,a)&&I(n,"set",e,t,a):I(n,"add",e,t),this}function kt(e){let t=h(this),{has:n,get:r}=Oe(t),i=n.call(t,e);i?Nn(t,n,e):(e=h(e),i=n.call(t,e));let o=r?r.call(t,e):void 0,a=t.delete(e);return i&&I(t,"delete",e,void 0,o),a}function Tt(){let e=h(this),t=e.size!==0,n=oe(e)?new Map(e):new Set(e),r=e.clear();return t&&I(e,"clear",void 0,void 0,n),r}function he(e,t){return function(r,i){let o=this,a=o.__v_raw,s=h(a),l=t?yt:e?vt:_t;return!e&&E(s,"iterate",z),a.forEach((c,u)=>r.call(i,l(c),l(u),o))}}function ge(e,t,n){return function(...r){let i=this.__v_raw,o=h(i),a=oe(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=i[e](...r),u=n?yt:t?vt:_t;return!t&&E(o,"iterate",l?Ve:z),{next(){let{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:s?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function T(e){return function(...t){{let n=t[0]?`on key "${t[0]}" `:"";console.warn(`${Ln(e)} operation ${n}failed: target is readonly.`,h(this))}return e==="delete"?!1:this}}function Ri(){let e={get(o){return de(this,o)},get size(){return pe(this)},has:fe,add:Ct,set:Ot,delete:kt,clear:Tt,forEach:he(!1,!1)},t={get(o){return de(this,o,!1,!0)},get size(){return pe(this)},has:fe,add:Ct,set:Ot,delete:kt,clear:Tt,forEach:he(!1,!0)},n={get(o){return de(this,o,!0)},get size(){return pe(this,!0)},has(o){return fe.call(this,o,!0)},add:T("add"),set:T("set"),delete:T("delete"),clear:T("clear"),forEach:he(!0,!1)}
5,r={get(o){return de(this,o,!0,!0)},get size(){return pe(this,!0)},has(o){return fe.call(this,o,!0)},add:T("add"),set:T("set"),delete:T("delete"),clear:T("clear"),forEach:he(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=ge(o,!1,!1),n[o]=ge(o,!0,!1),t[o]=ge(o,!1,!0),r[o]=ge(o,!0,!0)}),[e,n,t,r]}var[Ni,Fi,Bi,zi]=Ri();function Rn(e,t){let n=t?e?zi:Bi:e?Fi:Ni;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Me(n,i)&&i in r?n:r,i,o)}var Hi={get:Rn(!1,!1)},Ki={get:Rn(!0,!1)};function Nn(e,t,n){let r=h(n);if(r!==n&&t.call(e,r)){let 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 Fn=new WeakMap,qi=new WeakMap,Bn=new WeakMap,Wi=new WeakMap;function Ui(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yi(e){return e.__v_skip||!Object.isExtensible(e)?0:Ui(Tn(e))}function mt(e){return e&&e.__v_isReadonly?e:Hn(e,!1,$i,Hi,Fn)}function zn(e){return Hn(e,!0,Di,Ki,Bn)}function Hn(e,t,n,r,i){if(!Ae(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let o=i.get(e);if(o)return o;let a=Yi(e);if(a===0)return e;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function h(e){return e&&h(e.__v_raw)||e}function Xe(e){return!!(e&&e.__v_isRef===!0)}M("nextTick",()=>ut);M("dispatch",e=>ie.bind(ie,e));M("watch",(e,{evaluateLater:t,cleanup:n})=>(r,i)=>{let o=t(r),s=Dt(()=>{let l;return o(c=>l=c),l},i);n(s)});M("store",ai);M("data",e=>qt(e));M("root",e=>be(e));M("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=le(Ji(e))),e._x_refs_proxy));function Ji(e){let t=[];return V(e,n=>{n._x_refs&&t.push(n._x_refs)}),t}var Pe={};function Kn(e){return Pe[e]||(Pe[e]=0),++Pe[e]}function Gi(e,t){return V(e,n=>{if(n._x_ids&&n._x_ids[t])return!0})}function Vi(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Kn(t))}M("id",(e,{cleanup:t})=>(n,r=null)=>{let i=`${n}${r?`-${r}`:""}`;return Xi(e,i,t,()=>{let o=Gi(e,n),a=o?o._x_ids[n]:Kn(n);return r?`${n}-${a}-${r}`:`${n}-${a}`})});Ee((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Xi(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}M("el",e=>e);qn("Focus","focus","focus");qn("Persist","persist","persist");function qn(e,t,n){M(t,r=>S(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}y("modelable",(e,{expression:t},{effect:n,evaluateLater:r,cleanup:i})=>{let o=r(t),a=()=>{let u;return o(f=>u=f),u},s=r(`${t} = __placeholder`),l=u=>s(()=>{},{scope:{__placeholder:u}}),c=a();l(c),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let u=e._x_model.get,f=e._x_model.set,p=En({get(){return u()},set(m){f(m)}},{get(){return a()},set(m){l(m)}});i(p)})});y("teleport",(e,{modifiers:t,expression:n},{cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&S("x-teleport can only be used on a <template> tag",e);let i=Lt(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(s=>{o.addEventListener(s,l=>{l.stopPropagation(),e.dispatchEvent(new l.constructor(l.type,l))})}),se(o,{},e);let a=(s,l,c)=>{c.includes("prepend")?l.parentNode.insertBefore(s,l):c.includes("append")?l.parentNode.insertBefore(s,l.nextSibling):l.appendChild(s)};_(()=>{a(o,i,t),P(()=>{C(o)})()}),e._x_teleportPutBack=()=>{let s=Lt(n);_(()=>{a(e._x_teleport,s,t)})},r(()=>_(()=>{o.remove(),X(o)}))});var Zi=document.createElement("div");function Lt(e){let t=P(()=>document.querySelector(e),()=>Zi)();return t||S(`Cannot find x-teleport element for selector: "${e}"`),t}var Wn=()=>{};Wn.inline=(e,{modifiers:t},{cleanup:n})=>
vendor: 6,056 bytes, line 5
5{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};y("ignore",Wn);y("effect",P((e,{expression:t},{effect:n})=>{n(x(e,t))}));function Ze(e,t,n,r){let i=e,o=l=>r(l),a={},s=(l,c)=>u=>c(l,u);if(n.includes("dot")&&(t=Qi(t)),n.includes("camel")&&(t=eo(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 l=n[n.indexOf("debounce")+1]||"invalid-wait",c=xe(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=bn(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=s(o,(l,c)=>{c.preventDefault(),l(c)})),n.includes("stop")&&(o=s(o,(l,c)=>{c.stopPropagation(),l(c)})),n.includes("once")&&(o=s(o,(l,c)=>{l(c),i.removeEventListener(t,o,a)})),(n.includes("away")||n.includes("outside"))&&(i=document,o=s(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=s(o,(l,c)=>{c.target===e&&l(c)})),(no(t)||Un(t))&&(o=s(o,(l,c)=>{ro(c,n)||l(c)})),i.addEventListener(t,o,a),()=>{i.removeEventListener(t,o,a)}}function Qi(e){return e.replace(/-/g,".")}function eo(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function xe(e){return!Array.isArray(e)&&!isNaN(e)}function to(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function no(e){return["keydown","keyup"].includes(e)}function Un(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}function ro(e,t){let n=t.filter(o=>!["window","document","prevent","stop","once","capture","self","away","outside","passive"].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&&It(e.key).includes(n[0]))return!1;let 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(a=>((a==="cmd"||a==="super")&&(a="meta"),e[`${a}Key`])).length===i.length&&(Un(e.type)||It(e.key).includes(n[0])))}function It(e){if(!e)return[];e=to(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)}y("model",(e,{modifiers:t,expression:n},{effect:r,cleanup:i})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let a=x(o,n),s;typeof n=="string"?s=x(o,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?s=x(o,`${n()} = __placeholder`):s=()=>{};let l=()=>{let p;return a(m=>p=m),Pt(p)?p.get():p},c=p=>{let m;a(k=>m=k),Pt(m)?m.set(p):s(()=>{},{scope:{__placeholder:p}})};typeof n=="string"&&e.type==="radio"&&_(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});var u=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let f=L?()=>{}:Ze(e,u,t,p=>{c(je(e,t,p,l()))});if(t.includes("fill")&&([void 0,null,""].includes(l())||ft(e)&&Array.isArray(l())||e.tagName.toLowerCase()==="select"&&e.multiple)&&c(je(e,t,{target:e},l())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=f,i(()=>e._x_removeModelListeners.default()),e.form){let p=Ze(e.form,"reset",[],m=>{ut(()=>e._x_model&&e._x_model.set(je(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,_(()=>vn(e,"value",p)),delete window.fromModel},r(()=>{let p=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(p)})});function je(e,t,n,r){return _(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(ft(e))if(Array.isArray(r)){let i=null;return t.includes("number")?i=$e(n.target.value):t.includes("boolean")?i=ve(n.target.value):i=n.target.value,n.target.checked?r.includes(i)?r:r.concat([i]):r.filter(o=>!io(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 $e(o)}):t.includes("boolean")?Array.from(n.target.selectedOptions).map(i=>{let o=i.value||i.text;return ve(o)}):Array.from(n.target.selectedOptions).map(i=>i.value||i.text);{let i;return xn(e)?n.target.checked?i=n.target.value:i=r:i=n.target.value,t.includes("number")?$e(i):t.includes("boolean")?ve(i):t.includes("trim")?i.trim():i}}})}function $e(e){let t=e?parseFloat(e):null;return oo(t)?t:e}function io(e,t){return e==t}function oo(e){return!Array.isArray(e)&&!isNaN(e)}function Pt(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}y("cloak",e=>queueMicrotask(()=>_(()=>e.removeAttribute(G("cloak")))));dn(()=>`[${G("init")}]`);y("init",P((e,{expression:t},{evaluate:n})=>typeof t=="string"?!!t.trim()&&n(t,{},!1):n(t,{},!1)));y("text",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(o=>{_(()=>{e.textContent=o})})})});y("html",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(o=>{_(()=>{e.innerHTML=o,e._x_ignoreSelf=!0,C(e),delete e._x_ignoreSelf})})})});st(en(":",tn(G("bind:"))));var Yn=(e,{value:t,modifiers:n,expression:r,original:i},{effect:o,cleanup:a})=>{if(!t){let l={};li(l),x(e,r)(u=>{An(e,u,i)},{scope:l});return}if(t==="key")return ao(e,r);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let s=x(e,r);o(()=>s(l=>{l===void 0&&typeof r=="string"&&r.match(/\./)&&(l=""),_(()=>vn(e,t,l,n))})),a(()=>
5{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};Yn.inline=(e,{value:t,modifiers:n,expression:r})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:r,extract:!1})};y("bind",Yn);function ao(e,t){e._x_keyExpression=t}un(()=>`[${G("data")}]`);y("data",(e,{expression:t},{cleanup:n})=>{if(so(e))return;t=t===""?"{}":t;let r={};ze(r,e);let i={};ui(i,r);let o=F(e,t,{scope:i});(o===void 0||o===!0)&&(o={}),ze(o,e);let a=Y(o);Wt(a);let s=se(e,a);a.init&&F(e,a.init),n(()=>{a.destroy&&F(e,a.destroy),s()})});Ee((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function so(e){return L?Je?!0:e.hasAttribute("data-has-alpine-state"):!1}y("show",(e,{modifiers:t,expression:n},{effect:r})=>{let i=x(e,n);e._x_doHide||(e._x_doHide=()=>{_(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{_(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let o=()=>{e._x_doHide(),e._x_isShown=!1},a=()=>{e._x_doShow(),e._x_isShown=!0},s=()=>setTimeout(a),l=Ue(f=>f?a():o(),f=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,f,a,o):f?s():o()}),c,u=!0;r(()=>i(f=>{!u&&f===c||(t.includes("immediate")&&(f?s():o()),l(f),c=f,u=!1)}))});y("for",(e,{expression:t},{effect:n,cleanup:r})=>{let i=co(t),o=x(e,i.items),a=x(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n(()=>lo(e,i,o,a)),r(()=>{Object.values(e._x_lookup).forEach(s=>_(()=>{X(s),s.remove()})),delete e._x_prevKeys,delete e._x_lookup})});function lo(e,t,n,r){let i=a=>typeof a=="object"&&!Array.isArray(a),o=e;n(a=>{uo(a)&&a>=0&&(a=Array.from(Array(a).keys(),d=>d+1)),a===void 0&&(a=[]);let s=e._x_lookup,l=e._x_prevKeys,c=[],u=[];if(i(a))a=Object.entries(a).map(([d,g])=>{let v=jt(t,g,d,a);r(w=>{u.includes(w)&&S("Duplicate key on x-for",e),u.push(w)},{scope:{index:d,...v}}),c.push(v)});else for(let d=0;d<a.length;d++){let g=jt(t,a[d],d,a);r(v=>{u.includes(v)&&S("Duplicate key on x-for",e),u.push(v)},{scope:{index:d,...g}}),c.push(g)}let f=[],p=[],m=[],k=[];for(let d=0;d<l.length;d++){let g=l[d];u.indexOf(g)===-1&&m.push(g)}l=l.filter(d=>!m.includes(d));let ue="template";for(let d=0;d<u.length;d++){let g=u[d],v=l.indexOf(g);if(v===-1)l.splice(d,0,g),f.push([ue,d]);else if(v!==d){let w=l.splice(d,1)[0],b=l.splice(v-1,1)[0];l.splice(d,0,b),l.splice(v,0,w),p.push([w,b])}else k.push(g);ue=g}for(let d=0;d<m.length;d++){let g=m[d];g in s&&(_(()=>{X(s[g]),s[g].remove()}),delete s[g])}for(let d=0;d<p.length;d++){let[g,v]=p[d],w=s[g],b=s[v],q=document.createElement("div");_(()=>{b||S('x-for ":key" is undefined or invalid',o,v,s),b.after(q),w.after(b),b._x_currentIfEl&&b.after(b._x_currentIfEl),q.before(w),w._x_currentIfEl&&w.after(w._x_currentIfEl),q.remove()}),b._x_refreshXForScope(c[u.indexOf(v)])}for(let d=0;d<f.length;d++){let[g,v]=f[d],w=g==="template"?o:s[g];w._x_currentIfEl&&(w=w._x_currentIfEl);let b=c[v],q=u[v],Q=document.importNode(o.content,!0).firstElementChild,wt=Y(b);se(Q,wt,o),Q._x_refreshXForScope=Zn=>{Object.entries(Zn).forEach(([Qn,er])=>{wt[Qn]=er})},_(()=>{w.after(Q),P(()=>C(Q))()}),typeof q=="object"&&S("x-for key cannot be an object, it must be a string or an integer",o),s[q]=Q}for(let d=0;d<k.length;d++)s[k[d]]._x_refreshXForScope(c[u.indexOf(k[d])]);o._x_prevKeys=u})}function co(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);return s?(o.item=a.replace(t,"").trim(),o.index=s[1].trim(),s[2]&&(o.collection=s[2].trim())):o.item=a,o}function jt(e,t,n,r){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(a=>a.trim()).forEach((a,s)=>{i[a]=t[s]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(a=>
5a.trim()).forEach(a=>{i[a]=t[a]}):i[e.item]=t,e.index&&(i[e.index]=n),e.collection&&(i[e.collection]=r),i}function uo(e){return!Array.isArray(e)&&!isNaN(e)}function Jn(){}Jn.inline=(e,{expression:t},{cleanup:n})=>{let r=be(e);r._x_refs||(r._x_refs={}),r._x_refs[t]=e,n(()=>delete r._x_refs[t])};y("ref",Jn);y("if",(e,{expression:t},{effect:n,cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&S("x-if can only be used on a <template> tag",e);let i=x(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let s=e.content.cloneNode(!0).firstElementChild;return se(s,{},e),_(()=>{e.after(s),P(()=>C(s))()}),e._x_currentIfEl=s,e._x_undoIf=()=>{_(()=>{X(s),s.remove()}),delete e._x_currentIfEl},s},a=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>i(s=>{s?o():a()})),r(()=>e._x_undoIf&&e._x_undoIf())});y("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(i=>Vi(e,i))});Ee((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});st(en("@",tn(G("on:"))));y("on",P((e,{value:t,modifiers:n,expression:r},{cleanup:i})=>{let o=r?x(e,r):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let a=Ze(e,t,n,s=>{o(()=>{},{scope:{$event:s},params:[s]})});i(()=>a())}));ke("Collapse","collapse","collapse");ke("Intersect","intersect","intersect");ke("Focus","trap","focus");ke("Mask","mask","mask");function ke(e,t,n){y(t,r=>S(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}ce.setEvaluator(Vt);ce.setReactivityEngine({reactive:mt,effect:wi,release:xi,raw:h});var fo=ce,j=fo;var Gn={modalManager:null,init(e){this.modalManager=e,this.registerAlpineComponent(),this.registerWindowFunctions()},registerAlpineComponent(){Alpine.data("couponModal",()=>({isOpen:!1,couponImage:"",closeModal:()=>{this.modalManager.closeCurrentModal()}}))},registerWindowFunctions(){window.openCouponModal=(e,t)=>{this.openFromElement(e,t)},window.CouponModal=this},open(e){let t={html:` 6 <div 7 x-show="isOpen" 8 x-transition:enter="transition ease-out duration-300" 9 x-transition:enter-start="opacity-0" 10 x-transition:enter-end="opacity-100" 11 x-transition:leave="transition ease-in duration-200" 12 x-transition:leave-start="opacity-100" 13 x-transition:leave-end="opacity-0" 14 class="fixed inset-0 z-50 flex items-center justify-center modal-backdrop print:block" 15 @keydown.escape.window="closeModal" 16 > 17 <div class="absolute inset-0 bg-black/30 print:hidden" @click="closeModal"></div> 18 <div class="relative bg-white rounded-lg shadow-xl max-w-2xl max-h-[90vh] overflow-auto print:block print:rounded-none print:bg-transparent print:shadow-none print:overflow-visible" @click.stop> 19 <button @click="closeModal" class="absolute top-1 right-1 text-gray-500 hover:text-gray-700 z-10 p-0 close-btn print:hidden"> 20 <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"> 21 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path> 22 </svg> 23 </button> 24 <div class="p-7 print:block"> 25 <img :src="couponImage" alt="Coupon Image" class="w-full h-auto rounded print:block print:max-w-full print:h-auto" style="print-color-adjust: exact; -webkit-print-color-adjust: exact;" loading="eager" decoding="sync"> 26 </div> 27 </div> 28 </div> 29 `,alpineData:"couponModal()",containerClasses:["print:!block"],data:{couponImage:e},onCreated:(n,r)=>{this.setupPrintFunctionality(n,e)}};return this.modalManager.openModal(t)},setupPrintFunctionality(e,t){let n=()=>{this.modalManager.closeCurrentModal(),window.removeEventListener("afterprint",n)};window.addEventListener("afterprint",n),e.$nextTick(()=>{let r=new Image;r.onload=()=>{setTimeout(()=>window.print(),150)},r.onerror=()=>{console.error("Error loading coupon image"),setTimeout(()=>window.print(),100)},r.src=t,setTimeout(()=>{r.complete||(console.warn("Coupon image load timeout, printing anyway"),window.print())},3e3)})},openFromElement(e,t){t&&(t.preventDefault(),t.stopPropagation());let n=e.getAttribute("data-couponimg");n&&this.open(n)}};var $={modalManager:null,API_BASE_URL:"/login",init(e){this.modalManager=e,this.registerAlpineComponent(),this.registerWindowFunctions()},registerAlpineComponent(){Alpine.data("loginModal",()=>({isOpen:!1,isLoading:!0,hasError:!1,closeModal(){$.modalManager.closeCurrentModal()},async loadContent(){this.isLoading=!0,this.hasError=!1;try{let e=await fetch($.API_BASE_URL,{method:"POST"});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);let t=await e.text();this.updateContent(t),this.isLoading=!1,this.attachLoginButtonListeners()}catch(e){console.error("Error loading modal content:",e),this.hasError=!0,this.isLoading=!1}},updateContent(e){let t=this.$el.querySelector(".dynamic-content");t?t.innerHTML=e:console.error("Could not find .dynamic-content element")},attachLoginButtonListeners(){let e=this.$el.querySelector('input[name="optin"]'),t=e?e.checked:!1;this.$el.querySelectorAll(".login-btn").forEach(r=>{r.addEventListener("click",async i=>{i.preventDefault();let o={return_path:window.location.pathname,content_id:r.getAttribute("data-id"),content_type:r.getAttribute("data-type"),optin:t,target:r.getAttribute("data-href")};try{r.disabled=!0,r.textContent="Processing...";let a=await fetch($.API_BASE_URL+"/go",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);let s=await a.text();this.closeModal(),window.location.href=s.trim()}catch(a){console.error("Error during login:",a),r.disabled=!1,r.textContent="Error - Try Again",setTimeout(()=>{r.textContent=r.getAttribute("data-original-text")||"Sign In"},3e3)}}),r.setAttribute("data-original-text",r.textContent)})}})),Alpine.data("authButton",()=>({handleClick(){$.isLoggedIn()?$.redirectUser():$.open()}}))},registerWindowFunctions(){window.setLoggedOut=()=>{window.uid="",location.reload()},window.setLoggedIn=()=>{window.uid=12345,location.reload()},window.LoginModal=this},open(){let e={html:` 30 <div 31 x-show="isOpen" 32 x-transition:enter="transition ease-out duration-300" 33 x-transition:enter-start="opacity-0" 34 x-transition:enter-end="opacity-100" 35 x-transition:leave="transition ease-in duration-200" 36 x-transition:leave-start="opacity-100" 37 x-transition:leave-end="opacity-0" 38 class="fixed inset-0 z-50 flex items-center justify-center overflow-y-auto" 39 @keydown.escape.window="closeModal" 40 > 41 <div class="fixed inset-0 bg-black/30 transition-opacity" @click="closeModal()"></div> 42 <div class="relative bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all max-w-lg w-full mx-4" @click.stop> 43 <!-- Loading State --> 44 <div x-show="isLoading"> 45 <div class="px-6 py-4"> 46 <div class="flex items-center justify-between mb-4"> 47 <button @click="closeModal()" 48 class="text-gray-400 hover:text-gray-600 transition-colors"> 49 <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"> 50 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path> 51 </svg> 52 </button> 53 </div> 54 <div class="flex items-center justify-center py-8"> 55 <div class="animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600"></div> 56 <span class="ml-3 text-gray-600">Loading...</span> 57 </div> 58 </div> 59 </div> 60 61 <!-- Error State --> 62 <div x-show="hasError && !isLoading"> 63 <div class="px-6 py-4"> 64 <div class="flex items-center justify-between mb-4"> 65 <button @click="closeModal()" 66 class="text-gray-400 hover:text-gray-600 transition-colors"> 67 <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"> 68 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path> 69 </svg> 70 </button> 71 </div> 72 <div class="text-center py-8"> 73 <div class="text-red-500 mb-2"> 74 <svg class="w-8 h-8 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24"> 75 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path> 76 </svg> 77 </div> 78 <p class="text-gray-600 mb-4">Unable to load content. Please try again.</p> 79 <button @click="location.reload()" 80 class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg text-sm"> 81 Retry 82 </button> 83 </div> 84 </div> 85 </div> 86 87 <div x-show="!isLoading && !hasError" class="dynamic-content"> 88 </div> 89 </div>
90 </div> 91 `,alpineData:"loginModal()",onCreated:(t,n)=>{try{t.loadContent()}catch(r){console.error("Error in onCreated:",r),setTimeout(()=>{console.log("Fallback: loading mock content immediately"),t.updateContent(t.getMockHtml()),t.isLoading=!1},100)}}};return this.modalManager.openModal(e)},isLoggedIn(){return window.uid&&window.uid!==""},redirectUser(){alert("Redirecting to: /premium-content")}};var Te={modalManager:null,STORAGE_KEY:"newsletter_modal_last_shown",DISPLAY_DELAY:8e3,COOLDOWN_DAYS:30,init(e){this.modalManager=e,this.registerAlpineComponent(),this.registerWindowFunctions(),this.scheduleAutoDisplay()},registerAlpineComponent(){Alpine.data("newsletterModal",()=>({isOpen:!1,isLoading:!0,hasError:!1,closeModal(){Te.modalManager.closeCurrentModal()},async loadContent(){this.isLoading=!0,this.hasError=!1;try{let e=await fetch("/ajax/newsletter.php",{method:"GET"});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);let t=await e.text();this.updateContent(t),this.isLoading=!1,Te.recordModalShown()}catch(e){console.error("Error loading newsletter modal content:",e),this.hasError=!0,this.isLoading=!1}},updateContent(e){let t=this.$el.querySelector(".dynamic-content");t?t.innerHTML=e:console.error("Could not find .dynamic-content element")}}))},registerWindowFunctions(){window.clearNewsletterStorage=()=>{localStorage.removeItem(this.STORAGE_KEY)},window.forceShowNewsletter=()=>{this.open(!0)},window.NewsletterModal=this},scheduleAutoDisplay(){window.newsletterModalEnabled&&this.shouldShowModal()&&(console.log(`Newsletter modal: Scheduled to show in ${this.DISPLAY_DELAY}ms`),setTimeout(()=>{this.open()},this.DISPLAY_DELAY))},shouldShowModal(){let e=localStorage.getItem(this.STORAGE_KEY);if(!e)return!0;let t=new Date(parseInt(e));return(new Date-t)/(1e3*60*60*24)>=this.COOLDOWN_DAYS},recordModalShown(){let e=new Date().getTime();localStorage.setItem(this.STORAGE_KEY,e.toString())},open(e=!1){if(!e&&!this.shouldShowModal())return;let t={html:` 92 <div 93 x-show="isOpen" 94 x-transition:enter="transition ease-out duration-300" 95 x-transition:enter-start="opacity-0 scale-95" 96 x-transition:enter-end="opacity-100 scale-100" 97 x-transition:leave="transition ease-in duration-200" 98 x-transition:leave-start="opacity-100 scale-100" 99 x-transition:leave-end="opacity-0 scale-95" 100 class="fixed inset-0 z-50 flex items-center justify-center overflow-y-auto" 101 @keydown.escape.window="closeModal" 102 > 103 <div class="fixed inset-0 bg-black/40 transition-opacity" @click="closeModal()"></div> 104 <div class="relative bg-rhino rounded-lg p-7.5 overflow-hidden shadow-xl transform transition-all max-w-[42rem] w-full mx-4" @click.stop> 105 <!-- Loading State --> 106 <div x-show="isLoading"> 107 <div class="px-6 py-4"> 108 <div class="flex items-center justify-between mb-4"> 109 <h3 class="text-lg font-semibold text-gray-900">Newsletter</h3> 110 <button @click="closeModal()" 111 class="text-gray-400 hover:text-gray-600 transition-colors aria-label="close""> 112 <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"> 113 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path> 114 </svg> 115 </button> 116 </div> 117 <div class="flex items-center justify-center py-8"> 118 <div class="animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600"></div> 119 <span class="ml-3 text-gray-600">Loading...</span> 120 </div> 121 </div> 122 </div> 123 124 <!-- Error State --> 125 <div x-show="hasError && !isLoading"> 126 <div class="px-6 py-4"> 127 <div class="flex items-center justify-between mb-4"> 128 <h3 class="text-lg font-semibold text-gray-900">Newsletter</h3> 129 <button @click="closeModal()" 130 class="text-gray-400 hover:text-gray-600 transition-colors" aria-label="close"> 131 <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"> 132 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path> 133 </svg> 134 </button> 135 </div> 136 <div class="text-center py-8"> 137 <div class="text-red-500 mb-2"> 138 <svg class="w-8 h-8 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24"> 139 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path> 140 </svg> 141 </div> 142 <p class="text-gray-600 mb-4">Unable to load newsletter content. Please try again later.</p> 143 <button @click="closeModal()" 144 class="bg-gray-600 hover:bg-gray-700 text-white px-4 py-2 rounded-lg text-sm" aria-label="close"> 145 Close 146 </button> 147 </div> 148 </div> 149 </div> 150 151 <!-- Dynamic Content Container --> 152 <div x-show="!isLoading && !hasError"> 153 <!-- Close button for dynamic content --> 154 <div class="flex items-center justify-end"> 155 <button @click="closeModal()" 156 class="text-gray-400 hover:text-gray-600 transition-colors"> 157 <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"> 158 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path> 159 </svg> 160 </button> 161 </div> 162 <div class="dynamic-content"> 163 </div> 164 </div> 165 </div>
166 </div> 167 `,alpineData:"newsletterModal()",onCreated:(n,r)=>{try{n.loadContent()}catch(i){console.error("Error in newsletter modal onCreated:",i),n.hasError=!0,n.isLoading=!1}}};return this.modalManager.openModal(t)}};var O={modalManager:null,COOKIE_NAME:"cc_prefs",ENDPOINT:"/ajax/consent.php",PRIVACY_URL:"/privacy.html",TRIGGER_CLASS:"do-not-share",DEMO_MODE:!1,init(e){this.modalManager=e,this.registerAlpineComponent(),this.registerWindowFunctions(),this.bindTriggers(),this.updateTriggerLinks()},getPrefs(){let e=document.cookie.split("; ").find(t=>t.startsWith(this.COOKIE_NAME+"="));if(!e)return null;try{return JSON.parse(atob(e.split("=")[1]))}catch{return null}},isOptedOut(){if(this.DEMO_MODE)return this._demoOptedOut??!1;let e=this.getPrefs();return e!==null&&e.optout===!0},updateTriggerLinks(){let e=this.isOptedOut();document.querySelectorAll("."+this.TRIGGER_CLASS).forEach(t=>{t.textContent=e?"Re-enable Personalized Ads":"Do Not Sell or Share"})},bindTriggers(){document.addEventListener("click",e=>{e.target.closest("."+this.TRIGGER_CLASS)&&(e.preventDefault(),this.open())})},registerAlpineComponent(){Alpine.data("ccpaModal",()=>({isOpen:!1,isOptedOut:O.isOptedOut(),isSaving:!1,closeModal(){O.modalManager.closeCurrentModal()},get heading(){return this.isOptedOut?"Re-enable Personalized Ads":"Do Not Sell or Share My Personal Information"},get bodyText(){return this.isOptedOut?"By confirming, you will re-enable personalized advertising on this site. We will resume sharing your browsing data with our third-party advertising partners so that you see ads relevant to your interests. You can opt out again at any time using the link below.":"By confirming, you will opt out of the sale and sharing of your personal information from this site. We will no longer share your browsing data with our third-party advertising partners. You will still see ads on our site, but they will not be personalized based on your past browsing behavior."},get confirmLabel(){return this.isOptedOut?"Re-enable Personalized Ads":"Confirm Opt-Out"},async confirm(){this.isSaving=!0;let e=this.isOptedOut;try{O.DEMO_MODE?(await new Promise(t=>setTimeout(t,600)),console.log("[CCPA demo] would POST",{analytics:e,advertising:e})):(await fetch(O.ENDPOINT,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({optout:!e})}),window.adsbygoogle&&window.adsbygoogle.push({requestNonPersonalizedAds:e?0:1}))}catch(t){console.error("CCPA: failed to save prefs",t)}finally{this.isSaving=!1,this.closeModal(),O.DEMO_MODE&&(O._demoOptedOut=!e),O.updateTriggerLinks()}}}))},registerWindowFunctions(){window.CcpaModal=this},open(){let e={html:` 168 <div 169 x-show="isOpen" 170 x-transition:enter="transition ease-out duration-300" 171 x-transition:enter-start="opacity-0" 172 x-transition:enter-end="opacity-100" 173 x-transition:leave="transition ease-in duration-200" 174 x-transition:leave-start="opacity-100" 175 x-transition:leave-end="opacity-0" 176 class="fixed inset-0 z-50 flex items-center justify-center overflow-y-auto" 177 @keydown.escape.window="closeModal()" 178 > 179 <div class="fixed inset-0 bg-black/40 transition-opacity" @click="closeModal()"></div> 180 181 <div class="relative bg-white rounded-lg shadow-xl max-w-lg w-full mx-4 p-6" @click.stop> 182 183 <!-- Header --> 184 <div class="flex items-start justify-between mb-4"> 185 <h2 class="text-base font-semibold text-gray-900 pr-6" x-text="heading"></h2> 186 <button 187 @click="closeModal()" 188 class="text-gray-400 hover:text-gray-600 transition-colors shrink-0" 189 aria-label="Close" 190 > 191 <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"> 192 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/> 193 </svg> 194 </button> 195 </div> 196 197 <!-- Body --> 198 <p class="text-sm text-gray-600 leading-relaxed mb-3" x-text="bodyText"></p> 199 <p class="text-sm text-gray-600"> 200 For full details on how we collect and use your data, please review our 201 <a href="${this.PRIVACY_URL}" class="text-blue-600 hover:underline">Privacy Policy</a>. 202 </p> 203 204 <!-- Actions --> 205 <div class="flex items-center justify-end gap-3 mt-6"> 206 <button 207 @click="closeModal()" 208 class="text-sm text-gray-600 hover:text-gray-900 px-4 py-2 rounded border border-gray-300 hover:border-gray-400 transition-colors" 209 > 210 Cancel 211 </button> 212 <button 213 @click="confirm()" 214 :disabled="isSaving" 215 class="text-sm text-white bg-gray-900 hover:bg-gray-700 disabled:opacity-50 disabled:cursor-not-allowed px-4 py-2 rounded transition-colors" 216 x-text="isSaving ? 'Saving\u2026' : confirmLabel" 217 > 218 </button> 219 </div> 220 221 </div>
222 </div> 223 `,alpineData:"ccpaModal()"};return this.modalManager.openModal(e)}};function po(e){let t=document.querySelectorAll(e),n=0;t.length>1&&(t.forEach(r=>{n=Math.max(n,r.offsetHeight)}),t.forEach(r=>{r.style.height=n+"px"}))}window.equalHeights=po;var Vn=document.querySelector("#mobile-share > button.click-to-share");Vn&&Vn.addEventListener("click",function(e){let t=e.currentTarget.dataset;navigator.share&&navigator.share({title:t.title,url:t.url}).then(()=>{}).catch(console.error)});var Xn=document.querySelector("#desktop-share");Xn&&Xn.addEventListener("click",function(e){this.classList.toggle("open")});document.querySelectorAll(".copy_link").forEach(function(e){e.addEventListener("click",function(t){t.preventDefault();let n=this.getAttribute("href"),r=function(i){i.clipboardData.setData("text/plain",n),i.preventDefault(),document.removeEventListener("copy",r,!0)};document.addEventListener("copy",r,!0),document.execCommand("copy"),alert(n+" copied!")})});function ho(){return{currentModal:null,currentModalId:null,openModal(e){this.closeCurrentModal();let t=`modal-${Date.now()}`,n=document.createElement("div");n.innerHTML=e.html,n.setAttribute("x-data",e.alpineData||"universalModal()"),n.id=t,e.containerClasses&&n.classList.add(...e.containerClasses),document.body.appendChild(n),j.initTree(n);let r=j.$data(n);return r.isOpen=!0,e.data&&Object.assign(r,e.data),this.currentModal=r,this.currentModalId=t,e.onCreated&&e.onCreated(r,n),r},closeCurrentModal(){if(this.currentModalId){let e=document.getElementById(this.currentModalId);e&&this.currentModal&&(this.currentModal.isOpen=!1,setTimeout(()=>{e.parentNode&&e.remove()},300)),this.currentModal=null,this.currentModalId=null}}}}var Z=ho();window.modalManager=Z;j.data("universalModal",()=>({isOpen:!1,closeModal(){Z.closeCurrentModal()}}));j.data("favoritesManager",()=>({init(){!window.favoritesInitialized&&!window.favoritesInitializing&&(window.favoritesInitializing=!0,this.checkInitialFavoriteStatus()),this.$el.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault()})},isLoggedIn(){return window.uid&&parseInt(window.uid)>0},async checkInitialFavoriteStatus(){if(!this.isLoggedIn()){window.favoritesInitialized=!0,window.favoritesInitializing=!1;return}try{let e={user_id:window.uid,action:"get"},n=await(await fetch("/ajax/favorites.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();n.favorites&&Array.isArray(n.favorites)&&n.favorites.forEach(r=>{let i=document.querySelector(`#${r}`);i&&i._x_dataStack&&i._x_dataStack[0].markAsSelected()}),window.favoritesInitialized=!0,window.favoritesInitializing=!1}catch(e){console.error("Error checking initial favorite status:",e),window.favoritesInitialized=!0,window.favoritesInitializing=!1}},async toggleFavorite(){let e=this.$el.dataset.id,t=this.$el.dataset.type;if(!this.isLoggedIn()){sessionStorage.setItem("pendingFavorite",JSON.stringify({contentId:e,contentType:t})),window.LoginModal?window.LoginModal.open():alert("Please log in to manage favorites");return}this.$el.classList.contains("selected")?confirm("Are you sure you want to remove this favorite?")&&await this.removeFavorite(e,t):await this.addFavorite(e,t)},async addFavorite(e,t){try{let n={user_id:window.uid,content_id:e,content_type:t,action:"add"};if((await fetch("/ajax/favorites.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})).ok)this.markAsSelected(),this.showActionDialog("Favorite added");else throw new Error("Server error")}catch(n){console.error("Error adding favorite:",n),alert("Error adding favorite. Please try again.")}},async removeFavorite(e,t){try{let n={user_id:window.uid,content_id:e,content_type:t,action:"remove"};if((await fetch("/ajax/favorites.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})).ok){if(this.markAsUnselected(),this.showActionDialog("Favorite removed"),this.$el.dataset.removeContainer==="true"){let i=this.$el.dataset.containerSelector||".favorite-item",o=this.$el.closest(i);o&&(o.style.transition="opacity 0.3s ease-out",o.style.opacity="0",setTimeout(()=>{o.remove(),window.scrollTo({top:0,behavior:"smooth"})},300))}}else throw new Error("Server error")}catch(n){console.error("Error removing favorite:",n),alert("Error removing favorite. Please try again.")}},markAsSelected(){this.$el.classList.add("selected")},markAsUnselected(){this.$el.classList.remove("selected")},showActionDialog(e){let t=document.createElement("div");t.innerHTML=` 224 <div x-data="{ visible: false, message: '${e}' }" 225 x-show="visible" 226 x-transition:enter="transition ease-out duration-300" 227 x-transition:enter-start="transform -translate-y-full" 228 x-transition:enter-end="transform translate-y-0" 229 x-transition:leave="transition ease-in duration-300" 230 x-transition:leave-start="transform translate-y-0" 231 x-transition:leave-end="transform -translate-y-full" 232 class="fixed top-0 left-0 right-0 z-50 bg-denim text-white p-4 shadow-lg"> 233 <div class="container mx-auto text-center"> 234 <p x-text="message" class="font-medium p-0 m-0"></p> 235 </div> 236 </div> 237 `,document.body.appendChild(t),setTimeout(()=>{let n=t.querySelector("[x-data]");n&&n._x_dataStack&&(n._x_dataStack[0].visible=!0,setTimeout(()=>{n._x_dataStack[0].visible=!1,setTimeout(()=>{t.remove()},300)},1500))},10)}}));window.processPendingFavorite=async function(){let e=sessionStorage.getItem("pendingFavorite");if(e&&window.uid&&parseInt(window.uid)>0)try{let{contentId:t,contentType:n}=JSON.parse(e),r={user_id:window.uid,content_id:t,content_type:n,action:"add"};if((await fetch("/ajax/favorites.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})).ok){let o=document.querySelector(`[data-content-id="${t}"]`);o&&o._x_dataStack&&(o._x_dataStack[0].markAsSelected(),o._x_dataStack[0].showActionDialog("Favorite added"))}}catch(t){console.error("Error processing pending favorite:",t)}finally{sessionStorage.removeItem("pendingFavorite")}};document.addEventListener("alpine:init",()=>{j.data("utils",()=>({showMenu:window.innerWidth>1199,prevWidth:window.innerWidth,maybeOpen(){let e=window.innerWidth;e!==this.prevWidth&&(this.prevWidth=e,e>1199&&!this.showMenu?this.showMenu=!0:e<1199&&this.showMenu&&(this.showMenu=!1))}})),Gn.init(Z),$.init(Z),Te.init(Z),O.init(Z)});var go=()=>
237{if(document.getElementById("loading-spinner"))return;if(!document.querySelector("#spinner-keyframes")){let t=document.createElement("style");t.id="spinner-keyframes",t.textContent=` 238 @keyframes spin { 239 0% { transform: rotate(0deg); } 240 100% { transform: rotate(360deg); } 241 } 242 `,document.head.appendChild(t)}document.body.insertAdjacentHTML("beforeend",` 243 <div id="loading-spinner" style=" 244 position: fixed; 245 inset: 0; 246 z-index: 9999; 247 display: none; 248 align-items: center; 249 justify-content: center; 250 backdrop-filter: blur(4px); 251 background-color: rgba(0, 0, 0, 0.3); 252 transition: opacity 0.3s ease-out; 253 opacity: 0; 254 "> 255 <div style="text-align: center;"> 256 <div style=" 257 width: 40px; 258 height: 40px; 259 border: 4px solid #f3f4f6; 260 border-top: 4px solid #3b82f6; 261 border-radius: 50%; 262 animation: spin 1s linear infinite; 263 margin: 0 auto 16px auto; 264 "></div> 265 <p style=" 266 color: white; 267 font-size: 18px; 268 font-weight: 500; 269 margin: 0; 270 ">Loading...</p> 271 </div> 272 </div> 273 `)};window.Alpine=j;document.addEventListener("DOMContentLoaded",()=>{j.start(),window.processPendingFavorite(),window.showSpinner=()=>{go();let e=document.getElementById("loading-spinner");setTimeout(()=>{e&&(e.style.display="flex",requestAnimationFrame(()=>{e.style.opacity="1"}))},300)},window.hideSpinner=()=>{let e=document.getElementById("loading-spinner");e&&(e.style.opacity="0",e.style.display="none")}});})();
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.