PageSourceSearch

https://www.heifer.org/build/js/app.BwAPlRkK.js

js heifer.org collected 2026-10-01 08:38:29 UTC 111,570 bytes, 87 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/chunks/CardsCarousel.sNaugP7k.js","js/chunks/navigation.D9Bj-l-3.js","assets/navigation-BMD19QWe.css","js/chunks/Carousel.BdtO5gf3.js","js/chunks/GravityForm.C8UArarJ.js","assets/GravityForm-VpSvChx4.css","js/chunks/InputSlider.BmAc3Q2W.js","assets/InputSlider-BIhInlXc.css","js/chunks/braintree.BbMYnQjU.js","js/chunks/scriptLoader.CEGOwrHn.js","js/chunks/blackbaud.YEmCmJQU.js","js/chunks/dafpay.C7_zvc6x.js"])))=>i.map(i=>d[i]);
2var Ai=Object.defineProperty;var xi=(e,t,r)=>t in e?Ai(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ft=(e,t,r)=>xi(e,typeof t!="symbol"?t+"":t,r);const Ci="modulepreload",Ii=function(e){return"https://www.heifer.org/build/"+e},lr={},p=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(r.map(u=>{if(u=Ii(u),u in lr)return;lr[u]=!0;const c=u.endsWith(".css"),l=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${l}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Ci,c||(d.as="script"),d.crossOrigin="",d.href=u,s&&d.setAttribute("nonce",s),document.head.appendChild(d),c)return new Promise((_,v)=>{d.addEventListener("load",_),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},Ti=(e,t,r)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((i,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==r?". Note that variables only represent file names one level deep.":""))))})};function Oi(){return!0}function Pi({component:e,argument:t}){return new Promise(r=>{if(t)window.addEventListener(t,()=>r(),{once:!0});else{const n=i=>{i.detail.id===e.id&&(window.removeEventListener("async-alpine:load",n),r())};window.addEventListener("async-alpine:load",n)}})}function Ri(){return new Promise(e=>{"requestIdleCallback"in window?window.requestIdleCallback(e):setTimeout(e,200)})}function Li({argument:e}){return new Promise(t=>{if(!e)return console.log("Async Alpine: media strategy requires a media query. Treating as 'eager'"),t();const r=window.matchMedia(`(${e})`);r.matches?t():r.addEventListener("change",t,{once:!0})})}function Di({component:e,argument:t}){return new Promise(r=>{const n=t||"0px 0px 0px 0px",i=new IntersectionObserver(o=>{o[0].isIntersecting&&(i.disconnect(),r())},{rootMargin:n});i.observe(e.el)})}var dr={eager:Oi,event:Pi,idle:Ri,media:Li,visible:Di};async function ki(e){const t=Ni(e.strategy);await wt(e,t)}async function wt(e,t){if(t.type==="expression"){if(t.operator==="&&")return Promise.all(t.parameters.map(r=>wt(e,r)));if(t.operator==="||")return Promise.any(t.parameters.map(r=>wt(e,r)))}return dr[t.method]?dr[t.method]({component:e,argument:t.argument}):!1}function Ni(e){const t=Mi(e);let r=Jr(t);return r.type==="method"?{type:"expression",operator:"&&",parameters:[r]}:r}function Mi(e){const t=/\s*([()])\s*|\s*(\|\||&&|\|)\s*|\s*((?:[^()&|]+\([^()]+\))|[^()&|]+)\s*/g,r=[];let n;for(;(n=t.exec(e))!==null;){const[i,o,a,s]=n;if(o!==void 0)r.push({type:"parenthesis",value:o});else if(a!==void 0)r.push({type:"operator",value:a==="|"?"&&":a});else{const u={type:"method",method:s.trim()};s.includes("(")&&(u.method=s.substring(0,s.indexOf("(")).trim(),u.argument=s.substring(s.indexOf("(")+1,s.indexOf(")"))),s.method==="immediate"&&(s.method="eager"),r.push(u)}}return r}function Jr(e){let t=fr(e);for(;e.length>0&&(e[0].value==="&&"||e[0].value==="|"||e[0].value==="||");){const r=e.shift().value,n=fr(e);t.type==="expression"&&t.operator===r?t.parameters.push(n):t={type:"expression",operator:r,parameters:[t,n]}}return t}function fr(e){if(e[0].value==="("){e.shift();const t=Jr(e);return e[0].value===")"&&e.shift(),t}else return e.shift()}function Fi(e){const t="load",r=e.prefixed("load-src"),n=e.prefixed("ignore");let i={defaultStrategy:"eager",keepRelativeURLs:!1},o=!1,a={},s=0;function u(){return s++}e.asyncOptions=f=>{i={...i,...f}},e.asyncData=(f,y=!1)=>{a[f]={loaded:!1,download:y}},e.asyncUrl=(f,y)=>{!f||!y||a[f]||(a[f]={loaded:!1,download:()=>import(w(y))})},e.asyncAlias=f=>{o=f};const c=f=>{e.skipDuringClone(()=>{f._x_async||(f._x_async="init",f._x_ignore=!0,f.setAttribute(n,""))})()},l=async f=>{e.skipDuringClone(async()=>
2{if(f._x_async!=="init")return;f._x_async="await";const{name:y,strategy:I}=d(f);await ki({name:y,strategy:I,el:f,id:f.id||u()}),f.isConnected&&(await _(y),f.isConnected&&(A(f),f._x_async="loaded"))})()};l.inline=c,e.directive(t,l).before("ignore");function d(f){const y=g(f.getAttribute(e.prefixed("data"))),I=f.getAttribute(e.prefixed(t))||i.defaultStrategy,S=f.getAttribute(r);return S&&e.asyncUrl(y,S),{name:y,strategy:I}}async function _(f){if(f.startsWith("_x_async_")||(O(f),!a[f]||a[f].loaded))return;const y=await v(f);e.data(f,y),a[f].loaded=!0}async function v(f){if(!a[f])return;const y=await a[f].download(f);return typeof y=="function"?y:y[f]||y.default||Object.values(y)[0]||!1}function A(f){e.destroyTree(f),f._x_ignore=!1,f.removeAttribute(n),!f.closest(`[${n}]`)&&e.initTree(f)}function O(f){if(!(!o||a[f])){if(typeof o=="function"){e.asyncData(f,o);return}e.asyncUrl(f,o.replaceAll("[name]",f))}}function g(f){return(f||"").split(/[({]/g)[0]||`_x_async_${u()}`}function w(f){return i.keepRelativeURLs||new RegExp("^(?:[a-z+]+:)?//","i").test(f)?f:new URL(f,document.baseURI).href}}var St=!1,Et=!1,Y=[],At=-1;function ji(e){Vi(e)}function Vi(e){Y.includes(e)||Y.push(e),qi()}function $i(e){let t=Y.indexOf(e);t!==-1&&t>At&&Y.splice(t,1)}function qi(){!Et&&!St&&(St=!0,queueMicrotask(Ui))}function Ui(){St=!1,Et=!0;for(let e=0;e<Y.length;e++)Y[e](),At=e;Y.length=0,At=-1,Et=!1}var fe,ae,pe,Gr,xt=!0;function Ki(e){xt=!1,e(),xt=!0}function Bi(e){fe=e.reactive,pe=e.release,ae=t=>e.effect(t,{scheduler:r=>{xt?ji(r):r()}}),Gr=e.raw}function pr(e){ae=e}function Hi(e){let t=()=>{};return[n=>{let i=ae(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),pe(i))},i},()=>{t()}]}function Qr(e,t){let r=!0,n,i=ae(()=>{let o=e();JSON.stringify(o),r?n=o:queueMicrotask(()=>{t(o,n),n=o}),r=!1});return()=>pe(i)}var Yr=[],Xr=[],Zr=[];function Wi(e){Zr.push(e)}function Ut(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Xr.push(t))}function en(e){Yr.push(e)}function tn(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function rn(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([r,n])=>{(t===void 0||t.includes(r))&&(n.forEach(i=>i()),delete e._x_attributeCleanups[r])})}function zi(e){var t,r;for((t=e._x_effects)==null||t.forEach($i);(r=e._x_cleanups)!=null&&r.length;)e._x_cleanups.pop()()}var Kt=new MutationObserver(zt),Bt=!1;function Ht(){Kt.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Bt=!0}function nn(){Ji(),Kt.disconnect(),Bt=!1}var ye=[];function Ji(){let e=Kt.takeRecords();ye.push(()=>e.length>0&&zt(e));let t=ye.length;queueMicrotask(()=>{if(ye.length===t)for(;ye.length>0;)ye.shift()()})}function x(e){if(!Bt)return e();nn();let t=e();return Ht(),t}var Wt=!1,We=[];function Gi(){Wt=!0}function Qi(){Wt=!1,zt(We),We=[]}function zt(e){if(Wt){We=We.concat(e);return}let t=[],r=new Set,n=new Map,i=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&(e[o].type==="childList"&&(e[o].removedNodes.forEach(a=>{a.nodeType===1&&a._x_marker&&r.add(a)}),e[o].addedNodes.forEach(a=>{if(a.nodeType===1){if(r.has(a)){r.delete(a);return}a._x_marker||t.push(a)}})),e[o].type==="attributes")){let a=e[o].target,s=e[o].attributeName,u=e[o].oldValue,c=()=>{n.has(a)||n.set(a,[]),n.get(a).push({name:s,value:a.getAttribute(s)})},l=()=>{i.has(a)||i.set(a,[]),i.get(a).push(s)};a.hasAttribute(s)&&u===null?c():a.hasAttribute(s)?(l(),c()):l()}i.forEach((o,a)=>{rn(a,o)}),n.forEach((o,a)=>{Yr.forEach(s=>s(a,o))});for(let o of r)t.some(a=>a.contains(o))||Xr.forEach(a=>a(o));for(let o of t)o.isConnected&&Zr.forEach(a=>a(o));t=null,r=null,n=null,i=null}function on(e){return he(ne(e))}function Pe(e,t,r){return e._x_dataStack=[t,...ne(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(n=>n!==t)}}function ne(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?ne(e.host):e.parentNode?ne(e.parentNode):[]}function he(e){return new Proxy({objects:e},Yi)}var Yi={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(r=>Object.prototype.hasOwnProperty.call(r,t)||Reflect.has(r,t))},get({objects:e},t,r){return t=="toJSON"?Xi:Reflect.get(e.find(n=>Reflect.has(n,t))||{},t,r)},set({objects:e},t,r,n){const i=e.find(a=>Object.prototype.hasOwnProperty.call(a,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(i,t);return o!=null&&o.set&&(o!=null&&o.get)?o.set.call(n,r)||!0:Reflect.set(i,t,r)}};function Xi(){return Reflect.ownKeys(this).reduce((t,r)=>(t[r]=Reflect.get(this,r),t),{})}function an(e){let t=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,r=(n,i="")=>
vendor: 17,053 bytes, lines 2-6
2{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o,{value:a,enumerable:s}])=>{if(s===!1||a===void 0||typeof a=="object"&&a!==null&&a.__v_skip)return;let u=i===""?o:`${i}.${o}`;typeof a=="object"&&a!==null&&a._x_interceptor?n[o]=a.initialize(e,u,o):t(a)&&a!==n&&!(a instanceof Element)&&r(a,u)})};return r(e)}function sn(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(n,i,o){return e(this.initialValue,()=>Zi(n,i),a=>Ct(n,i,a),i,o)}};return t(r),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let i=r.initialize.bind(r);r.initialize=(o,a,s)=>{let u=n.initialize(o,a,s);return r.initialValue=u,i(o,a,s)}}else r.initialValue=n;return r}}function Zi(e,t){return t.split(".").reduce((r,n)=>r[n],e)}function Ct(e,t,r){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=r;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Ct(e[t[0]],t.slice(1),r)}}var un={};function M(e,t){un[e]=t}function ze(e,t){let r=eo(t);return Object.entries(un).forEach(([n,i])=>{Object.defineProperty(e,`$${n}`,{get(){return i(t,r)},enumerable:!1})}),e}function eo(e){let[t,r]=mn(e),n={interceptor:sn,...t};return Ut(e,r),n}function cn(e,t,r,...n){try{return r(...n)}catch(i){Ce(i,e,t)}}function Ce(e,t,r=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:r}),console.warn(`Alpine Expression Error: ${e.message}
3
4${r?'Expression: "'+r+`"
5
6`:""}`,t),setTimeout(()=>{throw e},0)}var $e=!0;function ln(e){let t=$e;$e=!1;let r=e();return $e=t,r}function X(e,t,r={}){let n;return L(e,t)(i=>n=i,r),n}function L(...e){return dn(...e)}var dn=ro;function to(e){dn=e}function ro(e,t){let r={};ze(r,e);let n=[r,...ne(e)],i=typeof t=="function"?fn(n,t):io(n,t,e);return cn.bind(null,e,t,i)}function fn(e,t){return(r=()=>{},{scope:n={},params:i=[]}={})=>{let o=t.apply(he([n,...e]),i);Ie(r,o)}}var pt={};function no(e,t){if(pt[e])return pt[e];let r=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let a=new r(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`);return Object.defineProperty(a,"name",{value:`[Alpine] ${e}`}),a}catch(a){return Ce(a,t,e),Promise.resolve()}})();return pt[e]=o,o}function io(e,t,r){let n=no(t,r);return(i=()=>{},{scope:o={},params:a=[]}={})=>{n.result=void 0,n.finished=!1;let s=he([o,...e]);if(typeof n=="function"){let u=n(n,s).catch(c=>Ce(c,r,t));n.finished?(Ie(i,n.result,s,a,r),n.result=void 0):u.then(c=>{Ie(i,c,s,a,r)}).catch(c=>Ce(c,r,t)).finally(()=>n.result=void 0)}}}function Ie(e,t,r,n,i){if($e&&typeof t=="function"){let o=t.apply(r,n);o instanceof Promise?o.then(a=>Ie(e,a,r,n)).catch(a=>Ce(a,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var Jt="x-";function me(e=""){return Jt+e}function oo(e){Jt=e}var Je={};function P(e,t){return Je[e]=t,{before(r){if(!Je[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${e}\` will use the default order of execution`);return}const n=Q.indexOf(r);Q.splice(n>=0?n:Q.indexOf("DEFAULT"),0,e)}}}function ao(e){return Object.keys(Je).includes(e)}function Gt(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([s,u])=>({name:s,value:u})),a=pn(o);o=o.map(s=>a.find(u=>u.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),t=t.concat(o)}let n={};return t.map(vn((o,a)=>n[o]=a)).filter(bn).map(co(n,r)).sort(lo).map(o=>uo(e,o))}function pn(e){return Array.from(e).map(vn()).filter(t=>!bn(t))}var It=!1,Ee=new Map,hn=Symbol();function so(e){It=!0;let t=Symbol();hn=t,Ee.set(t,[]);let r=()=>{for(;Ee.get(t).length;)Ee.get(t).shift()();Ee.delete(t)},n=()=>{It=!1,r()};e(r),n()}function mn(e){let t=[],r=s=>t.push(s),[n,i]=Hi(e);return t.push(i),[{Alpine:Re,effect:n,cleanup:r,evaluateLater:L.bind(L,e),evaluate:X.bind(X,e)},()=>t.forEach(s=>s())]}function uo(e,t){let r=()=>{},n=Je[t.type]||r,[i,o]=mn(e);tn(e,t.original,o);let a=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,i),n=n.bind(n,e,t,i),It?Ee.get(hn).push(n):n())};return a.runCleanups=o,a}var _n=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),gn=e=>e;function vn(e=()=>{}){return({name:t,value:r})=>{let{name:n,value:i}=yn.reduce((o,a)=>a(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var yn=[];function Qt(e){yn.push(e)}function bn({name:e}){return wn().test(e)}var wn=()=>new RegExp(`^${Jt}([^:^.]+)\\b`);function co(e,t){return({name:r,value:n})=>{let i=r.match(wn()),o=r.match(/:([a-zA-Z0-9\-_:]+)/),a=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],s=t||e[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:a.map(u=>u.replace(".","")),expression:n,original:s}}}var Tt="DEFAULT",Q=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Tt,"teleport"];function lo(e,t){let r=Q.indexOf(e.type)===-1?Tt:e.type,n=Q.indexOf(t.type)===-1?Tt:t.type;return Q.indexOf(r)-Q.indexOf(n)}function Ae(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}function ie(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>ie(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)ie(n,t),n=n.nextElementSibling}function k(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var hr=!1;function fo(){hr&&k("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),hr=!0,document.body||k("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Ae(document,"alpine:init"),Ae(document,"alpine:initializing"),Ht(),Wi(t=>$(t,ie)),Ut(t=>ge(t)),en((t,r)=>{Gt(t,r).forEach(n=>n())});let e=t=>!tt(t.parentElement,!0);Array.from(document.querySelectorAll(An().join(","))).filter(e).forEach(t=>{$(t)}),Ae(document,"alpine:initialized"),setTimeout(()=>{_o()})}var Yt=[],Sn=[];function En(){return Yt.map(e=>e())}function An(){return Yt.concat(Sn).map(e=>e())}function xn(e){Yt.push(e)}function Cn(e){Sn.push(e)}function tt(e,t=!1){return _e(e,r=>{if((t?An():En()).some(i=>r.matches(i)))return!0})}function _e(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return _e(e.parentElement,t)}}function po(e){return En().some(t=>e.matches(t))}var In=[];function ho(e){In.push(e)}var mo=1;function $(e,t=ie,r=()=>{}){_e(e,n=>n._x_ignore)||so(()=>{t(e,(n,i)=>{n._x_marker||(r(n,i),In.forEach(o=>o(n,i)),Gt(n,n.attributes).forEach(o=>o()),n._x_ignore||(n._x_marker=mo++),n._x_ignore&&i())})})}function ge(e,t=ie){t(e,r=>{zi(r),rn(r),delete r._x_marker})}function _o(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,r,n])=>{ao(r)||n.some(i=>{if(document.querySelector(i))return k(`found "${i}", but missing ${t} plugin`),!0})})}var Ot=[],Xt=!1;function Zt(e=()=>{}){return queueMicrotask(()=>{Xt||setTimeout(()=>{Pt()})}),new Promise(t=>{Ot.push(()=>{e(),t()})})}function Pt(){for(Xt=!1;Ot.length;)Ot.shift()()}function go(){Xt=!0}function er(e,t){return Array.isArray(t)?mr(e,t.join(" ")):typeof t=="object"&&t!==null?vo(e,t):typeof t=="function"?er(e,t()):mr(e,t)}function mr(e,t){let r=i=>i.split(" ").filter(o=>!e.classList.contains(o)).filter(Boolean),n=i=>(e.classList.add(...i),()=>{e.classList.remove(...i)});return t=t===!0?t="":t||"",n(r(t))}function vo(e,t){let r=s=>s.split(" ").filter(Boolean),n=Object.entries(t).flatMap(([s,u])=>u?r(s):!1).filter(Boolean),i=Object.entries(t).flatMap(([s,u])=>u?!1:r(s)).filter(Boolean),o=[],a=[];return i.forEach(s=>{e.classList.contains(s)&&(e.classList.remove(s),a.push(s))}),n.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 rt(e,t){return typeof t=="object"&&t!==null?yo(e,t):bo(e,t)}function yo(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{r[n]=e.style[n],n.startsWith("--")||(n=wo(n)),e.style.setProperty(n,i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{rt(e,r)}}function bo(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r||"")}}function wo(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Rt(e,t=()=>{}){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}P("transition",(e,{value:t,modifiers:r,expression:n},{evaluate:i})=>{typeof n=="function"&&(n=i(n)),n!==!1&&(!n||typeof n=="boolean"?Eo(e,r,t):So(e,n,t))});function So(e,t,r){Tn(e,er,""),{enter:i=>{e._x_transition.enter.during=i},"enter-start":i=>{e._x_transition.enter.start=i},"enter-end":i=>{e._x_transition.enter.end=i},leave:i=>{e._x_transition.leave.during=i},"leave-start":i=>{e._x_transition.leave.start=i},"leave-end":i=>{e._x_transition.leave.end=i}}[r](t)}function Eo(e,t,r){Tn(e,rt);let n=!t.includes("in")&&!t.includes("out")&&!r,i=n||t.includes("in")||["enter"].includes(r),o=n||t.includes("out")||["leave"].includes(r);t.includes("in")&&!n&&(t=t.filter((w,f)=>f<t.indexOf("out"))),t.includes("out")&&!n&&(t=t.filter((w,f)=>f>t.indexOf("out")));let a=!t.includes("opacity")&&!t.includes("scale"),s=a||t.includes("opacity"),u=a||t.includes("scale"),c=s?0:1,l=u?be(t,"scale",95)/100:1,d=be(t,"delay",0)/1e3,_=be(t,"origin","center"),v="opacity, transform",A=be(t,"duration",150)/1e3,O=be(t,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:_,transitionDelay:`${d}s`,transitionProperty:v,transitionDuration:`${A}s`,transitionTimingFunction:g},e._x_transition.enter.start={opacity:c,transform:`scale(${l})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:_,transitionDelay:`${d}s`,transitionProperty:v,transitionDuration:`${O}s`,transitionTimingFunction:g},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:c,transform:`scale(${l})`})}function Tn(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},i=()=>{}){Lt(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=()=>{},i=()=>{}){Lt(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,n){const i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let o=()=>i(r);if(t){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(r):o():e._x_transition?e._x_transition.in(r):o();return}e._x_hidePromise=e._x_transition?new Promise((a,s)=>{e._x_transition.out(()=>{},()=>a(n)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>s({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let a=On(e);a?(a._x_hideChildren||(a._x_hideChildren=[]),a._x_hideChildren.push(e)):i(()=>{let s=u=>{let c=Promise.all([u._x_hidePromise,...(u._x_hideChildren||[]).map(s)]).then(([l])=>l==null?void 0:l());return delete u._x_hidePromise,delete u._x_hideChildren,c};s(e).catch(u=>{if(!u.isFromCancelledTransition)throw u})})})};function On(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:On(t)}function Lt(e,t,{during:r,start:n,end:i}={},o=()=>{},a=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(n).length===0&&Object.keys(i).length===0){o(),a();return}let s,u,c;Ao(e,{start(){s=t(e,n)},during(){u=t(e,r)},before:o,end(){s(),c=t(e,i)},after:a,cleanup(){u(),c()}})}function Ao(e,t){let r,n,i,o=Rt(()=>{x(()=>{r=!0,n||t.before(),i||(t.end(),Pt()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(a){this.beforeCancels.push(a)},cancel:Rt(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},x(()=>{t.start(),t.during()}),go(),requestAnimationFrame(()=>{if(r)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),x(()=>{t.before()}),n=!0,requestAnimationFrame(()=>{r||(x(()=>{t.end()}),Pt(),setTimeout(e._x_transitioning.finish,a+s),i=!0)})})}function be(e,t,r){if(e.indexOf(t)===-1)return r;const n=e[e.indexOf(t)+1];if(!n||t==="scale"&&isNaN(n))return r;if(t==="duration"||t==="delay"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[n,e[e.indexOf(t)+2]].join(" "):n}var K=!1;function W(e,t=()=>{}){return(...r)=>K?t(...r):e(...r)}function xo(e){return(...t)=>K&&e(...t)}var Pn=[];function nt(e){Pn.push(e)}function Co(e,t){Pn.forEach(r=>r(e,t)),K=!0,Rn(()=>{$(t,(r,n)=>{n(r,()=>{})})}),K=!1}var Dt=!1;function Io(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),K=!0,Dt=!0,Rn(()=>{To(t)}),K=!1,Dt=!1}function To(e){let t=!1;$(e,(n,i)=>{ie(n,(o,a)=>{if(t&&po(o))return a();t=!0,i(o,a)})})}function Rn(e){let t=ae;pr((r,n)=>{let i=t(r);return pe(i),()=>{}}),e(),pr(t)}function Ln(e,t,r,n=[]){switch(e._x_bindings||(e._x_bindings=fe({})),e._x_bindings[t]=r,t=n.includes("camel")?Mo(t):t,t){case"value":Oo(e,r);break;case"style":Ro(e,r);break;case"class":Po(e,r);break;case"selected":case"checked":Lo(e,t,r);break;default:Dn(e,t,r);break}}function Oo(e,t){if(Mn(e))e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=qe(e.value)===t:e.checked=_r(e.value,t));else if(tr(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(r=>_r(r,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")No(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function Po(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=er(e,t)}function Ro(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=rt(e,t)}function Lo(e,t,r){Dn(e,t,r),ko(e,t,r)}function Dn(e,t,r){[null,void 0,!1].includes(r)&&jo(t)?e.removeAttribute(t):(kn(t)&&(r=t),Do(e,t,r))}function Do(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}function ko(e,t,r){e[t]!==r&&(e[t]=r)}function No(e,t){const r=[].concat(t).map(n=>n+"");Array.from(e.options).forEach(n=>{n.selected=r.includes(n.value)})}function Mo(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function _r(e,t){return e==t}function qe(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}var Fo=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 kn(e){return Fo.has(e)}function jo(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function Vo(e,t,r){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:Nn(e,t,r)}function $o(e,t,r,n=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let i=e._x_inlineBindings[t];return i.extract=n,ln(()=>X(e,i.expression))}return Nn(e,t,r)}function Nn(e,t,r){let n=e.getAttribute(t);return n===null?typeof r=="function"?r():r:n===""?!0:kn(t)?!![t,"true"].includes(n):n}function tr(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function Mn(e){return e.type==="radio"||e.localName==="ui-radio"}function Fn(e,t){var r;return function(){var n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}function jn(e,t){let r;return function(){let n=this,i=arguments;r||(e.apply(n,i),r=!0,setTimeout(()=>r=!1,t))}}function Vn({get:e,set:t},{get:r,set:n}){let i=!0,o,a=ae(()=>{let s=e(),u=r();if(i)n(ht(s)),i=!1;else{let c=JSON.stringify(s),l=JSON.stringify(u);c!==o?n(ht(s)):c!==l&&t(ht(u))}o=JSON.stringify(e()),JSON.stringify(r())});return()=>{pe(a)}}function ht(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function qo(e){(Array.isArray(e)?e:[e]).forEach(r=>r(Re))}var J={},gr=!1;function Uo(e,t){if(gr||(J=fe(J),gr=!0),t===void 0)return J[e];J[e]=t,an(J[e]),typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&J[e].init()}function Ko(){return J}var $n={};function Bo(e,t){let r=typeof t!="function"?()=>t:t;return e instanceof Element?qn(e,r()):($n[e]=r,()=>{})}
6function Ho(e){return Object.entries($n).forEach(([t,r])=>{Object.defineProperty(e,t,{get(){return(...n)=>r(...n)}})}),e}function qn(e,t,r){let n=[];for(;n.length;)n.pop()();let i=Object.entries(t).map(([a,s])=>({name:a,value:s})),o=pn(i);return i=i.map(a=>o.find(s=>s.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),Gt(e,i,r).map(a=>{n.push(a.runCleanups),a()}),()=>{for(;n.length;)n.pop()()}}var Un={};function Wo(e,t){Un[e]=t}function zo(e,t){return Object.entries(Un).forEach(([r,n])=>{Object.defineProperty(e,r,{get(){return(...i)=>n.bind(t)(...i)},enumerable:!1})}),e}var Jo={get reactive(){return fe},get release(){return pe},get effect(){return ae},get raw(){return Gr},version:"3.14.9",flushAndStopDeferringMutations:Qi,dontAutoEvaluateFunctions:ln,disableEffectScheduling:Ki,startObservingMutations:Ht,stopObservingMutations:nn,setReactivityEngine:Bi,onAttributeRemoved:tn,onAttributesAdded:en,closestDataStack:ne,skipDuringClone:W,onlyDuringClone:xo,addRootSelector:xn,addInitSelector:Cn,interceptClone:nt,addScopeToNode:Pe,deferMutations:Gi,mapAttributes:Qt,evaluateLater:L,interceptInit:ho,setEvaluator:to,mergeProxies:he,extractProp:$o,findClosest:_e,onElRemoved:Ut,closestRoot:tt,destroyTree:ge,interceptor:sn,transition:Lt,setStyles:rt,mutateDom:x,directive:P,entangle:Vn,throttle:jn,debounce:Fn,evaluate:X,initTree:$,nextTick:Zt,prefixed:me,prefix:oo,plugin:qo,magic:M,store:Uo,start:fo,clone:Io,cloneNode:Co,bound:Vo,$data:on,watch:Qr,walk:ie,data:Wo,bind:Bo},Re=Jo;function Go(e,t){let r=Qo(e);if(typeof t=="function")return fn(r,t);let n=Yo(e,t,r);return cn.bind(null,e,t,n)}function Qo(e){let t={};return ze(t,e),[t,...ne(e)]}function Yo(e,t,r){return(n=()=>{},{scope:i={},params:o=[]}={})=>{let a=he([i,...r]),s=t.split(".").reduce((u,c)=>(u[c]===void 0&&Xo(e,t),u[c]),a);Ie(n,s,a,o)}}function Xo(e,t){console.warn(`Alpine Error: Alpine is unable to interpret the following expression using the CSP-friendly build:
7
8"${t}"
9
10Read more about the Alpine's CSP-friendly build restrictions here: https://alpinejs.dev/advanced/csp
11
12`,e)}function Zo(e,t){const r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return i=>!!r[i]}var ea=Object.freeze({}),ta=Object.prototype.hasOwnProperty,it=(e,t)=>ta.call(e,t),Z=Array.isArray,xe=e=>Kn(e)==="[object Map]",ra=e=>typeof e=="string",rr=e=>typeof e=="symbol",ot=e=>e!==null&&typeof e=="object",na=Object.prototype.toString,Kn=e=>na.call(e),Bn=e=>Kn(e).slice(8,-1),nr=e=>ra(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ia=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},oa=ia(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hn=(e,t)=>e!==t&&(e===e||t===t),kt=new WeakMap,we=[],F,ee=Symbol("iterate"),Nt=Symbol("Map key iterate");function aa(e){return e&&e._isEffect===!0}function sa(e,t=ea){aa(e)&&(e=e.raw);const r=la(e,t);return t.lazy||r(),r}function ua(e){e.active&&(Wn(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var ca=0;function la(e,t){const r=function(){if(!r.active)return e();if(!we.includes(r)){Wn(r);try{return fa(),we.push(r),F=r,e()}finally{we.pop(),zn(),F=we[we.length-1]}}};return r.id=ca++,r.allowRecurse=!!t.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=t,r}function Wn(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var ue=!0,ir=[];function da(){ir.push(ue),ue=!1}function fa(){ir.push(ue),ue=!0}function zn(){const e=ir.pop();ue=e===void 0?!0:e}function N(e,t,r){if(!ue||F===void 0)return;let n=kt.get(e);n||kt.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=new Set),i.has(F)||(i.add(F),F.deps.push(i),F.options.onTrack&&F.options.onTrack({effect:F,target:e,type:t,key:r}))}function B(e,t,r,n,i,o){const a=kt.get(e);if(!a)return;const s=new Set,u=l=>{l&&l.forEach(d=>{(d!==F||d.allowRecurse)&&s.add(d)})};
12if(t==="clear")a.forEach(u);else if(r==="length"&&Z(e))a.forEach((l,d)=>{(d==="length"||d>=n)&&u(l)});else switch(r!==void 0&&u(a.get(r)),t){case"add":Z(e)?nr(r)&&u(a.get("length")):(u(a.get(ee)),xe(e)&&u(a.get(Nt)));break;case"delete":Z(e)||(u(a.get(ee)),xe(e)&&u(a.get(Nt)));break;case"set":xe(e)&&u(a.get(ee));break}const c=l=>{l.options.onTrigger&&l.options.onTrigger({effect:l,target:e,key:r,type:t,newValue:n,oldValue:i,oldTarget:o}),l.options.scheduler?l.options.scheduler(l):l()};s.forEach(c)}var pa=Zo("__proto__,__v_isRef,__isVue"),Jn=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(rr)),ha=Gn(),ma=Gn(!0),vr=_a();function _a(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=E(this);for(let o=0,a=this.length;o<a;o++)N(n,"get",o+"");const i=n[t](...r);return i===-1||i===!1?n[t](...r.map(E)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){da();const n=E(this)[t].apply(this,r);return zn(),n}}),e}function Gn(e=!1,t=!1){return function(n,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?Pa:Zn:t?Oa:Xn).get(n))return n;const a=Z(n);if(!e&&a&&it(vr,i))return Reflect.get(vr,i,o);const s=Reflect.get(n,i,o);return(rr(i)?Jn.has(i):pa(i))||(e||N(n,"get",i),t)?s:Mt(s)?!a||!nr(i)?s.value:s:ot(s)?e?ei(s):ur(s):s}}var ga=va();function va(e=!1){return function(r,n,i,o){let a=r[n];if(!e&&(i=E(i),a=E(a),!Z(r)&&Mt(a)&&!Mt(i)))return a.value=i,!0;const s=Z(r)&&nr(n)?Number(n)<r.length:it(r,n),u=Reflect.set(r,n,i,o);return r===E(o)&&(s?Hn(i,a)&&B(r,"set",n,i,a):B(r,"add",n,i)),u}}function ya(e,t){const r=it(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&B(e,"delete",t,void 0,n),i}function ba(e,t){const r=Reflect.has(e,t);return(!rr(t)||!Jn.has(t))&&N(e,"has",t),r}function wa(e){return N(e,"iterate",Z(e)?"length":ee),Reflect.ownKeys(e)}var Sa={get:ha,set:ga,deleteProperty:ya,has:ba,ownKeys:wa},Ea={get:ma,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}},or=e=>ot(e)?ur(e):e,ar=e=>ot(e)?ei(e):e,sr=e=>e,at=e=>Reflect.getPrototypeOf(e);function De(e,t,r=!1,n=!1){e=e.__v_raw;const i=E(e),o=E(t);t!==o&&!r&&N(i,"get",t),!r&&N(i,"get",o);const{has:a}=at(i),s=n?sr:r?ar:or;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 ke(e,t=!1){const r=this.__v_raw,n=E(r),i=E(e);return e!==i&&!t&&N(n,"has",e),!t&&N(n,"has",i),e===i?r.has(e):r.has(e)||r.has(i)}function Ne(e,t=!1){return e=e.__v_raw,!t&&N(E(e),"iterate",ee),Reflect.get(e,"size",e)}function yr(e){e=E(e);const t=E(this);return at(t).has.call(t,e)||(t.add(e),B(t,"add",e,e)),this}function br(e,t){t=E(t);const r=E(this),{has:n,get:i}=at(r);let o=n.call(r,e);o?Yn(r,n,e):(e=E(e),o=n.call(r,e));const a=i.call(r,e);return r.set(e,t),o?Hn(t,a)&&B(r,"set",e,t,a):B(r,"add",e,t),this}function wr(e){const t=E(this),{has:r,get:n}=at(t);let i=r.call(t,e);i?Yn(t,r,e):(e=E(e),i=r.call(t,e));const o=n?n.call(t,e):void 0,a=t.delete(e);return i&&B(t,"delete",e,void 0,o),a}function Sr(){const e=E(this),t=e.size!==0,r=xe(e)?new Map(e):new Set(e),n=e.clear();return t&&B(e,"clear",void 0,void 0,r),n}function Me(e,t){return function(n,i){const o=this,a=o.__v_raw,s=E(a),u=t?sr:e?ar:or;return!e&&N(s,"iterate",ee),a.forEach((c,l)=>n.call(i,u(c),u(l),o))}}function Fe(e,t,r){return function(...n){const i=this.__v_raw,o=E(i),a=xe(o),s=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,c=i[e](...n),l=r?sr:t?ar:or;return!t&&N(o,"iterate",u?Nt:ee),{next(){const{value:d,done:_}=c.next();return _?{value:d,done:_}:{value:s?[l(d[0]),l(d[1])]:l(d),done:_}},[Symbol.iterator](){return this}}}}function U(e){return function(...t){{const r=t[0]?`on key "${t[0]}" `:"";console.warn(`${oa(e)} operation ${r}failed: target is readonly.`,E(this))}return e==="delete"?!1:this}}function Aa(){const e={get(o){return De(this,o)},get size(){return Ne(this)},has:ke,add:yr,set:br,delete:wr,clear:Sr,forEach:Me(!1,!1)},t={get(o){return De(this,o,!1,!0)},get size(){return Ne(this)},has:ke,add:yr,set:br,delete:wr,clear:Sr,forEach:Me(!1,!0)},r={get(o){return De(this,o,!0)},get size(){return Ne(this,!0)},has(o){return ke.call(this,o,!0)},add:U("add"),set:U("set"),delete:U("delete"),clear:U("clear"),forEach:Me(!0,!1)}
12,n={get(o){return De(this,o,!0,!0)},get size(){return Ne(this,!0)},has(o){return ke.call(this,o,!0)},add:U("add"),set:U("set"),delete:U("delete"),clear:U("clear"),forEach:Me(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Fe(o,!1,!1),r[o]=Fe(o,!0,!1),t[o]=Fe(o,!1,!0),n[o]=Fe(o,!0,!0)}),[e,r,t,n]}var[xa,Ca,au,su]=Aa();function Qn(e,t){const r=e?Ca:xa;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(it(r,i)&&i in n?r:n,i,o)}var Ia={get:Qn(!1)},Ta={get:Qn(!0)};function Yn(e,t,r){const n=E(r);if(n!==r&&t.call(e,n)){const i=Bn(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 Xn=new WeakMap,Oa=new WeakMap,Zn=new WeakMap,Pa=new WeakMap;function Ra(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function La(e){return e.__v_skip||!Object.isExtensible(e)?0:Ra(Bn(e))}function ur(e){return e&&e.__v_isReadonly?e:ti(e,!1,Sa,Ia,Xn)}function ei(e){return ti(e,!0,Ea,Ta,Zn)}function ti(e,t,r,n,i){if(!ot(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=La(e);if(a===0)return e;const s=new Proxy(e,a===2?n:r);return i.set(e,s),s}function E(e){return e&&E(e.__v_raw)||e}function Mt(e){return!!(e&&e.__v_isRef===!0)}M("nextTick",()=>Zt);M("dispatch",e=>Ae.bind(Ae,e));M("watch",(e,{evaluateLater:t,cleanup:r})=>(n,i)=>{let o=t(n),s=Qr(()=>{let u;return o(c=>u=c),u},i);r(s)});M("store",Ko);M("data",e=>on(e));M("root",e=>tt(e));M("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=he(Da(e))),e._x_refs_proxy));function Da(e){let t=[];return _e(e,r=>{r._x_refs&&t.push(r._x_refs)}),t}var mt={};function ri(e){return mt[e]||(mt[e]=0),++mt[e]}function ka(e,t){return _e(e,r=>{if(r._x_ids&&r._x_ids[t])return!0})}function Na(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=ri(t))}M("id",(e,{cleanup:t})=>(r,n=null)=>{let i=`${r}${n?`-${n}`:""}`;return Ma(e,i,t,()=>{let o=ka(e,r),a=o?o._x_ids[r]:ri(r);return n?`${r}-${a}-${n}`:`${r}-${a}`})});nt((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Ma(e,t,r,n){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let i=n();return e._x_id[t]=i,r(()=>{delete e._x_id[t]}),i}M("el",e=>e);ni("Focus","focus","focus");ni("Persist","persist","persist");function ni(e,t,r){M(t,n=>k(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}P("modelable",(e,{expression:t},{effect:r,evaluateLater:n,cleanup:i})=>{let o=n(t),a=()=>{let l;return o(d=>l=d),l},s=n(`${t} = __placeholder`),u=l=>s(()=>{},{scope:{__placeholder:l}}),c=a();u(c),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let l=e._x_model.get,d=e._x_model.set,_=Vn({get(){return l()},set(v){d(v)}},{get(){return a()},set(v){u(v)}});i(_)})});P("teleport",(e,{modifiers:t,expression:r},{cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&k("x-teleport can only be used on a <template> tag",e);let i=Er(r),o=e.content.cloneNode(!0).firstElementChild;e._x_teleport=o,o._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(s=>{o.addEventListener(s,u=>{u.stopPropagation(),e.dispatchEvent(new u.constructor(u.type,u))})}),Pe(o,{},e);let a=(s,u,c)=>{c.includes("prepend")?u.parentNode.insertBefore(s,u):c.includes("append")?u.parentNode.insertBefore(s,u.nextSibling):u.appendChild(s)};x(()=>{a(o,i,t),W(()=>{$(o)})()}),e._x_teleportPutBack=()=>
12{let s=Er(r);x(()=>{a(e._x_teleport,s,t)})},n(()=>x(()=>{o.remove(),ge(o)}))});var Fa=document.createElement("div");function Er(e){let t=W(()=>document.querySelector(e),()=>Fa)();return t||k(`Cannot find x-teleport element for selector: "${e}"`),t}var ii=()=>{};ii.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,r(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};P("ignore",ii);P("effect",W((e,{expression:t},{effect:r})=>{r(L(e,t))}));function Ft(e,t,r,n){let i=e,o=u=>n(u),a={},s=(u,c)=>l=>c(u,l);if(r.includes("dot")&&(t=ja(t)),r.includes("camel")&&(t=Va(t)),r.includes("passive")&&(a.passive=!0),r.includes("capture")&&(a.capture=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("debounce")){let u=r[r.indexOf("debounce")+1]||"invalid-wait",c=Ge(u.split("ms")[0])?Number(u.split("ms")[0]):250;o=Fn(o,c)}if(r.includes("throttle")){let u=r[r.indexOf("throttle")+1]||"invalid-wait",c=Ge(u.split("ms")[0])?Number(u.split("ms")[0]):250;o=jn(o,c)}return r.includes("prevent")&&(o=s(o,(u,c)=>{c.preventDefault(),u(c)})),r.includes("stop")&&(o=s(o,(u,c)=>{c.stopPropagation(),u(c)})),r.includes("once")&&(o=s(o,(u,c)=>{u(c),i.removeEventListener(t,o,a)})),(r.includes("away")||r.includes("outside"))&&(i=document,o=s(o,(u,c)=>{e.contains(c.target)||c.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&u(c))})),r.includes("self")&&(o=s(o,(u,c)=>{c.target===e&&u(c)})),(qa(t)||oi(t))&&(o=s(o,(u,c)=>{Ua(c,r)||u(c)})),i.addEventListener(t,o,a),()=>{i.removeEventListener(t,o,a)}}function ja(e){return e.replace(/-/g,".")}function Va(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function Ge(e){return!Array.isArray(e)&&!isNaN(e)}function $a(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function qa(e){return["keydown","keyup"].includes(e)}function oi(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}function Ua(e,t){let r=t.filter(o=>!["window","document","prevent","stop","once","capture","self","away","outside","passive"].includes(o));if(r.includes("debounce")){let o=r.indexOf("debounce");r.splice(o,Ge((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.includes("throttle")){let o=r.indexOf("throttle");r.splice(o,Ge((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&Ar(e.key).includes(r[0]))return!1;const i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>r.includes(o));return r=r.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(a=>((a==="cmd"||a==="super")&&(a="meta"),e[`${a}Key`])).length===i.length&&(oi(e.type)||Ar(e.key).includes(r[0])))}function Ar(e){if(!e)return[];e=$a(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(r=>{if(t[r]===e)return r}).filter(r=>r)}P("model",(e,{modifiers:t,expression:r},{effect:n,cleanup:i})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let a=L(o,r),s;typeof r=="string"?s=L(o,`${r} = __placeholder`):typeof r=="function"&&typeof r()=="string"?s=L(o,`${r()} = __placeholder`):s=()=>{};let u=()=>{let _;return a(v=>_=v),xr(_)?_.get():_},c=_=>{let v;a(A=>v=A),xr(v)?v.set(_):s(()=>{},{scope:{__placeholder:_}})};typeof r=="string"&&e.type==="radio"&&x(()=>{e.hasAttribute("name")||e.setAttribute("name",r)});var l=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let d=K?()=>{}:Ft(e,l,t,_=>{c(_t(e,t,_,u()))});if(t.includes("fill")&&([void 0,null,""].includes(u())||tr(e)&&Array.isArray(u())||e.tagName.toLowerCase()==="select"&&e.multiple)&&c(_t(e,t,{target:e},u())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=d,i(()=>e._x_removeModelListeners.default()),e.form){let _=Ft(e.form,"reset",[],v=>{Zt(()=>e._x_model&&e._x_model.set(_t(e,t,{target:e},u())))});i(()=>_())}e._x_model={get(){return u()},set(_){c(_)}},e._x_forceModelUpdate=_=>{_===void 0&&typeof r=="string"&&r.match(/\./)&&(_=""),window.fromModel=!0,x(()=>Ln(e,"value",_)),delete window.fromModel},n(()=>{let _=u();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(_)})});function _t(e,t,r,n){return x(()=>
12{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail!==null&&r.detail!==void 0?r.detail:r.target.value;if(tr(e))if(Array.isArray(n)){let i=null;return t.includes("number")?i=gt(r.target.value):t.includes("boolean")?i=qe(r.target.value):i=r.target.value,r.target.checked?n.includes(i)?n:n.concat([i]):n.filter(o=>!Ka(o,i))}else return r.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return gt(o)}):t.includes("boolean")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return qe(o)}):Array.from(r.target.selectedOptions).map(i=>i.value||i.text);{let i;return Mn(e)?r.target.checked?i=r.target.value:i=n:i=r.target.value,t.includes("number")?gt(i):t.includes("boolean")?qe(i):t.includes("trim")?i.trim():i}}})}function gt(e){let t=e?parseFloat(e):null;return Ba(t)?t:e}function Ka(e,t){return e==t}function Ba(e){return!Array.isArray(e)&&!isNaN(e)}function xr(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}P("cloak",e=>queueMicrotask(()=>x(()=>e.removeAttribute(me("cloak")))));Cn(()=>`[${me("init")}]`);P("init",W((e,{expression:t},{evaluate:r})=>typeof t=="string"?!!t.trim()&&r(t,{},!1):r(t,{},!1)));P("text",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{x(()=>{e.textContent=o})})})});P("html",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{x(()=>{e.innerHTML=o,e._x_ignoreSelf=!0,$(e),delete e._x_ignoreSelf})})})});Qt(_n(":",gn(me("bind:"))));var ai=(e,{value:t,modifiers:r,expression:n,original:i},{effect:o,cleanup:a})=>{if(!t){let u={};Ho(u),L(e,n)(l=>{qn(e,l,i)},{scope:u});return}if(t==="key")return Ha(e,n);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let s=L(e,n);o(()=>s(u=>{u===void 0&&typeof n=="string"&&n.match(/\./)&&(u=""),x(()=>Ln(e,t,u,r))})),a(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};ai.inline=(e,{value:t,modifiers:r,expression:n})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:n,extract:!1})};P("bind",ai);function Ha(e,t){e._x_keyExpression=t}xn(()=>`[${me("data")}]`);P("data",(e,{expression:t},{cleanup:r})=>{if(Wa(e))return;t=t===""?"{}":t;let n={};ze(n,e);let i={};zo(i,n);let o=X(e,t,{scope:i});(o===void 0||o===!0)&&(o={}),ze(o,e);let a=fe(o);an(a);let s=Pe(e,a);a.init&&X(e,a.init),r(()=>{a.destroy&&X(e,a.destroy),s()})});nt((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function Wa(e){return K?Dt?!0:e.hasAttribute("data-has-alpine-state"):!1}P("show",(e,{modifiers:t,expression:r},{effect:n})=>{let i=L(e,r);e._x_doHide||(e._x_doHide=()=>{x(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{x(()=>{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),u=Rt(d=>d?a():o(),d=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,d,a,o):d?s():o()}),c,l=!0;n(()=>i(d=>{!l&&d===c||(t.includes("immediate")&&(d?s():o()),u(d),c=d,l=!1)}))});P("for",(e,{expression:t},{effect:r,cleanup:n})=>{let i=Ja(t),o=L(e,i.items),a=L(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},r(()=>za(e,i,o,a)),n(()=>{Object.values(e._x_lookup).forEach(s=>x(()=>{ge(s),s.remove()})),delete e._x_prevKeys,delete e._x_lookup})});function za(e,t,r,n){let i=a=>typeof a=="object"&&!Array.isArray(a),o=e;r(a=>{Ga(a)&&a>=0&&(a=Array.from(Array(a).keys(),g=>g+1)),a===void 0&&(a=[]);let s=e._x_lookup,u=e._x_prevKeys,c=[],l=[];if(i(a))a=Object.entries(a).map(([g,w])=>{let f=Cr(t,w,g,a);n(y=>{l.includes(y)&&k("Duplicate key on x-for",e),l.push(y)},{scope:{index:g,...f}}),c.push(f)});else for(let g=0;g<a.length;g++){let w=Cr(t,a[g],g,a);n(f=>{l.includes(f)&&k("Duplicate key on x-for",e),l.push(f)},{scope:{index:g,...w}}),c.push(w)}let d=[],_=[],v=[],A=[];for(let g=0;g<u.length;g++){let w=u[g];l.indexOf(w)===-1&&v.push(w)}u=u.filter(g=>!v.includes(g));let O="template";for(let g=0;g<l.length;g++){let w=l[g],f=u.indexOf(w);if(f===-1)u.splice(g,0,w),d.push([O,g]);else if(f!==g){let y=u.splice(g,1)[0],I=u.splice(f-1,1)[0];u.splice(g,0,I),u.splice(f,0,y),_.push([y,I])}else A.push(w);O=w}for(let g=0;g<v.length;g++){let w=v[g];w in s&&(x(()=>{ge(s[w]),s[w].remove()}),delete s[w])}for(let g=0;g<_.length;g++){let[w,f]=_[g],y=s[w],I=s[f],S=document.createElement("div");x(()=>{I||k('x-for ":key" is undefined or invalid',o,f,s),I.after(S),y.after(I),I._x_currentIfEl&&I.after(I._x_currentIfEl),S.before(y),y._x_currentIfEl&&y.after(y._x_currentIfEl),S.remove()}),I._x_refreshXForScope(c[l.indexOf(f)])}for(let g=0;g<d.length;g++){let[w,f]=d[g],y=w==="template"?o:s[w];
12y._x_currentIfEl&&(y=y._x_currentIfEl);let I=c[f],S=l[f],h=document.importNode(o.content,!0).firstElementChild,m=fe(I);Pe(h,m,o),h._x_refreshXForScope=b=>{Object.entries(b).forEach(([T,C])=>{m[T]=C})},x(()=>{y.after(h),W(()=>$(h))()}),typeof S=="object"&&k("x-for key cannot be an object, it must be a string or an integer",o),s[S]=h}for(let g=0;g<A.length;g++)s[A[g]]._x_refreshXForScope(c[l.indexOf(A[g])]);o._x_prevKeys=l})}function Ja(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(n);if(!i)return;let o={};o.items=i[2].trim();let a=i[1].replace(r,"").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 Cr(e,t,r,n){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=>a.trim()).forEach(a=>{i[a]=t[a]}):i[e.item]=t,e.index&&(i[e.index]=r),e.collection&&(i[e.collection]=n),i}function Ga(e){return!Array.isArray(e)&&!isNaN(e)}function si(){}si.inline=(e,{expression:t},{cleanup:r})=>{let n=tt(e);n._x_refs||(n._x_refs={}),n._x_refs[t]=e,r(()=>delete n._x_refs[t])};P("ref",si);P("if",(e,{expression:t},{effect:r,cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&k("x-if can only be used on a <template> tag",e);let i=L(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let s=e.content.cloneNode(!0).firstElementChild;return Pe(s,{},e),x(()=>{e.after(s),W(()=>$(s))()}),e._x_currentIfEl=s,e._x_undoIf=()=>{x(()=>{ge(s),s.remove()}),delete e._x_currentIfEl},s},a=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};r(()=>i(s=>{s?o():a()})),n(()=>e._x_undoIf&&e._x_undoIf())});P("id",(e,{expression:t},{evaluate:r})=>{r(t).forEach(i=>Na(e,i))});nt((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});Qt(_n("@",gn(me("on:"))));P("on",W((e,{value:t,modifiers:r,expression:n},{cleanup:i})=>{let o=n?L(e,n):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let a=Ft(e,t,r,s=>{o(()=>{},{scope:{$event:s},params:[s]})});i(()=>a())}));st("Collapse","collapse","collapse");st("Intersect","intersect","intersect");st("Focus","trap","focus");st("Mask","mask","mask");function st(e,t,r){P(t,n=>k(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}Re.setEvaluator(Go);Re.setReactivityEngine({reactive:ur,effect:sa,release:ua,raw:E});var Qa=Re,G=Qa,ui=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Qe=ui.join(","),ci=typeof Element>"u",oe=ci?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,jt=!ci&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},li=function(t,r,n){var i=Array.prototype.slice.apply(t.querySelectorAll(Qe));return r&&oe.call(t,Qe)&&i.unshift(t),i=i.filter(n),i},di=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(a.tagName==="SLOT"){var s=a.assignedElements(),u=s.length?s:a.children,c=e(u,!0,n);n.flatten?i.push.apply(i,c):i.push({scope:a,candidates:c})}else{var l=oe.call(a,Qe);l&&n.filter(a)&&(r||!t.includes(a))&&i.push(a);var d=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),_=!n.shadowRootFilter||n.shadowRootFilter(a);if(d&&_){var v=e(d===!0?a.children:d.children,!0,n);n.flatten?i.push.apply(i,v):i.push({scope:a,candidates:v})}else o.unshift.apply(o,a.children)}}return i},fi=function(t,r){return t.tabIndex<0&&(r||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},Ya=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},pi=function(t){return t.tagName==="INPUT"},Xa=function(t){return pi(t)&&t.type==="hidden"},Za=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},es=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},ts=function(t){if(!t.name)return!0;var r=t.form||jt(t),n=function(s){return r.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(t.name));else try{i=n(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=es(i,t.form);return!o||o===t},rs=function(t){return pi(t)&&t.type==="radio"},ns=function(t){return rs(t)&&!ts(t)},Ir=function(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},is=function(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=oe.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(oe.call(a,"details:not([open]) *"))return!0;var s=jt(t).host,u=(s==null?void 0:s.ownerDocument.contains(s))||t.ownerDocument.contains(t);if(!n||n==="full"){if(typeof i=="function"){for(var c=t;t;){var l=t.parentElement,d=jt(t);if(l&&!l.shadowRoot&&i(l)===!0)return Ir(t);t.assignedSlot?t=t.assignedSlot:!l&&d!==t.ownerDocument?t=d.host:t=l}t=c}if(u)return!t.getClientRects().length}else if(n==="non-zero-area")return Ir(t);return!1}
vendor: 8,640 bytes, line 12
12,os=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return oe.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},Ye=function(t,r){return!(r.disabled||Xa(r)||is(r,t)||Za(r)||os(r))},Vt=function(t,r){return!(ns(r)||fi(r)<0||!Ye(t,r))},as=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},ss=function e(t){var r=[],n=[];return t.forEach(function(i,o){var a=!!i.scope,s=a?i.scope:i,u=fi(s,a),c=a?e(i.candidates):s;u===0?a?r.push.apply(r,c):r.push(s):n.push({documentOrder:o,tabIndex:u,item:i,isScope:a,content:c})}),n.sort(Ya).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},us=function(t,r){r=r||{};var n;return r.getShadowRoot?n=di([t],r.includeContainer,{filter:Vt.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:as}):n=li(t,r.includeContainer,Vt.bind(null,r)),ss(n)},hi=function(t,r){r=r||{};var n;return r.getShadowRoot?n=di([t],r.includeContainer,{filter:Ye.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=li(t,r.includeContainer,Ye.bind(null,r)),n},je=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return oe.call(t,Qe)===!1?!1:Vt(r,t)},cs=ui.concat("iframe").join(","),Ue=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return oe.call(t,cs)===!1?!1:Ye(r,t)};function Tr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Or(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tr(Object(r),!0).forEach(function(n){ls(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ls(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pr=function(){var e=[];return{activateTrap:function(r){if(e.length>0){var n=e[e.length-1];n!==r&&n.pause()}var i=e.indexOf(r);i===-1||e.splice(i,1),e.push(r)},deactivateTrap:function(r){var n=e.indexOf(r);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}}}(),ds=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},fs=function(t){return t.key==="Escape"||t.key==="Esc"||t.keyCode===27},ps=function(t){return t.key==="Tab"||t.keyCode===9},Rr=function(t){return setTimeout(t,0)},Lr=function(t,r){var n=-1;return t.every(function(i,o){return r(i)?(n=o,!1):!0}),n},Se=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,n):t},Ve=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},hs=function(t,r){var n=(r==null?void 0:r.document)||document,i=Or({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},r),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a,s=function(h,m,b){return h&&h[m]!==void 0?h[m]:i[b||m]},u=function(h){return o.containerGroups.findIndex(function(m){var b=m.container,T=m.tabbableNodes;return b.contains(h)||T.find(function(C){return C===h})})},c=function(h){var m=i[h];if(typeof m=="function"){for(var b=arguments.length,T=new Array(b>1?b-1:0),C=1;C<b;C++)T[C-1]=arguments[C];m=m.apply(void 0,T)}if(m===!0&&(m=void 0),!m){if(m===void 0||m===!1)return m;throw new Error("`".concat(h,"` was specified but was not a node, or did not return a node"))}var R=m;if(typeof m=="string"&&(R=n.querySelector(m),!R))throw new Error("`".concat(h,"` as selector refers to no known node"));return R},l=function(){var h=c("initialFocus");if(h===!1)return!1;if(h===void 0)if(u(n.activeElement)>=0)h=n.activeElement;else{var m=o.tabbableGroups[0],b=m&&m.firstTabbableNode;h=b||c("fallbackFocus")}if(!h)throw new Error("Your focus-trap needs to have at least one focusable element");return h},d=function(){if(o.containerGroups=o.containers.map(function(h){var m=us(h,i.tabbableOptions),b=hi(h,i.tabbableOptions);return{container:h,tabbableNodes:m,focusableNodes:b,firstTabbableNode:m.length>0?m[0]:null,lastTabbableNode:m.length>0?m[m.length-1]:null,nextTabbableNode:function(C){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,j=b.findIndex(function(q){return q===C});if(!(j<0))return R?b.slice(j+1).find(function(q){return je(q,i.tabbableOptions)}):b.slice(0,j).reverse().find(function(q){return je(q,i.tabbableOptions)})}}}),o.tabbableGroups=o.containerGroups.filter(function(h){return h.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},_=function S(h){if(h!==!1&&h!==n.activeElement){if(!h||!h.focus){S(l());return}h.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=h,ds(h)&&h.select()}},v=function(h){var m=c("setReturnFocus",h);return m||(m===!1?!1:h)},A=function(h){var m=Ve(h);if(!(u(m)>=0)){if(Se(i.clickOutsideDeactivates,h)){a.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Ue(m,i.tabbableOptions)});return}Se(i.allowOutsideClick,h)||h.preventDefault()}},O=function(h){var m=Ve(h),b=u(m)>=0;b||m instanceof Document?b&&(o.mostRecentlyFocusedNode=m):(h.stopImmediatePropagation(),_(o.mostRecentlyFocusedNode||l()))},g=function(h){var m=Ve(h);d();var b=null;if(o.tabbableGroups.length>0){var T=u(m),C=T>=0?o.containerGroups[T]:void 0;if(T<0)h.shiftKey?b=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:b=o.tabbableGroups[0].firstTabbableNode;else if(h.shiftKey){var R=Lr(o.tabbableGroups,function(lt){var dt=lt.firstTabbableNode;return m===dt});if(R<0&&(C.container===m||Ue(m,i.tabbableOptions)&&!je(m,i.tabbableOptions)&&!C.nextTabbableNode(m,!1))&&(R=T),R>=0){var j=R===0?o.tabbableGroups.length-1:R-1,q=o.tabbableGroups[j];b=q.lastTabbableNode}}else{var ve=Lr(o.tabbableGroups,function(lt){var dt=lt.lastTabbableNode;return m===dt});if(ve<0&&(C.container===m||Ue(m,i.tabbableOptions)&&!je(m,i.tabbableOptions)&&!C.nextTabbableNode(m))&&(ve=T),ve>=0){var Si=ve===o.tabbableGroups.length-1?0:ve+1,Ei=o.tabbableGroups[Si];b=Ei.firstTabbableNode}}}else b=c("fallbackFocus");b&&(h.preventDefault(),_(b))},w=function(h){if(fs(h)&&Se(i.escapeDeactivates,h)!==!1){h.preventDefault(),a.deactivate();return}if(ps(h)){g(h);return}},f=function(h){var m=Ve(h);u(m)>=0||Se(i.clickOutsideDeactivates,h)||Se(i.allowOutsideClick,h)||(h.preventDefault(),h.stopImmediatePropagation())},y=function(){if(o.active)return Pr.activateTrap(a),o.delayInitialFocusTimer=i.delayInitialFocus?Rr(function(){_(l())}):_(l()),n.addEventListener("focusin",O,!0),n.addEventListener("mousedown",A,{capture:!0,passive:!1}),n.addEventListener("touchstart",A,{capture:!0,passive:!1}),n.addEventListener("click",f,{capture:!0,passive:!1}),n.addEventListener("keydown",w,{capture:!0,passive:!1}),a},I=function(){if(o.active)return n.removeEventListener("focusin",O,!0),n.removeEventListener("mousedown",A,!0),n.removeEventListener("touchstart",A,!0),n.removeEventListener("click",f,!0),n.removeEventListener("keydown",w,!0),a};return a={get active(){return o.active},get paused(){return o.paused},activate:function(h){if(o.active)return this;var m=s(h,"onActivate"),b=s(h,"onPostActivate"),T=s(h,"checkCanFocusTrap");T||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=n.activeElement,m&&m();var C=function(){T&&d(),y(),b&&b()};return T?(T(o.containers.concat()).then(C,C),this):(C(),this)},deactivate:function(h){if(!o.active)return this;var m=Or({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},h);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,I(),o.active=!1,o.paused=!1,Pr.deactivateTrap(a);var b=s(m,"onDeactivate"),T=s(m,"onPostDeactivate"),C=s(m,"checkCanReturnFocus"),R=s(m,"returnFocus","returnFocusOnDeactivate");b&&b();var j=function(){Rr(function(){R&&_(v(o.nodeFocusedBeforeActivation)),T&&T()})};return R&&C?(C(v(o.nodeFocusedBeforeActivation)).then(j,j),this):(j(),this)},pause:function(){return o.paused||!o.active?this:(o.paused=!0,I(),this)},unpause:function(){return!o.paused||!o.active?this:(o.paused=!1,d(),y(),this)}
12,updateContainerElements:function(h){var m=[].concat(h).filter(Boolean);return o.containers=m.map(function(b){return typeof b=="string"?n.querySelector(b):b}),o.active&&d(),this}},a.updateContainerElements(t),a};function ms(e){let t,r;window.addEventListener("focusin",()=>{t=r,r=document.activeElement}),e.magic("focus",n=>{let i=n;return{__noscroll:!1,__wrapAround:!1,within(o){return i=o,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(o){return Ue(o)},previouslyFocused(){return t},lastFocused(){return t},focused(){return r},focusables(){return Array.isArray(i)?i:hi(i,{displayCheck:"none"})},all(){return this.focusables()},isFirst(o){let a=this.all();return a[0]&&a[0].isSameNode(o)},isLast(o){let a=this.all();return a.length&&a.slice(-1)[0].isSameNode(o)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let o=this.all(),a=document.activeElement;if(o.indexOf(a)!==-1)return this.__wrapAround&&o.indexOf(a)===o.length-1?o[0]:o[o.indexOf(a)+1]},getPrevious(){let o=this.all(),a=document.activeElement;if(o.indexOf(a)!==-1)return this.__wrapAround&&o.indexOf(a)===0?o.slice(-1)[0]:o[o.indexOf(a)-1]},first(){this.focus(this.getFirst())},last(){this.focus(this.getLast())},next(){this.focus(this.getNext())},previous(){this.focus(this.getPrevious())},prev(){return this.previous()},focus(o){o&&setTimeout(()=>{o.hasAttribute("tabindex")||o.setAttribute("tabindex","0"),o.focus({preventScroll:this.__noscroll})})}}}),e.directive("trap",e.skipDuringClone((n,{expression:i,modifiers:o},{effect:a,evaluateLater:s,cleanup:u})=>{let c=s(i),l=!1,d={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>n};if(o.includes("noautofocus"))d.initialFocus=!1;else{let g=n.querySelector("[autofocus]");g&&(d.initialFocus=g)}let _=hs(n,d),v=()=>{},A=()=>{};const O=()=>{v(),v=()=>{},A(),A=()=>{},_.deactivate({returnFocus:!o.includes("noreturn")})};a(()=>c(g=>{l!==g&&(g&&!l&&(o.includes("noscroll")&&(A=_s()),o.includes("inert")&&(v=Dr(n)),setTimeout(()=>{_.activate()},15)),!g&&l&&O(),l=!!g)})),u(O)},(n,{expression:i,modifiers:o},{evaluate:a})=>{o.includes("inert")&&a(i)&&Dr(n)}))}function Dr(e){let t=[];return mi(e,r=>{let n=r.hasAttribute("aria-hidden");r.setAttribute("aria-hidden","true"),t.push(()=>n||r.removeAttribute("aria-hidden"))}),()=>{for(;t.length;)t.pop()()}}function mi(e,t){e.isSameNode(document.body)||!e.parentNode||Array.from(e.parentNode.children).forEach(r=>{r.isSameNode(e)?mi(e.parentNode,t):t(r)})}function _s(){let e=document.documentElement.style.overflow,t=document.documentElement.style.paddingRight,r=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${r}px`,()=>{document.documentElement.style.overflow=e,document.documentElement.style.paddingRight=t}}var gs=ms;/*! Bundled license information:
13
14tabbable/dist/index.esm.js:
15  (*!
16  * tabbable 5.3.3
17  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
18  *)
19
20focus-trap/dist/focus-trap.esm.js:
21  (*!
22  * focus-trap 6.9.4
23  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
24  *)
25*/function vs(e){e.directive("intersect",e.skipDuringClone((t,{value:r,expression:n,modifiers:i},{evaluateLater:o,cleanup:a})=>{let s=o(n),u={rootMargin:ws(i),threshold:ys(i)},c=new IntersectionObserver(l=>{l.forEach(d=>{d.isIntersecting!==(r==="leave")&&(s(),i.includes("once")&&c.disconnect())})},u);c.observe(t),a(()=>{c.disconnect()})}))}function ys(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 bs(e){let t=e.match(/^(-?[0-9]+)(px|%)?$/);return t?t[1]+(t[2]||"px"):void 0}function ws(e){const t="margin",r="0px 0px 0px 0px",n=e.indexOf(t);if(n===-1)return r;let i=[];for(let o=1;o<5;o++)i.push(bs(e[n+o]||""));return i=i.filter(o=>o!==void 0),i.length?i.join(" ").trim():r}var Ss=vs;function Es(e){let t=()=>{let r,n;try{n=localStorage}catch(i){console.error(i),console.warn("Alpine: $persist is using temporary storage since localStorage is unavailable.");let o=new Map;n={getItem:o.get.bind(o),setItem:o.set.bind(o)}}return e.interceptor((i,o,a,s,u)=>{let c=r||`_x_${s}`,l=kr(c,n)?Nr(c,n):i;return a(l),e.effect(()=>{let d=o();Mr(c,d,n),a(d)}),l},i=>{i.as=o=>(r=o,i),i.using=o=>(n=o,i)})};Object.defineProperty(e,"$persist",{get:()=>t()}),e.magic("persist",t),e.persist=(r,{get:n,set:i},o=localStorage)=>{let a=kr(r,o)?Nr(r,o):n();i(a),e.effect(()=>{let s=n();Mr(r,s,o),i(s)})}}function kr(e,t){return t.getItem(e)!==null}function Nr(e,t){let r=t.getItem(e,t);if(r!==void 0)return JSON.parse(r)}function Mr(e,t,r){r.setItem(e,JSON.stringify(t))}var As=Es;function xs(){window.Alpine=G,G.plugin(Fi),G.plugin(gs),G.plugin(Ss),G.plugin(As),Cs(),G.start()}function Cs(){G.asyncAlias(e=>Ti(Object.assign({
25"../components/alpine/AnimateNumber.js":()=>p(()=>import("./chunks/AnimateNumber.CN1T3a35.js"),[]),
25"../components/alpine/BackgroundVideo.js":()=>p(()=>import("./chunks/BackgroundVideo.pJlb7sHz.js"),[]),
25"../components/alpine/BlankComponent.js":()=>p(()=>import("./chunks/BlankComponent.C3csrdH6.js"),[]),
25"../components/alpine/CardsCarousel.js":()=>p(()=>import("./chunks/CardsCarousel.sNaugP7k.js"),__vite__mapDeps([0,1,2])),
25"../components/alpine/Carousel.js":()=>p(()=>import("./chunks/Carousel.BdtO5gf3.js"),__vite__mapDeps([3,1,2])),
25"../components/alpine/Cart.js":()=>p(()=>import("./chunks/Cart.bbayuooe.js"),[]),
25"../components/alpine/CartConflictModal.js":()=>p(()=>import("./chunks/CartConflictModal.BoHMHqjT.js"),[]),
25"../components/alpine/CartItem.js":()=>p(()=>import("./chunks/CartItem.BqaT7saA.js"),[]),
25"../components/alpine/CartSummary.js":()=>p(()=>import("./chunks/CartSummary.D3mV-F_Y.js"),[]),
25"../components/alpine/CartSummaryResources.js":()=>p(()=>import("./chunks/CartSummaryResources.CFuIH3T-.js"),[]),
25"../components/alpine/CartToggle.js":()=>p(()=>import("./chunks/CartToggle.BjYfBkxU.js"),[]),
25"../components/alpine/ChariotConnect.js":()=>p(()=>import("./chunks/ChariotConnect.CtoAcrUP.js"),[]),
25"../components/alpine/ContactPreferences.js":()=>p(()=>import("./chunks/ContactPreferences.BJ_o9WzV.js"),[]),
25"../components/alpine/Cookies.js":()=>p(()=>import("./chunks/Cookies.DE3vHznF.js"),[]),
25"../components/alpine/Counter.js":()=>p(()=>import("./chunks/Counter.MygEVFa8.js"),[]),
25"../components/alpine/CountrySelect.js":()=>p(()=>import("./chunks/CountrySelect.C_d1Mq0C.js"),[]),
25"../components/alpine/CustomAmountRadioButton.js":()=>p(()=>import("./chunks/CustomAmountRadioButton.Cg4hXHbJ.js"),[]),
25"../components/alpine/DataCollection.js":()=>p(()=>import("./chunks/DataCollection.vCiMCpUc.js"),[]),
25"../components/alpine/DataLayer.js":()=>p(()=>import("./chunks/DataLayer.GfAHZ35r.js"),[]),
25"../components/alpine/DirectMail.js":()=>p(()=>import("./chunks/DirectMail.BjR5nodB.js"),[]),
25"../components/alpine/DonationCheckout.js":()=>p(()=>import("./chunks/DonationCheckout.DzMiioIa.js"),[]),
25"../components/alpine/DonationProduct.js":()=>p(()=>import("./chunks/DonationProduct.DmxUF87M.js"),[]),
25"../components/alpine/DonationToggle.js":()=>p(()=>import("./chunks/DonationToggle.DMVY592Q.js"),[]),
25"../components/alpine/EmployerMatch.js":()=>p(()=>import("./chunks/EmployerMatch.VKzkff96.js"),[]),
25"../components/alpine/FamilyFunPack.js":()=>p(()=>import("./chunks/FamilyFunPack.CptatCKd.js"),[]),
25"../components/alpine/FeaturedGallery.js":()=>p(()=>import("./chunks/FeaturedGallery.D_-an4By.js"),[]),
25"../components/alpine/FilterDropdown.js":()=>p(()=>import("./chunks/FilterDropdown.BFW7egt1.js"),[]),
25"../components/alpine/FilterGrid.js":()=>p(()=>import("./chunks/FilterGrid.C7lXsW_V.js"),[]),
25"../components/alpine/FohDonation.js":()=>p(()=>import("./chunks/FohDonation.DlyUUTu4.js"),[]),
25"../components/alpine/Footer.js":()=>p(()=>import("./chunks/Footer.CgfBcGL0.js"),[]),
25"../components/alpine/FormElement.js":()=>p(()=>import("./chunks/FormElement.UP0AYW2B.js"),[]),
25"../components/alpine/FormFieldsToggle.js":()=>p(()=>import("./chunks/FormFieldsToggle.DaV9Bltw.js"),[]),
25"../components/alpine/GiftCardBanner.js":()=>p(()=>import("./chunks/GiftCardBanner.C3csrdH6.js"),[]),
25"../components/alpine/GiftCardPurchaseForm.js":()=>p(()=>import("./chunks/GiftCardPurchaseForm.DBFYdXyQ.js"),[]),
25"../components/alpine/GiftCardRedemption.js":()=>p(()=>import("./chunks/GiftCardRedemption.D7QHAzri.js"),[]),
25"../components/alpine/GiveInHonorCheckbox.js":()=>p(()=>import("./chunks/GiveInHonorCheckbox.DbHozhFG.js"),[]),
25"../components/alpine/GravityForm.js":()=>p(()=>import("./chunks/GravityForm.C8UArarJ.js"),__vite__mapDeps([4,5])),
25"../components/alpine/HeaderSimple.js":()=>p(()=>import("./chunks/HeaderSimple.DWCnPnZs.js"),[]),
25"../components/alpine/HonorCardsPersonalize.js":()=>p(()=>import("./chunks/HonorCardsPersonalize.B95oAA6w.js"),[]),
25"../components/alpine/HonorCardsStyles.js":()=>p(()=>import("./chunks/HonorCardsStyles.Dm0d-qa0.js"),[]),
25"../components/alpine/HousesOfHeiferLogin.js":()=>p(()=>import("./chunks/HousesOfHeiferLogin.WGKUAgmt.js"),[]),
25"../components/alpine/HousesOfHeiferUpdatesGrid.js":()=>p(()=>import("./chunks/HousesOfHeiferUpdatesGrid.C40xdjnt.js"),[]),
25"../components/alpine/InputSlider.js":()=>p(()=>import("./chunks/InputSlider.BmAc3Q2W.js"),__vite__mapDeps([6,7])),
25"../components/alpine/JumpNav.js":()=>p(()=>import("./chunks/JumpNav.DWg0ew9Q.js"),[]),
25"../components/alpine/LightboxImage.js":()=>p(()=>import("./chunks/LightboxImage.BJ0HJNBw.js"),[]),
25"../components/alpine/LiveChat.js":()=>p(()=>import("./chunks/LiveChat.D3eV1w4g.js"),[]),
25"../components/alpine/Map.js":()=>p(()=>import("./chunks/Map.sS5k5Ph-.js"),[]),
25"../components/alpine/Modal.js":()=>p(()=>import("./chunks/Modal.DGalAe7D.js"),[]),
25"../components/alpine/MultistepForm.js":()=>p(()=>import("./chunks/MultistepForm.DO-3Kdma.js"),[]),
25"../components/alpine/Nav.js":()=>p(()=>import("./chunks/Nav.BPdxX6-u.js"),[]),
25"../components/alpine/NewsletterSignUp.js":()=>p(()=>import("./chunks/NewsletterSignUp.Dx_jijEp.js"),[]),
25"../components/alpine/Points.js":()=>p(()=>import("./chunks/Points.6TToy3Rg.js"),[]),
25"../components/alpine/PreloadImage.js":()=>p(()=>import("./chunks/PreloadImage.shPB6SCy.js"),[]),
25"../components/alpine/ProductCard.js":()=>p(()=>import("./chunks/ProductCard.DJYmz4ax.js"),[]),
25"../components/alpine/ProductForm.js":()=>p(()=>import("./chunks/ProductForm.DWefeDRE.js"),[]),
25"../components/alpine/Resources.js":()=>p(()=>import("./chunks/Resources.T7wHUhcK.js"),[]),
25"../components/alpine/ResourcesCart.js":()=>p(()=>import("./chunks/ResourcesCart.B99YpWpV.js"),[]),
25"../components/alpine/ResourcesCartItem.js":()=>p(()=>import("./chunks/ResourcesCartItem.DGHAi3UE.js"),[]),
25"../components/alpine/ScrollTo.js":()=>p(()=>import("./chunks/ScrollTo.CLzpTt7g.js"),[]),
25"../components/alpine/Search.js":()=>p(()=>import("./chunks/Search.Dst8bP9y.js"),[]),
25"../components/alpine/SendANote.js":()=>p(()=>import("./chunks/SendANote.CTxbToZO.js"),[]),
25"../components/alpine/ShorthandEmbed.js":()=>p(()=>import("./chunks/ShorthandEmbed.YUSGIx7S.js"),[]),
25"../components/alpine/StateSelect.js":()=>p(()=>import("./chunks/StateSelect.CXglQlrc.js"),[]),
25"../components/alpine/StickyCallToAction.js":()=>p(()=>import("./chunks/StickyCallToAction.CwPLC7n_.js"),[]),
25"../components/alpine/SuggestedProduct.js":()=>p(()=>import("./chunks/SuggestedProduct.DysZbj7j.js"),[]),
25"../components/alpine/SwitchToggle.js":()=>p(()=>import("./chunks/SwitchToggle.CA1-16TH.js"),[]),
25"../components/alpine/TabbedContent.js":()=>p(()=>import("./chunks/TabbedContent.B4R7-cVR.js"),[]),
25"../components/alpine/TeamBasedDonation.js":()=>p(()=>import("./chunks/TeamBasedDonation.oRVKS_ps.js"),[]),
25"../components/alpine/Tooltip.js":()=>p(()=>import("./chunks/Tooltip.2ZgpILGx.js"),[]),
25"../components/alpine/UpsellModal.js":()=>p(()=>import("./chunks/UpsellModal.DuRPBB6y.js"),[]),
25"../components/alpine/Video.js":()=>p(()=>import("./chunks/Video.C4nvs3Aw.js"),[]),
25"../components/alpine/_template.alpineAsync.js":()=>p(()=>import("./chunks/_template.alpineAsync.BcAnthv1.js"),[])
25}),`../components/alpine/${e}.js`,4))}function Is(){const e="heifer.org",t=new Date;t.setTime(t.getTime()+365*24*60*60*1e3);const r="expires="+t.toUTCString();window.cookieStorage={getItem(n){let i=document.cookie.split(";");for(let o=0;o<i.length;o++){let a=i[o].split("=");if(n==a[0].trim())return decodeURIComponent(a[1])}return null},setItem(n,i){document.cookie=`${n}=${encodeURIComponent(i)};expires=${r};path=/;domain=${e};Secure;SameSite=Strict`}}}function uu({eventName:e,isource:t,msource:r,url:n,utm_campaign:i,utm_content:o,utm_medium:a,utm_source:s,utm_term:u}){if(!t&&!r)return;const c=(t||"").split(","),l=c[0],d=c[c.length-1],_=(r||"").split(","),v=_[0],A=_[_.length-1],O={event:e,isource:{first:l,last:d,list:t},msource:{first:v,last:A,list:r},url:n,utm_campaign:i,utm_content:o,utm_medium:a,utm_source:s,utm_term:u};window.dataLayer&&dataLayer.push(O)}function cu(e,t){const{id:r,order_base_grand_total:n,shipping_cost:i,grant_tracking_id:o,daf_external_id:a,daf_fund_name:s}=e;if(!r)return;const u=!!o,c=t.map((d,_)=>({item_id:d.sku,item_name:d.product_title,quantity:Number(d.qty),price:u?0:Number(d.base_price)*Number(d.qty),index:_,item_brand:ut(d),item_category:"Cart",item_category2:"Confirmation",item_list_id:d.product_title,item_list_name:"Confirmation",item_variant:u?"DAF Setup":Le(d)})),l={event:"purchase",ecommerce:{currency:"USD",transaction_type:u?"DAF Setup":"Donation",value:u?0:Number(n),items:c,...!u&&{id:r},tax:0,shipping:i,...o&&{grant_tracking_id:o},...a&&{daf_external_id:a},...s&&{daf_fund_name:s},...u&&{daf_setup_value:Number(n)}}};window.dataLayer&&dataLayer.push(l)}function lu(e="view_item",t,r=null){const{amount:n=0,frequency:i="",price:o=0,quantity:a=1,sku:s="",title:u=""}=t;if(!s)return;const c={event:e,ecommerce:{currency:"USD",value:Number(n===0?o:n),payment_type:r,items:[{item_id:s,item_name:u,quantity:Number(a),price:Number(o),index:0,item_brand:i,item_category:"Gift Catalog",item_category2:H(),item_category3:"Index",item_list_id:u,item_list_name:H(),item_variant:Le(t)}]}};window.dataLayer&&dataLayer.push(c)}function du(e="view_item_list",t,r=null){if((t==null?void 0:t.length)===0)return;const n=t.map((a,s)=>({item_id:a.sku,item_name:a.title,quantity:Number(a.quantity),price:a.type==="gift_catalog_donation"?Number(a.amount):Number(a.price)*Number(a.quantity),index:s,item_brand:ut(a),item_category:"Cart",item_category2:H(),item_list_id:a.title,item_list_name:H(),item_variant:Le(a)})),i=n.reduce((a,s)=>a+Number(s.price),0),o={event:e,ecommerce:{currency:"USD",value:Number(i),payment_type:r,items:n}};window.dataLayer&&dataLayer.push(o)}function _i(e){const{amount:t=0,price:r=0,quantity:n=1,sku:i="",title:o=""}=e;if(!i)return;const a={event:"add_to_cart",ecommerce:{currency:"USD",value:Number(t===0?r:t),items:[{item_id:i,item_name:o,quantity:Number(n),price:Number(r),index:0,item_brand:ut(e),item_category:"Gift Catalog",item_category2:H(),item_category3:"Index",item_list_id:o,item_list_name:H(),item_variant:Le(e)}]}};window.dataLayer&&dataLayer.push(a)}function gi(e){if((e==null?void 0:e.length)===0)return;const t=e.map((i,o)=>({item_id:i.sku,item_name:i.title,quantity:Number(i.quantity),price:i.type==="gift_catalog_donation"?Number(i.amount):Number(i.price)*Number(i.quantity),index:o,item_brand:ut(i),item_category:"Cart",item_category2:H(),item_list_id:i.title,item_list_name:H(),item_variant:Le(i)})),r=t.reduce((i,o)=>i+Number(o.price),0),n={event:"view_cart",ecommerce:{currency:"USD",value:Number(r),items:t}};window.dataLayer&&dataLayer.push(n)}function fu(){const e={event:"ShowUpsellModal",data:"1"};window.dataLayer&&dataLayer.push(e)}function pu(e="donation_form_start",t){if(!t||!e||!window.dataLayer)return;const r={event:e,formUrl:t};dataLayer.push(r)}function ut(e){const{is_monthly:t,is_yearly:r}=e;return Number(t)?"Monthly":Number(r)?"Yearly":"One Time"}function H(){const t=new URL(window.location.href).pathname.split("/").slice(1).map(r=>r.replaceAll("-"," ").split(" ").map(n=>n.replace(/^\w/,i=>i.toUpperCase())).join(" "));return t[t.length-1]??window.location.pathname}function Le(e){const t=e.type;return{gift_catalog_donation:"Donation",gift_catalog_static_price:"Full",gift_catalog_partial:"Partial"}[t]??"Donation"}function Ts(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e)}function hu(e){const r=[{min:10,max:100,percentage:4.9},{min:101,max:300,percentage:3.9},{min:301,max:450,percentage:2.5},{min:451,max:1/0,percentage:1.9}].find(o=>e>=o.min&&e<=o.max);return(r?r.percentage:1.9)/100*e}const Ke={id:"",resourceId:"",image:"",link:"",title:"",quantity:1,type:"resource",sku:"",uuid:""},Be={id:"",amount:0,image:"",is_monthly:0,is_yearly:0,link:"",title:"",titlePlural
25:"",quantity:1,price:0,type:"",sku:"",uuid:"",is_matched_product:0,match_amount:0,gift_card_data:null,suggested_products:""},vi=e=>{let t=0;for(const r of e)t=(t<<5)-t+r.charCodeAt(0),t|=0;return t},Os=JSON.stringify(Be),Fr=vi(Os).toString(),Ps=JSON.stringify(Ke),jr=vi(Ps).toString();function Vr(e){const t={};for(const r in Be)t[r]=e[r]!==void 0?e[r]:Be[r];t.id=crypto.randomUUID();for(const r in e)r in Be||console.warn(`Unexpected property in cart item: ${r}`);return t}function $r(e){const t={};for(const r in Ke)t[r]=e[r]!==void 0?e[r]:Ke[r];!t.resourceId&&e.id&&(t.resourceId=String(e.id)),t.id=crypto.randomUUID();for(const r in e)r in Ke||console.warn(`Unexpected property in resources cart item: ${r}`);return t}function Rs(){localStorage.getItem("cartSchemaVersion")!==Fr&&(console.warn("Outdated schema version detected. Resetting to default."),localStorage.setItem("cartItems",JSON.stringify([])),localStorage.setItem("cartSchemaVersion",Fr))}function Ls(){try{const e=JSON.parse(localStorage.getItem("cartItems"));if(!Array.isArray(e))throw new Error("Invalid cartItems format")}catch(e){console.warn("Invalid cartItems data in localStorage. Resetting to default.",e),localStorage.setItem("cartItems",JSON.stringify([]))}}function Ds(){localStorage.getItem("resourcesCartSchemaVersion")!==jr&&(console.warn("Outdated resources schema version detected. Resetting to default."),localStorage.setItem("resourcesCartItems",JSON.stringify([])),localStorage.setItem("resourcesCartSchemaVersion",jr))}function ks(){try{const e=JSON.parse(localStorage.getItem("resourcesCartItems"));if(!Array.isArray(e))throw new Error("Invalid resourcesCartItems format")}catch(e){console.warn("Invalid resourcesCartItems data in localStorage. Resetting to default.",e),localStorage.setItem("resourcesCartItems",JSON.stringify([]))}}async function mu(e){var t,r,n;if((r=(t=e.body.transaction)==null?void 0:t.giftcardInfo)!=null&&r.code){const i=Number((n=e.body.transaction)==null?void 0:n.giftcardInfo.amount);Alpine.store("cart").giftCardTotal=i,i<=0&&(Alpine.store("cart").giftCardTotal=0,Alpine.store("cart").isFree=!1,Alpine.store("cart").giftCardCode=null)}}function Ns(){Rs(),Ls(),Alpine.store("cart",{giftCardAmountApplied:Alpine.$persist(0).as("giftCardAmountApplied"),giftCardTotal:Alpine.$persist(0).as("giftCardTotal"),giftCardCode:Alpine.$persist(null).as("giftCardCode"),hasProcessingFee:0,justAddedItem:null,items:Alpine.$persist([]).as("cartItems"),isCartSaved:Alpine.$persist(!1).as("isCartSaved").using(window.cookieStorage),isCartOpen:!1,isFree:!1,processingFee:0,subtotal:Alpine.$persist(0).as("cartSubtotal"),totalAmount:0,suggestedProducts:Alpine.$persist([]).as("suggestedProducts"),suggestedProductTitle:Alpine.$persist("").as("suggestedProductTitle"),init(){this.isCartSaved||this.clearItems(),document.addEventListener("addedtobasket",e=>{const t=Vr(e.detail),r=this.getSku(t);t.sku=r,this.isCartSaved=!0,this.addItem(t)&&(_i(t),this.openCart(),this.addSuggestedProducts(e.detail.suggested_products))}),document.addEventListener("quantitychanged",e=>{const t=this.findItemWithMatchingSKU(this.items,e.detail.sku);if(t.quantity=e.detail.value,e.detail.value<1){this.removeItem(e.detail.id);return}this.calculateSubtotal()}),document.addEventListener("amountchanged",e=>{const t=this.findItemWithMatchingSKU(this.items,e.detail.sku);t.amount=Number(e.detail.value),t.type==="gift_card"&&t.gift_card_data&&(t.gift_card_data.amount=Number(e.detail.value)),this.calculateSubtotal()})},get getGiftCardTotal(){return Ts(this.giftCardTotal)},get isMatched(){return!!this.items.some(t=>t.is_matched_product==1)},get frequency(){const e=this.items.some(r=>r.is_yearly==1),t=this.items.some(r=>r.is_monthly==1);return e?"yearly":t?"monthly":"one-time"},onCartConflict(){window.dispatchEvent(new CustomEvent("cart-conflict",{detail:{title:"Just a moment!",message:"It looks like you have a Resource in your cart. Please finish checking out your Resources order before adding a Gift Catalog item to your cart.",otherCart:"resources",blockedBy:"resources",origin:"cart"}}))},addItem(e){if(this.hasResourcesCartConflict())return this.onCartConflict(),!1;const t=Vr(e),r=this.findItemWithMatchingSKU(this.items,t.sku);return this.justAddedItem=t,!r||e.type==="gift_card"?(this.items.unshift(t),this.addSuggestedProducts(e.suggested_products),!0):(this.updateExistingItem(r,t),!0)},hasResourcesCartConflict(){try{if(window!=null&&window.Alpine){const t=window.Alpine.store("resourcesCart"),r=window.Alpine.raw?window.Alpine.raw(t==null?void 0:t.items):t==null?void 0:t.items;if(Array.isArray(r))return r.length>0}const e=JSON.parse(localStorage.getItem("resourcesCartItems")||"[]");return Array.isArray(e)&&e.length>0}catch(e){return console.error("Error:",e),!1}},addSuggestedProducts(e){e&&(this.suggestedProducts=JSON.parse(e))},calculateSubtotal(){if(!this.isCartOpen)return;const e=this.hasProcessingFee==1?Number(this.processingFee):0;if(this.giftCardAmountApplied=this.giftCardTotal,this.giftCardAmountApplied>0&&this.items.length>0){const t=[],r=[];
25this.items.forEach(a=>{a.is_monthly||a.is_yearly||a.type==="gift_card"?t.push(a):r.push(a)});const n=t.reduce((a,s)=>s.type==="gift_catalog_donation"||s.type==="gift_card"?a+s.amount:a+s.price*s.quantity,0);let i=this.giftCardAmountApplied,o=0;for(const a of r){const s=a.type==="gift_catalog_donation"||a.type==="gift_card"?a.amount:a.price*a.quantity;i>0?i>=s?i-=s:(o+=s-i,i=0):o+=s}this.giftCardAmountApplied=this.giftCardAmountApplied-i,this.totalAmount=n+o,this.subtotal=this.items.reduce((a,s)=>s.type==="gift_catalog_donation"||s.type==="gift_card"?a+s.amount:a+s.price*s.quantity,0),this.totalAmount=this.totalAmount+e,this.totalAmount==0?this.isFree=!0:this.isFree=!1}else this.subtotal=this.items.reduce((t,r)=>r.type==="gift_catalog_donation"||r.type==="gift_card"?t+r.amount:t+r.price*r.quantity,0),this.isFree=!1,this.totalAmount=this.subtotal,this.subtotal=this.subtotal+e},clearItems(){this.items=[],this.subtotal=0,this.suggestedProducts=[],this.suggestedProductTitle="",this.justAddedItem=null;try{this.isCartSaved=!1}catch(e){console.error("Error:",e);return}},closeCart(){this.isCartOpen&&(this.isCartOpen=!1,document.body.classList.remove("tw-overflow-hidden"))},findItemWithMatchingId(e,t){return e.find(r=>r.id===t)},findItemWithMatchingSKU(e,t){return e.find(r=>r.sku===t)},getSku(e){try{const t=JSON.parse(e.sku);return typeof t!="object"?e.sku:e.is_monthly?t.monthly_sku:e.is_yearly?t.yearly_sku:t[{gift_catalog_partial:"partial_sku",gift_catalog_static_price:"full_sku"}[e.type]]||t.one_time_sku}catch(t){return console.error("Error:",t),e.sku}},openCart(){this.isCartOpen||(this.isCartOpen=!0,document.body.classList.add("tw-overflow-hidden"),gi(this.items))},removeItem(e){const t=this.items.find(r=>r.id===e);if(this.isCartOpen&&t&&this.giftCardAmountApplied>0&&!t.is_monthly&&!t.is_yearly){const r=t.type==="gift_catalog_donation"||t.type==="gift_card"?t.amount:t.price*t.quantity;this.giftCardAmountApplied+=r}this.items=this.items.filter(r=>r.id!==e),this.suggestedProducts=[],this.calculateSubtotal()},updateExistingItem(e,t){const{quantity:r,amount:n,type:i}=e;e.quantity=Number(r)+Number(t.quantity),i==="gift_catalog_donation"&&(e.amount=Number(n)+Number(t.amount))},updateItemQuantity(e,t){const r=this.findItemWithMatchingSKU(this.items,e);r&&(r.quantity=Number(r.quantity)+Number(t))}})}function Ms(){Ds(),ks(),Alpine.store("resourcesCart",{justAddedItem:null,items:Alpine.$persist([]).as("resourcesCartItems"),isCartSaved:Alpine.$persist(!1).as("isResourcesCartSaved").using(window.cookieStorage),isCartOpen:!1,isFree:!0,totalAmount:0,amount:0,type:"resource",init(){this.isCartSaved||this.clearItems(),document.addEventListener("resourcesaddedtobasket",e=>{var i;const t=$r(e.detail);t.maxQuantity=this.normalizeMaxQuantity((i=e.detail)==null?void 0:i.maxQuantity);const r=this.getSku(t);t.sku=r,this.addItem(t)&&(this.isCartSaved=!0,_i(t),this.openCart())}),document.addEventListener("quantitychangedresources",e=>{var s,u,c;const t=(s=e==null?void 0:e.detail)==null?void 0:s.sku,r=(u=e==null?void 0:e.detail)==null?void 0:u.value,n=(c=e==null?void 0:e.detail)==null?void 0:c.id;if(!t)return;const i=this.findItemWithMatchingSKU(this.items,t);if(!i)return;const o=this.normalizeMaxQuantity(i.maxQuantity);let a=Number(r);if(Number.isNaN(a)&&(a=1),a=Math.floor(a),a>o&&(a=o),a<1){n&&this.removeItem(n);return}i.quantity=a})},hasMainCartConflict(){try{if(window!=null&&window.Alpine){const t=window.Alpine.store("cart"),r=window.Alpine.raw?window.Alpine.raw(t==null?void 0:t.items):t==null?void 0:t.items;if(Array.isArray(r))return r.length>0}const e=JSON.parse(localStorage.getItem("cartItems")||"[]");return Array.isArray(e)&&e.length>0}catch(e){return console.error("Error:",e),!1}},onResourcesCartConflict(){Alpine.$dispatch("cart-conflict",{title:"Just a moment!",message:"It looks like you have a Resource in your cart. Please finish checking out your Resources order before adding a Gift Catalog item to your cart.",otherCart:"resources",blockedBy:"resources",origin:"cart"})},addItem(e){if(this.hasMainCartConflict())return this.onResourcesCartConflict(),!1;const t=$r(e);t.maxQuantity=this.normalizeMaxQuantity(e==null?void 0:e.maxQuantity);const r=this.findItemWithMatchingSKU(this.items,t.sku),n=this.findItemWithMatchingSKU(this.items,t.sku);return this.justAddedItem=t,r?n?(this.updateExistingItem(n,t),!0):(this.items.unshift(t),!0):(this.items.unshift(t),!0)},clearItems(){this.items=[],this.justAddedItem=null;try{localStorage.removeItem("resourcesCartItems"),localStorage.removeItem("isResourcesCartSaved")}catch(e){console.error("Error:",e);return}try{this.isCartSaved=!1}catch(e){console.error("Error:",e);return}}
25,closeCart(){this.isCartOpen&&(this.isCartOpen=!1,document.body.classList.remove("tw-overflow-hidden"))},findItemWithMatchingId(e,t){return(e||[]).find(r=>(r==null?void 0:r.id)===t)},findItemWithMatchingSKU(e,t){return(e||[]).find(r=>(r==null?void 0:r.sku)===this.getSku({sku:t}))},getSku(e){const t=(e==null?void 0:e.sku)!=null?String(e.sku).trim():"";return t?t.replace(/\./g,""):""},normalizeMaxQuantity(e){const t=Number(e);return Number.isNaN(t)||t<1?100:t},openCart(){this.isCartOpen||(this.isCartOpen=!0,document.body.classList.add("tw-overflow-hidden"),gi(this.items))},removeItem(e){this.items=(this.items||[]).filter(t=>(t==null?void 0:t.id)!==e)},updateExistingItem(e,t){const r=this.normalizeMaxQuantity(t.maxQuantity||e.maxQuantity),n=Number(e.quantity)+Number(t.quantity);e.maxQuantity=r,e.quantity=Math.min(r,n)},updateItemQuantity(e,t){const r=this.findItemWithMatchingSKU(this.items,e);if(r){const n=this.normalizeMaxQuantity(r.maxQuantity),i=Number(r.quantity)+Number(t);r.quantity=Math.min(n,i)}}})}function Fs(){Alpine.store("formStore",{init(){this.formElements=document.querySelectorAll('[x-data="MultistepForm"], .form--checkout, [x-data="NewsletterSignUp"], [x-data="GiftCardPurchaseForm"], [x-data="TeamBasedDonation"]'),this.formElements.forEach(e=>{const t={complete:!1,data:{},errors:!1,loading:!1,showProcessingOverlay:!1,dataLayerItems:[],selectedPremium:null};this.forms[e.id]=t}),this.initFormValidation(),this.initBraintreeFieldsValidation()},initBraintreeFieldsValidation(){document.querySelectorAll("[data-braintree]").forEach(t=>{const n=t.closest("form").querySelector('[type="submit"]'),i=t.querySelectorAll(".braintree-fields__field");n.disabled=!0;let o=!1;function a(){const c=Array.from(i).every(l=>l.classList.contains("braintree-hosted-fields-valid"));o!==c&&(o=c,n.disabled=!o)}const s=(c,l)=>{for(const d of c)if(d.type==="attributes"&&d.attributeName==="class"){a();break}},u=new MutationObserver(s);i.forEach(c=>{u.observe(c,{attributes:!0})})})},initFormValidation(){document.querySelectorAll("[data-validate]").forEach(t=>{const r=t.querySelector('[type="submit"]');t.addEventListener("input",Alpine.debounce(()=>{this.isFormValid(t,r)},300)),this.isFormValid(t,r)})},syncPremiumDisplay(e){const t=this.getSelectedPremium("premium");if(!e||!t)return;const r=e.querySelectorAll("[data-premium-display]");r.length&&r.forEach(n=>{var s,u;const i=n.querySelector("[data-premium-lightbox]"),o=n.querySelector("[data-premium-product]"),a=n.dataset.secondaryPremium==="true";if(o&&!o.dataset.defaultProduct&&(o.dataset.defaultProduct=o.value),a&&n.removeAttribute("hidden"),i){const c=i.querySelector('[x-data="LightboxImage"]'),l=i.querySelector("figure img"),d=((s=t.image)==null?void 0:s.src)||"",_=((u=t.image)==null?void 0:u.alt)||"";let v=[];Array.isArray(t.gallery)?v=t.gallery:t.image&&(v=[t.image]),l&&d&&(l.setAttribute("src",d),l.setAttribute("alt",_)),c&&(c.dataset.gallery=JSON.stringify(v),c.dispatchEvent(new CustomEvent("lightbox-gallery-updated",{detail:{gallery:v,image:t.image||v[0]||null}})))}o&&(o.value=JSON.stringify(t))})},isFormValid(e,t){const r=e.checkValidity();t&&(t.disabled=!r)},setSelectedPremium(e,t){this.forms[e]||(this.forms[e]={complete:!1,data:{},errors:!1,loading:!1,showProcessingOverlay:!1,dataLayerItems:[],selectedPremium:null}),this.forms[e].selectedPremium=t},getSelectedPremium(e){return this.forms[e]?this.forms[e].selectedPremium:null},forms:{}})}function js(){Alpine.store("premiumStore",{sections:{},getSectionId(e){const r=(e==null?void 0:e.closest("[data-premium-group]"))||(e==null?void 0:e.closest("section"));return r?(r.dataset.premiumSectionId||(r.dataset.premiumSectionId=`premium-${Math.random().toString(36).substring(2,8)}`),r.dataset.premiumSectionId):"default"},getSection(e){const t=this.getSectionId(e);return this.sections[t]||(this.sections[t]={selectedPremium:null,selectedVariantSku:"",selectedVariantTitle:"",optout:!1}),this.sections[t]},normalizePremium(e){var t,r,n;return{...e,image:{...e.image,src:((t=e.image)==null?void 0:t.src)||((r=e.image)==null?void 0:r.url)||"",alt:((n=e.image)==null?void 0:n.alt)||e.title||""}}},setSelectedPremium(e,t){const r=this.getSection(e);r.selectedPremium=this.normalizePremium(t),r.selectedVariantSku="",r.selectedVariantTitle=""},setVariant(e,t,r=""){const n=this.getSection(e);n.selectedVariantSku=t||"",n.selectedVariantTitle=r||""},setOptout(e,t){const r=this.getSection(e);r.optout=t}
25,getSelectedPremium(e){return this.getSection(e).selectedPremium},hasVariants(e){const t=this.getSelectedPremium(e);return Array.isArray(t==null?void 0:t.variants)&&t.variants.length>0},hasVisibleVariants(e){const t=this.getSelectedPremium(e);return t?Array.isArray(t.variants)&&t.variants.length>0:(e==null?void 0:e.querySelector('[data-premium-display][data-premium-has-variants="true"]'))!==null},getVariantTitle(e,t){if(!Array.isArray(e==null?void 0:e.variants))return"";const r=e.variants.find(n=>n.sku===t);return(r==null?void 0:r.heading)||(r==null?void 0:r.title)||""},getResolvedPremium(e,t=null){const r=this.getSection(e),n=r.selectedPremium||t;if(!n)return null;const i={...n};if(Array.isArray(n.variants)&&n.variants.length>0){const o=r.selectedVariantSku;if(o){const a=r.selectedVariantTitle||this.getVariantTitle(n,o);i.sku=o,a&&(i.title=a)}}return i},getSubmitPremium(e,t){let r=null;try{r=t.get("premium")?JSON.parse(t.get("premium")):null}catch{r=null}const n=t.get("variant"),i=e.querySelector('select[name="variant"]'),o=i?Array.from(i.options).find(c=>c.value===n):null,a=(o==null?void 0:o.label)||(o==null?void 0:o.textContent)||"",s=this.hasVisibleVariants(e);s&&n&&this.setVariant(e,n,a);const u=this.getResolvedPremium(e,r);return u&&s&&n&&(u.sku=n,a&&(u.title=a)),{premium:u,hasVariants:s}},prepareFormDataForSubmit(e,t){const{premium:r,hasVariants:n}=this.getSubmitPremium(e,t);r&&(t.set("premium",JSON.stringify(r)),n&&r.sku?t.set("variant",r.sku):t.delete("variant"));const i=t.get("products"),o=t.get("amount");if(!i||!o||o==="other")return{premium:r,formData:t};try{const s=JSON.parse(i).map(u=>u.type==="premium"?r||u:{...u,amount:o});t.set("products",JSON.stringify(s))}catch{}return{premium:r,formData:t}},syncPremiumDisplay(e){const t=e==null?void 0:e.closest("[data-premium-group]");if(!t)return;const r=this.getSelectedPremium(e);if(!r)return;const n=t.querySelectorAll("[data-premium-display]");n.length&&n.forEach(i=>{var c,l;const o=i.querySelector("[data-premium-lightbox]"),a=i.querySelector("[data-premium-product]"),s=i.querySelector('select[name="variant"]'),u=i.dataset.secondaryPremium==="true";if(a&&!a.dataset.defaultProduct&&(a.dataset.defaultProduct=a.value),u&&i.removeAttribute("hidden"),o){const d=o.querySelector('[x-data="LightboxImage"]'),_=o.querySelector("figure img"),v=((c=r.image)==null?void 0:c.src)||"",A=((l=r.image)==null?void 0:l.alt)||"";let O=[];Array.isArray(r.gallery)?O=r.gallery:r.image&&(O=[r.image]),_&&v&&(_.setAttribute("src",v),_.setAttribute("alt",A)),d&&(d.dataset.gallery=JSON.stringify(O),d.dispatchEvent(new CustomEvent("lightbox-gallery-updated",{detail:{gallery:O,image:r.image||O[0]||null}})))}a&&(a.value=JSON.stringify(r)),s&&(s.value="")})}})}function Vs(){Alpine.store("donationFrequency",{selected:{},init(){document.querySelectorAll('[x-data="MultistepForm"]').forEach(e=>{this.setFromDefaultToggle(e.id)})},setFromDefaultToggle(e){var n;const t=document.getElementById(e);if(!t)return;const r=(n=t.closest("section"))==null?void 0:n.querySelector('[role="tablist"][data-default]');r&&this.set(e,r.dataset.default)},set(e,t){e&&["one-time","monthly","yearly"].includes(t)&&(this.selected[e]=t)},get(e){return this.selected[e]||"one-time"},isOnetime(e){return this.get(e)==="one-time"},isMonthly(e){return this.get(e)==="monthly"},isYearly(e){return this.get(e)==="yearly"}})}function $s(){Alpine.store("honorCards",{defaultMessage:"",image:"",images:[],productData:[],productImageUrl:"",productImageAlt:"",selectedStyle:"",selectedStyleData:[],selectedProduct:"",selectedProductData:[],stylesData:[],updateProductData(e){return this.productData.find(t=>t.uuid===e)},updateStyleData(e){return this.stylesData.find(t=>t.post_name===e)}})}function qs(){Alpine.store("vendor",{loaded:{}})}function Us(){try{(function(e,t,r,n,i){e._genesysJs=t,e[t]=e[t]||function(){(e[t].q=e[t].q||[]).push(arguments)},e[t].t=1*new Date,e[t].c=n,i=document.createElement("script"),i.async=1,i.src=r,i.charset="utf-8",i.onload=()=>{window.dispatchEvent(new CustomEvent("genesys-loaded"))},document.head.appendChild(i)})(window,"Genesys","https://apps.usw2.pure.cloud/genesys-bootstrap/genesys.min.js",{environment:"prod-usw2",deploymentId:"42294833-85b9-4681-b946-2e4ea9b36548"})}catch(e){console.error("Failed to load Genesys script:",e)}}class Ks{constructor(){this.path=location.pathname,this.survey="",this.excluded=[],this.included=["/cart/confirmation"],this.inclusionCondition=document.getElementById("dafpay"),this.init()}init(){try{this.included.includes(this.path)&&!this.excluded.includes(this.path)&&this.inclusionCondition&&(this.addApptentiveScript(),this.addCustomScript(),this.prepareSurvey())}catch(t){console.error(t)}}prepareSurvey(){window.onload=()=>{typeof ApptentiveSDK>"u"||setTimeout(()=>this.showSurvey(),1e3)}}
25showSurvey(){switch(this.path){case"/cart/confirmation":this.survey="dafpay";break}this.survey.trim().length!==0&&(ApptentiveSDK.createConversation(),ApptentiveSDK.engage(this.survey))}addCustomScript(){const t=document.createElement("script");t.textContent='(function initApptentiveSDK(){var ApptentiveSDK=window.ApptentiveSDK=window.ApptentiveSDK||[];if(!ApptentiveSDK.version){if(!ApptentiveSDK.loaded){ApptentiveSDK.loaded=true;ApptentiveSDK.methods=["buildDevice","createConversation","createMessage","engage","getSegments","identifyPerson","setOption","setPageName","showInteraction","showMessageCenter","updatePerson"];ApptentiveSDK.factory=function factory(t){return function f(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}var e=Array.prototype.slice.call(args);e.unshift(t);ApptentiveSDK.push(e);return ApptentiveSDK}};for(var i=0;i<ApptentiveSDK.methods.length;i++){var method=ApptentiveSDK.methods[i];ApptentiveSDK[method]=ApptentiveSDK.factory(method)}ApptentiveSDK.LOADER_VERSION="1.0.0"}}})();',document.head.appendChild(t)}addApptentiveScript(){const t=document.createElement("script");t.async=!0,t.src="https://sdk.apptentive.com/v1/apps/680689d6dd91272431f2c61f/websdk",document.head.appendChild(t)}}const Bs={braintree:{eventName:"load-braintree",loader:()=>p(()=>import("./chunks/braintree.BbMYnQjU.js"),__vite__mapDeps([8,9])),selector:"[data-braintree]"},blackbaud:{eventName:"load-blackbaud",loader:()=>p(()=>import("./chunks/blackbaud.YEmCmJQU.js"),__vite__mapDeps([10,9])),selector:"[data-blackbaud]"},dafpay:{eventName:"load-dafpay",loader:()=>p(()=>import("./chunks/dafpay.C7_zvc6x.js"),__vite__mapDeps([11,9])),selector:"chariot-connect"}},Hs=()=>{Us(),new Ks,Object.entries(Bs).map(async([e,{eventName:t,loader:r,selector:n}])=>{window.addEventListener(`${t}`,async i=>{if(!Object.hasOwn(i.detail,"id"))return;const o=`#${i.detail.id} ${n}`,a=document.querySelectorAll(o);if(a.length)try{const s=await r();a.forEach(u=>new s.default(u))}catch(s){console.error(`Error initializing ${e}:`,s)}return Promise.resolve()})})};var ct=class extends Event{constructor(t,{oldState:r="",newState:n="",...i}={}){super(t,i);ft(this,"oldState");ft(this,"newState");this.oldState=String(r||""),this.newState=String(n||"")}},qr=new WeakMap;function yi(e,t,r){qr.set(e,setTimeout(()=>{qr.has(e)&&e.dispatchEvent(new ct("toggle",{cancelable:!1,oldState:t,newState:r}))},0))}var cr=globalThis.ShadowRoot||function(){},Ws=globalThis.HTMLDialogElement||function(){},He=new WeakMap,V=new WeakMap,D=new WeakMap,ce=new WeakMap;function Xe(e){return ce.get(e)||"hidden"}var Ze=new WeakMap;function Te(e){return[...e].pop()}function zs(e){let t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;let r=Xe(t);e.popoverTargetAction==="show"&&r==="showing"||e.popoverTargetAction==="hide"&&r==="hidden"||(r==="showing"?de(t,!0,!0):te(t,!1)&&(Ze.set(t,e),$t(t)))}function te(e,t){return!(e.popover!=="auto"&&e.popover!=="manual"&&e.popover!=="hint"||!e.isConnected||t&&Xe(e)!=="showing"||!t&&Xe(e)!=="hidden"||e instanceof Ws&&e.hasAttribute("open")||document.fullscreenElement===e)}function Ur(e){if(!e)return 0;let t=V.get(document)||new Set,r=D.get(document)||new Set;return r.has(e)?[...r].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function Js(e){let t=bi(e),r=Gs(e);return Ur(t)>Ur(r)?t:r}function Oe(e){let t,r=D.get(e)||new Set,n=V.get(e)||new Set,i=r.size>0?r:n.size>0?n:null;return i?(t=Te(i),t.isConnected?t:(i.delete(t),Oe(e))):null}function Kr(e){for(let t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function le(e){return typeof e.getRootNode=="function"?e.getRootNode():e.parentNode?le(e.parentNode):e}function bi(e){for(;e;){if(e instanceof HTMLElement&&e.popover==="auto"&&ce.get(e)==="showing")return e;if(e=e instanceof Element&&e.assignedSlot||e.parentElement||le(e),e instanceof cr&&(e=e.host),e instanceof Document)return}}function Gs(e){for(;e;){let t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if(e=e.parentElement||le(e),e instanceof cr&&(e=e.host),e instanceof Document)return}}function Br(e,t){let r=new Map,n=0;for(let a of t||[])r.set(a,n),n+=1;r.set(e,n),n+=1;let i=null;function o(a){if(!a)return;let s=!1,u=null,c=null;for(;!s;){if(u=bi(a)||null,u===null||!r.has(u))return;(e.popover==="hint"||u.popover==="auto")&&(s=!0),s||(a=u.parentElement)}c=r.get(u),(i===null||r.get(i)<c)&&(i=u)}return o(e.parentElement||le(e)),i}function Qs(e){return e.hidden||e instanceof cr||(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)&&e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e instanceof HTMLAnchorElement&&e.href===""?!1:typeof e.tabIndex=="number"&&e.tabIndex!==-1}function Ys(e){if(e.shadowRoot&&e.shadowRoot.delegatesFocus!==!0)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);let r=t.querySelector("[autofocus]");if(r)return r;{let o=t.querySelectorAll("slot");for(let a of o){let s=a.assignedElements({flatten:!0});for(let u of s){if(u.hasAttribute("autofocus"))return u;if(r=u.querySelector("[autofocus]"),r)return r}}}let n=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){if(Qs(i))return i;i=n.nextNode()}}function Xs(e){var t;(t=Ys(e))==null||t.focus()}var et=new WeakMap;function $t(e){if(!te(e,!1))return;let t=e.ownerDocument;if(!e.dispatchEvent(new ct("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!te(e,!1))return;let r=!1,n=e.popover,i=null,o=Br(e,V.get(t)||new Set),a=Br(e,D.get(t)||new Set);if(n==="auto"&&(qt(D.get(t)||new Set,r,!0),re(o||t,r,!0),i="auto"),n==="hint"&&(a?(re(a,r,!0),i="hint"):(qt(D.get(t)||new Set,r,!0),o?(re(o,r,!0),i="auto"):i="hint")),n==="auto"||n==="hint"){if(n!==e.popover||!te(e,!1))return;Oe(t)||(r=!0),i==="auto"?(V.has(t)||V.set(t,new Set),V.get(t).add(e)):i==="hint"&&(D.has(t)||D.set(t,new Set),D.get(t).add(e))}et.delete(e);let s=t.activeElement;e.classList.add(":popover-open"),ce.set(e,"showing"),He.has(t)||He.set(t,new Set),He.get(t).add(e),wi(Ze.get(e),!0),Xs(e),r&&s&&e.popover==="auto"&&et.set(e,s),yi(e,"closed","open")}function de(e,t=!1,r=!1){var n,i;if(!te(e,!0))return;let o=e.ownerDocument;if(["auto","hint"].includes(e.popover)&&(re(e,t,r),!te(e,!0)))return;let a=V.get(o)||new Set,s=a.has(e)&&Te(a)===e;
vendor: 5,235 bytes, lines 25-87
25if(wi(Ze.get(e),!1),Ze.delete(e),r&&(e.dispatchEvent(new ct("beforetoggle",{oldState:"open",newState:"closed"})),s&&Te(a)!==e&&re(e,t,r),!te(e,!0)))return;(n=He.get(o))==null||n.delete(e),a.delete(e),(i=D.get(o))==null||i.delete(e),e.classList.remove(":popover-open"),ce.set(e,"hidden"),r&&yi(e,"open","closed");let u=et.get(e);u&&(et.delete(e),t&&u.focus())}function Zs(e,t=!1,r=!1){let n=Oe(e);for(;n;)de(n,t,r),n=Oe(e)}function qt(e,t=!1,r=!1){let n=Kr(e);for(;n;)de(n,t,r),n=Kr(e)}function Hr(e,t,r,n){let i=!1,o=!1;for(;i||!o;){o=!0;let a=null,s=!1;for(let u of t)if(u===e)s=!0;else if(s){a=u;break}if(!a)return;for(;Xe(a)==="showing"&&t.size;)de(Te(t),r,n);t.has(e)&&Te(t)!==e&&(i=!0),i&&(n=!1)}}function re(e,t,r){var n,i;let o=e.ownerDocument||e;if(e instanceof Document)return Zs(o,t,r);if((n=D.get(o))!=null&&n.has(e)){Hr(e,D.get(o),t,r);return}qt(D.get(o)||new Set,t,r),(i=V.get(o))!=null&&i.has(e)&&Hr(e,V.get(o),t,r)}var vt=new WeakMap;function Wr(e){if(!e.isTrusted)return;let t=e.composedPath()[0];if(!t)return;let r=t.ownerDocument;if(!Oe(r))return;let n=Js(t);if(n&&e.type==="pointerdown")vt.set(r,n);else if(e.type==="pointerup"){let i=vt.get(r)===n;vt.delete(r),i&&re(n||r,!1,!0)}}var yt=new WeakMap;function wi(e,t=!1){if(!e)return;yt.has(e)||yt.set(e,e.getAttribute("aria-expanded"));let r=e.popoverTargetElement;if(r instanceof HTMLElement&&r.popover==="auto")e.setAttribute("aria-expanded",String(t));else{let n=yt.get(e);n?e.setAttribute("aria-expanded",n):e.removeAttribute("aria-expanded")}}var zr=globalThis.ShadowRoot||function(){};function eu(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype}function z(e,t,r){let n=e[t];Object.defineProperty(e,t,{value(i){return n.call(this,r(i))}})}var tu=/(^|[^\\]):popover-open\b/g;function ru(){return typeof globalThis.CSSLayerBlockRule=="function"}function nu(){let e=ru();return`
26${e?"@layer popover-polyfill {":""}
27  :where([popover]) {
28    position: fixed;
29    z-index: 2147483647;
30    inset: 0;
31    padding: 0.25em;
32    width: fit-content;
33    height: fit-content;
34    border-width: initial;
35    border-color: initial;
36    border-image: initial;
37    border-style: solid;
38    background-color: canvas;
39    color: canvastext;
40    overflow: auto;
41    margin: auto;
42  }
43
44  :where([popover]:not(.\\:popover-open)) {
45    display: none;
46  }
47
48  :where(dialog[popover].\\:popover-open) {
49    display: block;
50  }
51
52  :where(dialog[popover][open]) {
53    display: revert;
54  }
55
56  :where([anchor].\\:popover-open) {
57    inset: auto;
58  }
59
60  :where([anchor]:popover-open) {
61    inset: auto;
62  }
63
64  @supports not (background-color: canvas) {
65    :where([popover]) {
66      background-color: white;
67      color: black;
68    }
69  }
70
71  @supports (width: -moz-fit-content) {
72    :where([popover]) {
73      width: -moz-fit-content;
74      height: -moz-fit-content;
75    }
76  }
77
78  @supports not (inset: 0) {
79    :where([popover]) {
80      top: 0;
81      left: 0;
82      right: 0;
83      bottom: 0;
84    }
85  }
86${e?"}":""}
87`}var se=null;function bt(e){let t=nu();if(se===null)try{se=new CSSStyleSheet,se.replaceSync(t)}catch{se=!1}if(se===!1){let r=document.createElement("style");r.textContent=t,e instanceof Document?e.head.prepend(r):e.prepend(r)}else e.adoptedStyleSheets=[se,...e.adoptedStyleSheets]}function iu(){if(typeof window>"u")return;window.ToggleEvent=window.ToggleEvent||ct;function e(s){return s!=null&&s.includes(":popover-open")&&(s=s.replace(tu,"$1.\\:popover-open")),s}z(Document.prototype,"querySelector",e),z(Document.prototype,"querySelectorAll",e),z(Element.prototype,"querySelector",e),z(Element.prototype,"querySelectorAll",e),z(Element.prototype,"matches",e),z(Element.prototype,"closest",e),z(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let s=(this.getAttribute("popover")||"").toLowerCase();return s===""||s=="auto"?"auto":s=="hint"?"hint":"manual"},set(s){s===null?this.removeAttribute("popover"):this.setAttribute("popover",s)}},showPopover:{enumerable:!0,configurable:!0,value(s={}){$t(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){de(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(s={}){return typeof s=="boolean"&&(s={force:s}),ce.get(this)==="showing"&&s.force===void 0||s.force===!1?de(this,!0,!0):(s.force===void 0||s.force===!0)&&$t(this),ce.get(this)==="showing"}}});let t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(s){let u=t.call(this,s);return bt(u),u}}});let r=HTMLElement.prototype.attachInternals;r&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let s=r.call(this);return s.shadowRoot&&bt(s.shadowRoot),s}}});let n=new WeakMap;function i(s){Object.defineProperties(s.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(u){if(u===null)this.removeAttribute("popovertarget"),n.delete(this);else if(u instanceof Element)this.setAttribute("popovertarget",""),n.set(this,u);else throw new TypeError("popoverTargetElement must be an element or null")}
87,get(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;let u=n.get(this);if(u&&u.isConnected)return u;if(u&&!u.isConnected)return n.delete(this),null;let c=le(this),l=this.getAttribute("popovertarget");return(c instanceof Document||c instanceof zr)&&l&&c.getElementById(l)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let u=(this.getAttribute("popovertargetaction")||"").toLowerCase();return u==="show"||u==="hide"?u:"toggle"},set(u){this.setAttribute("popovertargetaction",u)}}})}i(HTMLButtonElement),i(HTMLInputElement);let o=s=>{if(s.defaultPrevented)return;let u=s.composedPath(),c=u[0];if(!(c instanceof Element)||c!=null&&c.shadowRoot)return;let l=le(c);if(!(l instanceof zr||l instanceof Document))return;let d=u.find(_=>{var v;return(v=_.matches)==null?void 0:v.call(_,"[popovertargetaction],[popovertarget]")});if(d){zs(d),s.preventDefault();return}},a=s=>{let u=s.key,c=s.target;!s.defaultPrevented&&c&&(u==="Escape"||u==="Esc")&&re(c.ownerDocument,!0,!0)};(s=>{s.addEventListener("click",o),s.addEventListener("keydown",a),s.addEventListener("pointerdown",Wr),s.addEventListener("pointerup",Wr)})(document),bt(document)}eu()||iu();document.addEventListener("alpine:init",()=>{Ms(),Ns(),Fs(),js(),Vs(),qs(),$s()});Is();xs();Hs();export{du as a,pu as b,Ts as c,uu as d,cu as e,hu as f,fu as g,lu as p,Qa as s,mu as u};

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.