vendor: 2,089 bytes, lines 1-5
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./JsFHihGc.js","./D6qJEWCx.js","./ButB7SAQ.js","./useSanitySeo.GWvnZB2m.css","./DyWxIG-Z.js","./C3zDOIbn.js","./BkXnp7SW.js","./PageSections.DT0Wr2VX.css","./index.H7uuHCB0.css","./BgY87qpm.js","./BjxLCbER.js","./B1qm8s77.js","./CReNTdSP.js","./8s5tsT0x.js","./Loader.BMLPi8ki.css","./CMYSNu-3.js","./CffBAUUu.js","./vsgaoQDy.js","./DcLTPu04.js","./CfvkXhO3.js","./BEOvR8N0.js","./D6OBbZ1y.js","./BMEBcPnv.js","./SavedProjectsOverview.DIXM1S6v.css","./Cgd73mMS.js","./D45ukowH.js","./profile.hDTrXYRx.css","./Cmq04q5M.js","./DvDMetKg.js","./Dtb_o39w.js","./BZyxQeMx.js","./TknP5OTa.js","./D4j7pIkY.js","./CookiePopupDummy.CPHGBrRd.css","./BFYQZOAu.js","./Cc0G_eiQ.js","./BcDhY8nf.js","./CTF6_cgR.js"])))=>i.map(i=>d[i]); 2var E_=Object.defineProperty;var mf=e=>{throw TypeError(e)};var T_=(e,t,r)=>t in e?E_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var N=(e,t,r)=>T_(e,typeof t!="symbol"?t+"":t,r),vf=(e,t,r)=>t.has(e)||mf("Cannot "+r);var L=(e,t,r)=>(vf(e,t,"read from private field"),r?r.call(e):t.get(e)),ke=(e,t,r)=>t.has(e)?mf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),xe=(e,t,r,n)=>(vf(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();/** 3* @vue/shared v3.5.13 4* (c) 2018-present Yuxi (Evan) You and Vue contributors 5* @license MIT
6**//*! #__NO_SIDE_EFFECTS__ */function Wl(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Le={},is=[],nr=()=>{},k_=()=>!1,qi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Kl=e=>e.startsWith("onUpdate:"),st=Object.assign,Vl=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},x_=Object.prototype.hasOwnProperty,Pe=(e,t)=>x_.call(e,t),le=Array.isArray,os=e=>Cs(e)==="[object Map]",Lp=e=>Cs(e)==="[object Set]",_f=e=>Cs(e)==="[object Date]",C_=e=>Cs(e)==="[object RegExp]",de=e=>typeof e=="function",Be=e=>typeof e=="string",Wt=e=>typeof e=="symbol",Ne=e=>e!==null&&typeof e=="object",Gl=e=>(Ne(e)||de(e))&&de(e.then)&&de(e.catch),Mp=Object.prototype.toString,Cs=e=>Mp.call(e),R_=e=>Cs(e).slice(8,-1),Np=e=>Cs(e)==="[object Object]",Jl=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,as=Wl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ya=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},A_=/-(\w)/g,jt=ya(e=>e.replace(A_,(t,r)=>r?r.toUpperCase():"")),O_=/\B([A-Z])/g,jn=ya(e=>e.replace(O_,"-$1").toLowerCase()),ma=ya(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ha=ya(e=>e?`on${ma(e)}`:""),en=(e,t)=>!Object.is(e,t),cs=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Dp=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},$_=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Up=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let bf;const va=()=>bf||(bf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function vs(e){if(le(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],s=Be(n)?L_(n):vs(n);if(s)for(const i in s)t[i]=s[i]}return t}else if(Be(e)||Ne(e))return e}const P_=/;(?![^(]*\))/g,I_=/:([^]+)/,j_=/\/\*[^]*?\*\//g;function L_(e){const t={};return e.replace(j_,"").split(P_).forEach(r=>{if(r){const n=r.split(I_);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function dt(e){let t="";if(Be(e))t=e;else if(le(e))for(let r=0;r<e.length;r++){const n=dt(e[r]);n&&(t+=n+" ")}else if(Ne(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function M_(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Be(t)&&(e.class=dt(t)),r&&(e.style=vs(r)),e}const N_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",D_=Wl(N_);function Fp(e){return!!e||e===""}function U_(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Ho(e[n],t[n]);return r}function Ho(e,t){if(e===t)return!0;let r=_f(e),n=_f(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=Wt(e),n=Wt(t),r||n)return e===t;if(r=le(e),n=le(t),r||n)return r&&n?U_(e,t):!1;if(r=Ne(e),n=Ne(t),r||n){if(!r||!n)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const o in e){const a=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(a&&!c||!a&&c||!Ho(e[o],t[o]))return!1}}return String(e)===String(t)}const Hp=e=>!!(e&&e.__v_isRef===!0),pt=e=>Be(e)?e:e==null?"":le(e)||Ne(e)&&(e.toString===Mp||!de(e.toString))?Hp(e)?pt(e.value):JSON.stringify(e,Bp,2):String(e),Bp=(e,t)=>Hp(t)?Bp(e,t.value):os(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s],i)=>(r[Ba(n,i)+" =>"]=s,r),{})}:Lp(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Ba(r))}:Wt(t)?Ba(t):Ne(t)&&!le(t)&&!Np(t)?String(t):t,Ba=(e,t="")=>{var r;return Wt(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** 7* @vue/reactivity v3.5.13 8* (c) 2018-present Yuxi (Evan) You and Vue contributors 9* @license MIT
vendor: 5,366 bytes, line 10
10**/let vt;class qp{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=vt,!t&&vt&&(this.index=(vt.scopes||(vt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=vt;try{return vt=this,t()}finally{vt=r}}}on(){vt=this}off(){vt=this.parent}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function F_(e){return new qp(e)}function Rs(){return vt}function Lt(e,t=!1){vt&&vt.cleanups.push(e)}let Fe;const qa=new WeakSet;class zp{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,vt&&vt.active&&vt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,qa.has(this)&&(qa.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Kp(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,wf(this),Vp(this);const t=Fe,r=zt;Fe=this,zt=!0;try{return this.fn()}finally{Gp(this),Fe=t,zt=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Xl(t);this.deps=this.depsTail=void 0,wf(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?qa.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Wc(this)&&this.run()}get dirty(){return Wc(this)}}let Wp=0,Qs,Xs;function Kp(e,t=!1){if(e.flags|=8,t){e.next=Xs,Xs=e;return}e.next=Qs,Qs=e}function Yl(){Wp++}function Ql(){if(--Wp>0)return;if(Xs){let t=Xs;for(Xs=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Qs;){let t=Qs;for(Qs=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function Vp(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Gp(e){let t,r=e.depsTail,n=r;for(;n;){const s=n.prevDep;n.version===-1?(n===r&&(r=s),Xl(n),H_(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}e.deps=t,e.depsTail=r}function Wc(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Jp(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Jp(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pi))return;e.globalVersion=pi;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Wc(e)){e.flags&=-3;return}const r=Fe,n=zt;Fe=e,zt=!0;try{Vp(e);const s=e.fn(e._value);(t.version===0||en(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Fe=r,zt=n,Gp(e),e.flags&=-3}}function Xl(e,t=!1){const{dep:r,prevSub:n,nextSub:s}=e;if(n&&(n.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)Xl(i,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function H_(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let zt=!0;const Yp=[];function on(){Yp.push(zt),zt=!1}function an(){const e=Yp.pop();zt=e===void 0?!0:e}function wf(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Fe;Fe=void 0;try{t()}finally{Fe=r}}}let pi=0;class B_{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class _a{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Fe||!zt||Fe===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Fe)r=this.activeLink=new B_(Fe,this),Fe.deps?(r.prevDep=Fe.depsTail,Fe.depsTail.nextDep=r,Fe.depsTail=r):Fe.deps=Fe.depsTail=r,Qp(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=Fe.depsTail,r.nextDep=void 0,Fe.depsTail.nextDep=r,Fe.depsTail=r,Fe.deps===r&&(Fe.deps=n)}return r}trigger(t){this.version++,pi++,this.notify(t)}notify(t){Yl();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Ql()}}}function Qp(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Qp(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Bo=new WeakMap,En=Symbol(""),Kc=Symbol(""),gi=Symbol("");function ft(e,t,r){if(zt&&Fe){let n=Bo.get(e);n||Bo.set(e,n=new Map);let s=n.get(r);s||(n.set(r,s=new _a),s.map=n,s.key=r),s.track()}}function wr(e,t,r,n,s,i){const o=Bo.get(e);if(!o){pi++;return}const a=c=>{c&&c.trigger()};
vendor: 5,334 bytes, line 10
10if(Yl(),t==="clear")o.forEach(a);else{const c=le(e),u=c&&Jl(r);if(c&&r==="length"){const l=Number(n);o.forEach((f,h)=>{(h==="length"||h===gi||!Wt(h)&&h>=l)&&a(f)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),u&&a(o.get(gi)),t){case"add":c?u&&a(o.get("length")):(a(o.get(En)),os(e)&&a(o.get(Kc)));break;case"delete":c||(a(o.get(En)),os(e)&&a(o.get(Kc)));break;case"set":os(e)&&a(o.get(En));break}}Ql()}function q_(e,t){const r=Bo.get(e);return r&&r.get(t)}function Hn(e){const t=Ce(e);return t===e?t:(ft(t,"iterate",gi),It(e)?t:t.map(ht))}function ba(e){return ft(e=Ce(e),"iterate",gi),e}const z_={__proto__:null,[Symbol.iterator](){return za(this,Symbol.iterator,ht)},concat(...e){return Hn(this).concat(...e.map(t=>le(t)?Hn(t):t))},entries(){return za(this,"entries",e=>(e[1]=ht(e[1]),e))},every(e,t){return ur(this,"every",e,t,void 0,arguments)},filter(e,t){return ur(this,"filter",e,t,r=>r.map(ht),arguments)},find(e,t){return ur(this,"find",e,t,ht,arguments)},findIndex(e,t){return ur(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ur(this,"findLast",e,t,ht,arguments)},findLastIndex(e,t){return ur(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ur(this,"forEach",e,t,void 0,arguments)},includes(...e){return Wa(this,"includes",e)},indexOf(...e){return Wa(this,"indexOf",e)},join(e){return Hn(this).join(e)},lastIndexOf(...e){return Wa(this,"lastIndexOf",e)},map(e,t){return ur(this,"map",e,t,void 0,arguments)},pop(){return Us(this,"pop")},push(...e){return Us(this,"push",e)},reduce(e,...t){return Sf(this,"reduce",e,t)},reduceRight(e,...t){return Sf(this,"reduceRight",e,t)},shift(){return Us(this,"shift")},some(e,t){return ur(this,"some",e,t,void 0,arguments)},splice(...e){return Us(this,"splice",e)},toReversed(){return Hn(this).toReversed()},toSorted(e){return Hn(this).toSorted(e)},toSpliced(...e){return Hn(this).toSpliced(...e)},unshift(...e){return Us(this,"unshift",e)},values(){return za(this,"values",ht)}};function za(e,t,r){const n=ba(e),s=n[t]();return n!==e&&!It(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=r(i.value)),i}),s}const W_=Array.prototype;function ur(e,t,r,n,s,i){const o=ba(e),a=o!==e&&!It(e),c=o[t];if(c!==W_[t]){const f=c.apply(e,i);return a?ht(f):f}let u=r;o!==e&&(a?u=function(f,h){return r.call(this,ht(f),h,e)}:r.length>2&&(u=function(f,h){return r.call(this,f,h,e)}));const l=c.call(o,u,n);return a&&s?s(l):l}function Sf(e,t,r,n){const s=ba(e);let i=r;return s!==e&&(It(e)?r.length>3&&(i=function(o,a,c){return r.call(this,o,a,c,e)}):i=function(o,a,c){return r.call(this,o,ht(a),c,e)}),s[t](i,...n)}function Wa(e,t,r){const n=Ce(e);ft(n,"iterate",gi);const s=n[t](...r);return(s===-1||s===!1)&&ru(r[0])?(r[0]=Ce(r[0]),n[t](...r)):s}function Us(e,t,r=[]){on(),Yl();const n=Ce(e)[t].apply(e,r);return Ql(),an(),n}const K_=Wl("__proto__,__v_isRef,__isVue"),Xp=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Wt));function V_(e){Wt(e)||(e=String(e));const t=Ce(this);return ft(t,"has",e),t.hasOwnProperty(e)}class Zp{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(s?i?nb:ng:i?rg:tg).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=le(t);if(!s){let c;if(o&&(c=z_[r]))return c;if(r==="hasOwnProperty")return V_}const a=Reflect.get(t,r,ze(t)?t:n);return(Wt(r)?Xp.has(r):K_(r))||(s||ft(t,"get",r),i)?a:ze(a)?o&&Jl(r)?a:a.value:Ne(a)?s?eu(a):gt(a):a}}class eg extends Zp{constructor(t=!1){super(!1,t)}set(t,r,n,s){let i=t[r];if(!this._isShallow){const c=nn(i);if(!It(n)&&!nn(n)&&(i=Ce(i),n=Ce(n)),!le(t)&&ze(i)&&!ze(n))return c?!1:(i.value=n,!0)}const o=le(t)&&Jl(r)?Number(r)<t.length:Pe(t,r),a=Reflect.set(t,r,n,ze(t)?t:s);return t===Ce(s)&&(o?en(n,i)&&wr(t,"set",r,n):wr(t,"add",r,n)),a}deleteProperty(t,r){const n=Pe(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&n&&wr(t,"delete",r,void 0),s}has(t,r){const n=Reflect.has(t,r);return(!Wt(r)||!Xp.has(r))&&ft(t,"has",r),n}ownKeys(t){return ft(t,"iterate",le(t)?"length":En),Reflect.ownKeys(t)}}class G_ extends Zp{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const J_=new eg,Y_=new G_,Q_=new eg(!0);const Vc=e=>e,co=e=>Reflect.getPrototypeOf(e);function X_(e,t,r){return function(...n){const s=this.__v_raw,i=Ce(s),o=os(i),a=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,u=s[e](...n),l=r?Vc:t?Gc:ht;return!t&&ft(i,"iterate",c?Kc:En),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[l(f[0]),l(f[1])]:l(f),done:h}},[Symbol.iterator](){return this}}}}function lo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Z_(e,t){const r={get(s){const i=this.__v_raw,o=Ce(i),a=Ce(s);e||(en(s,a)&&ft(o,"get",s),ft(o,"get",a));const{has:c}=co(o),u=t?Vc:e?Gc:ht;if(c.call(o,s))return u(i.get(s));if(c.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&ft(Ce(s),"iterate",En),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,o=Ce(i),a=Ce(s);return e||(en(s,a)&&ft(o,"has",s),ft(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)}
vendor: 9,702 bytes, lines 10-14
10,forEach(s,i){const o=this,a=o.__v_raw,c=Ce(a),u=t?Vc:e?Gc:ht;return!e&&ft(c,"iterate",En),a.forEach((l,f)=>s.call(i,u(l),u(f),o))}};return st(r,e?{add:lo("add"),set:lo("set"),delete:lo("delete"),clear:lo("clear")}:{add(s){!t&&!It(s)&&!nn(s)&&(s=Ce(s));const i=Ce(this);return co(i).has.call(i,s)||(i.add(s),wr(i,"add",s,s)),this},set(s,i){!t&&!It(i)&&!nn(i)&&(i=Ce(i));const o=Ce(this),{has:a,get:c}=co(o);let u=a.call(o,s);u||(s=Ce(s),u=a.call(o,s));const l=c.call(o,s);return o.set(s,i),u?en(i,l)&&wr(o,"set",s,i):wr(o,"add",s,i),this},delete(s){const i=Ce(this),{has:o,get:a}=co(i);let c=o.call(i,s);c||(s=Ce(s),c=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return c&&wr(i,"delete",s,void 0),u},clear(){const s=Ce(this),i=s.size!==0,o=s.clear();return i&&wr(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=X_(s,e,t)}),r}function Zl(e,t){const r=Z_(e,t);return(n,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(Pe(r,s)&&s in n?r:n,s,i)}const eb={get:Zl(!1,!1)},tb={get:Zl(!1,!0)},rb={get:Zl(!0,!1)};const tg=new WeakMap,rg=new WeakMap,ng=new WeakMap,nb=new WeakMap;function sb(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ib(e){return e.__v_skip||!Object.isExtensible(e)?0:sb(R_(e))}function gt(e){return nn(e)?e:tu(e,!1,J_,eb,tg)}function Er(e){return tu(e,!1,Q_,tb,rg)}function eu(e){return tu(e,!0,Y_,rb,ng)}function tu(e,t,r,n,s){if(!Ne(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=ib(e);if(o===0)return e;const a=new Proxy(e,o===2?n:r);return s.set(e,a),a}function Tn(e){return nn(e)?Tn(e.__v_raw):!!(e&&e.__v_isReactive)}function nn(e){return!!(e&&e.__v_isReadonly)}function It(e){return!!(e&&e.__v_isShallow)}function ru(e){return e?!!e.__v_raw:!1}function Ce(e){const t=e&&e.__v_raw;return t?Ce(t):e}function ob(e){return!Pe(e,"__v_skip")&&Object.isExtensible(e)&&Dp(e,"__v_skip",!0),e}const ht=e=>Ne(e)?gt(e):e,Gc=e=>Ne(e)?eu(e):e;function ze(e){return e?e.__v_isRef===!0:!1}function ye(e){return sg(e,!1)}function Me(e){return sg(e,!0)}function sg(e,t){return ze(e)?e:new ab(e,t)}class ab{constructor(t,r){this.dep=new _a,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Ce(t),this._value=r?t:ht(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||It(t)||nn(t);t=n?t:Ce(t),en(t,r)&&(this._rawValue=t,this._value=n?t:ht(t),this.dep.trigger())}}function ee(e){return ze(e)?e.value:e}function je(e){return de(e)?e():ee(e)}const cb={get:(e,t,r)=>t==="__v_raw"?e:ee(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return ze(s)&&!ze(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function ig(e){return Tn(e)?e:new Proxy(e,cb)}class lb{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new _a,{get:n,set:s}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function ub(e){return new lb(e)}class fb{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return q_(Ce(this._object),this._key)}}class hb{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function nu(e,t,r){return ze(e)?e:de(e)?new hb(e):Ne(e)&&arguments.length>1?db(e,t,r):ye(e)}function db(e,t,r){const n=e[t];return ze(n)?n:new fb(e,t,r)}class pb{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new _a(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=pi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Fe!==this)return Kp(this,!0),!0}get value(){const t=this.dep.track();return Jp(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function gb(e,t,r=!1){let n,s;return de(e)?n=e:(n=e.get,s=e.set),new pb(n,s,r)}const uo={},qo=new WeakMap;let vn;function yb(e,t=!1,r=vn){if(r){let n=qo.get(r);n||qo.set(r,n=[]),n.push(e)}}function mb(e,t,r=Le){const{immediate:n,deep:s,once:i,scheduler:o,augmentJob:a,call:c}=r,u=b=>s?b:It(b)||s===!1||s===0?Sr(b,1):Sr(b);let l,f,h,d,p=!1,g=!1;if(ze(e)?(f=()=>e.value,p=It(e)):Tn(e)?(f=()=>u(e),p=!0):le(e)?(g=!0,p=e.some(b=>Tn(b)||It(b)),f=()=>e.map(b=>{if(ze(b))return b.value;if(Tn(b))return u(b);if(de(b))return c?c(b,2):b()})):de(e)?t?f=c?()=>c(e,2):e:f=()=>{if(h){on();try{h()}finally{an()}}const b=vn;vn=l;try{return c?c(e,3,[d]):e(d)}finally{vn=b}}:f=nr,t&&s){const b=f,w=s===!0?1/0:s;f=()=>Sr(b(),w)}const _=Rs(),v=()=>{l.stop(),_&&_.active&&Vl(_.effects,l)};if(i&&t){const b=t;t=(...w)=>{b(...w),v()}}let y=g?new Array(e.length).fill(uo):uo;const m=b=>{if(!(!(l.flags&1)||!l.dirty&&!b))if(t){const w=l.run();if(s||p||(g?w.some((T,x)=>en(T,y[x])):en(w,y))){h&&h();const T=vn;vn=l;try{const x=[w,y===uo?void 0:g&&y[0]===uo?[]:y,d];c?c(t,3,x):t(...x),y=w}finally{vn=T}}}else l.run()};return a&&a(m),l=new zp(f),l.scheduler=o?()=>o(m,!1):m,d=b=>yb(b,!1,l),h=l.onStop=()=>{const b=qo.get(l);if(b){if(c)c(b,4);else for(const w of b)w();qo.delete(l)}},t?n?m(!0):y=l.run():o?o(m.bind(null,!0),!0):l.run(),v.pause=l.pause.bind(l),v.resume=l.resume.bind(l),v.stop=v,v}function Sr(e,t=1/0,r){if(t<=0||!Ne(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,ze(e))Sr(e.value,t,r);else if(le(e))for(let n=0;n<e.length;n++)Sr(e[n],t,r);else if(Lp(e)||os(e))e.forEach(n=>{Sr(n,t,r)});else if(Np(e)){for(const n in e)Sr(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Sr(e[n],t,r)}return e}/** 11* @vue/runtime-core v3.5.13 12* (c) 2018-present Yuxi (Evan) You and Vue contributors 13* @license MIT 14**/function zi(e,t,r,n){try{return n?e(...n):e()}catch(s){As(s,t,r)}}function Kt(e,t,r,n){if(de(e)){const s=zi(e,t,r,n);return s&&Gl(s)&&s.catch(i=>{As(i,t,r)}),s}if(le(e)){const s=[];for(let i=0;i<e.length;i++)s.push(Kt(e[i],t,r,n));return s}}function As(e,t,r,n=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Le;if(t){let a=t.parent;const c=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){const l=a.ec;if(l){for(let f=0;f<l.length;f++)if(l[f](e,c,u)===!1)return}a=a.parent}if(i){on(),zi(i,null,10,[e,c,u]),an();return}}vb(e,r,s,n,o)}function vb(e,t,r,n=!0,s=!1){if(s)throw e;console.error(e)}const _t=[];let Zt=-1;const ls=[];let Nr=null,Zn=0;const og=Promise.resolve();let zo=null;function Ln(e){const t=zo||og;return e?t.then(this?e.bind(this):e):t}function _b(e){let t=Zt+1,r=_t.length;for(;t<r;){const n=t+r>>>1,s=_t[n],i=yi(s);i<e||i===e&&s.flags&2?t=n+1:r=n}return t}function su(e){if(!(e.flags&1)){const t=yi(e),r=_t[_t.length-1];!r||!(e.flags&2)&&t>=yi(r)?_t.push(e):_t.splice(_b(t),0,e),e.flags|=1,ag()}}function ag(){zo||(zo=og.then(cg))}function Jc(e){le(e)?ls.push(...e):Nr&&e.id===-1?Nr.splice(Zn+1,0,e):e.flags&1||(ls.push(e),e.flags|=1),ag()}function Ef(e,t,r=Zt+1){for(;r<_t.length;r++){const n=_t[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;_t.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Wo(e){if(ls.length){const t=[...new Set(ls)].sort((r,n)=>yi(r)-yi(n));if(ls.length=0,Nr){Nr.push(...t);return}for(Nr=t,Zn=0;Zn<Nr.length;Zn++){const r=Nr[Zn];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Nr=null,Zn=0}}const yi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function cg(e){try{for(Zt=0;Zt<_t.length;Zt++){const t=_t[Zt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),zi(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Zt<_t.length;Zt++){const t=_t[Zt];t&&(t.flags&=-2)}Zt=-1,_t.length=0,Wo(),zo=null,(_t.length||ls.length)&&cg()}}let Ze=null,lg=null;function Ko(e){const t=Ze;return Ze=e,lg=e&&e.type.__scopeId||null,t}function Vt(e,t=Ze,r){if(!t||e._n)return e;const n=(...s)=>{n._d&&Mf(-1);const i=Ko(t);let o;try{o=e(...s)}finally{Ko(i),n._d&&Mf(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Jj(e,t){if(Ze===null)return e;const r=xa(Ze),n=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,c=Le]=t[s];i&&(de(i)&&(i={mounted:i,updated:i}),i.deep&&Sr(o),n.push({dir:i,instance:r,value:o,oldValue:void 0,arg:a,modifiers:c}))}return e}function er(e,t,r,n){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let c=a.dir[n];c&&(on(),Kt(c,r,8,[e.el,a,e,t]),an())}}const bb=Symbol("_vte"),ug=e=>e.__isTeleport,Dr=Symbol("_leaveCb"),fo=Symbol("_enterCb");function wb(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Tt(()=>{e.isMounted=!0}),Os(()=>{e.isUnmounting=!0}),e}const Ot=[Function,Array],fg={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ot,onEnter:Ot,onAfterEnter:Ot,onEnterCancelled:Ot,onBeforeLeave:Ot,onLeave:Ot,onAfterLeave:Ot,onLeaveCancelled:Ot,onBeforeAppear:Ot,onAppear:Ot,onAfterAppear:Ot,onAppearCancelled:Ot},hg=e=>{const t=e.subTree;return t.component?hg(t.component):t},Sb={name:"BaseTransition",props:fg,setup(e,{slots:t}){const r=Mt(),n=wb();return()=>{const s=t.default&&gg(t.default(),!0);if(!s||!s.length)return;const i=dg(s),o=Ce(e),{mode:a}=o;if(n.isLeaving)return Ka(i);const c=Tf(i);if(!c)return Ka(i);let u=Yc(c,o,n,r,f=>u=f);c.type!==Qe&&_s(c,u);let l=r.subTree&&Tf(r.subTree);if(l&&l.type!==Qe&&!qt(c,l)&&hg(r).type!==Qe){let f=Yc(l,o,n,r);if(_s(l,f),a==="out-in"&&c.type!==Qe)return n.isLeaving=!0,f.afterLeave=()=>
14{n.isLeaving=!1,r.job.flags&8||r.update(),delete f.afterLeave,l=void 0},Ka(i);a==="in-out"&&c.type!==Qe?f.delayLeave=(h,d,p)=>{const g=pg(n,l);g[String(l.key)]=l,h[Dr]=()=>{d(),h[Dr]=void 0,delete u.delayedLeave,l=void 0},u.delayedLeave=()=>{p(),delete u.delayedLeave,l=void 0}}:l=void 0}else l&&(l=void 0);return i}}};function dg(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==Qe){t=r;break}}return t}const Eb=Sb;function pg(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Yc(e,t,r,n,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:l,onEnterCancelled:f,onBeforeLeave:h,onLeave:d,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:m}=t,b=String(e.key),w=pg(r,e),T=(A,H)=>{A&&Kt(A,n,9,H)},x=(A,H)=>{const J=H[1];T(A,H),le(A)?A.every(D=>D.length<=1)&&J():A.length<=1&&J()},M={mode:o,persisted:a,beforeEnter(A){let H=c;if(!r.isMounted)if(i)H=_||c;else return;A[Dr]&&A[Dr](!0);const J=w[b];J&&qt(e,J)&&J.el[Dr]&&J.el[Dr](),T(H,[A])},enter(A){let H=u,J=l,D=f;if(!r.isMounted)if(i)H=v||u,J=y||l,D=m||f;else return;let G=!1;const ae=A[fo]=X=>{G||(G=!0,X?T(D,[A]):T(J,[A]),M.delayedLeave&&M.delayedLeave(),A[fo]=void 0)};H?x(H,[A,ae]):ae()},leave(A,H){const J=String(e.key);if(A[fo]&&A[fo](!0),r.isUnmounting)return H();T(h,[A]);let D=!1;const G=A[Dr]=ae=>{D||(D=!0,H(),ae?T(g,[A]):T(p,[A]),A[Dr]=void 0,w[J]===e&&delete w[J])};w[J]=e,d?x(d,[A,G]):G()},clone(A){const H=Yc(A,t,r,n,s);return s&&s(H),H}};return M}function Ka(e){if(Wi(e))return e=xr(e),e.children=null,e}function Tf(e){if(!Wi(e))return ug(e.type)&&e.children?dg(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&de(r.default))return r.default()}}function _s(e,t){e.shapeFlag&6&&e.component?(e.transition=t,_s(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gg(e,t=!1,r){let n=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=r==null?o.key:String(r)+String(o.key!=null?o.key:i);o.type===qe?(o.patchFlag&128&&s++,n=n.concat(gg(o.children,t,a))):(t||o.type!==Qe)&&n.push(a!=null?xr(o,{key:a}):o)}if(s>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function ct(e,t){return de(e)?st({name:e.name},t,{setup:e}):e}function iu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function yg(e){const t=Mt(),r=Me(null);if(t){const s=t.refs===Le?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>r.value,set:i=>r.value=i})}return r}function mi(e,t,r,n,s=!1){if(le(e)){e.forEach((p,g)=>mi(p,t&&(le(t)?t[g]:t),r,n,s));return}if(tn(n)&&!s){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&mi(e,t,r,n.component.subTree);return}const i=n.shapeFlag&4?xa(n.component):n.el,o=s?null:i,{i:a,r:c}=e,u=t&&t.r,l=a.refs===Le?a.refs={}:a.refs,f=a.setupState,h=Ce(f),d=f===Le?()=>!1:p=>Pe(h,p);if(u!=null&&u!==c&&(Be(u)?(l[u]=null,d(u)&&(f[u]=null)):ze(u)&&(u.value=null)),de(c))zi(c,a,12,[o,l]);else{const p=Be(c),g=ze(c);if(p||g){const _=()=>{if(e.f){const v=p?d(c)?f[c]:l[c]:c.value;s?le(v)&&Vl(v,i):le(v)?v.includes(i)||v.push(i):p?(l[c]=[i],d(c)&&(f[c]=l[c])):(c.value=[i],e.k&&(l[e.k]=c.value))}else p?(l[c]=o,d(c)&&(f[c]=o)):g&&(c.value=o,e.k&&(l[e.k]=o))};o?(_.id=-1,ot(_,r)):_()}}}let kf=!1;const Bn=()=>{kf||(console.error("Hydration completed but contains mismatches."),kf=!0)},Tb=e=>
vendor: 9,277 bytes, lines 14-15
14e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",kb=e=>e.namespaceURI.includes("MathML"),ho=e=>{if(e.nodeType===1){if(Tb(e))return"svg";if(kb(e))return"mathml"}},ns=e=>e.nodeType===8;function xb(e){const{mt:t,p:r,o:{patchProp:n,createText:s,nextSibling:i,parentNode:o,remove:a,insert:c,createComment:u}}=e,l=(m,b)=>{if(!b.hasChildNodes()){r(null,m,b),Wo(),b._vnode=m;return}f(b.firstChild,m,null,null,null),Wo(),b._vnode=m},f=(m,b,w,T,x,M=!1)=>{M=M||!!b.dynamicChildren;const A=ns(m)&&m.data==="[",H=()=>g(m,b,w,T,x,A),{type:J,ref:D,shapeFlag:G,patchFlag:ae}=b;let X=m.nodeType;b.el=m,ae===-2&&(M=!1,b.dynamicChildren=null);let R=null;switch(J){case Cn:X!==3?b.children===""?(c(b.el=s(""),o(m),m),R=m):R=H():(m.data!==b.children&&(Bn(),m.data=b.children),R=i(m));break;case Qe:y(m)?(R=i(m),v(b.el=m.content.firstChild,m,w)):X!==8||A?R=H():R=i(m);break;case ei:if(A&&(m=i(m),X=m.nodeType),X===1||X===3){R=m;const U=!b.children.length;for(let O=0;O<b.staticCount;O++)U&&(b.children+=R.nodeType===1?R.outerHTML:R.data),O===b.staticCount-1&&(b.anchor=R),R=i(R);return A?i(R):R}else H();break;case qe:A?R=p(m,b,w,T,x,M):R=H();break;default:if(G&1)(X!==1||b.type.toLowerCase()!==m.tagName.toLowerCase())&&!y(m)?R=H():R=h(m,b,w,T,x,M);else if(G&6){b.slotScopeIds=x;const U=o(m);if(A?R=_(m):ns(m)&&m.data==="teleport start"?R=_(m,m.data,"teleport end"):R=i(m),t(b,U,null,w,T,ho(U),M),tn(b)&&!b.type.__asyncResolved){let O;A?(O=_e(qe),O.anchor=R?R.previousSibling:U.lastChild):O=m.nodeType===3?_i(""):_e("div"),O.el=m,b.component.subTree=O}}else G&64?X!==8?R=H():R=b.type.hydrate(m,b,w,T,x,M,e,d):G&128&&(R=b.type.hydrate(m,b,w,T,ho(o(m)),x,M,e,f))}return D!=null&&mi(D,null,T,b),R},h=(m,b,w,T,x,M)=>{M=M||!!b.dynamicChildren;const{type:A,props:H,patchFlag:J,shapeFlag:D,dirs:G,transition:ae}=b,X=A==="input"||A==="option";if(X||J!==-1){G&&er(b,null,w,"created");let R=!1;if(y(m)){R=Fg(null,ae)&&w&&w.vnode.props&&w.vnode.props.appear;const O=m.content.firstChild;R&&ae.beforeEnter(O),v(O,m,w),b.el=m=O}if(D&16&&!(H&&(H.innerHTML||H.textContent))){let O=d(m.firstChild,b,m,w,T,x,M);for(;O;){po(m,1)||Bn();const B=O;O=O.nextSibling,a(B)}}else if(D&8){let O=b.children;O[0]===` 15`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(O=O.slice(1)),m.textContent!==O&&(po(m,0)||Bn(),m.textContent=b.children)}if(H){if(X||!M||J&48){const O=m.tagName.includes("-");for(const B in H)(X&&(B.endsWith("value")||B==="indeterminate")||qi(B)&&!as(B)||B[0]==="."||O)&&n(m,B,null,H[B],void 0,w)}else if(H.onClick)n(m,"onClick",null,H.onClick,void 0,w);else if(J&4&&Tn(H.style))for(const O in H.style)H.style[O]}let U;(U=H&&H.onVnodeBeforeMount)&&St(U,w,b),G&&er(b,null,w,"beforeMount"),((U=H&&H.onVnodeMounted)||G||R)&&Kg(()=>{U&&St(U,w,b),R&&ae.enter(m),G&&er(b,null,w,"mounted")},T)}return m.nextSibling},d=(m,b,w,T,x,M,A)=>{A=A||!!b.dynamicChildren;const H=b.children,J=H.length;for(let D=0;D<J;D++){const G=A?H[D]:H[D]=At(H[D]),ae=G.type===Cn;m?(ae&&!A&&D+1<J&&At(H[D+1]).type===Cn&&(c(s(m.data.slice(G.children.length)),w,i(m)),m.data=G.children),m=f(m,G,T,x,M,A)):ae&&!G.children?c(G.el=s(""),w):(po(w,1)||Bn(),r(null,G,w,null,T,x,ho(w),M))}return m},p=(m,b,w,T,x,M)=>{const{slotScopeIds:A}=b;A&&(x=x?x.concat(A):A);const H=o(m),J=d(i(m),b,H,w,T,x,M);return J&&ns(J)&&J.data==="]"?i(b.anchor=J):(Bn(),c(b.anchor=u("]"),H,J),J)},g=(m,b,w,T,x,M)=>{if(po(m.parentElement,1)||Bn(),b.el=null,M){const J=_(m);for(;;){const D=i(m);if(D&&D!==J)a(D);else break}}const A=i(m),H=o(m);return a(m),r(null,b,H,A,w,T,ho(H),x),w&&(w.vnode.el=b.el,ka(w,b.el)),A},_=(m,b="[",w="]")=>{let T=0;for(;m;)if(m=i(m),m&&ns(m)&&(m.data===b&&T++,m.data===w)){if(T===0)return i(m);T--}return m},v=(m,b,w)=>{const T=b.parentNode;T&&T.replaceChild(m,b);let x=w;for(;x;)x.vnode.el===b&&(x.vnode.el=x.subTree.el=m),x=x.parent},y=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[l,f]}const xf="data-allow-mismatch",Cb={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function po(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(xf);)e=e.parentElement;const r=e&&e.getAttribute(xf);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:r.split(",").includes(Cb[t])}}va().requestIdleCallback;va().cancelIdleCallback;function Rb(e,t){if(ns(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(ns(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}const tn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function cn(e){de(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:c}=e;let u=null,l,f=0;const h=()=>(f++,u=null,d()),d=()=>{let p;return u||(p=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),c)return new Promise((_,v)=>{c(g,()=>_(h()),()=>v(g),f+1)});throw g}).then(g=>p!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),l=g,g)))};return ct({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(p,g,_){const v=i?()=>{const y=i(_,m=>Rb(p,m));y&&(g.bum||(g.bum=[])).push(y)}:_;l?v():d().then(()=>!g.isUnmounted&&v())},get __asyncResolved(){return l},setup(){const p=Xe;if(iu(p),l)return()=>Va(l,p);const g=m=>{u=null,As(m,p,13,!n)};if(a&&p.suspense||ws)return d().then(m=>()=>Va(m,p)).catch(m=>(g(m),()=>n?_e(n,{error:m}):null));const _=ye(!1),v=ye(),y=ye(!!s);return s&&setTimeout(()=>{y.value=!1},s),o!=null&&setTimeout(()=>{if(!_.value&&!v.value){const m=new Error(`Async component timed out after ${o}ms.`);g(m),v.value=m}},o),d().then(()=>{_.value=!0,p.parent&&Wi(p.parent.vnode)&&p.parent.update()}).catch(m=>{g(m),v.value=m}),()=>{if(_.value&&l)return Va(l,p);if(v.value&&n)return _e(n,{error:v.value});if(r&&!y.value)return _e(r)}}})}function Va(e,t){const{ref:r,props:n,children:s,ce:i}=t.vnode,o=_e(e,n,s);return o.ref=r,o.ce=i,delete t.vnode.ce,o}const Wi=e=>e.type.__isKeepAlive,Ab={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=Mt(),n=r.ctx;if(!n.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const s=new Map,i=new Set;let o=null;const a=r.suspense,{renderer:{p:c,m:u,um:l,o:{createElement:f}}}=n,h=f("div");n.activate=(y,m,b,w,T)=>{const x=y.component;u(y,m,b,0,a),c(x.vnode,y,m,b,x,a,w,y.slotScopeIds,T),ot(()=>{x.isDeactivated=!1,x.a&&cs(x.a);const M=y.props&&y.props.onVnodeMounted;M&&St(M,x.parent,y)},a)},n.deactivate=y=>{const m=y.component;Go(m.m),Go(m.a),u(y,h,null,1,a),ot(()=>{m.da&&cs(m.da);const b=y.props&&y.props.onVnodeUnmounted;b&&St(b,m.parent,y),m.isDeactivated=!0},a)};function d(y){Ga(y),l(y,r,a,!0)}function p(y){s.forEach((m,b)=>{const w=ol(m.type);w&&!y(w)&&g(b)})}function g(y){const m=s.get(y);m&&(!o||!qt(m,o))?d(m):o&&Ga(o),s.delete(y),i.delete(y)}Ve(()=>[e.include,e.exclude],([y,m])=>{y&&p(b=>Vs(y,b)),m&&p(b=>!Vs(m,b))},{flush:"post",deep:!0});let _=null;const v=()=>{_!=null&&(Jo(r.subTree.type)?ot(()=>{s.set(_,go(r.subTree))},r.subTree.suspense):s.set(_,go(r.subTree)))};return Tt(v),wg(v),Os(()=>{s.forEach(y=>{const{subTree:m,suspense:b}=r,w=go(m);if(y.type===w.type&&y.key===w.key){Ga(w);const T=w.component.da;T&&ot(T,b);return}d(y)})}),()=>{if(_=null,!t.default)return o=null;const y=t.default(),m=y[0];if(y.length>1)return o=null,y;if(!Pn(m)||!(m.shapeFlag&4)&&!(m.shapeFlag&128))return o=null,m;let b=go(m);if(b.type===Qe)return o=null,b;const w=b.type,T=ol(tn(b)?b.type.__asyncResolved||{}:w),{include:x,exclude:M,max:A}=e;if(x&&(!T||!Vs(x,T))||M&&T&&Vs(M,T))return b.shapeFlag&=-257,o=b,m;const H=b.key==null?w:b.key,J=s.get(H);return b.el&&(b=xr(b),m.shapeFlag&128&&(m.ssContent=b)),_=H,J?(b.el=J.el,b.component=J.component,b.transition&&_s(b,b.transition),b.shapeFlag|=512,i.delete(H),i.add(H)):(i.add(H),A&&i.size>parseInt(A,10)&&g(i.values().next().value)),b.shapeFlag|=256,o=b,Jo(m.type)?m:b}}},Ob=Ab;function Vs(e,t){return le(e)?e.some(r=>Vs(r,t)):Be(e)?e.split(",").includes(t):C_(e)?(e.lastIndex=0,e.test(t)):!1}function mg(e,t){_g(e,"a",t)}function vg(e,t){_g(e,"da",t)}function _g(e,t,r=Xe){const n=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(wa(t,n,r),r){let s=r.parent;for(;s&&s.parent;)Wi(s.parent.vnode)&&$b(n,t,r,s),s=s.parent}}function $b(e,t,r,n){const s=wa(t,e,n,!0);Sa(()=>{Vl(n[t],s)},r)}function Ga(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function go(e){return e.shapeFlag&128?e.ssContent:e}function wa(e,t,r=Xe,n=!1){if(r){const s=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...o)=>{on();const a=In(r),c=Kt(t,r,e,o);return a(),an(),c});return n?s.unshift(i):s.push(i),i}}const Ar=e=>(t,r=Xe)=>{(!ws||e==="sp")&&wa(e,(...n)=>t(...n),r)},bg=Ar("bm"),Tt=Ar("m"),Pb=Ar("bu"),wg=Ar("u"),Os=Ar("bum"),Sa=Ar("um"),Ib=Ar("sp"),jb=Ar("rtg"),Lb=Ar("rtc");function Sg(e,t=Xe){wa("ec",e,t)}const Eg="components";function Cf(e,t){return kg(Eg,e,!0,t)||e}const Tg=Symbol.for("v-ndc");function Mb(e){return Be(e)?kg(Eg,e,!1)||e:e||Tg}function kg(e,t,r=!0,n=!1){const s=Ze||Xe;if(s){const i=s.type;{const a=ol(i,!1);if(a&&(a===t||a===jt(t)||a===ma(jt(t))))return i}const o=Rf(s[e]||i[e],t)||Rf(s.appContext[e],t);return!o&&n?i:o}}function Rf(e,t){return e&&(e[t]||e[jt(t)]||e[ma(jt(t))])}function $n(e,t,r,n){let s;
15const i=r,o=le(e);if(o||Be(e)){const a=o&&Tn(e);let c=!1;a&&(c=!It(e),e=ba(e)),s=new Array(e.length);for(let u=0,l=e.length;u<l;u++)s[u]=t(c?ht(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(Ne(e))if(e[Symbol.iterator])s=Array.from(e,(a,c)=>t(a,c,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let c=0,u=a.length;c<u;c++){const l=a[c];s[c]=t(e[l],l,c,i)}}else s=[];return s}function Nb(e,t,r={},n,s){if(Ze.ce||Ze.parent&&tn(Ze.parent)&&Ze.parent.ce)return t!=="default"&&(r.name=t),he(),at(qe,null,[_e("slot",r,n)],64);let i=e[t];i&&i._c&&(i._d=!1),he();const o=i&&xg(i(r)),a=r.key||o&&o.key,c=at(qe,{key:(a&&!Wt(a)?a:`_${t}`)+(!o&&n?"_fb":"")},o||[],o&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function xg(e){return e.some(t=>Pn(t)?!(t.type===Qe||t.type===qe&&!xg(t.children)):!0)?e:null}const Qc=e=>e?Qg(e)?xa(e):Qc(e.parent):null,Zs=st(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Qc(e.parent),$root:e=>Qc(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Rg(e),$forceUpdate:e=>e.f||(e.f=()=>{su(e.update)}),$nextTick:e=>e.n||(e.n=Ln.bind(e.proxy)),$watch:e=>sw.bind(e)}),Ja=(e,t)=>e!==Le&&!e.__isScriptSetup&&Pe(e,t),Db={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:s,props:i,accessCache:o,type:a,appContext:c}=e;let u;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return s[t];case 4:return r[t];case 3:return i[t]}else{if(Ja(n,t))return o[t]=1,n[t];if(s!==Le&&Pe(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&Pe(u,t))return o[t]=3,i[t];if(r!==Le&&Pe(r,t))return o[t]=4,r[t];Zc&&(o[t]=0)}}const l=Zs[t];let f,h;if(l)return t==="$attrs"&&ft(e.attrs,"get",""),l(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(r!==Le&&Pe(r,t))return o[t]=4,r[t];if(h=c.config.globalProperties,Pe(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:s,ctx:i}=e;return Ja(s,t)?(s[t]=r,!0):n!==Le&&Pe(n,t)?(n[t]=r,!0):Pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:s,propsOptions:i}},o){let a;return!!r[o]||e!==Le&&Pe(e,o)||Ja(t,o)||(a=i[0])&&Pe(a,o)||Pe(n,o)||Pe(Zs,o)||Pe(s.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Pe(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Yj(){return Ub().attrs}function Ub(){const e=Mt();return e.setupContext||(e.setupContext=Zg(e))}function Af(e){return le(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Xc(e){const t=Mt();let r=e();return sl(),Gl(r)&&(r=r.catch(n=>{throw In(t),n})),[r,()=>In(t)]}let Zc=!0;function Fb(e){const t=Rg(e),r=e.proxy,n=e.ctx;Zc=!1,t.beforeCreate&&Of(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:c,inject:u,created:l,beforeMount:f,mounted:h,beforeUpdate:d,updated:p,activated:g,deactivated:_,beforeDestroy:v,beforeUnmount:y,destroyed:m,unmounted:b,render:w,renderTracked:T,renderTriggered:x,errorCaptured:M,serverPrefetch:A,expose:H,inheritAttrs:J,components:D,directives:G,filters:ae}=t;if(u&&Hb(u,n,null),o)for(const U in o){const O=o[U];de(O)&&(n[U]=O.bind(r))}if(s){const U=s.call(r,r);Ne(U)&&(e.data=gt(U))}if(Zc=!0,i)for(const U in i){const O=i[U],B=de(O)?O.bind(r,r):de(O.get)?O.get.bind(r,r):nr,Z=!de(O)&&de(O.set)?O.set.bind(r):nr,E=we({get:B,set:Z});Object.defineProperty(n,U,{enumerable:!0,configurable:!0,get:()=>E.value,set:$=>E.value=$})}if(a)for(const U in a)Cg(a[U],n,r,U);if(c){const U=de(c)?c.call(r):c;Reflect.ownKeys(U).forEach(O=>{xn(O,U[O])})}l&&Of(l,e,"c");function R(U,O){le(O)?O.forEach(B=>U(B.bind(r))):O&&U(O.bind(r))}if(R(bg,f),R(Tt,h),R(Pb,d),R(wg,p),R(mg,g),R(vg,_),R(Sg,M),R(Lb,T),R(jb,x),R(Os,y),R(Sa,b),R(Ib,A),le(H))if(H.length){const U=e.exposed||(e.exposed={});H.forEach(O=>{Object.defineProperty(U,O,{get:()=>r[O],set:B=>r[O]=B})})}else e.exposed||(e.exposed={});w&&e.render===nr&&(e.render=w),J!=null&&(e.inheritAttrs=J),D&&(e.components=D),G&&(e.directives=G),A&&iu(e)}function Hb(e,t,r=nr){le(e)&&(e=el(e));for(const n in e){const s=e[n];let i;Ne(s)?"default"in s?i=nt(s.from||n,s.default,!0):i=nt(s.from||n):i=nt(s),ze(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function Of(e,t,r){Kt(le(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Cg(e,t,r,n){let s=n.includes(".")?qg(r,n):()=>r[n];if(Be(e)){const i=t[e];de(i)&&Ve(s,i)}else if(de(e))Ve(s,e.bind(r));else if(Ne(e))if(le(e))e.forEach(i=>
vendor: 5,870 bytes, line 15
15Cg(i,t,r,n));else{const i=de(e.handler)?e.handler.bind(r):t[e.handler];de(i)&&Ve(s,i,e)}}function Rg(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let c;return a?c=a:!s.length&&!r&&!n?c=t:(c={},s.length&&s.forEach(u=>Vo(c,u,o,!0)),Vo(c,t,o)),Ne(t)&&i.set(t,c),c}function Vo(e,t,r,n=!1){const{mixins:s,extends:i}=t;i&&Vo(e,i,r,!0),s&&s.forEach(o=>Vo(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const a=Bb[o]||r&&r[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Bb={data:$f,props:Pf,emits:Pf,methods:Gs,computed:Gs,beforeCreate:mt,created:mt,beforeMount:mt,mounted:mt,beforeUpdate:mt,updated:mt,beforeDestroy:mt,beforeUnmount:mt,destroyed:mt,unmounted:mt,activated:mt,deactivated:mt,errorCaptured:mt,serverPrefetch:mt,components:Gs,directives:Gs,watch:zb,provide:$f,inject:qb};function $f(e,t){return t?e?function(){return st(de(e)?e.call(this,this):e,de(t)?t.call(this,this):t)}:t:e}function qb(e,t){return Gs(el(e),el(t))}function el(e){if(le(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function mt(e,t){return e?[...new Set([].concat(e,t))]:t}function Gs(e,t){return e?st(Object.create(null),e,t):t}function Pf(e,t){return e?le(e)&&le(t)?[...new Set([...e,...t])]:st(Object.create(null),Af(e),Af(t??{})):t}function zb(e,t){if(!e)return t;if(!t)return e;const r=st(Object.create(null),e);for(const n in t)r[n]=mt(e[n],t[n]);return r}function Ag(){return{app:null,config:{isNativeTag:k_,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Wb=0;function Kb(e,t){return function(n,s=null){de(n)||(n=st({},n)),s!=null&&!Ne(s)&&(s=null);const i=Ag(),o=new WeakSet,a=[];let c=!1;const u=i.app={_uid:Wb++,_component:n,_props:s,_container:null,_context:i,_instance:null,version:xw,get config(){return i.config},set config(l){},use(l,...f){return o.has(l)||(l&&de(l.install)?(o.add(l),l.install(u,...f)):de(l)&&(o.add(l),l(u,...f))),u},mixin(l){return i.mixins.includes(l)||i.mixins.push(l),u},component(l,f){return f?(i.components[l]=f,u):i.components[l]},directive(l,f){return f?(i.directives[l]=f,u):i.directives[l]},mount(l,f,h){if(!c){const d=u._ceVNode||_e(n,s);return d.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(d,l):e(d,l,h),c=!0,u._container=l,l.__vue_app__=u,xa(d.component)}},onUnmount(l){a.push(l)},unmount(){c&&(Kt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(l,f){return i.provides[l]=f,u},runWithContext(l){const f=kn;kn=u;try{return l()}finally{kn=f}}};return u}}let kn=null;function xn(e,t){if(Xe){let r=Xe.provides;const n=Xe.parent&&Xe.parent.provides;n===r&&(r=Xe.provides=Object.create(n)),r[e]=t}}function nt(e,t,r=!1){const n=Xe||Ze;if(n||kn){const s=kn?kn._context.provides:n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&de(t)?t.call(n&&n.proxy):t}}function $s(){return!!(Xe||Ze||kn)}const Og={},$g=()=>Object.create(Og),Pg=e=>Object.getPrototypeOf(e)===Og;function Vb(e,t,r,n=!1){const s={},i=$g();e.propsDefaults=Object.create(null),Ig(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);r?e.props=n?s:Er(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Gb(e,t,r,n){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=Ce(s),[c]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const l=e.vnode.dynamicProps;for(let f=0;f<l.length;f++){let h=l[f];if(Ta(e.emitsOptions,h))continue;const d=t[h];if(c)if(Pe(i,h))d!==i[h]&&(i[h]=d,u=!0);else{const p=jt(h);s[p]=tl(c,a,p,d,e,!1)}else d!==i[h]&&(i[h]=d,u=!0)}}}else{Ig(e,t,s,i)&&(u=!0);let l;for(const f in a)(!t||!Pe(t,f)&&((l=jn(f))===f||!Pe(t,l)))&&(c?r&&(r[f]!==void 0||r[l]!==void 0)&&(s[f]=tl(c,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!Pe(t,f))&&(delete i[f],u=!0)}u&&wr(e.attrs,"set","")}function Ig(e,t,r,n){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let c in t){if(as(c))continue;const u=t[c];let l;s&&Pe(s,l=jt(c))?!i||!i.includes(l)?r[l]=u:(a||(a={}))[l]=u:Ta(e.emitsOptions,c)||(!(c in n)||u!==n[c])&&(n[c]=u,o=!0)}if(i){const c=Ce(r),u=a||Le;for(let l=0;l<i.length;l++){const f=i[l];r[f]=tl(s,c,f,u[f],e,!Pe(u,f))}}return o}function tl(e,t,r,n,s,i){const o=e[r];if(o!=null){const a=Pe(o,"default");if(a&&n===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&de(c)){const{propsDefaults:u}=s;if(r in u)n=u[r];else{const l=In(s);n=u[r]=c.call(null,t),l()}}else n=c;s.ce&&s.ce._setProp(r,n)}o[0]&&(i&&!a?n=!1:o[1]&&(n===""||n===jn(r))&&(n=!0))}return n}const Jb=new WeakMap;function jg(e,t,r=!1){const n=r?Jb:t.propsCache,s=n.get(e);if(s)return s;const i=e.props,o={},a=[];let c=!1;if(!de(e)){const l=f=>{c=!0;const[h,d]=jg(f,t,!0);st(o,h),d&&a.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!i&&!c)return Ne(e)&&n.set(e,is),is;if(le(i))for(let l=0;l<i.length;l++){const f=jt(i[l]);If(f)&&(o[f]=Le)}else if(i)for(const l in i){const f=jt(l);if(If(f)){const h=i[l],d=o[f]=le(h)||de(h)?{type:h}:st({},h),p=d.type;let g=!1,_=!0;if(le(p))for(let v=0;v<p.length;++v){const y=p[v],m=de(y)&&y.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(_=!1)}else g=de(p)&&p.name==="Boolean";d[0]=g,d[1]=_,(g||Pe(d,"default"))&&a.push(f)}}const u=[o,a];return Ne(e)&&n.set(e,u),u}function If(e){return e[0]!=="$"&&!as(e)}const Lg=e=>e[0]==="_"||e==="$stable",ou=e=>le(e)?e.map(At):[At(e)],Yb=(e,t,r)=>{if(t._n)return t;const n=Vt((...s)=>ou(t(...s)),r);return n._c=!1,n},Mg=(e,t,r)=>{const n=e._ctx;for(const s in e){if(Lg(s))continue;const i=e[s];if(de(i))t[s]=Yb(s,i,n);else if(i!=null){const o=ou(i);t[s]=()=>o}}},Ng=(e,t)=>
vendor: 4,659 bytes, line 15
15{const r=ou(t);e.slots.default=()=>r},Dg=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},Qb=(e,t,r)=>{const n=e.slots=$g();if(e.vnode.shapeFlag&32){const s=t._;s?(Dg(n,t,r),r&&Dp(n,"_",s,!0)):Mg(t,n)}else t&&Ng(e,t)},Xb=(e,t,r)=>{const{vnode:n,slots:s}=e;let i=!0,o=Le;if(n.shapeFlag&32){const a=t._;a?r&&a===1?i=!1:Dg(s,t,r):(i=!t.$stable,Mg(t,s)),o=t}else t&&(Ng(e,t),o={default:1});if(i)for(const a in s)!Lg(a)&&o[a]==null&&delete s[a]},ot=Kg;function Zb(e){return Ug(e)}function ew(e){return Ug(e,xb)}function Ug(e,t){const r=va();r.__VUE__=!0;const{insert:n,remove:s,patchProp:i,createElement:o,createText:a,createComment:c,setText:u,setElementText:l,parentNode:f,nextSibling:h,setScopeId:d=nr,insertStaticContent:p}=e,g=(S,k,P,z=null,F=null,W=null,te=void 0,Q=null,Y=!!k.dynamicChildren)=>{if(S===k)return;S&&!qt(S,k)&&(z=C(S),$(S,F,W,!0),S=null),k.patchFlag===-2&&(Y=!1,k.dynamicChildren=null);const{type:K,ref:fe,shapeFlag:ne}=k;switch(K){case Cn:_(S,k,P,z);break;case Qe:v(S,k,P,z);break;case ei:S==null&&y(k,P,z,te);break;case qe:D(S,k,P,z,F,W,te,Q,Y);break;default:ne&1?w(S,k,P,z,F,W,te,Q,Y):ne&6?G(S,k,P,z,F,W,te,Q,Y):(ne&64||ne&128)&&K.process(S,k,P,z,F,W,te,Q,Y,q)}fe!=null&&F&&mi(fe,S&&S.ref,W,k||S,!k)},_=(S,k,P,z)=>{if(S==null)n(k.el=a(k.children),P,z);else{const F=k.el=S.el;k.children!==S.children&&u(F,k.children)}},v=(S,k,P,z)=>{S==null?n(k.el=c(k.children||""),P,z):k.el=S.el},y=(S,k,P,z)=>{[S.el,S.anchor]=p(S.children,k,P,z,S.el,S.anchor)},m=({el:S,anchor:k},P,z)=>{let F;for(;S&&S!==k;)F=h(S),n(S,P,z),S=F;n(k,P,z)},b=({el:S,anchor:k})=>{let P;for(;S&&S!==k;)P=h(S),s(S),S=P;s(k)},w=(S,k,P,z,F,W,te,Q,Y)=>{k.type==="svg"?te="svg":k.type==="math"&&(te="mathml"),S==null?T(k,P,z,F,W,te,Q,Y):A(S,k,F,W,te,Q,Y)},T=(S,k,P,z,F,W,te,Q)=>{let Y,K;const{props:fe,shapeFlag:ne,transition:ce,dirs:pe}=S;if(Y=S.el=o(S.type,W,fe&&fe.is,fe),ne&8?l(Y,S.children):ne&16&&M(S.children,Y,null,z,F,Ya(S,W),te,Q),pe&&er(S,null,z,"created"),x(Y,S,S.scopeId,te,z),fe){for(const De in fe)De!=="value"&&!as(De)&&i(Y,De,null,fe[De],W,z);"value"in fe&&i(Y,"value",null,fe.value,W),(K=fe.onVnodeBeforeMount)&&St(K,z,S)}pe&&er(S,null,z,"beforeMount");const Te=Fg(F,ce);Te&&ce.beforeEnter(Y),n(Y,k,P),((K=fe&&fe.onVnodeMounted)||Te||pe)&&ot(()=>{K&&St(K,z,S),Te&&ce.enter(Y),pe&&er(S,null,z,"mounted")},F)},x=(S,k,P,z,F)=>{if(P&&d(S,P),z)for(let W=0;W<z.length;W++)d(S,z[W]);if(F){let W=F.subTree;if(k===W||Jo(W.type)&&(W.ssContent===k||W.ssFallback===k)){const te=F.vnode;x(S,te,te.scopeId,te.slotScopeIds,F.parent)}}},M=(S,k,P,z,F,W,te,Q,Y=0)=>{for(let K=Y;K<S.length;K++){const fe=S[K]=Q?Ur(S[K]):At(S[K]);g(null,fe,k,P,z,F,W,te,Q)}},A=(S,k,P,z,F,W,te)=>{const Q=k.el=S.el;let{patchFlag:Y,dynamicChildren:K,dirs:fe}=k;Y|=S.patchFlag&16;const ne=S.props||Le,ce=k.props||Le;let pe;if(P&&fn(P,!1),(pe=ce.onVnodeBeforeUpdate)&&St(pe,P,k,S),fe&&er(k,S,P,"beforeUpdate"),P&&fn(P,!0),(ne.innerHTML&&ce.innerHTML==null||ne.textContent&&ce.textContent==null)&&l(Q,""),K?H(S.dynamicChildren,K,Q,P,z,Ya(k,F),W):te||O(S,k,Q,null,P,z,Ya(k,F),W,!1),Y>0){if(Y&16)J(Q,ne,ce,P,F);else if(Y&2&&ne.class!==ce.class&&i(Q,"class",null,ce.class,F),Y&4&&i(Q,"style",ne.style,ce.style,F),Y&8){const Te=k.dynamicProps;for(let De=0;De<Te.length;De++){const Ie=Te[De],kt=ne[Ie],ut=ce[Ie];(ut!==kt||Ie==="value")&&i(Q,Ie,kt,ut,F,P)}}Y&1&&S.children!==k.children&&l(Q,k.children)}else!te&&K==null&&J(Q,ne,ce,P,F);((pe=ce.onVnodeUpdated)||fe)&&ot(()=>{pe&&St(pe,P,k,S),fe&&er(k,S,P,"updated")},z)},H=(S,k,P,z,F,W,te)=>{for(let Q=0;Q<k.length;Q++){const Y=S[Q],K=k[Q],fe=Y.el&&(Y.type===qe||!qt(Y,K)||Y.shapeFlag&70)?f(Y.el):P;g(Y,K,fe,null,z,F,W,te,!0)}},J=(S,k,P,z,F)=>{if(k!==P){if(k!==Le)for(const W in k)!as(W)&&!(W in P)&&i(S,W,k[W],null,F,z);for(const W in P){if(as(W))continue;const te=P[W],Q=k[W];te!==Q&&W!=="value"&&i(S,W,Q,te,F,z)}"value"in P&&i(S,"value",k.value,P.value,F)}},D=(S,k,P,z,F,W,te,Q,Y)=>{const K=k.el=S?S.el:a(""),fe=k.anchor=S?S.anchor:a("");let{patchFlag:ne,dynamicChildren:ce,slotScopeIds:pe}=k;pe&&(Q=Q?Q.concat(pe):pe),S==null?(n(K,P,z),n(fe,P,z),M(k.children||[],P,fe,F,W,te,Q,Y)):ne>0&&ne&64&&ce&&S.dynamicChildren?(H(S.dynamicChildren,ce,P,F,W,te,Q),(k.key!=null||F&&k===F.subTree)&&Hg(S,k,!0)):O(S,k,P,fe,F,W,te,Q,Y)},G=(S,k,P,z,F,W,te,Q,Y)=>{k.slotScopeIds=Q,S==null?k.shapeFlag&512?F.ctx.activate(k,P,z,te,Y):ae(k,P,z,F,W,te,Y):X(S,k,Y)},ae=(S,k,P,z,F,W,te)=>{const Q=S.component=ww(S,z,F);if(Wi(S)&&(Q.ctx.renderer=q),Sw(Q,!1,te),Q.asyncDep){if(F&&F.registerDep(Q,R,te),!S.el){const Y=Q.subTree=_e(Qe);v(null,Y,k,P)}}else R(Q,S,k,P,F,W,te)},X=(S,k,P)=>{const z=k.component=S.component;if(uw(S,k,P))if(z.asyncDep&&!z.asyncResolved){U(z,k,P);return}
vendor: 9,593 bytes, line 15
15else z.next=k,z.update();else k.el=S.el,z.vnode=k},R=(S,k,P,z,F,W,te)=>{const Q=()=>{if(S.isMounted){let{next:ne,bu:ce,u:pe,parent:Te,vnode:De}=S;{const xt=Bg(S);if(xt){ne&&(ne.el=De.el,U(S,ne,te)),xt.asyncDep.then(()=>{S.isUnmounted||Q()});return}}let Ie=ne,kt;fn(S,!1),ne?(ne.el=De.el,U(S,ne,te)):ne=De,ce&&cs(ce),(kt=ne.props&&ne.props.onVnodeBeforeUpdate)&&St(kt,Te,ne,De),fn(S,!0);const ut=Qa(S),Dt=S.subTree;S.subTree=ut,g(Dt,ut,f(Dt.el),C(Dt),S,F,W),ne.el=ut.el,Ie===null&&ka(S,ut.el),pe&&ot(pe,F),(kt=ne.props&&ne.props.onVnodeUpdated)&&ot(()=>St(kt,Te,ne,De),F)}else{let ne;const{el:ce,props:pe}=k,{bm:Te,m:De,parent:Ie,root:kt,type:ut}=S,Dt=tn(k);if(fn(S,!1),Te&&cs(Te),!Dt&&(ne=pe&&pe.onVnodeBeforeMount)&&St(ne,Ie,k),fn(S,!0),ce&&be){const xt=()=>{S.subTree=Qa(S),be(ce,S.subTree,S,F,null)};Dt&&ut.__asyncHydrate?ut.__asyncHydrate(ce,S,xt):xt()}else{kt.ce&&kt.ce._injectChildStyle(ut);const xt=S.subTree=Qa(S);g(null,xt,P,z,S,F,W),k.el=xt.el}if(De&&ot(De,F),!Dt&&(ne=pe&&pe.onVnodeMounted)){const xt=k;ot(()=>St(ne,Ie,xt),F)}(k.shapeFlag&256||Ie&&tn(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&S.a&&ot(S.a,F),S.isMounted=!0,k=P=z=null}};S.scope.on();const Y=S.effect=new zp(Q);S.scope.off();const K=S.update=Y.run.bind(Y),fe=S.job=Y.runIfDirty.bind(Y);fe.i=S,fe.id=S.uid,Y.scheduler=()=>su(fe),fn(S,!0),K()},U=(S,k,P)=>{k.component=S;const z=S.vnode.props;S.vnode=k,S.next=null,Gb(S,k.props,z,P),Xb(S,k.children,P),on(),Ef(S),an()},O=(S,k,P,z,F,W,te,Q,Y=!1)=>{const K=S&&S.children,fe=S?S.shapeFlag:0,ne=k.children,{patchFlag:ce,shapeFlag:pe}=k;if(ce>0){if(ce&128){Z(K,ne,P,z,F,W,te,Q,Y);return}else if(ce&256){B(K,ne,P,z,F,W,te,Q,Y);return}}pe&8?(fe&16&&se(K,F,W),ne!==K&&l(P,ne)):fe&16?pe&16?Z(K,ne,P,z,F,W,te,Q,Y):se(K,F,W,!0):(fe&8&&l(P,""),pe&16&&M(ne,P,z,F,W,te,Q,Y))},B=(S,k,P,z,F,W,te,Q,Y)=>{S=S||is,k=k||is;const K=S.length,fe=k.length,ne=Math.min(K,fe);let ce;for(ce=0;ce<ne;ce++){const pe=k[ce]=Y?Ur(k[ce]):At(k[ce]);g(S[ce],pe,P,null,F,W,te,Q,Y)}K>fe?se(S,F,W,!0,!1,ne):M(k,P,z,F,W,te,Q,Y,ne)},Z=(S,k,P,z,F,W,te,Q,Y)=>{let K=0;const fe=k.length;let ne=S.length-1,ce=fe-1;for(;K<=ne&&K<=ce;){const pe=S[K],Te=k[K]=Y?Ur(k[K]):At(k[K]);if(qt(pe,Te))g(pe,Te,P,null,F,W,te,Q,Y);else break;K++}for(;K<=ne&&K<=ce;){const pe=S[ne],Te=k[ce]=Y?Ur(k[ce]):At(k[ce]);if(qt(pe,Te))g(pe,Te,P,null,F,W,te,Q,Y);else break;ne--,ce--}if(K>ne){if(K<=ce){const pe=ce+1,Te=pe<fe?k[pe].el:z;for(;K<=ce;)g(null,k[K]=Y?Ur(k[K]):At(k[K]),P,Te,F,W,te,Q,Y),K++}}else if(K>ce)for(;K<=ne;)$(S[K],F,W,!0),K++;else{const pe=K,Te=K,De=new Map;for(K=Te;K<=ce;K++){const Ct=k[K]=Y?Ur(k[K]):At(k[K]);Ct.key!=null&&De.set(Ct.key,K)}let Ie,kt=0;const ut=ce-Te+1;let Dt=!1,xt=0;const Ds=new Array(ut);for(K=0;K<ut;K++)Ds[K]=0;for(K=pe;K<=ne;K++){const Ct=S[K];if(kt>=ut){$(Ct,F,W,!0);continue}let Qt;if(Ct.key!=null)Qt=De.get(Ct.key);else for(Ie=Te;Ie<=ce;Ie++)if(Ds[Ie-Te]===0&&qt(Ct,k[Ie])){Qt=Ie;break}Qt===void 0?$(Ct,F,W,!0):(Ds[Qt-Te]=K+1,Qt>=xt?xt=Qt:Dt=!0,g(Ct,k[Qt],P,null,F,W,te,Q,Y),kt++)}const gf=Dt?tw(Ds):is;for(Ie=gf.length-1,K=ut-1;K>=0;K--){const Ct=Te+K,Qt=k[Ct],yf=Ct+1<fe?k[Ct+1].el:z;Ds[K]===0?g(null,Qt,P,yf,F,W,te,Q,Y):Dt&&(Ie<0||K!==gf[Ie]?E(Qt,P,yf,2):Ie--)}}},E=(S,k,P,z,F=null)=>{const{el:W,type:te,transition:Q,children:Y,shapeFlag:K}=S;if(K&6){E(S.component.subTree,k,P,z);return}if(K&128){S.suspense.move(k,P,z);return}if(K&64){te.move(S,k,P,q);return}if(te===qe){n(W,k,P);for(let ne=0;ne<Y.length;ne++)E(Y[ne],k,P,z);n(S.anchor,k,P);return}if(te===ei){m(S,k,P);return}if(z!==2&&K&1&&Q)if(z===0)Q.beforeEnter(W),n(W,k,P),ot(()=>Q.enter(W),F);else{const{leave:ne,delayLeave:ce,afterLeave:pe}=Q,Te=()=>n(W,k,P),De=()=>{ne(W,()=>{Te(),pe&&pe()})};ce?ce(W,Te,De):De()}else n(W,k,P)},$=(S,k,P,z=!1,F=!1)=>{const{type:W,props:te,ref:Q,children:Y,dynamicChildren:K,shapeFlag:fe,patchFlag:ne,dirs:ce,cacheIndex:pe}=S;if(ne===-2&&(F=!1),Q!=null&&mi(Q,null,P,S,!0),pe!=null&&(k.renderCache[pe]=void 0),fe&256){k.ctx.deactivate(S);return}const Te=fe&1&&ce,De=!tn(S);let Ie;if(De&&(Ie=te&&te.onVnodeBeforeUnmount)&&St(Ie,k,S),fe&6)oe(S.component,P,z);else{if(fe&128){S.suspense.unmount(P,z);return}Te&&er(S,null,k,"beforeUnmount"),fe&64?S.type.remove(S,k,P,q,z):K&&!K.hasOnce&&(W!==qe||ne>0&&ne&64)?se(K,k,P,!1,!0):(W===qe&&ne&384||!F&&fe&16)&&se(Y,k,P),z&&re(S)}(De&&(Ie=te&&te.onVnodeUnmounted)||Te)&&ot(()=>{Ie&&St(Ie,k,S),Te&&er(S,null,k,"unmounted")},P)},re=S=>{const{type:k,el:P,anchor:z,transition:F}=S;if(k===qe){V(P,z);return}if(k===ei){b(S);return}const W=()=>{s(P),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(S.shapeFlag&1&&F&&!F.persisted){const{leave:te,delayLeave:Q}=F,Y=()=>te(P,W);Q?Q(S.el,W,Y):Y()}else W()},V=(S,k)=>{let P;for(;S!==k;)P=h(S),s(S),S=P;s(k)},oe=(S,k,P)=>{const{bum:z,scope:F,job:W,subTree:te,um:Q,m:Y,a:K}=S;Go(Y),Go(K),z&&cs(z),F.stop(),W&&(W.flags|=8,$(te,S,k,P)),Q&&ot(Q,k),ot(()=>{S.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve())},se=(S,k,P,z=!1,F=!1,W=0)=>{for(let te=W;te<S.length;te++)$(S[te],k,P,z,F)},C=S=>{if(S.shapeFlag&6)return C(S.component.subTree);if(S.shapeFlag&128)return S.suspense.next();const k=h(S.anchor||S.el),P=k&&k[bb];return P?h(P):k};let I=!1;const j=(S,k,P)=>{S==null?k._vnode&&$(k._vnode,null,null,!0):g(k._vnode||null,S,k,null,null,null,P),k._vnode=S,I||(I=!0,Ef(),Wo(),I=!1)},q={p:g,um:$,m:E,r:re,mt:ae,mc:M,pc:O,pbc:H,n:C,o:e};let ue,be;return t&&([ue,be]=t(q)),{render:j,hydrate:ue,createApp:Kb(j,ue)}}function Ya({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function fn({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Fg(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hg(e,t,r=!1){const n=e.children,s=t.children;if(le(n)&&le(s))for(let i=0;i<n.length;i++){const o=n[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Ur(s[i]),a.el=o.el),!r&&a.patchFlag!==-2&&Hg(o,a)),a.type===Cn&&(a.el=o.el)}}function tw(e){const t=e.slice(),r=[0];let n,s,i,o,a;const c=e.length;for(n=0;n<c;n++){const u=e[n];if(u!==0){if(s=r[r.length-1],e[s]<u){t[n]=s,r.push(n);continue}for(i=0,o=r.length-1;i<o;)a=i+o>>1,e[r[a]]<u?i=a+1:o=a;u<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,o=r[i-1];i-- >0;)r[i]=o,o=t[o];return r}function Bg(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bg(t)}function Go(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const rw=Symbol.for("v-scx"),nw=()=>nt(rw);function Ea(e,t){return au(e,null,t)}function Ve(e,t,r){return au(e,t,r)}function au(e,t,r=Le){const{immediate:n,deep:s,flush:i,once:o}=r,a=st({},r),c=t&&n||!t&&i!=="post";let u;if(ws){if(i==="sync"){const d=nw();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!c){const d=()=>{};return d.stop=nr,d.resume=nr,d.pause=nr,d}}const l=Xe;a.call=(d,p,g)=>Kt(d,l,p,g);let f=!1;i==="post"?a.scheduler=d=>{ot(d,l&&l.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(d,p)=>{p?d():su(d)}),a.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,l&&(d.id=l.uid,d.i=l))};const h=mb(e,t,a);return ws&&(u?u.push(h):c&&h()),h}function sw(e,t,r){const n=this.proxy,s=Be(e)?e.includes(".")?qg(n,e):()=>n[e]:e.bind(n,n);let i;de(t)?i=t:(i=t.handler,r=t);const o=In(this),a=au(s,i.bind(n),r);return o(),a}function qg(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;s<r.length&&n;s++)n=n[r[s]];return n}}const iw=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${jt(t)}Modifiers`]||e[`${jn(t)}Modifiers`];function ow(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Le;let s=r;const i=t.startsWith("update:"),o=i&&iw(n,t.slice(7));o&&(o.trim&&(s=r.map(l=>Be(l)?l.trim():l)),o.number&&(s=r.map($_)));let a,c=n[a=Ha(t)]||n[a=Ha(jt(t))];!c&&i&&(c=n[a=Ha(jn(t))]),c&&Kt(c,e,6,s);const u=n[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Kt(u,e,6,s)}}function zg(e,t,r=!1){const n=t.emitsCache,s=n.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!de(e)){const c=u=>{const l=zg(u,t,!0);l&&(a=!0,st(o,l))};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(Ne(e)&&n.set(e,null),null):(le(i)?i.forEach(c=>o[c]=null):st(o,i),Ne(e)&&n.set(e,o),o)}function Ta(e,t){return!e||!qi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Pe(e,t[0].toLowerCase()+t.slice(1))||Pe(e,jn(t))||Pe(e,t))}function Qa(e){const{type:t,vnode:r,proxy:n,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:c,render:u,renderCache:l,props:f,data:h,setupState:d,ctx:p,inheritAttrs:g}=e,_=Ko(e);let v,y;try{if(r.shapeFlag&4){const b=s||n,w=b;v=At(u.call(w,b,l,f,d,h,p)),y=a}else{const b=t;v=At(b.length>1?b(f,{attrs:a,slots:o,emit:c}):b(f,null)),y=t.props?a:cw(a)}}catch(b){ti.length=0,As(b,e,1),v=_e(Qe)}let m=v;if(y&&g!==!1){const b=Object.keys(y),{shapeFlag:w}=m;b.length&&w&7&&(i&&b.some(Kl)&&(y=lw(y,i)),m=xr(m,y,!1,!0))}return r.dirs&&(m=xr(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(r.dirs):r.dirs),r.transition&&_s(m,r.transition),v=m,Ko(_),v}function aw(e,t=!0){let r;for(let n=0;n<e.length;n++){const s=e[n];if(Pn(s)){if(s.type!==Qe||s.children==="v-if"){if(r)return;r=s}}else return}return r}const cw=e=>{let t;for(const r in e)(r==="class"||r==="style"||qi(r))&&((t||(t={}))[r]=e[r]);return t},lw=(e,t)=>{const r={};for(const n in e)(!Kl(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function uw(e,t,r){const{props:n,children:s,component:i}=e,{props:o,children:a,patchFlag:c}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;
vendor: 4,177 bytes, line 15
15if(r&&c>=0){if(c&1024)return!0;if(c&16)return n?jf(n,o,u):!!o;if(c&8){const l=t.dynamicProps;for(let f=0;f<l.length;f++){const h=l[f];if(o[h]!==n[h]&&!Ta(u,h))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?jf(n,o,u):!0:!!o;return!1}function jf(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let s=0;s<n.length;s++){const i=n[s];if(t[i]!==e[i]&&!Ta(r,i))return!0}return!1}function ka({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const Jo=e=>e.__isSuspense;let rl=0;const fw={name:"Suspense",__isSuspense:!0,process(e,t,r,n,s,i,o,a,c,u){if(e==null)hw(t,r,n,s,i,o,a,c,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}dw(e,t,r,n,s,o,a,c,u)}},hydrate:pw,normalize:gw},cu=fw;function vi(e,t){const r=e.props&&e.props[t];de(r)&&r()}function hw(e,t,r,n,s,i,o,a,c){const{p:u,o:{createElement:l}}=c,f=l("div"),h=e.suspense=Wg(e,s,n,t,f,r,i,o,a,c);u(null,h.pendingBranch=e.ssContent,f,null,n,h,i,o),h.deps>0?(vi(e,"onPending"),vi(e,"onFallback"),u(null,e.ssFallback,t,r,n,null,i,o),us(h,e.ssFallback)):h.resolve(!1,!0)}function dw(e,t,r,n,s,i,o,a,{p:c,um:u,o:{createElement:l}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const h=t.ssContent,d=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:_,isHydrating:v}=f;if(g)f.pendingBranch=h,qt(h,g)?(c(g,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():_&&(v||(c(p,d,r,n,s,null,i,o,a),us(f,d)))):(f.pendingId=rl++,v?(f.isHydrating=!1,f.activeBranch=g):u(g,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=l("div"),_?(c(null,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():(c(p,d,r,n,s,null,i,o,a),us(f,d))):p&&qt(h,p)?(c(p,h,r,n,s,f,i,o,a),f.resolve(!0)):(c(null,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0&&f.resolve()));else if(p&&qt(h,p))c(p,h,r,n,s,f,i,o,a),us(f,h);else if(vi(t,"onPending"),f.pendingBranch=h,h.shapeFlag&512?f.pendingId=h.component.suspenseId:f.pendingId=rl++,c(null,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0)f.resolve();else{const{timeout:y,pendingId:m}=f;y>0?setTimeout(()=>{f.pendingId===m&&f.fallback(d)},y):y===0&&f.fallback(d)}}function Wg(e,t,r,n,s,i,o,a,c,u,l=!1){const{p:f,m:h,um:d,n:p,o:{parentNode:g,remove:_}}=u;let v;const y=yw(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const m=e.props?Up(e.props.timeout):void 0,b=i,w={vnode:e,parent:t,parentComponent:r,namespace:o,container:n,hiddenContainer:s,deps:0,pendingId:rl++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!l,isHydrating:l,isUnmounted:!1,effects:[],resolve(T=!1,x=!1){const{vnode:M,activeBranch:A,pendingBranch:H,pendingId:J,effects:D,parentComponent:G,container:ae}=w;let X=!1;w.isHydrating?w.isHydrating=!1:T||(X=A&&H.transition&&H.transition.mode==="out-in",X&&(A.transition.afterLeave=()=>{J===w.pendingId&&(h(H,ae,i===b?p(A):i,0),Jc(D))}),A&&(g(A.el)===ae&&(i=p(A)),d(A,G,w,!0)),X||h(H,ae,i,0)),us(w,H),w.pendingBranch=null,w.isInFallback=!1;let R=w.parent,U=!1;for(;R;){if(R.pendingBranch){R.effects.push(...D),U=!0;break}R=R.parent}!U&&!X&&Jc(D),w.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!x&&t.resolve()),vi(M,"onResolve")},fallback(T){if(!w.pendingBranch)return;const{vnode:x,activeBranch:M,parentComponent:A,container:H,namespace:J}=w;vi(x,"onFallback");const D=p(M),G=()=>{w.isInFallback&&(f(null,T,H,D,A,null,J,a,c),us(w,T))},ae=T.transition&&T.transition.mode==="out-in";ae&&(M.transition.afterLeave=G),w.isInFallback=!0,d(M,A,null,!0),ae||G()},move(T,x,M){w.activeBranch&&h(w.activeBranch,T,x,M),w.container=T},next(){return w.activeBranch&&p(w.activeBranch)},registerDep(T,x,M){const A=!!w.pendingBranch;A&&w.deps++;const H=T.vnode.el;T.asyncDep.catch(J=>{As(J,T,0)}).then(J=>{if(T.isUnmounted||w.isUnmounted||w.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:D}=T;il(T,J),H&&(D.el=H);const G=!H&&T.subTree.el;x(T,D,g(H||T.subTree.el),H?null:p(T.subTree),w,o,M),G&&_(G),ka(T,D.el),A&&--w.deps===0&&w.resolve()})},unmount(T,x){w.isUnmounted=!0,w.activeBranch&&d(w.activeBranch,r,T,x),w.pe
vendor: 5,381 bytes, line 15
15ndingBranch&&d(w.pendingBranch,r,T,x)}};return w}function pw(e,t,r,n,s,i,o,a,c){const u=t.suspense=Wg(t,n,r,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),l=c(e,u.pendingBranch=t.ssContent,r,u,i,o);return u.deps===0&&u.resolve(!1,!0),l}function gw(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=Lf(n?r.default:r),e.ssFallback=n?Lf(r.fallback):_e(Qe)}function Lf(e){let t;if(de(e)){const r=bs&&e._c;r&&(e._d=!1,he()),e=e(),r&&(e._d=!0,t=Et,Vg())}return le(e)&&(e=aw(e)),e=At(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Kg(e,t){t&&t.pendingBranch?le(e)?t.effects.push(...e):t.effects.push(e):Jc(e)}function us(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,n&&n.subTree===r&&(n.vnode.el=s,ka(n,s))}function yw(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const qe=Symbol.for("v-fgt"),Cn=Symbol.for("v-txt"),Qe=Symbol.for("v-cmt"),ei=Symbol.for("v-stc"),ti=[];let Et=null;function he(e=!1){ti.push(Et=e?null:[])}function Vg(){ti.pop(),Et=ti[ti.length-1]||null}let bs=1;function Mf(e,t=!1){bs+=e,e<0&&Et&&t&&(Et.hasOnce=!0)}function Gg(e){return e.dynamicChildren=bs>0?Et||is:null,Vg(),bs>0&&Et&&Et.push(e),e}function Oe(e,t,r,n,s,i){return Gg(ie(e,t,r,n,s,i,!0))}function at(e,t,r,n,s){return Gg(_e(e,t,r,n,s,!0))}function Pn(e){return e?e.__v_isVNode===!0:!1}function qt(e,t){return e.type===t.type&&e.key===t.key}const Jg=({key:e})=>e??null,jo=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||ze(e)||de(e)?{i:Ze,r:e,k:t,f:!!r}:e:null);function ie(e,t=null,r=null,n=0,s=null,i=e===qe?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jg(t),ref:t&&jo(t),scopeId:lg,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ze};return a?(lu(c,r),i&128&&e.normalize(c)):r&&(c.shapeFlag|=Be(r)?8:16),bs>0&&!o&&Et&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Et.push(c),c}const _e=mw;function mw(e,t=null,r=null,n=0,s=null,i=!1){if((!e||e===Tg)&&(e=Qe),Pn(e)){const a=xr(e,t,!0);return r&&lu(a,r),bs>0&&!i&&Et&&(a.shapeFlag&6?Et[Et.indexOf(e)]=a:Et.push(a)),a.patchFlag=-2,a}if(kw(e)&&(e=e.__vccOpts),t){t=Yg(t);let{class:a,style:c}=t;a&&!Be(a)&&(t.class=dt(a)),Ne(c)&&(ru(c)&&!le(c)&&(c=st({},c)),t.style=vs(c))}const o=Be(e)?1:Jo(e)?128:ug(e)?64:Ne(e)?4:de(e)?2:0;return ie(e,t,r,n,s,o,i,!0)}function Yg(e){return e?ru(e)||Pg(e)?st({},e):e:null}function xr(e,t,r=!1,n=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:c}=e,u=t?uu(s||{},t):s,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Jg(u),ref:t&&t.ref?r&&i?le(i)?i.concat(jo(t)):[i,jo(t)]:jo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xr(e.ssContent),ssFallback:e.ssFallback&&xr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&_s(l,c.clone(l)),l}function _i(e=" ",t=0){return _e(Cn,null,e,t)}function vw(e,t){const r=_e(ei,null,e);return r.staticCount=t,r}function Ki(e="",t=!1){return t?(he(),at(Qe,null,e)):_e(Qe,null,e)}function At(e){return e==null||typeof e=="boolean"?_e(Qe):le(e)?_e(qe,null,e.slice()):Pn(e)?Ur(e):_e(Cn,null,String(e))}function Ur(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xr(e)}function lu(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(le(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),lu(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Pg(t)?t._ctx=Ze:s===3&&Ze&&(Ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else de(t)?(t={default:t,_ctx:Ze},r=32):(t=String(t),n&64?(r=16,t=[_i(t)]):r=8);e.children=t,e.shapeFlag|=r}function uu(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const s in n)if(s==="class")t.class!==n.class&&(t.class=dt([t.class,n.class]));else if(s==="style")t.style=vs([t.style,n.style]);else if(qi(s)){const i=t[s],o=n[s];o&&i!==o&&!(le(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=n[s])}return t}function St(e,t,r,n=null){Kt(e,t,7,[r,n])}const _w=Ag();let bw=0;function ww(e,t,r){const n=e.type,s=(t?t.appContext:e.appContext)||_w,i={uid:bw++,vnode:e,type:n,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new qp(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:jg(n,s),emitsOptions:zg(n,s),emit:null,emitted:null,propsDefaults:Le,inheritAttrs:n.inheritAttrs,ctx:Le,data:Le,props:Le,attrs:Le,slots:Le,refs:Le,setupState:Le,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,
vendor: 2,020 bytes, lines 15-18
15sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=ow.bind(null,i),e.ce&&e.ce(i),i}let Xe=null;const Mt=()=>Xe||Ze;let Yo,nl;{const e=va(),t=(r,n)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(n),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Yo=t("__VUE_INSTANCE_SETTERS__",r=>Xe=r),nl=t("__VUE_SSR_SETTERS__",r=>ws=r)}const In=e=>{const t=Xe;return Yo(e),e.scope.on(),()=>{e.scope.off(),Yo(t)}},sl=()=>{Xe&&Xe.scope.off(),Yo(null)};function Qg(e){return e.vnode.shapeFlag&4}let ws=!1;function Sw(e,t=!1,r=!1){t&&nl(t);const{props:n,children:s}=e.vnode,i=Qg(e);Vb(e,n,i,t),Qb(e,s,r);const o=i?Ew(e,t):void 0;return t&&nl(!1),o}function Ew(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Db);const{setup:n}=r;if(n){on();const s=e.setupContext=n.length>1?Zg(e):null,i=In(e),o=zi(n,e,0,[e.props,s]),a=Gl(o);if(an(),i(),(a||e.sp)&&!tn(e)&&iu(e),a){if(o.then(sl,sl),t)return o.then(c=>{il(e,c)}).catch(c=>{As(c,e,0)});e.asyncDep=o}else il(e,o)}else Xg(e)}function il(e,t,r){de(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ne(t)&&(e.setupState=ig(t)),Xg(e)}function Xg(e,t,r){const n=e.type;e.render||(e.render=n.render||nr);{const s=In(e);on();try{Fb(e)}finally{an(),s()}}}const Tw={get(e,t){return ft(e,"get",""),e[t]}};function Zg(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Tw),slots:e.slots,emit:e.emit,expose:t}}function xa(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ig(ob(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Zs)return Zs[r](e)},has(t,r){return r in t||r in Zs}})):e.proxy}function ol(e,t=!0){return de(e)?e.displayName||e.name:e.name||t&&e.__name}function kw(e){return de(e)&&"__vccOpts"in e}const we=(e,t)=>gb(e,t,ws);function Se(e,t,r){const n=arguments.length;return n===2?Ne(t)&&!le(t)?Pn(t)?_e(e,null,[t]):_e(e,t):_e(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Pn(r)&&(r=[r]),_e(e,t,r))}const xw="3.5.13";/** 16* @vue/runtime-dom v3.5.13 17* (c) 2018-present Yuxi (Evan) You and Vue contributors 18* @license MIT
19**/let al;const Nf=typeof window<"u"&&window.trustedTypes;if(Nf)try{al=Nf.createPolicy("vue",{createHTML:e=>e})}catch{}const ey=al?e=>al.createHTML(e):e=>e,Cw="http://www.w3.org/2000/svg",Rw="http://www.w3.org/1998/Math/MathML",gr=typeof document<"u"?document:null,Df=gr&&gr.createElement("template"),Aw={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const s=t==="svg"?gr.createElementNS(Cw,e):t==="mathml"?gr.createElementNS(Rw,e):r?gr.createElement(e,{is:r}):gr.createElement(e);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>gr.createTextNode(e),createComment:e=>gr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,s,i){const o=r?r.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===i||!(s=s.nextSibling)););else{Df.innerHTML=ey(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=Df.content;if(n==="svg"||n==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Pr="transition",Fs="animation",bi=Symbol("_vtc"),ty={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ow=st({},fg,ty),$w=e=>(e.displayName="Transition",e.props=Ow,e),fu=$w((e,{slots:t})=>Se(Eb,Pw(e),t)),hn=(e,t=[])=>{le(e)?e.forEach(r=>r(...t)):e&&e(...t)},Uf=e=>e?le(e)?e.some(t=>t.length>1):e.length>1:!1;function Pw(e){const t={};for(const D in e)D in ty||(t[D]=e[D]);if(e.css===!1)return t;const{name:r="v",type:n,duration:s,enterFromClass:i=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:c=i,appearActiveClass:u=o,appearToClass:l=a,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:d=`${r}-leave-to`}=e,p=Iw(s),g=p&&p[0],_=p&&p[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:m,onLeave:b,onLeaveCancelled:w,onBeforeAppear:T=v,onAppear:x=y,onAppearCancelled:M=m}=t,A=(D,G,ae,X)=>{D._enterCancelled=X,dn(D,G?l:a),dn(D,G?u:o),ae&&ae()},H=(D,G)=>{D._isLeaving=!1,dn(D,f),dn(D,d),dn(D,h),G&&G()},J=D=>(G,ae)=>{const X=D?x:y,R=()=>A(G,D,ae);hn(X,[G,R]),Ff(()=>{dn(G,D?c:i),fr(G,D?l:a),Uf(X)||Hf(G,n,g,R)})};return st(t,{onBeforeEnter(D){hn(v,[D]),fr(D,i),fr(D,o)},onBeforeAppear(D){hn(T,[D]),fr(D,c),fr(D,u)},onEnter:J(!1),onAppear:J(!0),onLeave(D,G){D._isLeaving=!0;const ae=()=>H(D,G);fr(D,f),D._enterCancelled?(fr(D,h),zf()):(zf(),fr(D,h)),Ff(()=>{D._isLeaving&&(dn(D,f),fr(D,d),Uf(b)||Hf(D,n,_,ae))}),hn(b,[D,ae])},onEnterCancelled(D){A(D,!1,void 0,!0),hn(m,[D])},onAppearCancelled(D){A(D,!0,void 0,!0),hn(M,[D])},onLeaveCancelled(D){H(D),hn(w,[D])}})}function Iw(e){if(e==null)return null;if(Ne(e))return[Xa(e.enter),Xa(e.leave)];{const t=Xa(e);return[t,t]}}function Xa(e){return Up(e)}function fr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[bi]||(e[bi]=new Set)).add(t)}function dn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[bi];r&&(r.delete(t),r.size||(e[bi]=void 0))}function Ff(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let jw=0;function Hf(e,t,r,n){const s=e._endId=++jw,i=()=>{s===e._endId&&n()};if(r!=null)return setTimeout(i,r);const{type:o,timeout:a,propCount:c}=Lw(e,t);if(!o)return n();const u=o+"end";let l=0;const f=()=>{e.removeEventListener(u,h),i()},h=d=>{d.target===e&&++l>=c&&f()};setTimeout(()=>{l<c&&f()},a+1),e.addEventListener(u,h)}function Lw(e,t){const r=window.getComputedStyle(e),n=p=>(r[p]||"").split(", "),s=n(`${Pr}Delay`),i=n(`${Pr}Duration`),o=Bf(s,i),a=n(`${Fs}Delay`),c=n(`${Fs}Duration`),u=Bf(a,c);let l=null,f=0,h=0;t===Pr?o>0&&(l=Pr,f=o,h=i.length):t===Fs?u>0&&(l=Fs,f=u,h=c.length):(f=Math.max(o,u),l=f>0?o>u?Pr:Fs:null,h=l?l===Pr?i.length:c.length:0);const d=l===Pr&&/\b(transform|all)(,|$)/.test(n(`${Pr}Property`).toString());return{type:l,timeout:f,propCount:h,hasTransform:d}}function Bf(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>qf(r)+qf(e[n])))}function qf(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function zf(){return document.body.offsetHeight}function Mw(e,t,r){const n=e[bi];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Wf=Symbol("_vod"),Nw=Symbol("_vsh"),Dw=Symbol(""),Uw=/(^|;)\s*display\s*:/;function Fw(e,t,r){const n=e.style,s=Be(r);let i=!1;if(r&&!s){if(t)if(Be(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();r[a]==null&&Lo(n,a,"")}else for(const o in t)r[o]==null&&Lo(n,o,"");for(const o in r)o==="display"&&(i=!0),Lo(n,o,r[o])}else if(s){if(t!==r){const o=n[Dw];o&&(r+=";"+o),n.cssText=r,i=Uw.test(r)}}else t&&e.removeAttribute("style");Wf in e&&(e[Wf]=i?n.display:"",e[Nw]&&(n.display="none"))}const Kf=/\s*!important$/;function Lo(e,t,r){if(le(r))r.forEach(n=>
19Lo(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Hw(e,t);Kf.test(r)?e.setProperty(jn(n),r.replace(Kf,""),"important"):e[n]=r}}const Vf=["Webkit","Moz","ms"],Za={};function Hw(e,t){const r=Za[t];if(r)return r;let n=jt(t);if(n!=="filter"&&n in e)return Za[t]=n;n=ma(n);for(let s=0;s<Vf.length;s++){const i=Vf[s]+n;if(i in e)return Za[t]=i}return t}const Gf="http://www.w3.org/1999/xlink";function Jf(e,t,r,n,s,i=D_(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Gf,t.slice(6,t.length)):e.setAttributeNS(Gf,t,r):r==null||i&&!Fp(r)?e.removeAttribute(t):e.setAttribute(t,i?"":Wt(r)?String(r):r)}function Yf(e,t,r,n,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?ey(r):r);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,c=r==null?e.type==="checkbox"?"on":"":String(r);(a!==c||!("_value"in e))&&(e.value=c),r==null&&e.removeAttribute(t),e._value=r;return}let o=!1;if(r===""||r==null){const a=typeof e[t];a==="boolean"?r=Fp(r):r==null&&a==="string"?(r="",o=!0):a==="number"&&(r=0,o=!0)}try{e[t]=r}catch{}o&&e.removeAttribute(s||t)}function ry(e,t,r,n){e.addEventListener(t,r,n)}function Bw(e,t,r,n){e.removeEventListener(t,r,n)}const Qf=Symbol("_vei");function qw(e,t,r,n,s=null){const i=e[Qf]||(e[Qf]={}),o=i[t];if(n&&o)o.value=n;else{const[a,c]=zw(t);if(n){const u=i[t]=Vw(n,s);ry(e,a,u,c)}else o&&(Bw(e,a,o,c),i[t]=void 0)}}const Xf=/(?:Once|Passive|Capture)$/;function zw(e){let t;if(Xf.test(e)){t={};let n;for(;n=e.match(Xf);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):jn(e.slice(2)),t]}let ec=0;const Ww=Promise.resolve(),Kw=()=>ec||(Ww.then(()=>ec=0),ec=Date.now());function Vw(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Kt(Gw(n,r.value),t,5,[n])};return r.value=e,r.attached=Kw(),r}function Gw(e,t){if(le(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>s=>!s._stopped&&n&&n(s))}else return t}const Zf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jw=(e,t,r,n,s,i)=>{const o=s==="svg";t==="class"?Mw(e,n,o):t==="style"?Fw(e,r,n):qi(t)?Kl(t)||qw(e,t,r,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Yw(e,t,n,o))?(Yf(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Jf(e,t,n,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Be(n))?Yf(e,jt(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Jf(e,t,n,o))};function Yw(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Zf(t)&&de(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Zf(t)&&Be(r)?!1:t in e}const eh=e=>{const t=e.props["onUpdate:modelValue"]||!1;return le(t)?r=>cs(t,r):t},tc=Symbol("_assign"),Qj={created(e,{value:t},r){e.checked=Ho(t,r.props.value),e[tc]=eh(r),ry(e,"change",()=>{e[tc](Qw(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e[tc]=eh(n),t!==r&&(e.checked=Ho(t,n.props.value))}};function Qw(e){return"_value"in e?e._value:e.value}const Xw=["ctrl","shift","alt","meta"],Zw={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Xw.some(r=>e[`${r}Key`]&&!t.includes(r))},Xj=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(s,...i)=>{for(let o=0;o<t.length;o++){const a=Zw[t[o]];if(a&&a(s,t))return}return e(s,...i)})},ny=st({patchProp:Jw},Aw);let ri,th=!1;function e0(){return ri||(ri=Zb(ny))}function t0(){return ri=th?ri:ew(ny),th=!0,ri}const r0=(...e)=>{const t=e0().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=iy(n);if(!s)return;const i=t._component;!de(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=r(s,!1,sy(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t},n0=(...e)=>{const t=t0().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=iy(n);if(s)return r(s,!0,sy(s))},t};function sy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function iy(e){return Be(e)?document.querySelector(e):e}const s0=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,i0=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,o0=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function a0(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){c0(e);return}return t}function c0(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function wi(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!o0.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(s0.test(e)||i0.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,a0)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const l0=/#/g,u0=/&/g,f0=/\//g,h0=/=/g,hu=/\+/g,d0=/%5e/gi,p0=/%60/gi,g0=/%7c/gi,y0=/%20/gi;function m0(e){return encodeURI(""+e).replace(g0,"|")}function cl(e){return m0(typeof e=="string"?e:JSON.stringify(e)).replace(hu,"%2B").replace(y0,"+").replace(l0,"%23").replace(u0,"%2
196").replace(p0,"`").replace(d0,"^").replace(f0,"%2F")}function rc(e){return cl(e).replace(h0,"%3D")}function Qo(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function v0(e){return Qo(e.replace(hu," "))}function _0(e){return Qo(e.replace(hu," "))}function du(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const s=v0(n[1]);if(s==="__proto__"||s==="constructor")continue;const i=_0(n[2]||"");t[s]===void 0?t[s]=i:Array.isArray(t[s])?t[s].push(i):t[s]=[t[s],i]}return t}function b0(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${rc(e)}=${cl(r)}`).join("&"):`${rc(e)}=${cl(t)}`:rc(e)}function oy(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>b0(t,e[t])).filter(Boolean).join("&")}const w0=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,ay=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,S0=/^([/\\]\s*){2,}[^/\\]/,E0=/^[\s\0]*(blob|data|javascript|vbscript):$/i,T0=/\/$|\/\?|\/#/,k0=/^\.?\//;function Yt(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?w0.test(e):ay.test(e)||(t.acceptRelative?S0.test(e):!1)}function x0(e){return!!e&&E0.test(e)}function ll(e="",t){return t?T0.test(e):e.endsWith("/")}function Mn(e="",t){if(!t)return(ll(e)?e.slice(0,-1):e)||"/";if(!ll(e,!0))return e||"/";let r=e,n="";const s=e.indexOf("#");s!==-1&&(r=e.slice(0,s),n=e.slice(s));const[i,...o]=r.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(o.length>0?`?${o.join("?")}`:"")+n}function Ss(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(ll(e,!0))return e||"/";let r=e,n="";const s=e.indexOf("#");if(s!==-1&&(r=e.slice(0,s),n=e.slice(s),!r))return n;const[i,...o]=r.split("?");return i+"/"+(o.length>0?`?${o.join("?")}`:"")+n}function C0(e=""){return e.startsWith("/")}function ul(e=""){return C0(e)?e:"/"+e}function fl(e,t){if(cy(t)||Yt(e))return e;const r=Mn(t);return e.startsWith(r)?e:Ca(r,e)}function rh(e,t){if(cy(t))return e;const r=Mn(t);if(!e.startsWith(r))return e;const n=e.slice(r.length);return n[0]==="/"?n:"/"+n}function pu(e,t){const r=Ra(e),n={...du(r.search),...t};return r.search=oy(n),P0(r)}function cy(e){return!e||e==="/"}function R0(e){return e&&e!=="/"}function Ca(e,...t){let r=e||"";for(const n of t.filter(s=>R0(s)))if(r){const s=n.replace(k0,"");r=Ss(r)+s}else r=n;return r}function ly(...e){var o,a,c,u;const t=/\/(?!\/)/,r=e.filter(Boolean),n=[];let s=0;for(const l of r)if(!(!l||l==="/")){for(const[f,h]of l.split(t).entries())if(!(!h||h===".")){if(h===".."){if(n.length===1&&Yt(n[0]))continue;n.pop(),s--;continue}if(f===1&&((o=n[n.length-1])!=null&&o.endsWith(":/"))){n[n.length-1]+="/"+h;continue}n.push(h),s++}}let i=n.join("/");return s>=0?(a=r[0])!=null&&a.startsWith("/")&&!i.startsWith("/")?i="/"+i:(c=r[0])!=null&&c.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*s)+i,(u=r[r.length-1])!=null&&u.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function A0(e){return O0(e,"https://")}function O0(e,t){let r=e.match(ay);return r||(r=e.match(/^\/{2,}/)),r?t+e.slice(r[0].length):t+e}function $0(e,t,r={}){return r.trailingSlash||(e=Ss(e),t=Ss(t)),r.leadingSlash||(e=ul(e),t=ul(t)),r.encoding||(e=Qo(e),t=Qo(t)),e===t}const uy=Symbol.for("ufo:protocolRelative");function Ra(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,f,h=""]=r;return{protocol:f.toLowerCase(),pathname:h,href:f+h,auth:"",host:"",search:"",hash:""}}if(!Yt(e,{acceptRelative:!0}))return nh(e);const[,n="",s,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:u,hash:l}=nh(a);return{protocol:n.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:c,search:u,hash:l,[uy]:!n}}function nh(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function P0(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",s=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[uy]?(e.protocol||"")+"//":"")+s+i+t+r+n}
19class I0 extends Error{constructor(t,r){super(t,r),this.name="FetchError",r!=null&&r.cause&&!this.cause&&(this.cause=r.cause)}}function j0(e){var c,u,l,f,h;const t=((c=e.error)==null?void 0:c.message)||((u=e.error)==null?void 0:u.toString())||"",r=((l=e.request)==null?void 0:l.method)||((f=e.options)==null?void 0:f.method)||"GET",n=((h=e.request)==null?void 0:h.url)||String(e.request)||"/",s=`[${r}] ${JSON.stringify(n)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=`${s}: ${i}${t?` ${t}`:""}`,a=new I0(o,e.error?{cause:e.error}:void 0);for(const d of["request","options","response"])Object.defineProperty(a,d,{get(){return e[d]}});for(const[d,p]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,d,{get(){return e.response&&e.response[p]}});return a}const L0=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function sh(e="GET"){return L0.has(e.toUpperCase())}function M0(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const N0=new Set(["image/svg","application/xml","application/xhtml","application/html"]),D0=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function U0(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return D0.test(t)?"json":N0.has(t)||t.startsWith("text/")?"text":"blob"}function F0(e,t,r,n){const s=H0((t==null?void 0:t.headers)??(e==null?void 0:e.headers),r==null?void 0:r.headers,n);let i;return(r!=null&&r.query||r!=null&&r.params||t!=null&&t.params||t!=null&&t.query)&&(i={...r==null?void 0:r.params,...r==null?void 0:r.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...r,...t,query:i,params:i,headers:s}}function H0(e,t,r){if(!t)return new r(e);const n=new r(t);if(e)for(const[s,i]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(s,i);return n}async function yo(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const B0=new Set([408,409,425,429,500,502,503,504]),q0=new Set([101,204,205,304]);function fy(e={}){const{fetch:t=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:n=globalThis.AbortController}=e;async function s(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let l;typeof a.options.retry=="number"?l=a.options.retry:l=sh(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(l>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):B0.has(f))){const h=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return h>0&&await new Promise(d=>setTimeout(d,h)),i(a.request,{...a.options,retry:l-1})}}const u=j0(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){const l={request:c,options:F0(c,u,e.defaults,r),response:void 0,error:void 0};l.options.method&&(l.options.method=l.options.method.toUpperCase()),l.options.onRequest&&await yo(l,l.options.onRequest),typeof l.request=="string"&&(l.options.baseURL&&(l.request=fl(l.request,l.options.baseURL)),l.options.query&&(l.request=pu(l.request,l.options.query),delete l.options.query),"query"in l.options&&delete l.options.query,"params"in l.options&&delete l.options.params),l.options.body&&sh(l.options.method)&&(M0(l.options.body)?(l.options.body=typeof l.options.body=="string"?l.options.body:JSON.stringify(l.options.body),l.options.headers=new r(l.options.headers||{}),l.options.headers.has("content-type")||l.options.headers.set("content-type","application/json"),l.options.headers.has("accept")||l.options.headers.set("accept","application/json")):("pipeTo"in l.options.body&&typeof l.options.body.pipeTo=="function"||typeof l.options.body.pipe=="function")&&("duplex"in l.options||(l.options.duplex="half")));let f;if(!l.options.signal&&l.options.timeout){const d=new n;f=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,d.abort(p)},l.options.timeout),l.options.signal=d.signal}try{l.response=await t(l.request,l.options)}catch(d){return l.error=d,l.options.onRequestError&&await yo(l,l.options.onRequestError),await s(l)}finally{f&&clearTimeout(f)}if((l.response.body||l.response._bodyInit)&&!q0.has(l.response.status)&&l.options.method!=="HEAD"){const d=(l.options.parseResponse?"json":l.options.responseType)||U0(l.response.headers.get("content-type")||"");switch(d){case"json":{const p=await l.response.text(),g=l.options.parseResponse||wi;l.response._data=g(p);break}case"stream":{l.response._data=l.response.body||l.response._bodyInit;break}default:l.response._data=await l.response[d]()}}return l.options.onResponse&&await yo(l,l.options.onResponse),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600?(l.options.onResponseError&&await yo(l,l.options.onResponseError),await s(l)):l.response},o=async function(c,u){return(await i(c,u))._data};return o.raw=i,o.native=(...a)=>t(...a),o.create=(a={},c={})=>fy({...e,...c,defaults:{...e.defaults,...c.defaults,...a}}),o}const Xo=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),z0=Xo.fetch?(...e)=>Xo.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),W0=Xo.Headers,K0=Xo.AbortController,V0=fy({fetch:z0,Headers:W0,AbortController:K0}),G0=V0,J0=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Zo=J0().app,Y0=()=>Zo.baseURL,Q0=()=>Zo.buildAssetsDir,gu=(...e)=>ly(hy(),Q0(),...e),hy=(...e)=>{const t=Zo.cdnURL||Zo.baseURL;return e.length?ly(t,...e):t};globalThis.__buildAssetsURL=gu,globalThis.__publicAssetsURL=hy;globalThis.$fetch||(globalThis.$fetch=G0.create({baseURL:Y0()}));function hl(e,t={},r){for(const n in e){const s=e[n],i=r?`${r}:${n}`:n;typeof s=="object"&&s!==null?hl(s,t,i):typeof s=="function"&&(t[i]=s)}return t}const X0={run:e=>e()},Z0=()=>X0,dy=typeof console.createTask<"u"?console.createTask:Z0;function eS(e,t){const r=t.shift(),n=dy(r);return e.reduce((s,i)=>s.then(()=>n.run(()=>i(...t))),Promise.resolve())}function tS(e,t){const r=t.shift(),n=dy(r);return Promise.all(e.map(s=>n.run(()=>s(...t))))}function nc(e,t){for(const r of[...e])r(t)}class rS{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,r,n={}){if(!t||typeof r!="function")return()=>{};const s=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!n.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||
19(console.warn(o),this._deprecatedMessages.add(o))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let n,s=(...i)=>(typeof n=="function"&&n(),n=void 0,s=void 0,r(...i));return n=this.hook(t,s),n}removeHook(t,r){if(this._hooks[t]){const n=this._hooks[t].indexOf(r);n!==-1&&this._hooks[t].splice(n,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const n=this._hooks[t]||[];delete this._hooks[t];for(const s of n)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=hl(t),n=Object.keys(r).map(s=>this.hook(s,r[s]));return()=>{for(const s of n.splice(0,n.length))s()}}removeHooks(t){const r=hl(t);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(eS,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(tS,t,...r)}callHookWith(t,r,...n){const s=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&nc(this._before,s);const i=t(r in this._hooks?[...this._hooks[r]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&s&&nc(this._after,s)}):(this._after&&s&&nc(this._after,s),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}}function py(){return new rS}function nS(e={}){let t,r=!1;const n=o=>{if(t&&t!==o)throw new Error("Context conflict")};let s;if(e.asyncContext){const o=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?s=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(s){const o=s.getStore();if(o!==void 0)return o}return t};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||n(o),t=o,r=!0},unset:()=>{t=void 0,r=!1},call:(o,a)=>{n(o),t=o;try{return s?s.run(o,a):a()}finally{r||(t=void 0)}},async callAsync(o,a){t=o;const c=()=>{t=o},u=()=>t===o?c:void 0;dl.add(u);try{const l=s?s.run(o,a):a();return r||(t=void 0),await l}finally{dl.delete(u)}}}}function sS(e={}){const t={};return{get(r,n={}){return t[r]||(t[r]=nS({...e,...n})),t[r]}}}const ea=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},ih="__unctx__",iS=ea[ih]||(ea[ih]=sS()),oS=(e,t={})=>iS.get(e,t),oh="__unctx_async_handlers__",dl=ea[oh]||(ea[oh]=new Set);function Rn(e){const t=[];for(const s of dl){const i=s();i&&t.push(i)}const r=()=>{for(const s of t)s()};let n=e();return n&&typeof n=="object"&&"catch"in n&&(n=n.catch(s=>{throw r(),s})),[n,r]}const pl={name:"page",mode:"out-in"},aS=!1,cS=!1,ah={id:"__nuxt-loader"},lS={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},ss={deep:!1},uS=void 0,fS="#__nuxt",gy="nuxt-app",ch=36e5,hS="vite:preloadError";function yy(e=gy){return oS(e,{asyncContext:!1})}const dS="__nuxt_plugin";function pS(e){var s;let t=0;const r={_id:e.id||gy||"nuxt-app",_scope:F_(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.16.2"},get vue(){return r.vueApp.version}},payload:Er({...((s=e.ssrContext)==null?void 0:s.payload)||{},data:Er({}),state:gt({}),once:new Set,_errors:Er({})}),static:{data:{}},runWithContext(i){return r._scope.active&&!Rs()?r._scope.run(()=>lh(r,i)):lh(r,i)},isHydrating:!0,deferHydration(){if(!r.isHydrating)return()=>{};t++;let i=!1;return()=>{if(!i&&(i=!0,t--,t===0))return r.isHydrating=!1,r.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Er({}),_payloadRevivers:{},...e};{const i=window.__NUXT__;if(i)for(const o in i)switch(o){case"data":case"state":case"_errors":Object.assign(r.payload[o],i[o]);break;default:r.payload[o]=i[o]}}r.hooks=py(),r.hook=r.hooks.hook,r.callHook=r.hooks.callHook,r.provide=(i,o)=>{const a="$"+i;mo(r,a,o),mo(r.vueApp.config.globalProperties,a,o)},mo(r.vueApp,"$nuxt",r),mo(r.vueApp.config.globalProperties,"$nuxt",r);{window.addEventListener(hS,o=>{r.callHook("app:chunkError",{error:o.payload}),(r.isHydrating||o.payload.message.includes("Unable to preload CSS"))&&o.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=Ae);const i=r.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});r.hook("app:mounted",i)}const n=r.payload.config;return r.provide("config",n),r}function gS(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function yS(e,t){if(typeof t=="function"){const{provide:r}=await e.runWithContext(()=>t(e))||{};if(r&&typeof r=="object")for(const n in r)e.provide(n,r[n])}}async function mS(e,t){const r=[],n=[],s=[],i=[];let o=0;async function a(c){var l;const u=((l=c.dependsOn)==null?void 0:l.filter(f=>t.some(h=>h._name===f)&&!r.includes(f)))??[];if(u.length>0)n.push([new Set(u),c]);else{const f=yS(e,c).then(async()=>{c._name&&(r.push(c._name),await Promise.all(n.map(async([h,d])=>{h.has(c._name)&&(h.delete(c._name),h.size===0&&(o++,await a(d)))})))});c.parallel?s.push(f.catch(h=>i.push(h))):await f}}for(const c of t)gS(e,c);for(const c of t)await a(c);if(await Promise.all(s),o)for(let c=0;c<o;c++)await Promise.all(s);if(i.length)throw i[0]}function Je(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[dS]:!0,_name:t})}function lh(e,t,r){const n=()=>t();
19return yy(e._id).set(e),e.vueApp.runWithContext(n)}function vS(e){var r;let t;return $s()&&(t=(r=Mt())==null?void 0:r.appContext.app.$nuxt),t||(t=yy(e).tryUse()),t||null}function Ae(e){const t=vS(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function yt(e){return Ae().$config}function mo(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function _S(e,t){return{ctx:{table:e},matchAll:r=>vy(r,e)}}function my(e){const t={};for(const r in e)t[r]=r==="dynamic"?new Map(Object.entries(e[r]).map(([n,s])=>[n,my(s)])):new Map(Object.entries(e[r]));return t}function bS(e){return _S(my(e))}function vy(e,t,r){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const n=[];for(const[i,o]of uh(t.wildcard))(e===i||e.startsWith(i+"/"))&&n.push(o);for(const[i,o]of uh(t.dynamic))if(e.startsWith(i+"/")){const a="/"+e.slice(i.length).split("/").splice(2).join("/");n.push(...vy(a,o))}const s=t.static.get(e);return s&&n.push(s),n.filter(Boolean)}function uh(e){return[...e.entries()].sort((t,r)=>t[0].length-r[0].length)}function sc(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function gl(e,t,r=".",n){if(!sc(t))return gl(e,{},r,n);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(n&&n(s,i,o,r)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:sc(o)&&sc(s[i])?s[i]=gl(o,s[i],(r?`${r}.`:"")+i.toString(),n):s[i]=o))}return s}function wS(e){return(...t)=>t.reduce((r,n)=>gl(r,n,"",e),{})}const Ps=wS();function SS(e,t){try{return t in e}catch{return!1}}class yl extends Error{constructor(r,n={}){super(r,n);N(this,"statusCode",500);N(this,"fatal",!1);N(this,"unhandled",!1);N(this,"statusMessage");N(this,"data");N(this,"cause");n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const r={message:this.message,statusCode:ml(this.statusCode,500)};return this.statusMessage&&(r.statusMessage=_y(this.statusMessage)),this.data!==void 0&&(r.data=this.data),r}}N(yl,"__h3_error__",!0);function Mo(e){if(typeof e=="string")return new yl(e);if(ES(e))return e;const t=new yl(e.message??e.statusMessage??"",{cause:e.cause||e});if(SS(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=ml(e.statusCode,t.statusCode):e.status&&(t.statusCode=ml(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const r=t.statusMessage;_y(t.statusMessage)!==r&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function ES(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const TS=/[^\u0009\u0020-\u007E]/g;function _y(e=""){return e.replace(TS,"")}function ml(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const by=Symbol("layout-meta"),Vi=Symbol("route"),it=()=>{var e;return(e=Ae())==null?void 0:e.$router},Or=()=>$s()?nt(Vi,Ae()._route):Ae()._route;function Zj(e){return e}const kS=(e,t,r={})=>{const n=Ae(),s=r.global||typeof e!="string",i=t;if(!i){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}s?n._middleware.global.push(i):n._middleware.named[e]=i},xS=()=>{try{if(Ae()._processingMiddleware)return!0}catch{return!1}return!1},wy=(e,t)=>{e||(e="/");const r=typeof e=="string"?e:"path"in e?vl(e):it().resolve(e).href;if(t!=null&&t.open){const{target:c="_blank",windowFeatures:u={}}=t.open,l=Object.entries(u).filter(([f,h])=>h!==void 0).map(([f,h])=>`${f.toLowerCase()}=${h}`).join(", ");return open(r,c,l),Promise.resolve()}const n=Yt(r,{acceptRelative:!0}),s=(t==null?void 0:t.external)||n;if(s){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:c}=new URL(r,window.location.href);if(c&&x0(c))throw new Error(`Cannot navigate to a URL with '${c}' protocol.`)}const i=xS();if(!s&&i){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:c,search:u,hash:l}=Ra(e);return{path:c,...u&&{query:du(u)},...l&&{hash:l},replace:!0}}return{...e,replace:!0}}return e}const o=it(),a=Ae();return s?(a._scope.stop(),t!=null&&t.replace?location.replace(r):location.href=r,i?a.isHydrating?new Promise(()=>{}
19):!1:Promise.resolve()):t!=null&&t.replace?o.replace(e):o.push(e)};function vl(e){return pu(e.path||"",e.query||{})+(e.hash||"")}const Sy="__nuxt_error",Nn=()=>nu(Ae().payload,"error"),Fr=e=>{const t=Gi(e);try{const r=Ae(),n=Nn();r.hooks.callHook("app:error",t),n.value||(n.value=t)}catch{throw t}return t},Ey=async(e={})=>{const t=Ae(),r=Nn();t.callHook("app:error:cleared",e),e.redirect&&await it().replace(e.redirect),r.value=uS},Ty=e=>!!e&&typeof e=="object"&&Sy in e,Gi=e=>{const t=Mo(e);return Object.defineProperty(t,Sy,{value:!0,configurable:!1,writable:!1}),t};function fh(e){const t=RS(e),r=new ArrayBuffer(t.length),n=new DataView(r);for(let s=0;s<r.byteLength;s++)n.setUint8(s,t.charCodeAt(s));return r}const CS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function RS(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",r=0,n=0;for(let s=0;s<e.length;s++)r<<=6,r|=CS.indexOf(e[s]),n+=6,n===24&&(t+=String.fromCharCode((r&16711680)>>16),t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255),r=n=0);return n===12?(r>>=4,t+=String.fromCharCode(r)):n===18&&(r>>=2,t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255)),t}const AS=-1,OS=-2,$S=-3,PS=-4,IS=-5,jS=-6;function LS(e,t){return MS(JSON.parse(e),t)}function MS(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,n=Array(r.length);function s(i,o=!1){if(i===AS)return;if(i===$S)return NaN;if(i===PS)return 1/0;if(i===IS)return-1/0;if(i===jS)return-0;if(o)throw new Error("Invalid input");if(i in n)return n[i];const a=r[i];if(!a||typeof a!="object")n[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const c=a[0],u=t==null?void 0:t[c];if(u)return n[i]=u(s(a[1]));switch(c){case"Date":n[i]=new Date(a[1]);break;case"Set":const l=new Set;n[i]=l;for(let d=1;d<a.length;d+=1)l.add(s(a[d]));break;case"Map":const f=new Map;n[i]=f;for(let d=1;d<a.length;d+=2)f.set(s(a[d]),s(a[d+1]));break;case"RegExp":n[i]=new RegExp(a[1],a[2]);break;case"Object":n[i]=Object(a[1]);break;case"BigInt":n[i]=BigInt(a[1]);break;case"null":const h=Object.create(null);n[i]=h;for(let d=1;d<a.length;d+=2)h[a[d]]=s(a[d+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const d=globalThis[c],p=a[1],g=fh(p),_=new d(g);n[i]=_;break}case"ArrayBuffer":{const d=a[1],p=fh(d);n[i]=p;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(a.length);n[i]=c;for(let u=0;u<a.length;u+=1){const l=a[u];l!==OS&&(c[u]=s(l))}}else{const c={};n[i]=c;for(const u in a){const l=a[u];c[u]=s(l)}}return n[i]}return s(0)}const NS=new Set(["link","style","script","noscript"]),DS=new Set(["title","titleTemplate","script","style","noscript"]),hh=new Set(["base","meta","link","style","script","noscript"]),US=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),FS=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),HS=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),BS=new Set(["onload","onerror"]),qS=new Set(["templateParams","htmlAttrs","bodyAttrs"]),yu=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Si={META:new Set(["twitter"]),OG:new Set(["og","book","article","profile","fb"]),MEDIA:new Set(["ogImage","ogVideo","ogAudio","twitterImage"]),HTTP_EQUIV:new Set(["contentType","defaultStyle","xUaCompatible"])},zS={articleExpirationTime:"article:expiration_time",articleModifiedTime:"article:modified_time",articlePublishedTime:"article:published_time",bookReleaseDate:"book:release_date",fbAppId:"fb:app_id",ogAudioSecureUrl:"og:audio:secure_url",ogAudioUrl:"og:audio",ogImageSecureUrl:"og:image:secure_url",ogImageUrl:"og:image",ogSiteName:"og:site_name",ogVideoSecureUrl:"og:video:secure_url",ogVideoUrl:"og:video",profileFirstName:"profile:first_name",profileLastName:"profile:last_name",profileUsername:"profile:username",msapplicationConfig:"msapplication-Config",msapplicationTileColor:"msapplication-TileColor",msapplicationTileImage:"msapplication-TileImage"},ky={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${Tr(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>e==="seconds"?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>typeof t=="boolean"?Tr(e):`${Tr(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${Tr(e)} ${t}`}},charset:{}};function Tr(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),r=t.indexOf("-");return r===-1?t:Si.META.has(t.slice(0,r))||Si.OG.has(t.slice(0,r))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function xy(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>String(r)!=="false"&&t))}function _l(e){return Array.isArray(e)?e.map(_l):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,r])=>[Tr(t),_l(r)]))}function Cy(e,t={}){const{entrySeparator:r="",keyValueSeparator:n="",wrapValue:s,resolve:i}=t;return Object.entries(e).map(([o,a])=>{if(i){const u=i({key:o,value:a});if(u!==void 0)return u}const c=typeof a=="object"?Cy(a,t):typeof a=="number"?a.toString():typeof a=="str
19ing"&&s?`${s}${a.replace(new RegExp(s,"g"),`\\${s}`)}${s}`:a;return`${o}${n}${c}`}).join(r)}function dh(e,t){const r=xy(t),n=Tr(e),s=Ry(n);if(!yu.has(n))return[{[s]:n,...r}];const i=Object.fromEntries(Object.entries(r).map(([o,a])=>[`${e}${o==="url"?"":`${o[0].toUpperCase()}${o.slice(1)}`}`,a]));return ta(i||{}).sort((o,a)=>{var c,u;return(((c=o[s])==null?void 0:c.length)||0)-(((u=a[s])==null?void 0:u.length)||0)})}function Ry(e){var n;if(((n=ky[e])==null?void 0:n.metaKey)==="http-equiv"||Si.HTTP_EQUIV.has(e))return"http-equiv";const t=Tr(e),r=t.indexOf(":");return r===-1?"name":Si.OG.has(t.slice(0,r))?"property":"name"}function WS(e){return zS[e]||Tr(e)}function KS(e,t){var r;return t==="refresh"?`${e.seconds};url=${e.url}`:Cy(_l(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:s})=>n===null?"":typeof n=="boolean"?s:void 0,...(r=ky[t])==null?void 0:r.unpack})}function ta(e){const t=[],r={};for(const[s,i]of Object.entries(e)){if(Array.isArray(i)){if(s==="themeColor"){i.forEach(o=>{typeof o=="object"&&o!==null&&t.push({name:"theme-color",...o})});continue}for(const o of i)if(typeof o=="object"&&o!==null){const a=[],c=[];for(const[u,l]of Object.entries(o)){const f=`${s}${u==="url"?"":`:${u}`}`,h=ta({[f]:l});(u==="url"?a:c).push(...h)}t.push(...a,...c)}else t.push(...typeof o=="string"?ta({[s]:o}):dh(s,o));continue}if(typeof i=="object"&&i)if(Si.MEDIA.has(s)){const o=s.startsWith("twitter")?"twitter":"og",a=s.replace(/^(og|twitter)/,"").toLowerCase(),c=o==="twitter"?"name":"property";i.url&&t.push({[c]:`${o}:${a}`,content:i.url}),i.secureUrl&&t.push({[c]:`${o}:${a}:secure_url`,content:i.secureUrl});for(const[u,l]of Object.entries(i))u!=="url"&&u!=="secureUrl"&&t.push({[c]:`${o}:${a}:${u}`,content:l})}else yu.has(Tr(s))?t.push(...dh(s,i)):r[s]=xy(i);else r[s]=i}const n=Object.entries(r).map(([s,i])=>{if(s==="charset")return{charset:i===null?"_null":i};const o=Ry(s),a=WS(s),c=i===null?"_null":typeof i=="object"?KS(i,s):typeof i=="number"?i.toString():i;return o==="http-equiv"?{"http-equiv":a,content:c}:{[o]:a,content:c}});return[...t,...n].map(s=>"content"in s&&s.content==="_null"?{...s,content:null}:s)}const VS={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(r=>r.tag!=="_flatMeta"?r:(t.push(ta(r.props).map(n=>({...r,tag:"meta",props:n}))),!1)).filter(Boolean).concat(...t)}}},GS=["name","property","http-equiv"];function Ay(e){const t=e.split(":")[1];return yu.has(t)}function bl(e){const{props:t,tag:r}=e;if(FS.has(r))return r;if(r==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const n of GS)if(t[n]!==void 0)return`${r}:${t[n]}`}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(DS.has(r)){const n=e.textContent||e.innerHTML;if(n)return`${r}:content:${n}`}}function ph(e){const t=e._h||e._d;if(t)return t;const r=e.textContent||e.innerHTML;return r||`${e.tag}:${Object.entries(e.props).map(([n,s])=>`${n}:${String(s)}`).join(",")}`}function ra(e,t,r){typeof e==="function"&&(!r||r!=="titleTemplate"&&!(r[0]==="o"&&r[1]==="n"))&&(e=e());let s;if(t&&(s=t(r,e)),Array.isArray(s))return s.map(i=>ra(i,t));if((s==null?void 0:s.constructor)===Object){const i={};for(const o of Object.keys(s))i[o]=ra(s[o],t,o);return i}return s}function JS(e,t){const r=e==="style"?new Map:new Set;function n(s){const i=s.trim();if(i)if(e==="style"){const[o,...a]=i.split(":").map(c=>c.trim());o&&a.length&&r.set(o,a.join(":"))}else i.split(" ").filter(Boolean).forEach(o=>r.add(o))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(s=>n(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,i])=>{i&&i!=="false"&&(e==="style"?r.set(s.trim(),i):n(s))}),r}function Oy(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([r,n])=>{if(n===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=JS(r,n);return}if(HS.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="object"){let o=t.type;if(t.type||(o="application/json"),!(o!=null&&o.endsWith("json"))&&o!=="speculationrules")return;t.type=o,e.props.type=o,e[r]=JSON.stringify(n)}else e[r]=n;return}const s=String(n),i=r.startsWith("data-");s==="true"||s===""?e.props[r]=i?s:!0:!n&&i&&s==="false"?e.props[r]="false":n!==void 0&&(e.props[r]=n)}),e}function YS(e,t){const r=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=Oy({tag:e,props:{}},r);return n.key&&NS.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(s=>({...n,props:{...n.props,content:s}})):n}function QS(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(s,i)=>{for(let o=0;o<t.length;o++)i=t[o](s,i);return i};e=r(void 0,e);const n=[];return e=ra(e,r),Object.entries(e||{}
19).forEach(([s,i])=>{if(i!==void 0)for(const o of Array.isArray(i)?i:[i])n.push(YS(s,o))}),n.flat()}const gh=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,yh={base:-10,title:10},XS={critical:-8,high:-1,low:2},mh={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},ZS=/@import/,Hs=e=>e===""||e===!0;function eE(e,t){var i;if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const n=XS[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:mh;if(t.tag in yh)r=yh[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(r=mh.meta[o])}else t.tag==="link"&&t.props.rel?r=s.link[t.props.rel]:t.tag==="script"?Hs(t.props.async)?r=s.script.async:t.props.src&&!Hs(t.props.defer)&&!Hs(t.props.async)&&t.props.type!=="module"&&!((i=t.props.type)!=null&&i.endsWith("json"))?r=s.script.sync:Hs(t.props.defer)&&t.props.src&&!Hs(t.props.async)&&(r=s.script.defer):t.tag==="style"&&(r=t.innerHTML&&ZS.test(t.innerHTML)?s.style.imported:s.style.sync);return(r||100)+n}function vh(e,t){const r=typeof t=="function"?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}function tE(e={}){var a;const t=py();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,s=new Map,i=[],o={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries(){return[...n.values()]},use:c=>vh(o,c),push(c,u){const l={...u||{}};delete l.head;const f=l._index??o._entryCount++,h={_i:f,input:c,options:l},d={_poll(p=!1){o.dirty=!0,!p&&i.push(f),t.callHook("entries:updated",o)},dispose(){n.delete(f)&&d._poll(!0)},patch(p){(!l.mode||l.mode==="server"&&r||l.mode==="client"&&!r)&&(h.input=p,n.set(f,h),d._poll())}};return d.patch(c),d},async resolveTags(){var d;const c={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await t.callHook("entries:resolve",c);i.length;){const p=i.shift(),g=n.get(p);if(g){const _={tags:QS(g.input,e.propResolvers||[]).map(v=>Object.assign(v,g.options)),entry:g};await t.callHook("entries:normalize",_),g._tags=_.tags.map((v,y)=>(v._w=eE(o,v),v._p=(g._i<<10)+y,v._d=bl(v),v))}}let u=!1;c.entries.flatMap(p=>(p._tags||[]).map(g=>({...g,props:{...g.props}}))).sort(gh).reduce((p,g)=>{const _=String(g._d||g._p);if(!p.has(_))return p.set(_,g);const v=p.get(_);if(((g==null?void 0:g.tagDuplicateStrategy)||(qS.has(g.tag)?"merge":null)||(g.key&&g.key===v.key?"merge":null))==="merge"){const m={...v.props};Object.entries(g.props).forEach(([b,w])=>m[b]=b==="style"?new Map([...v.props.style||new Map,...w]):b==="class"?new Set([...v.props.class||new Set,...w]):w),p.set(_,{...g,props:m})}else g._p>>10===v._p>>10&&Ay(g._d)?(p.set(_,Object.assign([...Array.isArray(v)?v:[v],g],g)),u=!0):(g._w===v._w?g._p>v._p:(g==null?void 0:g._w)<(v==null?void 0:v._w))&&p.set(_,g);return p},c.tagMap);const l=c.tagMap.get("title"),f=c.tagMap.get("titleTemplate");if(o._title=l==null?void 0:l.textContent,f){const p=f==null?void 0:f.textContent;if(o._titleTemplate=p,p){let g=typeof p=="function"?p(l==null?void 0:l.textContent):p;typeof g=="string"&&!o.plugins.has("template-params")&&(g=g.replace("%s",(l==null?void 0:l.textContent)||"")),l?g===null?c.tagMap.delete("title"):c.tagMap.set("title",{...l,textContent:g}):(f.tag="title",f.textContent=g)}}c.tags=Array.from(c.tagMap.values()),u&&(c.tags=c.tags.flat().sort(gh)),await t.callHook("tags:beforeResolve",c),await t.callHook("tags:resolve",c),await t.callHook("tags:afterResolve",c);const h=[];for(const p of c.tags){const{innerHTML:g,tag:_,props:v}=p;if(US.has(_)&&!(Object.keys(v).length===0&&!p.innerHTML&&!p.textContent)&&!(_==="meta"&&!v.content&&!v["http-equiv"]&&!v.charset)){if(_==="script"&&g){if((d=v.type)!=null&&d.endsWith("json")){const y=typeof g=="string"?g:JSON.stringify(g);p.innerHTML=y.replace(/</g,"\\u003C")}else typeof g=="string"&&(p.innerHTML=g.replace(new RegExp(`</${_}`,"g"),`<\\/${_}`));p._d=bl(p)}h.push(p)}}return h}};
19return((e==null?void 0:e.plugins)||[]).forEach(c=>vh(o,c)),o.hooks.callHook("init",o),(a=e.init)==null||a.forEach(c=>c&&o.push(c)),o}function rE(e={}){const t=[];let r=-1;const n=(s=!1)=>({get(i,o,a){if(!s){const c=Reflect.get(i,o,a);if(typeof c<"u")return c;r++,t[r]=[]}return t[r].push({type:"get",key:o}),new Proxy(()=>{},n(!0))},apply(i,o,a){t[r].push({type:"apply",key:"",args:a})}});return{proxy:new Proxy(e||{},n()),stack:t}}function nE(e){const t={get(r,n,s){const i=Reflect.get(r,n,s);return typeof i=="object"?new Proxy(i,t):i},apply(r,n,s){Reflect.apply(r,n,s)}};return new Proxy(e,t)}function sE(e,t){t.forEach(r=>{let n=e,s=e;r.forEach(({type:i,key:o,args:a})=>{i==="get"?(s=n,n=n[o]):i==="apply"&&(n=n.call(s,...a))})})}function iE(e){return e.key||e.src||(typeof e.innerHTML=="string"?e.innerHTML:"")}const oE=["preconnect","dns-prefetch"];function aE(e,t,r){var p,g,_;const n=typeof t=="string"?{src:t}:t,s=r||{},i=iE(n),o=(p=e._scripts)==null?void 0:p[i];if(o)return o.setupTriggerHandler(s.trigger),o;(g=s.beforeInit)==null||g.call(s);const a=v=>{h.status=v,e.hooks.callHook("script:updated",d)};BS.forEach(v=>{const y=v,m=typeof n[y]=="function"?n[y].bind(s.eventContext):null;n[y]=b=>{a(v==="onload"?"loaded":v==="onerror"?"error":"loading"),m==null||m(b)}});const c={loaded:[],error:[]},u=new Set,l=(v,y,m)=>{if(!e.ssr){if(m!=null&&m.key){const b=`${m==null?void 0:m.key}:${m.key}`;if(u.has(b))return;u.add(b)}if(c[v]){const b=c[v].push(y);return()=>{var w;return(w=c[v])==null?void 0:w.splice(b-1,1)}}return y(h.instance),()=>{}}},f=new Promise(v=>{if(e.ssr)return;const y=b=>requestAnimationFrame(()=>v(b)),m=e.hooks.hook("script:updated",({script:b})=>{const w=b.status;if(b.id===i&&(w==="loaded"||w==="error")){if(w==="loaded")if(typeof s.use=="function"){const T=s.use();T&&y(T)}else y({});else w==="error"&&v(!1);m()}})}),h={_loadPromise:f,instance:!e.ssr&&((_=s==null?void 0:s.use)==null?void 0:_.call(s))||null,proxy:null,id:i,status:"awaitingLoad",remove(){var v,y,m;return(v=h._triggerAbortController)==null||v.abort(),h._triggerPromises=[],(y=h._warmupEl)==null||y.dispose(),h.entry?(h.entry.dispose(),h.entry=void 0,a("removed"),(m=e._scripts)==null||delete m[i],!0):!1},warmup(v){const{src:y}=n,m=!y.startsWith("/")||y.startsWith("//"),b=v&&oE.includes(v);let w=y;if(!v||b&&!m)return;if(b){const x=new URL(y);w=`${x.protocol}//${x.host}`}const T={href:w,rel:v,crossorigin:typeof n.crossorigin<"u"?n.crossorigin:m?"anonymous":void 0,referrerpolicy:typeof n.referrerpolicy<"u"?n.referrerpolicy:m?"no-referrer":void 0,fetchpriority:typeof n.fetchpriority<"u"?n.fetchpriority:"low",integrity:n.integrity,as:v==="preload"?"script":void 0};return h._warmupEl=e.push({link:[T]},{head:e,tagPriority:"high"}),h._warmupEl},load(v){var y;if((y=h._triggerAbortController)==null||y.abort(),h._triggerPromises=[],!h.entry){a("loading");const m={defer:!0,fetchpriority:"low"};n.src&&(n.src.startsWith("http")||n.src.startsWith("//"))&&(m.crossorigin="anonymous",m.referrerpolicy="no-referrer"),h.entry=e.push({script:[{...m,...n}]},s)}return v&&l("loaded",v),f},onLoaded(v,y){return l("loaded",v,y)},onError(v,y){return l("error",v,y)},setupTriggerHandler(v){if(h.status==="awaitingLoad")if((typeof v>"u"||v==="client")&&!e.ssr||v==="server")h.load();else if(v instanceof Promise){if(e.ssr)return;h._triggerAbortController||(h._triggerAbortController=new AbortController,h._triggerAbortPromise=new Promise(m=>{h._triggerAbortController.signal.addEventListener("abort",()=>{h._triggerAbortController=null,m()})})),h._triggerPromises=h._triggerPromises||[];const y=h._triggerPromises.push(Promise.race([v.then(m=>typeof m>"u"||m?h.load:void 0),h._triggerAbortPromise]).catch(()=>{}).then(m=>{m==null||m()}).finally(()=>{var m;(m=h._triggerPromises)==null||m.splice(y,1)}))}else typeof v=="function"&&v(h.load)},_cbs:c};f.then(v=>{var y,m;v!==!1?(h.instance=v,(y=c.loaded)==null||y.forEach(b=>b(v)),c.loaded=null):((m=c.error)==null||m.forEach(b=>b()),c.error=null)});const d={script:h};if(h.setupTriggerHandler(s.trigger),s.use){const{proxy:v,stack:y}=rE(e.ssr?{}:s.use()||{});h.proxy=v,h.onLoaded(m=>{sE(m,y),h.proxy=nE(m)})}return!s.warmupStrategy&&(typeof s.trigger>"u"||s.trigger==="client")&&(s.warmupStrategy="preload"),s.warmupStrategy&&h.warmup(s.warmupStrategy),e._scripts=Object.assign(e._scripts||{},{[i]:h}),h}const Hr="%separator",cE=new RegExp(`${Hr}(?:\\s*${Hr})*`,"g");function lE(e,t,r=!1){var s;let n;if(t==="s"||t==="pageTitle")n=e.pageTitle;else if(t.includes(".")){const i=t.indexOf(".");n=(s=e[t.substring(0,i)])==null?void 0:s[t.substring(i+1)]}else n=e[t];if(n!==void 0)return r?(n||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):n||""}function vo(e,t,r,n=!1){if(typeof e!="string"||!e.includes("%"))return e;let s=e;try{s=decodeURI(e)}catch{}const i=s.match(/%\w+(?:\.\w+)?/g);if(!i)return e;const o=e.includes(Hr);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===Hr||!i.includes(a))return a;const c=lE(t,a.slice(1),n);return c!==void 0?c:a}).trim(),o&&(e.endsWith(Hr)&&(e=e.slice(0,-Hr.length)),e.startsWith(Hr)&&(e=e.slice(Hr.length)),e=e.replace(cE,r||"").trim()),e}const uE={meta:"content",link:"href",htmlAttrs:"lang"},fE=["innerHTML","textContent"],$y=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var n,s,i;const r=((s=(n=t.tags.filter(o=>o.tag==="templateParams"&&o.mode==="server"))==null?void 0:n[0])==null?void 0:s.props)||{};Object.keys(r).length&&(e._ssrPayload={templateParams:{...((i=e._ssrPayload)==null?void 0:i.templateParams)||{},...r}})},"tags:resolve":({tagMap:t,tags:r})=>{var i;const n=((i=t.get("templateParams"))==null?void 0:i.props)||{},s=n.separator||"|";delete n.separator,n.pageTitle=vo(n.pageTitle||e._title||"",n,s);for(const o of r){if(o.processTemplateParams===!1)continue;const a=uE[o.tag];if(a&&typeof o.props[a]=="string")o.props[a]=vo(o.props[a],n,s);else if(o.processTemplateParams||o.tag==="titleTemplate"||o.tag==="title")for(const c of fE)typeof o[c]=="string"&&(o[c]=vo(o[c],n,s,o.tag==="script"&&o.props.type.endsWith("json")))}e._templateParams=n,e._separator=s},"tags:afterResolve":({tagMap:t})=>{const r=t.get("title");r!=null&&r.textContent&&r.processTemplateParams!==!1&&(r.textContent=vo(r.textContent,e._templateParams,e._separator))}}});function hE(e={}){return t=>(t.push({meta:[{name:"twitter:card",content:e.twitterCard||"summary_large_image",tagPriority:"low"},{property:"og:title",tagPriority:"low","data-infer":""},{property:"og:description",tagPriority:"low","data-infer":""}]}),{key:"infer-seo-meta",hooks:{"tags:beforeResolve":({tagMap:r})=>{var a,c;let n=t._titleTemplate||t._title;const s=r.get("meta:og:title");typeof(s==null?void 0:s.props["data-infer"])<"u"&&(typeof n=="function"&&(n=n(t._title)),s.props.content=e.ogTitle?e.ogTitle(n):n||"",s.processTemplateParams=!0);const i=(c=(a=r.get("meta:description"))==null?void 0:a.props)==null?void 0:c.content,o=r.get("meta:og:description");typeof(o==null?void 0:o.props["data-infer"])<"u"&&(o.props.content=e.ogDescription?e.ogDescription(i):i||"",o.processTemplateParams=!0)}}})}const dE=(e,t)=>ze(t)?je(t):t,mu="usehead";function pE(e){return{install(r){r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(mu,e)}}.install}function vu(){if($s()){const e=nt(mu);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function Py(e,t={}){const r=t.head||vu();return r.ssr?r.push(e||{},t):gE(r,e,t)}function gE(e,t,r={}){const n=ye(!1);let s;return Ea(()=>{const o=n.value?{}:ra(t,dE);s?s.patch(o):s=e.push(o,r)}),Mt()&&(Os(()=>{s.dispose()}),vg(()=>{n.value=!0}),mg(()=>{n.value=!1})),s}function yE(e={},t={}){(t.head||vu()).use(VS);const{title:n,titleTemplate:s,...i}=e;return Py({title:n,titleTemplate:s,_flatMeta:i},t)}function mE(e,t){if(!t)return;const r=(n,s)=>{if(!e._cbs[n])return s(e.instance),()=>{};let i=e._cbs[n].push(s);const o=()=>{var a;i&&((a=e._cbs[n])==null||a.splice(i-1,1),i=null)};return Lt(o),o};e.onLoaded=n=>r("loaded",n),e.onError=n=>r("error",n),Lt(()=>{var n;(n=e._triggerAbortController)==null||n.abort()})}function vE(e,t){const r=typeof e=="string"?{src:e}:e,n=t||{},s=(n==null?void 0:n.head)||vu();n.head=s;const i=Mt();if(n.eventContext=i,i&&typeof n.trigger>"u")n.trigger=Tt;else if(ze(n.trigger)){const a=n.trigger;let c;n.trigger=new Promise(u=>{c=Ve(a,l=>{l&&u(!0)},{immediate:!0}),Lt(()=>u(!1),!0)}).then(u=>(c==null||c(),u))}s._scriptStatusWatcher=s._scriptStatusWatcher||s.hooks.hook("script:updated",({script:a})=>{a._statusRef.value=a.status});const o=aE(s,r,n);return o._statusRef=o._statusRef||ye(o.status),mE(o,i),new Proxy(o,{get(a,c,u){return Reflect.get(a,c==="status"?"_statusRef":c,u)}})}function Dn(e){var r;const t=e||Ae();
19return((r=t.ssrContext)==null?void 0:r.head)||t.runWithContext(()=>{if($s()){const n=nt(mu);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function Aa(e,t={}){const r=Dn(t.nuxt);return Py(e,{head:r,...t})}function Iy(e,t={}){const r=Dn(t.nuxt);return yE(e,{head:r,...t})}const _E="modulepreload",bE=function(e,t){return new URL(e,t).href},_h={},Re=function(t,r,n){let s=Promise.resolve();if(r&&r.length>0){let o=function(l){return Promise.all(l.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const a=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),u=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));s=o(r.map(l=>{if(l=bE(l,n),l in _h)return;_h[l]=!0;const f=l.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(!!n)for(let g=a.length-1;g>=0;g--){const _=a[g];if(_.href===l&&(!f||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${h}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":_E,f||(p.as="script"),p.crossOrigin="",p.href=l,u&&p.setAttribute("nonce",u),document.head.appendChild(p),f)return new Promise((g,_)=>{p.addEventListener("load",g),p.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};let No,Do;function wE(){return No=$fetch(gu(`builds/meta/${yt().app.buildId}.json`),{responseType:"json"}),No.then(e=>{Do=bS(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),No}function Oa(){return No||wE()}async function _u(e){const t=typeof e=="string"?e:e.path;if(await Oa(),!Do)return console.error("[nuxt] Error creating app manifest matcher.",Do),{};try{return Ps({},...Do.matchAll(t).reverse())}catch(r){return console.error("[nuxt] Error matching route rules.",r),{}}}async function bh(e,t={}){if(!await Ly(e))return null;const n=await EE(e,t);return await jy(n)||null}const SE="_payload.json";async function EE(e,t={}){const r=new URL(e,"http://localhost");if(r.host!=="localhost"||Yt(r.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const n=yt(),s=t.hash||(t.fresh?Date.now():n.app.buildId),i=n.app.cdnURL,o=i&&await Ly(e)?i:n.app.baseURL;return Ca(o,r.pathname,SE+(s?`?${s}`:""))}async function jy(e){const t=fetch(e,{cache:"force-cache"}).then(r=>r.text().then(My));try{return await t}catch(r){console.warn("[nuxt] Cannot load payload ",e,r)}return null}async function Ly(e=Or().path){const t=Ae();return e=Mn(e),(await Oa()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const n=await _u({path:e});return!!n.prerender&&!n.redirect})}let pn=null;async function TE(){var n;if(pn)return pn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await My(e.textContent||""),r=e.dataset.src?await jy(e.dataset.src):void 0;return pn={...t,...r,...window.__NUXT__},(n=pn.config)!=null&&n.public&&(pn.config.public=gt(pn.config.public)),pn}async function My(e){return await LS(e,Ae()._payloadRevivers)}function kE(e,t){Ae()._payloadRevivers[e]=t}const Ny=[["NuxtError",e=>Gi(e)],["EmptyShallowRef",e=>Me(e==="_"?void 0:e==="0n"?BigInt(0):wi(e))],["EmptyRef",e=>ye(e==="_"?void 0:e==="0n"?BigInt(0):wi(e))],["ShallowRef",e=>Me(e)],["ShallowReactive",e=>Er(e)],["Ref",e=>ye(e)],["Reactive",e=>gt(e)]];Ny.push(["Island",({key:e,params:t,result:r})=>{var s;const n=Ae();return n.isHydrating||(s=n.payload.data)[e]||(s[e]=$fetch(`/__nuxt_island/${e}.json`,{responseType:"json",...t?{params:t}:{}}).then(i=>(n.payload.data[e]=i,i))),{html:"",...r}}]);const xE=Je({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,r;for(const[n,s]of Ny)kE(n,s);Object.assign(e.payload,([t,r]=Rn(()=>e.runWithContext(TE)),t=await t,r(),t)),window.__NUXT__=e.payload}});async function bu(e,t={}){const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const n={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",n),!!n.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{var d;const i=new Map,o=new Promise(p=>{e.resolveTags().then(g=>{p(g.map(_=>{const v=i.get(_._d)||0,y={tag:_,id:(v?`${_._d}:${v}`:_._d)||ph(_),shouldRender:!0};return _._d&&Ay(_._d)&&i.set(_._d,v+1),y}))})});let a=e._dom;if(!a){a={title:r.title,elMap:new Map().set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const p of["body","head"]){const g=(d=r[p])==null?void 0:d.children;for(const _ of g){const v=_.tagName.toLowerCase();if(!hh.has(v))continue;const y=Oy({tag:v,props:{}},{innerHTML:_.innerHTML,..._.getAttributeNames().reduce((m,b)=>(m[b]=_.getAttribute(b),m),{})||{}});if(y.key=_.getAttribute("data-hid")||void 0,y._d=bl(y)||ph(y),a.elMap.has(y._d)){let m=1,b=y._d;for(;a.elMap.has(b);)b=`${y._d}:${m++}`;a.elMap.set(b,_)}else a.elMap.set(y._d,_)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function c(p,g,_){const v=`${p}:${g}`;a.sideEffects[v]=_,delete a.pendingSideEffects[v]}function u({id:p,$el:g,tag:_}){const v=_.tag.endsWith("Attrs");a.elMap.set(p,g),v||(_.textContent&&_.textContent!==g.textContent&&(g.textContent=_.textContent),_.innerHTML&&_.innerHTML!==g.innerHTML&&(g.innerHTML=_.innerHTML),c(p,"el",()=>{g==null||g.remove(),a.elMap.delete(p)}));for(const y in _.props){if(!Object.prototype.hasOwnProperty.call(_.props,y))continue;const m=_.props[y];if(y.startsWith("on")&&typeof m=="function"){const w=g==null?void 0:g.dataset;if(w&&w[`${y}fired`]){const T=y.slice(0,-5);m.call(g,new Event(T.substring(2)))}g.getAttribute(`data-${y}`)!==""&&((_.tag==="bodyAttrs"?r.defaultView:g).addEventListener(y.substring(2),m.bind(g)),g.setAttribute(`data-${y}`,""));continue}const b=`attr:${y}`;if(y==="class"){if(!m)continue;for(const w of m)v&&c(p,`${b}:${w}`,()=>g.classList.remove(w)),!g.classList.contains(w)&&g.classList.add(w)}else if(y==="style"){if(!m)continue;for(const[w,T]of m)c(p,`${b}:${w}`,()=>{g.style.removeProperty(w)}),g.style.setProperty(w,T)}else m!==!1&&m!==null&&(g.getAttribute(y)!==m&&g.setAttribute(y,m===!0?"":String(m)),v&&c(p,b,()=>g.removeAttribute(y)))}}const l=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await o;for(const p of h){const{tag:g,shouldRender:_,id:v}=p;if(_){if(g.tag==="title"){r.title=g.textContent,c("title","",()=>r.title=a.title);continue}p.$el=p.$el||a.elMap.get(v),p.$el?u(p):hh.has(g.tag)&&l.push(p)}}for(const p of l){const g=p.tag.tagPosition||"head";p.$el=r.createElement(p.tag.tag),u(p),f[g]=f[g]||r.createDocumentFragment(),f[g].appendChild(p.$el)}for(const p of h)await e.hooks.callHook("dom:renderTag",p,r,c);f.head&&r.head.appendChild(f.head),f.bodyOpen&&r.body.insertBefore(f.bodyOpen,r.body.firstChild),f.bodyClose&&r.body.appendChild(f.bodyClose);for(const p in a.pendingSideEffects)a.pendingSideEffects[p]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:h}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function CE(e={}){var n,s,i;const t=((n=e.domOptions)==null?void 0:n.render)||bu;e.document=e.document||(typeof window<"u"?document:void 0);const r=((i=(s=e.document)==null?void 0:s.head.querySelector('script[id="unhead:payload"]'))==null?void 0:i.innerHTML)||!1;return tE({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[r?JSON.parse(r):!1,...e.init||[]]})}function RE(e,t){let r=0;return()=>{const n=++r;t(()=>{r===n&&e()})}}function AE(e={}){const t=CE({domOptions:{render:RE(()=>bu(t),r=>setTimeout(r,0))},...e});return t.install=pE(t),t}const OE={disableDefaults:!0},$E=Je({name:"nuxt:head",enforce:"pre",setup(e){const t=AE(OE);e.vueApp.use(t);{let r=!0;const n=async()=>{r=!1,await bu(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!r}),e.hooks.hook("page:start",()=>{r=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||n()}),e.hooks.hook("app:error",n),e.hooks.hook("app:suspense:resolve",n)}}});/*! 20 * vue-router v4.5.0 21 * (c) 2024 Eduardo San Martin Morote 22 * @license MIT 23 */const es=typeof document<"u";function Dy(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}
vendor: 10,645 bytes, line 23
23function PE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Dy(e.default)}const $e=Object.assign;function ic(e,t){const r={};for(const n in t){const s=t[n];r[n]=Gt(s)?s.map(e):e(s)}return r}const ni=()=>{},Gt=Array.isArray,Uy=/#/g,IE=/&/g,jE=/\//g,LE=/=/g,ME=/\?/g,Fy=/\+/g,NE=/%5B/g,DE=/%5D/g,Hy=/%5E/g,UE=/%60/g,By=/%7B/g,FE=/%7C/g,qy=/%7D/g,HE=/%20/g;function wu(e){return encodeURI(""+e).replace(FE,"|").replace(NE,"[").replace(DE,"]")}function BE(e){return wu(e).replace(By,"{").replace(qy,"}").replace(Hy,"^")}function wl(e){return wu(e).replace(Fy,"%2B").replace(HE,"+").replace(Uy,"%23").replace(IE,"%26").replace(UE,"`").replace(By,"{").replace(qy,"}").replace(Hy,"^")}function qE(e){return wl(e).replace(LE,"%3D")}function zE(e){return wu(e).replace(Uy,"%23").replace(ME,"%3F")}function WE(e){return e==null?"":zE(e).replace(jE,"%2F")}function Ei(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const KE=/\/$/,VE=e=>e.replace(KE,"");function oc(e,t,r="/"){let n,s={},i="",o="";const a=t.indexOf("#");let c=t.indexOf("?");return a<c&&a>=0&&(c=-1),c>-1&&(n=t.slice(0,c),i=t.slice(c+1,a>-1?a:t.length),s=e(i)),a>-1&&(n=n||t.slice(0,a),o=t.slice(a,t.length)),n=QE(n??t,r),{fullPath:n+(i&&"?")+i+o,path:n,query:s,hash:Ei(o)}}function GE(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function wh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function JE(e,t,r){const n=t.matched.length-1,s=r.matched.length-1;return n>-1&&n===s&&Es(t.matched[n],r.matched[s])&&zy(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Es(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function zy(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!YE(e[r],t[r]))return!1;return!0}function YE(e,t){return Gt(e)?Sh(e,t):Gt(t)?Sh(t,e):e===t}function Sh(e,t){return Gt(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function QE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),s=n[n.length-1];(s===".."||s===".")&&n.push("");let i=r.length-1,o,a;for(o=0;o<n.length;o++)if(a=n[o],a!==".")if(a==="..")i>1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(o).join("/")}const Ft={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ti;(function(e){e.pop="pop",e.push="push"})(Ti||(Ti={}));var si;(function(e){e.back="back",e.forward="forward",e.unknown=""})(si||(si={}));function XE(e){if(!e)if(es){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),VE(e)}const ZE=/^[^#]+#/;function e1(e,t){return e.replace(ZE,"#")+t}function t1(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const $a=()=>({left:window.scrollX,top:window.scrollY});function r1(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=t1(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Eh(e,t){return(history.state?history.state.position-t:-1)+e}const Sl=new Map;function n1(e,t){Sl.set(e,t)}function s1(e){const t=Sl.get(e);return Sl.delete(e),t}let i1=()=>location.protocol+"//"+location.host;function Wy(e,t){const{pathname:r,search:n,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,c=s.slice(a);return c[0]!=="/"&&(c="/"+c),wh(c,"")}return wh(r,e)+n+s}function o1(e,t,r,n){let s=[],i=[],o=null;const a=({state:h})=>{const d=Wy(e,location),p=r.value,g=t.value;let _=0;if(h){if(r.value=d,t.value=h,o&&o===p){o=null;return}_=g?h.position-g.position:0}else n(d);s.forEach(v=>{v(r.value,p,{delta:_,type:Ti.pop,direction:_?_>0?si.forward:si.back:si.unknown})})};function c(){o=r.value}function u(h){s.push(h);const d=()=>{const p=s.indexOf(h);p>-1&&s.splice(p,1)};return i.push(d),d}function l(){const{history:h}=window;h.state&&h.replaceState($e({},h.state,{scroll:$a()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:c,listen:u,destroy:f}}function Th(e,t,r,n=!1,s=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:s?$a():null}}function a1(e){const{history:t,location:r}=window,n={value:Wy(e,r)},s={value:t.state};s.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,u,l){const f=e.indexOf("#"),h=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+c:i1()+e+c;try{t[l?"replaceState":"pushState"](u,"",h),s.value=u}catch(d){console.error(d),r[l?"replace":"assign"](h)}}function o(c,u){const l=$e({},t.state,Th(s.value.back,c,s.value.forward,!0),u,{position:s.value.position});i(c,l,!0),n.value=c}function a(c,u){const l=$e({},s.value,t.state,{forward:c,scroll:$a()});i(l.current,l,!0);const f=$e({},Th(n.value,c,null),{position:l.position+1},u);i(c,f,!1),n.value=c}return{location:n,state:s,push:a,replace:o}}function c1(e){e=XE(e);const t=a1(e),r=o1(e,t.state,t.location,t.replace);function n(i,o=!0){o||r.pauseListeners(),history.go(i)}const s=$e({location:"",base:e,go:n,createHref:e1.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function l1(e){return typeof e=="string"||e&&typeof e=="object"}function Ky(e){return typeof e=="string"||typeof e=="symbol"}const Vy=Symbol("");var kh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(kh||(kh={}));function Ts(e,t){return $e(new Error,{type:e,[Vy]:!0},t)}function hr(e,t){return e instanceof Error&&Vy in e&&(t==null||!!(e.type&t))}const xh="[^/]+?",u1={sensitive:!1,strict:!1,start:!0,end:!0},f1=/[.+*?^${}()[\]/\\]/g;function h1(e,t){const r=$e({},u1,t),n=[];let s=r.start?"^":"";const i=[];for(const u of e){const l=u.length?[]:[90];r.strict&&!u.length&&(s+="/");for(let f=0;f<u.length;f++){const h=u[f];let d=40+(r.sensitive?.25:0);if(h.type===0)f||(s+="/"),s+=h.value.replace(f1,"\\$&"),d+=40;else if(h.type===1){const{value:p,repeatable:g,optional:_,regexp:v}=h;i.push({name:p,repeatable:g,optional:_});const y=v||xh;if(y!==xh){d+=10;try{new RegExp(`(${y})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+b.message)}}let m=g?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(m=_&&u.length<2?`(?:/${m})`:"/"+m),_&&(m+="?"),s+=m,d+=20,_&&(d+=-8),g&&(d+=-20),y===".*"&&(d+=-50)}l.push(d)}n.push(l)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const o=new RegExp(s,r.sensitive?"":"i");function a(u){const l=u.match(o),f={};if(!l)return null;for(let h=1;h<l.length;h++){const d=l[h]||"",p=i[h-1];f[p.name]=d&&p.repeatable?d.split("/"):d}return f}function c(u){let l="",f=!1;for(const h of e){(!f||!l.endsWith("/"))&&(l+="/"),f=!1;for(const d of h)if(d.type===0)l+=d.value;else if(d.type===1){const{value:p,repeatable:g,optional:_}=d,v=p in u?u[p]:"";if(Gt(v)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=Gt(v)?v.join("/"):v;if(!y)if(_)h.length<2&&(l.endsWith("/")?l=l.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);l+=y}}return l||"/"}return{re:o,score:n,keys:i,parse:a,stringify:c}}function d1(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Gy(e,t){let r=0;const n=e.score,s=t.score;for(;r<n.length&&r<s.length;){const i=d1(n[r],s[r]);if(i)return i;r++}if(Math.abs(s.length-n.length)===1){if(Ch(n))return 1;if(Ch(s))return-1}return s.length-n.length}function Ch(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const p1={type:0,value:""},g1=/[a-zA-Z0-9_]/;function y1(e){if(!e)return[[]];if(e==="/")return[[p1]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${r})/"${u}": ${d}`)}let r=0,n=r;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,c,u="",l="";function f(){u&&(r===0?i.push({type:0,value:u}):r===1||r===2||r===3?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:l,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=c}for(;a<e.length;){if(c=e[a++],c==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:c==="/"?(u&&f(),o()):c===":"?(f(),r=1):h();break;case 4:h(),r=n;break;case 1:c==="("?r=2:g1.test(c)?h():(f(),r=0,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case 2:c===")"?l[l.length-1]=="\\"?l=l.slice(0,-1)+c:r=3:l+=c;break;case 3:f(),r=0,c!=="*"&&c!=="?"&&c!=="+"&&a--,l="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),o(),s}function m1(e,t,r){const n=h1(y1(e.path),r),s=$e(n,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function v1(e,t){const r=[],n=new Map;t=$h({strict:!1,end:!0,sensitive:!1},t);function s(f){return n.get(f)}function i(f,h,d){const p=!d,g=Ah(f);g.aliasOf=d&&d.record;const _=$h(t,f),v=[g];if("alias"in f){const b=typeof f.alias=="string"?[f.alias]:f.alias;for(const w of b)v.push(Ah($e({},g,{components:d?d.record.components:g.components,path:w,aliasOf:d?d.record:g})))}let y,m;for(const b of v){const{path:w}=b;if(h&&w[0]!=="/"){const T=h.record.path,x=T[T.length-1]==="/"?"":"/";b.path=h.record.path+(w&&x+w)}if(y=m1(b,h,_),d?d.alias.push(y):(m=m||y,m!==y&&m.alias.push(y),p&&f.name&&!Oh(y)&&o(f.name)),Jy(y)&&c(y),g.children){const T=g.children;for(let x=0;x<T.length;x++)i(T[x],y,d&&d.children[x])}d=d||y}return m?()=>{o(m)}:ni}function o(f){if(Ky(f)){const h=n.get(f);h&&(n.delete(f),r.splice(r.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=r.indexOf(f);h>-1&&(r.splice(h,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function a(){return r}function c(f){const h=w1(f,r);
vendor: 7,672 bytes, line 23
23r.splice(h,0,f),f.record.name&&!Oh(f)&&n.set(f.record.name,f)}function u(f,h){let d,p={},g,_;if("name"in f&&f.name){if(d=n.get(f.name),!d)throw Ts(1,{location:f});_=d.record.name,p=$e(Rh(h.params,d.keys.filter(m=>!m.optional).concat(d.parent?d.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),f.params&&Rh(f.params,d.keys.map(m=>m.name))),g=d.stringify(p)}else if(f.path!=null)g=f.path,d=r.find(m=>m.re.test(g)),d&&(p=d.parse(g),_=d.record.name);else{if(d=h.name?n.get(h.name):r.find(m=>m.re.test(h.path)),!d)throw Ts(1,{location:f,currentLocation:h});_=d.record.name,p=$e({},h.params,f.params),g=d.stringify(p)}const v=[];let y=d;for(;y;)v.unshift(y.record),y=y.parent;return{name:_,path:g,params:p,matched:v,meta:b1(v)}}e.forEach(f=>i(f));function l(){r.length=0,n.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:l,getRoutes:a,getRecordMatcher:s}}function Rh(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function Ah(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_1(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function _1(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function Oh(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function b1(e){return e.reduce((t,r)=>$e(t,r.meta),{})}function $h(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function w1(e,t){let r=0,n=t.length;for(;r!==n;){const i=r+n>>1;Gy(e,t[i])<0?n=i:r=i+1}const s=S1(e);return s&&(n=t.lastIndexOf(s,n-1)),n}function S1(e){let t=e;for(;t=t.parent;)if(Jy(t)&&Gy(e,t)===0)return t}function Jy({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function E1(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const i=n[s].replace(Fy," "),o=i.indexOf("="),a=Ei(o<0?i:i.slice(0,o)),c=o<0?null:Ei(i.slice(o+1));if(a in t){let u=t[a];Gt(u)||(u=t[a]=[u]),u.push(c)}else t[a]=c}return t}function Ph(e){let t="";for(let r in e){const n=e[r];if(r=qE(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Gt(n)?n.map(i=>i&&wl(i)):[n&&wl(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function T1(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Gt(n)?n.map(s=>s==null?null:""+s):n==null?n:""+n)}return t}const k1=Symbol(""),Ih=Symbol(""),Pa=Symbol(""),Su=Symbol(""),El=Symbol("");function Bs(){let e=[];function t(n){return e.push(n),()=>{const s=e.indexOf(n);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Br(e,t,r,n,s,i=o=>o()){const o=n&&(n.enterCallbacks[s]=n.enterCallbacks[s]||[]);return()=>new Promise((a,c)=>{const u=h=>{h===!1?c(Ts(4,{from:r,to:t})):h instanceof Error?c(h):l1(h)?c(Ts(2,{from:t,to:h})):(o&&n.enterCallbacks[s]===o&&typeof h=="function"&&o.push(h),a())},l=i(()=>e.call(n&&n.instances[s],t,r,u));let f=Promise.resolve(l);e.length<3&&(f=f.then(u)),f.catch(h=>c(h))})}function ac(e,t,r,n,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let c=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(Dy(c)){const l=(c.__vccOpts||c)[t];l&&i.push(Br(l,r,n,o,a,s))}else{let u=c();i.push(()=>u.then(l=>{if(!l)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const f=PE(l)?l.default:l;o.mods[a]=l,o.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&Br(d,r,n,o,a,s)()}))}}return i}function jh(e){const t=nt(Pa),r=nt(Su),n=we(()=>{const c=ee(e.to);return t.resolve(c)}),s=we(()=>{const{matched:c}=n.value,{length:u}=c,l=c[u-1],f=r.matched;if(!l||!f.length)return-1;const h=f.findIndex(Es.bind(null,l));if(h>-1)return h;const d=Lh(c[u-2]);return u>1&&Lh(l)===d&&f[f.length-1].path!==d?f.findIndex(Es.bind(null,c[u-2])):h}),i=we(()=>s.value>-1&&O1(r.params,n.value.params)),o=we(()=>s.value>-1&&s.value===r.matched.length-1&&zy(r.params,n.value.params));function a(c={}){if(A1(c)){const u=t[ee(e.replace)?"replace":"push"](ee(e.to)).catch(ni);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:we(()=>n.value.href),isActive:i,isExactActive:o,navigate:a}}function x1(e){return e.length===1?e[0]:e}const C1=ct({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:jh,setup(e,{slots:t}){const r=gt(jh(e)),{options:n}=nt(Pa),s=we(()=>({[Mh(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[Mh(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&x1(t.default(r));return e.custom?i:Se("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},i)}}}),R1=C1;function A1(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function O1(e,t){for(const r in t){const n=t[r],s=e[r];if(typeof n=="string"){if(n!==s)return!1}else if(!Gt(s)||s.length!==n.length||n.some((i,o)=>i!==s[o]))return!1}return!0}function Lh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Mh=(e,t,r)=>e??t??r,$1=ct({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=nt(El),s=we(()=>e.route||n.value),i=nt(Ih,0),o=we(()=>{let u=ee(i);const{matched:l}=s.value;let f;for(;(f=l[u])&&!f.components;)u++;return u}),a=we(()=>s.value.matched[o.value]);xn(Ih,we(()=>o.value+1)),xn(k1,a),xn(El,s);const c=ye();return Ve(()=>[c.value,a.value,e.name],([u,l,f],[h,d,p])=>{l&&(l.instances[f]=u,d&&d!==l&&u&&u===h&&(l.leaveGuards.size||(l.leaveGuards=d.leaveGuards),l.updateGuards.size||(l.updateGuards=d.updateGuards))),u&&l&&(!d||!Es(l,d)||!h)&&(l.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=s.value,l=e.name,f=a.value,h=f&&f.components[l];if(!h)return Nh(r.default,{Component:h,route:u});const d=f.props[l],p=d?d===!0?u.params:typeof d=="function"?d(u):d:null,_=Se(h,$e({},p,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(f.instances[l]=null)},ref:c}));return Nh(r.default,{Component:_,route:u})||_}}});function Nh(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Yy=$1;function P1(e){const t=v1(e.routes,e),r=e.parseQuery||E1,n=e.stringifyQuery||Ph,s=e.history,i=Bs(),o=Bs(),a=Bs(),c=Me(Ft);let u=Ft;es&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=ic.bind(null,C=>""+C),f=ic.bind(null,WE),h=ic.bind(null,Ei);function d(C,I){let j,q;return Ky(C)?(j=t.getRecordMatcher(C),q=I):q=C,t.addRoute(q,j)}function p(C){const I=t.getRecordMatcher(C);I&&t.removeRoute(I)}function g(){return t.getRoutes().map(C=>C.record)}function _(C){return!!t.getRecordMatcher(C)}function v(C,I){if(I=$e({},I||c.value),typeof C=="string"){const k=oc(r,C,I.path),P=t.resolve({path:k.path},I),z=s.createHref(k.fullPath);return $e(k,P,{params:h(P.params),hash:Ei(k.hash),redirectedFrom:void 0,href:z})}let j;if(C.path!=null)j=$e({},C,{path:oc(r,C.path,I.path).path});
vendor: 5,118 bytes, line 23
23else{const k=$e({},C.params);for(const P in k)k[P]==null&&delete k[P];j=$e({},C,{params:f(k)}),I.params=f(I.params)}const q=t.resolve(j,I),ue=C.hash||"";q.params=l(h(q.params));const be=GE(n,$e({},C,{hash:BE(ue),path:q.path})),S=s.createHref(be);return $e({fullPath:be,hash:ue,query:n===Ph?T1(C.query):C.query||{}},q,{redirectedFrom:void 0,href:S})}function y(C){return typeof C=="string"?oc(r,C,c.value.path):$e({},C)}function m(C,I){if(u!==C)return Ts(8,{from:I,to:C})}function b(C){return x(C)}function w(C){return b($e(y(C),{replace:!0}))}function T(C){const I=C.matched[C.matched.length-1];if(I&&I.redirect){const{redirect:j}=I;let q=typeof j=="function"?j(C):j;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=y(q):{path:q},q.params={}),$e({query:C.query,hash:C.hash,params:q.path!=null?{}:C.params},q)}}function x(C,I){const j=u=v(C),q=c.value,ue=C.state,be=C.force,S=C.replace===!0,k=T(j);if(k)return x($e(y(k),{state:typeof k=="object"?$e({},ue,k.state):ue,force:be,replace:S}),I||j);const P=j;P.redirectedFrom=I;let z;return!be&&JE(n,q,j)&&(z=Ts(16,{to:P,from:q}),E(q,q,!0,!1)),(z?Promise.resolve(z):H(P,q)).catch(F=>hr(F)?hr(F,2)?F:Z(F):O(F,P,q)).then(F=>{if(F){if(hr(F,2))return x($e({replace:S},y(F.to),{state:typeof F.to=="object"?$e({},ue,F.to.state):ue,force:be}),I||P)}else F=D(P,q,!0,S,ue);return J(P,q,F),F})}function M(C,I){const j=m(C,I);return j?Promise.reject(j):Promise.resolve()}function A(C){const I=V.values().next().value;return I&&typeof I.runWithContext=="function"?I.runWithContext(C):C()}function H(C,I){let j;const[q,ue,be]=I1(C,I);j=ac(q.reverse(),"beforeRouteLeave",C,I);for(const k of q)k.leaveGuards.forEach(P=>{j.push(Br(P,C,I))});const S=M.bind(null,C,I);return j.push(S),se(j).then(()=>{j=[];for(const k of i.list())j.push(Br(k,C,I));return j.push(S),se(j)}).then(()=>{j=ac(ue,"beforeRouteUpdate",C,I);for(const k of ue)k.updateGuards.forEach(P=>{j.push(Br(P,C,I))});return j.push(S),se(j)}).then(()=>{j=[];for(const k of be)if(k.beforeEnter)if(Gt(k.beforeEnter))for(const P of k.beforeEnter)j.push(Br(P,C,I));else j.push(Br(k.beforeEnter,C,I));return j.push(S),se(j)}).then(()=>(C.matched.forEach(k=>k.enterCallbacks={}),j=ac(be,"beforeRouteEnter",C,I,A),j.push(S),se(j))).then(()=>{j=[];for(const k of o.list())j.push(Br(k,C,I));return j.push(S),se(j)}).catch(k=>hr(k,8)?k:Promise.reject(k))}function J(C,I,j){a.list().forEach(q=>A(()=>q(C,I,j)))}function D(C,I,j,q,ue){const be=m(C,I);if(be)return be;const S=I===Ft,k=es?history.state:{};j&&(q||S?s.replace(C.fullPath,$e({scroll:S&&k&&k.scroll},ue)):s.push(C.fullPath,ue)),c.value=C,E(C,I,j,S),Z()}let G;function ae(){G||(G=s.listen((C,I,j)=>{if(!oe.listening)return;const q=v(C),ue=T(q);if(ue){x($e(ue,{replace:!0,force:!0}),q).catch(ni);return}u=q;const be=c.value;es&&n1(Eh(be.fullPath,j.delta),$a()),H(q,be).catch(S=>hr(S,12)?S:hr(S,2)?(x($e(y(S.to),{force:!0}),q).then(k=>{hr(k,20)&&!j.delta&&j.type===Ti.pop&&s.go(-1,!1)}).catch(ni),Promise.reject()):(j.delta&&s.go(-j.delta,!1),O(S,q,be))).then(S=>{S=S||D(q,be,!1),S&&(j.delta&&!hr(S,8)?s.go(-j.delta,!1):j.type===Ti.pop&&hr(S,20)&&s.go(-1,!1)),J(q,be,S)}).catch(ni)}))}let X=Bs(),R=Bs(),U;function O(C,I,j){Z(C);const q=R.list();return q.length?q.forEach(ue=>ue(C,I,j)):console.error(C),Promise.reject(C)}function B(){return U&&c.value!==Ft?Promise.resolve():new Promise((C,I)=>{X.add([C,I])})}function Z(C){return U||(U=!C,ae(),X.list().forEach(([I,j])=>C?j(C):I()),X.reset()),C}function E(C,I,j,q){const{scrollBehavior:ue}=e;if(!es||!ue)return Promise.resolve();const be=!j&&s1(Eh(C.fullPath,0))||(q||!j)&&history.state&&history.state.scroll||null;return Ln().then(()=>ue(C,I,be)).then(S=>S&&r1(S)).catch(S=>O(S,C,I))}const $=C=>s.go(C);let re;const V=new Set,oe={currentRoute:c,listening:!0,addRoute:d,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:g,resolve:v,options:e,push:b,replace:w,go:$,back:()=>$(-1),forward:()=>$(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:R.add,isReady:B,install(C){const I=this;C.component("RouterLink",R1),C.component("RouterView",Yy),C.config.globalProperties.$router=I,Object.defineProperty(C.config.globalProperties,"$route",{enumerable:!0,get:()=>ee(c)}),es&&!re&&c.value===Ft&&(re=!0,b(s.location).catch(ue=>{}));const j={};for(const ue in Ft)Object.defineProperty(j,ue,{get:()=>c.value[ue],enumerable:!0});C.provide(Pa,I),C.provide(Su,Er(j)),C.provide(El,c);const q=C.unmount;V.add(C),C.unmount=function(){V.delete(C),V.size<1&&(u=Ft,G&&G(),G=null,c.value=Ft,re=!1,U=!1),q()}}};function se(C){return C.reduce((I,j)=>I.then(()=>A(j)),Promise.resolve())}return oe}function I1(e,t){const r=[],n=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const a=t.matched[o];a&&(e.matched.find(u=>Es(u,a))?n.push(a):r.push(a));const c=e.matched[o];c&&(t.matched.find(u=>Es(u,c))||s.push(c))}return[r,n,s]}function eL(){return nt(Pa)}function j1(e){return nt(Su)}const L1=/(:\w+)\([^)]+\)/g,M1=/(:\w+)[?+*]/g,N1=/:\w+/g,D1=(e,t)=>t.path.replace(L1,"$1").replace(M1,"$1").replace(N1,r=>{var n;return((n=e.params[r.slice(1)])==null?void 0:n.toString())||""}),Tl=(e,t)=>
23{const r=e.route.matched.find(s=>{var i;return((i=s.components)==null?void 0:i.default)===e.Component.type}),n=t??(r==null?void 0:r.meta.key)??(r&&D1(e.route,r));return typeof n=="function"?n(e.route):n},U1=(e,t)=>({default:()=>e?Se(Ob,e===!0?{}:e,t):t});function Eu(e){return Array.isArray(e)?e:[e]}const F1={middleware:["check-subscription"]};const cc=[{name:"index",path:"/",component:()=>Re(()=>import("./JsFHihGc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"styles",path:"/styles",component:()=>Re(()=>import("./JfR1jPlU.js"),[],import.meta.url)},{name:"confirm",path:"/confirm",component:()=>Re(()=>import("./bOHT_6CO.js"),[],import.meta.url)},{name:"slug",path:"/:slug(.*)*",component:()=>Re(()=>import("./BgY87qpm.js"),__vite__mapDeps([9,1,2,3,4,5,6,7]),import.meta.url)},{name:"account-login",path:"/account/login",component:()=>Re(()=>import("./BjxLCbER.js"),__vite__mapDeps([10,11,2,3,12,13,14,15,16]),import.meta.url)},{name:"account-signup",path:"/account/signup",component:()=>Re(()=>import("./vsgaoQDy.js"),__vite__mapDeps([17,11,2,3,12,15,16,18]),import.meta.url)},{name:"account-payment",path:"/account/payment",component:()=>Re(()=>import("./CfvkXhO3.js"),__vite__mapDeps([19,5,2,3,6,20]),import.meta.url)},{name:"account-profile",path:"/account/profile",meta:F1||{},component:()=>Re(()=>import("./D6OBbZ1y.js"),__vite__mapDeps([21,1,2,3,13,14,22,23,24,12,16,18,25,5,20,26]),import.meta.url)},{name:"account-success",path:"/account/success",component:()=>Re(()=>import("./Cmq04q5M.js"),__vite__mapDeps([27,5,2,3]),import.meta.url)},{name:"curators-slug",path:"/curators/:slug()",component:()=>Re(()=>import("./DvDMetKg.js"),__vite__mapDeps([28,1,2,3,22,23,24,4,5,6,7]),import.meta.url)},{name:"projects-slug",path:"/projects/:slug()",component:()=>Re(()=>import("./Dtb_o39w.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,24]),import.meta.url)},{name:"account-update-password",path:"/account/update-password",component:()=>Re(()=>import("./BZyxQeMx.js"),__vite__mapDeps([30,11,2,3,25,16,18]),import.meta.url)},{name:"account-request-password",path:"/account/request-password",component:()=>Re(()=>import("./TknP5OTa.js"),__vite__mapDeps([31,11,2,3,16,18]),import.meta.url)}],Qy=(e,t)=>({default:()=>{var r;return e?Se(fu,e===!0?{}:e,t):(r=t.default)==null?void 0:r.call(t)}}),H1=/(:\w+)\([^)]+\)/g,B1=/(:\w+)[?+*]/g,q1=/:\w+/g;function Dh(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(H1,"$1").replace(B1,"$1").replace(q1,r=>{var n;return((n=e.params[r.slice(1)])==null?void 0:n.toString())||""});return typeof t=="function"?t(e):t}function z1(e,t){return e===t||t===Ft?!1:Dh(e)!==Dh(t)?!0:!e.matched.every((n,s)=>{var i,o;return n.components&&n.components.default===((o=(i=t.matched[s])==null?void 0:i.components)==null?void 0:o.default)})}const W1={scrollBehavior(e,t,r){var u;const n=Ae(),s=((u=it().options)==null?void 0:u.scrollBehaviorType)??"auto";let i=r||void 0;const o=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!i&&t&&e&&o!==!1&&z1(e,t)&&(i={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Xy(e.hash),behavior:s}:!1;const a=l=>!!(l.meta.pageTransition??pl),c=a(t)&&a(e)?"page:transition:finish":"page:loading:end";return new Promise(l=>{n.hooks.hookOnce(c,()=>{requestAnimationFrame(()=>l(K1(e,"instant",i)))})})}};function Xy(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function K1(e,t,r){return r||(e.hash?{el:e.hash,top:Xy(e.hash),behavior:t}:{left:0,top:0,behavior:t})}const V1={hashMode:!1,scrollBehaviorType:"auto"},$t={...V1,...W1},G1=async e=>{var c;let t,r;if(!((c=e.meta)!=null&&c.validate))return;const n=Ae(),s=it(),i=([t,r]=Rn(()=>Promise.resolve(e.meta.validate(e))),t=await t,r(),t);if(i===!0)return;const o=Gi({statusCode:i&&i.statusCode||404,statusMessage:i&&i.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=s.beforeResolve(u=>{if(a(),u===e){const l=s.afterEach(async()=>
23{l(),await n.runWithContext(()=>Fr(o)),window==null||window.history.pushState({},"",e.fullPath)});return!1}})},J1=async e=>{let t,r;const n=([t,r]=Rn(()=>_u({path:e.path})),t=await t,r(),t);if(n.redirect)return Yt(n.redirect,{acceptRelative:!0})?(window.location.href=n.redirect,!1):n.redirect},Y1=[G1,J1],ii={"check-subscription":()=>Re(()=>import("./B9fJ50v7.js"),[],import.meta.url)};function Q1(e,t,r){const{pathname:n,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){const u=i.includes(e.slice(o))?e.slice(o).length:1;let l=i.slice(u);return l[0]!=="/"&&(l="/"+l),rh(l,"")}const a=rh(n,e),c=!r||$0(a,r,{trailingSlash:!0})?a:r;return c+(c.includes("?")?"":s)+i}const X1=Je({name:"nuxt:router",enforce:"pre",async setup(e){var _;let t,r,n=yt().app.baseURL;const s=((_=$t.history)==null?void 0:_.call($t,n))??c1(n),i=$t.routes?([t,r]=Rn(()=>$t.routes(cc)),t=await t,r(),t??cc):cc;let o;const a=P1({...$t,scrollBehavior:(v,y,m)=>{if(y===Ft){o=m;return}if($t.scrollBehavior){if(a.options.scrollBehavior=$t.scrollBehavior,"scrollRestoration"in window.history){const b=a.beforeEach(()=>{b(),window.history.scrollRestoration="manual"})}return $t.scrollBehavior(v,Ft,o||m)}},history:s,routes:i});$t.routes&&$t.routes,"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const c=Me(a.currentRoute.value);a.afterEach((v,y)=>{c.value=y}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const u=Q1(n,window.location,e.payload.path),l=Me(a.currentRoute.value),f=()=>{l.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((v,y)=>{var m,b,w,T;((b=(m=v.matched[0])==null?void 0:m.components)==null?void 0:b.default)===((T=(w=y.matched[0])==null?void 0:w.components)==null?void 0:T.default)&&f()});const h={};for(const v in l.value)Object.defineProperty(h,v,{get:()=>l.value[v],enumerable:!0});e._route=Er(h),e._middleware||(e._middleware={global:[],named:{}});const d=Nn();a.afterEach(async(v,y,m)=>{delete e._processingMiddleware,!e.isHydrating&&d.value&&await e.runWithContext(Ey),m&&await e.callHook("page:loading:end")});try{[t,r]=Rn(()=>a.isReady()),await t,r()}catch(v){[t,r]=Rn(()=>e.runWithContext(()=>Fr(v))),await t,r()}const p=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value;f();const g=e.payload.state._layout;return a.beforeEach(async(v,y)=>{var m;await e.callHook("page:loading:start"),v.meta=gt(v.meta),e.isHydrating&&g&&!nn(v.meta.layout)&&(v.meta.layout=g),e._processingMiddleware=!0;{const b=new Set([...Y1,...e._middleware.global]);for(const w of v.matched){const T=w.meta.middleware;if(T)for(const x of Eu(T))b.add(x)}{const w=await e.runWithContext(()=>_u({path:v.path}));if(w.appMiddleware)for(const T in w.appMiddleware)w.appMiddleware[T]?b.add(T):b.delete(T)}for(const w of b){const T=typeof w=="string"?e._middleware.named[w]||await((m=ii[w])==null?void 0:m.call(ii).then(x=>x.default||x)):w;if(!T)throw new Error(`Unknown route middleware: '${w}'.`);try{const x=await e.runWithContext(()=>T(v,y));if(!e.payload.serverRendered&&e.isHydrating&&(x===!1||x instanceof Error)){const M=x||Mo({statusCode:404,statusMessage:`Page Not Found: ${u}`});return await e.runWithContext(()=>Fr(M)),!1}if(x===!0)continue;if(x===!1)return x;if(x)return Ty(x)&&x.fatal&&await e.runWithContext(()=>Fr(x)),x}catch(x){const M=Mo(x);return M.fatal&&await e.runWithContext(()=>Fr(M)),M}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(async(v,y)=>{v.matched.length===0&&await e.runWithContext(()=>Fr(Mo({statusCode:404,fatal:!1,statusMessage:`Page not found: ${v.fullPath}`,data:{path:v.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in p&&(p.name=void 0),await a.replace({...p,force:!0}),a.options.scrollBehavior=$t.scrollBehavior}catch(v){await e.runWithContext(()=>Fr(v))}}),{provide:{router:a}}}});function Uh(e){return typeof e=="string"?`'${e}'`:new Z1().serialize(e)}const Z1=function(){var t;class e{constructor(){ke(this,t,new Map)}compare(n,s){const i=typeof n,o=typeof s;return i==="string"&&o==="string"?n.localeCompare(s):i==="number"&&o==="number"?n-s:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(s,!0))}
23serialize(n,s){if(n===null)return"null";switch(typeof n){case"string":return s?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const s=Object.prototype.toString.call(n);if(s!=="[object Object]")return this.serializeBuiltInType(s.length<10?`unknown:${s}`:s.slice(8,-1),n);const i=n.constructor,o=i===Object||i===void 0?"":i.name;if(o!==""&&globalThis[o]===i)return this.serializeBuiltInType(o,n);if(typeof n.toJSON=="function"){const a=n.toJSON();return o+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}return this.serializeObjectEntries(o,Object.entries(n))}serializeBuiltInType(n,s){const i=this["$"+n];if(i)return i.call(this,s);if(typeof(s==null?void 0:s.entries)=="function")return this.serializeObjectEntries(n,s.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,s){const i=Array.from(s).sort((a,c)=>this.compare(a[0],c[0]));let o=`${n}{`;for(let a=0;a<i.length;a++){const[c,u]=i[a];o+=`${this.serialize(c,!0)}:${this.serialize(u)}`,a<i.length-1&&(o+=",")}return o+"}"}$object(n){let s=L(this,t).get(n);return s===void 0&&(L(this,t).set(n,`#${L(this,t).size}`),s=this.serializeObject(n),L(this,t).set(n,s)),s}$function(n){const s=Function.prototype.toString.call(n);return s.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${s.replace(/\s*\n\s*/g,"")}`}$Array(n){let s="[";for(let i=0;i<n.length;i++)s+=this.serialize(n[i]),i<n.length-1&&(s+=",");return s+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((s,i)=>this.compare(s,i)))}`}
23$Map(n){return this.serializeObjectEntries("Map",n.entries())}}t=new WeakMap;for(const r of["Error","RegExp","URL"])e.prototype["$"+r]=function(n){return`${r}(${n})`};for(const r of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+r]=function(n){return`${r}[${n.join(",")}]`};for(const r of["BigInt64Array","BigUint64Array"])e.prototype["$"+r]=function(n){return`${r}[${n.join("n,")}${n.length>0?"n":""}]`};return e}();function eT(e,t){return e===t||Uh(e)===Uh(t)}const kl=globalThis.requestIdleCallback||(e=>{const t=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(r)},1)}),tT=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Ji=e=>{const t=Ae();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{kl(()=>e())}):kl(()=>e())},rT=e=>e==="defer"||e===!1;function Fh(...e){var g;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[r,n,s={}]=e;if(typeof r!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof n!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const i=Ae(),o=n,a=()=>ss.value,c=()=>i.isHydrating?i.payload.data[r]:i.static.data[r];s.server??(s.server=!0),s.default??(s.default=a),s.getCachedData??(s.getCachedData=c),s.lazy??(s.lazy=!1),s.immediate??(s.immediate=!0),s.deep??(s.deep=ss.deep),s.dedupe??(s.dedupe="cancel");const u=s.getCachedData(r,i),l=u!=null;if(!i._asyncData[r]||!s.immediate){(g=i.payload._errors)[r]??(g[r]=ss.errorValue);const _=s.deep?ye:Me;i._asyncData[r]={data:_(l?u:s.default()),pending:ye(!l),error:nu(i.payload._errors,r),status:ye("idle"),_default:s.default}}const f={...i._asyncData[r]};delete f._default,f.refresh=f.execute=(_={})=>{if(i._asyncDataPromises[r]){if(rT(_.dedupe??s.dedupe))return i._asyncDataPromises[r];i._asyncDataPromises[r].cancelled=!0}if(_._initial||i.isHydrating&&_._initial!==!1){const y=_._initial?u:s.getCachedData(r,i);if(y!=null)return Promise.resolve(y)}f.pending.value=!0,f.status.value="pending";const v=new Promise((y,m)=>{try{y(o(i))}catch(b){m(b)}}).then(async y=>{if(v.cancelled)return i._asyncDataPromises[r];let m=y;s.transform&&(m=await s.transform(y)),s.pick&&(m=sT(m,s.pick)),i.payload.data[r]=m,f.data.value=m,f.error.value=ss.errorValue,f.status.value="success"}).catch(y=>{if(v.cancelled)return i._asyncDataPromises[r];f.error.value=Gi(y),f.data.value=ee(s.default()),f.status.value="error"}).finally(()=>{v.cancelled||(f.pending.value=!1,delete i._asyncDataPromises[r])});return i._asyncDataPromises[r]=v,i._asyncDataPromises[r]},f.clear=()=>nT(i,r);const h=()=>f.refresh({_initial:!0}),d=s.server!==!1&&i.payload.serverRendered;{const _=Mt();if(_&&d&&s.immediate&&!_.sp&&(_.sp=[]),_&&!_._nuxtOnBeforeMountCbs){_._nuxtOnBeforeMountCbs=[];const m=_._nuxtOnBeforeMountCbs;bg(()=>{m.forEach(b=>{b()}),m.splice(0,m.length)}),Sa(()=>m.splice(0,m.length))}d&&i.isHydrating&&(f.error.value||u!=null)?(f.pending.value=!1,f.status.value=f.error.value?"error":"success"):_&&(i.payload.serverRendered&&i.isHydrating||s.lazy)&&s.immediate?_._nuxtOnBeforeMountCbs.push(h):s.immediate&&h();const v=Rs();if(s.watch){const m=Ve(s.watch,()=>f.refresh());v&&Lt(m)}const y=i.hook("app:data:refresh",async m=>{(!m||m.includes(r))&&await f.refresh()});v&&Lt(y)}const p=Promise.resolve(i._asyncDataPromises[r]).then(()=>f);return Object.assign(p,f),p}function nT(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=ss.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=ee(e._asyncData[t]._default()),e._asyncData[t].error.value=ss.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function sT(e,t){const r={};for(const n of t)r[n]=e[n];return r}const iT="$s";function lt(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[r,n]=e;if(!r||typeof r!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+r);if(n!==void 0&&typeof n!="function")throw new Error("[nuxt] [useState] init must be a function: "+n);const s=iT+r,i=Ae(),o=nu(i.payload.state,s);if(o.value===void 0&&n){const a=n();if(ze(a))return i.payload.state[s]=a,a;o.value=a}return o}function oT(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const r={},n=t||{},s=n.decode||aT;let i=0;for(;i<e.length;){const o=e.indexOf("=",i);if(o===-1)break;let a=e.indexOf(";",i);if(a===-1)a=e.length;else if(a<o){i=e.lastIndexOf(";",o-1)+1;continue}const c=e.slice(i,o).trim();if(n!=null&&n.filter&&!(n!=null&&n.filter(c))){i=a+1;continue}if(r[c]===void 0){let u=e.slice(o+1,a).trim();u.codePointAt(0)===34&&(u=u.slice(1,-1)),r[c]=cT(u,s)}i=a+1}return r}
23function aT(e){return e.includes("%")?decodeURIComponent(e):e}function cT(e,t){try{return t(e)}catch{return e}}const _o=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function Hh(e,t,r){const n=r||{},s=n.encode||encodeURIComponent;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!_o.test(e))throw new TypeError("argument name is invalid");const i=s(t);if(i&&!_o.test(i))throw new TypeError("argument val is invalid");let o=e+"="+i;if(n.maxAge!==void 0&&n.maxAge!==null){const a=n.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(n.domain){if(!_o.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain="+n.domain}if(n.path){if(!_o.test(n.path))throw new TypeError("option path is invalid");o+="; Path="+n.path}if(n.expires){if(!lT(n.expires)||Number.isNaN(n.expires.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():n.priority){case"low":{o+="; Priority=Low";break}case"medium":{o+="; Priority=Medium";break}case"high":{o+="; Priority=High";break}
23default:throw new TypeError("option priority is invalid")}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:{o+="; SameSite=Strict";break}case"lax":{o+="; SameSite=Lax";break}case"strict":{o+="; SameSite=Strict";break}case"none":{o+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(o+="; Partitioned"),o}function lT(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function Ht(e){if(typeof e!="object")return e;var t,r,n=Object.prototype.toString.call(e);if(n==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){r=new e.constructor;for(t in e)e.hasOwnProperty(t)&&r[t]!==e[t]&&(r[t]=Ht(e[t]))}else{r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Ht(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=Ht(e[t])}return r}if(n==="[object Array]"){for(t=e.length,r=Array(t);t--;)r[t]=Ht(e[t]);return r}return n==="[object Set]"?(r=new Set,e.forEach(function(s){r.add(Ht(s))}),r):n==="[object Map]"?(r=new Map,e.forEach(function(s,i){r.set(Ht(i),Ht(s))}),r):n==="[object Date]"?new Date(+e):n==="[object RegExp]"?(r=new RegExp(e.source,e.flags),r.lastIndex=e.lastIndex,r):n==="[object DataView]"?new e.constructor(Ht(e.buffer)):n==="[object ArrayBuffer]"?e.slice(0):n.slice(-6)==="Array]"?new e.constructor(e):e}const uT={path:"/",watch:!0,decode:e=>wi(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},bo=window.cookieStore;function Tu(e,t){var u;const r={...uT,...t};r.filter??(r.filter=l=>l===e);const n=Bh(r)||{};let s;r.maxAge!==void 0?s=r.maxAge*1e3:r.expires&&(s=r.expires.getTime()-Date.now());const i=s!==void 0&&s<=0,o=i||n[e]===void 0||n[e]===null,a=Ht(i?void 0:n[e]??((u=r.default)==null?void 0:u.call(r))),c=s&&!i?dT(a,s,r.watch&&r.watch!=="shallow"):ye(a);{let l=null;try{!bo&&typeof BroadcastChannel<"u"&&(l=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const f=(g=!1)=>{!g&&(r.readonly||eT(c.value,n[e]))||(hT(e,c.value,r),n[e]=Ht(c.value),l==null||l.postMessage({value:r.encode(c.value)}))},h=g=>{var v;const _=g.refresh?(v=Bh(r))==null?void 0:v[e]:r.decode(g.value);d=!0,c.value=_,n[e]=Ht(_),Ln(()=>{d=!1})};let d=!1;const p=!!Rs();if(p&&Lt(()=>{d=!0,f(),l==null||l.close()}),bo){const g=_=>{const v=_.changed.find(m=>m.name===e),y=_.deleted.find(m=>m.name===e);v&&h({value:v.value}),y&&h({value:null})};bo.addEventListener("change",g),p&&Lt(()=>bo.removeEventListener("change",g))}else l&&(l.onmessage=({data:g})=>h(g));r.watch&&Ve(c,()=>{d||f()},{deep:r.watch!=="shallow"}),o&&f(o)}return c}function Bh(e={}){return oT(document.cookie,e)}function fT(e,t,r={}){return t==null?Hh(e,t,{...r,maxAge:-1}):Hh(e,t,r)}function hT(e,t,r={}){document.cookie=fT(e,t,r)}const qh=2147483647;function dT(e,t,r){let n,s,i=0;const o=r?ye(e):{value:e};return Rs()&&Lt(()=>{s==null||s(),clearTimeout(n)}),ub((a,c)=>{r&&(s=Ve(o,c));function u(){i=0,clearTimeout(n);const l=t-i,f=l<qh?l:qh;n=setTimeout(()=>{if(i+=f,i<t)return u();o.value=void 0,c()},f)}return{get(){return a(),o.value},set(l){u(),o.value=l,c()}}})}async function Zy(e,t=it()){const{path:r,matched:n}=t.resolve(e);if(!n.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(r)))return;const s=t._preloadPromises||(t._preloadPromises=[]);if(s.length>4)return Promise.all(s).then(()=>Zy(e,t));t._routePreloaded.add(r);const i=n.map(o=>{var a;return(a=o.components)==null?void 0:a.default}).filter(o=>typeof o=="function");for(const o of i){const a=Promise.resolve(o()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}function em(e={}){const t=e.path||window.location.pathname;let r={};try{r=wi(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(r==null?void 0:r.path)!==t||(r==null?void 0:r.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Ae().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const pT=(...e)=>e.find(t=>t!==void 0);function gT(e){const t=e.componentName||"NuxtLink";function r(i){return typeof i=="string"&&i.startsWith("#")}function n(i,o){if(!i||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return i;if(typeof i=="string")return zh(i,e.trailingSlash);const a="path"in i&&i.path!==void 0?i.path:o(i).path;return{...i,name:void 0,path:zh(a,e.trailingSlash)}}function s(i){const o=it(),a=yt(),c=we(()=>!!i.target&&i.target!=="_self"),u=we(()=>{const _=i.to||i.href||"";return typeof _=="string"&&Yt(_,{acceptRelative:!0})}),l=Cf("RouterLink"),f=typeof l!="string"?l.useLink:void 0,h=we(()=>{if(i.external)return!0;const _=i.to||i.href||"";
23return typeof _=="object"?!1:_===""||u.value}),d=we(()=>{const _=i.to||i.href||"";return h.value?_:n(_,o.resolve)}),p=h.value||f==null?void 0:f({...i,to:d}),g=we(()=>{var _;if(!d.value||u.value||r(d.value))return d.value;if(h.value){const v=typeof d.value=="object"&&"path"in d.value?vl(d.value):d.value,y=typeof v=="object"?o.resolve(v).href:v;return n(y,o.resolve)}return typeof d.value=="object"?((_=o.resolve(d.value))==null?void 0:_.href)??null:n(Ca(a.app.baseURL,d.value),o.resolve)});return{to:d,hasTarget:c,isAbsoluteUrl:u,isExternal:h,href:g,isActive:(p==null?void 0:p.isActive)??we(()=>d.value===o.currentRoute.value.path),isExactActive:(p==null?void 0:p.isExactActive)??we(()=>d.value===o.currentRoute.value.path),route:(p==null?void 0:p.route)??we(()=>o.resolve(d.value)),async navigate(_){await wy(g.value,{replace:i.replace,external:h.value||c.value})}}}return ct({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:s,setup(i,{slots:o}){const a=it(),{to:c,href:u,navigate:l,isExternal:f,hasTarget:h,isAbsoluteUrl:d}=s(i),p=ye(!1),g=ye(null),_=m=>{var b;g.value=i.custom?(b=m==null?void 0:m.$el)==null?void 0:b.nextElementSibling:m==null?void 0:m.$el};function v(m){var b,w;return!p.value&&(typeof i.prefetchOn=="string"?i.prefetchOn===m:((b=i.prefetchOn)==null?void 0:b[m])??((w=e.prefetchOn)==null?void 0:w[m]))&&(i.prefetch??e.prefetch)!==!1&&i.noPrefetch!==!0&&i.target!=="_blank"&&!vT()}async function y(m=Ae()){if(p.value)return;p.value=!0;const b=typeof c.value=="string"?c.value:f.value?vl(c.value):a.resolve(c.value).fullPath,w=f.value?new URL(b,window.location.href).href:b;await Promise.all([m.hooks.callHook("link:prefetch",w).catch(()=>{}),!f.value&&!h.value&&Zy(c.value,a).catch(()=>{})])}if(v("visibility")){const m=Ae();let b,w=null;Tt(()=>{const T=yT();Ji(()=>{b=kl(()=>{var x;(x=g==null?void 0:g.value)!=null&&x.tagName&&(w=T.observe(g.value,async()=>{w==null||w(),w=null,await y(m)}))})})}),Os(()=>{b&&tT(b),w==null||w(),w=null})}return()=>{var w;if(!f.value&&!h.value&&!r(c.value)){const T={ref:_,to:c.value,activeClass:i.activeClass||e.activeClass,exactActiveClass:i.exactActiveClass||e.exactActiveClass,replace:i.replace,ariaCurrentValue:i.ariaCurrentValue,custom:i.custom};
23return i.custom||(v("interaction")&&(T.onPointerenter=y.bind(null,void 0),T.onFocus=y.bind(null,void 0)),p.value&&(T.class=i.prefetchedClass||e.prefetchedClass),T.rel=i.rel||void 0),Se(Cf("RouterLink"),T,o.default)}const m=i.target||null,b=pT(i.noRel?"":i.rel,e.externalRelAttribute,d.value||h.value?"noopener noreferrer":"")||null;return i.custom?o.default?o.default({href:u.value,navigate:l,prefetch:y,get route(){if(!u.value)return;const T=new URL(u.value,window.location.href);return{path:T.pathname,fullPath:T.pathname,get query(){return du(T.search)},hash:T.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:b,target:m,isExternal:f.value||h.value,isActive:!1,isExactActive:!1}):null:Se("a",{ref:g,href:u.value||null,rel:b,target:m},(w=o.default)==null?void 0:w.call(o))}}})}const Yi=gT(lS);function zh(e,t){const r=t==="append"?Ss:Mn;return Yt(e)&&!e.startsWith("http")?e:r(e,!0)}function yT(){const e=Ae();if(e._observer)return e._observer;let t=null;const r=new Map,n=(i,o)=>(t||(t=new IntersectionObserver(a=>{for(const c of a){const u=r.get(c.target);(c.isIntersecting||c.intersectionRatio>0)&&u&&u()}})),r.set(i,o),t.observe(i),()=>{r.delete(i),t==null||t.unobserve(i),r.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:n}}const mT=/2g/;function vT(){const e=navigator.connection;return!!(e&&(e.saveData||mT.test(e.effectiveType)))}function _T(e){typeof e.indexable<"u"&&(e.indexable=String(e.indexable)!=="false"),typeof e.trailingSlash<"u"&&!e.trailingSlash&&(e.trailingSlash=String(e.trailingSlash)!=="false"),e.url&&!Yt(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=A0(String(e.url)));const t=Object.keys(e).sort((n,s)=>n.localeCompare(s)),r={};for(const n of t)r[n]=e[n];return r}function bT(e){const r=[];function n(i){if(!i||typeof i!="object"||Object.keys(i).length===0)return()=>{};i._context;const o={};for(const c in i){const u=i[c];typeof u<"u"&&u!==""&&(o[c]=u)}let a;return Object.keys(o).filter(c=>!c.startsWith("_")).length>0&&(a=r.push(o)),()=>{typeof a<"u"&&r.splice(a-1,1)}}function s(i){var a;const o={};i!=null&&i.debug&&(o._context={}),o._priority={};for(const c in r.sort((u,l)=>(u._priority||0)-(l._priority||0)))for(const u in r[c]){const l=u,f=i!=null&&i.resolveRefs?je(r[c][u]):r[c][u];!u.startsWith("_")&&typeof f<"u"&&f!==""&&(o[u]=f,typeof r[c]._priority<"u"&&r[c]._priority!==-1&&(o._priority[l]=r[c]._priority),i!=null&&i.debug&&(o._context[l]=((a=r[c]._context)==null?void 0:a[l])||r[c]._context||"anonymous"))}return i!=null&&i.skipNormalize?o:_T(o)}return{stack:r,push:n,get:s}}const wT=Je({name:"nuxt-site-config:init",enforce:"pre",async setup(e){var n;const t=bT(),r=lt("site-config");{const s=r.value||window.__NUXT_SITE_CONFIG__||{};for(const i in s)i[0]!=="_"&&t.push({[i]:s[i],_priority:((n=s._priority)==null?void 0:n[i])||-1})}return{provide:{nuxtSiteConfig:t}}}}),ST=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>Re(async()=>{const{default:n}=await Promise.resolve().then(()=>Is);return{default:n}},void 0,import.meta.url).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)};class ku extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class ET extends ku{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class TT extends ku{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class kT extends ku{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var xl;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(xl||(xl={}));var xT=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(l){try{u(n.next(l))}catch(f){o(f)}}function c(l){try{u(n.throw(l))}catch(f){o(f)}}function u(l){l.done?i(l.value):s(l.value).then(a,c)}u((n=n.apply(e,t||[])).next())})};class CT{constructor(t,{headers:r={},customFetch:n,region:s=xl.Any}={}){this.url=t,this.headers=r,this.region=s,this.fetch=ST(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,r={}){var n;return xT(this,void 0,void 0,function*(){try{const{headers:s,method:i,body:o}=r;let a={},{region:c}=r;c||(c=this.region),c&&c!=="any"&&(a["x-region"]=c);let u;o&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",u=o):typeof o=="str
23ing"?(a["Content-Type"]="text/plain",u=o):typeof FormData<"u"&&o instanceof FormData?u=o:(a["Content-Type"]="application/json",u=JSON.stringify(o)));const l=yield this.fetch(`${this.url}/${t}`,{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:u}).catch(p=>{throw new ET(p)}),f=l.headers.get("x-relay-error");if(f&&f==="true")throw new TT(l);if(!l.ok)throw new kT(l);let h=((n=l.headers.get("Content-Type"))!==null&&n!==void 0?n:"text/plain").split(";")[0].trim(),d;return h==="application/json"?d=yield l.json():h==="application/octet-stream"?d=yield l.blob():h==="text/event-stream"?d=l:h==="multipart/form-data"?d=yield l.formData():d=yield l.text(),{data:d,error:null}}catch(s){return{data:null,error:s}}})}}var tL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function RT(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var et={},qn={},zn={},Wn={},Kn={},Vn={},AT=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},ks=AT();const OT=ks.fetch,rm=ks.fetch.bind(ks),nm=ks.Headers,$T=ks.Request,PT=ks.Response,Is=Object.freeze(Object.defineProperty({__proto__:null,Headers:nm,Request:$T,Response:PT,default:rm,fetch:OT},Symbol.toStringTag,{value:"Module"})),IT=RT(Is);var wo={},Wh;
23function sm(){if(Wh)return wo;Wh=1,Object.defineProperty(wo,"__esModule",{value:!0});class e extends Error{constructor(r){super(r.message),this.name="PostgrestError",this.details=r.details,this.hint=r.hint,this.code=r.code}}return wo.default=e,wo}var Kh;function im(){if(Kh)return Vn;Kh=1;var e=Vn&&Vn.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Vn,"__esModule",{value:!0});const t=e(IT),r=e(sm());class n{constructor(i){this.shouldThrowOnError=!1,this.method=i.method,this.url=i.url,this.headers=i.headers,this.schema=i.schema,this.body=i.body,this.shouldThrowOnError=i.shouldThrowOnError,this.signal=i.signal,this.isMaybeSingle=i.isMaybeSingle,i.fetch?this.fetch=i.fetch:typeof fetch>"u"?this.fetch=t.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(i,o){return this.headers=Object.assign({},this.headers),this.headers[i]=o,this}then(i,o){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const a=this.fetch;let c=a(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async u=>{var l,f,h;let d=null,p=null,g=null,_=u.status,v=u.statusText;if(u.ok){if(this.method!=="HEAD"){const w=await u.text();w===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?p=w:p=JSON.parse(w))}const m=(l=this.headers.Prefer)===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),b=(f=u.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");m&&b&&b.length>1&&(g=parseInt(b[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(p)&&(p.length>1?(d={code:"PGRST116",details:`Results contain ${p.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},p=null,g=null,_=406,v="Not Acceptable"):p.length===1?p=p[0]:p=null)}else{const m=await u.text();try{d=JSON.parse(m),Array.isArray(d)&&u.status===404&&(p=[],d=null,_=200,v="OK")}catch{u.status===404&&m===""?(_=204,v="No Content"):d={message:m}}if(d&&this.isMaybeSingle&&(!((h=d==null?void 0:d.details)===null||h===void 0)&&h.includes("0 rows"))&&(d=null,_=200,v="OK"),d&&this.shouldThrowOnError)throw new r.default(d)}return{error:d,data:p,count:g,status:_,statusText:v}});return this.shouldThrowOnError||(c=c.catch(u=>{var l,f,h;return{error:{message:`${(l=u==null?void 0:u.name)!==null&&l!==void 0?l:"FetchError"}: ${u==null?void 0:u.message}`,details:`${(f=u==null?void 0:u.stack)!==null&&f!==void 0?f:""}`,hint:"",code:`${(h=u==null?void 0:u.code)!==null&&h!==void 0?h:""}`},data:null,count:null,status:0,statusText:""}})),c.then(i,o)}returns(){return this}overrideTypes(){return this}}return Vn.default=n,Vn}var Vh;function om(){if(Vh)return Kn;Vh=1;var e=Kn&&Kn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Kn,"__esModule",{value:!0});const t=e(im());class r extends t.default{select(s){let i=!1;const o=(s??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(s,{ascending:i=!0,nullsFirst:o,foreignTable:a,referencedTable:c=a}={}){const u=c?`${c}.order`:"order",l=this.url.searchParams.get(u);return this.url.searchParams.set(u,`${l?`${l},`:""}${s}.${i?"asc":"desc"}${o===void 0?"":o?".nullsfirst":".nullslast"}`),this}limit(s,{foreignTable:i,referencedTable:o=i}={}){const a=typeof o>"u"?"limit":`${o}.limit`;return this.url.searchParams.set(a,`${s}`),this}range(s,i,{foreignTable:o,referencedTable:a=o}={}){const c=typeof a>"u"?"offset":`${a}.offset`,u=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(c,`${s}`),this.url.searchParams.set(u,`${i-s+1}`),this}abortSignal(s){return this.signal=s,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}
23explain({analyze:s=!1,verbose:i=!1,settings:o=!1,buffers:a=!1,wal:c=!1,format:u="text"}={}){var l;const f=[s?"analyze":null,i?"verbose":null,o?"settings":null,a?"buffers":null,c?"wal":null].filter(Boolean).join("|"),h=(l=this.headers.Accept)!==null&&l!==void 0?l:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${u}; for="${h}"; options=${f};`,u==="json"?this:this}rollback(){var s;return((s=this.headers.Prefer)!==null&&s!==void 0?s:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}}return Kn.default=r,Kn}var Gh;function xu(){if(Gh)return Wn;Gh=1;var e=Wn&&Wn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Wn,"__esModule",{value:!0});const t=e(om());class r extends t.default{eq(s,i){return this.url.searchParams.append(s,`eq.${i}`),this}neq(s,i){return this.url.searchParams.append(s,`neq.${i}`),this}gt(s,i){return this.url.searchParams.append(s,`gt.${i}`),this}gte(s,i){return this.url.searchParams.append(s,`gte.${i}`),this}lt(s,i){return this.url.searchParams.append(s,`lt.${i}`),this}lte(s,i){return this.url.searchParams.append(s,`lte.${i}`),this}like(s,i){return this.url.searchParams.append(s,`like.${i}`),this}likeAllOf(s,i){return this.url.searchParams.append(s,`like(all).{${i.join(",")}}`),this}likeAnyOf(s,i){return this.url.searchParams.append(s,`like(any).{${i.join(",")}}`),this}ilike(s,i){return this.url.searchParams.append(s,`ilike.${i}`),this}ilikeAllOf(s,i){return this.url.searchParams.append(s,`ilike(all).{${i.join(",")}}`),this}ilikeAnyOf(s,i){return this.url.searchParams.append(s,`ilike(any).{${i.join(",")}}`),this}is(s,i){return this.url.searchParams.append(s,`is.${i}`),this}in(s,i){const o=Array.from(new Set(i)).map(a=>typeof a=="string"&&new RegExp("[,()]").test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(s,`in.(${o})`),this}contains(s,i){return typeof i=="string"?this.url.searchParams.append(s,`cs.${i}`):Array.isArray(i)?this.url.searchParams.append(s,`cs.{${i.join(",")}}`):this.url.searchParams.append(s,`cs.${JSON.stringify(i)}`),this}containedBy(s,i){return typeof i=="string"?this.url.searchParams.append(s,`cd.${i}`):Array.isArray(i)?this.url.searchParams.append(s,`cd.{${i.join(",")}}`):this.url.searchParams.append(s,`cd.${JSON.stringify(i)}`),this}rangeGt(s,i){return this.url.searchParams.append(s,`sr.${i}`),this}rangeGte(s,i){return this.url.searchParams.append(s,`nxl.${i}`),this}rangeLt(s,i){return this.url.searchParams.append(s,`sl.${i}`),this}rangeLte(s,i){return this.url.searchParams.append(s,`nxr.${i}`),this}rangeAdjacent(s,i){return this.url.searchParams.append(s,`adj.${i}`),this}overlaps(s,i){return typeof i=="string"?this.url.searchParams.append(s,`ov.${i}`):this.url.searchParams.append(s,`ov.{${i.join(",")}}`),this}textSearch(s,i,{config:o,type:a}={}){let c="";a==="plain"?c="pl":a==="phrase"?c="ph":a==="websearch"&&(c="w");const u=o===void 0?"":`(${o})`;return this.url.searchParams.append(s,`${c}fts${u}.${i}`),this}match(s){return Object.entries(s).forEach(([i,o])=>{this.url.searchParams.append(i,`eq.${o}`)}),this}not(s,i,o){return this.url.searchParams.append(s,`not.${i}.${o}`),this}or(s,{foreignTable:i,referencedTable:o=i}={}){const a=o?`${o}.or`:"or";return this.url.searchParams.append(a,`(${s})`),this}filter(s,i,o){return this.url.searchParams.append(s,`${i}.${o}`),this}}return Wn.default=r,Wn}var Jh;function am(){if(Jh)return zn;Jh=1;var e=zn&&zn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(zn,"__esModule",{value:!0});const t=e(xu());class r{constructor(s,{headers:i={},schema:o,fetch:a}){this.url=s,this.headers=i,this.schema=o,this.fetch=a}select(s,{head:i=!1,count:o}={}){const a=i?"HEAD":"GET";let c=!1;const u=(s??"*").split("").map(l=>/\s/.test(l)&&!c?"":(l==='"'&&(c=!c),l)).join("");return this.url.searchParams.set("select",u),o&&(this.headers.Prefer=`count=${o}`),new t.default({method:a,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(s,{count:i,defaultToNull:o=!0}={}){const a="POST",c=[];if(this.headers.Prefer&&c.push(this.headers.Prefer),i&&c.push(`count=${i}`),o||c.push("missing=default"),this.headers.Prefer=c.join(","),Array.isArray(s)){const u=s.reduce((l,f)=>l.concat(Object.keys(f)),[]);if(u.length>0){const l=[...new Set(u)].map(f=>`"${f}"`);this.url.searchParams.set("columns",l.join(","))}}return new t.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:this.fetch,allowEmpty:!1})}upsert(s,{onConflict:i,ignoreDuplicates:o=!1,count:a,defaultToNull:c=!0}={}){const u="POST",l=[`resolution=${o?"ignore":"merge"}-duplicates`];if(i!==void 0&&this.url.searchParams.set("on_conflict",i),this.headers.Prefer&&l.push(this.headers.Prefer),a&&l.push(`count=${a}`),c||l.push("missing=default"),this.headers.Prefer=l.join(","),Array.isArray(s)){const f=s.reduce((h,d)=>h.concat(Object.keys(d)),[]);if(f.length>0){const h=[...new Set(f)].map(d=>`"${d}"`);this.url.searchParams.set("columns",h.join(","))}}return new t.default({method:u,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:this.fetch,allowEmpty:!1})}update(s,{count:i}={}){const o="PATCH",a=[];return this.headers.Prefer&&a.push(this.headers.Prefer),i&&a.push(`count=${i}`),this.headers.Prefer=a.join(","),new t.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:this.fetch,allowEmpty:!1})}delete({count:s}={}){const i="DELETE",o=[];return s&&o.push(`count=${s}`),this.headers.Prefer&&o.unshift(this.headers.Prefer),this.headers.Prefer=o.join(","),new t.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}}return zn.default=r,zn}var qs={},zs={},Yh;function jT(){return Yh||(Yh=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.version=void 0,zs.version="0.0.0-automated"),zs}var Qh;
23function LT(){if(Qh)return qs;Qh=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.DEFAULT_HEADERS=void 0;const e=jT();return qs.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${e.version}`},qs}var Xh;function MT(){if(Xh)return qn;Xh=1;var e=qn&&qn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(qn,"__esModule",{value:!0});const t=e(am()),r=e(xu()),n=LT();class s{constructor(o,{headers:a={},schema:c,fetch:u}={}){this.url=o,this.headers=Object.assign(Object.assign({},n.DEFAULT_HEADERS),a),this.schemaName=c,this.fetch=u}from(o){const a=new URL(`${this.url}/${o}`);return new t.default(a,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(o){return new s(this.url,{headers:this.headers,schema:o,fetch:this.fetch})}rpc(o,a={},{head:c=!1,get:u=!1,count:l}={}){let f;const h=new URL(`${this.url}/rpc/${o}`);let d;c||u?(f=c?"HEAD":"GET",Object.entries(a).filter(([g,_])=>_!==void 0).map(([g,_])=>[g,Array.isArray(_)?`{${_.join(",")}}`:`${_}`]).forEach(([g,_])=>{h.searchParams.append(g,_)})):(f="POST",d=a);const p=Object.assign({},this.headers);return l&&(p.Prefer=`count=${l}`),new r.default({method:f,url:h,headers:p,schema:this.schemaName,body:d,fetch:this.fetch,allowEmpty:!1})}}return qn.default=s,qn}var Zh;function NT(){if(Zh)return et;Zh=1;var e=et&&et.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(et,"__esModule",{value:!0}),et.PostgrestError=et.PostgrestBuilder=et.PostgrestTransformBuilder=et.PostgrestFilterBuilder=et.PostgrestQueryBuilder=et.PostgrestClient=void 0;const t=e(MT());et.PostgrestClient=t.default;const r=e(am());et.PostgrestQueryBuilder=r.default;const n=e(xu());et.PostgrestFilterBuilder=n.default;const s=e(om());et.PostgrestTransformBuilder=s.default;const i=e(im());et.PostgrestBuilder=i.default;const o=e(sm());return et.PostgrestError=o.default,et.default={PostgrestClient:t.default,PostgrestQueryBuilder:r.default,PostgrestFilterBuilder:n.default,PostgrestTransformBuilder:s.default,PostgrestBuilder:i.default,PostgrestError:o.default},et}var DT=NT();const UT=tm(DT),{PostgrestClient:FT,PostgrestQueryBuilder:rL,PostgrestFilterBuilder:nL,PostgrestTransformBuilder:sL,PostgrestBuilder:iL,PostgrestError:oL}=UT,HT="2.11.2",BT={"X-Client-Info":`realtime-js/${HT}`},qT="1.0.0",cm=1e4,zT=1e3;var fs;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(fs||(fs={}));var Rt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Rt||(Rt={}));var Bt;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Bt||(Bt={}));var Cl;(function(e){e.websocket="websocket"})(Cl||(Cl={}));var bn;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(bn||(bn={}));class WT{constructor(){this.HEADER_LENGTH=1}decode(t,r){return t.constructor===ArrayBuffer?r(this._binaryDecode(t)):r(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const r=new DataView(t),n=new TextDecoder;return this._decodeBroadcast(t,r,n)}_decodeBroadcast(t,r,n){const s=r.getUint8(1),i=r.getUint8(2);let o=this.HEADER_LENGTH+2;const a=n.decode(t.slice(o,o+s));o=o+s;const c=n.decode(t.slice(o,o+i));o=o+i;const u=JSON.parse(n.decode(t.slice(o,t.byteLength)));return{ref:null,topic:a,event:c,payload:u}}}class lm{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Ue;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Ue||(Ue={}));const ed=(e,t,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return Object.keys(t).reduce((i,o)=>(i[o]=KT(o,e,t,s),i),{})},KT=(e,t,r,n)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=r[e];return i&&!n.includes(i)?um(i,o):Rl(o)},um=(e,t)=>
23{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return YT(t,r)}switch(e){case Ue.bool:return VT(t);case Ue.float4:case Ue.float8:case Ue.int2:case Ue.int4:case Ue.int8:case Ue.numeric:case Ue.oid:return GT(t);case Ue.json:case Ue.jsonb:return JT(t);case Ue.timestamp:return QT(t);case Ue.abstime:case Ue.date:case Ue.daterange:case Ue.int4range:case Ue.int8range:case Ue.money:case Ue.reltime:case Ue.text:case Ue.time:case Ue.timestamptz:case Ue.timetz:case Ue.tsrange:case Ue.tstzrange:return Rl(t);default:return Rl(t)}},Rl=e=>e,VT=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},GT=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},JT=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},YT=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let i;const o=e.slice(1,r);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>um(t,a))}return e},QT=e=>typeof e=="string"?e.replace(" ","T"):e,fm=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")};class lc{constructor(t,r,n={},s=cm){this.channel=t,this.event=r,this.payload=n,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var td;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(td||(td={}));class oi{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=oi.syncState(this.state,s,i,o),this.pendingDiffs.forEach(c=>{this.state=oi.syncDiff(this.state,c,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=oi.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,s){const i=this.cloneDeep(t),o=this.transformState(r),a={},c={};return this.map(i,(u,l)=>{o[u]||(c[u]=l)}),this.map(o,(u,l)=>{const f=i[u];if(f){const h=l.map(_=>_.presence_ref),d=f.map(_=>_.presence_ref),p=l.filter(_=>d.indexOf(_.presence_ref)<0),g=f.filter(_=>h.indexOf(_.presence_ref)<0);p.length>0&&(a[u]=p),g.length>0&&(c[u]=g)}else a[u]=l}),this.syncDiff(i,{joins:a,leaves:c},n,s)}static syncDiff(t,r,n,s){const{joins:i,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),s||(s=()=>{}),this.map(i,(a,c)=>{var u;const l=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(c),l.length>0){const f=t[a].map(d=>d.presence_ref),h=l.filter(d=>f.indexOf(d.presence_ref)<0);t[a].unshift(...h)}n(a,l,c)}),this.map(o,(a,c)=>{let u=t[a];if(!u)return;const l=c.map(f=>f.presence_ref);u=u.filter(f=>l.indexOf(f.presence_ref)<0),t[a]=u,s(a,u,c),u.length===0&&delete t[a]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const s=t[n];return"metas"in s?r[n]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):r[n]=s,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var rd;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(rd||(rd={}));var nd;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(nd||(nd={}));var yr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(yr||(yr={}));class Cu{constructor(t,r={config:{}},n){this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=Rt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new lc(this,Bt.join,this.params,this.timeout),this.rejoinTimer=new lm(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Rt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Rt.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=Rt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Rt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Bt.reply,{},(s,i)=>{this._trigger(this._replyEventName(i),s)}),this.presence=new oi(this),this.broadcastEndpointURL=fm(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(t,r=this.timeout){var n,s;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:i,presence:o,private:a}}=this.params;this._onError(l=>t==null?void 0:t(yr.CHANNEL_ERROR,l)),this._onClose(()=>t==null?void 0:t(yr.CLOSED));const c={},u={broadcast:i,presence:o,postgres_changes:(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(l=>l.filter))!==null&&s!==void 0?s:[],private:a};this.socket.accessTokenValue&&(c.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:u},c)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:l})=>{var f;if(this.socket.setAuth(),l===void 0){t==null||t(yr.SUBSCRIBED);return}else{const h=this.bindings.postgres_changes,d=(f=h==null?void 0:h.length)!==null&&f!==void 0?f:0,p=[];for(let g=0;g<d;
23g++){const _=h[g],{filter:{event:v,schema:y,table:m,filter:b}}=_,w=l&&l[g];if(w&&w.event===v&&w.schema===y&&w.table===m&&w.filter===b)p.push(Object.assign(Object.assign({},_),{id:w.id}));else{this.unsubscribe(),t==null||t(yr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=p,t&&t(yr.SUBSCRIBED);return}}).receive("error",l=>{t==null||t(yr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(l).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(yr.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this._on(t,r,n)}async send(t,r={}){var n,s;if(!this._canPush()&&t.type==="broadcast"){const{event:i,payload:o}=t,c={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,c;const u=this._push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Rt.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Bt.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(n=>{const s=new lc(this,Bt.leave,{},t);s.receive("ok",()=>{r(),n("ok")}).receive("timeout",()=>{r(),n("timed out")}).receive("error",()=>{n("error")}),s.send(),this._canPush()||s.trigger("ok",{})})}async _fetchWithTimeout(t,r,n){const s=new AbortController,i=setTimeout(()=>s.abort(),n),o=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(i),o}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new lc(this,t,r,n);return this._canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var s,i;const o=t.toLocaleLowerCase(),{close:a,error:c,leave:u,join:l}=Bt;if(n&&[a,c,u,l].indexOf(o)>=0&&n!==this._joinRef())return;let h=this._onMessage(o,r,n);if(r&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(d=>{var p,g,_;return((p=d.filter)===null||p===void 0?void 0:p.event)==="*"||((_=(g=d.filter)===null||g===void 0?void 0:g.event)===null||_===void 0?void 0:_.toLocaleLowerCase())===o}).map(d=>d.callback(h,n)):(i=this.bindings[o])===null||i===void 0||i.filter(d=>{var p,g,_,v,y,m;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in d){const b=d.id,w=(p=d.filter)===null||p===void 0?void 0:p.event;return b&&((g=r.ids)===null||g===void 0?void 0:g.includes(b))&&(w==="*"||(w==null?void 0:w.toLocaleLowerCase())===((_=r.data)===null||_===void 0?void 0:_.type.toLocaleLowerCase()))}else{const b=(y=(v=d==null?void 0:d.filter)===null||v===void 0?void 0:v.event)===null||y===void 0?void 0:y.toLocaleLowerCase();return b==="*"||b===((m=r==null?void 0:r.event)===null||m===void 0?void 0:m.toLocaleLowerCase())}else return d.type.toLocaleLowerCase()===o}).map(d=>{if(typeof h=="object"&&"ids"in h){const p=h.data,{schema:g,table:_,commit_timestamp:v,type:y,errors:m}=p;h=Object.assign(Object.assign({},{schema:g,table:_,commit_timestamp:v,eventType:y,new:{},old:{},errors:m}),this._getPayloadRecords(p))}d.callback(h,n)})}_isClosed(){return this.state===Rt.closed}_isJoined(){return this.state===Rt.joined}_isJoining(){return this.state===Rt.joining}_isLeaving(){return this.state===Rt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const s=t.toLocaleLowerCase(),i={type:s,filter:r,callback:n};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]=this.bindings[n].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===n&&Cu.isEqual(s.filter,r))}),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Bt.close,{},t)}_onError(t){this._on(Bt.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Rt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=ed(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=ed(t.columns,t.old_record)),r}}const XT=()=>{},ZT=typeof WebSocket<"u",ek=` 24 addEventListener("message", (e) => { 25 if (e.data.event === "start") { 26 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 27 } 28 });`;class tk{constructor(t,r){var n;this.accessTokenValue=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=BT,this.params={},this.timeout=cm,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=XT,this.conn=null,this.sendBuffer=[],this.serializer
28=new WT,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=i=>{let o;return i?o=i:typeof fetch>"u"?o=(...a)=>Re(async()=>{const{default:c}=await Promise.resolve().then(()=>Is);return{default:c}},void 0,import.meta.url).then(({default:c})=>c(...a)):o=fetch,(...a)=>o(...a)},this.endPoint=`${t}/${Cl.websocket}`,this.httpEndpoint=fm(t),r!=null&&r.transport?this.transport=r.transport:this.transport=null,r!=null&&r.params&&(this.params=r.params),r!=null&&r.headers&&(this.headers=Object.assign(Object.assign({},this.headers),r.headers)),r!=null&&r.timeout&&(this.timeout=r.timeout),r!=null&&r.logger&&(this.logger=r.logger),r!=null&&r.heartbeatIntervalMs&&(this.heartbeatIntervalMs=r.heartbeatIntervalMs);const s=(n=r==null?void 0:r.params)===null||n===void 0?void 0:n.apikey;if(s&&(this.accessTokenValue=s,this.apiKey=s),this.reconnectAfterMs=r!=null&&r.reconnectAfterMs?r.reconnectAfterMs:i=>[1e3,2e3,5e3,1e4][i-1]||1e4,this.encode=r!=null&&r.encode?r.encode:(i,o)=>o(JSON.stringify(i)),this.decode=r!=null&&r.decode?r.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new lm(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(r==null?void 0:r.fetch),r!=null&&r.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(r==null?void 0:r.worker)||!1,this.workerUrl=r==null?void 0:r.workerUrl}this.accessToken=(r==null?void 0:r.accessToken)||null}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this.endpointURL(),void 0,{headers:this.headers});return}if(ZT){this.conn=new WebSocket(this.endpointURL()),this.setupConnection();return}this.conn=new rk(this.endpointURL(),void 0,{close:()=>{this.conn=null}}),Re(async()=>{const{default:t}=await import("./CvoEih9d.js").then(r=>r.b);return{default:t}},[],import.meta.url).then(({default:t})=>{this.conn=new t(this.endpointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:qT}))}disconnect(t,r){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,r??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case fs.connecting:return bn.Connecting;case fs.open:return bn.Open;case fs.closing:return bn.Closing;default:return bn.Closed}}isConnected(){return this.connectionState()===bn.Open}channel(t,r={config:{}}){const n=new Cu(`realtime:${t}`,r,this);return this.channels.push(n),n}push(t){const{topic:r,event:n,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var c;(c=this.conn)===null||c===void 0||c.send(a)})};this.log("push",`${r} ${n} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){let r=t||this.accessToken&&await this.accessToken()||this.accessTokenValue;if(r){let n=null;try{n=JSON.parse(atob(r.split(".")[1]))}catch{}if(n&&n.exp&&!(Math.floor(Date.now()/1e3)-n.exp<0))return this.log("auth",`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${n.exp}`),Promise.reject(`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${n.exp}`);this.accessTokenValue=r,this.channels.forEach(s=>{r&&s.updateJoinPayload({access_token:r}),s.joinedOnce&&s._isJoined()&&s._push(Bt.access_token,{access_token:r})})}}async sendHeartbeat(){var t;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(t=this.conn)===null||t===void 0||t.close(zT,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth()}}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r._joinRef()!==t._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>
28this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_onConnMessage(t){this.decode(t.data,r=>{let{topic:n,event:s,payload:i,ref:o}=r;o&&o===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${i.status||""} ${n} ${s} ${o&&"("+o+")"||""}`,i),this.channels.filter(a=>a._isMember(n)).forEach(a=>a._trigger(s,i,o)),this.stateChangeCallbacks.message.forEach(a=>a(r))})}async _onConnOpen(){if(this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),!this.worker)this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs);else{this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(r=>r(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(r=>r(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger(Bt.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${t}${n}${s}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([ek],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}}class rk{constructor(t,r,n){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=fs.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=n.close}}class Ru extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function tt(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class nk extends Ru{constructor(t,r){super(t),this.name="StorageApiError",this.status=r}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class Al extends Ru{constructor(t,r){super(t),this.name="StorageUnknownError",this.originalError=r}}var sk=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(l){try{u(n.next(l))}catch(f){o(f)}}function c(l){try{u(n.throw(l))}catch(f){o(f)}}function u(l){l.done?i(l.value):s(l.value).then(a,c)}u((n=n.apply(e,t||[])).next())})};const hm=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>Re(async()=>{const{default:n}=await Promise.resolve().then(()=>Is);return{default:n}},void 0,import.meta.url).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)},ik=()=>sk(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Re(()=>Promise.resolve().then(()=>Is),void 0,import.meta.url)).Response:Response}),Ol=e=>{if(Array.isArray(e))return e.map(r=>Ol(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=Ol(n)}),t};var Un=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(l){try{u(n.next(l))}catch(f){o(f)}}function c(l){try{u(n.throw(l))}catch(f){o(f)}}function u(l){l.done?i(l.value):s(l.value).then(a,c)}u((n=n.apply(e,t||[])).next())})};const uc=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),ok=(e,t,r)=>Un(void 0,void 0,void 0,function*(){const n=yield ik();e instanceof n&&!(r!=null&&r.noResolveJson)?e.json().then(s=>{t(new nk(uc(s),e.status||500))}).catch(s=>{t(new Al(uc(s),s))}):t(new Al(uc(e),e))}),ak=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),n&&(s.body=JSON.stringify(n)),Object.assign(Object.assign({},s),r))};function Qi(e,t,r,n,s,i){return Un(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(r,ak(t,n,s,i)).then(c=>{if(!c.ok)throw c;return n!=null&&n.noResolveJson?c:c.json()}).then(c=>o(c)).catch(c=>ok(c,a,n))})})}function na(e,t,r,n){return Un(this,void 0,void 0,function*(){return Qi(e,"GET",t,r,n)})}function qr(e,t,r,n,s){return Un(this,void 0,void 0,function*(){return Qi(e,"POST",t,n,s,r)})}function ck(e,t,r,n,s){return Un(this,void 0,void 0,function*(){return Qi(e,"PUT",t,n,s,r)})}function lk(e,t,r,n){return Un(this,void 0,void 0,function*(){return Qi(e,"HEAD",t,Object.assign(Object.assign({},r),{noResolveJson:!0}),n)})}function dm(e,t,r,n,s){return Un(this,void 0,void 0,function*(){return Qi(e,"DELETE",t,n,s,r)})}var wt=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(l){try{u(n.next(l))}catch(f){o(f)}}function c(l){try{u(n.throw(l))}catch(f){o(f)}}function u(l){l.done?i(l.value):s(l.value).then(a,c)}u((n=n.apply(e,t||[])).next())})};const uk={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},sd={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class fk{constructor(t,r={},n,s){this.url=t,this.headers=r,this.bucketId=n,this.fetch=hm(s)}uploadOrUpdate(t,r,n,s){return wt(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},sd),s);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",this.encodeMetadata(c)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",this.encodeMetadata(c))):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,c&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(c)))),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const u=this._removeEmptyFolders(r),l=this._getFinalPath(u),f=yield this.fetch(`${this.url}/object/${l}`,Object.assign({method:t,body:i,headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{})),h=yield f.json();return f.ok?{data:{path:u,id:h.Id,fullPath:h.Key},error:null}:{data:null,error:h}}catch(i){if(tt(i))return{data:null,error:i};throw i}})}upload(t,r,n){return wt(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,r,n)})}uploadToSignedUrl(t,r,n,s){return wt(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(t),o=this._getFinalPath(i),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",r);try{let c;const u=Object.assign({upsert:sd.upsert},s),l=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",n)):typeof FormData<"u"&&n instanceof FormData?(c=n,c.append("cacheControl",u.cacheControl)):(c=n,l["cache-control"]=`max-age=${u.cacheControl}`,l["content-type"]=u.contentType);const f=yield this.fetch(a.toString(),{method:"PUT",body:c,headers:l}),h=yield f.json();return f.ok?{data:{path:i,fullPath:h.Key},error:null}:{data:null,error:h}}catch(c){if(tt(c))return{data:null,error:c};throw c}})}createSignedUploadUrl(t,r){return wt(this,void 0,void 0,function*(){try{let n=this._getFinalPath(t);const s=Object.assign({},this.headers);r!=null&&r.upsert&&(s["x-upsert"]="true");const i=yield qr(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:s}),o=new URL(this.url+i.url),a=o.searchParams.get("token");if(!a)throw new Ru("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:a},error:null}}catch(n){if(tt(n))return{data:null,error:n};throw n}})}update(t,r,n){return wt(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,r,n)})}move(t,r,n){return wt(this,void 0,void 0,function*(){try{return{data:yield qr(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(tt(s))return{data:null,error:s};throw s}})}copy(t,r,n){return wt(this,void 0,void 0,function*(){try{return{data:{path:(yield qr(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(tt(s))return{data:null,error:s};throw s}})}createSignedUrl(t,r,n){return wt(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),i=yield qr(this.fetch,`${this.url}/object/sign/${s}
28`,Object.assign({expiresIn:r},n!=null&&n.transform?{transform:n.transform}:{}),{headers:this.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(tt(s))return{data:null,error:s};throw s}})}createSignedUrls(t,r,n){return wt(this,void 0,void 0,function*(){try{const s=yield qr(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:t},{headers:this.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:s.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(tt(s))return{data:null,error:s};throw s}})}download(t,r){return wt(this,void 0,void 0,function*(){const s=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),o=i?`?${i}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield na(this.fetch,`${this.url}/${s}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(tt(a))return{data:null,error:a};throw a}})}info(t){return wt(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{const n=yield na(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:Ol(n),error:null}}catch(n){if(tt(n))return{data:null,error:n};throw n}})}exists(t){return wt(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{return yield lk(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(tt(n)&&n instanceof Al){const s=n.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:n}}throw n}})}getPublicUrl(t,r){const n=this._getFinalPath(t),s=[],i=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";i!==""&&s.push(i);const a=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",c=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});c!==""&&s.push(c);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}${u}`)}}}remove(t){return wt(this,void 0,void 0,function*(){try{return{data:yield dm(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(r){if(tt(r))return{data:null,error:r};throw r}})}list(t,r,n){return wt(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},uk),r),{prefix:t||""});return{data:yield qr(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},n),error:null}}catch(s){if(tt(s))return{data:null,error:s};throw s}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const r=[];return t.width&&r.push(`width=${t.width}`),t.height&&r.push(`height=${t.height}`),t.resize&&r.push(`resize=${t.resize}`),t.format&&r.push(`format=${t.format}`),t.quality&&r.push(`quality=${t.quality}`),r.join("&")}}const hk="2.7.1",dk={"X-Client-Info":`storage-js/${hk}`};var Gn=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(l){try{u(n.next(l))}catch(f){o(f)}}function c(l){try{u(n.throw(l))}catch(f){o(f)}}function u(l){l.done?i(l.value):s(l.value).then(a,c)}u((n=n.apply(e,t||[])).next())})};class pk{constructor(t,r={},n){this.url=t,this.headers=Object.assign(Object.assign({},dk),r),this.fetch=hm(n)}listBuckets(){return Gn(this,void 0,void 0,function*(){try{return{data:yield na(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(tt(t))return{data:null,error:t};throw t}})}getBucket(t){return Gn(this,void 0,void 0,function*(){try{return{data:yield na(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(r){if(tt(r))return{data:null,error:r};throw r}})}createBucket(t,r={public:!1}){return Gn(this,void 0,void 0,function*(){try{return{data:yield qr(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(tt(n))return{data:null,error:n};throw n}})}updateBucket(t,r){return Gn(this,void 0,void 0,function*(){try{return{data:yield ck(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(tt(n))return{data:null,error:n};throw n}})}emptyBucket(t){return Gn(this,void 0,void 0,function*(){try{return{data:yield qr(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(tt(r))return{data:null,error:r};throw r}})}deleteBucket(t){return Gn(this,void 0,void 0,function*(){try{return{data:yield dm(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(r){if(tt(r))return{data:null,error:r};throw r}})}}class gk extends pk{constructor(t,r={},n){super(t,r,n)}from(t){return new fk(this.url,this.headers,t,this.fetch)}}const yk="2.49.4";let Js="";typeof Deno<"u"?Js="deno":typeof document<"u"?Js="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Js="react-native":Js="node";const mk={"X-Client-Info":`supabase-js-${Js}/${yk}`},vk={headers:mk},_k={schema:"public"},bk={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},wk={};var Sk=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(l){try{u(n.next(l))}catch(f){o(f)}}function c(l){try{u(n.throw(l))}catch(f){o(f)}}function u(l){l.done?i(l.value):s(l.value).then(a,c)}u((n=n.apply(e,t||[])).next())})};const Ek=e=>{let t;return e?t=e:typeof fetch>"u"?t=rm:t=fetch,(...r)=>t(...r)},Tk=()=>typeof Headers>"u"?nm:Headers,kk=(e,t,r)=>{const n=Ek(r),s=Tk();return(i,o)=>Sk(void 0,void 0,void 0,function*(){var a;const c=(a=yield t())!==null&&a!==void 0?a:e;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),n(i,Object.assign(Object.assign({},o),{headers:u}))})};var xk=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(l){try{u(n.next(l))}catch(f){o(f)}}function c(l){try{u(n.throw(l))}catch(f){o(f)}}function u(l){l.done?i(l.value):s(l.value).then(a,c)}u((n=n.apply(e,t||[])).next())})};function Ck(e){return e.replace(/\/$/,"")}function Rk(e,t){const{db:r,auth:n,realtime:s,global:i}=e,{db:o,auth:a,realtime:c,global:u}=t,l={db:Object.assign(Object.assign({},o),r),auth:Object.assign(Object.assign({},a),n),realtime:Object.assign(Object.assign({},c),s),global:Object.assign(Object.assign({},u),i),accessToken:()=>xk(this,void 0,void 0,function*(){return""})};return e.accessToken?l.accessToken=e.accessToken:delete l.accessToken,l}const pm="2.69.1",ts=30*1e3,$l=3,fc=$l*ts,Ak="http://localhost:9999",Ok="supabase.auth.token",$k={"X-Client-Info":`gotrue-js/${pm}`},Pl="X-Supabase-Api-Version",gm={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Pk=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Ik=6e5;
28class Au extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function ve(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class jk extends Au{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function Lk(e){return ve(e)&&e.name==="AuthApiError"}class ym extends Au{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class ln extends Au{constructor(t,r,n,s){super(t,n,s),this.name=r,this.status=n}}class Lr extends ln{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Mk(e){return ve(e)&&e.name==="AuthSessionMissingError"}class hc extends ln{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class So extends ln{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Eo extends ln{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function Nk(e){return ve(e)&&e.name==="AuthImplicitGrantRedirectError"}class id extends ln{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Il extends ln{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function dc(e){return ve(e)&&e.name==="AuthRetryableFetchError"}class od extends ln{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class ai extends ln{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const ad="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),cd=` 29\r=`.split(""),Dk=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<cd.length;t+=1)e[cd[t].charCodeAt(0)]=-2;for(let t=0;t<ad.length;t+=1)e[ad[t].charCodeAt(0)]=t;return e})();function mm(e,t,r){const n=Dk[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function ld(e){const t=[],r=o=>{t.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{Hk(o,n,r)};for(let o=0;o<e.length;o+=1)mm(e.charCodeAt(o),s,i);return t.join("")}function Uk(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function Fk(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}Uk(n,t)}}function Hk(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if((e>>7-n&1)===0){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function Bk(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)mm(e.charCodeAt(s),r,n);return new Uint8Array(t)}function qk(e){const t=[];return Fk(e,r=>t.push(r)),new Uint8Array(t)}function zk(e){return Math.round(Date.now()/1e3)+e}function Wk(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const Xt=()=>typeof window<"u"&&typeof document<"u",gn={tested:!1,writable:!1},ci=()=>{if(!Xt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(gn.tested)return gn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),gn.tested=!0,gn.writable=!0}catch{gn.tested=!0,gn.writable=!1}return gn.writable};function Kk(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEac
29h((s,i)=>{t[i]=s})}catch{}return r.searchParams.forEach((n,s)=>{t[s]=n}),t}const vm=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>Re(async()=>{const{default:n}=await Promise.resolve().then(()=>Is);return{default:n}},void 0,import.meta.url).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)},Vk=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",_m=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},To=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},ko=async(e,t)=>{await e.removeItem(t)};class Ia{constructor(){this.promise=new Ia.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}Ia.promiseConstructor=Promise;function pc(e){const t=e.split(".");if(t.length!==3)throw new ai("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!Pk.test(t[n]))throw new ai("JWT not in base64url format");return{header:JSON.parse(ld(t[0])),payload:JSON.parse(ld(t[1])),signature:Bk(t[2]),raw:{header:t[0],payload:t[1]}}}async function Gk(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Jk(e,t){return new Promise((n,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){n(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function Yk(e){return("0"+e.toString(16)).substr(-2)}function Qk(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let i=0;i<56;i++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(t),Array.from(t,Yk).join("")}async function Xk(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function Zk(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await Xk(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Jn(e,t,r=!1){const n=Qk();let s=n;r&&(s+="/PASSWORD_RECOVERY"),await _m(e,`${t}-code-verifier`,s);const i=await Zk(n);return[i,n===i?"plain":"s256"]}const ex=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function tx(e){const t=e.headers.get(Pl);if(!t||!t.match(ex))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function rx(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function nx(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}var sx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r};const _n=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),ix=[502,503,504];async function ud(e){var t;if(!Vk(e))throw new Il(_n(e),0);if(ix.includes(e.status))throw new Il(_n(e),e.status);let r;try{r=await e.json()}catch(i){throw new ym(_n(i),i)}let n;const s=tx(e);if(s&&s.getTime()>=gm["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new od(_n(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new Lr}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new od(_n(r),e.status,r.weak_password.reasons);throw new jk(_n(r),e.status||500,n)}const ox=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function Ee(e,t,r,n){var s;const i=Object.assign({},n==null?void 0:n.headers);i[Pl]||(i[Pl]=gm["2024-01-01"].name),n!=null&&n.jwt&&(i.Authorization=`Bearer ${n.jwt}`);const o=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await ax(e,t,r+a,{headers:i,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(c):{data:Object.assign({},c),error:null}}async function ax(e,t,r,n,s,i){const o=ox(t,n,s,i);let a;try{a=await e(r,Object.assign({},o))}catch(c){throw console.error(c),new Il(_n(c),0)}if(a.ok||await ud(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(c){await ud(c)}}function Mr(e){var t;let r=null;fx(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=zk(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function fd(e){const t=Mr(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function zr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function cx(e){return{data:e,error:null}}function lx(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i}=e,o=sx(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i},c=Object.assign({},o);return{data:{properties:a,user:c},error:null}}function ux(e){return e}function fx(e){return e.access_token&&e.refresh_token&&e.expires_in}var hx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r};class dx{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=vm(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,r="global"){try{return await Ee(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ve(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await Ee(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:zr})}catch(n){if(ve(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=hx(t,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await Ee(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:lx,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(ve(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await Ee(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:zr})}catch(r){if(ve(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,s,i,o,a,c;try{const u={nextPage:null,lastPage:0,total:0},l=await Ee(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:ux});if(l.error)throw l.error;const f=await l.json(),h=(o=l.headers.get("x-total-count"))!==null&&o!==void 0?o:0,d=(c=(a=l.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&c!==void 0?c:[];return d.length>
290&&(d.forEach(p=>{const g=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),_=JSON.parse(p.split(";")[1].split("=")[1]);u[`${_}Page`]=g}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(ve(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){try{return await Ee(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:zr})}catch(r){if(ve(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){try{return await Ee(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:zr})}catch(n){if(ve(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){try{return await Ee(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:zr})}catch(n){if(ve(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){try{const{data:r,error:n}=await Ee(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(ve(r))return{data:null,error:r};throw r}}async _deleteFactor(t){try{return{data:await Ee(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(ve(r))return{data:null,error:r};throw r}}}const px={getItem:e=>ci()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{ci()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{ci()&&globalThis.localStorage.removeItem(e)}};function hd(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}function gx(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const Yn={debug:!!(globalThis&&ci()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class bm extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class yx extends bm{}async function mx(e,t,r){Yn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),Yn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async s=>{if(s){Yn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await r()}finally{Yn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Yn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new yx(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Yn.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}gx();const vx={url:Ak,storageKey:Ok,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:$k,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function dd(e,t,r){return await r()}class ki{constructor(t){var r,n;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=ki.nextInstanceID,ki.nextInstanceID+=1,this.instanceID>
290&&Xt()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},vx),t);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new dx({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=vm(s.fetch),this.lock=s.lock||dd,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:Xt()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=mx:this.lock=dd,this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?s.storage?this.storage=s.storage:ci()?this.storage=px:(this.memoryStorage={},this.storage=hd(this.memoryStorage)):(this.memoryStorage={},this.storage=hd(this.memoryStorage)),Xt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(n=this.broadcastChannel)===null||n===void 0||n.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${pm}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const r=Kk(window.location.href);let n="none";if(this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce"),Xt()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:i}=await this._getSessionFromURL(r,n);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),Nk(i)){const c=(t=i.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return await this._removeSession(),{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return ve(r)?{error:r}:{error:new ym("Unexpected error during initialization",r)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,s;try{const i=await Ee(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Mr}),{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(i){if(ve(i))return{data:{user:null,session:null},error:i};throw i}}async signUp(t){var r,n,s;try{let i;if("email"in t){const{email:l,password:f,options:h}=t;let d=null,p=null;this.flowType==="pkce"&&([d,p]=await Jn(this.storage,this.storageKey)),i=await Ee(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:l,password:f,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:d,code_challenge_method:p},xform:Mr})}else if("phone"in t){const{phone:l,password:f,options:h}=t;i=await Ee(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:l,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Mr})}else throw new So("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(i){if(ve(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(t){try{let r;if("email"in t){const{email:i,password:o,options:a}=t;r=await Ee(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:fd})}else if("phone"in t){const{phone:i,password:o,options:a}=t;r=await Ee(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:fd})}else throw new So("You must provide either an email or phone number and a password");const{data:n,error:s}=r;return s?{data:{user:null,session:null},error:s}:!n||!n.session||!n.user?{data:{user:null,session:null},error:new hc}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(ve(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOAuth(t){var r,n,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async _exchangeCodeForSession(t){const r=await To(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{const{data:i,error:o}=await Ee(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:Mr});if(await ko(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new hc}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(ve(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(t){try{const{options:r,provider:n,token:s,access_token:i,nonce:o}=t,a=await Ee(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Mr}),{data:c,error:u}=a;return u?{data:{user:null,session:null},error:u}:!c||!c.session||!c.user?{data:{user:null,session:null},error:new hc}:(c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),{data:c,error:u})}catch(r){if(ve(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOtp(t){var r,n,s,i,o;try{if("email"in t){const{email:a,options:c}=t;let u=null,l=null;this.flowType==="pkce"&&([u,l]=await Jn(this.storage,this.storageKey));const{error:f}=await Ee(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=c==null?void 0:c.data)!==null&&r!==void 0?r:{},create_user:(n=c==null?void 0:c.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:l},redirectTo:c==null?void 0:c.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:a,options:c}=t,{data:u,error:l}=await Ee(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=c==null?void 0:c.data)!==null&&s!==void 0?s:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:l}}throw new So("You must provide either an email or phone number.")}catch(a){if(ve(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var r,n;try{let s,i;"options"in t&&(s=(r=t.options)===null||r===void 0?void 0:r.redirectTo,i=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:a}=await Ee(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Mr});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,u=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(s){if(ve(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var r,n,s;try{let i=null,o=null;return this.flowType==="pkce"&&([i,o]=await Jn(this.storage,this.storageKey)),await Ee(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:o}),headers:this.headers,xform:cx})}catch(i){if(ve(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new Lr;const{error:s}=await Ee(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return{data:{user:null,session:null},error:s}})}catch(t){if(ve(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:s,options:i}=t,{error:o}=await Ee(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in t){const{phone:n,type:s,options:i}=t,{data:o,error:a}=await Ee(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new So("You must provide either an email or phone number and a type")}catch(r){if(ve(r))return{data:{user:null,session:null},error:r};throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await To(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
29id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<fc:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.storage.isServer){let o=this.suppressGetSessionWarning;t=new Proxy(t,{get:(c,u,l)=>(!o&&u==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(c,u,l))})}return{data:{session:t},error:null}}const{session:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{session:null},error:i}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await Ee(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:zr}):await this._useSession(async r=>{var n,s,i;const{data:o,error:a}=r;if(a)throw a;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Lr}:await Ee(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:zr})})}catch(r){if(ve(r))return Mk(r)&&(await this._removeSession(),await ko(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:r};throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:s,error:i}=n;if(i)throw i;if(!s.session)throw new Lr;const o=s.session;let a=null,c=null;this.flowType==="pkce"&&t.email!=null&&([a,c]=await Jn(this.storage,this.storageKey));const{data:u,error:l}=await Ee(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:c}),jwt:o.access_token,xform:zr});if(l)throw l;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(n){if(ve(n))return{data:{user:null},error:n};throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Lr;const r=Date.now()/1e3;let n=r,s=!0,i=null;const{payload:o}=pc(t.access_token);if(o.exp&&(n=o.exp,s=n<=r),s){const{session:a,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return{data:{user:null,session:null},error:c};if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:c}=await this._getUser(t.access_token);if(c)throw c;i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(r){if(ve(r))return{data:{session:null,user:null},error:r};throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:o,error:a}=r;if(a)throw a;t=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new Lr;const{session:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{user:null,session:null},error:i}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(r){if(ve(r))return{data:{user:null,session:null},error:r};throw r}}async _getSessionFromURL(t,r){try{if(!Xt())throw new Eo("No browser detected.");
29if(t.error||t.error_description||t.error_code)throw new Eo(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new id("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Eo("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new id("No code detected.");const{data:y,error:m}=await this._exchangeCodeForSession(t.code);if(m)throw m;const b=new URL(window.location.href);return b.searchParams.delete("code"),window.history.replaceState(window.history.state,"",b.toString()),{data:{session:y.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:c,token_type:u}=t;if(!i||!a||!o||!u)throw new Eo("No session defined in URL");const l=Math.round(Date.now()/1e3),f=parseInt(a);let h=l+f;c&&(h=parseInt(c));const d=h-l;d*1e3<=ts&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${d}s, should have been closer to ${f}s`);const p=h-f;l-p>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",p,h,l):l-p<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",p,h,l);const{data:g,error:_}=await this._getUser(i);if(_)throw _;const v={provider_token:n,provider_refresh_token:s,access_token:i,expires_in:f,expires_at:h,refresh_token:o,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:v,redirectType:t.type},error:null}}catch(n){if(ve(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await To(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return{error:i};const o=(n=s.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(Lk(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await ko(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const r=Wk(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,s;try{const{data:{session:i},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await Jn(this.storage,this.storageKey,!0));try{return await Ee(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(i){if(ve(i))return{data:null,error:i};throw i}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return{data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(r){if(ve(r))return{data:null,error:r};throw r}}async linkIdentity(t){var r;try{const{data:n,error:s}=await this._useSession(async i=>{var o,a,c,u,l;const{data:f,error:h}=i;if(h)throw h;const d=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await Ee(this.fetch,"GET",d,{headers:this.headers,jwt:(l=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&l!==void 0?l:void 0})});if(s)throw s;return Xt()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),{data:{provider:t.provider,url:n==null?void 0:n.url},error:null}}catch(n){if(ve(n))return{data:{provider:t.provider,url:null},error:n};throw n}}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)throw o;
29return await Ee(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(ve(r))return{data:null,error:r};throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await Jk(async s=>(s>0&&await Gk(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await Ee(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Mr})),(s,i)=>{const o=200*Math.pow(2,s);return i&&dc(i)&&Date.now()+o-n<ts})}catch(n){if(this._debug(r,"error",n),ve(n))return{data:{session:null,user:null},error:n};throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),Xt()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const n=await To(this.storage,this.storageKey);if(this._debug(r,"session from storage",n),!this._isValidSession(n)){this._debug(r,"session is not valid"),n!==null&&await this._removeSession();return}const s=((t=n.expires_at)!==null&&t!==void 0?t:1/0)*1e3-Date.now()<fc;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${fc}s`),s){if(this.autoRefreshToken&&n.refresh_token){const{error:i}=await this._callRefreshToken(n.refresh_token);i&&(console.error(i),dc(i)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",n)}catch(n){this._debug(r,"error",n),console.error(n);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new Lr;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Ia;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new Lr;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={session:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),ve(i)){const o={session:null,error:i};return dc(i)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,r,n=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,r)}catch(c){i.push(c)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await _m(this.storage,this.storageKey,t)}async _removeSession(){this._debug("#_removeSession()"),await ko(this.storage,this.storageKey),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Xt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),ts);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-t)/ts);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ts}ms, refresh threshold is ${$l} ticks`),s<=$l&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof bm)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Xt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>
29{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[i,o]=await Jn(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(n!=null&&n.queryParams){const i=new URLSearchParams(n.queryParams);s.push(i.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;return i?{data:null,error:i}:await Ee(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(ve(r))return{data:null,error:r};throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)return{data:null,error:o};const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:c,error:u}=await Ee(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return u?{data:null,error:u}:(t.factorType==="totp"&&(!((s=c==null?void 0:c.totp)===null||s===void 0)&&s.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),{data:c,error:null})})}catch(r){if(ve(r))return{data:null,error:r};throw r}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return{data:null,error:i};const{data:o,error:a}=await Ee(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(r){if(ve(r))return{data:null,error:r};throw r}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;return i?{data:null,error:i}:await Ee(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(ve(r))return{data:null,error:r};throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?{data:null,error:n}:await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){const{data:{user:t},error:r}=await this.getUser();if(r)return{data:null,error:r};const n=(t==null?void 0:t.factors)||[],s=n.filter(o=>o.factor_type==="totp"&&o.status==="verified"),i=n.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:n,totp:s,phone:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var r,n;const{data:{session:s},error:i}=t;if(i)return{data:null,error:i};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=pc(s.access_token);let a=null;o.aal&&(a=o.aal);let c=a;((n=(r=s.user.factors)===null||r===void 0?void 0:r.filter(f=>f.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(c="aal2");const l=o.amr||[];return{data:{currentLevel:a,nextLevel:c,currentAuthenticationMethods:l},error:null}}))}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(o=>o.kid===t);if(n||(n=this.jwks.keys.find(o=>o.kid===t),n&&this.jwks_cached_at+Ik>Date.now()))return n;const{data:s,error:i}=await Ee(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;if(!s.keys||s.keys.length===0)throw new ai("JWKS is empty");if(this.jwks=s,this.jwks_cached_at=Date.now(),n=s.keys.find(o=>o.kid===t),!n)throw new ai("No matching signing key found in JWKS");return n}async getClaims(t,r={keys:[]}){try{let n=t;if(!n){const{data:d,error:p}
29=await this.getSession();if(p||!d.session)return{data:null,error:p};n=d.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:c}}=pc(n);if(rx(i.exp),!s.kid||s.alg==="HS256"||!("crypto"in globalThis&&"subtle"in globalThis.crypto)){const{error:d}=await this.getUser(n);if(d)throw d;return{data:{claims:i,header:s,signature:o},error:null}}const u=nx(s.alg),l=await this.fetchJwk(s.kid,r),f=await crypto.subtle.importKey("jwk",l,u,!0,["verify"]);if(!await crypto.subtle.verify(u,f,o,qk(`${a}.${c}`)))throw new ai("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(n){if(ve(n))return{data:null,error:n};throw n}}}ki.nextInstanceID=0;const _x=ki;class bx extends _x{constructor(t){super(t)}}var wx=function(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(l){try{u(n.next(l))}catch(f){o(f)}}function c(l){try{u(n.throw(l))}catch(f){o(f)}}function u(l){l.done?i(l.value):s(l.value).then(a,c)}u((n=n.apply(e,t||[])).next())})};class Sx{constructor(t,r,n){var s,i,o;if(this.supabaseUrl=t,this.supabaseKey=r,!t)throw new Error("supabaseUrl is required.");if(!r)throw new Error("supabaseKey is required.");const a=Ck(t);this.realtimeUrl=`${a}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${a}/auth/v1`,this.storageUrl=`${a}/storage/v1`,this.functionsUrl=`${a}/functions/v1`;const c=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,u={db:_k,realtime:wk,auth:Object.assign(Object.assign({},bk),{storageKey:c}),global:vk},l=Rk(n??{},u);this.storageKey=(s=l.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(i=l.global.headers)!==null&&i!==void 0?i:{},l.accessToken?(this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(f,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=l.auth)!==null&&o!==void 0?o:{},this.headers,l.global.fetch),this.fetch=kk(r,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.rest=new FT(`${a}/rest/v1`,{headers:this.headers,schema:l.db.schema,fetch:this.fetch}),l.accessToken||this._listenForAuthEvents()}get functions(){return new CT(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new gk(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,r={},n={}){return this.rest.rpc(t,r,n)}channel(t,r={config:{}}){return this.realtime.channel(t,r)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,r;return wx(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:n}=yield this.auth.getSession();return(r=(t=n.session)===null||t===void 0?void 0:t.access_token)!==null&&r!==void 0?r:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:s,storageKey:i,flowType:o,lock:a,debug:c},u,l){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new bx({url:this.authUrl,headers:Object.assign(Object.assign({},f),u),storageKey:i,autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:s,flowType:o,lock:a,debug:c,fetch:l,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(t){return new tk(this.realtimeUrl,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((r,n)=>{this._handleTokenChanged(r,"CLIENT",n==null?void 0:n.access_token)})}_handleTokenChanged(t,r,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?this.changedAccessToken=n:t==="SIGNED_OUT"&&(this.realtime.setAuth(),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const wm=(e,t,r)=>new Sx(e,t,r),Ex="0.5.2";var xo={};/*! 30 * cookie 31 * Copyright(c) 2012-2014 Roman Shtylman 32 * Copyright(c) 2015 Douglas Christopher Wilson 33 * MIT Licensed 34 */var pd;function Tx(){if(pd)return xo;pd=1,xo.parse=o,xo.serialize=u;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,n=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,s=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/;function o(d,p){if(typeof d!="string")throw new TypeError("argument str must be a string");var g={},_=d.length;if(_<2)return g;var v=p&&p.decode||l,y=0,m=0,b=0;do{if(m=d.indexOf("=",y),m===-1)break;if(b=d.indexOf(";",y),b===-1)b=_;else if(m>b){y=d.lastIndexOf(";",m-1)+1;continue}var w=a(d,y,m),T=c(d,m,w),x=d.slice(w,T);if(!t.call(g,x)){var M=a(d,m+1,b),A=c(d,b,M);d.charCodeAt(M)===34&&d.charCodeAt(A-1)===34&&(M++,A--);var H=d.slice(M,A);g[x]=h(H,v)}y=b+1}while(y<_);return g}
34function a(d,p,g){do{var _=d.charCodeAt(p);if(_!==32&&_!==9)return p}while(++p<g);return g}function c(d,p,g){for(;p>g;){var _=d.charCodeAt(--p);if(_!==32&&_!==9)return p+1}return g}function u(d,p,g){var _=g&&g.encode||encodeURIComponent;if(typeof _!="function")throw new TypeError("option encode is invalid");if(!r.test(d))throw new TypeError("argument name is invalid");var v=_(p);if(!n.test(v))throw new TypeError("argument val is invalid");var y=d+"="+v;if(!g)return y;if(g.maxAge!=null){var m=Math.floor(g.maxAge);if(!isFinite(m))throw new TypeError("option maxAge is invalid");y+="; Max-Age="+m}if(g.domain){if(!s.test(g.domain))throw new TypeError("option domain is invalid");y+="; Domain="+g.domain}if(g.path){if(!i.test(g.path))throw new TypeError("option path is invalid");y+="; Path="+g.path}if(g.expires){var b=g.expires;if(!f(b)||isNaN(b.valueOf()))throw new TypeError("option expires is invalid");y+="; Expires="+b.toUTCString()}if(g.httpOnly&&(y+="; HttpOnly"),g.secure&&(y+="; Secure"),g.partitioned&&(y+="; Partitioned"),g.priority){var w=typeof g.priority=="string"?g.priority.toLowerCase():g.priority;switch(w){case"low":y+="; Priority=Low";break;case"medium":y+="; Priority=Medium";break;case"high":y+="; Priority=High";break;
34default:throw new TypeError("option priority is invalid")}}if(g.sameSite){var T=typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite;switch(T){case!0:y+="; SameSite=Strict";break;case"lax":y+="; SameSite=Lax";break;case"strict":y+="; SameSite=Strict";break;case"none":y+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return y}function l(d){return d.indexOf("%")!==-1?decodeURIComponent(d):d}function f(d){return e.call(d)==="[object Date]"}function h(d,p){try{return p(d)}catch{return d}}return xo}var gd=Tx();function li(){return typeof window<"u"&&typeof window.document<"u"}const Co={path:"/",sameSite:"lax",httpOnly:!1,maxAge:400*24*60*60},kx=3180,xx=/^(.*)[.](0|[1-9][0-9]*)$/;function yd(e,t){if(e===t)return!0;const r=e.match(xx);return!!(r&&r[1]===t)}function Cx(e,t,r){const n=kx;let s=encodeURIComponent(t);if(s.length<=n)return[{name:e,value:t}];const i=[];for(;s.length>0;){let o=s.slice(0,n);const a=o.lastIndexOf("%");a>n-3&&(o=o.slice(0,a));let c="";for(;o.length>0;)try{c=decodeURIComponent(o);break}catch(u){if(u instanceof URIError&&o.at(-3)==="%"&&o.length>3)o=o.slice(0,o.length-3);else throw u}i.push(c),s=s.slice(o.length)}return i.map((o,a)=>({name:`${e}.${a}`,value:o}))}async function Rx(e,t){const r=await t(e);if(r)return r;let n=[];for(let s=0;;s++){const i=`${e}.${s}`,o=await t(i);if(!o)break;n.push(o)}return n.length>0?n.join(""):null}const sa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),md=` 35\r=`.split(""),Ax=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<md.length;t+=1)e[md[t].charCodeAt(0)]=-2;for(let t=0;t<sa.length;t+=1)e[sa[t].charCodeAt(0)]=t;return e})();function Ox(e){const t=[];let r=0,n=0;if(Ix(e,i=>{for(r=r<<8|i,n+=8;n>=6;){const o=r>>n-6&63;t.push(sa[o]),n-=6}}),n>0)for(r=r<<6-n,n=6;n>=6;){const i=r>>n-6&63;t.push(sa[i]),n-=6}return t.join("")}function $x(e){const t=[],r=o=>{t.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0};let s=0,i=0;for(let o=0;o<e.length;o+=1){const a=e.charCodeAt(o),c=Ax[a];if(c>-1)for(s=s<<6|c,i+=6;i>=8;)jx(s>>i-8&255,n,r),i-=8;else{if(c===-2)continue;throw new Error(`Invalid Base64-URL character "${e.at(o)}" at position ${o}`)}}return t.join("")}function Px(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function Ix(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}Px(n,t)}}function jx(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if((e>>7-n&1)===0){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}const gc="base64-";function Lx(e,t){const r=e.cookies??null,n=e.cookieEncoding,s={},i={};let o,a;if(r)if("get"in r){const c=async u=>{const l=u.flatMap(h=>[h,...Array.from({length:5}).map((d,p)=>`${h}.${p}`)]),f=[];for(let h=0;h<l.length;h+=1){const d=await r.get(l[h]);!d&&typeof d!="string"||f.push({name:l[h],value:d})}return f};if(o=async u=>await c(u),"set"in r&&"remove"in r)a=async u=>{for(let l=0;l<u.length;l+=1){const{name:f,value:h,options:d}=u[l];h?await r.set(f,h,d):await r.remove(f,d)}};else throw new Error("@supabase/ssr: createBrowserClient requires configuring a getAll and setAll cookie method (deprecated: alternatively both get, set and remove can be used)")}else if("getAll"in r)if(o=async()=>await r.getAll(),"setAll"in r)a=r.setAll;else throw new Error("@supabase/ssr: createBrowserClient requires configuring both getAll and setAll cookie methods (deprecated: alternatively both get, set and remove can be used)");else throw new Error(`@supabase/ssr: createBrowserClient requires configuring getAll and setAll cookie methods (deprecated: alternatively use get, set and remove).${li()?" As this is called
35in a browser runtime, consider removing the cookies option object to use the document.cookie API automatically.":""}`);else if(li()){const c=()=>{const u=gd.parse(document.cookie);return Object.keys(u).map(l=>({name:l,value:u[l]}))};o=()=>c(),a=u=>{u.forEach(({name:l,value:f,options:h})=>{document.cookie=gd.serialize(l,f,h)})}}else o=()=>[],a=()=>{throw new Error("@supabase/ssr: createBrowserClient in non-browser runtimes (including Next.js pre-rendering mode) was not initialized cookie options that specify getAll and setAll functions (deprecated: alternatively use get, set and remove), but they were needed")};return{getAll:o,setAll:a,setItems:s,removedItems:i,storage:{isServer:!1,getItem:async c=>{const u=await o([c]),l=await Rx(c,async h=>{const d=(u==null?void 0:u.find(({name:p})=>p===h))||null;return d?d.value:null});if(!l)return null;let f=l;return l.startsWith(gc)&&(f=$x(l.substring(gc.length))),f},setItem:async(c,u)=>{const l=await o([c]),f=(l==null?void 0:l.map(({name:y})=>y))||[],h=new Set(f.filter(y=>yd(y,c)));let d=u;n==="base64url"&&(d=gc+Ox(u));const p=Cx(c,d);p.forEach(({name:y})=>{h.delete(y)});const g={...Co,...e==null?void 0:e.cookieOptions,maxAge:0},_={...Co,...e==null?void 0:e.cookieOptions,maxAge:Co.maxAge};delete g.name,delete _.name;const v=[...[...h].map(y=>({name:y,value:"",options:g})),...p.map(({name:y,value:m})=>({name:y,value:m,options:_}))];v.length>0&&await a(v)},removeItem:async c=>{const u=await o([c]),f=((u==null?void 0:u.map(({name:d})=>d))||[]).filter(d=>yd(d,c)),h={...Co,...e==null?void 0:e.cookieOptions,maxAge:0};delete h.name,f.length>0&&await a(f.map(d=>({name:d,value:"",options:h})))}}}}let yc;function Mx(e,t,r){var o,a;const n=(r==null?void 0:r.isSingleton)===!0||(!r||!("isSingleton"in r))&&li();if(n&&yc)return yc;if(!e||!t)throw new Error(`@supabase/ssr: Your project's URL and API key are required to create a Supabase client! 36 37Check your Supabase project's API settings to find these values 38 39https://supabase.com/dashboard/project/_/settings/api`);const{storage:s}=Lx({...r,cookieEncoding:(r==null?void 0:r.cookieEncoding)??"base64url"}),i=wm(e,t,{...r,global:{...r==null?void 0:r.global,headers:{...(o=r==null?void 0:r.global)==null?void 0:o.headers,"X-Client-Info":`supabase-ssr/${Ex}`}},auth:{...r==null?void 0:r.auth,...(a=r==null?void 0:r.cookieOptions)!=null&&a.name?{storageKey:r.cookieOptions.name}:null,flowType:"pkce",autoRefreshToken:li(),detectSessionInUrl:li(),persistSession:!0,storage:s}});return n&&(yc=i),i}async function vd(e,t){var n;for(let s=1;s<=3;s++)try{return await fetch(e,t)}catch(i){if((n=t==null?void 0:t.signal)!=null&&n.aborted)throw i;if(s===3)throw console.error(`Error fetching request ${e}`,i,t),i;console.warn(`Retrying fetch attempt ${s+1} for request: ${e}`)}throw new Error("Unreachable code")}const Sm=()=>lt("supabase_session",()=>null),Ou=()=>lt("supabase_user",()=>null),Nx=Je({name:"supabase",enforce:"pre",async setup({provide:e}){let t,r;const{url:n,key:s,cookieOptions:i,cookiePrefix:o,useSsrCookies:a,clientOptions:c}=yt().public.supabase;let u;a?u=Mx(n,s,{...c,cookieOptions:{...i,name:o},isSingleton:!0,global:{fetch:vd,...c.global}}):u=wm(n,s,{...c,global:{fetch:vd,...c.global}}),e("supabase",{client:u});const l=Sm(),f=Ou(),{data:{session:h}}=([t,r]=Rn(()=>u.auth.getSession()),t=await t,r(),t);l.value=h,f.value=(h==null?void 0:h.user)??null,u.auth.onAuthStateChange((d,p)=>{JSON.stringify(l.value)!==JSON.stringify(p)&&(l.value=p,f.value=(p==null?void 0:p.user)??null)})}}),Dx=Je({name:"nuxt:payload",setup(e){const t=new Set;it().beforeResolve(async(r,n)=>{if(r.path===n.path)return;const s=await bh(r.path);if(s){for(const i of t)delete e.static.data[i];for(const i in s.data)i in e.static.data||t.add(i),e.static.data[i]=s.data[i]}}),Ji(()=>{var r;e.hooks.hook("link:prefetch",async n=>{const{hostname:s}=new URL(n,window.location.href);s===window.location.hostname&&await bh(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),((r=navigator.connection)==null?void 0:r.effectiveType)!=="slow-2g"&&setTimeout(Oa,1e3)})}}),Ux=Je(()=>{const e=it();Ji(()=>
39{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),Fx=Je(e=>{let t;async function r(){const n=await Oa();t&&clearTimeout(t),t=setTimeout(r,ch);try{const s=await $fetch(gu("builds/latest.json")+`?${Date.now()}`);s.id!==n.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}Ji(()=>{t=setTimeout(r,ch)})}),Hx=Je({name:"nuxt:chunk-reload",setup(e){const t=it(),r=yt(),n=new Set;t.beforeEach(()=>{n.clear()}),e.hook("app:chunkError",({error:i})=>{n.add(i)});function s(i){const a="href"in i&&i.href[0]==="#"?r.app.baseURL+i.href:Ca(r.app.baseURL,i.fullPath);em({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((i,o)=>{n.has(i)&&s(o)})}});function Bx(){return yt().public["nuxt-scripts"]}function qx(e){return e.key||e.src||(typeof e.innerHTML=="string"?e.innerHTML:"")}function zx(e,t){var o,a;e=typeof e=="string"?{src:e}:e,t=Ps(t,(o=Bx())==null?void 0:o.defaultScriptOptions);const r=String(qx(e)),n=Ae();if(t.head=t.head||Dn(),!t.head)throw new Error("useScript() has been called without Nuxt context.");n.$scripts=n.$scripts||gt({}),(a=n.$scripts)!=null&&a[r],(t.trigger==="onNuxtReady"||t.trigger==="client")&&(t.warmupStrategy||(t.warmupStrategy="preload"),t.trigger==="onNuxtReady"&&(t.trigger=Ji));const s=vE(e,t),i=s.remove;return s.remove=()=>(n.$scripts[r]=void 0,i()),n.$scripts[r]=s,s}const js=Object.freeze(Object.assign(()=>{},{__mock__:!0})),Wx=js,yn=js,mc=js,dr=js,vc=js,_c=js;function Kx(e){return(yt().public.scripts||{})[e]}function Vx(e,t,r){const n=Kx(e),s=Object.assign(r||{},typeof n=="object"?n:{}),i=t(s),o=Ps(s.scriptInput,i.scriptInput,{key:e}),a=Object.assign((s==null?void 0:s.scriptOptions)||{},i.scriptOptions||{}),c=a.beforeInit;return a.beforeInit=()=>{var u;c==null||c(),(u=i.clientInit)==null||u.call(i)},zx(o,a)}Wx({id:yn(),l:dr(yn()),auth:dr(yn()),preview:dr(yn()),cookiesWin:dr(_c([mc(),vc("x")])),debug:dr(_c([mc(),vc("x")])),npa:dr(_c([mc(),vc("1")])),dataLayer:dr(yn()),envName:dr(yn()),authReferrerPolicy:dr(yn())});function Gx(e){return Vx((e==null?void 0:e.key)||"googleTagManager",t=>{const r=(t==null?void 0:t.l)??(t==null?void 0:t.dataLayer)??"dataLayer";return{scriptInput:{src:pu("https://www.googletagmanager.com/gtm.js",{id:t.id,l:t.l,gtm_auth:t.auth,gtm_preview:t.preview,gtm_cookies_win:t.cookiesWin?"x":void 0,gtm_debug:t.debug?"x":void 0,gtm_npa:t.npa?"1":void 0,gtm_data_layer:t.dataLayer,gtm_env:t.envName,gtm_auth_referrer_policy:t.authReferrerPolicy})},schema:void 0,scriptOptions:{use:()=>({dataLayer:window[r],google_tag_manager:window.google_tag_manager}),performanceMarkFeature:"nuxt-third-parties-gtm",tagPriority:1},clientInit:()=>{var s;window[r]=window[r]||[];function n(...i){window[r].push(i)}(s=e==null?void 0:e.onBeforeGtmStart)==null||s.call(e,n),window[r].push({"gtm.start":new Date().getTime(),event:"gtm.js"})}}},e)}const Jx=Je({name:"scripts:init",env:{islands:!1},parallel:!0,setup(){return{provide:{$scripts:{googleTagManager:Gx({})}}}}}),Yx=cn(()=>Re(()=>import("./D4j7pIkY.js"),__vite__mapDeps([32,33]),import.meta.url).then(e=>e.default||e.default||e)),Qx=cn(()=>Re(()=>Promise.resolve().then(()=>fI),void 0,import.meta.url).then(e=>e.default||e.default||e)),Xx=cn(()=>Re(()=>Promise.resolve().then(()=>lI),void 0,import.meta.url).then(e=>e.default||e.default||e)),Zx=cn(()=>Re(()=>Promise.resolve().then(()=>dI),void 0,import.meta.url).then(e=>e.default||e.default||e)),eC=cn(()=>Re(()=>Promise.resolve().then(()=>q$),void 0,import.meta.url).then(e=>e.default||e.default||e)),tC=cn(()=>Re(()=>Promise.resolve().then(()=>Fj),void 0,import.meta.url).then(e=>e.default||e.default||e)),rC=cn(()=>Re(()=>Promise.resolve().then(()=>sI),void 0,import.meta.url).then(e=>e.default||e.default||e)),nC=[["CookiePopupDummy",Yx],["DevGrid",Qx],["DevUser",Xx],["Intro",Zx],["Logo",eC],["SiteFooter",tC],["SiteHeader",rC]],sC=Je({name:"nuxt:global-components",setup(e){for(const[t,r]of nC)e.vueApp.component(t,r),e.vueApp.component("Lazy"+t,r)}}),Xr={default:cn(()=>Re(()=>import("./B25vX_rK.js"),[],import.meta.url).then(e=>e.default||e))},iC=Je({name:"nuxt:prefetch",setup(e){const t=it();e.hooks.hook("app:mounted",()=>{t.beforeEach(async r=>{var s;const n=(s=r==null?void 0:r.meta)==null?void 0:s.layout;n&&typeof Xr[n]=="function"&&await Xr[n]()})}),e.hooks.hook("link:prefetch",r=>{if(Yt(r))return;const n=t.resolve(r);if(!n)return;const s=n.meta.layout;let i=Eu(n.meta.middleware);
39i=i.filter(o=>typeof o=="string");for(const o of i)typeof ii[o]=="function"&&ii[o]();s&&typeof Xr[s]=="function"&&Xr[s]()})}}),_d=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function oC(e,t){t?t={..._d,...t}:t=_d;const r=Em(t);return r.dispatch(e),r.toString()}const aC=Object.freeze(["prototype","__proto__","constructor"]);function Em(e){let t="",r=new Map;const n=s=>{t+=s};return{toString(){return t},getContext(){return r},dispatch(s){return e.replacer&&(s=e.replacer(s)),this[s===null?"null":typeof s](s)},object(s){if(s&&typeof s.toJSON=="function")return this.object(s.toJSON());const i=Object.prototype.toString.call(s);let o="";const a=i.length;a<10?o="unknown:["+i+"]":o=i.slice(8,a-1),o=o.toLowerCase();let c=null;if((c=r.get(s))===void 0)r.set(s,r.size);else return this.dispatch("[CIRCULAR:"+c+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(s))return n("buffer:"),n(s.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](s):e.ignoreUnknown||this.unkown(s,o);else{let u=Object.keys(s);e.unorderedObjects&&(u=u.sort());let l=[];e.respectType!==!1&&!bd(s)&&(l=aC),e.excludeKeys&&(u=u.filter(h=>!e.excludeKeys(h)),l=l.filter(h=>!e.excludeKeys(h))),n("object:"+(u.length+l.length)+":");const f=h=>{this.dispatch(h),n(":"),e.excludeValues||this.dispatch(s[h]),n(",")};for(const h of u)f(h);for(const h of l)f(h)}},array(s,i){if(i=i===void 0?e.unorderedArrays!==!1:i,n("array:"+s.length+":"),!i||s.length<=1){for(const c of s)this.dispatch(c);return}const o=new Map,a=s.map(c=>{const u=Em(e);u.dispatch(c);for(const[l,f]of u.getContext())o.set(l,f);return u.toString()});return r=o,a.sort(),this.array(a,!1)},date(s){return n("date:"+s.toJSON())},symbol(s){return n("symbol:"+s.toString())},unkown(s,i){if(n(i),!!s&&(n(":"),s&&typeof s.entries=="function"))return this.array(Array.from(s.entries()),!0)},error(s){return n("error:"+s.toString())},boolean(s){return n("bool:"+s)},string(s){n("string:"+s.length+":"),n(s)},function(s){n("fn:"),bd(s)?this.dispatch("[native]"):this.dispatch(s.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(s.name)),e.respectFunctionProperties&&this.object(s)},number(s){return n("number:"+s)},xml(s){return n("xml:"+s.toString())},null(){return n("Null")},undefined(){return n("Undefined")},regexp(s){return n("regex:"+s.toString())},uint8array(s){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(s))},uint8clampedarray(s){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(s))},int8array(s){return n("int8array:"),this.dispatch(Array.prototype.slice.call(s))},uint16array(s){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(s))},int16array(s){return n("int16array:"),this.dispatch(Array.prototype.slice.call(s))},uint32array(s){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(s))},int32array(s){return n("int32array:"),this.dispatch(Array.prototype.slice.call(s))},float32array(s){return n("float32array:"),this.dispatch(Array.prototype.slice.call(s))},float64array(s){return n("float64array:"),this.dispatch(Array.prototype.slice.call(s))},arraybuffer(s){return n("arraybuffer:"),this.dispatch(new Uint8Array(s))},url(s){return n("url:"+s.toString())},map(s){n("map:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},set(s){n("set:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},file(s){return n("file:"),this.dispatch([s.name,s.size,s.type,s.lastModfied])},blob(){if(e.ignoreUnknown)return n("[blob]");throw new Error(`Hashing Blob objects is currently not supported 40Use "options.replacer" or "options.ignoreUnknown" 41`)},domwindow(){return n("domwindow")},bigint(s){return n("bigint:"+s.toString())},process(){return n("process")},timer(){return n("timer")},pipe(){return n("pipe")},tcp(){return n("tcp")},udp(){return n("udp")},tty(){return n("tty")},statwatcher(){return n("statwatcher")},securecontext(){return n("securecontext")},connection(){return n("connection")},zlib(){return n("zlib")}
41,context(){return n("context")},nodescript(){return n("nodescript")},httpparser(){return n("httpparser")},dataview(){return n("dataview")},signal(){return n("signal")},fsevent(){return n("fsevent")},tlswrap(){return n("tlswrap")}}}const Tm="[native code] }",cC=Tm.length;function bd(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-cC)===Tm}class rn{constructor(t,r){N(this,"words");N(this,"sigBytes");t=this.words=t||[],this.sigBytes=r===void 0?t.length*4:r}toString(t){return(t||lC).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let r=0;r<t.sigBytes;r++){const n=t.words[r>>>2]>>>24-r%4*8&255;this.words[this.sigBytes+r>>>2]|=n<<24-(this.sigBytes+r)%4*8}else for(let r=0;r<t.sigBytes;r+=4)this.words[this.sigBytes+r>>>2]=t.words[r>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new rn([...this.words])}}const lC={stringify(e){const t=[];for(let r=0;r<e.sigBytes;r++){const n=e.words[r>>>2]>>>24-r%4*8&255;t.push((n>>>4).toString(16),(n&15).toString(16))}return t.join("")}},uC={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=[];for(let n=0;n<e.sigBytes;n+=3){const s=e.words[n>>>2]>>>24-n%4*8&255,i=e.words[n+1>>>2]>>>24-(n+1)%4*8&255,o=e.words[n+2>>>2]>>>24-(n+2)%4*8&255,a=s<<16|i<<8|o;for(let c=0;c<4&&n*8+c*6<e.sigBytes*8;c++)r.push(t.charAt(a>>>6*(3-c)&63))}return r.join("")}},fC={parse(e){const t=e.length,r=[];for(let n=0;n<t;n++)r[n>>>2]|=(e.charCodeAt(n)&255)<<24-n%4*8;return new rn(r,t)}},hC={parse(e){return fC.parse(unescape(encodeURIComponent(e)))}};class dC{constructor(){N(this,"_data",new rn);N(this,"_nDataBytes",0);N(this,"_minBufferSize",0);N(this,"blockSize",512/32)}reset(){this._data=new rn,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=hC.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,r){}_process(t){let r,n=this._data.sigBytes/(this.blockSize*4);t?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const s=n*this.blockSize,i=Math.min(s*4,this._data.sigBytes);if(s){for(let o=0;o<s;o+=this.blockSize)this._doProcessBlock(this._data.words,o);r=this._data.words.splice(0,s),this._data.sigBytes-=i}return new rn(r,i)}}class pC extends dC{update(t){return this._append(t),this._process(),this}finalize(t){t&&this._append(t)}}const wd=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],gC=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],mn=[];class yC extends pC{constructor(){super(...arguments);N(this,"_hash",new rn([...wd]))}reset(){super.reset(),this._hash=new rn([...wd])}_doProcessBlock(r,n){const s=this._hash.words;let i=s[0],o=s[1],a=s[2],c=s[3],u=s[4],l=s[5],f=s[6],h=s[7];for(let d=0;d<64;d++){if(d<16)mn[d]=r[n+d]|0;else{const b=mn[d-15],w=(b<<25|b>>>7)^(b<<14|b>>>18)^b>>>3,T=mn[d-2],x=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;mn[d]=w+mn[d-7]+x+mn[d-16]}const p=u&l^~u&f,g=i&o^i&a^o&a,_=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),v=(u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25),y=h+v+p+gC[d]+mn[d],m=_+g;h=f,f=l,l=u,u=c+y|0,c=a,a=o,o=i,i=y+m|0}s[0]=s[0]+i|0,s[1]=s[1]+o|0,s[2]=s[2]+a|0,s[3]=s[3]+c|0,s[4]=s[4]+u|0,s[5]=s[5]+l|0,s[6]=s[6]+f|0,s[7]=s[7]+h|0}finalize(r){super.finalize(r);const n=this._nDataBytes*8,s=this._data.sigBytes*8;return this._data.words[s>>>5]|=128<<24-s%32,this._data.words[(s+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(s+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function mC(e){return new yC().finalize(e).toString(uC)}function vC(e,t={}){const r=typeof e=="string"?e:oC(e,t);return mC(r).slice(0,10)}var bc={},wc,Sd;function _C(){if(Sd)return wc;Sd=1;const e=Symbol("values"),t=Symbol("kStorage"),r=Symbol("kStorages"),n=Symbol("kTransformer"),s=Symbol("kTTL"),i=Symbol("kOnDedupe"),o=Symbol("kOnError"),a=Symbol("kOnHit"),c=Symbol("kOnMiss"),u=Symbol("kStale");return wc={kValues:e,kStorage:t,kStorages:r,kTransfromer:n,kTTL:s,kOnDedupe:i,kOnError:o,kOnHit:a,kOnMiss:c,kStale:u},wc}var Sc={exports:{}},Ed;function km(){return Ed||(Ed=1,function(e,t){const{hasOwnProperty:r}=Object.prototype,n=v();n.configure=v,n.stringify=n,n.default=n,t.stringify=n,t.configure=v,e.exports=n;const s=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function i(y){return y.length<5e3&&!s.test(y)?`"${y}"`:JSON.stringify(y)}function o(y,m){if(y.length>200||m)return y.sort(m);for(let b=1;b<y.length;b++){const w=y[b];let T=b;for(;T!==0&&y[T-1]>w;)y[T]=y[T-1],T--;y[T]=w}return y}const a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function c(y){return a.call(y)!==void 0&&y.length!==0}function u(y,m,b){y.length<b&&(b=y.length);const w=m===","?"":" ";let T=`"0":${w}${y[0]}`;for(let x=1;x<b;x++)T+=`${m}"${x}":${w}${y[x]}`;return T}function l(y){if(r.call(y,"circularValue")){const m=y.circularValue;if(typeof m=="string")return`"${m}"`;if(m==null)return m;if(m===Error||m===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};
41throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function f(y){let m;if(r.call(y,"deterministic")&&(m=y.deterministic,typeof m!="boolean"&&typeof m!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return m===void 0?!0:m}function h(y,m){let b;if(r.call(y,m)&&(b=y[m],typeof b!="boolean"))throw new TypeError(`The "${m}" argument must be of type boolean`);return b===void 0?!0:b}function d(y,m){let b;if(r.call(y,m)){if(b=y[m],typeof b!="number")throw new TypeError(`The "${m}" argument must be of type number`);if(!Number.isInteger(b))throw new TypeError(`The "${m}" argument must be an integer`);if(b<1)throw new RangeError(`The "${m}" argument must be >= 1`)}return b===void 0?1/0:b}function p(y){return y===1?"1 item":`${y} items`}function g(y){const m=new Set;for(const b of y)(typeof b=="string"||typeof b=="number")&&m.add(String(b));return m}function _(y){if(r.call(y,"strict")){const m=y.strict;if(typeof m!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(m)return b=>{let w=`Object can not safely be stringified. Received type ${typeof b}`;throw typeof b!="function"&&(w+=` (${b.toString()})`),new Error(w)}}}function v(y){y={...y};const m=_(y);m&&(y.bigint===void 0&&(y.bigint=!1),"circularValue"in y||(y.circularValue=Error));const b=l(y),w=h(y,"bigint"),T=f(y),x=typeof T=="function"?T:void 0,M=d(y,"maximumDepth"),A=d(y,"maximumBreadth");function H(X,R,U,O,B,Z){let E=R[X];switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(X)),E=O.call(R,X,E),typeof E){case"string":return i(E);case"object":{if(E===null)return"null";if(U.indexOf(E)!==-1)return b;let $="",re=",";const V=Z;if(Array.isArray(E)){if(E.length===0)return"[]";if(M<U.length+1)return'"[Array]"';U.push(E),B!==""&&(Z+=B,$+=` 42${Z}`,re=`, 43${Z}`);const q=Math.min(E.length,A);let ue=0;for(;ue<q-1;ue++){const S=H(String(ue),E,U,O,B,Z);$+=S!==void 0?S:"null",$+=re}const be=H(String(ue),E,U,O,B,Z);if($+=be!==void 0?be:"null",E.length-1>A){const S=E.length-A-1;$+=`${re}"... ${p(S)} not stringified"`}return B!==""&&($+=` 44${V}`),U.pop(),`[${$}]`}let oe=Object.keys(E);const se=oe.length;if(se===0)return"{}";if(M<U.length+1)return'"[Object]"';let C="",I="";B!==""&&(Z+=B,re=`, 45${Z}`,C=" ");const j=Math.min(se,A);T&&!c(E)&&(oe=o(oe,x)),U.push(E);for(let q=0;q<j;q++){const ue=oe[q],be=H(ue,E,U,O,B,Z);be!==void 0&&($+=`${I}${i(ue)}:${C}${be}`,I=re)}if(se>A){const q=se-A;$+=`${I}"...":${C}"${p(q)} not stringified"`,I=re}return B!==""&&I.length>1&&($=` 46${Z}${$} 47${V}`),U.pop(),`{${$}}`}case"number":return isFinite(E)?String(E):m?m(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(E);default:return m?m(E):void 0}}function J(X,R,U,O,B,Z){switch(typeof R=="object"&&R!==null&&typeof R.toJSON=="function"&&(R=R.toJSON(X)),typeof R){case"string":return i(R);case"object":{if(R===null)return"null";if(U.indexOf(R)!==-1)return b;const E=Z;let $="",re=",";if(Array.isArray(R)){if(R.length===0)return"[]";if(M<U.length+1)return'"[Array]"';U.push(R),B!==""&&(Z+=B,$+=` 48${Z}`,re=`, 49${Z}`);const se=Math.min(R.length,A);let C=0;for(;C<se-1;C++){const j=J(String(C),R[C],U,O,B,Z);$+=j!==void 0?j:"null",$+=re}const I=J(String(C),R[C],U,O,B,Z);if($+=I!==void 0?I:"null",R.length-1>A){const j=R.length-A-1;$+=`${re}"... ${p(j)} not stringified"`}return B!==""&&($+=` 50${E}`),U.pop(),`[${$}]`}U.push(R);let V="";B!==""&&(Z+=B,re=`, 51${Z}`,V=" ");let oe="";for(const se of O){const C=J(se,R[se],U,O,B,Z);C!==void 0&&($+=`${oe}${i(se)}:${V}${C}`,oe=re)}return B!==""&&oe.length>1&&($=` 52${Z}${$} 53${E}`),U.pop(),`{${$}}`}case"number":return isFinite(R)?String(R):m?m(R):"null";case"boolean":return R===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(R);default:return m?m(R):void 0}}function D(X,R,U,O,B){switch(typeof R){case"string":return i(R);case"object":{if(R===null)return"null";if(typeof R.toJSON=="function"){if(R=R.toJSON(X),typeof R!="object")return D(X,R,U,O,B);if(R===null)return"null"}if(U.indexOf(R)!==-1)return b;const Z=B;if(Array.isArray(R)){if(R.length===0)return"[]";if(M<U.length+1)return'"[Array]"';U.push(R),B+=O;let C=` 54${B}`;const I=`, 55${B}`,j=Math.min(R.length,A);let q=0;for(;q<j-1;q++){const be=D(String(q),R[q],U,O,B);C+=be!==void 0?be:"null",C+=I}const ue=D(String(q),R[q],U,O,B);if(C+=ue!==void 0?ue:"null",R.length-1>A){const be=R.length-A-1;C+=`${I}"... ${p(be)} not stringified"`}return C+=` 56${Z}`,U.pop(),`[${C}]`}let E=Object.keys(R);const $=E.length;if($===0)return"{}";if(M<U.length+1)return'"[Object]"';B+=O;const re=`, 57${B}`;let V="",oe="",se=Math.min($,A);c(R)&&(V+=u(R,re,A),E=E.slice(R.length),se-=R.length,oe=re),T&&(E=o(E,x)),U.push(R);for(let C=0;C<se;C++){const I=E[C],j=D(I,R[I],U,O,B);j!==void 0&&(V+=`${oe}${i(I)}: ${j}`,oe=re)}if($>A){const C=$-A;V+=`${oe}"...": "${p(C)} not stringified"`,oe=re}return oe!==""&&(V=` 58${B}${V} 59${Z}`),U.pop(),`{${V}}`}case"number":return isFinite(R)?String(R):m?m(R):"null";case"boolean":return R===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(R);default:return m?m(R):void 0}}function G(X,R,U){switch(typeof R){case"string":return i(R);case"object":{if(R===null)return"null";if(typeof R.toJSON=="function"){if(R=R.toJSON(X),typeof R!="object")return G(X,R,U);if(R===null)return"null"}if(U.indexOf(R)!==-1)return b;let O="";const B=R.length!==void 0;if(B&&Array.isArray(R)){if(R.length===0)return"[]";if(M<U.length+1)return'"[Array]"';U.push(R);const V=Math.min(R.length,A);let oe=0;for(;oe<V-1;oe++){const C=G(String(oe),R[oe],U);O+=C!==void 0?C:"null",O+=","}const se=G(String(oe),R[oe],U);if(O+=se!==void 0?se:"null",R.length-1>A){const C=R.length-A-1;O+=`,"... ${p(C)} not stringified"`}return U.pop(),`[${O}]`}let Z=Object.keys(R);const E=Z.length;if(E===0)return"{}";if(M<U.length+1)return'"[Object]"';let $="",re=Math.min(E,A);B&&c(R)&&(O+=u(R,",",A),Z=Z.slice(R.length),re-=R.length,$=","),T&&(Z=o(Z,x)),U.push(R);for(let V=0;V<re;V++){const oe=Z[V],se=G(oe,R[oe],U);se!==void 0&&(O+=`${$}${i(oe)}:${se}`,$=",")}if(E>A){const V=E-A;O+=`${$}"...":"${p(V)} not stringified"`}return U.pop(),`{${O}}`}case"number":return isFinite(R)?String(R):m?m(R):"null";case"boolean":return R===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(R);default:return m?m(R):void 0}}function ae(X,R,U){if(arguments.length>1){let O="";if(typeof U=="number"?O=" ".repeat(Math.min(U,10)):typeof U=="string"&&(O=U.slice(0,10)),R!=null){if(typeof R=="function")return H("",{"":X},[],R,O,"");if(Array.isArray(R))return J("",X,[],g(R),O,"")}if(O.length!==0)return D("",X,[],O,"")}return G("",X,[])}return ae}}
59(Sc,Sc.exports)),Sc.exports}var Ec,Td;function ia(){if(Td)return Ec;Td=1;function e(c,u){const l=[];let f=0;for(let h=0;h<c.length;h++)for(let d=f;d<u.length;d++)c[h]===u[d]&&(l.push(d),f=d+1);return l}function t(c,u){const l=[];let f=0;for(let h=0;h<c.length;h++)for(let d=f;d<u.length;d++)c[h]!==u[d]&&(l.push(u[d]),f=d+1);return l}function r(c,u){let l=0,f=c.length-1;for(;l<=f;){const h=(l+f)/2|0;if(c[h]===u)return h;c[h]<u?l=h+1:f=h-1}return-1}function n(c){return c*Math.random()|0}function s(c,u){return c=Math.floor(c),u=Math.floor(u),c+n(1+u-c)}function i(c,u){if(c.length<1||u<1)return[];const l=Math.min(c.length,u),f=s(1,l),h=new Set;for(let p=0;p<f;p++)h.add(n(c.length));const d=[];for(const p of h)d.push(c[p]);return d}function o(c,u){if(c==="*"||c.length===u.length&&c===u)return!0;let l=0,f=0;for(;l<c.length&&f<u.length;){if(c[l]===u[f]){l++,f++;continue}if(c[l]==="*"){if(c[l+1]===u[f]){l++;continue}f++;continue}return!1}return l>=c.length-1}function a(){const c=()=>{};return{fatal:c,error:c,warn:c,info:c,debug:c,trace:c}}return Ec={findNotMatching:t,findMatchingIndexes:e,bsearchIndex:r,wildcardMatch:o,randomSubset:i,abstractLogging:a,isServerSide:typeof window>"u"},Ec}var Tc,kd;function xm(){if(kd)return Tc;kd=1;class e{constructor(r){this.options=r}async get(r){throw new Error("storage get method not implemented")}async set(r,n,s,i){throw new Error("storage set method not implemented")}async remove(r){throw new Error("storage remove method not implemented")}async invalidate(r){throw new Error("storage invalidate method not implemented")}async clear(r){throw new Error("storage clear method not implemented")}async refresh(){throw new Error("storage refresh method not implemented")}}return Tc=e,Tc}var kc,xd;function bC(){if(xd)return kc;xd=1;const e=km(),t=xm(),{findNotMatching:r,randomSubset:n,abstractLogging:s}=ia(),i=64,o=64,a=60;class c extends t{constructor(l={}){if(!l.client||typeof l.client!="object")throw new Error("Redis client is required");if(super(l),l.invalidation&&l.invalidation.referencesTTL&&(typeof l.invalidation.referencesTTL!="number"||l.invalidation.referencesTTL<1))throw new Error("invalidation.referencesTTL must be a positive integer greater than 1");this.log=l.log||s(),this.store=l.client,this.invalidation=!!l.invalidation,this.referencesTTL=l.invalidation&&l.invalidation.referencesTTL||a}getReferenceKeyLabel(l){return`r:${l}`}getKeyReferenceLabel(l){return`k:${l}`}async get(l){this.log.debug({msg:"acd/storage/redis.get",key:l});try{const f=await this.store.get(l);if(!f){if(!this.invalidation)return;this.clearReferences(l);return}return JSON.parse(f)}catch(f){this.log.error({msg:"acd/storage/redis.get error",err:f,key:l})}}async getTTL(l){this.log.debug({msg:"acd/storage/memory.getTTL",key:l});let f=await this.store.pttl(l);return f<0?0:(f=Math.ceil(f/1e3),f)}async set(l,f,h,d){if(this.log.debug({msg:"acd/storage/redis.set key",key:l,value:f,ttl:h,references:d}),h=Number(h),!(!h||h<0))try{if(await this.store.set(l,e(f),"EX",h),!d||d.length<1)return;if(!this.invalidation){this.log.warn({msg:"acd/storage/redis.set, invalidation is disabled, references are useless",key:l,references:d});return}const p=[],g=await this.store.smembers(this.getKeyReferenceLabel(l));if(this.log.debug({msg:"acd/storage/redis.set current references",key:l,currentReferences:g}),g.length>1){g.sort(),d.sort();const y=r(d,g);for(const m of y)p.push(["srem",this.getReferenceKeyLabel(m),l]);p.push(["del",this.getKeyReferenceLabel(l)])}const _=g.length>1?r(g,d):d;this.log.debug({msg:"acd/storage/redis.set references to add",key:l,referencesToAdd:_});for(let y=0;y<_.length;y++){const m=_[y],b=this.getReferenceKeyLabel(m);p.push(["sadd",b,l]),p.push(["expire",b,this.referencesTTL])}const v=this.getKeyReferenceLabel(l);p.push(["sadd",v,d]),p.push(["expire",v,h]),this.log.debug({msg:"acd/storage/redis.set references writes",writes:p}),await this.store.pipeline(p).exec()}catch(p){this.log.error({msg:"acd/storage/redis.set error",err:p,key:l,ttl:h,references:d})}}async remove(l){this.log.debug({msg:"acd/storage/redis.remove",key:l});try{const f=await this.store.del(l)>0;return f&&this.invalidation&&await this.clearReferences(l),f}catch(f){this.log.error({msg:"acd/storage/redis.remove error",err:f,key:l})}}
59async invalidate(l){if(!this.invalidation)return this.log.warn({msg:"acd/storage/redis.invalidate, exit due invalidation is disabled"}),[];this.log.debug({msg:"acd/storage/redis.invalidate",references:l});try{return Array.isArray(l)?await this._invalidateReferences(l):await this._invalidateReference(l)}catch(f){return this.log.error({msg:"acd/storage/redis.invalidate error",err:f,references:l}),[]}}async _invalidateReferences(l,f=!0){const h=l.map(_=>["smembers",f?this.getReferenceKeyLabel(_):_]),d=await this.store.pipeline(h).exec();this.log.debug({msg:"acd/storage/redis._invalidateReferences keys",keys:d});const p=[],g=[];for(let _=0;_<d.length;_++){const v=d[_][1];if(v){this.log.debug({msg:"acd/storage/redis._invalidateReferences got keys to be invalidated",keys:v});for(let y=0;y<v.length;y++){const m=v[y];this.log.debug({msg:"acd/storage/redis._invalidateReferences del key"+m}),g.push(m),p.push(["del",m])}}}return await this.store.pipeline(p).exec(),await this.clearReferences(g),g}async _invalidateReference(l){let f;if(l.includes("*")){const p=await this.store.keys(this.getReferenceKeyLabel(l));return this._invalidateReferences(p,!1)}else f=await this.store.smembers(this.getReferenceKeyLabel(l));this.log.debug({msg:"acd/storage/redis._invalidateReference keys",keys:f});const h=[],d=[];for(let p=0;p<f.length;p++){const g=f[p];this.log.debug({msg:"acd/storage/redis._invalidateReference del key"+g}),d.push(g),h.push(["del",g])}return await this.store.pipeline(h).exec(),await this.clearReferences(d),d}async clear(l){this.log.debug({msg:"acd/storage/redis.clear",name:l});try{if(!l){await this.store.flushall();return}const f=await this.store.keys(`${l}*`);this.log.debug({msg:"acd/storage/redis.clear keys",keys:f});const h=f.map(d=>["del",d]);if(await this.store.pipeline(h).exec(),!this.invalidation)return;await this.clearReferences(f)}catch(f){this.log.error({msg:"acd/storage/redis.clear error",err:f,name:l})}}async refresh(){try{await this.store.flushall()}catch(l){this.log.error({msg:"acd/storage/redis.refresh error",err:l})}}async clearReferences(l){try{if(!l){this.log.warn({msg:"acd/storage/redis.clearReferences invalid call due to empty key"});return}Array.isArray(l)||(l=[l]);const f=l.map(p=>["smembers",this.getKeyReferenceLabel(p)]),h=await this.store.pipeline(f).exec();this.log.debug({msg:"acd/storage/redis.clearReferences references",keys:l,referencesKeys:h});const d={};for(let p=0;p<l.length;p++){for(let _=0;_<h[p][1].length;_++){const v=this.getReferenceKeyLabel(h[p][1][_]);d[v]||(d[v]=["srem",v,l])}const g=this.getKeyReferenceLabel(l[p]);d[g]=["del",g]}this.log.debug({msg:"acd/storage/redis.clearReferences writes pipeline",writes:d}),await this.store.pipeline(Object.values(d)).exec()}catch(f){this.log.error({msg:"acd/storage/redis.clearReferences error",err:f})}}async gc(l="lazy",f={}){if(this.log.debug({msg:"acd/storage/redis.gc",mode:l,options:f}),!this.invalidation){this.log.warn({msg:"acd/storage/redis.gc does not run due to invalidation is disabled"});return}l!=="strict"&&l!=="lazy"&&(l="lazy");const h={references:{scanned:[],removed:[]},keys:{scanned:new Set,removed:new Set},loops:0,cursor:0,error:null};try{let d=0,p=o;if(f.chunk&&(typeof f.chunk!="number"||f.chunk<1))return h.error=new Error("chunk must be a positive integer greater than 1"),h;if(f.lazy){if(f.lazy.chunk){if(typeof f.lazy.chunk!="number"||f.lazy.chunk<1)return h.error=new Error("lazy.chunk must be a positive integer greater than 1"),h;p=f.lazy.chunk}if(f.lazy.cursor){if(typeof f.lazy.cursor!="number"||f.lazy.cursor<0)return h.error=new Error("lazy.cursor must be a positive integer greater than 0"),h;d=f.lazy.cursor}}const g=f.chunk||i,_=Math.min(p,g),v=d;let y=-1,m=-1;do{h.loops++;const b=await this.store.scan(d,"match","r:*","count",_);d=Number(b[0]),y=b[1].length;const w=l==="lazy"?n(b[1],p):b[1];h.references.scanned=h.references.scanned.concat(w);let T=[];for(let X=0;X<w.length;X++){const R=w[X];T.push(["smembers",R])}const x=await this.store.pipeline(T).exec(),M={},A={};for(let X=0;X<x.length;X++){const R=x[X],U=w[X];A[U]=R[1];for(let O=0;O<R[1].length;O++){const B=R[1][O];M[B]?M[B].push(U):M[B]=[U],h.keys.scanned.add(B)}}const H=Object.keys(M);T=H.map(X=>["exists",X]);const J=await this.store.pipeline(T).exec(),D={};for(let X=0;X<H.length;X++){const R=H[X];if(J[X][1]!==1)for(let U=0;U<M[R].length;U++){const O=M[R][U];D[O]?D[O].push(R):D[O]=[R],h.keys.removed.add(R)}}const G=Object.keys(D),ae=[];for(let X=0;X<G.length;X++){const R=G[X];A[R].length===D[R].length?(ae.push(["del",R]),h.references.removed.push(R)):ae.push(["srem",R,D[R]])}if(await this.store.pipeline(ae).exec(),m=ae.length,l==="lazy"&&h.references.scanned.length>=p)break}while(v!==d&&y>0&&m>0);h.cursor=d,h.keys.scanned=Array.from(h.keys.scanned),h.keys.removed=Array.from(h.keys.removed)}catch(d){this.log.error({msg:"acd/storage/redis.gc error",err:d}),h.error=d}return h}}return kc=c,kc}var xc,Cd;function wC(){if(Cd)return xc;Cd=1;function e(t){if(typeof t!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=t}return typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=function(){return this}),e.of=function(){var t=arguments,r=t.length,n=0;return new e(function(){return n>=r?{done:!0}:{done:!1,value:t[n++]}})},e.empty=function(){var t=new e(function(){return{done:!0}});return t},e.fromSequence=function(t){var r=0,n=t.length;return new e(function(){return r>=n?{done:!0}:{done:!1,value:t[r++]}})},e.is=function(t){return t instanceof e?!0:typeof t=="object"&&t!==null&&typeof t.next=="function"},xc=e,xc}var Cc={},Rd;function SC(){return Rd||(Rd=1,Cc.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",Cc.SYMBOL_SUPPORT=typeof Symbol<"u"),Cc}var Rc,Ad;function Cm(){if(Ad)return Rc;Ad=1;var e=SC(),t=e.ARRAY_BUFFER_SUPPORT,r=e.SYMBOL_SUPPORT;return Rc=function(n,s){var i,o,a,c,u;
59if(!n)throw new Error("obliterator/forEach: invalid iterable.");if(typeof s!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(n)||t&&ArrayBuffer.isView(n)||typeof n=="string"||n.toString()==="[object Arguments]"){for(a=0,c=n.length;a<c;a++)s(n[a],a);return}if(typeof n.forEach=="function"){n.forEach(s);return}if(r&&Symbol.iterator in n&&typeof n.next!="function"&&(n=n[Symbol.iterator]()),typeof n.next=="function"){for(i=n,a=0;u=i.next(),u.done!==!0;)s(u.value,a),a++;return}for(o in n)n.hasOwnProperty(o)&&s(n[o],o)},Rc}var Od={},$d;function Rm(){return $d||($d=1,function(e){var t=Math.pow(2,8)-1,r=Math.pow(2,16)-1,n=Math.pow(2,32)-1,s=Math.pow(2,7)-1,i=Math.pow(2,15)-1,o=Math.pow(2,31)-1;e.getPointerArray=function(c){var u=c-1;if(u<=t)return Uint8Array;if(u<=r)return Uint16Array;if(u<=n)return Uint32Array;throw new Error("mnemonist: Pointer Array of size > 4294967295 is not supported.")},e.getSignedPointerArray=function(c){var u=c-1;return u<=s?Int8Array:u<=i?Int16Array:u<=o?Int32Array:Float64Array},e.getNumberType=function(c){return c===(c|0)?Math.sign(c)===-1?c<=127&&c>=-128?Int8Array:c<=32767&&c>=-32768?Int16Array:Int32Array:c<=255?Uint8Array:c<=65535?Uint16Array:Uint32Array:Float64Array};var a={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};e.getMinimalRepresentation=function(c,u){var l=null,f=0,h,d,p,g,_;for(g=0,_=c.length;g<_;g++)p=u?u(c[g]):c[g],d=e.getNumberType(p),h=a[d.name],h>f&&(f=h,l=d);return l},e.isTypedArray=function(c){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(c)},e.concat=function(){var c=0,u,l,f;for(u=0,f=arguments.length;u<f;u++)c+=arguments[u].length;var h=new arguments[0].constructor(c);for(u=0,l=0;u<f;u++)h.set(arguments[u],l),l+=arguments[u].length;return h},e.indices=function(c){for(var u=e.getPointerArray(c),l=new u(c),f=0;f<c;f++)l[f]=f;return l}}(Od)),Od}var Qn={},Pd;function EC(){if(Pd)return Qn;Pd=1;var e=Cm(),t=Rm();function r(o){return Array.isArray(o)||t.isTypedArray(o)}function n(o){if(typeof o.length=="number")return o.length;if(typeof o.size=="number")return o.size}function s(o){var a=n(o),c=typeof a=="number"?new Array(a):[],u=0;return e(o,function(l){c[u++]=l}),c}function i(o){var a=n(o),c=typeof a=="number"?t.getPointerArray(a):Array,u=typeof a=="number"?new Array(a):[],l=typeof a=="number"?new c(a):[],f=0;return e(o,function(h){u[f]=h,l[f]=f++}),[u,l]}return Qn.isArrayLike=r,Qn.guessLength=n,Qn.toArray=s,Qn.toArrayWithIndices=i,Qn}var Ac,Id;function TC(){if(Id)return Ac;Id=1;var e=wC(),t=Cm(),r=Rm(),n=EC();function s(i,o,a){if(arguments.length<2&&(a=i,i=null,o=null),this.capacity=a,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");if(!isFinite(this.capacity)||Math.floor(this.capacity)!==this.capacity)throw new Error("mnemonist/lru-cache: capacity should be a finite positive integer.");var c=r.getPointerArray(a);this.forward=new c(a),this.backward=new c(a),this.K=typeof i=="function"?new i(a):new Array(a),this.V=typeof o=="function"?new o(a):new Array(a),this.size=0,this.head=0,this.tail=0,this.items={}}return s.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}},s.prototype.splayOnTop=function(i){var o=this.head;if(this.head===i)return this;var a=this.backward[i],c=this.forward[i];return this.tail===i?this.tail=a:this.backward[c]=a,this.forward[a]=c,this.backward[o]=i,this.head=i,this.forward[i]=o,this},s.prototype.set=function(i,o){var a=this.items[i];if(typeof a<"u"){this.splayOnTop(a),this.V[a]=o;return}this.size<this.capacity?a=this.size++:(a=this.tail,this.tail=this.backward[a],delete this.items[this.K[a]]),this.items[i]=a,this.K[a]=i,this.V[a]=o,this.forward[a]=this.head,this.backward[this.head]=a,this.head=a},s.prototype.setpop=function(i,o){var a=null,c=null,u=this.items[i];return typeof u<"u"?(this.splayOnTop(u),a=this.V[u],this.V[u]=o,{evicted:!1,key:i,value:a}):(this.size<this.capacity?u=this.size++:(u=this.tail,this.tail=this.backward[u],a=this.V[u],c=this.K[u],delete this.items[c]),this.items[i]=u,this.K[u]=i,this.V[u]=o,this.forward[u]=this.head,this.backward[this.head]=u,this.head=u,c?{evicted:!0,key:c,value:a}:null)},s.prototype.has=function(i){return i in this.items},s.prototype.get=function(i){var o=this.items[i];if(!(typeof o>"u"))return this.splayOnTop(o),this.V[o]},s.prototype.peek=function(i){var o=this.items[i];if(!(typeof o>"u"))return this.V[o]},s.prototype.forEach=function(i,o){o=arguments.length>1?o:this;for(var a=0,c=this.size,u=this.head,l=this.K,f=this.V,h=this.forward;a<c;)i.call(o,f[u],l[u],this),u=h[u],a++},s.prototype.keys=function(){var i=0,o=this.size,a=this.head,c=this.K,u=this.forward;return new e(function(){if(i>=o)return{done:!0};var l=c[a];return i++,i<o&&(a=u[a]),{done:!1,value:l}})},s.prototype.values=function(){var i=0,o=this.size,a=this.head,c=this.V,u=this.forward;return new e(function(){if(i>=o)return{done:!0};var l=c[a];return i++,i<o&&(a=u[a]),{done:!1,value:l}})},s.prototype.entries=function(){var i=0,o=this.size,a=this.head,c=this.K,u=this.V,l=this.forward;return new e(function(){if(i>=o)return{done:!0};var f=c[a],h=u[a];return i++,i<o&&(a=l[a]),{done:!1,value:[f,h]}})},typeof Symbol<"u"&&(s.prototype[Symbol.iterator]=s.prototype.entries),s.prototype.inspect=function(){for(var i=new Map,o=this.entries(),a;a=o.next(),!a.done;)i.set(a.value[0],a.value[1]);return Object.defineProperty(i,"constructor",{value:s,enumerable:!1}),i},typeof Symbol<"u"&&(s.prototype[Symbol.for("nodejs.util.inspect.custom")]=s.prototype.inspect),s.from=function(i,o,a,c){if(arguments.length<2){if(c=n.guessLength(i),typeof c!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(c=o,o=null,a=null);var u=new s(o,a,c);return t(i,function(l,f){u.set(f,l)}),u},Ac=s,Ac}var Oc,jd;function kC(){if(jd)return Oc;jd=1;const e=TC(),{abstractLogging:t}=ia(),r=xm(),{findMatchingIndexes:n,findNotMatching:s,bsearchIndex:i,wildcardMatch:o}=ia(),a=typeof globalThis.setImmediate<"u"?globalThis.setImmediate:(d,...p)=>setTimeout(d,0,...p),c=1024;class u extends r{constructor(p={}){if(p.size&&(typeof p.size!="number"||p.size<1))throw new Error("size must be a positive integer greater than 0");super(p),this.size=p.size||c,this.log=p.log||t(),this.invalidation=p.invalidation||!1,this.init()}init(){this.store=new e(this.size),this.invalidation&&(this.keysReferences=new Map,this.referencesKeys=new Map)}get(p){this.log.debug({msg:"acd/storage/memory.get",key:p});const g=this.store.get(p);if(g){if(this.log.debug({msg:"acd/storage/memory.get, entry",entry:g,now:f()}),g.start+g.ttl>f())return this.log.debug({msg:"acd/storage/memory.get, key is NOT expired",key:p,entry:g}),g.value;this.log.debug({msg:"acd/storage/memory.get, key is EXPIRED",key:p,entry:g}),a(()=>this.remove(p))}}getTTL(p){this.log.debug({msg:"acd/storage/memory.getTTL",key:p});const g=this.store.peek(p);let _=0;return g&&(_=g.start+g.ttl-f(),_<0&&(_=0)),_}set(p,g,_,v){if(this.log.debug({msg:"acd/storage/memory.set",key:p,value:g,ttl:_,references:v}),_=Number(_),!_||_<0)return;const y=this.store.has(p),m=this.store.setpop(p,{value:g,ttl:_,start:f()});if(this.log.debug({msg:"acd/storage/memory.set, evicted",removed:m}),m&&m.evicted&&(this.log.debug({msg:"acd/storage/memory.set, remove evicted key",key:m.key}),this._removeReferences([m.key])),!v||v.length<1)return;if(!this.invalidation){this.log.warn({msg:"acd/storage/memory.set, invalidation is disabled, references are useless"});return}v=[...new Set(v)];let b;if(y&&(b=this.keysReferences.get(p),this.log.debug({msg:"acd/storage/memory.set, current keys-references",key:p,references:b}),b)){b.sort(),v.sort();const T=s(v,b);for(const x of T){const M=this.referencesKeys.get(x);if(!M)continue;const A=i(M,p);if(!(A<0)){if(M.splice(A,1),M.length<1){this.referencesKeys.delete(x);continue}this.referencesKeys.set(x,M)}}}const w=b?s(b,v):v;for(let T=0;T<w.length;T++){const x=w[T];let M=this.referencesKeys.get(x);M?(this.log.debug({msg:"acd/storage/memory.set, add reference-key",key:p,reference:x}),M.push(p)):M=[p],this.log.debug({msg:"acd/storage/memory.set, set reference-keys",keys:M,reference:x}),this.referencesKeys.set(x,M)}this.keysReferences.set(p,v)}remove(p){this.log.debug({msg:"acd/storage/memory.remove",key:p});const g=this._removeKey(p);return this._removeReferences([p]),g}_removeKey(p){return this.log.debug({msg:"acd/storage/memory._removeKey",key:p}),this.store.has(p)?(this.store.set(p,void 0),!0):!1}_removeReferences(p){if(!this.invalidation)return;this.log.debug({msg:"acd/storage/memory._removeReferences",keys:p});const g=new Set;for(let _=0;_<p.length;_++){const v=p[_],y=this.keysReferences.get(v);if(y){for(let m=0;m<y.length;m++)g.add(y[m]);this.log.debug({msg:"acd/storage/memory._removeReferences, delete key-references",key:v}),this.keysReferences.delete(v)}}this._removeReferencesKeys([...g],p)}_removeReferencesKeys(p,g){g.sort(),this.log.debug({msg:"acd/storage/memory._removeReferencesKeys",references:p,keys:g});for(let _=0;_<p.length;_++){const v=p[_],y=this.referencesKeys.get(v);if(this.log.debug({msg:"acd/storage/memory._removeReferencesKeys, get reference-key",reference:v,keys:g,referencesKeys:y}),!y)continue;const m=n(g,y);if(this.log.debug({msg:"acd/storage/memory._removeReferencesKeys, removing",reference:v,referencesToRemove:m,referencesKeys:y}),m.length===y.length){this.log.debug({msg:"acd/storage/memory._removeReferencesKeys, delete",reference:v}),this.referencesKeys.delete(v);continue}for(let b=m.length-1;b>=0;b--)this.log.debug({msg:"acd/storage/memory._removeReferencesKeys, remove",reference:v,referencesKeys:y,at:m[b]}),y.splice(m[b],1)}}invalidate(p){return this.invalidation?(this.log.debug({msg:"acd/storage/memory.invalidate",references:p}),Array.isArray(p)?this._invalidateReferences(p):this._invalidateReference(p)):(this.log.warn({msg:"acd/storage/memory.invalidate, exit due invalidation is disabled"}),[])}_invalidateReferences(p){const g=[];for(let _=0;_<p.length;_++){const v=p[_],y=this.referencesKeys.get(v);if(this.log.debug({msg:"acd/storage/memory._invalidateReferences, remove keys on reference",reference:v,keys:y}
59),!!y){for(let m=0;m<y.length;m++){const b=y[m];this.log.debug({msg:"acd/storage/memory._invalidateReferences, remove key on reference",reference:v,key:b}),this._removeKey(b)&&g.push(b)}this.log.debug({msg:"acd/storage/memory._invalidateReferences, remove references of",reference:v,keys:y}),this._removeReferences([...y])}}return g}_invalidateReference(p){if(p.includes("*")){const v=[];for(const y of this.referencesKeys.keys())o(p,y)&&v.push(y);return this._invalidateReferences(v)}const g=this.referencesKeys.get(p),_=[];if(this.log.debug({msg:"acd/storage/memory._invalidateReference, remove keys on reference",reference:p,keys:g}),!g)return _;for(let v=0;v<g.length;v++){const y=g[v];this.log.debug({msg:"acd/storage/memory._invalidateReference, remove key on reference",reference:p,key:y}),this._removeKey(y)&&_.push(y)}return this.log.debug({msg:"acd/storage/memory._invalidateReference, remove references of",reference:p,keys:g}),this._removeReferences([...g]),_}clear(p){if(this.log.debug({msg:"acd/storage/memory.clear",name:p}),!p){if(this.store.clear(),!this.invalidation)return;this.referencesKeys.clear(),this.keysReferences.clear();return}const g=[];this.store.forEach((v,y)=>{this.log.debug({msg:"acd/storage/memory.clear, iterate key",key:y}),y.indexOf(p)===0&&(this.log.debug({msg:"acd/storage/memory.clear, remove key",key:y}),g.push(y))});const _=[];for(let v=0;v<g.length;v++)this._removeKey(g[v])&&_.push(g[v]);return this._removeReferences(_),_}refresh(){this.log.debug({msg:"acd/storage/memory.refresh"}),this.init()}}let l;function f(){if(l!==void 0)return l;l=Math.floor(Date.now()/1e3);const d=setTimeout(h,1e3);return typeof d.unref=="function"&&d.unref(),l}function h(){l=void 0}return Oc=u,Oc}var $c,Ld;function Am(){if(Ld)return $c;Ld=1;const{isServerSide:e}=ia();let t;e&&(t=bC());const r=kC(),n={redis:"redis"};function s(i,o){if(!e&&i===n.redis)throw new Error("Redis storage is not supported in the browser");return i===n.redis?new t(o):new r(o)}return $c=s,$c}var Md;function xC(){if(Md)return bc;Md=1;const{kValues:e,kStorage:t,kStorages:r,kTransfromer:n,kTTL:s,kOnDedupe:i,kOnError:o,kOnHit:a,kOnMiss:c,kStale:u}=_C(),l=km(),f=Am();class h{constructor(v={}){if(!v.storage)throw new Error("storage is required");if(v.ttl&&typeof v.ttl=="number"&&(v.ttl<0||!Number.isInteger(v.ttl)))throw new Error("ttl must be a positive integer greater than 0");if(v.onDedupe&&typeof v.onDedupe!="function")throw new Error("onDedupe must be a function");if(v.onError&&typeof v.onError!="function")throw new Error("onError must be a function");if(v.onHit&&typeof v.onHit!="function")throw new Error("onHit must be a function");if(v.onMiss&&typeof v.onMiss!="function")throw new Error("onMiss must be a function");if(typeof v.stale=="number"&&!(Math.floor(v.stale)===v.stale&&v.stale>=0))throw new Error("stale must be an integer greater or equal to 0");this[e]={},this[t]=v.storage,this[r]=new Map,this[r].set("_default",v.storage),this[n]=v.transformer,this[s]=v.ttl||0,this[i]=v.onDedupe||g,this[o]=v.onError||g,this[a]=v.onHit||g,this[c]=v.onMiss||g,this[u]=v.stale||0}define(v,y,m){if(typeof y=="function"&&(m=y,y={}),v&&this[v])throw new Error(`${v} is already defined in the cache or it is a forbidden name`);if(y=y||{},typeof m!="function")throw new TypeError(`Missing the function parameter for '${v}'`);const b=y.serialize;if(b&&typeof b!="function")throw new TypeError("serialize must be a function");const w=y.references;if(w&&typeof w!="function")throw new TypeError("references must be a function");if(typeof y.ttl!="function"&&y.ttl&&(typeof y.ttl!="number"||y.ttl<0||!Number.isInteger(y.ttl)))throw new Error("ttl must be a positive integer greater than 0");let T;y.storage?(T=f(y.storage.type,y.storage.options),this[r].set(v,T)):T=this[t];const x=y.ttl!==void 0?y.ttl:this[s],M=y.stale!==void 0?y.stale:this[u],A=y.onDedupe||this[i],H=y.onError||this[o],J=y.onHit||this[a],D=y.onMiss||this[c],G=y.transformer||this[n],ae=new d(m,v,b,w,T,G,x,A,H,J,D,M);return this[e][v]=ae,this[v]=ae.add.bind(ae),this}async clear(v,y){if(v){if(!this[e][v])throw new Error(`${v} is not defined in the cache`);await this[e][v].clear(y);return}const m=[];for(const b of Object.values(this[e]))m.push(b.clear());await Promise.all(m)}async get(v,y){if(!this[e][v])throw new Error(`${v} is not defined in the cache`);return this[e][v].get(y)}async set(v,y,m,b,w){if(!this[e][v])throw new Error(`${v} is not defined in the cache`);return this[e][v].set(y,m,b,w)}
59async invalidate(v,y){if(!this[e][v])throw new Error(`${v} is not defined in the cache`);return this[e][v].invalidate(y)}async invalidateAll(v,y="_default"){if(!this[r].has(y))throw new Error(`${y} storage is not defined in the cache`);await this[r].get(y).invalidate(v)}}class d{constructor(v,y,m,b,w,T,x,M,A,H,J,D){this.dedupes=new Map,this.func=v,this.name=y,this.serialize=m,this.references=b,this.storage=w,this.transformer=T,this.ttl=x,this.onDedupe=M,this.onError=A,this.onHit=H,this.onMiss=J,this.stale=D}getKey(v){const y=this.serialize?this.serialize(v):v;return typeof y=="string"?y:l(y)}getStorageKey(v){return`${this.name}~${v}`}getStorageName(){return`${this.name}~`}add(v){try{const y=this.getKey(v);let m=this.dedupes.get(y);return m?this.onDedupe(y):(m=new p,this.buildPromise(m,v,y),this.dedupes.set(y,m)),m.promise}catch(y){this.onError(y)}}async wrapFunction(v,y){const m=this.getStorageKey(y);if(this.ttl>0||typeof this.ttl=="function"){const b=await this.get(m);if(b!==void 0){this.onHit(y);const w=typeof this.stale=="function"?this.stale(b):this.stale;return w>0&&await this.storage.getTTL(m)<=w&&this._wrapFunction(m,v,y).catch(g),b}else this.onMiss(y)}return this._wrapFunction(m,v,y)}async _wrapFunction(v,y,m){const b=await this.func(y,m),w=typeof this.stale=="function"?this.stale(b):this.stale;let T=typeof this.ttl=="function"?this.ttl(b):this.ttl;if(T==null||typeof T!="number"||!Number.isInteger(T))return this.onError(new Error("ttl must be an integer")),b;if(T+=w,T<1)return b;if(!this.references)return await this.set(v,b,T),b;try{let x=this.references(y,m,b),M=b;x&&typeof x.then=="function"&&(x=await x),this.transformer&&(M=this.transformer.serialize(b)),await this.storage.set(v,M,T,x)}catch(x){this.onError(x)}return b}buildPromise(v,y,m){v.promise=this.wrapFunction(y,m),v.promise.then(b=>(this.dedupes.delete(m),b)).catch(b=>{this.onError(b),this.dedupes.delete(m);const w=this.storage.remove(this.getStorageKey(m));w&&typeof w.catch=="function"&&w.catch(g)})}async clear(v){if(v){const y=this.getKey(v);this.dedupes.delete(y),await this.storage.remove(this.getStorageKey(y));return}await this.storage.clear(this.getStorageName()),this.dedupes.clear()}async get(v){const y=await this.storage.get(v);return this.transformer&&y?await this.transformer.deserialize(y):y}async set(v,y,m,b){return this.transformer&&(y=this.transformer.serialize(y)),this.storage.set(v,y,m,b)}async invalidate(v){return this.storage.invalidate(v)}}class p{constructor(){this.promise=null}}function g(){}return bc.Cache=h,bc}var Pc,Nd;function CC(){if(Nd)return Pc;Nd=1;const{Cache:e}=xC(),t=Am();function r(n){n?n.storage||(n.storage={type:"memory"}):n={storage:{type:"memory"}};const s=t(n.storage.type,n.storage.options);return new e({...n,storage:s})}return Pc={Cache:e,createCache:r,createStorage:t},Pc}var RC=CC();let Ic=0,Dd=[];function AC(){return Ic+=1,()=>{if(Ic-=1,Ic===0){let e=Dd;Dd=[];for(let t of e)t()}}}let Ut=[],Ir=0;const Ro=4;let Om=e=>{let t=[],r={get(){return r.lc||r.listen(()=>{})(),r.value},lc:0,listen(n){return r.lc=t.push(n),()=>{for(let i=Ir+Ro;i<Ut.length;)Ut[i]===n?Ut.splice(i,Ro):i+=Ro;let s=t.indexOf(n);~s&&(t.splice(s,1),--r.lc||r.off())}},notify(n,s){let i=!Ut.length;for(let o of t)Ut.push(o,r.value,n,s);if(i){for(Ir=0;Ir<Ut.length;Ir+=Ro)Ut[Ir](Ut[Ir+1],Ut[Ir+2],Ut[Ir+3]);Ut.length=0}},off(){},set(n){let s=r.value;s!==n&&(r.value=n,r.notify(s))},subscribe(n){let s=r.listen(n);return n(r.value),s},value:e};return r};const OC=5,Ao=6,Oo=10;let $C=(e,t,r,n)=>(e.events=e.events||{},e.events[r+Oo]||(e.events[r+Oo]=n(s=>{e.events[r].reduceRight((i,o)=>(o(i),i),{shared:{},...s})})),e.events[r]=e.events[r]||[],e.events[r].push(t),()=>{let s=e.events[r],i=s.indexOf(t);s.splice(i,1),s.length||(delete e.events[r],e.events[r+Oo](),delete e.events[r+Oo])}),PC=1e3,IC=(e,t)=>$C(e,r=>{let n=t(r);n&&e.events[Ao].push(n)},OC,r=>{let n=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,r()),n(...i));let s=e.off;return e.events[Ao]=[],e.off=()=>{s(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[Ao])i();e.events[Ao]=[]}},PC)},()=>{e.listen=n,e.off=s}}),jC=(e={})=>{let t=Om(e);return t.setKey=function(r,n){let s=t.value;typeof n>"u"&&r in t.value?(t.value={...t.value},delete t.value[r],t.notify(s,r)):t.value[r]!==n&&(t.value={...t.value,[r]:n},t.notify(s,r))},t};const jl=typeof document>
59"u"?"server":"browser",LC=e=>{const{ssr:t,setFetcher:r}=e;return n=>{if(jl==="server")throw new Error("Live mode is not supported in server environments");if(t&&!n.client)throw new Error("The `client` option in `enableLiveMode` is required");const s=n.client||e.client||void 0,i=new AbortController;let o;return Re(async()=>{const{enableLiveMode:a}=await import("./BFYQZOAu.js");return{enableLiveMode:a}},__vite__mapDeps([34,35,36]),import.meta.url).then(({enableLiveMode:a})=>{i.signal.aborted||(o=a({...n,client:s,setFetcher:r,ssr:t}))}),()=>{i.abort(),o==null||o()}}};function Ud(e){return e.withConfig({allowReconfigure:!1})}const MC=e=>{const{ssr:t=!1,tag:r="core-loader"}=e;if(t&&e.client)throw new TypeError("`client` option is not allowed when `ssr: true`, use `setServerClient` from your server entry point instead");if(!t&&e.client===!1)throw new TypeError("You must set `ssr: true` when `client: false` is used");if(!t&&!e.client)throw new TypeError("`client` is required");let n=t?void 0:Ud(e.client);function s(f){return RC.createCache().define("fetch",async h=>{if(!f)throw new Error("You have to set the Sanity client with `setServerClient` before any data fetching is done");const{query:d,params:p={},perspective:g,useCdn:_,stega:v}=JSON.parse(h),{result:y,resultSourceMap:m}=await f.fetch(d,p,{tag:r,filterResponse:!1,perspective:g,useCdn:_,stega:v});return{result:y,resultSourceMap:m}})}function i(){const f=(n==null?void 0:n.config().perspective)||"published";return o.instance=s(n),{hydrate:(h,d,p)=>({loading:(p==null?void 0:p.data)===void 0||(p==null?void 0:p.sourceMap)===void 0,error:void 0,data:p==null?void 0:p.data,sourceMap:p==null?void 0:p.sourceMap,perspective:f}),fetch:(h,d,p,g)=>{if(g.signal.aborted)return;const _=AC();p.setKey("loading",!0),p.setKey("error",void 0),o.instance.fetch(JSON.stringify({query:h,params:d})).then(v=>{g.signal.aborted||(p.setKey("data",v.result),p.setKey("sourceMap",v.resultSourceMap),p.setKey("perspective",f))}).catch(v=>{p.setKey("error",v)}).finally(()=>{p.setKey("loading",!1),_()})}}}const o={instance:s(n)},a=Om(n?i():void 0),c=LC({client:n||void 0,ssr:t,setFetcher:f=>{const h=a.get();return a.set(f),()=>a.set(h)}}),u=(f,h={},d)=>{const p=a.get(),g=jC(p?p.hydrate(f,h,d):{loading:!1,error:typeof(d==null?void 0:d.data)>"u"?new Error("The `initial` option is required when `ssr: true`"):void 0,data:d==null?void 0:d.data,sourceMap:d==null?void 0:d.sourceMap,perspective:d==null?void 0:d.perspective});return IC(g,()=>{let _=new AbortController;const v=a.subscribe(y=>{!y||_.signal.aborted||(_.abort(),_=new AbortController,y.fetch(f,h,g,_))});return()=>{_.abort(),v()}}),g},l={instance:void 0,canPreviewDrafts:!1};return{createFetcherStore:u,enableLiveMode:c,setServerClient:f=>{if(jl!=="server")throw new Error("`setServerClient` can only be called in server environments, detected: "+JSON.stringify(jl));if(!t)throw new Error("`setServerClient` can only be called when `ssr: true`");l.instance=n=Ud(f),l.canPreviewDrafts=!!n.config().token,a.set(i())},unstable__cache:o,unstable__serverClient:l}},NC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$u=/_key\s*==\s*['"](.*)['"]/,DC=/^\d*:\d*$/;function Pu(e){return typeof e=="number"||typeof e=="string"&&/^\[\d+\]$/.test(e)}function ja(e){return typeof e=="string"?$u.test(e.trim()):typeof e=="object"&&"_key"in e}function $m(e){if(typeof e=="string"&&DC.test(e))return!0;if(!Array.isArray(e)||e.length!==2)return!1;const[t,r]=e;return(typeof t=="number"||t==="")&&(typeof r=="number"||r==="")}function UC(e,t,r){const n=typeof t=="string"?Iu(t):t;if(!Array.isArray(n))throw new Error("Path must be an array or a string");let s=e;for(let i=0;i<n.length;i++){const o=n[i];if(Pu(o)){if(!Array.isArray(s))return r;s=s[o]}if(ja(o)){if(!Array.isArray(s))return r;s=s.find(a=>a._key===o._key)}if(typeof o=="string"&&(s=typeof s=="object"&&s!==null?s[o]:void 0),typeof s>"u")return r}return s}function Pm(e){if(!Array.isArray(e))throw new Error("Path is not an array");return e.reduce((t,r,n)=>{const s=typeof r;if(s==="number")return`${t}[${r}]`;if(s==="string")return`${t}${n===0?"":"."}${r}`;if(ja(r)&&r._key)return`${t}[_key=="${r._key}"]`;if(Array.isArray(r)){const[i,o]=r;return`${t}[${i}:${o}]`}throw new Error(`Unsupported path segment \`${JSON.stringify(r)}\``)},"")}function Iu(e){if(typeof e!="string")throw new Error("Path is not a string");const t=e.match(NC);if(!t)throw new Error("Invalid path string");return t.map(FC)}function FC(e){return Pu(e)?HC(e):ja(e)?BC(e):$m(e)?qC(e):e}function HC(e){return Number(e.replace(/[^\d]/g,""))}function BC(e){return{_key:e.match($u)[1]}}function qC(e){const[t,r]=e.split(":").map(n=>n===""?n:Number(n));return[t,r]}var La=Object.freeze({__proto__:null,fromString:Iu,get:UC,isIndexSegment:Pu,isIndexTuple:$m,isKeySegment:ja,reKeySegment:$u,toString:Pm});const zC="drafts",WC="versions",xi=".",oa=`${zC}${xi}`,KC=`${WC}${xi}`;function ju(e){return e.startsWith(oa)}function Xi(e){return e.startsWith(KC)}function VC(e){return!ju(e)&&!Xi(e)}function aL(e){if(Xi(e)){const t=Lu(e);return oa+t}return ju(e)?e:oa+e}function GC(e){if(!Xi(e))return;const[t,r,...n]=e.split(xi);return r}function Lu(e){return Xi(e)?e.split(xi).slice(2).join(xi):ju(e)?e.slice(oa.length):e}const Fd={"\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","'":"\\'","\\":"\\\\"},Hd={"\\f":"\f","\\n":` 60`,"\\r":"\r","\\t":" ","\\'":"'","\\\\":"\\"};function JC(e){return`$${e.map(t=>typeof t=="string"?`['${t.replace(/[\f\n\r\t'\\]/g,r=>Fd[r])}']`:typeof t=="number"?`[${t}]`:t._key!==""?`[?(@._key=='${t._key.replace(/['\\]/g,r=>Fd[r])}')]`:`[${t._index}]`).join("")}`}function YC(e){const t=[],r=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g;let n;for(;(n=r.exec(e))!==null;){if(n[1]!==void 0){const s=n[1].replace(/\\(\\|f|n|r|t|')/g,i=>Hd[i]);t.push(s);continue}if(n[2]!==void 0){t.push(parseInt(n[2],10));continue}if(n[3]!==void 0){const s=n[3].replace(/\\(\\')/g,i=>Hd[i]);t.push({_key:s,_index:-1});continue}}return t}function Im(e){return e.map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(t._key!=="")return{_key:t._key};if(t._index!==-1)return t._index;throw new Error(`invalid segment:${JSON.stringify(t)}`)})}function QC(e){return(typeof e=="string"?Iu(e):e).map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(Array.isArray(t))throw new Error(`IndexTuple segments aren't supported:${JSON.stringify(t)}`);if(XC(t))return t;if(t._key)return{_key:t._key,_index:-1};throw new Error(`invalid segment:${JSON.stringify(t)}`)})}function XC(e){return typeof e=="object"&&"_key"in e&&"_index"in e}function ZC(e){return e.map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(t._index!==-1)return t._index;throw new Error(`invalid segment:${JSON.stringify(t)}`)})}function eR(e,t){if(!(t!=null&&t.mappings))return;const r=JC(ZC(e));if(t.mappings[r]!==void 0)return{mapping:t.mappings[r],matchedPath:r,pathSuffix:""};const n=Object.entries(t.mappings).filter(([a])=>r.startsWith(a)).sort(([a],[c])=>c.length-a.length);if(n.length==0)return;const[s,i]=n[0],o=r.substring(s.length);return{mapping:i,matchedPath:s,pathSuffix:o}}function cL(e){const{baseUrl:t,workspace:r="default",tool:n="default",id:s,type:i,path:o,projectId:a,dataset:c}=e;if(!t)throw new Error("baseUrl is required");if(!o)throw new Error("path is required");if(!s)throw new Error("id is required");if(t!=="/"&&t.endsWith("/"))throw new Error("baseUrl must not end with a slash");const u=r==="default"?void 0:r,l=n==="default"?void 0:n,f=Lu(s),h=Array.isArray(o)?Pm(Im(o)):o,d=new URLSearchParams({baseUrl:t,id:f,type:i,path:h});if(u&&d.set("workspace",u),l&&d.set("tool",l),a&&d.set("projectId",a),c&&d.set("dataset",c),VC(s))d.set("perspective","published");else if(Xi(s)){const _=GC(s);d.set("perspective",_)}const p=[t==="/"?"":t];u&&p.push(u);const g=["mode=presentation",`id=${f}`,`type=${i}`,`path=${encodeURIComponent(h)}`];
60return l&&g.push(`tool=${l}`),p.push("intent","edit",`${g.join(";")}?${d}`),p.join("/")}function tR(e){const{resultSourceMap:t,resultPath:r}=e,{mapping:n,pathSuffix:s}=eR(r,t)||{};if(!n||n.source.type==="literal"||n.source.type==="unknown")return;const i=t.documents[n.source.document],o=t.paths[n.source.path];if(i&&o){const{baseUrl:a,workspace:c,tool:u}=rR(typeof e.studioUrl=="function"?e.studioUrl(i):e.studioUrl);if(!a)return;const{_id:l,_type:f,_projectId:h,_dataset:d}=i;return{baseUrl:a,workspace:c,tool:u,id:l,type:f,path:YC(o+s),projectId:h,dataset:d}}}function rR(e){let t=typeof e=="string"?e:e.baseUrl;return t!=="/"&&(t=t.replace(/\/$/,"")),typeof e=="string"?{baseUrl:t}:{...e,baseUrl:t}}var pr;function Mu(e){return{lang:(e==null?void 0:e.lang)??(pr==null?void 0:pr.lang),message:e==null?void 0:e.message,abortEarly:(e==null?void 0:e.abortEarly)??(pr==null?void 0:pr.abortEarly),abortPipeEarly:(e==null?void 0:e.abortPipeEarly)??(pr==null?void 0:pr.abortPipeEarly)}}var jc;function nR(e){return jc==null?void 0:jc.get(e)}var Lc;function sR(e){return Lc==null?void 0:Lc.get(e)}var Mc;function iR(e,t){var r;return(r=Mc==null?void 0:Mc.get(e))==null?void 0:r.get(t)}function oR(e){var r,n;const t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&((n=(r=Object.getPrototypeOf(e))==null?void 0:r.constructor)==null?void 0:n.name))??"null":t}function Ci(e,t,r,n,s){const i=s&&"input"in s?s.input:r.value,o=(s==null?void 0:s.expected)??e.expects??null,a=(s==null?void 0:s.received)??oR(i),c={kind:e.kind,type:e.type,input:i,expected:o,received:a,message:`Invalid ${t}: ${o?`Expected ${o} but r`:"R"}eceived ${a}`,requirement:e.requirement,path:s==null?void 0:s.path,issues:s==null?void 0:s.issues,lang:n.lang,abortEarly:n.abortEarly,abortPipeEarly:n.abortPipeEarly},u=e.kind==="schema",l=(s==null?void 0:s.message)??e.message??iR(e.reference,c.lang)??(u?sR(c.lang):null)??n.message??nR(c.lang);l!==void 0&&(c.message=typeof l=="function"?l(c):l),u&&(r.typed=!1),r.issues?r.issues.push(c):r.issues=[c]}function Ls(e){return{version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},Mu())}}}function aR(e,t){return Object.hasOwn(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}var cR=class extends Error{constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};function Nu(e,t){return{kind:"validation",type:"min_length",reference:Nu,async:!1,expects:`>=${e}`,requirement:e,message:t,"~run"(r,n){return r.typed&&r.value.length<this.requirement&&Ci(this,"length",r,n,{received:`${r.value.length}`}),r}}}function lR(e,t,r){return typeof e.fallback=="function"?e.fallback(t,r):e.fallback}function jm(e,t,r){return typeof e.default=="function"?e.default(t,r):e.default}function uR(e,t){return!e["~run"]({value:t},{abortEarly:!0}).issues}function Du(e,t){return{kind:"schema",type:"object",reference:Du,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return Ls(this)},"~run"(r,n){var i;const s=r.value;if(s&&typeof s=="object"){r.typed=!0,r.value={};for(const o in this.entries){const a=this.entries[o];if(o in s||(a.type==="exact_optional"||a.type==="optional"||a.type==="nullish")&&a.default!==void 0){const c=o in s?s[o]:jm(a),u=a["~run"]({value:c},n);if(u.issues){const l={type:"object",origin:"value",input:s,key:o,value:c};for(const f of u.issues)f.path?f.path.unshift(l):f.path=[l],(i=r.issues)==null||i.push(f);if(r.issues||(r.issues=u.issues),n.abortEarly){r.typed=!1;break}}u.typed||(r.typed=!1),r.value[o]=u.value}else if(a.fallback!==void 0)r.value[o]=lR(a);else if(a.type!=="exact_optional"&&a.type!=="optional"&&a.type!=="nullish"&&(Ci(this,"key",r,n,{input:void 0,expected:`"${o}"`,path:[{type:"object",origin:"key",input:s,key:o,value:s[o]}]}),n.abortEarly))break}}else Ci(this,"type",r,n);return r}}}function Uu(e,t){return{kind:"schema",type:"optional",reference:Uu,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return Ls(this)},"~run"(r,n){return r.value===void 0&&(this.default!==void 0&&(r.value=jm(this,r,n)),r.value===void 0)?(r.typed=!0,r):this.wrapped["~run"](r,n)}}}function Lm(e,t,r){return{kind:"schema",type:"record",reference:Lm,expects:"Object",async:!1,key:e,value:t,message:r,get"~standard"(){return Ls(this)},"~run"(n,s){var o,a;const i=n.value;if(i&&typeof i=="object"){n.typed=!0,n.value={};for(const c in i)if(aR(i,c)){const u=i[c],l=this.key["~run"]({value:c},s);
60if(l.issues){const h={type:"object",origin:"key",input:i,key:c,value:u};for(const d of l.issues)d.path=[h],(o=n.issues)==null||o.push(d);if(n.issues||(n.issues=l.issues),s.abortEarly){n.typed=!1;break}}const f=this.value["~run"]({value:u},s);if(f.issues){const h={type:"object",origin:"value",input:i,key:c,value:u};for(const d of f.issues)d.path?d.path.unshift(h):d.path=[h],(a=n.issues)==null||a.push(d);if(n.issues||(n.issues=f.issues),s.abortEarly){n.typed=!1;break}}(!l.typed||!f.typed)&&(n.typed=!1),l.typed&&(n.value[l.value]=f.value)}}else Ci(this,"type",n,s);return n}}}function Ma(e){return{kind:"schema",type:"string",reference:Ma,expects:"string",async:!1,message:e,get"~standard"(){return Ls(this)},"~run"(t,r){return typeof t.value=="string"?t.typed=!0:Ci(this,"type",t,r),t}}}function Mm(){return{kind:"schema",type:"unknown",reference:Mm,expects:"unknown",async:!1,get"~standard"(){return Ls(this)},"~run"(e){return e.typed=!0,e}}}function fR(e,t,r){const n=e["~run"]({value:t},Mu(r));if(n.issues)throw new cR(n.issues);return n.value}function Nm(...e){return{...e[0],pipe:e,get"~standard"(){return Ls(this)},"~run"(t,r){for(const n of e)if(n.kind!=="metadata"){if(t.issues&&(n.kind==="schema"||n.kind==="transformation")){t.typed=!1;break}(!t.issues||!r.abortEarly&&!r.abortPipeEarly)&&(t=n["~run"](t,r))}return t}}}function Bd(e,t,r){const n=e["~run"]({value:t},Mu(r));return{typed:n.typed,success:!n.issues,output:n.value,issues:n.issues}}const Uo=Nm(Ma(),Nu(1)),Ws=Uu(Uo),Ll=Du({baseUrl:Uo,dataset:Ws,id:Uo,path:Uo,projectId:Ws,tool:Ws,type:Ws,workspace:Ws});function Dm(e){return uR(Ll,e)}function hR(e){return e!==null&&Array.isArray(e)}function dR(e){let t="";for(const r of e){if(typeof r=="string"){t&&(t+="."),t+=r;continue}if(typeof r=="number"){t&&(t+=":"),t+=`${r}`;continue}if(hR(r)){t&&(t+=":"),t+=`${r.join(",")}}`;continue}if(r._key){t&&(t+=":"),t+=`${r._key}`;continue}}return t}function pR(e){const{id:t,path:r,baseUrl:n,tool:s,workspace:i,type:o}=e;return Dm(e)?[["id",Lu(t)],["type",o],["path",dR(La.fromString(r))],["base",encodeURIComponent(n)],["workspace",i],["tool",s]].filter(([,a])=>!!a).map(a=>a.join("=")).join(";"):void 0}const gR=/^([\w-]+):(0|[1-9][0-9]*)$/,yR=/^([\w-]+):([0-9]+),([0-9]+)$/,mR=/^([\w-]+):([\w-]+)$/;function vR(e){const t=[];for(const r of e.split(".")){const n=gR.exec(r);if(n){t.push(n[1],Number(n[2]));continue}const s=yR.exec(r);if(s){t.push(s[1],[Number(s[2]),Number(s[3])]);continue}const i=mR.exec(r);if(i){t.push(i[1],{_key:i[2]});continue}t.push(r)}return t}const qd=Nm(Ma(),Nu(1)),_R=Du({origin:qd,href:qd,data:Uu(Lm(Ma(),Mm()))});function bR(e){const t=e.split(";").reduce((r,n)=>{const[s,i]=n.split("=");if(!s||n.includes("=")&&!i)return r;switch(s){case"id":r.id=i;break;case"type":r.type=i;break;case"path":r.path=La.toString(vR(i));break;case"base":r.baseUrl=decodeURIComponent(i);break;case"tool":r.tool=i;break;case"workspace":r.workspace=i;break;case"projectId":r.projectId=i;break;case"dataset":r.dataset=i;break}return r},{});if(Dm(t))return t}function zd(e){const t=Bd(Ll,e);if(t.success)return t.output;const r=Bd(_R,e);if(r.success)try{const n=new URL(r.output.href,typeof document>"u"?"https://example.com":location.origin);return n.searchParams.size>0?fR(Ll,Object.fromEntries(n.searchParams.entries())):r.output}catch(n){return console.error("Failed to parse sanity node",n),r.output}}function lL(e){if(typeof e=="object"&&e!==null)return zd(e);try{const t=JSON.parse(e);return zd(t)}catch{return bR(e)}}const wR=(e,t,r,n)=>{if(!t||!r)return;const s=QC(n),i=tR({resultPath:s,resultSourceMap:t,studioUrl:r});if(i)return pR({baseUrl:i.baseUrl,workspace:i.workspace,tool:i.tool,type:i.type,id:i.id,path:typeof i.path=="string"?i.path:La.toString(Im(i.path))})};function Um(e,t,r,n){const s=o=>o?typeof o=="string"?La.fromString(o):o:[],i=s(n);return Object.assign(o=>wR(e,t,r,[...i,...s(o)]),{scope:o=>Um(e,t,r,[...i,...s(o)])})}var Nc={exports:{}},ge={};/** 61 * @license React 62 * react.production.js 63 * 64 * Copyright (c) Meta Platforms, Inc. and affiliates. 65 * 66 * This source code is licensed under the MIT license found in the 67 * LICENSE file in the root directory of this source tree. 68 */var Wd;function SR(){if(Wd)return ge;Wd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),h=Symbol.iterator;function d(E){return E===null||typeof E!="object"?null:(E=h&&E[h]||E["@@iterator"],typeof E=="function"?E:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(E,$,re){this.props=E,this.context=$,this.refs=_,this.updater=re||p}v.prototype.isReactComponent={},v.prototype.setState=function(E,$){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,$,"setState")},v.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function y(){}y.prototype=v.prototype;function m(E,$,re){this.props=E,this.context=$,this.refs=_,this.updater=re||p}var b=m.prototype=new y;b.constructor=m,g(b,v.prototype),b.isPureReactComponent=!0;var w=Array.isArray;function T(){}var x={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function A(E,$,re){var V=re.ref;return{$$typeof:e,type:E,key:$,ref:V!==void 0?V:null,props:re}}function H(E,$){return A(E.type,$,E.props)}function J(E){return typeof E=="object"&&E!==null&&E.$$typeof===e}function D(E){var $={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(re){return $[re]})}var G=/\/+/g;function ae(E,$){return typeof E=="object"&&E!==null&&E.key!=null?D(""+E.key):$.toString(36)}function X(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(T,T):(E.status="pending",E.then(function($){E.status==="pending"&&(E.status="fulfilled",E.value=$)},function($){E.status==="pending"&&(E.status="rejected",E.reason=$)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function R(E,$,re,V,oe){var se=typeof E;(se==="undefined"||se==="boolean")&&(E=null);var C=!1;if(E===null)C=!0;else switch(se){case"bigint":case"string":case"number":C=!0;break;case"object":switch(E.$$typeof){case e:case t:C=!0;break;case l:return C=E._init,R(C(E._payload),$,re,V,oe)}}if(C)return oe=oe(E),C=V===""?"."+ae(E,0):V,w(oe)?(re="",C!=null&&(re=C.replace(G,"$&/")+"/"),R(oe,$,re,"",function(q){return q})):oe!=null&&(J(oe)&&(oe=H(oe,re+(oe.key==null||E&&E.key===oe.key?"":(""+oe.key).replace(G,"$&/")+"/")+C)),$.push(oe)),1;C=0;var I=V===""?".":V+":";if(w(E))for(var j=0;j<E.length;j++)V=E[j],se=I+ae(V,j),C+=R(V,$,re,se,oe);else if(j=d(E),typeof j=="function")for(E=j.call(E),j=0;!(V=E.next()).done;)V=V.value,se=I+ae(V,j++),C+=R(V,$,re,se,oe);else if(se==="object"){if(typeof E.then=="function")return R(X(E),$,re,V,oe);throw $=String(E),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return C}function U(E,$,re){if(E==null)return E;var V=[],oe=0;return R(E,V,"","",function(se){return $.call(re,se,oe++)}),V}function O(E){if(E._status===-1){var $=E._result;$=$(),$.then(function(re){(E._status===0||E._status===-1)&&(E._status=1,E._result=re)},function(re){(E._status===0||E._status===-1)&&(E._status=2,E._result=re)}),E._status===-1&&(E._status=0,E._result=$)}if(E._status===1)return E._result.default;throw E._result}var B=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},Z={map:U,forEach:function(E,$,re){U(E,function(){$.apply(this,arguments)},re)},count:function(E){var $=0;return U(E,function(){$++}),$},toArray:function(E){return U(E,function($){return $})||[]},only:function(E){if(!J(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ge.Activity=f,ge.Children=Z,ge.Component=v,ge.Fragment=r,ge.Profiler=s,ge.PureComponent=m,ge.StrictMode=n,ge.Suspense=c,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,ge.__COMPILER_RUNTIME={__proto__:null,c:function(E){return x.H.useMemoCache(E)}},ge.cache=function(E){return function(){return E.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(E,$,re){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var V=g({},E.props),oe=E.key;if($!=null)for(se in $.key!==void 0&&(oe=""+$.key),$)!M.call($,se)||se==="
68key"||se==="__self"||se==="__source"||se==="ref"&&$.ref===void 0||(V[se]=$[se]);var se=arguments.length-2;if(se===1)V.children=re;else if(1<se){for(var C=Array(se),I=0;I<se;I++)C[I]=arguments[I+2];V.children=C}return A(E.type,oe,V)},ge.createContext=function(E){return E={$$typeof:o,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:i,_context:E},E},ge.createElement=function(E,$,re){var V,oe={},se=null;if($!=null)for(V in $.key!==void 0&&(se=""+$.key),$)M.call($,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(oe[V]=$[V]);var C=arguments.length-2;if(C===1)oe.children=re;else if(1<C){for(var I=Array(C),j=0;j<C;j++)I[j]=arguments[j+2];oe.children=I}if(E&&E.defaultProps)for(V in C=E.defaultProps,C)oe[V]===void 0&&(oe[V]=C[V]);return A(E,se,oe)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(E){return{$$typeof:a,render:E}},ge.isValidElement=J,ge.lazy=function(E){return{$$typeof:l,_payload:{_status:-1,_result:E},_init:O}},ge.memo=function(E,$){return{$$typeof:u,type:E,compare:$===void 0?null:$}},ge.startTransition=function(E){var $=x.T,re={};x.T=re;try{var V=E(),oe=x.S;oe!==null&&oe(re,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(T,B)}catch(se){B(se)}finally{$!==null&&re.types!==null&&($.types=re.types),x.T=$}},ge.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},ge.use=function(E){return x.H.use(E)},ge.useActionState=function(E,$,re){return x.H.useActionState(E,$,re)},ge.useCallback=function(E,$){return x.H.useCallback(E,$)},ge.useContext=function(E){return x.H.useContext(E)},ge.useDebugValue=function(){},ge.useDeferredValue=function(E,$){return x.H.useDeferredValue(E,$)},ge.useEffect=function(E,$){return x.H.useEffect(E,$)},ge.useEffectEvent=function(E){return x.H.useEffectEvent(E)},ge.useId=function(){return x.H.useId()},ge.useImperativeHandle=function(E,$,re){return x.H.useImperativeHandle(E,$,re)},ge.useInsertionEffect=function(E,$){return x.H.useInsertionEffect(E,$)},ge.useLayoutEffect=function(E,$){return x.H.useLayoutEffect(E,$)},ge.useMemo=function(E,$){return x.H.useMemo(E,$)},ge.useOptimistic=function(E,$){return x.H.useOptimistic(E,$)},ge.useReducer=function(E,$,re){return x.H.useReducer(E,$,re)},ge.useRef=function(E){return x.H.useRef(E)},ge.useState=function(E){return x.H.useState(E)},ge.useSyncExternalStore=function(E,$,re){return x.H.useSyncExternalStore(E,$,re)},ge.useTransition=function(){return x.H.useTransition()},ge.version="19.2.3",ge}var Kd;function Fm(){return Kd||(Kd=1,Nc.exports=SR()),Nc.exports}/** 69 * Copyright (c) Meta Platforms, Inc. and affiliates. 70 * 71 * This source code is licensed under the MIT license found in the 72 * LICENSE file in the root directory of this source tree. 73 * 74 * @lightSyntaxTransform 75 * @noflow 76 * @nolint 77 * @preventMunge 78 * @preserve-invariant-messages 79 */var Dc,Vd;function ER(){if(Vd)return Dc;Vd=1;var e=Object.create,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,o=(O,B)=>{for(var Z in B)t(O,Z,{get:B[Z],enumerable:!0})},a=(O,B,Z,E)=>{if(B&&typeof B=="object"||typeof B=="function")for(let $ of n(B))!i.call(O,$)&&$!==Z&&t(O,$,{get:()=>B[$],enumerable:!(E=r(B,$))||E.enumerable});return O},c=(O,B,Z)=>(Z=O!=null?e(s(O)):{},a(!O||!O.__esModule?t(Z,"default",{value:O,enumerable:!0}):Z,O)),u=O=>a(t({},"__esModule",{value:!0}),O),l={};o(l,{$dispatcherGuard:()=>M,$makeReadOnly:()=>H,$reset:()=>A,$structuralCheck:()=>U,c:()=>m,clearRenderCounterRegistry:()=>D,renderCounterRegistry:()=>J,useRenderCounter:()=>X}),Dc=u(l);var f=c(Fm()),{useRef:h,useEffect:d,isValidElement:p}=f,g,_=(g=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)!=null?g:f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=Symbol.for("react.memo_cache_sentinel"),y,m=typeof((y=f.__COMPILER_RUNTIME)==null?void 0:y.c)=="function"?f.__COMPILER_RUNTIME.c:function(B){return f.useMemo(()=>{const Z=new Array(B);for(let E=0;E<B;E++)Z[E]=v;return Z[v]=!0,Z},[])},b={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(O=>{b[O]=()=>{throw new Error(`[React] Unexpected React hook call (${O}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var w=null;b.useMemoCache=O=>{if(w==null)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return w.useMemoCache(O)};function T(O){return _.ReactCurrentDispatcher.current=O,_.ReactCurrentDispatcher.current}var x=[];function M(O){const B=_.ReactCurrentDispatcher.current;if(O===0){if(x.push(B),x.length===1&&(w=B),B===b)throw new Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");T(b)}else if(O===1){const Z=x.pop();if(Z==null)throw new Error("React Compiler internal error: unexpected null in guard stack");x.length===0&&(w=null),T(Z)}else if(O===2)x.push(B),T(w);else if(O===3){const Z=x.pop();if(Z==null)throw new Error("React Compiler internal error: unexpected null in guard stack");T(Z)}else throw new Error("React Compiler internal error: unreachable block"+O)}function A(O){for(let B=0;B<O.length;B++)O[B]=v}function H(){throw new Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var J=new Map;function D(){for(const O of J.values())O.forEach(B=>{B.count=0})}function G(O,B){let Z=J.get(O);Z==null&&(Z=new Set,J.set(O,Z)),Z.add(B)}function ae(O,B){const Z=J.get(O);Z!=null&&Z.delete(B)}function X(O){const B=h(null);B.current!=null&&(B.current.count+=1),d(()=>
79{if(B.current==null){const Z={count:0};G(O,Z),B.current=Z}return()=>{B.current!==null&&ae(O,B.current)}})}var R=new Set;function U(O,B,Z,E,$,re){function V(C,I,j,q){const ue=`${E}:${re} [${$}] ${Z}${j} changed from ${C} to ${I} at depth ${q}`;R.has(ue)||(R.add(ue),console.error(ue))}const oe=2;function se(C,I,j,q){if(!(q>oe)){if(C===I)return;if(typeof C!=typeof I)V(`type ${typeof C}`,`type ${typeof I}`,j,q);else if(typeof C=="object"){const ue=Array.isArray(C),be=Array.isArray(I);if(C===null&&I!==null)V("null",`type ${typeof I}`,j,q);else if(I===null)V(`type ${typeof C}`,"null",j,q);else if(C instanceof Map)if(!(I instanceof Map))V("Map instance","other value",j,q);else if(C.size!==I.size)V(`Map instance with size ${C.size}`,`Map instance with size ${I.size}`,j,q);else for(const[S,k]of C)I.has(S)?se(k,I.get(S),`${j}.get(${S})`,q+1):V(`Map instance with key ${S}`,`Map instance without key ${S}`,j,q);else if(I instanceof Map)V("other value","Map instance",j,q);else if(C instanceof Set)if(!(I instanceof Set))V("Set instance","other value",j,q);else if(C.size!==I.size)V(`Set instance with size ${C.size}`,`Set instance with size ${I.size}`,j,q);else for(const S of I)C.has(S)||V(`Set instance without element ${S}`,`Set instance with element ${S}`,j,q);else if(I instanceof Set)V("other value","Set instance",j,q);else if(ue||be)if(ue!==be)V(`type ${ue?"array":"object"}`,`type ${be?"array":"object"}`,j,q);else if(C.length!==I.length)V(`array with length ${C.length}`,`array with length ${I.length}`,j,q);else for(let S=0;S<C.length;S++)se(C[S],I[S],`${j}[${S}]`,q+1);else if(p(C)||p(I))p(C)!==p(I)?V(`type ${p(C)?"React element":"object"}`,`type ${p(I)?"React element":"object"}`,j,q):C.type!==I.type?V(`React element of type ${C.type}`,`React element of type ${I.type}`,j,q):se(C.props,I.props,`[props of ${j}]`,q+1);else{for(const S in I)S in C||V(`object without key ${S}`,`object with key ${S}`,j,q);for(const S in C)S in I?se(C[S],I[S],`${j}.${S}`,q+1):V(`object with key ${S}`,`object without key ${S}`,j,q)}}else{if(typeof C=="function")return;isNaN(C)||isNaN(I)?isNaN(C)!==isNaN(I)&&V(`${isNaN(C)?"NaN":"non-NaN value"}`,`${isNaN(I)?"NaN":"non-NaN value"}`,j,q):C!==I&&V(C,I,j,q)}}}se(O,B,"",0)}return Dc}var uL=ER(),Ml=function(e,t){return Ml=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},Ml(e,t)};function $r(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ml(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function TR(e,t,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(l){try{u(n.next(l))}catch(f){o(f)}}function c(l){try{u(n.throw(l))}catch(f){o(f)}}function u(l){l.done?i(l.value):s(l.value).then(a,c)}u((n=n.apply(e,t||[])).next())})}function Hm(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(r=0)),r;)try{if(n=1,s&&(i=u[0]&2?s.return:u[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,u[1])).done)return i;switch(s=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,s=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(l){u=[6,l],s=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function xs(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
vendor: 8,119 bytes, lines 79-81
79if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Cr(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],o;try{for(;(t===void 0||t-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function Rr(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,i;n<s;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function hs(e){return this instanceof hs?(this.v=e,this):new hs(e)}function kR(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),s,i=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),s[Symbol.asyncIterator]=function(){return this},s;function o(d){return function(p){return Promise.resolve(p).then(d,f)}}function a(d,p){n[d]&&(s[d]=function(g){return new Promise(function(_,v){i.push([d,g,_,v])>1||c(d,g)})},p&&(s[d]=p(s[d])))}function c(d,p){try{u(n[d](p))}catch(g){h(i[0][3],g)}}function u(d){d.value instanceof hs?Promise.resolve(d.value.v).then(l,f):h(i[0][2],d)}function l(d){c("next",d)}function f(d){c("throw",d)}function h(d,p){d(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}function xR(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof xs=="function"?xs(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(o){return new Promise(function(a,c){o=e[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},o)}}function He(e){return typeof e=="function"}function Fu(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Uc=Fu(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: 80`+r.map(function(n,s){return s+1+") "+n.toString()}).join(` 81 `):"",this.name="UnsubscriptionError",this.errors=r}});function aa(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Zi=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,s,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=xs(o),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(g){t={error:g}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else o.remove(this);var l=this.initialTeardown;if(He(l))try{l()}catch(g){i=g instanceof Uc?g.errors:[g]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var h=xs(f),d=h.next();!d.done;d=h.next()){var p=d.value;try{Gd(p)}catch(g){i=i??[],g instanceof Uc?i=Rr(Rr([],Cr(i)),Cr(g.errors)):i.push(g)}}}catch(g){n={error:g}}finally{try{d&&!d.done&&(s=h.return)&&s.call(h)}finally{if(n)throw n.error}}}if(i)throw new Uc(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Gd(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&aa(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&aa(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Bm=Zi.EMPTY;function qm(e){return e instanceof Zi||e&&"closed"in e&&He(e.remove)&&He(e.add)&&He(e.unsubscribe)}function Gd(e){He(e)?e():e.unsubscribe()}var CR={Promise:void 0},RR={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Rr([e,t],Cr(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function zm(e){RR.setTimeout(function(){throw e})}function Jd(){}function Fo(e){e()}var Hu=function(e){$r(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,qm(r)&&r.add(n)):n.destination=$R,n}return t.create=function(r,n,s){return new Ri(r,n,s)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Zi),AR=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){$o(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){$o(n)}else $o(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){$o(r)}},e}(),Ri=function(e){$r(t,e);function t(r,n,s){var i=e.call(this)||this,o;return He(r)||!r?o={next:r??void 0,error:n??void 0,complete:s??void 0}:o=r,i.destination=new AR(o),i}return t}(Hu);function $o(e){zm(e)}function OR(e){throw e}var $R={closed:!0,next:Jd,error:OR,complete:Jd},Bu=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Na(e){return e}function PR(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Wm(e)}function Wm(e){return e.length===0?Na:e.length===1?e[0]:function(r){return e.reduce(function(n,s){return s(n)},r)}}var We=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var s=this,i=jR(t)?t:new Ri(t,r,n);return Fo(function(){var o=s,a=o.operator,c=o.source;i.add(a?a.call(i,c):c?s._subscribe(i):s._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=Yd(r),new r(function(s,i){var o=new Ri({next:function(a){try{t(a)}catch(c){i(c),o.unsubscribe()}},error:i,complete:s});n.subscribe(o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Bu]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Wm(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Yd(t),new t(function(n,s){var i;r.subscribe(function(o){return i=o},function(o){return s(o)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function Yd(e){var t;return(t=e??CR.Promise)!==null&&t!==void 0?t:Promise}function IR(e){return e&&He(e.next)&&He(e.error)&&He(e.complete)}function jR(e){return e&&e instanceof Hu||IR(e)&&qm(e)}function LR(e){return He(e==null?void 0:e.lift)}function ar(e){return function(t){if(LR(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function sn(e,t,r,n,s){return new MR(e,t,r,n,s)}var MR=function(e){$r(t,e);function t(r,n,s,i,o,a){var c=e.call(this,r)||this;return c.onFinalize=o,c.shouldUnsubscribe=a,c._next=n?function(u){try{n(u)}catch(l){r.error(l)}}:e.prototype._next,c._error=i?function(u){try{i(u)}catch(l){r.error(l)}finally{this.unsubscribe()}}
81:e.prototype._error,c._complete=s?function(){try{s()}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(Hu),NR=Fu(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),qu=function(e){$r(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Qd(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new NR},t.prototype.next=function(r){var n=this;Fo(function(){var s,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=xs(n.currentObservers),a=o.next();!a.done;a=o.next()){var c=a.value;c.next(r)}}catch(u){s={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(s)throw s.error}}}})},t.prototype.error=function(r){var n=this;Fo(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var s=n.observers;s.length;)s.shift().error(r)}})},t.prototype.complete=function(){var r=this;Fo(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,s=this,i=s.hasError,o=s.isStopped,a=s.observers;return i||o?Bm:(this.currentObservers=null,a.push(r),new Zi(function(){n.currentObservers=null,aa(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,s=n.hasError,i=n.thrownError,o=n.isStopped;s?r.error(i):o&&r.complete()},t.prototype.asObservable=function(){var r=new We;return r.source=this,r},t.create=function(r,n){return new Qd(r,n)},t}(We),Qd=function(e){$r(t,e);function t(r,n){var s=e.call(this)||this;return s.destination=r,s.source=n,s}return t.prototype.next=function(r){var n,s;(s=(n=this.destination)===null||n===void 0?void 0:n.next)===null||s===void 0||s.call(n,r)},t.prototype.error=function(r){var n,s;(s=(n=this.destination)===null||n===void 0?void 0:n.error)===null||s===void 0||s.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,s;return(s=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&s!==void 0?s:Bm},t}(qu),zu={now:function(){return(zu.delegate||Date).now()},delegate:void 0},DR=function(e){$r(t,e);function t(r,n,s){r===void 0&&(r=1/0),n===void 0&&(n=1/0),s===void 0&&(s=zu);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=s,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,s=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,c=n._windowTime;s||(i.push(r),!o&&i.push(a.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),s=this,i=s._infiniteTimeWindow,o=s._buffer,a=o.slice(),c=0;c<a.length&&!r.closed;c+=i?1:2)r.next(a[c]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,s=r._timestampProvider,i=r._buffer,o=r._infiniteTimeWindow,a=(o?1:2)*n;if(n<1/0&&a<i.length&&i.splice(0,i.length-a),!o){for(var c=s.now(),u=0,l=1;l<i.length&&i[l]<=c;l+=2)u=l;u&&i.splice(0,u+1)}},t}(qu),UR=function(e){$r(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(Zi),Xd={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setInterval.apply(void 0,Rr([e,t],Cr(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},FR=function(e){$r(t,e);function t(r,n){var s=e.call(this,r,n)||this;
vendor: 4,865 bytes, line 81
81return s.scheduler=r,s.work=n,s.pending=!1,s}return t.prototype.schedule=function(r,n){var s;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=(s=this.id)!==null&&s!==void 0?s:this.requestAsyncId(o,this.id,n),this},t.prototype.requestAsyncId=function(r,n,s){return s===void 0&&(s=0),Xd.setInterval(r.flush.bind(r,this),s)},t.prototype.recycleAsyncId=function(r,n,s){if(s===void 0&&(s=0),s!=null&&this.delay===s&&this.pending===!1)return n;n!=null&&Xd.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var s=this._execute(r,n);if(s)return s;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var s=!1,i;try{this.work(r)}catch(o){s=!0,i=o||new Error("Scheduled action threw falsy error")}if(s)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,s=r.scheduler,i=s.actions;this.work=this.state=this.scheduler=null,this.pending=!1,aa(i,this),n!=null&&(this.id=this.recycleAsyncId(s,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(UR),Zd=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=zu.now,e}(),HR=function(e){$r(t,e);function t(r,n){n===void 0&&(n=Zd.now);var s=e.call(this,r,n)||this;return s.actions=[],s._active=!1,s}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var s;this._active=!0;do if(s=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,s){for(;r=n.shift();)r.unsubscribe();throw s}},t}(Zd),BR=new HR(FR),qR=BR,Km=new We(function(e){return e.complete()});function zR(e){return e&&He(e.schedule)}function Wu(e){return e[e.length-1]}function WR(e){return He(Wu(e))?e.pop():void 0}function Ku(e){return zR(Wu(e))?e.pop():void 0}function KR(e,t){return typeof Wu(e)=="number"?e.pop():t}var Vm=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Gm(e){return He(e==null?void 0:e.then)}function Jm(e){return He(e[Bu])}function Ym(e){return Symbol.asyncIterator&&He(e==null?void 0:e[Symbol.asyncIterator])}function Qm(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function VR(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Xm=VR();function Zm(e){return He(e==null?void 0:e[Xm])}function ev(e){return kR(this,arguments,function(){var r,n,s,i;return Hm(this,function(o){switch(o.label){case 0:r=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,hs(r.read())];case 3:return n=o.sent(),s=n.value,i=n.done,i?[4,hs(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,hs(s)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function tv(e){return He(e==null?void 0:e.getReader)}function cr(e){if(e instanceof We)return e;if(e!=null){if(Jm(e))return GR(e);if(Vm(e))return JR(e);if(Gm(e))return YR(e);if(Ym(e))return rv(e);if(Zm(e))return QR(e);if(tv(e))return XR(e)}throw Qm(e)}function GR(e){return new We(function(t){var r=e[Bu]();if(He(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function JR(e){return new We(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function YR(e){return new We(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,zm)})}function QR(e){return new We(function(t){var r,n;try{for(var s=xs(e),i=s.next();!i.done;i=s.next()){var o=i.value;if(t.next(o),t.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}t.complete()})}function rv(e){return new We(function(t){ZR(e,t).catch(function(r){return t.error(r)})})}function XR(e){return rv(ev(e))}function ZR(e,t){var r,n,s,i;return TR(this,void 0,void 0,function(){var o,a;return Hm(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=xR(e),c.label=1;case 1:return[4,r.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];if(o=n.value,t.next(o),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=c.sent(),s={error:a},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];
81case 10:return[7];case 11:return t.complete(),[2]}})})}function An(e,t,r,n,s){n===void 0&&(n=0),s===void 0&&(s=!1);var i=t.schedule(function(){r(),s?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(i),!s)return i}function nv(e,t){return t===void 0&&(t=0),ar(function(r,n){r.subscribe(sn(n,function(s){return An(n,e,function(){return n.next(s)},t)},function(){return An(n,e,function(){return n.complete()},t)},function(s){return An(n,e,function(){return n.error(s)},t)}))})}function sv(e,t){return t===void 0&&(t=0),ar(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function eA(e,t){return cr(e).pipe(sv(t),nv(t))}function tA(e,t){return cr(e).pipe(sv(t),nv(t))}function rA(e,t){return new We(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function nA(e,t){return new We(function(r){var n;return An(r,t,function(){n=e[Xm](),An(r,t,function(){var s,i,o;try{s=n.next(),i=s.value,o=s.done}catch(a){r.error(a);return}o?r.complete():r.next(i)},0,!0)}),function(){return He(n==null?void 0:n.return)&&n.return()}})}function iv(e,t){if(!e)throw new Error("Iterable cannot be null");return new We(function(r){An(r,t,function(){var n=e[Symbol.asyncIterator]();An(r,t,function(){n.next().then(function(s){s.done?r.complete():r.next(s.value)})},0,!0)})})}function sA(e,t){return iv(ev(e),t)}function iA(e,t){if(e!=null){if(Jm(e))return eA(e,t);if(Vm(e))return rA(e,t);if(Gm(e))return tA(e,t);if(Ym(e))return iv(e,t);if(Zm(e))return nA(e,t);if(tv(e))return sA(e,t)}throw Qm(e)}function eo(e,t){return t?iA(e,t):cr(e)}function Da(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ku(e);return eo(e,r)}function ov(e,t){var r=He(e)?e:function(){return e},n=function(s){return s.error(r())};return new We(n)}function oA(e){return!!e&&(e instanceof We||He(e.lift)&&He(e.subscribe))}var aA=Fu(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function Ye(e,t){return new Promise(function(r,n){var s=!1,i;e.subscribe({next:function(o){i=o,s=!0},error:n,complete:function(){s?r(i):n(new aA)}})})}function cA(e){return e instanceof Date&&!isNaN(e)}function bt(e,t){return ar(function(r,n){var s=0;r.subscribe(sn(n,function(i){n.next(e.call(t,i,s++))}))})}var lA=Array.isArray;function uA(e,t){return lA(t)?e.apply(void 0,Rr([],Cr(t))):e(t)}function fA(e){return bt(function(t){return uA(e,t)})}function hA(e,t,r){return r===void 0&&(r=Na),function(n){ep(t,function(){for(var s=e.length,i=new Array(s),o=s,a=s,c=function(l){ep(t,function(){var f=eo(e[l],t),h=!1;f.subscribe(sn(n,function(d){i[l]=d,h||(h=!0,a--),a||n.next(r(i.slice()))},function(){--o||n.complete()}))},n)},u=0;u<s;u++)c(u)})}}function ep(e,t,r){t()}function dA(e,t,r,n,s,i,o,a){var c=[],u=0,l=0,f=!1,h=function(){f&&!c.length&&!u&&t.complete()},d=function(g){return u<n?p(g):c.push(g)},p=function(g){u++;var _=!1;cr(r(g,l++)).subscribe(sn(t,function(v){t.next(v)},function(){_=!0},void 0,function(){if(_)try{u--;for(var v=function(){var y=c.shift();o||p(y)};c.length&&u<n;)v();h()}catch(y){t.error(y)}}))};return e.subscribe(sn(t,d,function(){f=!0,h()})),function(){}}function to(e,t,r){return r===void 0&&(r=1/0),He(t)?to(function(n,s){return bt(function(i,o){return t(n,i,s,o)})(cr(e(n,s)))},r):(typeof t=="number"&&(r=t),ar(function(n,s){return dA(n,s,e,r)}))}function av(e){return e===void 0&&(e=1/0),to(Na,e)}function pA(){return av(1)}function cv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return pA()(eo(e,Ku(e)))}function lv(e){return new We(function(t){cr(e()).subscribe(t)})}function gA(e,t,r){return r===void 0&&(r=qR),new We(function(n){var s=cA(e)?+e-r.now():e;s<0&&(s=0);var i=0;return r.schedule(function(){n.closed||(n.next(i++),n.complete())},s)})}function yA(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ku(e),n=KR(e,1/0),s=e;return s.length?s.length===1?cr(s[0]):av(n)(eo(s,r)):Km}var mA=Array.isArray;function vA(e){return e.length===1&&mA(e[0])?e[0]:e}function Ms(e,t){return ar(function(r,n){var s=0;r.subscribe(sn(n,function(i){return e.call(t,i,s++)&&n.next(i)}))})}function Vu(e){return ar(function(t,r){var n=null,s=!1,i;n=t.subscribe(sn(r,void 0,void 0,function(o){i=cr(e(o,Vu(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):s=!0})),s&&(n.unsubscribe(),n=null,i.subscribe(r))})}function uv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=WR(e);return r?PR(uv.apply(void 0,Rr([],Cr(e))),fA(r)):ar(function(n,s){hA(Rr([n],Cr(vA(e))))(s)})}function _A(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return uv.apply(void 0,Rr([],Cr(e)))}function fv(e){return ar(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function hv(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new qu}:t,n=e.resetOnError,s=n===void 0?!0:n,i=e.resetOnComplete,o=i===void 0?!0:i,a=e.resetOnRefCountZero,c=a===void 0?!0:a;return function(u){var l,f,h,d=0,p=!1,g=!1,_=function(){f==null||f.unsubscribe(),f=void 0},v=function(){_(),l=h=void 0,p=g=!1},y=function(){var m=l;v(),m==null||m.unsubscribe()};return ar(function(m,b){d++,!g&&!p&&_();var w=h=h??r();b.add(function(){d--,d===0&&!g&&!p&&(f=Fc(y,c))}),w.subscribe(b),!l&&d>0&&(l=new Ri({next:function(T){return w.next(T)},error:function(T){g=!0,_(),f=Fc(v,s,T),w.error(T)}
81,complete:function(){p=!0,_(),f=Fc(v,o),w.complete()}}),cr(m).subscribe(l))})(u)}}function Fc(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t===!0){e();return}if(t!==!1){var s=new Ri({next:function(){s.unsubscribe(),e()}});return cr(t.apply(void 0,Rr([],Cr(r)))).subscribe(s)}}function bA(e,t,r){var n,s,i,o,a=!1;return e&&typeof e=="object"?(n=e.bufferSize,o=n===void 0?1/0:n,s=e.windowTime,t=s===void 0?1/0:s,i=e.refCount,a=i===void 0?!1:i,r=e.scheduler):o=e??1/0,hv({connector:function(){return new DR(o,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function wA(e,t,r){var n=He(e)||t||r?{next:e,error:t,complete:r}:e;return n?ar(function(s,i){var o;(o=n.subscribe)===null||o===void 0||o.call(n);var a=!0;s.subscribe(sn(i,function(c){var u;(u=n.next)===null||u===void 0||u.call(n,c),i.next(c)},function(){var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),i.complete()},function(c){var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),i.error(c)},function(){var c,u;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):Na}var SA=Fm();const fL=tm(SA);function EA(e={}){const t=new AbortController;return Re(async()=>{const{renderVisualEditing:r}=await import("./CTF6_cgR.js").then(n=>n.r);return{renderVisualEditing:r}},__vite__mapDeps([37,36]),import.meta.url).then(({renderVisualEditing:r})=>{const{signal:n}=t;n.aborted||r(n,e)}),()=>{t.abort()}}const dv=!(typeof navigator>"u")&&navigator.product==="ReactNative",pv={timeout:dv?6e4:12e4},TA=function(e){const t={...pv,...typeof e=="string"?{url:e}:e};if(t.timeout=gv(t.timeout),t.query){const{url:r,searchParams:n}=function(s){const i=s.indexOf("?");if(i===-1)return{url:s,searchParams:new URLSearchParams};const o=s.slice(0,i),a=s.slice(i+1);if(!dv)return{url:o,searchParams:new URLSearchParams(a)};if(typeof decodeURIComponent!="function")throw new Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");const c=new URLSearchParams;for(const u of a.split("&")){const[l,f]=u.split("=");l&&c.append(tp(l),tp(f||""))}return{url:o,searchParams:c}}(t.url);for(const[s,i]of Object.entries(t.query)){if(i!==void 0)if(Array.isArray(i))for(const a of i)n.append(s,a);else n.append(s,i);const o=n.toString();o&&(t.url=`${r}?${o}`)}}return t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t};function tp(e){return decodeURIComponent(e.replace(/\+/g," "))}function gv(e){if(e===!1||e===0)return!1;if(e.connect||e.socket)return e;const t=Number(e);return isNaN(t)?gv(pv.timeout):{connect:t,socket:t}}const kA=/^https?:\/\//i,xA=function(e){if(!kA.test(e.url))throw new Error(`"${e.url}" is not a valid URL`)};function yv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const CA=["request","response","progress","error","abort"],rp=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];function mv(e,t){const r=[],n=rp.reduce((i,o)=>(i[o]=i[o]||[],i),{processOptions:[TA],validateOptions:[xA]});function s(i){const o=CA.reduce((d,p)=>(d[p]=function(){const g=Object.create(null);let _=0;return{publish:function(v){for(const y in g)g[y](v)},subscribe:function(v){const y=_++;return g[y]=v,function(){delete g[y]}}}}(),d),{}),a=(d=>function(p,g,..._){const v=p==="onError";let y=g;for(let m=0;m<d[p].length&&(y=(0,d[p][m])(y,..._),!v||y);m++);return y})(n),c=a("processOptions",i);a("validateOptions",c);const u={options:c,channels:o,applyMiddleware:a};let l;const f=o.request.subscribe(d=>{l=t(d,(p,g)=>((_,v,y)=>{let m=_,b=v;if(!m)try{b=a("onResponse",v,y)}catch(w){b=null,m=w}m=m&&a("onError",m,y),m?o.error.publish(m):b&&o.response.publish(b)})(p,g,d))});o.abort.subscribe(()=>{f(),l&&l.abort()});const h=a("onReturn",o,u);return h===o&&o.request.publish(u),h}return s.use=function(i){if(!i)throw new Error("Tried to add middleware that resolved to falsey value");if(typeof i=="function")throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(i.onReturn&&n.onReturn.length>0)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return rp.forEach(o=>{i[o]&&n[o].push(i[o])}),r.push(i),s},s.clone=()=>mv(r,t),e.forEach(s.use),s}var np,sp,RA=yv(function(){if(sp)return np;sp=1;var e=function(t){return t.replace(/^\s+|\s+$/g,"")};return np=function(t){if(!t)return{};for(var r={},n=e(t).split(` 82`),s=0;s<n.length;s++){var i=n[s],o=i.indexOf(":"),a=e(i.slice(0,o)).toLowerCase(),c=e(i.slice(o+1));typeof r[a]>"u"?r[a]=c:(u=r[a],Object.prototype.toString.call(u)==="[object Array]"?r[a].push(c):r[a]=[r[a],c])}var u;return r}}()),Oi,$i,gs,Pi,mr,Ii,ji,jp;let Nl=(jp=class{constructor(){N(this,"onabort");N(this,"onerror");N(this,"onreadystatechange");N(this,"ontimeout");N(this,"readyState",0);N(this,"response");N(this,"responseText","");N(this,"responseType","");N(this,"status");N(this,"statusText");N(this,"withCredentials");ke(this,Oi);ke(this,$i);ke(this,gs);ke(this,Pi,{});ke(this,mr);ke(this,Ii,{});ke(this,ji)}open(t,r,n){var s;
82xe(this,Oi,t),xe(this,$i,r),xe(this,gs,""),this.readyState=1,(s=this.onreadystatechange)==null||s.call(this),xe(this,mr,void 0)}abort(){L(this,mr)&&L(this,mr).abort()}getAllResponseHeaders(){return L(this,gs)}setRequestHeader(t,r){L(this,Pi)[t]=r}setInit(t,r=!0){xe(this,Ii,t),xe(this,ji,r)}send(t){const r=this.responseType!=="arraybuffer",n={...L(this,Ii),method:L(this,Oi),headers:L(this,Pi),body:t};typeof AbortController=="function"&&L(this,ji)&&(xe(this,mr,new AbortController),typeof EventTarget<"u"&&L(this,mr).signal instanceof EventTarget&&(n.signal=L(this,mr).signal)),typeof document<"u"&&(n.credentials=this.withCredentials?"include":"omit"),fetch(L(this,$i),n).then(s=>{var i;return s.headers.forEach((o,a)=>{xe(this,gs,L(this,gs)+`${a}: ${o}\r 83`)}),this.status=s.status,this.statusText=s.statusText,this.readyState=3,(i=this.onreadystatechange)==null||i.call(this),r?s.text():s.arrayBuffer()}).then(s=>{var i;typeof s=="string"?this.responseText=s:this.response=s,this.readyState=4,(i=this.onreadystatechange)==null||i.call(this)}).catch(s=>{var i,o;s.name!=="AbortError"?(i=this.onerror)==null||i.call(this,s):(o=this.onabort)==null||o.call(this)})}},Oi=new WeakMap,$i=new WeakMap,gs=new WeakMap,Pi=new WeakMap,mr=new WeakMap,Ii=new WeakMap,ji=new WeakMap,jp);const Dl=typeof XMLHttpRequest=="function"?"xhr":"fetch",AA=Dl==="xhr"?XMLHttpRequest:Nl,OA=(e,t)=>{const r=e.options,n=e.applyMiddleware("finalizeOptions",r),s={},i=e.applyMiddleware("interceptRequest",void 0,{adapter:Dl,context:e});if(i){const g=setTimeout(t,0,null,i);return{abort:()=>clearTimeout(g)}}let o=new AA;o instanceof Nl&&typeof n.fetch=="object"&&o.setInit(n.fetch,n.useAbortSignal??!0);const a=n.headers,c=n.timeout;let u=!1,l=!1,f=!1;if(o.onerror=g=>{p(o instanceof Nl?g instanceof Error?g:new Error(`Request error while attempting to reach is ${n.url}`,{cause:g}):new Error(`Request error while attempting to reach is ${n.url}${g.lengthComputable?`(${g.loaded} of ${g.total} bytes transferred)`:""}`))},o.ontimeout=g=>{p(new Error(`Request timeout while attempting to reach ${n.url}${g.lengthComputable?`(${g.loaded} of ${g.total} bytes transferred)`:""}`))},o.onabort=()=>{d(!0),u=!0},o.onreadystatechange=()=>{c&&(d(),s.socket=setTimeout(()=>h("ESOCKETTIMEDOUT"),c.socket)),!u&&o.readyState===4&&o.status!==0&&function(){if(!(u||l||f)){if(o.status===0)return void p(new Error("Unknown XHR error"));d(),l=!0,t(null,{body:o.response||(o.responseType===""||o.responseType==="text"?o.responseText:""),url:n.url,method:n.method,headers:RA(o.getAllResponseHeaders()),statusCode:o.status,statusMessage:o.statusText})}}()},o.open(n.method,n.url,!0),o.withCredentials=!!n.withCredentials,a&&o.setRequestHeader)for(const g in a)a.hasOwnProperty(g)&&o.setRequestHeader(g,a[g]);return n.rawBody&&(o.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:n,adapter:Dl,request:o,context:e}),o.send(n.body||null),c&&(s.connect=setTimeout(()=>h("ETIMEDOUT"),c.connect)),{abort:function(){u=!0,o&&o.abort()}};function h(g){f=!0,o.abort();const _=new Error(g==="ESOCKETTIMEDOUT"?`Socket timed out on request to ${n.url}`:`Connection timed out on request to ${n.url}`);_.code=g,e.channels.error.publish(_)}function d(g){(g||u||o.readyState>=2&&s.connect)&&clearTimeout(s.connect),s.socket&&clearTimeout(s.socket)}function p(g){if(l)return;d(!0),l=!0,o=null;const _=g||new Error(`Network error while attempting to reach ${n.url}`);_.isNetworkError=!0,_.request=n,t(_)}},$A=(e=[],t=OA)=>mv(e,t);var PA={},ip,op,ap,cp,lp,Hc={exports:{}};lp||(lp=1,function(e,t){t.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const s="color: "+this.color;n.splice(1,0,s,"color: inherit");let i=0,o=0;n[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(i++,a==="%c"&&(o=i))}),n.splice(o,0,s)},t.save=function(n){try{n?t.storage.setItem("debug",n):t.storage.removeItem("debug")}catch{}},t.load=function(){let n;try{n=t.storage.getItem("debug")}catch{}return!n&&typeof process<"u"&&"env"in process&&(n=PA.DEBUG),n},t.useColors=function(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;
83if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let n;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(n=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(n[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch{}}(),t.destroy=(()=>{let n=!1;return()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=(cp?ap:(cp=1,ap=function(n){function s(a){let c,u,l,f=null;function h(...d){if(!h.enabled)return;const p=h,g=Number(new Date),_=g-(c||g);p.diff=_,p.prev=c,p.curr=g,c=g,d[0]=s.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");let v=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(y,m)=>{if(y==="%%")return"%";v++;const b=s.formatters[m];if(typeof b=="function"){const w=d[v];y=b.call(p,w),d.splice(v,1),v--}return y}),s.formatArgs.call(p,d),(p.log||s.log).apply(p,d)}return h.namespace=a,h.useColors=s.useColors(),h.color=s.selectColor(a),h.extend=i,h.destroy=s.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(u!==s.namespaces&&(u=s.namespaces,l=s.enabled(a)),l),set:d=>{f=d}}),typeof s.init=="function"&&s.init(h),h}function i(a,c){const u=s(this.namespace+(typeof c>"u"?":":c)+a);return u.log=this.log,u}function o(a,c){let u=0,l=0,f=-1,h=0;for(;u<a.length;)if(l<c.length&&(c[l]===a[u]||c[l]==="*"))c[l]==="*"?(f=l,h=u,l++):(u++,l++);else{if(f===-1)return!1;l=f+1,h++,u=h}for(;l<c.length&&c[l]==="*";)l++;return l===c.length}return s.debug=s,s.default=s,s.coerce=function(a){return a instanceof Error?a.stack||a.message:a},s.disable=function(){const a=[...s.names,...s.skips.map(c=>"-"+c)].join(",");return s.enable(""),a},s.enable=function(a){s.save(a),s.namespaces=a,s.names=[],s.skips=[];const c=(typeof a=="string"?a:"").trim().replace(" ",",").split(",").filter(Boolean);for(const u of c)u[0]==="-"?s.skips.push(u.slice(1)):s.names.push(u)},s.enabled=function(a){for(const c of s.skips)if(o(a,c))return!1;for(const c of s.names)if(o(a,c))return!0;return!1},s.humanize=function(){if(op)return ip;op=1;var a=1e3,c=60*a,u=60*c,l=24*u,f=7*l;function h(d,p,g,_){var v=p>=1.5*g;return Math.round(d/g)+" "+_+(v?"s":"")}return ip=function(d,p){p=p||{};var g,_,v=typeof d;if(v==="string"&&d.length>0)return function(y){if(!((y=String(y)).length>100)){var m=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(y);if(m){var b=parseFloat(m[1]);switch((m[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*b;case"weeks":case"week":case"w":return b*f;case"days":case"day":case"d":return b*l;case"hours":case"hour":case"hrs":case"hr":case"h":return b*u;case"minutes":case"minute":case"mins":case"min":case"m":return b*c;case"seconds":case"second":case"secs":case"sec":case"s":return b*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}(d);if(v==="number"&&isFinite(d))return p.long?(g=d,(_=Math.abs(g))>=l?h(g,_,l,"day"):_>=u?h(g,_,u,"hour"):_>=c?h(g,_,c,"minute"):_>=a?h(g,_,a,"second"):g+" ms"):function(y){var m=Math.abs(y);return m>=l?Math.round(y/l)+"d":m>=u?Math.round(y/u)+"h":m>=c?Math.round(y/c)+"m":m>=a?Math.round(y/a)+"s":y+"ms"}(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))}}(),s.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}
83,Object.keys(n).forEach(a=>{s[a]=n[a]}),s.names=[],s.skips=[],s.formatters={},s.selectColor=function(a){let c=0;for(let u=0;u<a.length;u++)c=(c<<5)-c+a.charCodeAt(u),c|=0;return s.colors[Math.abs(c)%s.colors.length]},s.enable(s.load()),s}))(t);const{formatters:r}=e.exports;r.j=function(n){try{return JSON.stringify(n)}catch(s){return"[UnexpectedJSONParseError]: "+s.message}}}(Hc,Hc.exports)),Hc.exports;const IA=typeof Buffer>"u"?()=>!1:e=>Buffer.isBuffer(e);function up(e){return Object.prototype.toString.call(e)==="[object Object]"}function jA(e){if(up(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(up(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)}const LA=["boolean","string","number"];function MA(){return{processOptions:e=>{const t=e.body;return!t||typeof t.pipe=="function"||IA(t)||LA.indexOf(typeof t)===-1&&!Array.isArray(t)&&!jA(t)?e:Object.assign({},e,{body:JSON.stringify(e.body),headers:Object.assign({},e.headers,{"Content-Type":"application/json"})})}}}function NA(e){return{onResponse:r=>{const n=r.headers["content-type"]||"",s=e&&e.force||n.indexOf("application/json")!==-1;return r.body&&n&&s?Object.assign({},r,{body:t(r.body)}):r},processOptions:r=>Object.assign({},r,{headers:Object.assign({Accept:"application/json"},r.headers)})};function t(r){try{return JSON.parse(r)}catch(n){throw n.message=`Failed to parsed response body as JSON: ${n.message}`,n}}}let Ys={};typeof globalThis<"u"?Ys=globalThis:typeof window<"u"?Ys=window:typeof global<"u"?Ys=global:typeof self<"u"&&(Ys=self);var DA=Ys;function UA(e={}){const t=e.implementation||DA.Observable;if(!t)throw new Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(r,n)=>new t(s=>(r.error.subscribe(i=>s.error(i)),r.progress.subscribe(i=>s.next(Object.assign({type:"progress"},i))),r.response.subscribe(i=>{s.next(Object.assign({type:"response"},i)),s.complete()}),r.request.publish(n),()=>r.abort.publish()))}}function FA(){return{onRequest:e=>{if(e.adapter!=="xhr")return;const t=e.request,r=e.context;function n(s){return i=>{const o=i.lengthComputable?i.loaded/i.total*100:-1;r.channels.progress.publish({stage:s,percent:o,total:i.total,loaded:i.loaded,lengthComputable:i.lengthComputable})}}"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=n("upload")),"onprogress"in t&&(t.onprogress=n("download"))}}}var vv=(e,t,r)=>(r.method==="GET"||r.method==="HEAD")&&(e.isNetworkError||!1);function HA(e){return 100*Math.pow(2,e)+100*Math.random()}const Gu=(e={})=>(t=>{const r=t.maxRetries||5,n=t.retryDelay||HA,s=t.shouldRetry;return{onError:(i,o)=>{const a=o.options,c=a.maxRetries||r,u=a.retryDelay||n,l=a.shouldRetry||s,f=a.attemptNumber||0;if((h=a.body)!==null&&typeof h=="object"&&typeof h.pipe=="function"||!l(i,f,a)||f>=c)return i;var h;const d=Object.assign({},o,{options:Object.assign({},a,{attemptNumber:f+1})});return setTimeout(()=>o.channels.request.publish(d),u(f)),null}}})({shouldRetry:vv,...e});Gu.shouldRetry=vv;var _v={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},Ju={0:8203,1:8204,2:8205,3:65279},BA=new Array(4).fill(String.fromCodePoint(Ju[0])).join("");function qA(e){let t=JSON.stringify(e);return`${BA}${Array.from(t).map(r=>{let n=r.charCodeAt(0);if(n>255)throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${t} on character ${r} (${n})`);return Array.from(n.toString(4).padStart(4,"0")).map(s=>String.fromCodePoint(Ju[s])).join("")}).join("")}`}function zA(e){return!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e)?!1:!!Date.parse(e)}function WA(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}function dL(e,t,r="auto"){return r===!0||r==="auto"&&(zA(e)||WA(e))?e:`${e}${qA(t)}`}Object.fromEntries(Object.entries(Ju).map(e=>e.reverse()));Object.fromEntries(Object.entries(_v).map(e=>e.reverse()));var KA=`${Object.values(_v).map(e=>`\\u{${e.toString(16)}}`).join("")}`,fp=new RegExp(`[${KA}]{4,}`,"gu");function VA(e){var t;return{cleaned:e.replace(fp,""),encoded:((t=e.match(fp))==null?void 0:t[0])||""}}function GA(e){return e&&JSON.parse(VA(JSON.stringify(e)).cleaned)}function JA(e){return GA(e)}
83class YA extends Error{constructor(r){const n=bv(r);super(n.message);N(this,"response");N(this,"statusCode",400);N(this,"responseBody");N(this,"details");Object.assign(this,n)}}class QA extends Error{constructor(r){const n=bv(r);super(n.message);N(this,"response");N(this,"statusCode",500);N(this,"responseBody");N(this,"details");Object.assign(this,n)}}function bv(e){const t=e.body,r={response:e,statusCode:e.statusCode,responseBody:tO(t,e),message:"",details:void 0};if(t.error&&t.message)return r.message=`${t.error} - ${t.message}`,r;if(XA(t)||ZA(t)){const n=t.error.items||[],s=n.slice(0,5).map(o=>{var a;return(a=o.error)==null?void 0:a.description}).filter(Boolean);let i=s.length?`: 84- ${s.join(` 85- `)}`:"";return n.length>5&&(i+=` 86...and ${n.length-5} more`),r.message=`${t.error.description}${i}`,r.details=t.error,r}return t.error&&t.error.description?(r.message=t.error.description,r.details=t.error,r):(r.message=t.error||t.message||eO(e),r)}function XA(e){return ca(e)&&ca(e.error)&&e.error.type==="mutationError"&&typeof e.error.description=="string"}function ZA(e){return ca(e)&&ca(e.error)&&e.error.type==="actionError"&&typeof e.error.description=="string"}function ca(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function eO(e){const t=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${t}`}function tO(e,t){return(t.headers["content-type"]||"").toLowerCase().indexOf("application/json")!==-1?JSON.stringify(e,null,2):e}class rO extends Error{constructor({projectId:r}){super("CorsOriginError");N(this,"projectId");N(this,"addOriginUrl");this.name="CorsOriginError",this.projectId=r;const n=new URL(`https://sanity.io/manage/project/${r}/api`);if(typeof location<"u"){const{origin:s}=location;n.searchParams.set("cors","add"),n.searchParams.set("origin",s),this.addOriginUrl=n,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${n}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${n}`}}const nO={onResponse:e=>{if(e.statusCode>=500)throw new QA(e);if(e.statusCode>=400)throw new YA(e);return e}};function sO(){const e={};return{onResponse:t=>{const r=t.headers["x-sanity-warning"],n=Array.isArray(r)?r:[r];for(const s of n)!s||e[s]||(e[s]=!0,console.warn(s));return t}}}function hp(e){return $A([Gu({shouldRetry:iO}),...e,sO(),MA(),NA(),FA(),nO,UA({implementation:We})])}function iO(e,t,r){if(r.maxRetries===0)return!1;const n=r.method==="GET"||r.method==="HEAD",s=(r.uri||r.url).startsWith("/data/query"),i=e.response&&(e.response.statusCode===429||e.response.statusCode===502||e.response.statusCode===503);return(n||s)&&i?!0:Gu.shouldRetry(e,t,r)}const oO="https://www.sanity.io/help/";function Yu(e){return oO+e}const dp=["image","file"],pp=["before","after","replace"],wv=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw new Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},aO=e=>{if(!/^[-a-z0-9]+$/i.test(e))throw new Error("`projectId` can only contain only a-z, 0-9 and dashes")},cO=e=>{if(dp.indexOf(e)===-1)throw new Error(`Invalid asset type: ${e}. Must be one of ${dp.join(", ")}`)},ui=(e,t)=>{if(t===null||typeof t!="object"||Array.isArray(t))throw new Error(`${e}() takes an object of properties`)},Sv=(e,t)=>{if(typeof t!="string"||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(".."))throw new Error(`${e}(): "${t}" is not a valid document ID`)},la=(e,t)=>{if(!t._id)throw new Error(`${e}() requires that the document contains an ID ("_id" property)`);Sv(e,t._id)},lO=(e,t,r)=>{const n="insert(at, selector, items)";if(pp.indexOf(e)===-1){const s=pp.map(i=>`"${i}"`).join(", ");throw new Error(`${n} takes an "at"-argument which is one of: ${s}`)}if(typeof t!="string")throw new Error(`${n} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw new Error(`${n} takes an "items"-argument which must be an array`)},Ev=e=>{if(!e.dataset)throw new Error("`dataset` must be provided to perform queries");return e.dataset||""},Tv=e=>{if(typeof e!="string"||!/^[a-z0-9._-]{1,75}$/i.test(e))throw new Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e},kv=e=>{if(!e["~experimental_resource"])throw new Error("`resource` must be provided to perform resource queries");const{type:t,id:r}=e["~experimental_resource"];switch(t){case"dataset":{if(r.split(".").length!==2)throw new Error('Dataset resource ID must be in the format "project.dataset"');return}case"dashboard":case"media-library":case"canvas":return;default:throw new Error(`Unsupported resource type: ${t.toString()}`)}},tr=(e,t)=>{if(t["~experimental_resource"])throw new Error(`\`${e}\` does not support resource-based operations`)};function uO(e){let t=!1,r;return(...n)=>(t||(r=e(...n),t=!0),r)}const Fn=e=>uO((...t)=>console.warn(e.join(" "),...t)),fO=Fn(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),hO=Fn(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),dO=Fn(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),pO=Fn(["The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version"]),gO=Fn(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${Yu("js-client-browser-token")} for more information and how to hide this warning.`]),yO=Fn(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),mO=Fn(["Using the Sanity client without specifying an API version is deprecated.",`See ${Yu("js-client-api-version")}`]),vO="apicdn.sanity.io",fi={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}}
86,_O=["localhost","127.0.0.1","0.0.0.0"],bO=e=>_O.indexOf(e)!==-1;function wO(e){if(e==="1"||e==="X")return;const t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw new Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}function xv(e){if(Array.isArray(e)&&e.length>1&&e.includes("raw"))throw new TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}const Cv=(e,t)=>{const r={...t,...e,stega:{...typeof t.stega=="boolean"?{enabled:t.stega}:t.stega||fi.stega,...typeof e.stega=="boolean"?{enabled:e.stega}:e.stega||{}}};r.apiVersion||mO();const n={...fi,...r},s=n.useProjectHostname&&!n["~experimental_resource"];if(typeof Promise>"u"){const h=Yu("js-client-promise-polyfill");throw new Error(`No native Promise-implementation found, polyfill needed - see ${h}`)}if(s&&!n.projectId)throw new Error("Configuration must contain `projectId`");if(n["~experimental_resource"]&&kv(n),typeof n.perspective<"u"&&xv(n.perspective),"encodeSourceMap"in n)throw new Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in n)throw new Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");if(typeof n.stega.enabled!="boolean")throw new Error(`stega.enabled must be a boolean, received ${n.stega.enabled}`);if(n.stega.enabled&&n.stega.studioUrl===void 0)throw new Error("stega.studioUrl must be defined when stega.enabled is true");if(n.stega.enabled&&typeof n.stega.studioUrl!="string"&&typeof n.stega.studioUrl!="function")throw new Error(`stega.studioUrl must be a string or a function, received ${n.stega.studioUrl}`);const i=typeof window<"u"&&window.location&&window.location.hostname,o=i&&bO(window.location.hostname),a=!!n.token;n.withCredentials&&a&&(yO(),n.withCredentials=!1),i&&o&&a&&n.ignoreBrowserTokenWarning!==!0?gO():typeof n.useCdn>"u"&&hO(),s&&aO(n.projectId),n.dataset&&wv(n.dataset),"requestTagPrefix"in n&&(n.requestTagPrefix=n.requestTagPrefix?Tv(n.requestTagPrefix).replace(/\.+$/,""):void 0),n.apiVersion=`${n.apiVersion}`.replace(/^v/,""),n.isDefaultApi=n.apiHost===fi.apiHost,n.useCdn===!0&&n.withCredentials&&fO(),n.useCdn=n.useCdn!==!1&&!n.withCredentials,wO(n.apiVersion);const c=n.apiHost.split("://",2),u=c[0],l=c[1],f=n.isDefaultApi?vO:l;return s?(n.url=`${u}://${n.projectId}.${l}/v${n.apiVersion}`,n.cdnUrl=`${u}://${n.projectId}.${f}/v${n.apiVersion}`):(n.url=`${n.apiHost}/v${n.apiVersion}`,n.cdnUrl=n.url),n};class Rv extends Error{constructor(){super(...arguments);N(this,"name","ConnectionFailedError")}}class SO extends Error{constructor(r,n,s={}){super(r,s);N(this,"name","DisconnectError");N(this,"reason");this.reason=n}}class EO extends Error{constructor(r,n){super(r);N(this,"name","ChannelError");N(this,"data");this.data=n}}class TO extends Error{constructor(r,n,s={}){super(r,s);N(this,"name","MessageError");N(this,"data");this.data=n}}
86class gp extends Error{constructor(){super(...arguments);N(this,"name","MessageParseError")}}const kO=["channelError","disconnect"];function Av(e,t){return lv(()=>{const r=e();return oA(r)?r:Da(r)}).pipe(to(r=>xO(r,t)))}function xO(e,t){return new We(r=>{const n=t.includes("open"),s=t.includes("reconnect");function i(u){if("data"in u){const[l,f]=yp(u);r.error(l?new gp("Unable to parse EventSource error message",{cause:f}):new TO((f==null?void 0:f.data).message,f));return}e.readyState===e.CLOSED?r.error(new Rv("EventSource connection failed")):s&&r.next({type:"reconnect"})}function o(){r.next({type:"open"})}function a(u){var h;const[l,f]=yp(u);if(l){r.error(new gp("Unable to parse EventSource message",{cause:l}));return}if(u.type==="channelError"){r.error(new EO(CO(f==null?void 0:f.data),f.data));return}if(u.type==="disconnect"){r.error(new SO(`Server disconnected client: ${((h=f.data)==null?void 0:h.reason)||"unknown error"}`));return}r.next({type:u.type,id:u.lastEventId,...f.data?{data:f.data}:{}})}e.addEventListener("error",i),n&&e.addEventListener("open",o);const c=[...new Set([...kO,...t])].filter(u=>u!=="error"&&u!=="open"&&u!=="reconnect");return c.forEach(u=>e.addEventListener(u,a)),()=>{e.removeEventListener("error",i),n&&e.removeEventListener("open",o),c.forEach(u=>e.removeEventListener(u,a)),e.close()}})}function yp(e){try{const t=typeof e.data=="string"&&JSON.parse(e.data);return[null,{type:e.type,id:e.lastEventId,...RO(t)?{}:{data:t}}]}catch(t){return[t,null]}}function CO(e){return e.error?e.error.description?e.error.description:typeof e.error=="string"?e.error:JSON.stringify(e.error,null,2):e.message||"Unknown listener error"}function RO(e){for(const t in e)return!1;return!0}function Ov(e){if(typeof e=="string")return{id:e};if(Array.isArray(e))return{query:"*[_id in $ids]",params:{ids:e}};if(typeof e=="object"&&e!==null&&"query"in e&&typeof e.query=="string")return"params"in e&&typeof e.params=="object"&&e.params!==null?{query:e.query,params:e.params}:{query:e.query};const t=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(` 87`);throw new Error(`Unknown selection - must be one of: 88 89${t}`)}class $v{constructor(t,r={}){N(this,"selection");N(this,"operations");this.selection=t,this.operations=r}set(t){return this._assign("set",t)}setIfMissing(t){return this._assign("setIfMissing",t)}diffMatchPatch(t){return ui("diffMatchPatch",t),this._assign("diffMatchPatch",t)}unset(t){if(!Array.isArray(t))throw new Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:t}),this}inc(t){return this._assign("inc",t)}dec(t){return this._assign("dec",t)}insert(t,r,n){return lO(t,r,n),this._assign("insert",{[t]:r,items:n})}append(t,r){return this.insert("after",`${t}[-1]`,r)}prepend(t,r){return this.insert("before",`${t}[0]`,r)}splice(t,r,n,s){const i=typeof n>"u"||n===-1,o=r<0?r-1:r,a=i?-1:Math.max(0,r+n),c=o<0&&a>=0?"":a,u=`${t}[${o}:${c}]`;return this.insert("replace",u,s||[])}ifRevisionId(t){return this.operations.ifRevisionID=t,this}serialize(){return{...Ov(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(t,r,n=!0){return ui(t,r),this.operations=Object.assign({},this.operations,{[t]:Object.assign({},n&&this.operations[t]||{},r)}),this}_set(t,r){return this._assign(t,r,!1)}}var wn;const ff=class ff extends $v{constructor(r,n,s){super(r,n);ke(this,wn);xe(this,wn,s)}clone(){return new ff(this.selection,{...this.operations},L(this,wn))}commit(r){if(!L(this,wn))throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");const n=typeof this.selection=="string",s=Object.assign({returnFirst:n,returnDocuments:!0},r);return L(this,wn).mutate({patch:this.serialize()},s)}};wn=new WeakMap;let On=ff;var Sn;const hf=class hf extends $v{constructor(r,n,s){super(r,n);ke(this,Sn);xe(this,Sn,s)}clone(){return new hf(this.selection,{...this.operations},L(this,Sn))}commit(r){if(!L(this,Sn))throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");
89const n=typeof this.selection=="string",s=Object.assign({returnFirst:n,returnDocuments:!0},r);return L(this,Sn).mutate({patch:this.serialize()},s)}};Sn=new WeakMap;let Zr=hf;const Pv={returnDocuments:!1};class Iv{constructor(t=[],r){N(this,"operations");N(this,"trxId");this.operations=t,this.trxId=r}create(t){return ui("create",t),this._add({create:t})}createIfNotExists(t){const r="createIfNotExists";return ui(r,t),la(r,t),this._add({[r]:t})}createOrReplace(t){const r="createOrReplace";return ui(r,t),la(r,t),this._add({[r]:t})}delete(t){return Sv("delete",t),this._add({delete:{id:t}})}transactionId(t){return t?(this.trxId=t,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(t){return this.operations.push(t),this}}var vr;const df=class df extends Iv{constructor(r,n,s){super(r,s);ke(this,vr);xe(this,vr,n)}clone(){return new df([...this.operations],L(this,vr),this.trxId)}commit(r){if(!L(this,vr))throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return L(this,vr).mutate(this.serialize(),Object.assign({transactionId:this.trxId},Pv,r||{}))}patch(r,n){const s=typeof n=="function",i=typeof r!="string"&&r instanceof Zr,o=typeof r=="object"&&("query"in r||"id"in r);if(i)return this._add({patch:r.serialize()});if(s){const a=n(new Zr(r,{},L(this,vr)));if(!(a instanceof Zr))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:a.serialize()})}if(o){const a=new Zr(r,n||{},L(this,vr));return this._add({patch:a.serialize()})}return this._add({patch:{id:r,...n}})}};vr=new WeakMap;let ua=df;var Wr;const pf=class pf extends Iv{constructor(r,n,s){super(r,s);ke(this,Wr);xe(this,Wr,n)}clone(){return new pf([...this.operations],L(this,Wr),this.trxId)}commit(r){if(!L(this,Wr))throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return L(this,Wr).mutate(this.serialize(),Object.assign({transactionId:this.trxId},Pv,r||{}))}patch(r,n){const s=typeof n=="function";if(typeof r!="string"&&r instanceof On)return this._add({patch:r.serialize()});if(s){const i=n(new On(r,{},L(this,Wr)));if(!(i instanceof On))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:i.serialize()})}return this._add({patch:{id:r,...n}})}};Wr=new WeakMap;let fa=pf;const AO="X-Sanity-Project-ID";function OO(e,t={}){const r={},n=t.token||e.token;n&&(r.Authorization=`Bearer ${n}`),!t.useGlobalApi&&!e.useProjectHostname&&e.projectId&&(r[AO]=e.projectId);const s=!!(typeof t.withCredentials>"u"?e.withCredentials:t.withCredentials),i=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},r,t.headers||{}),timeout:typeof i>"u"?5*60*1e3:i,proxy:t.proxy||e.proxy,json:!0,withCredentials:s,fetch:typeof t.fetch=="object"&&typeof e.fetch=="object"?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}const jv=({query:e,params:t={},options:r={}})=>{const n=new URLSearchParams,{tag:s,includeMutations:i,returnQuery:o,...a}=r;s&&n.append("tag",s),n.append("query",e);for(const[c,u]of Object.entries(t))n.append(`$${c}`,JSON.stringify(u));for(const[c,u]of Object.entries(a))u&&n.append(c,`${u}`);return o===!1&&n.append("returnQuery","false"),i===!1&&n.append("includeMutations","false"),`?${n}`},$O=(e,t)=>e===!1?void 0:typeof e>"u"?t:e,PO=(e={})=>({dryRun:e.dryRun,returnIds:!0,returnDocuments:$O(e.returnDocuments,!0),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}),Qu=e=>e.type==="response",IO=e=>e.body,jO=(e,t)=>e.reduce((r,n)=>(r[t(n)]=n,r),Object.create(null)),LO=11264;function Lv(e,t,r,n,s={},i={}){const o="stega"in i?{...r||{},...typeof i.stega=="boolean"?{enabled:i.stega}:i.stega||{}}:r,a=o.enabled?JA(s):s,c=i.filterResponse===!1?p=>p:p=>p.result,{cache:u,next:l,...f}={useAbortSignal:typeof i.signal<"u",resultSourceMap:o.enabled?"withKeyArraySelector":i.resultSourceMap,...i,returnQuery:i.filterResponse===!1&&i.returnQuery!==!1}
89,h=typeof u<"u"||typeof l<"u"?{...f,fetch:{cache:u,next:l}}:f,d=Ns(e,t,"query",{query:n,params:a},h);return o.enabled?d.pipe(_A(eo(Re(()=>import("./Cc0G_eiQ.js"),[],import.meta.url).then(function(p){return p.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:p})=>p))),bt(([p,g])=>{const _=g(p.result,p.resultSourceMap,o);return c({...p,result:_})})):d.pipe(bt(c))}function Mv(e,t,r,n={}){const s={uri:Nt(e,"doc",r),json:!0,tag:n.tag,signal:n.signal};return no(e,t,s).pipe(Ms(Qu),bt(i=>i.body.documents&&i.body.documents[0]))}function Nv(e,t,r,n={}){const s={uri:Nt(e,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return no(e,t,s).pipe(Ms(Qu),bt(i=>{const o=jO(i.body.documents||[],a=>a._id);return r.map(a=>o[a]||null)}))}function Dv(e,t,r,n){return la("createIfNotExists",r),Ua(e,t,r,"createIfNotExists",n)}function Uv(e,t,r,n){return la("createOrReplace",r),Ua(e,t,r,"createOrReplace",n)}function Fv(e,t,r,n){return Ns(e,t,"mutate",{mutations:[{delete:Ov(r)}]},n)}function Hv(e,t,r,n){let s;r instanceof Zr||r instanceof On?s={patch:r.serialize()}:r instanceof ua||r instanceof fa?s=r.serialize():s=r;const i=Array.isArray(s)?s:[s],o=n&&n.transactionId||void 0;return Ns(e,t,"mutate",{mutations:i,transactionId:o},n)}function Bv(e,t,r,n){const s=Array.isArray(r)?r:[r],i=n&&n.transactionId||void 0,o=n&&n.skipCrossDatasetReferenceValidation||void 0,a=n&&n.dryRun||void 0;return Ns(e,t,"actions",{actions:s,transactionId:i,skipCrossDatasetReferenceValidation:o,dryRun:a},n)}function Ns(e,t,r,n,s={}){const i=r==="mutate",o=r==="actions",a=r==="query",c=i||o?"":jv(n),u=!i&&!o&&c.length<LO,l=u?c:"",f=s.returnFirst,{timeout:h,token:d,tag:p,headers:g,returnQuery:_,lastLiveEventId:v,cacheMode:y}=s,m=Nt(e,r,l),b={method:u?"GET":"POST",uri:m,json:!0,body:u?void 0:n,query:i&&PO(s),timeout:h,headers:g,token:d,tag:p,returnQuery:_,perspective:s.perspective,resultSourceMap:s.resultSourceMap,lastLiveEventId:Array.isArray(v)?v[0]:v,cacheMode:y,canUseCdn:a,signal:s.signal,fetch:s.fetch,useAbortSignal:s.useAbortSignal,useCdn:s.useCdn};return no(e,t,b).pipe(Ms(Qu),bt(IO),bt(w=>{if(!i)return w;const T=w.results||[];if(s.returnDocuments)return f?T[0]&&T[0].document:T.map(A=>A.document);const x=f?"documentId":"documentIds",M=f?T[0]&&T[0].id:T.map(A=>A.id);return{transactionId:w.transactionId,results:T,[x]:M}}))}function Ua(e,t,r,n,s={}){const i={[n]:r},o=Object.assign({returnFirst:!0,returnDocuments:!0},s);return Ns(e,t,"mutate",{mutations:[i]},o)}const ro=e=>e.config().dataset!==void 0&&e.config().projectId!==void 0||e.config()["~experimental_resource"]!==void 0,qv=(e,t)=>ro(e)&&t.startsWith(Nt(e,"query")),MO=(e,t)=>ro(e)&&t.startsWith(Nt(e,"mutate")),NO=(e,t)=>ro(e)&&t.startsWith(Nt(e,"doc","")),DO=(e,t)=>ro(e)&&t.startsWith(Nt(e,"listen")),UO=(e,t)=>ro(e)&&t.startsWith(Nt(e,"history","")),FO=(e,t)=>t.startsWith("/data/")||qv(e,t)||MO(e,t)||NO(e,t)||DO(e,t)||UO(e,t);function no(e,t,r){const n=r.url||r.uri,s=e.config(),i=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&FO(e,n):r.canUseCdn;let o=(r.useCdn??s.useCdn)&&i;const a=r.tag&&s.requestTagPrefix?[s.requestTagPrefix,r.tag].join("."):r.tag||s.requestTagPrefix;if(a&&r.tag!==null&&(r.query={tag:Tv(a),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&qv(e,n)){const l=r.resultSourceMap??s.resultSourceMap;l!==void 0&&l!==!1&&(r.query={resultSourceMap:l,...r.query});const f=r.perspective||s.perspective;typeof f<"u"&&(f==="previewDrafts"&&pO(),xv(f),r.query={perspective:Array.isArray(f)?f.join(","):f,...r.query},(Array.isArray(f)&&f.length>0||f==="previewDrafts"||f==="drafts")&&o&&(o=!1,dO())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),r.returnQuery===!1&&(r.query={returnQuery:"false",...r.query}),o&&r.cacheMode=="noStale"&&(r.query={cacheMode:"noStale",...r.query})}const c=OO(s,Object.assign({},r,{url:Xu(e,n,o)})),u=new We(l=>t(c,s.requester).subscribe(l));return r.signal?u.pipe(HO(r.signal)):u}function Jt(e,t,r){return no(e,t,r).pipe(Ms(n=>n.type==="response"),bt(n=>n.body))}function Nt(e,t,r){const n=e.config();if(n["~experimental_resource"]){kv(n);const o=zO(n),a=r!==void 0?`${t}/${r}`:t;return`${o}/${a}`.replace(/\/($|\?)/,"$1")}const s=Ev(n),i=`/${t}/${s}`;return`/data${r!==void 0?`${i}/${r}`:i}`.replace(/\/($|\?)/,"$1")}function Xu(e,t,r=!1){const{url:n,cdnUrl:s}=e.config();return`${r?s:n}/${t.replace(/^\//,"")}`}function HO(e){return t=>new We(r=>{const n=()=>r.error(qO(e));if(e&&e.aborted){n();return}const s=t.subscribe(r);return e.addEventListener("abort",n),()=>{e.removeEventListener("abort",n),s.unsubscribe()}})}const BO=!!globalThis.DOMException;function qO(e){if(BO)return new DOMException((e==null?void 0:e.reason)??"The operation was aborted.","AbortError");const t=new Error((e==null?void 0:e.reason)??"The operation was aborted.");return t.name="AbortError",t}const zO=e=>{if(!e["~experimental_resource"])throw new Error("`resource` must be provided to perform resource queries");const{type:t,id:r}=e["~experimental_resource"];switch(t){case"dataset":{const n=r.split(".");if(n.length!==2)throw new Error('Dataset ID must be in the format "project.dataset"');return`/projects/${n[0]}/datasets/${n[1]}`}case"canvas":return`/canvases/${r}`;case"media-library":return`/media-libraries/${r}`;case"dashboard":return`/dashboards/${r}`;default:throw new Error(`Unsupported resource type: ${t.toString()}`)}};var Li,Mi;class WO{constructor(t,r){ke(this,Li);ke(this,Mi);xe(this,Li,t),xe(this,Mi,r)}upload(t,r,n){return zv(L(this,Li),L(this,Mi),t,r,n)}}Li=new WeakMap,Mi=new WeakMap;var Ni,Di;class KO{constructor(t,r){ke(this,Ni);ke(this,Di);xe(this,Ni,t),xe(this,Di,r)}upload(t,r,n){const s=zv(L(this,Ni),L(this,Di),t,r,n);return Ye(s.pipe(Ms(i=>i.type==="response"),bt(i=>i.body.document)))}}Ni=new WeakMap,Di=new WeakMap;function zv(e,t,r,n,s={}){cO(r);let i=s.extract||void 0;i&&!i.length&&(i=["none"]);const o=e.config(),a=GO(s,n),{tag:c,label:u,title:l,description:f,creditLine:h,filename:d,source:p}=a,g={label:u,title:l,description:f,filename:d,meta:i,creditLine:h};return p&&(g.sourceId=p.id,g.sourceName=p.name,g.sourceUrl=p.url),no(e,t,{tag:c,method:"POST",timeout:a.timeout||0,uri:VO(o,r),headers:a.contentType?{"Content-Type":a.contentType}:{},query:g,body:n})}function VO(e,t){const r=t==="image"?"images":"files";if(e["~experimental_resource"]){const{type:s,id:i}=e["~experimental_resource"];switch(s){case"dataset":throw new Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${i}/assets/${r}`;case"media-library":return`/media-libraries/${i}/upload`;case"dashboard":return`/dashboards/${i}/assets/${r}`;default:throw new Error(`Unsupported resource type: ${s.toString()}`)}}const n=Ev(e);return`assets/${r}/${n}`}function GO(e,t){return typeof File>"u"||!(t instanceof File)?e:Object.assign({filename:e.preserveFilename===!1?void 0:t.name,contentType:t.type},e)}var JO=(e,t)=>Object.keys(t).concat(Object.keys(e)).reduce((r,n)=>(r[n]=typeof e[n]>"u"?t[n]:e[n],r),{});const YO=(e,t)=>t.reduce((r,n)=>(typeof e[n]>"u"||(r[n]=e[n]),r),{}),Wv=lv(()=>Re(()=>import("./C2-4OFuG.js").then(e=>e.b),[],import.meta.url)).pipe(bt(({default:e})=>e),bA(1));function Kv(){return function(e){return e.pipe(Vu((t,r)=>t instanceof Rv?cv(Da({type:"reconnect"}),gA(1e3).pipe(to(()=>r))):ov(()=>t)))}}const QO=14800,XO=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","tag"],ZO={includeResult:!0};function Vv(e,t,r={}){const{url:n,token:s,withCredentials:i,requestTagPrefix:o}=this.config(),a=r.tag&&o?[o,r.tag].join("."):r.tag,c={...JO(r,ZO),tag:a},u=YO(c,XO),l=jv({query:e,params:t,options:{tag:a,...u}}),f=`${n}${Nt(this,"listen",l)}`;if(f.length>QO)return ov(()=>new Error("Query too large for listener"));const h=c.events?c.events:["mutation"],d={};return i&&(d.withCredentials=!0),s&&(d.headers={Authorization:`Bearer ${s}`}),Av(()=>(typeof EventSource>"u"||d.headers?Wv:Da(EventSource)).pipe(bt(p=>new p(f,d))),h).pipe(Kv(),Ms(p=>h.includes(p.type)),bt(p=>({type:p.type,..."data"in p?p.data:{}})))}function e$(e,t){return t$(typeof e=="function"?{predicate:e,...t}:e)}function t$(e){return t=>{let r,n=!1;const{predicate:s,...i}=e,o=t.pipe(wA(c=>{e.predicate(c)&&(n=!0,r=c)}),fv(()=>{n=!1,r=void 0}),hv(i)),a=new We(c=>{n&&c.next(r),c.complete()});return yA(o,a)}}const mp="2021-03-25";var Kr;class Gv{constructor(t){ke(this,Kr);xe(this,Kr,t)}events({includeDrafts:t=!1,tag:r}={}){tr("live",L(this,Kr).config());const{projectId:n,apiVersion:s,token:i,withCredentials:o,requestTagPrefix:a}=L(this,Kr).config(),c=s.replace(/^v/,"");if(c!=="X"&&c<mp)throw new Error(`The live events API requires API version ${mp} or later. The current API version is ${c}. Please update your API version to use this feature.`);if(t&&!i&&!o)throw new Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");const u=Nt(L(this,Kr),"live/events"),l=new URL(L(this,Kr).getUrl(u,!1)),f=r&&a?[a,r].join("."):r;f&&l.searchParams.set("tag",f),t&&l.searchParams.set("includeDrafts","true");const h={};t&&i&&(h.headers={Authorization:`Bearer ${i}`}),t&&o&&(h.withCredentials=!0);const d=`${l.href}::${JSON.stringify(h)}`,p=Bc.get(d);if(p)return p;const g=Av(()=>(typeof EventSource>"u"||h.headers?Wv:Da(EventSource)).pipe(bt(y=>new y(l.href,h))),["message","restart","welcome","reconnect","goaway"]).pipe(Kv(),bt(y=>{if(y.type==="message"){const{data:m,...b}=y;return{...b,tags:m.tags}}return y}
89)),_=r$(l,{method:"OPTIONS",mode:"cors",credentials:h.withCredentials?"include":"omit",headers:h.headers}).pipe(to(()=>Km),Vu(()=>{throw new rO({projectId:n})})),v=cv(_,g).pipe(fv(()=>Bc.delete(d)),e$({predicate:y=>y.type==="welcome"}));return Bc.set(d,v),v}}Kr=new WeakMap;function r$(e,t){return new We(r=>{const n=new AbortController,s=n.signal;return fetch(e,{...t,signal:n.signal}).then(i=>{r.next(i),r.complete()},i=>{s.aborted||r.error(i)}),()=>n.abort()})}const Bc=new Map;var Vr,Gr;class n${constructor(t,r){ke(this,Vr);ke(this,Gr);xe(this,Vr,t),xe(this,Gr,r)}create(t,r){return ds(L(this,Vr),L(this,Gr),"PUT",t,r)}edit(t,r){return ds(L(this,Vr),L(this,Gr),"PATCH",t,r)}delete(t){return ds(L(this,Vr),L(this,Gr),"DELETE",t)}list(){return Jt(L(this,Vr),L(this,Gr),{uri:"/datasets",tag:null})}}Vr=new WeakMap,Gr=new WeakMap;var Pt,Jr;class s${constructor(t,r){ke(this,Pt);ke(this,Jr);xe(this,Pt,t),xe(this,Jr,r)}create(t,r){return tr("dataset",L(this,Pt).config()),Ye(ds(L(this,Pt),L(this,Jr),"PUT",t,r))}edit(t,r){return tr("dataset",L(this,Pt).config()),Ye(ds(L(this,Pt),L(this,Jr),"PATCH",t,r))}delete(t){return tr("dataset",L(this,Pt).config()),Ye(ds(L(this,Pt),L(this,Jr),"DELETE",t))}list(){return tr("dataset",L(this,Pt).config()),Ye(Jt(L(this,Pt),L(this,Jr),{uri:"/datasets",tag:null}))}}Pt=new WeakMap,Jr=new WeakMap;function ds(e,t,r,n,s){return tr("dataset",e.config()),wv(n),Jt(e,t,{method:r,uri:`/datasets/${n}`,body:s,tag:null})}var Yr,ys;class i${constructor(t,r){ke(this,Yr);ke(this,ys);xe(this,Yr,t),xe(this,ys,r)}list(t){tr("projects",L(this,Yr).config());const r=(t==null?void 0:t.includeMembers)===!1?"/projects?includeMembers=false":"/projects";return Jt(L(this,Yr),L(this,ys),{uri:r})}getById(t){return tr("projects",L(this,Yr).config()),Jt(L(this,Yr),L(this,ys),{uri:`/projects/${t}`})}}Yr=new WeakMap,ys=new WeakMap;var Qr,ms;class o${constructor(t,r){ke(this,Qr);ke(this,ms);xe(this,Qr,t),xe(this,ms,r)}list(t){tr("projects",L(this,Qr).config());const r=(t==null?void 0:t.includeMembers)===!1?"/projects?includeMembers=false":"/projects";return Ye(Jt(L(this,Qr),L(this,ms),{uri:r}))}getById(t){return tr("projects",L(this,Qr).config()),Ye(Jt(L(this,Qr),L(this,ms),{uri:`/projects/${t}`}))}}Qr=new WeakMap,ms=new WeakMap;var Ui,Fi;class a${constructor(t,r){ke(this,Ui);ke(this,Fi);xe(this,Ui,t),xe(this,Fi,r)}getById(t){return Jt(L(this,Ui),L(this,Fi),{uri:`/users/${t}`})}}Ui=new WeakMap,Fi=new WeakMap;var Hi,Bi;class c${constructor(t,r){ke(this,Hi);ke(this,Bi);xe(this,Hi,t),xe(this,Bi,r)}getById(t){return Ye(Jt(L(this,Hi),L(this,Bi),{uri:`/users/${t}`}))}}Hi=new WeakMap,Bi=new WeakMap;var _r,Ge;const pa=class pa{constructor(t,r=fi){N(this,"assets");N(this,"datasets");N(this,"live");N(this,"projects");N(this,"users");ke(this,_r);ke(this,Ge);N(this,"listen",Vv);this.config(r),xe(this,Ge,t),this.assets=new WO(this,L(this,Ge)),this.datasets=new n$(this,L(this,Ge)),this.live=new Gv(this),this.projects=new i$(this,L(this,Ge)),this.users=new a$(this,L(this,Ge))}clone(){return new pa(L(this,Ge),this.config())}config(t){if(t===void 0)return{...L(this,_r)};if(L(this,_r)&&L(this,_r).allowReconfigure===!1)throw new Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return xe(this,_r,Cv(t,L(this,_r)||{})),this}withConfig(t){const r=this.config();return new pa(L(this,Ge),{...r,...t,stega:{...r.stega||{},...typeof(t==null?void 0:t.stega)=="boolean"?{enabled:t.stega}:(t==null?void 0:t.stega)||{}}})}fetch(t,r,n){return Lv(this,L(this,Ge),L(this,_r).stega,t,r,n)}getDocument(t,r){return Mv(this,L(this,Ge),t,r)}getDocuments(t,r){return Nv(this,L(this,Ge),t,r)}create(t,r){return Ua(this,L(this,Ge),t,"create",r)}createIfNotExists(t,r){return Dv(this,L(this,Ge),t,r)}createOrReplace(t,r){return Uv(this,L(this,Ge),t,r)}delete(t,r){return Fv(this,L(this,Ge),t,r)}mutate(t,r){return Hv(this,L(this,Ge),t,r)}patch(t,r){return new On(t,r,this)}transaction(t){return new fa(t,this)}action(t,r){return Bv(this,L(this,Ge),t,r)}request(t){return Jt(this,L(this,Ge),t)}getUrl(t,r){return Xu(this,t,r)}getDataUrl(t,r){return Nt(this,t,r)}};_r=new WeakMap,Ge=new WeakMap;let Ul=pa;var br,Ke;const ga=class ga{constructor(t,r=fi){N(this,"assets");N(this,"datasets");N(this,"live");N(this,"projects");N(this,"users");N(this,"observable");ke(this,br);ke(this,Ke);N(this,"listen",Vv);this.config(r),xe(this,Ke,t),this.assets=new KO(this,L(this,Ke)),this.datasets=new s$(this,L(this,Ke)),this.live=new Gv(this),this.projects=new o$(this,L(this,Ke)),this.users=new c$(this,L(this,Ke)),this.observable=new Ul(t,r)}clone(){return new ga(L(this,Ke),this.config())}config(t){if(t===void 0)return{...L(this,br)};if(L(this,br)&&L(this,br).allowReconfigure===!1)throw new Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(t),xe(this,br,Cv(t,L(this,br)||{})),this}withConfig(t){const r=this.config();return new ga(L(this,Ke),{...r,...t,stega:{...r.stega||{},...typeof(t==null?void 0:t.stega)=="boolean"?{enabled:t.stega}:(t==null?void 0:t.stega)||{}}})}fetch(t,r,n){return Ye(Lv(this,L(this,Ke),L(this,br).stega,t,r,n))}getDocument(t,r){return Ye(Mv(this,L(this,Ke),t,r))}getDocuments(t,r){return Ye(Nv(this,L(this,Ke),t,r))}create(t,r){return Ye(Ua(this,L(this,Ke),t,"create",r))}createIfNotExists(t,r){return Ye(Dv(this,L(this,Ke),t,r))}createOrReplace(t,r){return Ye(Uv(this,L(this,Ke),t,r))}delete(t,r){return Ye(Fv(this,L(this,Ke),t,r))}mutate(t,r){return Ye(Hv(this,L(this,Ke),t,r))}patch(t,r){return new Zr(t,r,this)}transaction(t){return new ua(t,this)}action(t,r){return Ye(Bv(this,L(this,Ke),t,r))}request(t){return Ye(Jt(this,L(this,Ke),t))}dataRequest(t,r,n){return Ye(Ns(this,L(this,Ke),t,r,n))}getUrl(t,r){return Xu(this,t,r)}getDataUrl(t,r){return Nt(this,t,r)}};br=new WeakMap,Ke=new WeakMap;let Fl=ga;function l$(e,t){return{requester:hp(e),createClient:r=>{const n=hp(e);return new t((s,i)=>(i||n)({maxRedirects:0,maxRetries:r.maxRetries,retryDelay:r.retryDelay,...s}),r)}}}var u$=[];const f$=l$(u$,Fl),vp=f$.createClient,_p=(e,t,r)=>MC({tag:"nuxt-loader",client:!1,ssr:!0}),bp=e=>{const t={...e},{visualEditing:r,...n}=t,s=Jv(),i=r&&(!r.previewMode||s.enabled);n.stega=i&&n.stega;let o=vp(n),a=i?_p():void 0;return{client:o,config:t,fetch:(...c)=>o.fetch(...c),queryStore:a,setToken(c){t.token=c,o=vp(n),a&&r&&(a=_p())}}},Jv=()=>{const e=lt("_sanity_visualEditing",()=>!1);return gt({enabled:e,inFrame:h$()})},h$=()=>!!(window.self!==window.top||window.opener),Zu=(e="default")=>{var a;const t=Ae();if((a=t._sanity)!=null&&a[e])return t._sanity[e];t._sanity=t._sanity||{};const n=yt().public.sanity,{additionalClients:s={},visualEditing:i,...o}=n;return e==="default"?(t._sanity.default=bp({...o,visualEditing:i||void 0}),t._sanity.default):(t._sanity[e]=bp(Ps(s[e],o)),t._sanity[e])},d$=(e,t,r={})=>{const{client:n,perspective:s,...i}=r,o=Zu(n),a=t?gt(t):void 0;a&&(i.watch=i.watch||[],i.watch.push(a));const c=s||o.queryStore?"previewDrafts":"published",u="sanity-"+vC(e+(a?JSON.stringify(a):"")),l=ye(null),f=ye(null),h=ye(()=>{}),d=(g,_)=>{var v;l.value=g,f.value=_||null,h.value=Um(g,_,(v=o.config.visualEditing)==null?void 0:v.studioUrl)};let p;if(!o.queryStore)p=Fh(u,async()=>({data:await o.fetch(e,a||{},{perspective:c})}),i);else{let g=()=>{};const _=y=>{g(),g=o.queryStore.createFetcherStore(e,a?JSON.parse(JSON.stringify(a)):void 0,void 0).subscribe(b=>{b.data&&d(b.data,b.sourceMap)})},v={fetch:(y,m,b)=>$fetch(o.config.visualEditing.proxyEndpoint,{method:"POST",body:{query:y,params:m,options:b}})};p=Fh(u,async()=>{const y=v,{result:m,resultSourceMap:b}=await y.fetch(e,a||{},{perspective:c,filterResponse:!1,resultSourceMap:"withKeyArraySelector"});return b?{data:m,sourceMap:b}:{data:m}},i),_(),a&&Ve(a,()=>_()),Lt(g)}return Object.assign(new Promise(g=>{p.then(_=>{d(_.data.value.data,_.data.value.sourceMap),g({...p,data:l,sourceMap:f,encodeDataAttribute:h})})}),{...p,data:l,sourceMap:f,encodeDataAttribute:h})};function p$(e){const{client:t="default"}={};let r=()=>{};{const n=Zu(t);n.queryStore&&(r=n.queryStore.enableLiveMode({client:n.client}))}return Lt(r),r}function g$(e={}){const{zIndex:t,refresh:r}=e;let n=()=>{};{const s=it();n=EA({zIndex:t,refresh:i=>{function o(){return i.source==="mutation"&&i.livePreviewEnabled?!1:new Promise(a=>{em({ttl:1e3}),a()})}return r?r(i,o):o()},history:{subscribe:i=>(s.isReady().then(()=>{i({type:"replace",url:s.currentRoute.value.fullPath})}),s.afterEach(o=>{i({type:"push",url:o.fullPath})})),update:i=>{i.type==="push"||i.type==="replace"?s[i.type](i.url):i.type==="pop"&&s.back()}}})}return Lt(n),n}const y$=Je(()=>{if(!Jv().enabled)return;const e=yt(),{visualEditing:t}=e.public.sanity;((t==null?void 0:t.mode)==="live-visual-editing"||(t==null?void 0:t.mode)==="visual-editing")&&g$({refresh:t==null?void 0:t.refresh,zIndex:t==null?void 0:t.zIndex}),(t==null?void 0:t.mode)==="live-visual-editing"&&p$()}),m$=Je(e=>{e.provide("sanity",Zu())});function ef(e){const t=gt({});return Ea(()=>{const r=Ae().$nuxtSiteConfig.get(Ps({resolveRefs:!0},e));Object.assign(t,r)}),delete t._priority,t}const v$=Je(()=>{const e=Dn();if(!e)return;const t=ef(),r={meta:[],templateParams:{site:t,siteUrl:t.url,siteName:t.name}};t.separator&&(r.templateParams.separator=t.separator),t.titleSeparator&&(r.templateParams.titleSeparator=t.titleSeparator),t.description&&(r.templateParams.siteDescription=t.description,r.meta.push({name:"description",content:"%site.description",tagPriority:"low"})),e.push(r)}),_$=Je(()=>{const e=Dn();e&&(e.use($y),e.use(hE()))}),b$=/\d/,w$=["-","_","/","."];function S$(e=""){if(!b$.test(e))return e!==e.toLowerCase()}function E$(e,t){const r=w$,n=[];if(!e||typeof e!="string")return n;let s="",i,o;for(const a of e){const c=r.includes(a);if(c===!0){n.push(s),s="",i=void 0;continue}const u=S$(a);if(o===!1){if(i===!1&&u===!0){n.push(s),s=a,i=u;continue}if(i===!0&&u===!1&&s.length>1){const l=s.at(-1);n.push(s.slice(0,Math.max(0,s.length-1))),s=l+a,i=u;continue}}s+=a,i=u,o=c}return n.push(s),n}function T$(e){return e?e[0].toUpperCase()+e.slice(1):""}const k$=/^(a|an|and|as|at|but|by|for|if|in|is|nor|of|on|or|the|to|with)$/i;
89function x$(e,t){return(Array.isArray(e)?e:E$(e)).filter(Boolean).map(r=>k$.test(r)?r.toLowerCase():T$(r)).join(" ")}const C$=Je({name:"nuxt-seo:fallback-titles",env:{islands:!1},setup(){const e=Or(),t=Nn(),r=we(()=>{var o,a,c;if(t.value&&[404,500].includes((o=t.value)==null?void 0:o.statusCode))return`${t.value.statusCode} - ${t.value.message}`;if(typeof((a=e.meta)==null?void 0:a.title)=="string")return(c=e.meta)==null?void 0:c.title;const i=Mn(e.path||"/").split("/").pop();return i?x$(i):null});Aa({title:()=>r.value},{tagPriority:101})}}),R$=()=>{const e=yt().public.supabase,t=e.redirectOptions.saveRedirectToCookie?e.cookiePrefix:e.cookieName,r=Tu(`${t}-redirect-path`,{...e.cookieOptions,readonly:!1});return{path:r,pluck:()=>{const n=r.value;return r.value=null,n}}},A$=Je({name:"auth-redirect",setup(){kS("global-auth",e=>{const t=yt().public.supabase,{login:r,callback:n,include:s,exclude:i,cookieRedirect:o,saveRedirectToCookie:a}=t.redirectOptions;if(s&&s.length>0&&!s.some(f=>new RegExp(`^${f.replace(/\*/g,".*")}$`).test(e.path))||[...i??[],r,n].some(l=>new RegExp(`^${l.replace(/\*/g,".*")}$`).test(e.path)))return;if(!Sm().value){if(o||a){const l=R$();l.path.value=e.fullPath}return wy(r)}},{global:!0})}}),O$=Je({enforce:"post",async setup(){const e=Dn(),t=lt("nuxt-seo-utils:routeRules",()=>null);if(t.value){const{head:r,seoMeta:n}=t.value;r&&e.push(r),n&&Iy(n)}}});function $$(e,t){let r=e;Yt(e,{strict:!1,acceptRelative:!0})&&(r=Ra(e).pathname);const n=ul(t.base||"/");n!=="/"&&r.startsWith(n)&&(r=r.slice(n.length));let s=Mn(t.absolute?t.siteUrl:"");n!=="/"&&s.endsWith(n)&&(s=s.slice(0,s.indexOf(n)));
89const i=t.withBase?fl(n,s||"/"):s,o=fl(r,i);return r==="/"&&!t.withBase?Ss(o):j$(t.trailingSlash,o)}const P$=["jpg","jpeg","png","gif","bmp","webp","svg","ico","pdf","doc","docx","xls","xlsx","ppt","pptx","txt","md","markdown","zip","rar","7z","tar","gz","mp3","wav","flac","ogg","opus","m4a","aac","midi","mid","mp4","avi","mkv","mov","wmv","flv","webm","html","css","js","json","xml","tsx","jsx","ts","vue","svelte","xsl","rss","atom","php","py","rb","java","c","cpp","h","go","csv","tsv","sql","yaml","yml","woff","woff2","ttf","otf","eot","exe","msi","apk","ipa","dmg","iso","bin","bat","cmd","sh","env","htaccess","conf","toml","ini","deb","rpm","jar","war","epub","mobi","log","tmp","bak","old","sav"];function I$(e){var n;const r=(n=(e.split("/").pop()||e).match(/\.[0-9a-z]+$/i))==null?void 0:n[0];return r&&P$.includes(r.replace(".",""))}function j$(e,t){const r=Ra(t);if(I$(r.pathname))return t;const n=e?Ss(r.pathname):Mn(r.pathname);return`${r.protocol?`${r.protocol}//`:""}${r.host||""}${n}${r.search||""}${r.hash||""}`}function L$(e){return window.location.origin}function M$(e={}){const t=ef(),r=L$(),n=yt().app.baseURL||"/";return s=>we(()=>$$(ee(s),{absolute:ee(e.absolute),withBase:ee(e.withBase),siteUrl:ee(e.canonical)!==!1?t.url:r,trailingSlash:t.trailingSlash,base:n}))}function N$(){const e=ef({resolveRefs:!1});Dn().use($y);const{canonicalQueryWhitelist:r,canonicalLowercase:n}=yt().public["seo-utils"],s=Or(),i=M$({withBase:!0,absolute:!0}),o=Nn(),a=we(()=>{if(o.value)return!1;const{query:l}=s;let f=i(s.path||"/").value||s.path;if(n)try{f=f.toLocaleLowerCase(e.currentLocale||"en")}catch{f=f.toLowerCase()}const h=Object.fromEntries(Object.entries(l).filter(([p])=>r.includes(p)).sort(([p],[g])=>p.localeCompare(g)));return{rel:"canonical",href:Object.keys(h).length?`${f}?${oy(h)}`:f}}),c={tagPriority:"low"};Aa({htmlAttrs:{lang:()=>je(e.currentLocale)},templateParams:{site:()=>e,siteName:()=>e.name},titleTemplate:"%s %separator %siteName",link:[()=>a.value]},c);const u={ogType:"website",ogUrl:()=>{const l=a.value;return l?l.href:!1},ogLocale:()=>{const l=je(e.currentLocale);if(l){const f=l.replace("-","_");if(f.includes("_"))return f}return!1},ogSiteName:e.name};if(e.description&&(u.description=e.description),e.twitter){const l=e.twitter.startsWith("@")?e.twitter:`@${e.twitter}`;u.twitterCreator=l,u.twitterSite=l}Iy(u,c)}const D$=Je({name:"nuxt-seo:defaults",order:999,env:{islands:!1},setup(){N$()}}),U$=[xE,$E,X1,wT,Nx,Dx,Ux,Fx,Hx,Jx,sC,iC,y$,m$,v$,_$,C$,A$,O$,D$],so=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},F$={},H$={width:"100%",height:"100%",viewBox:"0 0 59 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B$(e,t){return he(),Oe("svg",H$,t[0]||(t[0]=[vw('<path d="M49.0135 15.15H46.8135V0.850006H49.3335L55.9735 11.85H56.0135V0.850006H58.2335V15.15H55.7135L49.0535 4.15001H49.0135V15.15Z" fill="currentColor"></path><path d="M43.9744 15.15H41.7744V0.850006H43.9744V15.15Z" fill="currentColor"></path><path d="M30.8494 15.15H28.6494V0.850006H34.6094C37.7694 0.850006 39.4694 2.33001 39.4694 4.97001C39.4694 6.79001 38.3694 8.11001 36.7894 8.47001V8.51001C40.1094 9.13001 38.8894 14.77 39.6694 15.01V15.15H37.3094C36.6694 14.55 38.0294 9.55001 34.5294 9.55001H30.8494V15.15ZM30.8494 7.65001H34.1294C36.1494 7.65001 37.2494 6.77001 37.2494 5.13001C37.2494 3.59001 36.3694 2.75001 34.1694 2.75001H30.8494V7.65001Z" fill="currentColor"></path><path d="M20.3012 15.43C16.3812 15.43 14.7212 13.37 14.7212 10.29V0.850006H16.9212V10.29C16.9212 12.51 18.0412 13.53 20.3012 13.53C22.5812 13.53 23.6812 12.51 23.6812 10.29V0.850006H25.9012V10.29C25.9012 13.37 24.2412 15.43 20.3012 15.43Z" fill="currentColor"></path><path d="M6.68 15.43C2.62 15.43 0 12.31 0 8.01001C0 3.69001 2.64 0.570007 6.7 0.570007C10.28 0.570007 12.5 2.85001 12.84 5.71001H10.54C10.28 4.31001 9.4 2.47001 6.66 2.47001C3.5 2.47001 2.3 5.15001 2.3 7.99001C2.3 10.85 3.5 13.53 6.66 13.53C9.42 13.53 10.4 11.69 10.54 9.95001H12.84C12.52 13.13 10.28 15.43 6.68 15.43Z" fill="currentColor"></path>',5)]))}const tf=Object.assign(so(F$,[["render",B$]]),{__name:"Logo"}),q$=Object.freeze(Object.defineProperty({__proto__:null,default:tf},Symbol.toStringTag,{value:"Module"})),z$=ct({__name:"Link",props:{underline:{type:Boolean,default:!1},markActive:{type:Boolean,default:!1},linkType:{},title:{},url:{},target:{default:"_self"},page:{}},setup(e){const t=Or(),r=yg("$line"),n=ye(!1),s=ye(!1),i=e,o=we(()=>!i.underline||t.path===i.url&&i.markActive),a=async()=>
89{if(s.value=!0,!r.value||o.value)return;const c=r.value.animate([{transform:"scaleX(1)"},{transform:"scaleX(0.2)"},{transform:"scaleX(0.2)"},{transform:"scaleX(1)"}],{delay:100,duration:1200,easing:"ease-in-out",fill:"forwards"});await Promise.all([c.finished]),n.value=!0,s.value||(r.value.style.opacity="0")};return(c,u)=>{var f,h;const l=Yi;return he(),at(l,{onMouseenter:a,to:c.url||((f=c.page)==null?void 0:f.url),target:c.target,"aria-label":`Go to page ${c.title||((h=c.page)==null?void 0:h.title)||c.url}`,class:dt(["e-link group relative flex cursor-pointer font-sans leading-none uppercase",c.markActive?"text-3xl lg:text-sm lg:font-medium":"text-sm font-medium"])},{default:Vt(()=>{var d;return[ie("span",{class:dt(["absolute top-1/2 left-0 flex size-6 -translate-y-1/2 p-2 transition-opacity lg:hidden",ee(t).path==c.url&&c.markActive?"opacity-100":"opacity-0"])},u[0]||(u[0]=[ie("span",{class:"size-[6px] bg-current"},null,-1)]),2),ie("span",{class:dt(["flex transition-transform duration-500 select-none md:py-0.5",ee(t).path==c.url&&c.markActive?"translate-x-6 lg:translate-x-0":""])},pt(c.title||((d=c.page)==null?void 0:d.title)||c.url),3),ie("span",{ref_key:"$line",ref:r,class:dt(["line absolute top-full left-0 flex h-px w-full origin-center bg-current",[c.underline||ee(t).path==c.url&&c.markActive?"line-initial":"line-hidden scale-x-0 group-hover:scale-x-100"]])},null,2)]}),_:1},8,["to","target","aria-label","class"])}}}),W$=Object.assign(so(z$,[["__scopeId","data-v-0d5f0a46"]]),{__name:"ElementsLink"});function io(e){return Rs()?(Lt(e),!0):!1}const qc=new WeakMap,K$=(...e)=>{var t;const r=e[0],n=(t=Mt())==null?void 0:t.proxy;if(n==null&&!$s())throw new Error("injectLocal must be called in setup");return n&&qc.has(n)&&r in qc.get(n)?qc.get(n)[r]:nt(...e)},V$=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Yv=e=>e!=null,G$=Object.prototype.toString,J$=e=>G$.call(e)==="[object Object]",sr=()=>{};function Qv(e,t){function r(...n){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(s).catch(i)})}return r}function Y$(e,t={}){let r,n,s=sr;const i=c=>{clearTimeout(c),s(),s=sr};let o;return c=>{const u=je(e),l=je(t.maxWait);return r&&i(r),u<=0||l!==void 0&&l<=0?(n&&(i(n),n=null),Promise.resolve(c())):new Promise((f,h)=>{s=t.rejectOnCancel?h:f,o=c,l&&!n&&(n=setTimeout(()=>{r&&i(r),n=null,f(o())},l)),r=setTimeout(()=>{n&&i(n),n=null,f(c())},u)})}}function Q$(...e){let t=0,r,n=!0,s=sr,i,o,a,c,u;!ze(e[0])&&typeof e[0]=="object"?{delay:o,trailing:a=!0,leading:c=!0,rejectOnCancel:u=!1}=e[0]:[o,a=!0,c=!0,u=!1]=e;const l=()=>{r&&(clearTimeout(r),r=void 0,s(),s=sr)};return h=>{const d=je(o),p=Date.now()-t,g=()=>i=h();return l(),d<=0?(t=Date.now(),g()):(p>d&&(c||!n)?(t=Date.now(),g()):a&&(i=new Promise((_,v)=>{s=u?v:_,r=setTimeout(()=>{t=Date.now(),n=!0,_(g()),l()},Math.max(0,d-p))})),!c&&!r&&(r=setTimeout(()=>n=!0,d)),n=!1,i)}}function X$(e,t){var r;if(typeof e=="number")return e+t;const n=((r=e.match(/^-?\d+\.?\d*/))==null?void 0:r[0])||"",s=e.slice(n.length),i=Number.parseFloat(n)+t;return Number.isNaN(i)?e:i+s}function hi(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function di(e){return Array.isArray(e)?e:[e]}function Z$(e){return Mt()}function eP(e,t=200,r={}){return Qv(Y$(t,r),e)}function tP(e,t=200,r=!1,n=!0,s=!1){return Qv(Q$(t,r,n,s),e)}function rf(e,t=!0,r){Z$()?Tt(e,r):t?e():Ln(e)}function rP(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,s=ze(e),i=Me(e);function o(a){if(arguments.length)return i.value=a,i.value;{const c=je(r);return i.value=i.value===c?je(n):c,i.value}}return s?o:[i,o]}function nP(e,t,r){return Ve(e,t,{...r,immediate:!0})}const lr=V$?window:void 0;function ir(e){var t;const r=je(e);return(t=r==null?void 0:r.$el)!=null?t:r}function kr(...e){const t=[],r=()=>{t.forEach(a=>a()),t.length=0},n=(a,c,u,l)=>(a.addEventListener(c,u,l),()=>a.removeEventListener(c,u,l)),s=we(()=>{const a=di(je(e[0])).filter(c=>c!=null);return a.every(c=>typeof c!="string")?a:void 0}),i=nP(()=>{var a,c;return[(c=(a=s.value)==null?void 0:a.map(u=>ir(u)))!=null?c:[lr].filter(u=>u!=null),di(je(s.value?e[1]:e[0])),di(ee(s.value?e[2]:e[1])),je(s.value?e[3]:e[2])]},([a,c,u,l])=>{if(r(),!(a!=null&&a.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const f=J$(l)?{...l}:l;
89t.push(...a.flatMap(h=>c.flatMap(d=>u.map(p=>n(h,d,p,f)))))},{flush:"post"}),o=()=>{i(),r()};return io(r),o}function sP(){const e=Me(!1),t=Mt();return t&&Tt(()=>{e.value=!0},t),e}function Fa(e){const t=sP();return we(()=>(t.value,!!e()))}function iP(e,t,r={}){const{window:n=lr,...s}=r;let i;const o=Fa(()=>n&&"MutationObserver"in n),a=()=>{i&&(i.disconnect(),i=void 0)},c=we(()=>{const h=je(e),d=di(h).map(ir).filter(Yv);return new Set(d)}),u=Ve(()=>c.value,h=>{a(),o.value&&h.size&&(i=new MutationObserver(t),h.forEach(d=>i.observe(d,s)))},{immediate:!0,flush:"post"}),l=()=>i==null?void 0:i.takeRecords(),f=()=>{u(),a()};return io(f),{isSupported:o,stop:f,takeRecords:l}}function pL(e,t={}){const{immediate:r=!0,fpsLimit:n=void 0,window:s=lr,once:i=!1}=t,o=Me(!1),a=we(()=>n?1e3/je(n):null);let c=0,u=null;function l(d){if(!o.value||!s)return;c||(c=d);const p=d-c;if(a.value&&p<a.value){u=s.requestAnimationFrame(l);return}if(c=d,e({delta:p,timestamp:d}),i){o.value=!1,u=null;return}u=s.requestAnimationFrame(l)}function f(){!o.value&&s&&(o.value=!0,c=0,u=s.requestAnimationFrame(l))}function h(){o.value=!1,u!=null&&s&&(s.cancelAnimationFrame(u),u=null)}return r&&f(),io(h),{isActive:eu(o),pause:h,resume:f}}const oP=Symbol("vueuse-ssr-width");function Xv(){const e=$s()?K$(oP,null):null;return typeof e=="number"?e:void 0}function rs(e,t={}){const{window:r=lr,ssrWidth:n=Xv()}=t,s=Fa(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),i=Me(typeof n=="number"),o=Me(),a=Me(!1),c=u=>{a.value=u.matches};return Ea(()=>{if(i.value){i.value=!s.value;const u=je(e).split(",");a.value=u.some(l=>{const f=l.includes("not all"),h=l.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=l.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let p=!!(h||d);return h&&p&&(p=n>=hi(h[1])),d&&p&&(p=n<=hi(d[1])),f?!p:p});return}s.value&&(o.value=r.matchMedia(je(e)),a.value=o.value.matches)}),kr(o,"change",c,{passive:!0}),we(()=>a.value)}const aP={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function cP(e,t={}){function r(d,p){let g=je(e[je(d)]);return p!=null&&(g=X$(g,p)),typeof g=="number"&&(g=`${g}px`),g}const{window:n=lr,strategy:s="min-width",ssrWidth:i=Xv()}=t,o=typeof i=="number",a=o?Me(!1):{value:!0};o&&rf(()=>a.value=!!n);function c(d,p){return!a.value&&o?d==="min"?i>=hi(p):i<=hi(p):n?n.matchMedia(`(${d}-width: ${p})`).matches:!1}const u=d=>rs(()=>`(min-width: ${r(d)})`,t),l=d=>rs(()=>`(max-width: ${r(d)})`,t),f=Object.keys(e).reduce((d,p)=>(Object.defineProperty(d,p,{get:()=>s==="min-width"?u(p):l(p),enumerable:!0,configurable:!0}),d),{});function h(){const d=Object.keys(e).map(p=>[p,f[p],hi(r(p))]).sort((p,g)=>p[2]-g[2]);return we(()=>d.filter(([,p])=>p.value).map(([p])=>p))}return Object.assign(f,{greaterOrEqual:u,smallerOrEqual:l,greater(d){return rs(()=>`(min-width: ${r(d,.1)})`,t)},smaller(d){return rs(()=>`(max-width: ${r(d,-.1)})`,t)},between(d,p){return rs(()=>`(min-width: ${r(d)}) and (max-width: ${r(p,-.1)})`,t)},isGreater(d){return c("min",r(d,.1))},isGreaterOrEqual(d){return c("min",r(d))},isSmaller(d){return c("max",r(d,-.1))},isSmallerOrEqual(d){return c("max",r(d))},isInBetween(d,p){return c("min",r(d))&&c("max",r(p,-.1))},current:h,active(){const d=h();return we(()=>d.value.length===0?"":d.value.at(s==="min-width"?-1:0))}})}function lP(e,t,r={}){const{window:n=lr,...s}=r;let i;const o=Fa(()=>n&&"ResizeObserver"in n),a=()=>{i&&(i.disconnect(),i=void 0)},c=we(()=>{const f=je(e);return Array.isArray(f)?f.map(h=>ir(h)):[ir(f)]}),u=Ve(c,f=>{if(a(),o.value&&n){i=new ResizeObserver(t);for(const h of f)h&&i.observe(h,s)}},{immediate:!0,flush:"post"}),l=()=>{a(),u()};return io(l),{isSupported:o,stop:l}}function gL(e,t={}){const{reset:r=!0,windowResize:n=!0,windowScroll:s=!0,immediate:i=!0,updateTiming:o="sync"}=t,a=Me(0),c=Me(0),u=Me(0),l=Me(0),f=Me(0),h=Me(0),d=Me(0),p=Me(0);function g(){const v=ir(e);if(!v){r&&(a.value=0,c.value=0,u.value=0,l.value=0,f.value=0,h.value=0,d.value=0,p.value=0);return}const y=v.getBoundingClientRect();a.value=y.height,c.value=y.bottom,u.value=y.left,l.value=y.right,f.value=y.top,h.value=y.width,d.value=y.x,p.value=y.y}function _(){o==="sync"?g():o==="next-frame"&&requestAnimationFrame(()=>g())}return lP(e,_),Ve(()=>ir(e),v=>!v&&_()),iP(e,_,{attributeFilter:["style","class"]}),s&&kr("scroll",_,{capture:!0,passive:!0}),n&&kr("resize",_,{passive:!0}),rf(()=>{i&&_()}),{height:a,bottom:c,left:u,right:l,top:f,width:h,x:d,y:p,update:_}}function uP(e,t,r={}){const{root:n,rootMargin:s="0px",threshold:i=0,window:o=lr,immediate:a=!0}=r,c=Fa(()=>o&&"IntersectionObserver"in o),u=we(()=>{const p=je(e);return di(p).map(ir).filter(Yv)});let l=sr;const f=Me(a),h=c.value?Ve(()=>[u.value,ir(n),f.value],([p,g])=>
89{if(l(),!f.value||!p.length)return;const _=new IntersectionObserver(t,{root:ir(g),rootMargin:s,threshold:i});p.forEach(v=>v&&_.observe(v)),l=()=>{_.disconnect(),l=sr}},{immediate:a,flush:"post"}):sr,d=()=>{l(),h(),f.value=!1};return io(d),{isSupported:c,isActive:f,pause(){l(),f.value=!1},resume(){f.value=!0},stop:d}}const wp=1;function fP(e,t={}){const{throttle:r=0,idle:n=200,onStop:s=sr,onScroll:i=sr,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:c="auto",window:u=lr,onError:l=x=>{console.error(x)}}=t,f=Me(0),h=Me(0),d=we({get(){return f.value},set(x){g(x,void 0)}}),p=we({get(){return h.value},set(x){g(void 0,x)}});function g(x,M){var A,H,J,D;if(!u)return;const G=je(e);if(!G)return;(J=G instanceof Document?u.document.body:G)==null||J.scrollTo({top:(A=je(M))!=null?A:p.value,left:(H=je(x))!=null?H:d.value,behavior:je(c)});const ae=((D=G==null?void 0:G.document)==null?void 0:D.documentElement)||(G==null?void 0:G.documentElement)||G;d!=null&&(f.value=ae.scrollLeft),p!=null&&(h.value=ae.scrollTop)}const _=Me(!1),v=gt({left:!0,right:!1,top:!0,bottom:!1}),y=gt({left:!1,right:!1,top:!1,bottom:!1}),m=x=>{_.value&&(_.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,s(x))},b=eP(m,r+n),w=x=>{var M;if(!u)return;const A=((M=x==null?void 0:x.document)==null?void 0:M.documentElement)||(x==null?void 0:x.documentElement)||ir(x),{display:H,flexDirection:J,direction:D}=getComputedStyle(A),G=D==="rtl"?-1:1,ae=A.scrollLeft;y.left=ae<f.value,y.right=ae>f.value;const X=Math.abs(ae*G)<=(o.left||0),R=Math.abs(ae*G)+A.clientWidth>=A.scrollWidth-(o.right||0)-wp;H==="flex"&&J==="row-reverse"?(v.left=R,v.right=X):(v.left=X,v.right=R),f.value=ae;let U=A.scrollTop;x===u.document&&!U&&(U=u.document.body.scrollTop),y.top=U<h.value,y.bottom=U>h.value;const O=Math.abs(U)<=(o.top||0),B=Math.abs(U)+A.clientHeight>=A.scrollHeight-(o.bottom||0)-wp;H==="flex"&&J==="column-reverse"?(v.top=B,v.bottom=O):(v.top=O,v.bottom=B),h.value=U},T=x=>{var M;if(!u)return;const A=(M=x.target.documentElement)!=null?M:x.target;w(A),_.value=!0,b(x),i(x)};return kr(e,"scroll",r?tP(T,r,!0,!1):T,a),rf(()=>{try{const x=je(e);if(!x)return;w(x)}catch(x){l(x)}}),kr(e,"scrollend",m,a),{x:d,y:p,isScrolling:_,arrivedState:v,directions:y,measure(){const x=je(e);u&&x&&w(x)}}}const hP={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function dP(e={}){const{reactive:t=!1,target:r=lr,aliasMap:n=hP,passive:s=!0,onEventFired:i=sr}=e,o=gt(new Set),a={toJSON(){return{}},current:o},c=t?gt(a):a,u=new Set,l=new Set;function f(g,_){g in c&&(t?c[g]=_:c[g].value=_)}function h(){o.clear();for(const g of l)f(g,!1)}function d(g,_){var v,y;const m=(v=g.key)==null?void 0:v.toLowerCase(),w=[(y=g.code)==null?void 0:y.toLowerCase(),m].filter(Boolean);m&&(_?o.add(m):o.delete(m));for(const T of w)l.add(T),f(T,_);m==="meta"&&!_?(u.forEach(T=>{o.delete(T),f(T,!1)}),u.clear()):typeof g.getModifierState=="function"&&g.getModifierState("Meta")&&_&&[...o,...w].forEach(T=>u.add(T))}kr(r,"keydown",g=>(d(g,!0),i(g)),{passive:s}),kr(r,"keyup",g=>(d(g,!1),i(g)),{passive:s}),kr("blur",h,{passive:s}),kr("focus",h,{passive:s});const p=new Proxy(c,{get(g,_,v){if(typeof _!="string")return Reflect.get(g,_,v);if(_=_.toLowerCase(),_ in n&&(_=n[_]),!(_ in c))if(/[+_-]/.test(_)){const m=_.split(/[+_-]/g).map(b=>b.trim());c[_]=we(()=>m.map(b=>je(p[b])).every(Boolean))}else c[_]=Me(!1);const y=Reflect.get(g,_,v);return t?je(y):y}});return p}function yL(e){const t=rs("(prefers-reduced-motion: reduce)",e);return we(()=>t.value?"reduce":"no-preference")}function pP(e={}){const{window:t=lr,...r}=e;return fP(t,r)}const nf=()=>Ae().$supabase.client,zc="bookmarked-pages";function Zv(){const e=nf(),t=Ou(),r=lt("bookmarkedPages",()=>[]),n=ye(!1),s=ye(null);return Tt(()=>{const u=localStorage.getItem(zc);if(u)try{r.value=JSON.parse(u)}catch(l){console.warn("Failed to parse bookmarks from localStorage",l)}}),Ve(r,u=>{localStorage.setItem(zc,JSON.stringify(u))},{deep:!0}),{bookmarkedPages:r,isBookmarked:u=>r.value.includes(u),toggleBookmark:async u=>
89{if(!t.value){s.value="User not logged in";return}try{const{data:l,error:f}=await e.from("bookmarks").select("id, is_active").eq("user_id",t.value.id).eq("page_id",u).maybeSingle();if(f)throw f;if(l){const{error:h}=await e.from("bookmarks").update({is_active:!l.is_active}).eq("id",l.id);if(h)throw h;l.is_active?r.value=r.value.filter(d=>d!==u):r.value.push(u)}else{const{error:h}=await e.from("bookmarks").insert([{user_id:t.value.id,page_id:u,is_active:!0}]);if(h)throw h;r.value.push(u)}}catch(l){s.value=l.message||"Failed to toggle bookmark"}},loadBookmarks:async()=>{if(t.value){n.value=!0,s.value=null;try{const{data:u,error:l}=await e.from("bookmarks").select("page_id").eq("user_id",t.value.id).eq("is_active",!0);if(l)throw l;r.value=u.map(f=>f.page_id)}catch(u){s.value=u.message||"Failed to load bookmarks"}finally{n.value=!1}}},clearBookmarks:()=>{r.value=[],localStorage.removeItem(zc)},loadingBookmarks:n,error:s}}const gP=()=>lt("currentError",()=>null);function e_(){const e=gP();function t(r){e.value=r}return{errorMessage:e,setCurrentError:t}}const Po="curin-user";function t_(){const e=nf(),t=lt("userData",()=>null),r=ye(!1),n=ye(null);Tt(()=>{const f=localStorage.getItem(Po);if(f)try{console.log("Getting stored"),t.value=JSON.parse(f)}catch(h){console.warn("Failed to parse user from localStorage",h)}}),Ve(t,(f,h)=>{f!==h&&(console.log("User data changed, updating localStorage"),localStorage.setItem(Po,JSON.stringify(f)))},{deep:!0});const s=async f=>{if(f){r.value=!0,n.value=null;try{const{data:h,error:d}=await e.from("user_details").select("*").eq("id",f.id).single();if(d)throw new Error(d.message);console.log("Setting user data"),t.value=h}catch(h){n.value=h.message||"Failed to load user"}finally{r.value=!1}}},i=()=>{t.value=null,localStorage.removeItem(Po)},o=async()=>{if(!(!t.value||!t.value.id)){localStorage.removeItem(Po),r.value=!0,n.value=null;try{const{data:f,error:h}=await e.from("user_details").select("*").eq("id",t.value.id).single();if(h)throw new Error(h.message);console.log("Force refreshing user data from database"),t.value=f}catch(f){n.value=f.message||"Failed to force refresh user"}finally{r.value=!1}}},a=async()=>{var f;if((f=t.value)!=null&&f.id){r.value=!0,n.value=null;try{const{data:h,error:d}=await e.from("user_details").select("*").eq("id",t.value.id).single();if(d)throw new Error(d.message);console.log("Refreshing user data"),t.value=h}catch(h){n.value=h.message||"Failed to refresh user"}finally{r.value=!1}}},c=async()=>{var f;if((f=t.value)!=null&&f.id)try{const{error:h}=await e.from("user_details").update({last_subscription_sync:new Date().toISOString()}).eq("id",t.value.id);h?console.error("Error updating subscription sync:",h):(console.log("Updated last_subscription_sync"),await a())}catch(h){console.error("Failed to update subscription sync:",h)}},u=we(()=>{var f,h;return!!((f=t.value)!=null&&f.stripe_customer_id)&&((h=t.value)==null?void 0:h.subscription_status)!="inactive"}),l=we(()=>!!t.value);return{isSubscriber:u,isUser:l,userData:t,loadCurinUser:s,clearUser:i,refreshUserData:a,forceRefreshUserData:o,updateSubscriptionSync:c,loadingUserDetails:r,error:n}}function sf(){const e=nf(),t=Ou(),{setCurrentError:r}=e_(),n=ye(!1);let s=null;const{loadBookmarks:i,clearBookmarks:o}=Zv(),{loadCurinUser:a,clearUser:c}=t_();return{user:t,isLoading:n,signUpNewUser:async(y,m)=>{try{const{data:b,error:w}=await e.auth.signUp({email:y,password:m});if(w)throw new Error(w.message);return{data:b,error:null}}catch(b){return{data:null,error:b.message}}},signInWithEmail:async(y,m)=>{let w;w=setTimeout(()=>{n.value=!0},300);try{const{data:T,error:x}=await e.auth.signInWithPassword({email:y,password:m});if(clearTimeout(w),n.value=!1,x)throw new Error(x.message);return{data:T,error:null}}catch(T){return clearTimeout(w),n.value=!1,{data:null,error:T.message}}},signInWithOAuth:async y=>{const{error:m}=await e.auth.signInWithOAuth({provider:y,options:{redirectTo:`${yt().public.BASE_URL}/confirm`}});m&&console.error(m)},upsertUserDetails:async(y,m,b,w)=>{const{data:T,error:x}=await e.from("user_details").select("subscription_status, subscription_plan").eq("id",y).maybeSingle();if(x)throw console.error("Error fetching existing user:",x),x;const{data:M,error:A}=await e.from("user_details").upsert({id:y,firstname:m,lastname:b,portfolio:w,subscription_status:(T==null?void 0:T.subscription_status)??"inactive",subscription_plan:(T==null?void 0:T.subscription_plan)??null,last_subscription_sync:new Date().toISOString()},{onConflict:"id"}).select();if(A)throw r("Error upserting user details: "+A),console.error("Error upserting user details:",A),A;return{data:M,error:A}},signOut:async()=>{try{const{error:y}=await e.auth.signOut();if(y)throw console.log(y),new Error(y.message);return o(),c(),{error:null}}catch(y){return{error:y.message}}},resetPassword:async y=>{try{const{data:m,error:b}=await e.auth.resetPasswordForEmail(y,{redirectTo:`${yt().public.BASE_URL}/account/update-password`});if(b)throw new Error(b.message);return{error:null}}catch(m){return{error:m.message}}},updatePassword:async y=>{const{data:m,error:b}=await e.auth.updateUser({password:y});return b&&console.error("Error updating password:",b),{data:m,error:b}},initAuthListener:async()=>{const{data:{subscription:y}}=await e.auth.onAuthStateChange(async(m,b)=>{console.log("EVENT",m),m==="INITIAL_SESSION"?b!=null&&b.user&&(console.log("Session restored"),await i(),await a(b==null?void 0:b.user)):m==="SIGNED_IN"?b!=null&&b.user&&(console.log("User logged in"),await i(),await a(b==null?void 0:b.user)):m==="SIGNED_OUT"&&console.log("User logged out")});s=y},unsubscribeAuthListener:()=>{if(console.log("unsubscribe"),s){try{s.unsubscribe()}catch(y){console.error("Failed to unsubscribe auth listener:",y)}s=null}}}}const Hl=(e,t={})=>d$(e,{...t}),me=String.raw||((e,...t)=>{const r=e.length-1;return e.slice(0,r).reduce((n,s,i)=>n+s+t[i],"")+e[r]}),yP=me`{ 90 'description': seo.description, 91 'title': coalesce(seo.title, title), 92 'canonical': seo.canonical, 93 'noindex': seo.noindex, 94 'image': seo.image { 95 _type, 96 'asset': asset->{ 97 _ref, 98 _type, 99 url, 100 metadata { 101 dimensions { 102 width, 103 height 104 } 105 } 106 } 107 } 108}`,of=me`{ 109 title, 110 _createdAt, 111 _type, 112 _id, 113 'slug': select( 114 _type == "project" => '/projects/'+slug.current, 115 _type == "curator" => '/curators/'+slug.current, 116 _type == "frontpage" => "/", 117 '/' + slug.current 118 ), 119 'seo': ${yP}, 120}`,af=me` 121 _type == "reference" => { 122 'title': @->title, 123 '_id': @->_id, 124 'url': select( 125 defined(parent) => '', 126 _type == "frontpage" => "/", 127 '/' + @->slug.current 128 ), 129 } 130`,oo=me`{ 131 linkType, 132 url, 133 "title": label, 134 "target": select(target == true => "_blank", "_self"), 135 'page': page{${af} 136 } 137 } 138`,mP=me` 139 _type == "button" => { 140 ...${oo} 141 } 142`,vP=me` 143 menuItems[] { 144 ...page{${af}}, 145 'title': select( 146 defined(customTitle) => customTitle, 147 !defined(customTitle) => page->title, 148 ), 149 } 150`,_P=me` 151 _type == "internalLink" => { 152 _key, 153 "slug": @.reference->slug, 154 "type": @.reference->_type,
155 "url": "/" + @.reference->slug.current 156 } 157`,r_=me` 158 _type == "reference" => { 159 '_id': @->_id, 160 'title': @->title, 161 } 162`,ps=me`{ 163 ..., 164 ...asset-> { 165 altText, 166 ...metadata { 167 lqip, 168 ...dimensions { 169 width, 170 height 171 } 172 } 173 } 174}`,Bl=me`{ 175 ..., 176 asset-> { 177 playbackId, 178 assetId, 179 filename, 180 "duration": data.duration, 181 thumbTime, 182 }, 183}`,or=me`{ 184 ...select( 185 assetType == 'image' && defined(image) => image{...${ps}}, 186 assetType == 'video' && defined(video) => video {...${Bl}}, 187 defined(image) => image{...${ps}}, 188 defined(video) => video {...${Bl}}, 189 ), 190 caption 191} 192`,n_=me` 193 mediaItems[] { 194 ...${or} 195 } 196`,rr=me`{ 197 ..., 198 markDefs[]{ 199 ..., 200 ${_P}, 201 ${mP} 202 } 203}`,cf=me`{ 204 title, 205 _createdAt, 206 _type, 207 _id, 208 'slug': slug.current 209}`,Ai=me`{ 210 _id, 211 title, 212 'category': category->title, 213 'url': '/curators/'+slug.current 214}`,un=me`{ 215 _id, 216 title, 217 artist, 218 'curator': curator{${r_}}, 219 'category': categories[0]->title, 220 'url': '/projects/'+slug.current, 221 media {...${or}}, 222 alternativeMedia {...${or}}, 223}`,bP=me`{ 224 showCurrent, 225 'current': *[_type == "curator" && current == true] { 226 ...${Ai}, 227 media {...${or}} 228 }, 229 'past': *[_type == "curator" && current != true] { 230 ...${Ai}, 231 }, 232 'categories': *[_type == "category"] { 233 ...${cf}, 234 }, 235 } 236`,wP=me`{ 237 title, 238 curators[]{ 239 ...@->{ 240 ...${Ai}, 241 media {...${or}} 242 } 243 }, 244 'callToAction': link{ 245 ...${oo} 246 } 247 } 248`,SP=me`{ 249 smallTiles, 250 'categories': *[_type == "category"] { 251 ...${cf}, 252 }, 253 } 254`,EP=me`{ 255 title, 256 color, 257 layout, 258 projects[]{ 259 ...@->{ 260 ...${un}, 261 } 262 }, 263 'callToAction': link{ 264 ...${oo} 265 } 266 } 267`,TP=me`{ 268 'color': 'transparent-light', 269 ...project->{ 270 ...${un}, 271 'introduction': introduction[]{...${rr}} 272 } 273 } 274`,kP=me`{ 275 title, 276 trumpet, 277 subtitle, 278 color, 279 'callToAction': link{ 280 ...${oo} 281 }, 282 ${n_} 283 } 284`,xP=me`{ 285 layout, 286 fit, 287 ${n_} 288 } 289`,CP=me`{ 290 title, 291 body[]{...${rr}} 292 } 293`,RP=me`{ 294 title, 295 enlarge, 296 items[]{ 297 _key, 298 'number': stringNumber, 299 title, 300 subtitle, 301 body[]{...${rr}} 302 } 303 } 304`,AP=me`{ 305 'color': 'transparent-light', 306 poster {...${ps}}, 307 video {...${Bl}}, 308 } 309`,lf=me` 310 pageSections[] { 311 _type, 312 'id': _key, 313 'data': select( 314 _type == "curators-overview" => ${bP}, 315 _type == "curators-list" => ${wP}, 316 _type == "projects-overview" => ${SP}, 317 _type == "projects-list" => ${EP}, 318 _type == "featured-project" => ${TP}, 319 _type == "spotlight" => ${kP}, 320 _type == "media-section" => ${xP}, 321 _type == "text-section" => ${CP}, 322 _type == "numbered-list" => ${RP}, 323 _type == "video" => ${AP}, 324 ) 325 } 326`,OP=me`*[_type == "navigation"][0] { 327 menuItems[] { 328 ...page{${af}}, 329 'title': select( 330 defined(customTitle) => customTitle, 331 !defined(customTitle) => page->title, 332 ), 333 } 334}`,s_=me`*[_type == "settings"][0] { 335 ${vP}, 336 copyright, 337 'body': text[]{...${rr}}, 338 accountImage{...${ps}}, 339 'socialMedia': socialMediaProfiles[]{ 340 _key, 341 url, 342 'type': type->title, 343 }, 344 'emptyState': { 345 'title': accountEmptyHeading, 346 'body': accountEmptyText, 347 'callToAction': accountEmptyLink{ 348 ...${oo} 349 } 350 }, 351 'subscription': { 352 'body': introduction, 353 'perks': items[]{ 354 _key, 355 'number': stringNumber, 356 body[]{...${rr}} 357 }, 358 'media': subscriptionImage{...${ps}}, 359 successTitle[]{...${rr}}, 360 successBody[]{...${rr}}, 361 'successMedia': successImage{...${ps}}, 362 }, 363 'paywallBanner': { 364 'body': paywallBannerText, 365 'label': paywallBannerLinkLabel, 366 } 367}`,mL=me`*[_type == "frontpage"][0] { 368 ...${of}, 369 projects[]{ 370 ...@->{ 371 ...${un} 372 } 373 }, 374 ${lf} 375}`,vL=me`*[_type == "project"] | order(_createdAt desc)[$start...$start + $limit] { 376 ...${un} 377}`,_L=me`*[_type == "project" && categories[]->slug.current match $slug] | order(_createdAt desc)[$start...$start + $limit] { 378 ...${un} 379}`,bL=me`count(*[_type == "project"])`,wL=me`count(*[_type == "project" && categories[]->slug.current match $slug])`,SL=me`*[_type == "project" && _id in $ids] { 380 ...${un} 381}`,EL=me`*[_type == "project" && curator->
381_id match $id] | order(_createdAt desc) { 382 ...${un} 383}`,TL=me`*[_type == "curator" && current == $current] | order(title asc) { 384 ...${Ai}, 385 'media': select( 386 $current == true => media {...${or}}, 387 $current == false => [], 388 ) 389}`,kL=me`*[_type == "curator" && current == $current && category->slug.current match $slug] | order(title asc) { 390 ...${Ai}, 391 'media': select( 392 $current == true => media {...${or}}, 393 $current == false => [], 394 ) 395}`,$P=me`{ 396 media {...${or}}, 397 alternativeMedia {...${or}}, 398 artist, 399 'category': categories[0]->{...${cf}}, 400 'curator': curator{${r_}}, 401 'credits': credits[]{ 402 _key, 403 value, 404 'type': type->title, 405 }, 406 'introduction': introduction[]{...${rr}}, 407 ${lf} 408}`,PP=me`{ 409 current, 410 fullName, 411 media {...${or}}, 412 'category': category->title, 413 'information': information[]{ 414 _key, 415 value, 416 url, 417 'type': type->title, 418 }, 419 'introduction': introduction[]{...${rr}}, 420 'projects': *[_type == "project" && curator._ref == ^._id]{ 421 ...${un} 422 } 423}`,IP=me`{ 424 ...${of}, 425 title, 426 body[]{...${rr}}, 427 ${lf} 428}`,xL=me`*[slug.current == $slug][0] { 429 ...${of}, 430 ...select( 431 _type == 'project' => {...${$P}}, 432 _type == 'curator' => {...${PP}}, 433 _type == 'page' => {...${IP}}, 434 ), 435}`,jP=()=>lt("currentTheme",()=>"transparent-light");function i_(){const e=jP();function t(r){r&&(e.value=r)}return{theme:e,setCurrentTheme:t}}var LP="1.3.1";function o_(e,t,r){return Math.max(e,Math.min(t,r))}function MP(e,t,r){return(1-r)*e+r*t}function NP(e,t,r,n){return MP(e,t,1-Math.exp(-r*n))}function DP(e,t){return(e%t+t)%t}var UP=class{constructor(){N(this,"isRunning",!1);N(this,"value",0);N(this,"from",0);N(this,"to",0);N(this,"currentTime",0);N(this,"lerp");N(this,"duration");N(this,"easing");N(this,"onUpdate")}advance(e){var r;if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;const n=o_(0,this.currentTime/this.duration,1);t=n>=1;const s=t?1:this.easing(n);this.value=this.from+(this.to-this.from)*s}else this.lerp?(this.value=NP(this.value,this.to,this.lerp*60,e),Math.round(this.value)===this.to&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),(r=this.onUpdate)==null||r.call(this,this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:r,duration:n,easing:s,onStart:i,onUpdate:o}){this.from=this.value=e,this.to=t,this.lerp=r,this.duration=n,this.easing=s,this.currentTime=0,this.isRunning=!0,i==null||i(),this.onUpdate=o}};function FP(e,t){let r;return function(...n){let s=this;clearTimeout(r),r=setTimeout(()=>{r=void 0,e.apply(s,n)},t)}}var HP=class{constructor(e,t,{autoResize:r=!0,debounce:n=250}={}){N(this,"width",0);N(this,"height",0);N(this,"scrollHeight",0);N(this,"scrollWidth",0);N(this,"debouncedResize");N(this,"wrapperResizeObserver");N(this,"contentResizeObserver");N(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});N(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});N(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=e,this.content=t,r&&(this.debouncedResize=FP(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var e,t;(e=this.wrapperResizeObserver)==null||e.disconnect(),(t=this.contentResizeObserver)==null||t.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},a_=class{constructor(){N(this,"events",{})}emit(e,...t){var n;let r=this.events[e]||[];for(let s=0,i=r.length;s<i;s++)(n=r[s])==null||n.call(r,...t)}on(e,t){var r;return(r=this.events[e])!=null&&r.push(t)||(this.events[e]=[t]),()=>{var n;this.events[e]=(n=this.events[e])==null?void 0:n.filter(s=>t!==s)}}off(e,t){var r;this.events[e]=(r=this.events[e])==null?void 0:r.filter(n=>t!==n)}destroy(){this.events={}}},Sp=100/6,jr={passive:!1},BP=class{constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){N(this,"touchStart",{x:0,y:0});N(this,"lastDelta",{x:0,y:0});N(this,"window",{width:0,height:0});N(this,"emitter",new a_);N(this,"onTouchStart",e=>{const{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})});
435N(this,"onTouchMove",e=>{const{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e,n=-(t-this.touchStart.x)*this.options.touchMultiplier,s=-(r-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:n,y:s},this.emitter.emit("scroll",{deltaX:n,deltaY:s,event:e})});N(this,"onTouchEnd",e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})});N(this,"onWheel",e=>{let{deltaX:t,deltaY:r,deltaMode:n}=e;const s=n===1?Sp:n===2?this.window.width:1,i=n===1?Sp:n===2?this.window.height:1;t*=s,r*=i,t*=this.options.wheelMultiplier,r*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:r,event:e})});N(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,jr),this.element.addEventListener("touchstart",this.onTouchStart,jr),this.element.addEventListener("touchmove",this.onTouchMove,jr),this.element.addEventListener("touchend",this.onTouchEnd,jr)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,jr),this.element.removeEventListener("touchstart",this.onTouchStart,jr),this.element.removeEventListener("touchmove",this.onTouchMove,jr),this.element.removeEventListener("touchend",this.onTouchEnd,jr)}},qP=class{constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:r=e,smoothWheel:n=!0,syncTouch:s=!1,syncTouchLerp:i=.075,touchInertiaMultiplier:o=35,duration:a,easing:c=M=>Math.min(1,1.001-Math.pow(2,-10*M)),lerp:u=.1,infinite:l=!1,orientation:f="vertical",gestureOrientation:h="vertical",touchMultiplier:d=1,wheelMultiplier:p=1,autoResize:g=!0,prevent:_,virtualScroll:v,overscroll:y=!0,autoRaf:m=!1,anchors:b=!1,autoToggle:w=!1,allowNestedScroll:T=!1,__experimental__naiveDimensions:x=!1}={}){N(this,"_isScrolling",!1);N(this,"_isStopped",!1);N(this,"_isLocked",!1);N(this,"_preventNextNativeScrollEvent",!1);N(this,"_resetVelocityTimeout",null);N(this,"__rafID",null);N(this,"isTouching");N(this,"time",0);N(this,"userData",{});N(this,"lastVelocity",0);N(this,"velocity",0);N(this,"direction",0);N(this,"options");N(this,"targetScroll");N(this,"animatedScroll");N(this,"animate",new UP);N(this,"emitter",new a_);N(this,"dimensions");N(this,"virtualScroll");N(this,"onScrollEnd",e=>{e instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&e.stopPropagation()});N(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});N(this,"onTransitionEnd",e=>{if(e.propertyName.includes("overflow")){const t=this.isHorizontal?"overflow-x":"overflow-y",r=getComputedStyle(this.rootElement)[t];["hidden","clip"].includes(r)?this.stop():this.start()}});N(this,"onClick",e=>{const r=e.composedPath().find(n=>{var s,i,o;return n instanceof HTMLAnchorElement&&(((s=n.getAttribute("href"))==null?void 0:s.startsWith("#"))||((i=n.getAttribute("href"))==null?void 0:i.startsWith("/#"))||((o=n.getAttribute("href"))==null?void 0:o.startsWith("./#")))});if(r){const n=r.getAttribute("href");if(n){const s=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0;let i=`#${n.split("#")[1]}`;["#","/#","./#","#top","/#top","./#top"].includes(n)&&(i=0),this.scrollTo(i,s)}}});N(this,"onPointerDown",e=>{e.button===1&&this.reset()});N(this,"onVirtualScroll",e=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(e)===!1)return;const{deltaX:t,deltaY:r,event:n}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:r,event:n}),n.ctrlKey||n.lenisStopPropagation)return;const s=n.type.includes("touch"),i=n.type.includes("wheel");this.isTouching=n.type==="touchstart"||n.type==="touchmove";const o=t===0&&r===0;if(this.options.syncTouch&&s&&n.type==="touchstart"&&o&&!this.isStopped&&!this.isLocked){this.reset();return}const c=this.options.gestureOrientation==="vertical"&&r===0||this.options.gestureOrientation==="horizontal"&&t===0;if(o||c)return;let u=n.composedPath();u=u.slice(0,u.indexOf(this.rootElement));const l=this.options.prevent;if(u.find(_=>{var v,y,m;return _ instanceof HTMLElement&&(typeof l=="function"&&(l==null?void 0:l(_))||((v=_.hasAttribute)==null?void 0:v.call(_,"data-lenis-prevent"))||s&&((y=_.hasAttribute)==null?void 0:y.call(_,"data-lenis-prevent-touch"))||i&&((m=_.hasAttribute)==null?void 0:m.call(_,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.checkNestedScroll(_,{deltaX:t,deltaY:r}))}))return;if(this.isStopped||this.isLocked){n.preventDefault();return}if(!(this.options.syncTouch&&s||this.options.smoothWheel&&i)){this.isScrolling="native",this.animate.stop(),n.lenisStopPropagation=!0;return}let h=r;this.options.gestureOrientation==="both"?h=Math.abs(r)>Math.abs(t)?r:t:this.options.gestureOrientation==="horizontal"&&(h=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&r>0||this.animatedScroll===this.limit&&r<0))&&(n.lenisStopPropagation=!0),n.preventDefault();const d=s&&this.options.syncTouch,g=s&&n.type==="touchend"&&Math.abs(h)>5;
435g&&(h=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+h,{programmatic:!1,...d?{lerp:g?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});N(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});N(this,"raf",e=>{const t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))});window.lenisVersion=LP,(!e||e===document.documentElement)&&(e=window),this.options={wrapper:e,content:t,eventsTarget:r,smoothWheel:n,syncTouch:s,syncTouchLerp:i,touchInertiaMultiplier:o,duration:a,easing:c,lerp:u,infinite:l,gestureOrientation:h,orientation:f,touchMultiplier:d,wheelMultiplier:p,autoResize:g,prevent:_,virtualScroll:v,overscroll:y,autoRaf:m,anchors:b,autoToggle:w,allowNestedScroll:T,__experimental__naiveDimensions:x},this.dimensions=new HP(e,t,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new BP(r,{touchMultiplier:d,wheelMultiplier:p}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0}),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,behavior:"instant"})}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.reset(),this.isStopped=!1)}stop(){this.isStopped||(this.reset(),this.isStopped=!0)}scrollTo(e,{offset:t=0,immediate:r=!1,lock:n=!1,duration:s=this.options.duration,easing:i=this.options.easing,lerp:o=this.options.lerp,onStart:a,onComplete:c,force:u=!1,programmatic:l=!0,userData:f}={}){if(!((this.isStopped||this.isLocked)&&!u)){if(typeof e=="string"&&["top","left","start"].includes(e))e=0;else if(typeof e=="string"&&["bottom","right","end"].includes(e))e=this.limit;else{let h;if(typeof e=="string"?h=document.querySelector(e):e instanceof HTMLElement&&(e!=null&&e.nodeType)&&(h=e),h){if(this.options.wrapper!==window){const p=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?p.left:p.top}const d=h.getBoundingClientRect();e=(this.isHorizontal?d.left:d.top)+this.animatedScroll}}if(typeof e=="number"){if(e+=t,e=Math.round(e),this.options.infinite){if(l){this.targetScroll=this.animatedScroll=this.scroll;const h=e-this.animatedScroll;h>this.limit/2?e=e-this.limit:h<-this.limit/2&&(e=e+this.limit)}}else e=o_(0,e,this.limit);if(e===this.targetScroll){a==null||a(this),c==null||c(this);return}if(this.userData=f??{},r){this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit
435(),c==null||c(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}l||(this.targetScroll=e),this.animate.fromTo(this.animatedScroll,e,{duration:s,easing:i,lerp:o,onStart:()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",a==null||a(this)},onUpdate:(h,d)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=h-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=h,this.setScroll(this.scroll),l&&(this.targetScroll=h),d||this.emit(),d&&(this.reset(),this.emit(),c==null||c(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(e,{deltaX:t,deltaY:r}){const n=Date.now(),s=e._lenis??(e._lenis={});let i,o,a,c,u,l,f,h;const d=this.options.gestureOrientation;if(n-(s.time??0)>2e3){s.time=Date.now();const w=window.getComputedStyle(e);s.computedStyle=w;const T=w.overflowX,x=w.overflowY;if(i=["auto","overlay","scroll"].includes(T),o=["auto","overlay","scroll"].includes(x),s.hasOverflowX=i,s.hasOverflowY=o,!i&&!o||d==="vertical"&&!o||d==="horizontal"&&!i)return!1;u=e.scrollWidth,l=e.scrollHeight,f=e.clientWidth,h=e.clientHeight,a=u>f,c=l>h,s.isScrollableX=a,s.isScrollableY=c,s.scrollWidth=u,s.scrollHeight=l,s.clientWidth=f,s.clientHeight=h}else a=s.isScrollableX,c=s.isScrollableY,i=s.hasOverflowX,o=s.hasOverflowY,u=s.scrollWidth,l=s.scrollHeight,f=s.clientWidth,h=s.clientHeight;if(!i&&!o||!a&&!c||d==="vertical"&&(!o||!c)||d==="horizontal"&&(!i||!a))return!1;let p;if(d==="horizontal")p="x";else if(d==="vertical")p="y";else{const w=t!==0,T=r!==0;w&&i&&a&&(p="x"),T&&o&&c&&(p="y")}if(!p)return!1;let g,_,v,y,m;if(p==="x")g=e.scrollLeft,_=u-f,v=t,y=i,m=a;else if(p==="y")g=e.scrollTop,_=l-h,v=r,y=o,m=c;else return!1;return(v>0?g<_:g>0)&&y&&m}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?DP(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isScrolling==="smooth"&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};const zP=()=>lt("lenis",()=>null),WP=()=>lt("current-scroll",()=>null),KP=()=>lt("real-scroll",()=>null),VP=()=>lt("target-scroll",()=>null),GP=()=>lt("progress",()=>null),JP=()=>lt("limit",()=>1e7),uf=e=>{const t=zP(),r=WP(),n=KP(),s=VP(),i=GP(),o=JP();function a(c){r.value=c.animatedScroll,n.value=c.actualScroll,s.value=c.targetScroll,i.value=c.progress,o.value=c.limit}if(e){let c=function(u){t.value.raf(u),requestAnimationFrame(c),a(t.value)};t.value=new qP({lerp:.5}),a(t.value),t.value.on("scroll",u=>{}),requestAnimationFrame(c)}return{lenis:t.value?t:ye({start:()=>{},stop:()=>{}}),currentScroll:r,realScroll:n,targetScroll:s,progress:i,limit:o}},YP={class:"grid items-center gap-1"},QP={key:0,class:"fixed inset-0 flex h-full min-h-svh w-screen flex-col justify-between bg-(--sand) pt-14 text-3xl text-(--black) lg:relative lg:flex lg:min-h-auto lg:h-auto lg:w-full lg:flex-row lg:bg-transparent lg:pt-0 lg:text-sm"},XP={class:"px-bleed w-full lg:flex lg:justify-between lg:px-0"},ZP={class:"pt-10 lg:pt-0 lg:text-(--menu-color)"},eI={class:"flex flex-col gap-6 lg:flex-row lg:gap-8"},tI={class:"mt-6 flex lg:mt-0 lg:text-(--menu-color)"},rI={class:"px-bleed flex h-14 items-center justify-between border-t border-(--black)/20 bg-(--sand) text-(--black) lg:hidden"},nI=["href"],c_={__name:"SiteHeader",async setup(e){let t,r;const s=lt("page-is-transitioning",()=>!1),{user:i}=sf(),o=Or(),{y:a}=pP(),{data:c}=([t,r]=Xc(()=>Hl(OP)),t=await t,r(),t),{data:u}=([t,r]=Xc(()=>Hl(s_)),t=await t,r(),t),[l,f]=rP(),d=cP(aP).smallerOrEqual("lg"),{theme:p}=i_(),{lenis:g}=uf(),_=ye(!1),v=()=>{const y=l.value?"#DDDEC6":"#F9F9F9";Aa({meta:[{name:"theme-color",content:y}]})};return Ve(o,()=>{l.value=!1}),Ve(l,()=>{var y,m;v(),l.value?(y=g.value)==null||y.stop():(m=g.value)==null||m.start()}),Tt(()=>{_.value=!0}),(y,m)=>{const b=tf,w=Yi,T=W$;return he(),Oe("div",{class:dt(["g-site-header lg:px-bleed gap-gap fixed z-40 grid h-14 w-screen items-center overflow-hidden text-(--fg-color) transition-all duration-300 lg:h-12 lg:grid-cols-2",[{"bg-(--bg-color)":ee(a)>50},`theme-${ee(p)}`,{"pointer-events-none":ee(s)}]])},[ie("div",{class:dt(["px-bleed relative z-10 flex h-full w-full items-center justify-between border-(--black)/20 lg:border-0 lg:bg-transparent lg:px-0",ee(l)?"border-b bg-(--sand) text-(--black)":""])},[_e(w,{to:"/"},{default:Vt(()=>[_e(b,{class:"h-4 w-auto"})]),_:1}),ie("button",{onClick:m[0]||(m[0]=x=>ee(f)()),"aria-label":"Toggle menu",class:"menu-toggle w-6 self-center justify-self-end lg:hidden"},[ie("div",YP,[ie("span",{class:dt(["w-full border transition-transform duration-500",{"translate-x-0 translate-y-1.5 rotate-45":ee(l)}])},null,2),ie("span",{class:dt(["w-full origin-center border transition-transform duration-300",{"scale-x-0":ee(l)}])},null,2),ie("span",{class:dt(["w-full border transition-transform duration-500",{"-translate-y-1.5 -rotate-45":ee(l)}])},null,2)])])],2),_e(fu,{name:"slide-in"},{default:Vt(()=>[ee(_)&&!ee(d)||ee(l)?(he(),Oe("div",QP,[ie("div",XP,[ie("nav",ZP,[ie("ul",eI,[(he(!0),Oe(qe,null,$n(ee(c).menuItems,x=>(he(),Oe("li",{key:x._id},[_e(T,uu({ref_for:!0},{...x,markActive:!0}),null,16)]))),128))])]),ie("div",tI,[ee(i)?(he(),at(T,{key:0,title:"Account",url:"/account/profile",markActive:!0})):(he(),at(T,{key:1,title:"Log in",url:"/account/login",markActive:!0}))])]),ie("ul",rI,[(he(!0),Oe(qe,null,$n(ee(u).socialMedia,x=>(he(),Oe("li",{key:x._key,class:"flex"},[ie("a",{href:x.url,target:"_blank",class:"text-sm font-medium uppercase"},pt(x.type),9,nI)]))),128))])])):Ki("",!0)]),_:1})],2)}}},sI=Object.freeze(Object.defineProperty({__proto__:null,default:c_},Symbol.toStringTag,{value:"Module"})),iI={class:"g-dev-user text-legal rounded-xs border border-neutral-300 bg-neutral-200 p-3 text-neutral-600"},oI={key:0},aI={key:1},cI=ct({__name:"DevUser",setup(e){const{bookmarkedPages:t}=Zv(),{user:r}=sf(),{isUser:n,isSubscriber:s,userData:i}=t_();return(o,a)=>(he(),Oe("div",iI,[ee(r)?(he(),Oe("div",oI,[ie("pre",null,pt(ee(r).email),1),ie("span",{class:dt(["text-black p-1 mt-1 block rounded-xs",ee(n)?"bg-green-300":"bg-red-400"])},"Is user",2),ie("span",{class:dt(["text-black p-1 my-1 block rounded-xs",ee(s)?"bg-green-300":"bg-red-400"])},"Is subscriber",2),ie("pre",null,pt(ee(i)),1),a[0]||(a[0]=ie("span",null,"Bookmarks:",-1)),ie("ul",null,[(he(!0),Oe(qe,null,$n(ee(t),c=>(he(),Oe("li",{key:c},pt(c),1))),128))])])):(he(),Oe("div",aI,[a[1]||(a[1]=ie("p",null,"No user",-1)),ie("pre",null,pt(ee(r)),1),a[2]||(a[2]=ie("span",null,"Bookmarks:",-1)),ie("ul",null,[(he(!0),Oe(qe,null,$n(ee(t),c=>(he(),Oe("li",{key:c},pt(c),1))),128))])]))]))}}),l_=Object.assign(cI,{__name:"DevUser"}),lI=Object.freeze(Object.defineProperty({__proto__:null,default:l_},Symbol.toStringTag,{value:"Module"})),uI={key:0,class:"dev-grid"},u_={__name:"DevGrid",setup(e){const t=ye(!1),n=dP()["Ctrl+G"];return Ea(()=>{n.value&&(t.value=!t.value)}),(s,i)=>{const o=l_;return ee(t)?(he(),Oe("div",uI,[(he(),Oe(qe,null,$n(12,a=>ie("div",{key:a,class:"col"},pt(a),1)),64)),_e(o,{class:"fixed bottom-5 left-5"})])):Ki("",!0)}}},fI=Object.freeze(Object.defineProperty({__proto__:null,default:u_},Symbol.toStringTag,{value:"Module"})),hI=ct({__name:"Intro",emits:["introFinished"],setup(e,{emit:t}){const r=Tu("intro-animation-shown",{maxAge:3600}),n=t,s=ye(null),i=ye(null),o=ye(null),a=ye(null),c=ye(!1),u=async()=>{const l=s.value,f=i.value,h=o.value,d=a.value;!l||!f||!h||!d||(c.value=!0,l.style.opacity="0",f.style.opacity="0",d.style.opacity="1",h.style.transform="scale(1)",await l.animate([{opacity:0,transform:"translateX(-20px)"},{opacity:1,transform:"translateX(0)"}],{duration:800,fill:"forwards",easing:"ease-out"}).finished,await f.animate([{opacity:0,transform:"translateX(-20px)"},{opacity:1,transform:"translateX(0)"}],{duration:800,fill:"forwards",easing:"ease-out"}).finished,h.animate([{transform:"scale(1)"},{transform:"scale(1.1)"}],{duration:1500,fill:"forwards",easing:"ease-in-out"}),d.animate([{opacity:1},{opacity:0}
435],{delay:500,duration:1e3,fill:"forwards",easing:"ease-in-out"}),setTimeout(()=>{r.value=!0,n("introFinished",!0)},1500))};return Tt(()=>{u()}),(l,f)=>{const h=tf;return he(),Oe("div",{ref_key:"$parent",ref:a,class:"g-introduction pointer-events-none fixed inset-0 z-[100000000000] flex h-dvh w-screen items-center justify-center bg-black duration-1000 ease-in-out"},[ie("div",{class:dt(["flex items-end text-white opacity-0 gap-2 shrink-0",{"opacity-100":c.value}]),ref_key:"$container",ref:o},[ie("span",{class:"mb-1 h-5 lg:h-6 w-auto",ref_key:"$logo",ref:s},[_e(h,{class:"h-full w-auto"})],512),ie("span",{class:"font-serif text-lg lg:text-xl italic flex",ref_key:"$text",ref:i}," Curated Inspiration ",512)],2)],512)}}}),f_=Object.assign(hI,{__name:"Intro"}),dI=Object.freeze(Object.defineProperty({__proto__:null,default:f_},Symbol.toStringTag,{value:"Module"})),h_=(e="RouteProvider")=>ct({name:e,props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const r=t.renderKey,n=t.route,s={};for(const i in t.route)Object.defineProperty(s,i,{get:()=>r===t.renderKey?t.route[i]:n[i],enumerable:!0});return xn(Vi,Er(s)),()=>Se(t.vnode,{ref:t.vnodeRef})}}),pI=h_(),Ep=new WeakMap,gI=ct({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:r,expose:n}){const s=Ae(),i=ye(),o=nt(Vi,null);let a;n({pageRef:i});const c=nt(by,null);let u;const l=s.deferHydration();if(s.isHydrating){const h=s.hooks.hookOnce("app:error",l);it().beforeEach(h)}e.pageKey&&Ve(()=>e.pageKey,(h,d)=>{h!==d&&s.callHook("page:loading:start")});let f=!1;{const h=it().beforeResolve(()=>{f=!1});Os(()=>{h()})}return()=>Se(Yy,{name:e.name,route:e.route,...t},{default:h=>{const d=mI(o,h.route,h.Component),p=o&&o.matched.length===h.route.matched.length;if(!h.Component){if(u&&!p)return u;l();return}if(u&&c&&!c.isCurrent(h.route))return u;if(d&&o&&(!c||c!=null&&c.isCurrent(o)))return p?u:null;const g=Tl(h,e.pageKey),_=vI(o,h.route,h.Component);!s.isHydrating&&a===g&&!_&&(s.callHook("page:loading:end"),f=!0),a=g;const v=!!(e.transition??h.route.meta.pageTransition??pl),y=v&&yI([e.transition,h.route.meta.pageTransition,pl,{onAfterLeave:()=>{s.callHook("page:transition:finish",h.Component)}}]),m=e.keepalive??h.route.meta.keepalive??cS;return u=Qy(v&&y,U1(m,Se(cu,{suspensible:!0,onPending:()=>s.callHook("page:start",h.Component),onResolve:()=>{Ln(()=>s.callHook("page:finish",h.Component).then(()=>{if(!f&&!_)return f=!0,s.callHook("page:loading:end")}).finally(l))}},{default:()=>{const b={key:g||void 0,vnode:r.default?_I(r.default,h):h.Component,route:h.route,renderKey:g||void 0,trackRootNodes:v,vnodeRef:i};if(!m)return Se(pI,b);const w=h.Component.type,T=w;let x=Ep.get(T);return x||(x=h_(w.name||w.__name),Ep.set(T,x)),Se(x,b)}}))).default(),u}})}});function yI(e){const t=e.filter(Boolean).map(r=>({...r,onAfterLeave:r.onAfterLeave?Eu(r.onAfterLeave):void 0}));return Ps(...t)}function mI(e,t,r){if(!e)return!1;const n=t.matched.findIndex(s=>{var i;return((i=s.components)==null?void 0:i.default)===(r==null?void 0:r.type)});return!n||n===-1?!1:t.matched.slice(0,n).some((s,i)=>{var o,a,c;return((o=s.components)==null?void 0:o.default)!==((c=(a=e.matched[i])==null?void 0:a.components)==null?void 0:c.default)})||r&&Tl({route:t,Component:r})!==Tl({route:e,Component:r})}function vI(e,t,r){return e?t.matched.findIndex(s=>{var i;return((i=s.components)==null?void 0:i.default)===(r==null?void 0:r.type)})<t.matched.length-1:!1}function _I(e,t){const r=e(t);return r.length===1?Se(r[0]):Se(qe,void 0,r)}const bI={key:0,class:"bottom-bleed right-bleed fixed z-50 flex flex-col gap-1 border bg-(--white) px-3 py-3 text-(--red) lg:w-(--cols-3)"},wI={class:"text-sm"},SI={__name:"ElementsErrorMessage",setup(e){const{errorMessage:t,setCurrentError:r}=e_();return Tt(()=>{const s=setTimeout(()=>{r(null),clearTimeout(s)},1e4)}),(n,s)=>ee(t)?(he(),Oe("div",bI,[s[0]||(s[0]=ie("span",{class:"absolute top-0 left-0 h-full w-full bg-(--red)/15"},null,-1)),s[1]||(s[1]=ie("p",{class:"text-sm"},"Something went wrong",-1)),ie("p",wI,pt(ee(t)),1)])):Ki("",!0)}},EI=ct({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>Se(Xr[e.name],e.layoutProps,t.slots)}}),TI={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},d_=ct({name:"NuxtLayout",inheritAttrs:!1,props:TI,setup(e,t){const r=Ae(),n=nt(Vi),s=n===Or()?j1():n,i=we(()=>{let c=ee(e.name)??s.meta.layout??"default";return c&&!(c in Xr)&&e.fallback&&(c=ee(e.fallback)),c}),o=ye();t.expose({layoutRef:o});const a=r.deferHydration();if(r.isHydrating){const c=r.hooks.hookOnce("app:error",a);it().beforeEach(c)}return()=>{const c=i.value&&i.value in Xr,u=s.meta.layoutTransition??aS;return Qy(c&&u,{default:()=>Se(cu,{suspensible:!0,onResolve:()=>{Ln(a)}},{default:()=>Se(kI,{layoutProps:uu(t.attrs,{ref:o}),key:i.value||void 0,name:i.value,shouldProvide:!e.name,hasTransition:!!u},t.slots)})}).default()}}}),kI=ct({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const r=e.name;return e.shouldProvide&&xn(by,{isCurrent:n=>r===(n.meta.layout??"default")}),()=>{var n,s;return!r||typeof r=="string"&&!(r in Xr)?(s=(n=t.slots).default)==null?void 0:s.call(n):Se(EI,{key:r,layoutProps:e.layoutProps,name:r},t.slots)}}}),ha=()=>300;function xI(e,t,r){e.style.transition=`opacity ${ha()}ms`,e.style.opacity=0,setTimeout(t,ha())}function CI(e,t,r){e.style.opacity=0,setTimeout(()=>{e.style.transition=`opacity ${ha()}ms`,e.style.opacity=1,setTimeout(()=>{t(),e.removeAttribute("style")},ha())})}const RI={onLeave:xI,onEnter:CI},ql=()=>1200,Tp=(e=0)=>new Promise(t=>setTimeout(t,e));async function AI(e,t,r){const n=r.cloneNode(!0),s="cubic-bezier(0.65, 0, 0.35, 1)",i=n.querySelector("[data-transition-img]"),o=n.querySelector("[data-transition-tag]"),a=n.querySelector("[data-transition-label]"),c=n.querySelector("[data-transition-btn]"),{top:u,left:l,width:f,height:h}=r.getBoundingClientRect()||{};e.style.transition=`opacity 500ms ${s}`,e.style.opacity=0,Object.assign(n.style,{position:"fixed",top:u+"px",left:l+"px",width:f+"px",height:h+"px",transformOrigin:"bottom",pointerEvents:"none",zIndex:99999999}),o&&(o.style.background="transparent"),a&&a.classList.add("lg:opacity-100"),window.innerWidth>1024&&(i.style.scale=1.05),c.style.opacity=1,document.body.append(n),await Tp(100),Object.assign(n.style,{transition:`all 800ms ${s}, top 800ms ${s}`,top:"50%",left:"50%",transformOrigin:"center",transform:"translate(-50%, -50%)"}),r.style.opacity=0,setTimeout(()=>{Object.assign(n.style,{transition:`opacity ${ql()}ms ${s}`,opacity:"0"})},1e3),await Tp(2200),t(),e.removeAttribute("style"),n.remove()}function OI(e,t,r){e.style.opacity=0,setTimeout(()=>{e.style.transition=`opacity ${ql()}ms`,e.style.opacity=1,setTimeout(()=>{t(),e.removeAttribute("style")}
435,ql())})}const $I={onLeave:AI,onEnter:OI},PI=()=>({sanityPreview:!!Or().query["sanity-preview-perspective"]}),kp=ye(!1),II=(e,t,r,n,s=ye(null))=>{const i=(o,a,...c)=>{if(o!=null&&o.name&&!t[o==null?void 0:o.name]&&console.log(`no transition named: ${o==null?void 0:o.name}. add it to usePageTransition.transitions`),!(o!=null&&o.name)||!a||!t[o==null?void 0:o.name]){if(!r)return null;const l=r[a];return l?l(...c,o==null?void 0:o.payload):null}const u=t[o.name][a];return typeof u=="function"?u(...c,o==null?void 0:o.payload):null};return{onBeforeLeave:o=>{const a=ee(e.transition);kp.value=!0,Xn(n.onBeforeLeave,o,a==null?void 0:a.payload),i(a,"onBeforeLeave",o)},onLeave:async(o,a)=>{const c=ee(e.transition);try{Xn(n.onLeave,o,c==null?void 0:c.payload),i(c,"onLeave",o,a)}catch(u){console.log(u),a()}},onAfterLeave:o=>{const a=ee(e.transition);Xn(n.onAfterLeave,o,a==null?void 0:a.payload),i(a,"onAfterLeave",o)},onBeforeEnter:o=>{const a=ee(e.transition);Xn(n.onBeforeEnter,o,a==null?void 0:a.payload),i(a,"onBeforeEnter",o)},onEnter:async(o,a)=>{const c=ee(e.transition);await LI(()=>s.value!=="pending");try{Xn(n.onEnter,o,c==null?void 0:c.payload),i(c,"onEnter",o,a)}catch(u){console.log(u),a()}},onAfterEnter:o=>{const a=ee(e.transition);Xn(n.onAfterEnter,o,a==null?void 0:a.payload),i(a,"onAfterEnter",o),e.transition&&(e.transition=null),s.value=null,kp.value=!1}}},jI=({transitions:e={},defaultTransition:t={},globalHooks:r={},endpointData:n}={})=>{const s=it();return s.transition=s.transition||null,{css:!1,...II(s,e,t,r,n)}};function Xn(e,t,...r){return typeof e=="function"?e(t,...r):null}async function LI(e){return new Promise(t=>{const r=()=>{requestAnimationFrame(e()?t:r)};r()})}const MI={__name:"app",setup(e){const{initAuthListener:t,unsubscribeAuthListener:r}=sf(),s=lt("page-is-transitioning",()=>!1),{sanityPreview:i}=PI(),o=ye(!1);Aa({htmlAttrs:{lang:"en"},meta:[{name:"robots",content:"noindex"},{name:"viewport",content:"width=device-width, initial-scale=1"}],script:[{id:"CookieConsent",src:"https://policy.app.cookieinformation.com/uc.js","data-culture":"EN",type:"text/javascript"}]});const a=Tu("intro-animation-shown",{maxAge:60*60*1}),{currentScroll:c}=uf(!0),u=jI({defaultTransition:RI,transitions:{gridItem:$I},globalHooks:{onBeforeLeave(l){s.value=!0,l.style.position="fixed",l.style.width="100vw",l.style.left=0,l.style.top=c.value*-1+"px"},onAfterEnter(l){s.value=!1,l.removeAttribute("style")}}});return Tt(async()=>{await t()}),Sa(()=>{r()}),(l,f)=>{const h=c_,d=u_,p=f_,g=gI,_=SI,v=d_;return he(),Oe("div",null,[_e(h),_e(v,null,{default:Vt(()=>[_e(d),_e(fu,{name:"fade"},{default:Vt(()=>[!ee(o)&&!ee(a)&&!ee(i)?(he(),at(p,{key:0,onIntroFinished:f[0]||(f[0]=y=>o.value=y)})):Ki("",!0)]),_:1}),_e(g,{transition:ee(u)},null,8,["transition"]),_e(_)]),_:1})])}}},NI=ct({__name:"Sentinel",props:{_type:{},theme:{}},setup(e){const t=e,r=yg("element"),n=Me(!1),{setCurrentTheme:s}=i_();return uP(r,([i])=>{n.value=(i==null?void 0:i.isIntersecting)||!1,n.value&&s(t.theme||"white")},{rootMargin:"0px 0px -100% 0px"}),(i,o)=>(he(),Oe("div",{ref_key:"element",ref:r,class:"e-sentinel absolute inset-0 w-full h-full pointer-events-none"},null,512))}}),DI=Object.assign(NI,{__name:"ElementsSentinel"}),UI={},FI={width:"100%",height:"100%",viewBox:"0 0 1440 709",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function HI(e,t){return he(),Oe("svg",FI,t[0]||(t[0]=[ie("path",{d:"M1014.36 599V527L1321.36 0H1386.36V527H1473.36V599H1386.36V716C1386.36 738.667 1388.03 755.333 1391.36 766C1395.36 776 1403.03 783 1414.36 787C1425.69 791 1444.03 793 1469.36 793V816H1221.36V793C1247.36 793 1266.03 791 1277.36 787C1288.69 783 1296.36 776 1300.36 766C1304.36 755.333 1306.36 738.667 1306.36 716V599H1014.36ZM1059.36 524V527H1306.36V90L1059.36 524Z",fill:"black","fill-opacity":"0.03"},null,-1),ie("path",{d:"M726.461 831C677.794 831 636.461 812.667 602.461 776C569.128 739.333 543.794 689.333 526.461 626C509.794 562.667 501.461 491.667 501.461 413C501.461 335 509.794 265 526.461 203C543.794 140.333 569.128 91 602.461 55C636.461 18.3333 677.794 0 726.461 0C775.128 0 816.128 18.3333 849.461 55C883.461 91 908.794 140.333 925.461 203C942.794 265 951.461 335 951.461 413C951.461 491.667 942.794 562.667 925.461 626C908.794 689.333 883.461 739.333 849.461 776C816.128 812.667 775.128 831 726.461 831ZM726.461 794C773.128 794 807.461 759.667 829.461 691C851.461 622.333 862.461 529.667 862.461 413C862.461 298.333 851.461 207 829.461 139C807.461 71 773.128 37 726.461 37C679.794 37 645.461 71 623.461 139C601.461 207 590.461 298.333 590.461 413C590.461 529.667 601.461 622.333 623.461 691C645.461 759.667 679.794 794 726.461 794Z",fill:"black","fill-opacity":"0.03"},null,-1),ie("path",{d:"M-34 599V527L273 0H338V527H425V599H338V716C338 738.667 339.667 755.333 343 766C347 776 354.667 783 366 787C377.333 791 395.667 793 421 793V816H173V793C199 793 217.667 791 229 787C240.333 783 248 776 252 766C256 755.333 258 738.667 258 716V599H-34ZM11 524V527H258V90L11 524Z",fill:"black","fill-opacity":"0.03"},null,-1)]))}const BI=Object.assign(so(UI,[["render",HI]]),{__name:"IconsError"}),qI=["type","aria-label","disabled"],zI={class:"flex items-center gap-1 font-sans text-sm font-medium uppercase"},WI={class:"font-sans text-sm font-medium uppercase"},KI=ct({__name:"Button",props:{btnType:{},ariaLabel:{},underline:{type:Boolean,default:!1},markActive:{type:Boolean,default:!1},linkType:{},title:{},url:{},target:{default:"_self"},disabled:{type:Boolean},page:{}},setup(e){return(t,r)=>{var s;const n=Yi;
435return t.btnType?(he(),Oe("button",{key:0,type:t.btnType,"aria-label":t.ariaLabel,disabled:t.disabled,class:"e-button bg-(--bg-color) text-(--fg-color) flex cursor-pointer justify-center justify-self-start border px-3 py-2 leading-none transition-colors duration-300 hover:bg-(--fg-color) hover:text-(--bg-color) disabled:opacity-40 disabled:border-(--fg-color)/40 disabled:pointer-events-none"},[ie("span",zI,[Nb(t.$slots,"default")])],8,qI)):(he(),at(n,{key:1,to:t.url||((s=t.page)==null?void 0:s.url),target:t.target,class:"e-button flex bg-(--bg-color) text-(--fg-color) cursor-pointer justify-center justify-self-start border px-3 py-2 leading-none transition-colors duration-300 hover:bg-(--fg-color) hover:text-(--bg-color)"},{default:Vt(()=>{var i;return[ie("span",WI,pt(t.title||((i=t.page)==null?void 0:i.title)||t.url),1)]}),_:1},8,["to","target"]))}}}),p_=Object.assign(KI,{__name:"ElementsButton"}),VI={},GI={width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function JI(e,t){return he(),Oe("svg",GI,t[0]||(t[0]=[ie("circle",{cx:"10",cy:"10",r:"2.5",stroke:"#F9F9F9"},null,-1),ie("circle",{cx:"13",cy:"7",r:"0.5",fill:"#F9F9F9"},null,-1),ie("rect",{x:"4.5",y:"4.5",width:"11",height:"11",rx:"2.5",stroke:"#F9F9F9"},null,-1)]))}const YI=Object.assign(so(VI,[["render",JI]]),{__name:"IconsInstagram"});function xp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Cp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xp(Object(r),!0).forEach(function(n){QI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QI(e,t,r){return(t=XI(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XI(e){var t=ZI(e,"string");return typeof t=="symbol"?t:t+""}function ZI(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function da(e){return e._type==="span"&&"text"in e&&typeof e.text=="string"&&(typeof e.marks>"u"||Array.isArray(e.marks)&&e.marks.every(t=>typeof t=="string"))}function g_(e){return typeof e._type=="string"&&e._type[0]!=="@"&&(!("markDefs"in e)||!e.markDefs||Array.isArray(e.markDefs)&&e.markDefs.every(t=>typeof t._key=="string"))&&"children"in e&&Array.isArray(e.children)&&e.children.every(t=>typeof t=="object"&&"_type"in t)}function y_(e){return g_(e)&&"listItem"in e&&typeof e.listItem=="string"&&(typeof e.level>"u"||typeof e.level=="number")}function m_(e){return e._type==="@list"}function v_(e){return e._type==="@span"}function __(e){return e._type==="@text"}const Rp=["strong","em","code","underline","strike-through"];function ej(e,t,r){if(!da(e)||!e.marks)return[];if(!e.marks.length)return[];const n=e.marks.slice(),s={};return n.forEach(i=>{s[i]=1;for(let o=t+1;o<r.length;o++){const a=r[o];if(a&&da(a)&&Array.isArray(a.marks)&&a.marks.indexOf(i)!==-1)s[i]++;else break}}),n.sort((i,o)=>tj(s,i,o))}function tj(e,t,r){const n=e[t],s=e[r];if(n!==s)return s-n;const i=Rp.indexOf(t),o=Rp.indexOf(r);return i!==o?i-o:t.localeCompare(r)}function rj(e){var t,r;const{children:n}=e,s=(t=e.markDefs)!=null?t:[];if(!n||!n.length)return[];const i=n.map(ej),o={_type:"@span",children:[],markType:"<unknown>"};let a=[o];for(let c=0;c<n.length;c++){const u=n[c];if(!u)continue;const l=i[c]||[];let f=1;if(a.length>1)for(f;f<a.length;f++){const d=((r=a[f])==null?void 0:r.markKey)||"",p=l.indexOf(d);if(p===-1)break;l.splice(p,1)}a=a.slice(0,f);let h=a[a.length-1];if(h){for(const d of l){const p=s==null?void 0:s.find(v=>v._key===d),g=p?p._type:d,_={_type:"@span",_key:u._key,children:[],markDef:p,markType:g,markKey:d};h.children.push(_),a.push(_),h=_}if(da(u)){const d=u.text.split(` 436`);for(let p=d.length;p-- >1;)d.splice(p,0,` 437`);h.children=h.children.concat(d.map(p=>({_type:"@text",text:p})))}else h.children=h.children.concat(u)}}return o.children}function nj(e,t){const r=[];let n;for(let s=0;s<e.length;s++){const i=e[s];if(i){if(!y_(i)){r.push(i),n=void 0;continue}if(!n){n=Io(i,s,t),r.push(n);continue}if(sj(i,n)){n.children.push(i);continue}if((i.level||1)>n.level){const o=Io(i,s,t);
437if(t==="html"){const a=n.children[n.children.length-1],c=Cp(Cp({},a),{},{children:[...a.children,o]});n.children[n.children.length-1]=c}else n.children.push(o);n=o;continue}if((i.level||1)<n.level){const o=r[r.length-1],a=o&&zl(o,i);if(a){n=a,n.children.push(i);continue}n=Io(i,s,t),r.push(n);continue}if(i.listItem!==n.listItem){const o=r[r.length-1],a=o&&zl(o,{level:i.level||1});if(a&&a.listItem===i.listItem){n=a,n.children.push(i);continue}else{n=Io(i,s,t),r.push(n);continue}}console.warn("Unknown state encountered for block",i),r.push(i)}}return r}function sj(e,t){return(e.level||1)===t.level&&e.listItem===t.listItem}function Io(e,t,r){return{_type:"@list",_key:`${e._key||`${t}`}-parent`,mode:r,level:e.level||1,listItem:e.listItem,children:[e]}}function zl(e,t){const r=t.level||1,n=t.listItem||"normal",s=typeof t.listItem=="string";if(m_(e)&&(e.level||1)===r&&s&&(e.listItem||"normal")===n)return e;if(!("children"in e))return;const i=e.children[e.children.length-1];return i&&!da(i)?zl(i,t):void 0}function b_(e){let t="";return e.children.forEach(r=>{__(r)?t+=r.text:v_(r)&&(t+=b_(r))}),t}const ij="html";function oj(e,t){const{block:r,list:n,listItem:s,marks:i,types:o,...a}=t;return{...e,block:Ks(e,t,"block"),list:Ks(e,t,"list"),listItem:Ks(e,t,"listItem"),marks:Ks(e,t,"marks"),types:Ks(e,t,"types"),...a}}function Ks(e,t,r){const n=t[r],s=e[r];return typeof n=="function"||n&&typeof s=="function"?n:n?{...s,...n}:s}const rt=e=>(t,{slots:r})=>{var n;return Se(e,(n=r.default)==null?void 0:n.call(r))},aj=({value:e},{slots:t})=>{var r;return Se("a",{href:e==null?void 0:e.href},(r=t.default)==null?void 0:r.call(t))},cj={textDecoration:"underline"},lj={code:rt("code"),em:rt("em"),link:aj,"strike-through":rt("del"),strong:rt("strong"),underline:(e,{slots:t})=>{var r;return Se("span",{style:cj},(r=t.default)==null?void 0:r.call(t))}},uj={number:rt("ol"),bullet:rt("ul")},fj=rt("li"),ao=(e,t)=>`[@portabletext/vue] Unknown ${e}, specify a component for it in the \`components.${t}\` prop`,w_=e=>ao(`block type "${e}"`,"types"),hj=e=>ao(`mark type "${e}"`,"marks"),dj=e=>ao(`block style "${e}"`,"block"),pj=e=>ao(`list style "${e}"`,"list"),gj=e=>ao(`list item style "${e}"`,"listItem");function yj(e){console.warn(e)}const Ap={display:"none"},mj=({value:e,isInline:t})=>{const r=w_(e._type);return t?Se("span",{style:Ap},r):Se("div",{style:Ap},r)},vj=({markType:e},{slots:t})=>{var r;return Se("span",{class:`unknown__pt__mark__${e}`},(r=t.default)==null?void 0:r.call(t))},_j=rt("p"),bj=rt("ul"),wj=rt("li"),Sj=()=>Se("br"),Ej={normal:rt("p"),blockquote:rt("blockquote"),h1:rt("h1"),h2:rt("h2"),h3:rt("h3"),h4:rt("h4"),h5:rt("h5"),h6:rt("h6")},Op={types:{},block:Ej,marks:lj,list:uj,listItem:fj,hardBreak:Sj,unknownType:mj,unknownMark:vj,unknownList:bj,unknownListItem:wj,unknownBlockStyle:_j},Tj=(e,t)=>{function r(f){const{node:h,index:d,isInline:p}=f,g=h._key||`node-${d}`;return m_(h)?i(h,d,g):y_(h)?s(h,d,g):v_(h)?o(h,d,g):n(h)?l(h,d,g,p):g_(h)?a(h,d,g,p):__(h)?c(h,g):u(h,d,g,p)}function n(f){return f._type in e.types}function s(f,h,d){const p=$p({node:f,index:h,isInline:!1,renderNode:r}),g=e.listItem,_=(typeof g=="function"?g:g[f.listItem])||e.unknownListItem;if(_===e.unknownListItem){const y=f.listItem||"bullet";t(gj(y),{type:y,nodeType:"listItemStyle"})}let v=p.children;if(f.style&&f.style!=="normal"){const{listItem:y,...m}=f;v=r({node:m,index:h,isInline:!1})}return Se(_,{key:d,value:f,index:h,isInline:!1,renderNode:r},()=>v)}function i(f,h,d){const p=f.children.map((v,y)=>r({node:v._key?v:{...v,_key:`li-${h}-${y}`},index:y,isInline:!1})),g=e.list,_=(typeof g=="function"?g:g[f.listItem])||e.unknownList;if(_===e.unknownList){const v=f.listItem||"bullet";t(pj(v),{nodeType:"listStyle",type:v})}return Se(_,{key:d,value:f,index:h,isInline:!1,renderNode:r},()=>p)}function o(f,h,d){const{markDef:p,markType:g,markKey:_}=f,v=e.marks[g]||e.unknownMark,y=f.children.map((m,b)=>r({node:m,index:b,isInline:!0}));return v===e.unknownMark&&t(hj(g),{nodeType:"mark",type:g}),Se(v,{key:d,text:b_(f),value:p,markType:g,markKey:_,renderNode:r},()=>y)}function a(f,h,d,p){const{_key:g,children:_,...v}=$p({node:f,index:h,isInline:p,renderNode:r}),y=v.node.style||"normal",m=(typeof e.block=="function"?e.block:e.block[y])||e.unknownBlockStyle;return m===e.unknownBlockStyle&&t(dj(y),{nodeType:"blockStyle",type:y}),Se(m,{key:d,...v,value:v.node,renderNode:r},()=>_)}function c(f,h){if(f.text===` 438`){const d=e.hardBreak;return d?Se(d,{key:h}):` 439`}return f.text}function u(f,h,d,p){const g={value:f,isInline:p,index:h,renderNode:r};t(w_(f._type),{nodeType:"block",type:f._type});const _=e.unknownType;return Se(_,{key:d,...g})}function l(f,h,d,p){const g={value:f,isInline:p,index:h,renderNode:r},_=e.types[f._type];return _?Se(_,{key:d,...g}):void 0}return r};function $p(e){const{node:t,index:r,isInline:n,renderNode:s}=e,i=rj(t).map((o,a)=>s({node:o,isInline:!0,index:a,renderNode:s}));return{_key:t._key||`block-${r}`,children:i,index:r,isInline:n,node:t}}const kj=ct({__name:"vue-portable-text",props:{value:{},components:{},onMissingComponent:{type:[Function,Boolean],default:()=>yj},listNestingMode:{}},setup(e){function t(){}const r=e,n=()=>{const s=r.onMissingComponent||t,i=Array.isArray(r.value)?r.value:[r.value],o=nj(i,r.listNestingMode||ij),a=r.components?oj(Op,r.components):Op,c=Tj(a,s);return o.map((u,l)=>c({node:u,index:l,isInline:!1,renderNode:c}))};return(s,i)=>(he(),at(n))}}),xj={class:"e-portable-text rte"},Cj=ct({__name:"PortableTextWrapper",props:{classes:{},content:{}},setup(e){const t={listItem:{bullet:(r,{slots:n})=>Se("li",{class:"pl-base"},()=>{var s;return(s=n.default)==null?void 0:s.call(n)}),number:(r,{slots:n})=>Se("li",{class:"pl-base"},()=>{var s;return(s=n.default)==null?void 0:s.call(n)}),checkmarks:(r,{slots:n})=>{var s;return Se("li",["â ",(s=n.default)==null?void 0:s.call(n)])}},marks:{button:({value:r},{slots:n})=>Se(p_,{...r}),internalLink:({value:r},{slots:n})=>Se(Yi,{to:r.url},()=>{var s;return(s=n.default)==null?void 0:s.call(n)}),externalLink:({value:r},{slots:n})=>Se("a",{href:r.url,target:"_blank",title:r.title||r.url,rel:"noindex nofollow"},()=>{var s;return(s=n.default)==null?void 0:s.call(n)})}};return(r,n)=>(he(),Oe("div",xj,[r.content?(he(),at(ee(kj),{key:0,value:r.content,components:t},null,8,["value"])):Ki("",!0)]))}}),Rj=Object.assign(so(Cj,[["__scopeId","data-v-c23969ff"]]),{__name:"ElementsPortableTextWrapper"}),Aj={class:"px-bleed lg:gap-gap grid gap-8 pt-10 pb-40 lg:grid-cols-2"},Oj={class:"mt-5 flex flex-col gap-5 lg:flex-row"},$j=["href"],Pj={key:1,class:"text-xs"},Ij={class:"font-serif text-lg"},jj={class:"px-bleed gap-gap grid grid-cols-2 border-t border-(--white)/20 pt-8 pb-15 text-xs uppercase lg:grid-cols-4 lg:py-5"},Lj={class:"flex flex-col lg:flex-row gap-5 lg:col-span-2 items-start justify-start"},Mj={class:"text-xs font-medium lg:flex"},Nj={class:"flex flex-col items-center justify-between lg:col-span-2 lg:flex-row"},Dj={class:"flex flex-col gap-5 text-xs font-medium lg:flex-row"},Uj={__name:"SiteFooter",async setup(e){let t,r;uf();const{data:n}=([t,r]=Xc(()=>Hl(s_)),t=await t,r(),t),s=ye(null),i=ye(100),o=ye(0),a=(l,f,h=.1)=>l+(f-l)*h,c=()=>
439{if(!s.value)return;const l=s.value.getBoundingClientRect(),f=window.innerHeight;if(l.top<f){const d=Math.min(1,(f-l.top)/l.height),p=a(o.value,d,.05),g=a(i.value,(1-d)*200,.05);o.value=p<.001?0:p,i.value=g<.001?0:g}},u=()=>{var l,f;typeof((l=window==null?void 0:window.CookieConsent)==null?void 0:l.renew)=="function"?(f=window==null?void 0:window.CookieConsent)==null||f.renew():console.warn("cant find CookieConsent.renew()")};return Tt(()=>{const l=()=>{c(),requestAnimationFrame(l)};requestAnimationFrame(l)}),(l,f)=>{const h=YI,d=Rj,p=Yi;return he(),Oe("div",{ref_key:"footerRef",ref:s,class:"g-site-footer relative overflow-hidden"},[ie("footer",{class:"w-full border-t border-(--white)/20 bg-(--black) text-(--white) transition-transform duration-200 ease-out",style:vs({transform:`translate(0%, ${ee(i)}px)`})},[ie("div",{style:vs({opacity:ee(o)})},[ie("div",Aj,[ie("h4",null,[f[0]||(f[0]=ie("span",{class:"text-xl font-medium uppercase"},"Curin",-1)),f[1]||(f[1]=ie("span",{class:"ml-1 font-serif text-xl italic"}," Curated inspiration ",-1)),ie("ul",Oj,[(he(!0),Oe(qe,null,$n(ee(n).socialMedia,g=>(he(),Oe("li",{key:g._key},[ie("a",{href:g.url,target:"_blank",class:"flex size-7 cursor-pointer items-center justify-center border border-(--white)/20 transition-all hover:border-(--white)/80"},[g.type=="Instagram"?(he(),at(h,{key:0,class:"size-5"})):(he(),Oe("span",Pj,pt(g.type),1))],8,$j)]))),128))])]),ie("div",Ij,[_e(d,{content:ee(n).body},null,8,["content"])])]),ie("div",jj,[ie("div",Lj,[ie("span",Mj,pt(ee(n).copyright),1),f[2]||(f[2]=ie("span",{class:"text-xs font-medium"},[_i(" Site by "),ie("a",{href:"https://springsummer.dk/",target:"_blank","aria-label":"Go to the website of Spring/Summer",class:"inline-flex cursor-pointer"}," Spring/Summer ")],-1))]),ie("div",Nj,[ie("ul",Dj,[(he(!0),Oe(qe,null,$n(ee(n).menuItems,g=>(he(),Oe("li",{key:g._id},[_e(p,{href:g.url},{default:Vt(()=>[_i(pt(g.title),1)]),_:2},1032,["href"])]))),128)),ie("li",null,[ie("button",{onClick:u,ariaLabel:"Update cookie consent",class:"cursor-pointer text-xs font-medium uppercase"}," Cookie consent ")])])])])],4)],4)],512)}}},S_=Object.assign(Uj,{__name:"SiteFooter"}),Fj=Object.freeze(Object.defineProperty({__proto__:null,default:S_},Symbol.toStringTag,{value:"Module"})),Hj={class:"relative flex h-screen w-full items-center justify-center"},Bj={class:"absolute inset-0 lg:top-30 h-full w-full overflow-clip flex items-end"},qj={class:"flex flex-col items-center justify-center relative"},zj={class:"mb-8 text-sm font-medium uppercase"},Wj={class:"mb-15 font-serif text-3xl lg:text-5xl italic"},Kj=ct({__name:"error",setup(e){const t=Nn(),r=Or();return JSON.parse(JSON.stringify(t.value)),Ve(()=>r.fullPath,async()=>{await Ey()}),(n,s)=>{const i=DI,o=BI,a=p_,c=S_,u=d_;return he(),at(u,{class:"relative h-full w-full"},{default:Vt(()=>{var l,f;return[_e(i,M_(Yg({_type:"error",theme:"white"})),null,16),ie("div",Hj,[ie("div",Bj,[_e(o,{class:"h-auto"})]),ie("div",qj,[ie("p",zj,pt((l=ee(t))==null?void 0:l.statusCode)+" Error ",1),ie("p",Wj,pt((f=ee(t))==null?void 0:f.message),1),_e(a,{title:"Go to Homepage",url:"/",ariaLabel:"Go to homepage"},{default:Vt(()=>s[0]||(s[0]=[_i(" Go to homepage ")])),_:1})])]),_e(c)]}),_:1})}}}),Vj={key:0},Pp={__name:"nuxt-root",setup(e){const t=()=>null,r=Ae(),n=r.deferHydration();if(r.isHydrating){const c=r.hooks.hookOnce("app:error",n);it().beforeEach(c)}const s=!1;xn(Vi,Or()),r.hooks.callHookWith(c=>c.map(u=>u()),"vue:setup");const i=Nn(),o=!1;Sg((c,u,l)=>{if(r.hooks.callHook("vue:error",c,u,l).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),Ty(c)&&(c.fatal||c.unhandled))return r.runWithContext(()=>Fr(c)),!1});const a=!1;return(c,u)=>(he(),at(cu,{onResolve:ee(n)},{default:Vt(()=>[ee(o)?(he(),Oe("div",Vj)):ee(i)?(he(),at(ee(Kj),{key:1,error:ee(i)},null,8,["error"])):ee(a)?(he(),at(ee(t),{key:2,context:ee(a)},null,8,["context"])):ee(s)?(he(),at(Mb(ee(s)),{key:3})):(he(),at(ee(MI),{key:4}))]),_:1},8,["onResolve"]))}};let Ip;{let e;Ip=async function(){var o,a;if(e)return e;const r=!!(((o=window.__NUXT__)==null?void 0:o.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true"),n=r?n0(Pp):r0(Pp),s=pS({vueApp:n});async function i(c){var u;await s.callHook("app:error",c),(u=s.payload).error||(u.error=Gi(c))}n.config.errorHandler=i,s.hook("app:suspense:resolve",()=>{n.config.errorHandler===i&&(n.config.errorHandler=void 0)}),!r&&ah.id&&s.hook("app:suspense:resolve",()=>{var c;(c=document.getElementById(ah.id))==null||c.remove()});try{await mS(s,U$)}catch(c){i(c)}
439try{await s.hooks.callHook("app:created",n),await s.hooks.callHook("app:beforeMount",n),n.mount(fS),await s.hooks.callHook("app:mounted",n),await Ln()}catch(c){i(c)}return n},e=Ip().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{uf as $,Gi as A,at as B,Ki as C,Hl as D,mL as E,qe as F,S_ as G,Ou as H,it as I,W$ as J,Rj as K,Or as L,sf as M,Zv as N,p_ as O,xL as P,uu as Q,Xj as R,Re as S,fu as T,yt as U,vw as V,Tu as W,s_ as X,tf as Y,dP as Z,DI as _,cP as a,qu as a$,Ea as a0,Os as a1,Nb as a2,e_ as a3,Zu as a4,t_ as a5,SL as a6,nf as a7,EL as a8,eL as a9,Aa as aA,Zj as aB,wy as aC,Rn as aD,c_ as aE,Om as aF,xv as aG,Rr as aH,Cr as aI,$r as aJ,FR as aK,HR as aL,SA as aM,uL as aN,aL as aO,Lu as aP,lL as aQ,Fm as aR,fL as aS,tL as aT,hv as aU,Ms as aV,yA as aW,bA as aX,lv as aY,nv as aZ,DR as a_,j1 as aa,pP as ab,Jj as ac,Qj as ad,vs as ae,TL as af,kL as ag,vL as ah,_L as ai,bL as aj,wL as ak,ze as al,Me as am,yL as an,pL as ao,kr as ap,PI as aq,Yj as ar,uP as as,Ps as at,ul as au,Yt as av,Ca as aw,Ra as ax,Ae as ay,tm as az,Sa as b,cL as b0,dR as b1,La as b2,fA as b3,Vm as b4,to as b5,cr as b6,We as b7,He as b8,ar as b9,sn as ba,xs as bb,aa as bc,Km as bd,Jd as be,bt as bf,PR as bg,dL as bh,Oe as c,ct as d,he as e,_e as f,ie as g,Yg as h,Vt as i,Yi as j,$n as k,dt as l,ee as m,M_ as n,Tt as o,_i as p,aP as q,ye as r,Ln as s,pt as t,yg as u,gL as v,Ve as w,we as x,so as y,Xc as z};
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.