diff --git a/200.html b/200.html new file mode 100644 index 0000000..651e126 --- /dev/null +++ b/200.html @@ -0,0 +1,7 @@ + + + + +
+ \ No newline at end of file diff --git a/404.html b/404.html new file mode 100644 index 0000000..651e126 --- /dev/null +++ b/404.html @@ -0,0 +1,7 @@ + + + + +
+ \ No newline at end of file diff --git a/_nuxt/Container.1e0523ab.js b/_nuxt/Container.bdcd2033.js similarity index 98% rename from _nuxt/Container.1e0523ab.js rename to _nuxt/Container.bdcd2033.js index f1581dc..90455e5 100644 --- a/_nuxt/Container.1e0523ab.js +++ b/_nuxt/Container.bdcd2033.js @@ -1 +1 @@ -import{_ as b,m as g,B as t,C as h,D as n,E as C,F as f,r as _,s as k,o as i,c,n as o,t as v,j as m,H as y,S as j,T as O,N as A,d as w,x as B,w as N,U as T}from"./entry.85cabd99.js";const E=g({props:{src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},size:{type:String,default:()=>t.ui.avatar.default.size,validator(e){return Object.keys(t.ui.avatar.size).includes(e)}},chipColor:{type:String,default:()=>t.ui.avatar.default.chipColor,validator(e){return["gray",...t.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>t.ui.avatar.default.chipPosition,validator(e){return Object.keys(t.ui.avatar.chip.position).includes(e)}},chipText:{type:[String,Number],default:null},ui:{type:Object,default:()=>t.ui.avatar}},setup(e){const s=h(),a=n(()=>C({},e.ui,s.ui.avatar)),u=n(()=>f(a.value.wrapper,a.value.background,a.value.rounded,a.value.size[e.size])),r=n(()=>f(a.value.rounded,a.value.size[e.size])),l=n(()=>f(a.value.chip.base,a.value.chip.size[e.size],a.value.chip.position[e.chipPosition],a.value.chip.background.replaceAll("{color}",e.chipColor))),d=n(()=>typeof e.src=="boolean"?null:e.src),$=n(()=>(e.alt||"").split(" ").map(z=>z.charAt(0)).join("").substring(0,2)),p=_(!1);k(()=>e.src,()=>{p.value&&(p.value=!1)});function S(){p.value=!0}return{wrapperClass:u,avatarClass:r,chipClass:l,url:d,placeholder:$,error:p,onError:S}}}),D=["src","alt","onerror"];function P(e,s,a,u,r,l){return i(),c("span",{class:o(e.wrapperClass)},[e.url&&!e.error?(i(),c("img",{key:0,class:o(e.avatarClass),src:e.url,alt:e.alt,onerror:()=>e.onError()},null,10,D)):e.text||e.placeholder?(i(),c("span",{key:1,class:o(e.ui.placeholder)},v(e.text||e.placeholder),3)):m("",!0),e.chipColor?(i(),c("span",{key:2,class:o(e.chipClass)},v(e.chipText),3)):m("",!0),y(e.$slots,"default")],2)}const q=b(E,[["render",P]]),G=()=>{var r;const e=A(),s=j(),a=s.value?`Bearer ${s.value}`:void 0,u=((r=e._supabaseClient)==null?void 0:r.headers.Authorization)!==a;return(!e._supabaseClient||u)&&(e._supabaseClient=O()),e._supabaseAuthClient},V=g({props:{size:{type:String,default:()=>t.ui.badge.default.size,validator(e){return Object.keys(t.ui.badge.size).includes(e)}},color:{type:String,default:()=>t.ui.badge.default.color,validator(e){return[...t.ui.colors,...Object.keys(t.ui.badge.color)].includes(e)}},variant:{type:String,default:()=>t.ui.badge.default.variant,validator(e){return[...Object.keys(t.ui.badge.variant),...Object.values(t.ui.badge.color).flatMap(s=>Object.keys(s))].includes(e)}},label:{type:String,default:null},ui:{type:Object,default:()=>t.ui.badge}},setup(e){const s=h(),a=n(()=>C({},e.ui,s.ui.badge));return{badgeClass:n(()=>{var l,d;const r=((d=(l=a.value.color)==null?void 0:l[e.color])==null?void 0:d[e.variant])||a.value.variant[e.variant];return f(a.value.base,a.value.font,a.value.rounded,a.value.size[e.size],r==null?void 0:r.replaceAll("{color}",e.color))})}}});function F(e,s,a,u,r,l){return i(),c("span",{class:o(e.badgeClass)},[y(e.$slots,"default",{},()=>[w(v(e.label),1)])],2)}const I=b(V,[["render",F]]),H=g({props:{as:{type:String,default:"div"},ui:{type:Object,default:()=>t.ui.container}},setup(e){const s=h();return{ui:n(()=>C({},e.ui,s.ui.container))}}});function M(e,s,a,u,r,l){return i(),B(T(e.as),{class:o([e.ui.base,e.ui.padding,e.ui.constrained])},{default:N(()=>[y(e.$slots,"default")]),_:3},8,["class"])}const J=b(H,[["render",M]]);export{q as _,I as a,J as b,G as u}; +import{_ as b,m as g,B as t,C as h,D as n,E as C,F as f,r as _,s as k,o as i,c,n as o,t as v,j as m,H as y,S as j,T as O,N as A,d as w,x as B,w as N,U as T}from"./entry.9faa54b8.js";const E=g({props:{src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},size:{type:String,default:()=>t.ui.avatar.default.size,validator(e){return Object.keys(t.ui.avatar.size).includes(e)}},chipColor:{type:String,default:()=>t.ui.avatar.default.chipColor,validator(e){return["gray",...t.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>t.ui.avatar.default.chipPosition,validator(e){return Object.keys(t.ui.avatar.chip.position).includes(e)}},chipText:{type:[String,Number],default:null},ui:{type:Object,default:()=>t.ui.avatar}},setup(e){const s=h(),a=n(()=>C({},e.ui,s.ui.avatar)),u=n(()=>f(a.value.wrapper,a.value.background,a.value.rounded,a.value.size[e.size])),r=n(()=>f(a.value.rounded,a.value.size[e.size])),l=n(()=>f(a.value.chip.base,a.value.chip.size[e.size],a.value.chip.position[e.chipPosition],a.value.chip.background.replaceAll("{color}",e.chipColor))),d=n(()=>typeof e.src=="boolean"?null:e.src),$=n(()=>(e.alt||"").split(" ").map(z=>z.charAt(0)).join("").substring(0,2)),p=_(!1);k(()=>e.src,()=>{p.value&&(p.value=!1)});function S(){p.value=!0}return{wrapperClass:u,avatarClass:r,chipClass:l,url:d,placeholder:$,error:p,onError:S}}}),D=["src","alt","onerror"];function P(e,s,a,u,r,l){return i(),c("span",{class:o(e.wrapperClass)},[e.url&&!e.error?(i(),c("img",{key:0,class:o(e.avatarClass),src:e.url,alt:e.alt,onerror:()=>e.onError()},null,10,D)):e.text||e.placeholder?(i(),c("span",{key:1,class:o(e.ui.placeholder)},v(e.text||e.placeholder),3)):m("",!0),e.chipColor?(i(),c("span",{key:2,class:o(e.chipClass)},v(e.chipText),3)):m("",!0),y(e.$slots,"default")],2)}const q=b(E,[["render",P]]),G=()=>{var r;const e=A(),s=j(),a=s.value?`Bearer ${s.value}`:void 0,u=((r=e._supabaseClient)==null?void 0:r.headers.Authorization)!==a;return(!e._supabaseClient||u)&&(e._supabaseClient=O()),e._supabaseAuthClient},V=g({props:{size:{type:String,default:()=>t.ui.badge.default.size,validator(e){return Object.keys(t.ui.badge.size).includes(e)}},color:{type:String,default:()=>t.ui.badge.default.color,validator(e){return[...t.ui.colors,...Object.keys(t.ui.badge.color)].includes(e)}},variant:{type:String,default:()=>t.ui.badge.default.variant,validator(e){return[...Object.keys(t.ui.badge.variant),...Object.values(t.ui.badge.color).flatMap(s=>Object.keys(s))].includes(e)}},label:{type:String,default:null},ui:{type:Object,default:()=>t.ui.badge}},setup(e){const s=h(),a=n(()=>C({},e.ui,s.ui.badge));return{badgeClass:n(()=>{var l,d;const r=((d=(l=a.value.color)==null?void 0:l[e.color])==null?void 0:d[e.variant])||a.value.variant[e.variant];return f(a.value.base,a.value.font,a.value.rounded,a.value.size[e.size],r==null?void 0:r.replaceAll("{color}",e.color))})}}});function F(e,s,a,u,r,l){return i(),c("span",{class:o(e.badgeClass)},[y(e.$slots,"default",{},()=>[w(v(e.label),1)])],2)}const I=b(V,[["render",F]]),H=g({props:{as:{type:String,default:"div"},ui:{type:Object,default:()=>t.ui.container}},setup(e){const s=h();return{ui:n(()=>C({},e.ui,s.ui.container))}}});function M(e,s,a,u,r,l){return i(),B(T(e.as),{class:o([e.ui.base,e.ui.padding,e.ui.constrained])},{default:N(()=>[y(e.$slots,"default")]),_:3},8,["class"])}const J=b(H,[["render",M]]);export{q as _,I as a,J as b,G as u}; diff --git a/_nuxt/auth.4213601d.js b/_nuxt/auth.4213601d.js new file mode 100644 index 0000000..dd954a7 --- /dev/null +++ b/_nuxt/auth.4213601d.js @@ -0,0 +1 @@ +import{V as e,y as a,W as s}from"./entry.9faa54b8.js";const r=e(()=>{if(!a().value)return s("/")});export{r as default}; diff --git a/_nuxt/auth.7dd1f124.js b/_nuxt/auth.7dd1f124.js deleted file mode 100644 index 3e42e46..0000000 --- a/_nuxt/auth.7dd1f124.js +++ /dev/null @@ -1 +0,0 @@ -import{V as e,y as a,W as s}from"./entry.85cabd99.js";const r=e(()=>{if(!a().value)return s("/")});export{r as default}; diff --git a/_nuxt/entry.85cabd99.js b/_nuxt/entry.9faa54b8.js similarity index 57% rename from _nuxt/entry.85cabd99.js rename to _nuxt/entry.9faa54b8.js index 6a175c1..a063adc 100644 --- a/_nuxt/entry.85cabd99.js +++ b/_nuxt/entry.9faa54b8.js @@ -1,15 +1,15 @@ -function Md(e,t){for(var r=0;rn[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function No(e,t){const r=Object.create(null),n=e.split(",");for(let s=0;s!!r[s.toLowerCase()]:s=>!!r[s]}const me={},Mr=[],pt=()=>{},Dd=()=>!1,Fd=/^on[^a-z]/,Zn=e=>Fd.test(e),Mo=e=>e.startsWith("onUpdate:"),Ce=Object.assign,Do=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Bd=Object.prototype.hasOwnProperty,ae=(e,t)=>Bd.call(e,t),Q=Array.isArray,Dr=e=>es(e)==="[object Map]",Jc=e=>es(e)==="[object Set]",Ud=e=>es(e)==="[object RegExp]",te=e=>typeof e=="function",we=e=>typeof e=="string",Fo=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Bo=e=>ge(e)&&te(e.then)&&te(e.catch),Vc=Object.prototype.toString,es=e=>Vc.call(e),Hd=e=>es(e).slice(8,-1),Gc=e=>es(e)==="[object Object]",Uo=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Tn=No(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Js=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},zd=/-(\w)/g,wt=Js(e=>e.replace(zd,(t,r)=>r?r.toUpperCase():"")),qd=/\B([A-Z])/g,rn=Js(e=>e.replace(qd,"-$1").toLowerCase()),Vs=Js(e=>e.charAt(0).toUpperCase()+e.slice(1)),wi=Js(e=>e?`on${Vs(e)}`:""),Fn=(e,t)=>!Object.is(e,t),On=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Kd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Xc=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let Na;const Gi=()=>Na||(Na=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gs(e){if(Q(e)){const t={};for(let r=0;r{if(r){const n=r.split(Jd);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Je(e){let t="";if(we(e))t=e;else if(Q(e))for(let r=0;rwe(e)?e:e==null?"":Q(e)||ge(e)&&(e.toString===Vc||!te(e.toString))?JSON.stringify(e,Qc,2):String(e),Qc=(e,t)=>t&&t.__v_isRef?Qc(e,t.value):Dr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s])=>(r[`${n} =>`]=s,r),{})}:Jc(t)?{[`Set(${t.size})`]:[...t.values()]}:ge(t)&&!Q(t)&&!Gc(t)?String(t):t;let ct;class Zd{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ct,!t&&ct&&(this.index=(ct.scopes||(ct.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=ct;try{return ct=this,t()}finally{ct=r}}}on(){ct=this}off(){ct=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r{const t=new Set(e);return t.w=0,t.n=0,t},Zc=e=>(e.w&nr)>0,eu=e=>(e.n&nr)>0,rh=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n{(u==="length"||u>=l)&&a.push(c)})}else switch(r!==void 0&&a.push(o.get(r)),t){case"add":Q(e)?Uo(r)&&a.push(o.get("length")):(a.push(o.get(br)),Dr(e)&&a.push(o.get(Yi)));break;case"delete":Q(e)||(a.push(o.get(br)),Dr(e)&&a.push(o.get(Yi)));break;case"set":Dr(e)&&a.push(o.get(br));break}if(a.length===1)a[0]&&Qi(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Qi(Ho(l))}}function Qi(e,t){const r=Q(e)?e:[...e];for(const n of r)n.computed&&Da(n);for(const n of r)n.computed||Da(n)}function Da(e,t){(e!==ft||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function sh(e,t){var r;return(r=Is.get(e))==null?void 0:r.get(t)}const ih=No("__proto__,__v_isRef,__isVue"),nu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Fo)),oh=qo(),ah=qo(!1,!0),lh=qo(!0),Fa=ch();function ch(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=ie(this);for(let i=0,o=this.length;i{e[t]=function(...r){nn();const n=ie(this)[t].apply(this,r);return sn(),n}}),e}function uh(e){const t=ie(this);return He(t,"has",e),t.hasOwnProperty(e)}function qo(e=!1,t=!1){return function(n,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?Oh:lu:t?au:ou).get(n))return n;const o=Q(n);if(!e){if(o&&ae(Fa,s))return Reflect.get(Fa,s,i);if(s==="hasOwnProperty")return uh}const a=Reflect.get(n,s,i);return(Fo(s)?nu.has(s):ih(s))||(e||He(n,"get",s),t)?a:Se(a)?o&&Uo(s)?a:a.value:ge(a)?e?cu(a):xt(a):a}}const fh=su(),dh=su(!0);function su(e=!1){return function(r,n,s,i){let o=r[n];if(xr(o)&&Se(o)&&!Se(s))return!1;if(!e&&(!js(s)&&!xr(s)&&(o=ie(o),s=ie(s)),!Q(r)&&Se(o)&&!Se(s)))return o.value=s,!0;const a=Q(r)&&Uo(n)?Number(n)e,Xs=e=>Reflect.getPrototypeOf(e);function is(e,t,r=!1,n=!1){e=e.__v_raw;const s=ie(e),i=ie(t);r||(t!==i&&He(s,"get",t),He(s,"get",i));const{has:o}=Xs(s),a=n?Ko:r?Vo:Bn;if(o.call(s,t))return a(e.get(t));if(o.call(s,i))return a(e.get(i));e!==s&&e.get(t)}function os(e,t=!1){const r=this.__v_raw,n=ie(r),s=ie(e);return t||(e!==s&&He(n,"has",e),He(n,"has",s)),e===s?r.has(e):r.has(e)||r.has(s)}function as(e,t=!1){return e=e.__v_raw,!t&&He(ie(e),"iterate",br),Reflect.get(e,"size",e)}function Ba(e){e=ie(e);const t=ie(this);return Xs(t).has.call(t,e)||(t.add(e),jt(t,"add",e,e)),this}function Ua(e,t){t=ie(t);const r=ie(this),{has:n,get:s}=Xs(r);let i=n.call(r,e);i||(e=ie(e),i=n.call(r,e));const o=s.call(r,e);return r.set(e,t),i?Fn(t,o)&&jt(r,"set",e,t):jt(r,"add",e,t),this}function Ha(e){const t=ie(this),{has:r,get:n}=Xs(t);let s=r.call(t,e);s||(e=ie(e),s=r.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return s&&jt(t,"delete",e,void 0),i}function za(){const e=ie(this),t=e.size!==0,r=e.clear();return t&&jt(e,"clear",void 0,void 0),r}function ls(e,t){return function(n,s){const i=this,o=i.__v_raw,a=ie(o),l=t?Ko:e?Vo:Bn;return!e&&He(a,"iterate",br),o.forEach((c,u)=>n.call(s,l(c),l(u),i))}}function cs(e,t,r){return function(...n){const s=this.__v_raw,i=ie(s),o=Dr(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=s[e](...n),u=r?Ko:t?Vo:Bn;return!t&&He(i,"iterate",l?Yi:br),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Kt(e){return function(...t){return e==="delete"?!1:this}}function vh(){const e={get(i){return is(this,i)},get size(){return as(this)},has:os,add:Ba,set:Ua,delete:Ha,clear:za,forEach:ls(!1,!1)},t={get(i){return is(this,i,!1,!0)},get size(){return as(this)},has:os,add:Ba,set:Ua,delete:Ha,clear:za,forEach:ls(!1,!0)},r={get(i){return is(this,i,!0)},get size(){return as(this,!0)},has(i){return os.call(this,i,!0)},add:Kt("add"),set:Kt("set"),delete:Kt("delete"),clear:Kt("clear"),forEach:ls(!0,!1)},n={get(i){return is(this,i,!0,!0)},get size(){return as(this,!0)},has(i){return os.call(this,i,!0)},add:Kt("add"),set:Kt("set"),delete:Kt("delete"),clear:Kt("clear"),forEach:ls(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=cs(i,!1,!1),r[i]=cs(i,!0,!1),t[i]=cs(i,!1,!0),n[i]=cs(i,!0,!0)}),[e,r,t,n]}const[bh,_h,wh,xh]=vh();function Wo(e,t){const r=t?e?xh:wh:e?_h:bh;return(n,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(ae(r,s)&&s in n?r:n,s,i)}const kh={get:Wo(!1,!1)},Eh={get:Wo(!1,!0)},Th={get:Wo(!0,!1)},ou=new WeakMap,au=new WeakMap,lu=new WeakMap,Oh=new WeakMap;function Ch(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sh(e){return e.__v_skip||!Object.isExtensible(e)?0:Ch(Hd(e))}function xt(e){return xr(e)?e:Jo(e,!1,iu,kh,ou)}function ts(e){return Jo(e,!1,mh,Eh,au)}function cu(e){return Jo(e,!0,yh,Th,lu)}function Jo(e,t,r,n,s){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=Sh(e);if(o===0)return e;const a=new Proxy(e,o===2?n:r);return s.set(e,a),a}function Fr(e){return xr(e)?Fr(e.__v_raw):!!(e&&e.__v_isReactive)}function xr(e){return!!(e&&e.__v_isReadonly)}function js(e){return!!(e&&e.__v_isShallow)}function uu(e){return Fr(e)||xr(e)}function ie(e){const t=e&&e.__v_raw;return t?ie(t):e}function fu(e){return Ps(e,"__v_skip",!0),e}const Bn=e=>ge(e)?xt(e):e,Vo=e=>ge(e)?cu(e):e;function du(e){Zt&&ft&&(e=ie(e),ru(e.dep||(e.dep=Ho())))}function hu(e,t){e=ie(e);const r=e.dep;r&&Qi(r)}function Se(e){return!!(e&&e.__v_isRef===!0)}function Oe(e){return pu(e,!1)}function Un(e){return pu(e,!0)}function pu(e,t){return Se(e)?e:new Ah(e,t)}class Ah{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ie(t),this._value=r?t:Bn(t)}get value(){return du(this),this._value}set value(t){const r=this.__v_isShallow||js(t)||xr(t);t=r?t:ie(t),Fn(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Bn(t),hu(this))}}function pe(e){return Se(e)?e.value:e}const $h={get:(e,t,r)=>pe(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return Se(s)&&!Se(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function gu(e){return Fr(e)?e:new Proxy(e,$h)}function iO(e){const t=Q(e)?new Array(e.length):{};for(const r in e)t[r]=mu(e,r);return t}class Ph{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return sh(ie(this._object),this._key)}}class Rh{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function yu(e,t,r){return Se(e)?e:te(e)?new Rh(e):ge(e)&&arguments.length>1?mu(e,t,r):Oe(e)}function mu(e,t,r){const n=e[t];return Se(n)?n:new Ph(e,t,r)}class Ih{constructor(t,r,n,s){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new zo(t,()=>{this._dirty||(this._dirty=!0,hu(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const t=ie(this);return du(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function jh(e,t,r=!1){let n,s;const i=te(e);return i?(n=e,s=pt):(n=e.get,s=e.set),new Ih(n,s,i||!s,r)}function er(e,t,r,n){let s;try{s=n?e(...n):e()}catch(i){on(i,t,r)}return s}function nt(e,t,r,n){if(te(e)){const i=er(e,t,r,n);return i&&Bo(i)&&i.catch(o=>{on(o,t,r)}),i}const s=[];for(let i=0;i>>1;zn(Ie[n])_t&&Ie.splice(t,1)}function _u(e){Q(e)?Br.push(...e):(!At||!At.includes(e,e.allowRecurse?hr+1:hr))&&Br.push(e),bu()}function qa(e,t=Hn?_t+1:0){for(;tzn(r)-zn(n)),hr=0;hre.id==null?1/0:e.id,Dh=(e,t)=>{const r=zn(e)-zn(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function wu(e){Zi=!1,Hn=!0,Ie.sort(Dh);const t=pt;try{for(_t=0;_twe(h)?h.trim():h)),f&&(s=r.map(Kd))}let a,l=n[a=wi(t)]||n[a=wi(wt(t))];!l&&i&&(l=n[a=wi(rn(t))]),l&&nt(l,e,6,s);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,nt(c,e,6,s)}}function xu(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(!te(e)){const l=c=>{const u=xu(c,t,!0);u&&(a=!0,Ce(o,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ge(e)&&n.set(e,null),null):(Q(i)?i.forEach(l=>o[l]=null):Ce(o,i),ge(e)&&n.set(e,o),o)}function Qs(e,t){return!e||!Zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,rn(t))||ae(e,t))}let $e=null,Zs=null;function Ns(e){const t=$e;return $e=e,Zs=e&&e.type.__scopeId||null,t}function oO(e){Zs=e}function aO(){Zs=null}function Ve(e,t=$e,r){if(!t||e._n)return e;const n=(...s)=>{n._d&&sl(-1);const i=Ns(t);let o;try{o=e(...s)}finally{Ns(i),n._d&&sl(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function xi(e){const{type:t,vnode:r,proxy:n,withProxy:s,props:i,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:f,data:d,setupState:h,ctx:p,inheritAttrs:v}=e;let x,m;const g=Ns(e);try{if(r.shapeFlag&4){const _=s||n;x=et(u.call(_,_,f,i,h,d,p)),m=l}else{const _=t;x=et(_.length>1?_(i,{attrs:l,slots:a,emit:c}):_(i,null)),m=t.props?l:Uh(l)}}catch(_){An.length=0,on(_,e,1),x=ne(Me)}let E=x;if(m&&v!==!1){const _=Object.keys(m),{shapeFlag:T}=E;_.length&&T&7&&(o&&_.some(Mo)&&(m=Hh(m,o)),E=Lt(E,m))}return r.dirs&&(E=Lt(E),E.dirs=E.dirs?E.dirs.concat(r.dirs):r.dirs),r.transition&&(E.transition=r.transition),x=E,Ns(g),x}function Bh(e){let t;for(let r=0;r{let t;for(const r in e)(r==="class"||r==="style"||Zn(r))&&((t||(t={}))[r]=e[r]);return t},Hh=(e,t)=>{const r={};for(const n in e)(!Mo(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function zh(e,t,r){const{props:n,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Ka(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense,qh={name:"Suspense",__isSuspense:!0,process(e,t,r,n,s,i,o,a,l,c){e==null?Kh(t,r,n,s,i,o,a,l,c):Wh(e,t,r,n,s,o,a,l,c)},hydrate:Jh,create:Yo,normalize:Vh},Eu=qh;function qn(e,t){const r=e.props&&e.props[t];te(r)&&r()}function Kh(e,t,r,n,s,i,o,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=e.suspense=Yo(e,s,n,t,f,r,i,o,a,l);c(null,d.pendingBranch=e.ssContent,f,null,n,d,i,o),d.deps>0?(qn(e,"onPending"),qn(e,"onFallback"),c(null,e.ssFallback,t,r,n,null,i,o),Ur(d,e.ssFallback)):d.resolve(!1,!0)}function Wh(e,t,r,n,s,i,o,a,{p:l,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:x,isHydrating:m}=f;if(v)f.pendingBranch=d,dt(d,v)?(l(v,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():x&&(l(p,h,r,n,s,null,i,o,a),Ur(f,h))):(f.pendingId++,m?(f.isHydrating=!1,f.activeBranch=v):c(v,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),x?(l(null,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():(l(p,h,r,n,s,null,i,o,a),Ur(f,h))):p&&dt(d,p)?(l(p,d,r,n,s,f,i,o,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0&&f.resolve()));else if(p&&dt(d,p))l(p,d,r,n,s,f,i,o,a),Ur(f,d);else if(qn(t,"onPending"),f.pendingBranch=d,f.pendingId++,l(null,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0)f.resolve();else{const{timeout:g,pendingId:E}=f;g>0?setTimeout(()=>{f.pendingId===E&&f.fallback(h)},g):g===0&&f.fallback(h)}}function Yo(e,t,r,n,s,i,o,a,l,c,u=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:v,remove:x}}=c;let m;const g=Gh(e);g&&t!=null&&t.pendingBranch&&(m=t.pendingId,t.deps++);const E=e.props?Xc(e.props.timeout):void 0,_={vnode:e,parent:t,parentComponent:r,isSVG:o,container:n,hiddenContainer:s,anchor:i,deps:0,pendingId:0,timeout:typeof E=="number"?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(T=!1,P=!1){const{vnode:j,activeBranch:O,pendingBranch:M,pendingId:B,effects:H,parentComponent:F,container:K}=_;if(_.isHydrating)_.isHydrating=!1;else if(!T){const L=O&&M.transition&&M.transition.mode==="out-in";L&&(O.transition.afterLeave=()=>{B===_.pendingId&&d(M,K,J,0)});let{anchor:J}=_;O&&(J=p(O),h(O,F,_,!0)),L||d(M,K,J,0)}Ur(_,M),_.pendingBranch=null,_.isInFallback=!1;let w=_.parent,$=!1;for(;w;){if(w.pendingBranch){w.effects.push(...H),$=!0;break}w=w.parent}$||_u(H),_.effects=[],g&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),qn(j,"onResolve")},fallback(T){if(!_.pendingBranch)return;const{vnode:P,activeBranch:j,parentComponent:O,container:M,isSVG:B}=_;qn(P,"onFallback");const H=p(j),F=()=>{_.isInFallback&&(f(null,T,M,H,O,null,B,a,l),Ur(_,T))},K=T.transition&&T.transition.mode==="out-in";K&&(j.transition.afterLeave=F),_.isInFallback=!0,h(j,O,null,!0),K||F()},move(T,P,j){_.activeBranch&&d(_.activeBranch,T,P,j),_.container=T},next(){return _.activeBranch&&p(_.activeBranch)},registerDep(T,P){const j=!!_.pendingBranch;j&&_.deps++;const O=T.vnode.el;T.asyncDep.catch(M=>{on(M,T,0)}).then(M=>{if(T.isUnmounted||_.isUnmounted||_.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:B}=T;io(T,M,!1),O&&(B.el=O);const H=!O&&T.subTree.el;P(T,B,v(O||T.subTree.el),O?null:p(T.subTree),_,o,l),H&&x(H),Xo(T,B.el),j&&--_.deps===0&&_.resolve()})},unmount(T,P){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,r,T,P),_.pendingBranch&&h(_.pendingBranch,r,T,P)}};return _}function Jh(e,t,r,n,s,i,o,a,l){const c=t.suspense=Yo(t,n,r,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),u=l(e,c.pendingBranch=t.ssContent,r,c,i,o);return c.deps===0&&c.resolve(!1,!0),u}function Vh(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=Wa(n?r.default:r),e.ssFallback=n?Wa(r.fallback):ne(Me)}function Wa(e){let t;if(te(e)){const r=Kr&&e._c;r&&(e._d=!1,ve()),e=e(),r&&(e._d=!0,t=tt,Xu())}return Q(e)&&(e=Bh(e)),e=et(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Tu(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):_u(e)}function Ur(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e,s=r.el=t.el;n&&n.subTree===r&&(n.vnode.el=s,Xo(n,s))}function Gh(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Ou(e,t){return Qo(e,null,t)}const us={};function $t(e,t,r){return Qo(e,t,r)}function Qo(e,t,{immediate:r,deep:n,flush:s,onTrack:i,onTrigger:o}=me){var a;const l=th()===((a=Te)==null?void 0:a.scope)?Te:null;let c,u=!1,f=!1;if(Se(e)?(c=()=>e.value,u=js(e)):Fr(e)?(c=()=>e,n=!0):Q(e)?(f=!0,u=e.some(_=>Fr(_)||js(_)),c=()=>e.map(_=>{if(Se(_))return _.value;if(Fr(_))return vr(_);if(te(_))return er(_,l,2)})):te(e)?t?c=()=>er(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return d&&d(),nt(e,l,3,[h])}:c=pt,t&&n){const _=c;c=()=>vr(_())}let d,h=_=>{d=g.onStop=()=>{er(_,l,4)}},p;if(Jr)if(h=pt,t?r&&nt(t,l,3,[c(),f?[]:void 0,h]):c(),s==="sync"){const _=Fp();p=_.__watcherHandles||(_.__watcherHandles=[])}else return pt;let v=f?new Array(e.length).fill(us):us;const x=()=>{if(g.active)if(t){const _=g.run();(n||u||(f?_.some((T,P)=>Fn(T,v[P])):Fn(_,v)))&&(d&&d(),nt(t,l,3,[_,v===us?void 0:f&&v[0]===us?[]:v,h]),v=_)}else g.run()};x.allowRecurse=!!t;let m;s==="sync"?m=x:s==="post"?m=()=>Pe(x,l&&l.suspense):(x.pre=!0,l&&(x.id=l.uid),m=()=>Ys(x));const g=new zo(c,m);t?r?x():v=g.run():s==="post"?Pe(g.run.bind(g),l&&l.suspense):g.run();const E=()=>{g.stop(),l&&l.scope&&Do(l.scope.effects,g)};return p&&p.push(E),E}function Xh(e,t,r){const n=this.proxy,s=we(e)?e.includes(".")?Cu(n,e):()=>n[e]:e.bind(n,n);let i;te(t)?i=t:(i=t.handler,r=t);const o=Te;sr(this);const a=Qo(s,i.bind(n),r);return o?sr(o):rr(),a}function Cu(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;s{vr(r,t)});else if(Gc(e))for(const r in e)vr(e[r],t);return e}function lO(e,t){const r=$e;if(r===null)return e;const n=ri(r)||r.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),ln(()=>{e.isUnmounting=!0}),e}const Qe=[Function,Array],Su={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qe,onEnter:Qe,onAfterEnter:Qe,onEnterCancelled:Qe,onBeforeLeave:Qe,onLeave:Qe,onAfterLeave:Qe,onLeaveCancelled:Qe,onBeforeAppear:Qe,onAppear:Qe,onAfterAppear:Qe,onAppearCancelled:Qe},Qh={name:"BaseTransition",props:Su,setup(e,{slots:t}){const r=or(),n=Yh();let s;return()=>{const i=t.default&&$u(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const v of i)if(v.type!==Me){o=v;break}}const a=ie(e),{mode:l}=a;if(n.isLeaving)return ki(o);const c=Ja(o);if(!c)return ki(o);const u=eo(c,a,n,r);Ms(c,u);const f=r.subTree,d=f&&Ja(f);let h=!1;const{getTransitionKey:p}=c.type;if(p){const v=p();s===void 0?s=v:v!==s&&(s=v,h=!0)}if(d&&d.type!==Me&&(!dt(c,d)||h)){const v=eo(d,a,n,r);if(Ms(d,v),l==="out-in")return n.isLeaving=!0,v.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},ki(o);l==="in-out"&&c.type!==Me&&(v.delayLeave=(x,m,g)=>{const E=Au(n,d);E[String(d.key)]=d,x._leaveCb=()=>{m(),x._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=g})}return o}}},Zh=Qh;function Au(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 eo(e,t,r,n){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:v,onAppear:x,onAfterAppear:m,onAppearCancelled:g}=t,E=String(e.key),_=Au(r,e),T=(O,M)=>{O&&nt(O,n,9,M)},P=(O,M)=>{const B=M[1];T(O,M),Q(O)?O.every(H=>H.length<=1)&&B():O.length<=1&&B()},j={mode:i,persisted:o,beforeEnter(O){let M=a;if(!r.isMounted)if(s)M=v||a;else return;O._leaveCb&&O._leaveCb(!0);const B=_[E];B&&dt(e,B)&&B.el._leaveCb&&B.el._leaveCb(),T(M,[O])},enter(O){let M=l,B=c,H=u;if(!r.isMounted)if(s)M=x||l,B=m||c,H=g||u;else return;let F=!1;const K=O._enterCb=w=>{F||(F=!0,w?T(H,[O]):T(B,[O]),j.delayedLeave&&j.delayedLeave(),O._enterCb=void 0)};M?P(M,[O,K]):K()},leave(O,M){const B=String(e.key);if(O._enterCb&&O._enterCb(!0),r.isUnmounting)return M();T(f,[O]);let H=!1;const F=O._leaveCb=K=>{H||(H=!0,M(),K?T(p,[O]):T(h,[O]),O._leaveCb=void 0,_[B]===e&&delete _[B])};_[B]=e,d?P(d,[O,F]):F()},clone(O){return eo(O,t,r,n)}};return j}function ki(e){if(rs(e))return e=Lt(e),e.children=null,e}function Ja(e){return rs(e)?e.children?e.children[0]:void 0:e}function Ms(e,t){e.shapeFlag&6&&e.component?Ms(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 $u(e,t=!1,r){let n=[],s=0;for(let i=0;i1)for(let i=0;iCe({name:e.name},t,{setup:e}))():e}const _r=e=>!!e.type.__asyncLoader;function Va(e){te(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:s=200,timeout:i,suspensible:o=!0,onError:a}=e;let l=null,c,u=0;const f=()=>(u++,l=null,d()),d=()=>{let h;return l||(h=l=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),a)return new Promise((v,x)=>{a(p,()=>v(f()),()=>x(p),u+1)});throw p}).then(p=>h!==l&&l?l:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),c=p,p)))};return Ye({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const h=Te;if(c)return()=>Ei(c,h);const p=g=>{l=null,on(g,h,13,!n)};if(o&&h.suspense||Jr)return d().then(g=>()=>Ei(g,h)).catch(g=>(p(g),()=>n?ne(n,{error:g}):null));const v=Oe(!1),x=Oe(),m=Oe(!!s);return s&&setTimeout(()=>{m.value=!1},s),i!=null&&setTimeout(()=>{if(!v.value&&!x.value){const g=new Error(`Async component timed out after ${i}ms.`);p(g),x.value=g}},i),d().then(()=>{v.value=!0,h.parent&&rs(h.parent.vnode)&&Ys(h.parent.update)}).catch(g=>{p(g),x.value=g}),()=>{if(v.value&&c)return Ei(c,h);if(x.value&&n)return ne(n,{error:x.value});if(r&&!m.value)return ne(r)}}})}function Ei(e,t){const{ref:r,props:n,children:s,ce:i}=t.vnode,o=ne(e,n,s);return o.ref=r,o.ce=i,delete t.vnode.ce,o}const rs=e=>e.type.__isKeepAlive,ep={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=or(),n=r.ctx;if(!n.renderer)return()=>{const g=t.default&&t.default();return g&&g.length===1?g[0]:g};const s=new Map,i=new Set;let o=null;const a=r.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=n,d=f("div");n.activate=(g,E,_,T,P)=>{const j=g.component;c(g,E,_,0,a),l(j.vnode,g,E,_,j,a,T,g.slotScopeIds,P),Pe(()=>{j.isDeactivated=!1,j.a&&On(j.a);const O=g.props&&g.props.onVnodeMounted;O&&Be(O,j.parent,g)},a)},n.deactivate=g=>{const E=g.component;c(g,d,null,1,a),Pe(()=>{E.da&&On(E.da);const _=g.props&&g.props.onVnodeUnmounted;_&&Be(_,E.parent,g),E.isDeactivated=!0},a)};function h(g){Ti(g),u(g,r,a,!0)}function p(g){s.forEach((E,_)=>{const T=oo(E.type);T&&(!g||!g(T))&&v(_)})}function v(g){const E=s.get(g);!o||!dt(E,o)?h(E):o&&Ti(o),s.delete(g),i.delete(g)}$t(()=>[e.include,e.exclude],([g,E])=>{g&&p(_=>xn(g,_)),E&&p(_=>!xn(E,_))},{flush:"post",deep:!0});let x=null;const m=()=>{x!=null&&s.set(x,Oi(r.subTree))};return an(m),ju(m),ln(()=>{s.forEach(g=>{const{subTree:E,suspense:_}=r,T=Oi(E);if(g.type===T.type&&g.key===T.key){Ti(T);const P=T.component.da;P&&Pe(P,_);return}h(g)})}),()=>{if(x=null,!t.default)return null;const g=t.default(),E=g[0];if(g.length>1)return o=null,g;if(!Wr(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return o=null,E;let _=Oi(E);const T=_.type,P=oo(_r(_)?_.type.__asyncResolved||{}:T),{include:j,exclude:O,max:M}=e;if(j&&(!P||!xn(j,P))||O&&P&&xn(O,P))return o=_,E;const B=_.key==null?T:_.key,H=s.get(B);return _.el&&(_=Lt(_),E.shapeFlag&128&&(E.ssContent=_)),x=B,H?(_.el=H.el,_.component=H.component,_.transition&&Ms(_,_.transition),_.shapeFlag|=512,i.delete(B),i.add(B)):(i.add(B),M&&i.size>parseInt(M,10)&&v(i.values().next().value)),_.shapeFlag|=256,o=_,ku(E.type)?E:_}}},tp=ep;function xn(e,t){return Q(e)?e.some(r=>xn(r,t)):we(e)?e.split(",").includes(t):Ud(e)?e.test(t):!1}function Pu(e,t){Iu(e,"a",t)}function Ru(e,t){Iu(e,"da",t)}function Iu(e,t,r=Te){const n=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(ei(t,n,r),r){let s=r.parent;for(;s&&s.parent;)rs(s.parent.vnode)&&rp(n,t,r,s),s=s.parent}}function rp(e,t,r,n){const s=ei(t,e,n,!0);Zo(()=>{Do(n[t],s)},r)}function Ti(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Oi(e){return e.shapeFlag&128?e.ssContent:e}function ei(e,t,r=Te,n=!1){if(r){const s=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;nn(),sr(r);const a=nt(t,r,e,o);return rr(),sn(),a});return n?s.unshift(i):s.push(i),i}}const Ft=e=>(t,r=Te)=>(!Jr||e==="sp")&&ei(e,(...n)=>t(...n),r),np=Ft("bm"),an=Ft("m"),sp=Ft("bu"),ju=Ft("u"),ln=Ft("bum"),Zo=Ft("um"),ip=Ft("sp"),op=Ft("rtg"),ap=Ft("rtc");function Lu(e,t=Te){ei("ec",e,t)}const ea="components";function lp(e,t){return Du(ea,e,!0,t)||e}const Nu=Symbol.for("v-ndc");function Mu(e){return we(e)?Du(ea,e,!1)||e:e||Nu}function Du(e,t,r=!0,n=!1){const s=$e||Te;if(s){const i=s.type;if(e===ea){const a=oo(i,!1);if(a&&(a===t||a===wt(t)||a===Vs(wt(t))))return i}const o=Ga(s[e]||i[e],t)||Ga(s.appContext[e],t);return!o&&n?i:o}}function Ga(e,t){return e&&(e[t]||e[wt(t)]||e[Vs(wt(t))])}function cp(e,t,r,n){let s;const i=r&&r[n];if(Q(e)||we(e)){s=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,i&&i[a]));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,l=o.length;aWr(t)?!(t.type===Me||t.type===Ne&&!Fu(t.children)):!0)?e:null}const to=e=>e?ef(e)?ri(e)||e.proxy:to(e.parent):null,Cn=Ce(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=>to(e.parent),$root:e=>to(e.root),$emit:e=>e.emit,$options:e=>ta(e),$forceUpdate:e=>e.f||(e.f=()=>Ys(e.update)),$nextTick:e=>e.n||(e.n=Or.bind(e.proxy)),$watch:e=>Xh.bind(e)}),Ci=(e,t)=>e!==me&&!e.__isScriptSetup&&ae(e,t),up={get({_:e},t){const{ctx:r,setupState:n,data:s,props:i,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return s[t];case 4:return r[t];case 3:return i[t]}else{if(Ci(n,t))return o[t]=1,n[t];if(s!==me&&ae(s,t))return o[t]=2,s[t];if((c=e.propsOptions[0])&&ae(c,t))return o[t]=3,i[t];if(r!==me&&ae(r,t))return o[t]=4,r[t];ro&&(o[t]=0)}}const u=Cn[t];let f,d;if(u)return t==="$attrs"&&He(e,"get",t),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(r!==me&&ae(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,ae(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:s,ctx:i}=e;return Ci(s,t)?(s[t]=r,!0):n!==me&&ae(n,t)?(n[t]=r,!0):ae(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!==me&&ae(e,o)||Ci(t,o)||(a=i[0])&&ae(a,o)||ae(n,o)||ae(Cn,o)||ae(s.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ae(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function fp(){return dp().slots}function dp(){const e=or();return e.setupContext||(e.setupContext=rf(e))}function Xa(e){return Q(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function cO(e){const t=or();let r=e();return rr(),Bo(r)&&(r=r.catch(n=>{throw sr(t),n})),[r,()=>sr(t)]}let ro=!0;function hp(e){const t=ta(e),r=e.proxy,n=e.ctx;ro=!1,t.beforeCreate&&Ya(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:v,deactivated:x,beforeDestroy:m,beforeUnmount:g,destroyed:E,unmounted:_,render:T,renderTracked:P,renderTriggered:j,errorCaptured:O,serverPrefetch:M,expose:B,inheritAttrs:H,components:F,directives:K,filters:w}=t;if(c&&pp(c,n,null),o)for(const J in o){const Y=o[J];te(Y)&&(n[J]=Y.bind(r))}if(s){const J=s.call(r,r);ge(J)&&(e.data=xt(J))}if(ro=!0,i)for(const J in i){const Y=i[J],ee=te(Y)?Y.bind(r,r):te(Y.get)?Y.get.bind(r,r):pt,Ae=!te(Y)&&te(Y.set)?Y.set.bind(r):pt,ke=ue({get:ee,set:Ae});Object.defineProperty(n,J,{enumerable:!0,configurable:!0,get:()=>ke.value,set:_e=>ke.value=_e})}if(a)for(const J in a)Bu(a[J],n,r,J);if(l){const J=te(l)?l.call(r):l;Reflect.ownKeys(J).forEach(Y=>{Hr(Y,J[Y])})}u&&Ya(u,e,"c");function L(J,Y){Q(Y)?Y.forEach(ee=>J(ee.bind(r))):Y&&J(Y.bind(r))}if(L(np,f),L(an,d),L(sp,h),L(ju,p),L(Pu,v),L(Ru,x),L(Lu,O),L(ap,P),L(op,j),L(ln,g),L(Zo,_),L(ip,M),Q(B))if(B.length){const J=e.exposed||(e.exposed={});B.forEach(Y=>{Object.defineProperty(J,Y,{get:()=>r[Y],set:ee=>r[Y]=ee})})}else e.exposed||(e.exposed={});T&&e.render===pt&&(e.render=T),H!=null&&(e.inheritAttrs=H),F&&(e.components=F),K&&(e.directives=K)}function pp(e,t,r=pt){Q(e)&&(e=no(e));for(const n in e){const s=e[n];let i;ge(s)?"default"in s?i=Ge(s.from||n,s.default,!0):i=Ge(s.from||n):i=Ge(s),Se(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function Ya(e,t,r){nt(Q(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Bu(e,t,r,n){const s=n.includes(".")?Cu(r,n):()=>r[n];if(we(e)){const i=t[e];te(i)&&$t(s,i)}else if(te(e))$t(s,e.bind(r));else if(ge(e))if(Q(e))e.forEach(i=>Bu(i,t,r,n));else{const i=te(e.handler)?e.handler.bind(r):t[e.handler];te(i)&&$t(s,i,e)}}function ta(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!r&&!n?l=t:(l={},s.length&&s.forEach(c=>Ds(l,c,o,!0)),Ds(l,t,o)),ge(t)&&i.set(t,l),l}function Ds(e,t,r,n=!1){const{mixins:s,extends:i}=t;i&&Ds(e,i,r,!0),s&&s.forEach(o=>Ds(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const a=gp[o]||r&&r[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const gp={data:Qa,props:Za,emits:Za,methods:kn,computed:kn,beforeCreate:je,created:je,beforeMount:je,mounted:je,beforeUpdate:je,updated:je,beforeDestroy:je,beforeUnmount:je,destroyed:je,unmounted:je,activated:je,deactivated:je,errorCaptured:je,serverPrefetch:je,components:kn,directives:kn,watch:mp,provide:Qa,inject:yp};function Qa(e,t){return t?e?function(){return Ce(te(e)?e.call(this,this):e,te(t)?t.call(this,this):t)}:t:e}function yp(e,t){return kn(no(e),no(t))}function no(e){if(Q(e)){const t={};for(let r=0;r1)return r&&te(t)?t.call(n&&n.proxy):t}}function Hu(){return!!(Te||$e||Kn)}function _p(e,t,r,n=!1){const s={},i={};Ps(i,ti,1),e.propsDefaults=Object.create(null),zu(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);r?e.props=n?s:ts(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function wp(e,t,r,n){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=ie(s),[l]=e.propsOptions;let c=!1;if((n||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,h]=qu(f,t,!0);Ce(o,d),h&&a.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return ge(e)&&n.set(e,Mr),Mr;if(Q(i))for(let u=0;u-1,h[1]=v<0||p-1||ae(h,"default"))&&a.push(f)}}}const c=[o,a];return ge(e)&&n.set(e,c),c}function el(e){return e[0]!=="$"}function tl(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function rl(e,t){return tl(e)===tl(t)}function nl(e,t){return Q(t)?t.findIndex(r=>rl(r,e)):te(t)&&rl(t,e)?0:-1}const Ku=e=>e[0]==="_"||e==="$stable",ra=e=>Q(e)?e.map(et):[et(e)],xp=(e,t,r)=>{if(t._n)return t;const n=Ve((...s)=>ra(t(...s)),r);return n._c=!1,n},Wu=(e,t,r)=>{const n=e._ctx;for(const s in e){if(Ku(s))continue;const i=e[s];if(te(i))t[s]=xp(s,i,n);else if(i!=null){const o=ra(i);t[s]=()=>o}}},Ju=(e,t)=>{const r=ra(t);e.slots.default=()=>r},kp=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=ie(t),Ps(t,"_",r)):Wu(t,e.slots={})}else e.slots={},t&&Ju(e,t);Ps(e.slots,ti,1)},Ep=(e,t,r)=>{const{vnode:n,slots:s}=e;let i=!0,o=me;if(n.shapeFlag&32){const a=t._;a?r&&a===1?i=!1:(Ce(s,t),!r&&a===1&&delete s._):(i=!t.$stable,Wu(t,s)),o=t}else t&&(Ju(e,t),o={default:1});if(i)for(const a in s)!Ku(a)&&!(a in o)&&delete s[a]};function Fs(e,t,r,n,s=!1){if(Q(e)){e.forEach((d,h)=>Fs(d,t&&(Q(t)?t[h]:t),r,n,s));return}if(_r(n)&&!s)return;const i=n.shapeFlag&4?ri(n.component)||n.component.proxy:n.el,o=s?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===me?a.refs={}:a.refs,f=a.setupState;if(c!=null&&c!==l&&(we(c)?(u[c]=null,ae(f,c)&&(f[c]=null)):Se(c)&&(c.value=null)),te(l))er(l,a,12,[o,u]);else{const d=we(l),h=Se(l);if(d||h){const p=()=>{if(e.f){const v=d?ae(f,l)?f[l]:u[l]:l.value;s?Q(v)&&Do(v,i):Q(v)?v.includes(i)||v.push(i):d?(u[l]=[i],ae(f,l)&&(f[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else d?(u[l]=o,ae(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(u[e.k]=o))};o?(p.id=-1,Pe(p,r)):p()}}}let Wt=!1;const fs=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",ds=e=>e.nodeType===8;function Tp(e){const{mt:t,p:r,o:{patchProp:n,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:c}}=e,u=(m,g)=>{if(!g.hasChildNodes()){r(null,m,g),Ls(),g._vnode=m;return}Wt=!1,f(g.firstChild,m,null,null,null),Ls(),g._vnode=m,Wt&&console.error("Hydration completed but contains mismatches.")},f=(m,g,E,_,T,P=!1)=>{const j=ds(m)&&m.data==="[",O=()=>v(m,g,E,_,T,j),{type:M,ref:B,shapeFlag:H,patchFlag:F}=g;let K=m.nodeType;g.el=m,F===-2&&(P=!1,g.dynamicChildren=null);let w=null;switch(M){case qr:K!==3?g.children===""?(l(g.el=s(""),o(m),m),w=m):w=O():(m.data!==g.children&&(Wt=!0,m.data=g.children),w=i(m));break;case Me:K!==8||j?w=O():w=i(m);break;case Sn:if(j&&(m=i(m),K=m.nodeType),K===1||K===3){w=m;const $=!g.children.length;for(let L=0;L{P=P||!!g.dynamicChildren;const{type:j,props:O,patchFlag:M,shapeFlag:B,dirs:H}=g,F=j==="input"&&H||j==="option";if(F||M!==-1){if(H&&bt(g,null,E,"created"),O)if(F||!P||M&48)for(const w in O)(F&&w.endsWith("value")||Zn(w)&&!Tn(w))&&n(m,w,null,O[w],!1,void 0,E);else O.onClick&&n(m,"onClick",null,O.onClick,!1,void 0,E);let K;if((K=O&&O.onVnodeBeforeMount)&&Be(K,E,g),H&&bt(g,null,E,"beforeMount"),((K=O&&O.onVnodeMounted)||H)&&Tu(()=>{K&&Be(K,E,g),H&&bt(g,null,E,"mounted")},_),B&16&&!(O&&(O.innerHTML||O.textContent))){let w=h(m.firstChild,g,m,E,_,T,P);for(;w;){Wt=!0;const $=w;w=w.nextSibling,a($)}}else B&8&&m.textContent!==g.children&&(Wt=!0,m.textContent=g.children)}return m.nextSibling},h=(m,g,E,_,T,P,j)=>{j=j||!!g.dynamicChildren;const O=g.children,M=O.length;for(let B=0;B{const{slotScopeIds:j}=g;j&&(T=T?T.concat(j):j);const O=o(m),M=h(i(m),g,O,E,_,T,P);return M&&ds(M)&&M.data==="]"?i(g.anchor=M):(Wt=!0,l(g.anchor=c("]"),O,M),M)},v=(m,g,E,_,T,P)=>{if(Wt=!0,g.el=null,P){const M=x(m);for(;;){const B=i(m);if(B&&B!==M)a(B);else break}}const j=i(m),O=o(m);return a(m),r(null,g,O,j,E,_,fs(O),T),j},x=m=>{let g=0;for(;m;)if(m=i(m),m&&ds(m)&&(m.data==="["&&g++,m.data==="]")){if(g===0)return i(m);g--}return m};return[u,f]}const Pe=Tu;function Op(e){return Vu(e)}function Cp(e){return Vu(e,Tp)}function Vu(e,t){const r=Gi();r.__VUE__=!0;const{insert:n,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=pt,insertStaticContent:p}=e,v=(y,b,k,C=null,A=null,R=null,q=!1,N=null,D=!!b.dynamicChildren)=>{if(y===b)return;y&&!dt(y,b)&&(C=S(y),_e(y,A,R,!0),y=null),b.patchFlag===-2&&(D=!1,b.dynamicChildren=null);const{type:I,ref:X,shapeFlag:W}=b;switch(I){case qr:x(y,b,k,C);break;case Me:m(y,b,k,C);break;case Sn:y==null&&g(b,k,C,q);break;case Ne:F(y,b,k,C,A,R,q,N,D);break;default:W&1?T(y,b,k,C,A,R,q,N,D):W&6?K(y,b,k,C,A,R,q,N,D):(W&64||W&128)&&I.process(y,b,k,C,A,R,q,N,D,U)}X!=null&&A&&Fs(X,y&&y.ref,R,b||y,!b)},x=(y,b,k,C)=>{if(y==null)n(b.el=a(b.children),k,C);else{const A=b.el=y.el;b.children!==y.children&&c(A,b.children)}},m=(y,b,k,C)=>{y==null?n(b.el=l(b.children||""),k,C):b.el=y.el},g=(y,b,k,C)=>{[y.el,y.anchor]=p(y.children,b,k,C,y.el,y.anchor)},E=({el:y,anchor:b},k,C)=>{let A;for(;y&&y!==b;)A=d(y),n(y,k,C),y=A;n(b,k,C)},_=({el:y,anchor:b})=>{let k;for(;y&&y!==b;)k=d(y),s(y),y=k;s(b)},T=(y,b,k,C,A,R,q,N,D)=>{q=q||b.type==="svg",y==null?P(b,k,C,A,R,q,N,D):M(y,b,A,R,q,N,D)},P=(y,b,k,C,A,R,q,N)=>{let D,I;const{type:X,props:W,shapeFlag:G,transition:Z,dirs:re}=y;if(D=y.el=o(y.type,R,W&&W.is,W),G&8?u(D,y.children):G&16&&O(y.children,D,null,C,A,R&&X!=="foreignObject",q,N),re&&bt(y,null,C,"created"),j(D,y,y.scopeId,q,C),W){for(const le in W)le!=="value"&&!Tn(le)&&i(D,le,null,W[le],R,y.children,C,A,xe);"value"in W&&i(D,"value",null,W.value),(I=W.onVnodeBeforeMount)&&Be(I,C,y)}re&&bt(y,null,C,"beforeMount");const fe=(!A||A&&!A.pendingBranch)&&Z&&!Z.persisted;fe&&Z.beforeEnter(D),n(D,b,k),((I=W&&W.onVnodeMounted)||fe||re)&&Pe(()=>{I&&Be(I,C,y),fe&&Z.enter(D),re&&bt(y,null,C,"mounted")},A)},j=(y,b,k,C,A)=>{if(k&&h(y,k),C)for(let R=0;R{for(let I=D;I{const N=b.el=y.el;let{patchFlag:D,dynamicChildren:I,dirs:X}=b;D|=y.patchFlag&16;const W=y.props||me,G=b.props||me;let Z;k&&lr(k,!1),(Z=G.onVnodeBeforeUpdate)&&Be(Z,k,b,y),X&&bt(b,y,k,"beforeUpdate"),k&&lr(k,!0);const re=A&&b.type!=="foreignObject";if(I?B(y.dynamicChildren,I,N,k,C,re,R):q||Y(y,b,N,null,k,C,re,R,!1),D>0){if(D&16)H(N,b,W,G,k,C,A);else if(D&2&&W.class!==G.class&&i(N,"class",null,G.class,A),D&4&&i(N,"style",W.style,G.style,A),D&8){const fe=b.dynamicProps;for(let le=0;le{Z&&Be(Z,k,b,y),X&&bt(b,y,k,"updated")},C)},B=(y,b,k,C,A,R,q)=>{for(let N=0;N{if(k!==C){if(k!==me)for(const N in k)!Tn(N)&&!(N in C)&&i(y,N,k[N],null,q,b.children,A,R,xe);for(const N in C){if(Tn(N))continue;const D=C[N],I=k[N];D!==I&&N!=="value"&&i(y,N,I,D,q,b.children,A,R,xe)}"value"in C&&i(y,"value",k.value,C.value)}},F=(y,b,k,C,A,R,q,N,D)=>{const I=b.el=y?y.el:a(""),X=b.anchor=y?y.anchor:a("");let{patchFlag:W,dynamicChildren:G,slotScopeIds:Z}=b;Z&&(N=N?N.concat(Z):Z),y==null?(n(I,k,C),n(X,k,C),O(b.children,k,X,A,R,q,N,D)):W>0&&W&64&&G&&y.dynamicChildren?(B(y.dynamicChildren,G,k,A,R,q,N),(b.key!=null||A&&b===A.subTree)&&Gu(y,b,!0)):Y(y,b,k,X,A,R,q,N,D)},K=(y,b,k,C,A,R,q,N,D)=>{b.slotScopeIds=N,y==null?b.shapeFlag&512?A.ctx.activate(b,k,C,q,D):w(b,k,C,A,R,q,D):$(y,b,D)},w=(y,b,k,C,A,R,q)=>{const N=y.component=Ip(y,C,A);if(rs(y)&&(N.ctx.renderer=U),jp(N),N.asyncDep){if(A&&A.registerDep(N,L),!y.el){const D=N.subTree=ne(Me);m(null,D,b,k)}return}L(N,y,b,k,A,R,q)},$=(y,b,k)=>{const C=b.component=y.component;if(zh(y,b,k))if(C.asyncDep&&!C.asyncResolved){J(C,b,k);return}else C.next=b,Mh(C.update),C.update();else b.el=y.el,C.vnode=b},L=(y,b,k,C,A,R,q)=>{const N=()=>{if(y.isMounted){let{next:X,bu:W,u:G,parent:Z,vnode:re}=y,fe=X,le;lr(y,!1),X?(X.el=re.el,J(y,X,q)):X=re,W&&On(W),(le=X.props&&X.props.onVnodeBeforeUpdate)&&Be(le,Z,X,re),lr(y,!0);const Ee=xi(y),lt=y.subTree;y.subTree=Ee,v(lt,Ee,f(lt.el),S(lt),y,A,R),X.el=Ee.el,fe===null&&Xo(y,Ee.el),G&&Pe(G,A),(le=X.props&&X.props.onVnodeUpdated)&&Pe(()=>Be(le,Z,X,re),A)}else{let X;const{el:W,props:G}=b,{bm:Z,m:re,parent:fe}=y,le=_r(b);if(lr(y,!1),Z&&On(Z),!le&&(X=G&&G.onVnodeBeforeMount)&&Be(X,fe,b),lr(y,!0),W&&se){const Ee=()=>{y.subTree=xi(y),se(W,y.subTree,y,A,null)};le?b.type.__asyncLoader().then(()=>!y.isUnmounted&&Ee()):Ee()}else{const Ee=y.subTree=xi(y);v(null,Ee,k,C,y,A,R),b.el=Ee.el}if(re&&Pe(re,A),!le&&(X=G&&G.onVnodeMounted)){const Ee=b;Pe(()=>Be(X,fe,Ee),A)}(b.shapeFlag&256||fe&&_r(fe.vnode)&&fe.vnode.shapeFlag&256)&&y.a&&Pe(y.a,A),y.isMounted=!0,b=k=C=null}},D=y.effect=new zo(N,()=>Ys(I),y.scope),I=y.update=()=>D.run();I.id=y.uid,lr(y,!0),I()},J=(y,b,k)=>{b.component=y;const C=y.vnode.props;y.vnode=b,y.next=null,wp(y,b.props,C,k),Ep(y,b.children,k),nn(),qa(),sn()},Y=(y,b,k,C,A,R,q,N,D=!1)=>{const I=y&&y.children,X=y?y.shapeFlag:0,W=b.children,{patchFlag:G,shapeFlag:Z}=b;if(G>0){if(G&128){Ae(I,W,k,C,A,R,q,N,D);return}else if(G&256){ee(I,W,k,C,A,R,q,N,D);return}}Z&8?(X&16&&xe(I,A,R),W!==I&&u(k,W)):X&16?Z&16?Ae(I,W,k,C,A,R,q,N,D):xe(I,A,R,!0):(X&8&&u(k,""),Z&16&&O(W,k,C,A,R,q,N,D))},ee=(y,b,k,C,A,R,q,N,D)=>{y=y||Mr,b=b||Mr;const I=y.length,X=b.length,W=Math.min(I,X);let G;for(G=0;GX?xe(y,A,R,!0,!1,W):O(b,k,C,A,R,q,N,D,W)},Ae=(y,b,k,C,A,R,q,N,D)=>{let I=0;const X=b.length;let W=y.length-1,G=X-1;for(;I<=W&&I<=G;){const Z=y[I],re=b[I]=D?Xt(b[I]):et(b[I]);if(dt(Z,re))v(Z,re,k,null,A,R,q,N,D);else break;I++}for(;I<=W&&I<=G;){const Z=y[W],re=b[G]=D?Xt(b[G]):et(b[G]);if(dt(Z,re))v(Z,re,k,null,A,R,q,N,D);else break;W--,G--}if(I>W){if(I<=G){const Z=G+1,re=ZG)for(;I<=W;)_e(y[I],A,R,!0),I++;else{const Z=I,re=I,fe=new Map;for(I=re;I<=G;I++){const Ke=b[I]=D?Xt(b[I]):et(b[I]);Ke.key!=null&&fe.set(Ke.key,I)}let le,Ee=0;const lt=G-re+1;let $r=!1,Ia=0;const dn=new Array(lt);for(I=0;I=lt){_e(Ke,A,R,!0);continue}let mt;if(Ke.key!=null)mt=fe.get(Ke.key);else for(le=re;le<=G;le++)if(dn[le-re]===0&&dt(Ke,b[le])){mt=le;break}mt===void 0?_e(Ke,A,R,!0):(dn[mt-re]=I+1,mt>=Ia?Ia=mt:$r=!0,v(Ke,b[mt],k,null,A,R,q,N,D),Ee++)}const ja=$r?Sp(dn):Mr;for(le=ja.length-1,I=lt-1;I>=0;I--){const Ke=re+I,mt=b[Ke],La=Ke+1{const{el:R,type:q,transition:N,children:D,shapeFlag:I}=y;if(I&6){ke(y.component.subTree,b,k,C);return}if(I&128){y.suspense.move(b,k,C);return}if(I&64){q.move(y,b,k,U);return}if(q===Ne){n(R,b,k);for(let W=0;WN.enter(R),A);else{const{leave:W,delayLeave:G,afterLeave:Z}=N,re=()=>n(R,b,k),fe=()=>{W(R,()=>{re(),Z&&Z()})};G?G(R,re,fe):fe()}else n(R,b,k)},_e=(y,b,k,C=!1,A=!1)=>{const{type:R,props:q,ref:N,children:D,dynamicChildren:I,shapeFlag:X,patchFlag:W,dirs:G}=y;if(N!=null&&Fs(N,null,k,y,!0),X&256){b.ctx.deactivate(y);return}const Z=X&1&&G,re=!_r(y);let fe;if(re&&(fe=q&&q.onVnodeBeforeUnmount)&&Be(fe,b,y),X&6)qe(y.component,k,C);else{if(X&128){y.suspense.unmount(k,C);return}Z&&bt(y,null,b,"beforeUnmount"),X&64?y.type.remove(y,b,k,A,U,C):I&&(R!==Ne||W>0&&W&64)?xe(I,b,k,!1,!0):(R===Ne&&W&384||!A&&X&16)&&xe(D,b,k),C&&at(y)}(re&&(fe=q&&q.onVnodeUnmounted)||Z)&&Pe(()=>{fe&&Be(fe,b,y),Z&&bt(y,null,b,"unmounted")},k)},at=y=>{const{type:b,el:k,anchor:C,transition:A}=y;if(b===Ne){ze(k,C);return}if(b===Sn){_(y);return}const R=()=>{s(k),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(y.shapeFlag&1&&A&&!A.persisted){const{leave:q,delayLeave:N}=A,D=()=>q(k,R);N?N(y.el,R,D):D()}else R()},ze=(y,b)=>{let k;for(;y!==b;)k=d(y),s(y),y=k;s(b)},qe=(y,b,k)=>{const{bum:C,scope:A,update:R,subTree:q,um:N}=y;C&&On(C),A.stop(),R&&(R.active=!1,_e(q,y,b,k)),N&&Pe(N,b),Pe(()=>{y.isUnmounted=!0},b),b&&b.pendingBranch&&!b.isUnmounted&&y.asyncDep&&!y.asyncResolved&&y.suspenseId===b.pendingId&&(b.deps--,b.deps===0&&b.resolve())},xe=(y,b,k,C=!1,A=!1,R=0)=>{for(let q=R;qy.shapeFlag&6?S(y.component.subTree):y.shapeFlag&128?y.suspense.next():d(y.anchor||y.el),z=(y,b,k)=>{y==null?b._vnode&&_e(b._vnode,null,null,!0):v(b._vnode||null,y,b,null,null,null,k),qa(),Ls(),b._vnode=y},U={p:v,um:_e,m:ke,r:at,mt:w,mc:O,pc:Y,pbc:B,n:S,o:e};let V,se;return t&&([V,se]=t(U)),{render:z,hydrate:V,createApp:bp(z,V)}}function lr({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function Gu(e,t,r=!1){const n=e.children,s=t.children;if(Q(n)&&Q(s))for(let i=0;i>1,e[r[a]]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}const Ap=e=>e.__isTeleport,Ne=Symbol.for("v-fgt"),qr=Symbol.for("v-txt"),Me=Symbol.for("v-cmt"),Sn=Symbol.for("v-stc"),An=[];let tt=null;function ve(e=!1){An.push(tt=e?null:[])}function Xu(){An.pop(),tt=An[An.length-1]||null}let Kr=1;function sl(e){Kr+=e}function Yu(e){return e.dynamicChildren=Kr>0?tt||Mr:null,Xu(),Kr>0&&tt&&tt.push(e),e}function ht(e,t,r,n,s,i){return Yu(Pt(e,t,r,n,s,i,!0))}function Ue(e,t,r,n,s){return Yu(ne(e,t,r,n,s,!0))}function Wr(e){return e?e.__v_isVNode===!0:!1}function dt(e,t){return e.type===t.type&&e.key===t.key}const ti="__vInternal",Qu=({key:e})=>e??null,Os=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Se(e)||te(e)?{i:$e,r:e,k:t,f:!!r}:e:null);function Pt(e,t=null,r=null,n=0,s=null,i=e===Ne?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qu(t),ref:t&&Os(t),scopeId:Zs,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:$e};return a?(na(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=we(r)?8:16),Kr>0&&!o&&tt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&tt.push(l),l}const ne=$p;function $p(e,t=null,r=null,n=0,s=null,i=!1){if((!e||e===Nu)&&(e=Me),Wr(e)){const a=Lt(e,t,!0);return r&&na(a,r),Kr>0&&!i&&tt&&(a.shapeFlag&6?tt[tt.indexOf(e)]=a:tt.push(a)),a.patchFlag|=-2,a}if(Mp(e)&&(e=e.__vccOpts),t){t=Zu(t);let{class:a,style:l}=t;a&&!we(a)&&(t.class=Je(a)),ge(l)&&(uu(l)&&!Q(l)&&(l=Ce({},l)),t.style=Gs(l))}const o=we(e)?1:ku(e)?128:Ap(e)?64:ge(e)?4:te(e)?2:0;return Pt(e,t,r,n,s,o,i,!0)}function Zu(e){return e?uu(e)||ti in e?Ce({},e):e:null}function Lt(e,t,r=!1){const{props:n,ref:s,patchFlag:i,children:o}=e,a=t?sa(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Qu(a),ref:t&&t.ref?r&&s?Q(s)?s.concat(Os(t)):[s,Os(t)]:Os(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Lt(e.ssContent),ssFallback:e.ssFallback&&Lt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function zr(e=" ",t=0){return ne(qr,null,e,t)}function uO(e,t){const r=ne(Sn,null,e);return r.staticCount=t,r}function $n(e="",t=!1){return t?(ve(),Ue(Me,null,e)):ne(Me,null,e)}function et(e){return e==null||typeof e=="boolean"?ne(Me):Q(e)?ne(Ne,null,e.slice()):typeof e=="object"?Xt(e):ne(qr,null,String(e))}function Xt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Lt(e)}function na(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Q(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),na(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!(ti in t)?t._ctx=$e:s===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else te(t)?(t={default:t,_ctx:$e},r=32):(t=String(t),n&64?(r=16,t=[zr(t)]):r=8);e.children=t,e.shapeFlag|=r}function sa(...e){const t={};for(let r=0;rTe||$e;let ia,Pr,il="__VUE_INSTANCE_SETTERS__";(Pr=Gi()[il])||(Pr=Gi()[il]=[]),Pr.push(e=>Te=e),ia=e=>{Pr.length>1?Pr.forEach(t=>t(e)):Pr[0](e)};const sr=e=>{ia(e),e.scope.on()},rr=()=>{Te&&Te.scope.off(),ia(null)};function ef(e){return e.vnode.shapeFlag&4}let Jr=!1;function jp(e,t=!1){Jr=t;const{props:r,children:n}=e.vnode,s=ef(e);_p(e,r,s,t),kp(e,n);const i=s?Lp(e,t):void 0;return Jr=!1,i}function Lp(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=fu(new Proxy(e.ctx,up));const{setup:n}=r;if(n){const s=e.setupContext=n.length>1?rf(e):null;sr(e),nn();const i=er(n,e,0,[e.props,s]);if(sn(),rr(),Bo(i)){if(i.then(rr,rr),t)return i.then(o=>{io(e,o,t)}).catch(o=>{on(o,e,0)});e.asyncDep=i}else io(e,i,t)}else tf(e,t)}function io(e,t,r){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=gu(t)),tf(e,r)}let ol;function tf(e,t,r){const n=e.type;if(!e.render){if(!t&&ol&&!n.render){const s=n.template||ta(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,c=Ce(Ce({isCustomElement:i,delimiters:a},o),l);n.render=ol(s,c)}}e.render=n.render||pt}sr(e),nn(),hp(e),sn(),rr()}function Np(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return He(e,"get","$attrs"),t[r]}}))}function rf(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return Np(e)},slots:e.slots,emit:e.emit,expose:t}}function ri(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gu(fu(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Cn)return Cn[r](e)},has(t,r){return r in t||r in Cn}}))}function oo(e,t=!0){return te(e)?e.displayName||e.name:e.name||t&&e.__name}function Mp(e){return te(e)&&"__vccOpts"in e}const ue=(e,t)=>jh(e,t,Jr);function st(e,t,r){const n=arguments.length;return n===2?ge(t)&&!Q(t)?Wr(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Wr(r)&&(r=[r]),ne(e,t,r))}const Dp=Symbol.for("v-scx"),Fp=()=>Ge(Dp),nf="3.3.4",Bp="http://www.w3.org/2000/svg",pr=typeof document<"u"?document:null,al=pr&&pr.createElement("template"),Up={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?pr.createElementNS(Bp,e):pr.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>pr.createTextNode(e),createComment:e=>pr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pr.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{al.innerHTML=n?`${e}`:e;const a=al.content;if(n){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function Hp(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function zp(e,t,r){const n=e.style,s=we(r);if(r&&!s){if(t&&!we(t))for(const i in t)r[i]==null&&ao(n,i,"");for(const i in r)ao(n,i,r[i])}else{const i=n.display;s?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=i)}}const ll=/\s*!important$/;function ao(e,t,r){if(Q(r))r.forEach(n=>ao(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=qp(e,t);ll.test(r)?e.setProperty(rn(n),r.replace(ll,""),"important"):e[n]=r}}const cl=["Webkit","Moz","ms"],Si={};function qp(e,t){const r=Si[t];if(r)return r;let n=wt(t);if(n!=="filter"&&n in e)return Si[t]=n;n=Vs(n);for(let s=0;sAi||(Yp.then(()=>Ai=0),Ai=Date.now());function Zp(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;nt(eg(n,r.value),t,5,[n])};return r.value=e,r.attached=Qp(),r}function eg(e,t){if(Q(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 dl=/^on[a-z]/,tg=(e,t,r,n,s=!1,i,o,a,l)=>{t==="class"?Hp(e,n,s):t==="style"?zp(e,r,n):Zn(t)?Mo(t)||Gp(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):rg(e,t,n,s))?Wp(e,t,n,i,o,a,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Kp(e,t,n,s))};function rg(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&dl.test(t)&&te(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||dl.test(t)&&we(r)?!1:t in e}const Jt="transition",hn="animation",ni=(e,{slots:t})=>st(Zh,ng(e),t);ni.displayName="Transition";const sf={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};ni.props=Ce({},Su,sf);const cr=(e,t=[])=>{Q(e)?e.forEach(r=>r(...t)):e&&e(...t)},hl=e=>e?Q(e)?e.some(t=>t.length>1):e.length>1:!1;function ng(e){const t={};for(const F in e)F in sf||(t[F]=e[F]);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:l=i,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,p=sg(s),v=p&&p[0],x=p&&p[1],{onBeforeEnter:m,onEnter:g,onEnterCancelled:E,onLeave:_,onLeaveCancelled:T,onBeforeAppear:P=m,onAppear:j=g,onAppearCancelled:O=E}=t,M=(F,K,w)=>{ur(F,K?u:a),ur(F,K?c:o),w&&w()},B=(F,K)=>{F._isLeaving=!1,ur(F,f),ur(F,h),ur(F,d),K&&K()},H=F=>(K,w)=>{const $=F?j:g,L=()=>M(K,F,w);cr($,[K,L]),pl(()=>{ur(K,F?l:i),Vt(K,F?u:a),hl($)||gl(K,n,v,L)})};return Ce(t,{onBeforeEnter(F){cr(m,[F]),Vt(F,i),Vt(F,o)},onBeforeAppear(F){cr(P,[F]),Vt(F,l),Vt(F,c)},onEnter:H(!1),onAppear:H(!0),onLeave(F,K){F._isLeaving=!0;const w=()=>B(F,K);Vt(F,f),ag(),Vt(F,d),pl(()=>{F._isLeaving&&(ur(F,f),Vt(F,h),hl(_)||gl(F,n,x,w))}),cr(_,[F,w])},onEnterCancelled(F){M(F,!1),cr(E,[F])},onAppearCancelled(F){M(F,!0),cr(O,[F])},onLeaveCancelled(F){B(F),cr(T,[F])}})}function sg(e){if(e==null)return null;if(ge(e))return[$i(e.enter),$i(e.leave)];{const t=$i(e);return[t,t]}}function $i(e){return Xc(e)}function Vt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function ur(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function pl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ig=0;function gl(e,t,r,n){const s=e._endId=++ig,i=()=>{s===e._endId&&n()};if(r)return setTimeout(i,r);const{type:o,timeout:a,propCount:l}=og(e,t);if(!o)return n();const c=o+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=h=>{h.target===e&&++u>=l&&f()};setTimeout(()=>{u(r[p]||"").split(", "),s=n(`${Jt}Delay`),i=n(`${Jt}Duration`),o=yl(s,i),a=n(`${hn}Delay`),l=n(`${hn}Duration`),c=yl(a,l);let u=null,f=0,d=0;t===Jt?o>0&&(u=Jt,f=o,d=i.length):t===hn?c>0&&(u=hn,f=c,d=l.length):(f=Math.max(o,c),u=f>0?o>c?Jt:hn:null,d=u?u===Jt?i.length:l.length:0);const h=u===Jt&&/\b(transform|all)(,|$)/.test(n(`${Jt}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function yl(e,t){for(;e.lengthml(r)+ml(e[n])))}function ml(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function ag(){return document.body.offsetHeight}const lg=["ctrl","shift","alt","meta"],cg={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)=>lg.some(r=>e[`${r}Key`]&&!t.includes(r))},fO=(e,t)=>(r,...n)=>{for(let s=0;s{pn(e,!1)}):pn(e,t))},beforeUnmount(e,{value:t}){pn(e,t)}};function pn(e,t){e.style.display=t?e._vod:"none"}const of=Ce({patchProp:tg},Up);let Pn,vl=!1;function ug(){return Pn||(Pn=Op(of))}function fg(){return Pn=vl?Pn:Cp(of),vl=!0,Pn}const dg=(...e)=>{const t=ug().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=af(n);if(!s)return;const i=t._component;!te(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=r(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t},hg=(...e)=>{const t=fg().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=af(n);if(s)return r(s,!0,s instanceof SVGElement)},t};function af(e){return we(e)?document.querySelector(e):e}const pg=/"(?:_|\\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*:/,gg=/"(?: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*:/,yg=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function mg(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){vg(e);return}return t}function vg(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function lf(e,t={}){if(typeof e!="string")return e;const r=e.trim();if(e[0]==='"'&&e[e.length-1]==='"')return r.slice(1,-1);const n=r.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n!=="undefined"){if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY;if(!yg.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(pg.test(e)||gg.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,mg)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}}const bg=/#/g,_g=/&/g,wg=/=/g,cf=/\+/g,xg=/%5e/gi,kg=/%60/gi,Eg=/%7c/gi,Tg=/%20/gi;function Og(e){return encodeURI(""+e).replace(Eg,"|")}function lo(e){return Og(typeof e=="string"?e:JSON.stringify(e)).replace(cf,"%2B").replace(Tg,"+").replace(bg,"%23").replace(_g,"%26").replace(kg,"`").replace(xg,"^")}function Pi(e){return lo(e).replace(wg,"%3D")}function uf(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Cg(e){return uf(e.replace(cf," "))}function ff(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const s=uf(n[1]);if(s==="__proto__"||s==="constructor")continue;const i=Cg(n[2]||"");typeof t[s]<"u"?Array.isArray(t[s])?t[s].push(i):t[s]=[t[s],i]:t[s]=i}return t}function Sg(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${Pi(e)}=${lo(r)}`).join("&"):`${Pi(e)}=${lo(t)}`:Pi(e)}function Ag(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Sg(t,e[t])).join("&")}const $g=/^\w{2,}:([/\\]{1,2})/,Pg=/^\w{2,}:([/\\]{2})?/,Rg=/^([/\\]\s*){2,}[^/\\]/;function ns(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?$g.test(e):Pg.test(e)||(t.acceptRelative?Rg.test(e):!1)}const Ig=/\/$|\/\?/;function co(e="",t=!1){return t?Ig.test(e):e.endsWith("/")}function oa(e="",t=!1){if(!t)return(co(e)?e.slice(0,-1):e)||"/";if(!co(e,!0))return e||"/";const[r,...n]=e.split("?");return(r.slice(0,-1)||"/")+(n.length>0?`?${n.join("?")}`:"")}function df(e="",t=!1){if(!t)return e.endsWith("/")?e:e+"/";if(co(e,!0))return e||"/";const[r,...n]=e.split("?");return r+"/"+(n.length>0?`?${n.join("?")}`:"")}function jg(e=""){return e.startsWith("/")}function Lg(e=""){return(jg(e)?e.slice(1):e)||"/"}function Ng(e,t){if(pf(t)||ns(e))return e;const r=oa(t);return e.startsWith(r)?e:si(r,e)}function bl(e,t){if(pf(t))return e;const r=oa(t);if(!e.startsWith(r))return e;const n=e.slice(r.length);return n[0]==="/"?n:"/"+n}function hf(e,t){const r=ii(e),n={...ff(r.search),...t};return r.search=Ag(n),Dg(r)}function pf(e){return!e||e==="/"}function Mg(e){return e&&e!=="/"}function si(e,...t){let r=e||"";for(const n of t.filter(s=>Mg(s)))r=r?df(r)+Lg(n):n;return r}function ii(e="",t){if(!ns(e,{acceptRelative:!0}))return t?ii(t+e):_l(e);const[r="",n,s=""]=(e.replace(/\\/g,"/").match(/([^/:]+:)?\/\/([^/@]+@)?(.*)/)||[]).splice(1),[i="",o=""]=(s.match(/([^#/?]*)(.*)?/)||[]).splice(1),{pathname:a,search:l,hash:c}=_l(o.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r,auth:n?n.slice(0,Math.max(0,n.length-1)):"",host:i,pathname:a,search:l,hash:c}}function _l(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function Dg(e){const t=e.pathname+(e.search?(e.search.startsWith("?")?"":"?")+e.search:"")+e.hash;return e.protocol?e.protocol+"//"+(e.auth?e.auth+"@":"")+e.host+t:t}class Fg extends Error{constructor(){super(...arguments),this.name="FetchError"}}function Bg(e,t,r){let n="";t&&(n=t.message),e&&r?n=`${n} (${r.status} ${r.statusText} (${e.toString()}))`:e&&(n=`${n} (${e.toString()})`);const s=new Fg(n);return Object.defineProperty(s,"request",{get(){return e}}),Object.defineProperty(s,"response",{get(){return r}}),Object.defineProperty(s,"data",{get(){return r&&r._data}}),Object.defineProperty(s,"status",{get(){return r&&r.status}}),Object.defineProperty(s,"statusText",{get(){return r&&r.statusText}}),Object.defineProperty(s,"statusCode",{get(){return r&&r.status}}),Object.defineProperty(s,"statusMessage",{get(){return r&&r.statusText}}),s}const Ug=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function wl(e="GET"){return Ug.has(e.toUpperCase())}function Hg(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.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const zg=new Set(["image/svg","application/xml","application/xhtml","application/html"]),qg=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Kg(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return qg.test(t)?"json":zg.has(t)||t.startsWith("text/")?"text":"blob"}function Wg(e,t,r=globalThis.Headers){const n={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(n.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(n.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){n.headers=new r((t==null?void 0:t.headers)||{});for(const[s,i]of new r((e==null?void 0:e.headers)||{}))n.headers.set(s,i)}return n}const Jg=new Set([408,409,425,429,500,502,503,504]);function gf(e){const{fetch:t,Headers:r}=e;function n(o){const a=o.error&&o.error.name==="AbortError"||!1;if(o.options.retry!==!1&&!a){let c;typeof o.options.retry=="number"?c=o.options.retry:c=wl(o.options.method)?0:1;const u=o.response&&o.response.status||500;if(c>0&&Jg.has(u))return s(o.request,{...o.options,retry:c-1})}const l=Bg(o.request,o.error,o.response);throw Error.captureStackTrace&&Error.captureStackTrace(l,s),l}const s=async function(a,l={}){const c={request:a,options:Wg(l,e.defaults,r),response:void 0,error:void 0};c.options.onRequest&&await c.options.onRequest(c),typeof c.request=="string"&&(c.options.baseURL&&(c.request=Ng(c.request,c.options.baseURL)),(c.options.query||c.options.params)&&(c.request=hf(c.request,{...c.options.params,...c.options.query})),c.options.body&&wl(c.options.method)&&Hg(c.options.body)&&(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new r(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")));try{c.response=await t(c.request,c.options)}catch(f){return c.error=f,c.options.onRequestError&&await c.options.onRequestError(c),await n(c)}const u=(c.options.parseResponse?"json":c.options.responseType)||Kg(c.response.headers.get("content-type")||"");if(u==="json"){const f=await c.response.text(),d=c.options.parseResponse||lf;c.response._data=d(f)}else u==="stream"?c.response._data=c.response.body:c.response._data=await c.response[u]();return c.options.onResponse&&await c.options.onResponse(c),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await c.options.onResponseError(c),await n(c)):c.response},i=async function(a,l){return(await s(a,l))._data};return i.raw=s,i.native=t,i.create=(o={})=>gf({...e,defaults:{...e.defaults,...o}}),i}const yf=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")}(),Vg=yf.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Gg=yf.Headers,Xg=gf({fetch:Vg,Headers:Gg}),Yg=Xg,Qg=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Bs=Qg().app,Zg=()=>Bs.baseURL,e0=()=>Bs.buildAssetsDir,t0=(...e)=>si(mf(),e0(),...e),mf=(...e)=>{const t=Bs.cdnURL||Bs.baseURL;return e.length?si(t,...e):t};globalThis.__buildAssetsURL=t0,globalThis.__publicAssetsURL=mf;function uo(e,t={},r){for(const n in e){const s=e[n],i=r?`${r}:${n}`:n;typeof s=="object"&&s!==null?uo(s,t,i):typeof s=="function"&&(t[i]=s)}return t}const r0={run:e=>e()},n0=()=>r0,vf=typeof console.createTask<"u"?console.createTask:n0;function s0(e,t){const r=t.shift(),n=vf(r);return e.reduce((s,i)=>s.then(()=>n.run(()=>i(...t))),Promise.resolve())}function i0(e,t){const r=t.shift(),n=vf(r);return Promise.all(e.map(s=>n.run(()=>s(...t))))}function Ri(e,t){for(const r of[...e])r(t)}class o0{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)||(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=uo(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=uo(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(s0,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(i0,t,...r)}callHookWith(t,r,...n){const s=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&Ri(this._before,s);const i=t(r in this._hooks?[...this._hooks[r]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&s&&Ri(this._after,s)}):(this._after&&s&&Ri(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 bf(){return new o0}function a0(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&&t===void 0){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 l=()=>{t=o},c=()=>t===o?l:void 0;fo.add(c);try{const u=s?s.run(o,a):a();return r||(t=void 0),await u}finally{fo.delete(c)}}}}function l0(e={}){const t={};return{get(r,n={}){return t[r]||(t[r]=a0({...e,...n})),t[r],t[r]}}}const Us=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},xl="__unctx__",c0=Us[xl]||(Us[xl]=l0()),u0=(e,t={})=>c0.get(e,t),kl="__unctx_async_handlers__",fo=Us[kl]||(Us[kl]=new Set);function Wn(e){const t=[];for(const s of fo){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 _f=u0("nuxt-app"),f0="__nuxt_plugin";function d0(e){let t=0;const r={provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.6.2"},get vue(){return r.vueApp.version}},payload:xt({data:{},state:{},_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:s=>g0(r,s),isHydrating:!0,deferHydration(){if(!r.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return r.isHydrating=!1,r.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};r.hooks=bf(),r.hook=r.hooks.hook,r.callHook=r.hooks.callHook,r.provide=(s,i)=>{const o="$"+s;hs(r,o,i),hs(r.vueApp.config.globalProperties,o,i)},hs(r.vueApp,"$nuxt",r),hs(r.vueApp.config.globalProperties,"$nuxt",r);{window.addEventListener("nuxt.preloadError",i=>{r.callHook("app:chunkError",{error:i.payload})}),window.useNuxtApp=window.useNuxtApp||be;const s=r.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});r.hook("app:mounted",s)}const n=xt(r.payload.config);return r.provide("config",n),r}async function h0(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),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 p0(e,t){const r=[],n=[];for(const s of t){const i=h0(e,s);s.parallel?r.push(i.catch(o=>n.push(o))):await i}if(await Promise.all(r),n.length)throw n[0]}/*! @__NO_SIDE_EFFECTS__ */function Bt(e){return typeof e=="function"?e:(delete e.name,Object.assign(e.setup||(()=>{}),e,{[f0]:!0}))}function g0(e,t,r){const n=()=>r?t(...r):t();return _f.set(e),e.vueApp.runWithContext(n)}/*! @__NO_SIDE_EFFECTS__ */function be(){var t;let e;if(Hu()&&(e=(t=or())==null?void 0:t.appContext.app.$nuxt),e=e||_f.tryUse(),!e)throw new Error("[nuxt] instance unavailable");return e}/*! @__NO_SIDE_EFFECTS__ */function oi(){return be().$config}function hs(e,t,r){Object.defineProperty(e,t,{get:()=>r})}const y0="modulepreload",m0=function(e,t){return e.startsWith(".")?new URL(e,t).href:e},El={},v0=function(t,r,n){if(!r||r.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=m0(i,n),i in El)return;El[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!n)for(let u=s.length-1;u>=0;u--){const f=s[u];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":y0,o||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),o)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},rt=(...e)=>v0(...e).catch(t=>{const r=new Event("nuxt.preloadError");throw r.payload=t,window.dispatchEvent(r),t}),b0=-1,_0=-2,w0=-3,x0=-4,k0=-5,E0=-6;function T0(e,t){return O0(JSON.parse(e),t)}function O0(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===b0)return;if(i===w0)return NaN;if(i===x0)return 1/0;if(i===k0)return-1/0;if(i===E0)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 l=a[0],c=t==null?void 0:t[l];if(c)return n[i]=c(s(a[1]));switch(l){case"Date":n[i]=new Date(a[1]);break;case"Set":const u=new Set;n[i]=u;for(let h=1;h>>9)+65536).toString(16).substring(1,8).toLowerCase()}function ho(e){return kf(`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,r])=>`${t}:${String(r)}`).join(",")}`)}function P0(e){let t=9;for(const r of e)for(let n=0;n>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Ef(e,t){const{props:r,tag:n}=e;if(A0.includes(n))return n;if(n==="link"&&r.rel==="canonical")return"canonical";if(r.charset)return"charset";const s=["id"];n==="meta"&&s.push("name","property","http-equiv");for(const i of s)if(typeof r[i]<"u"){const o=String(r[i]);return t&&!t(o)?!1:`${n}:${i}:${o}`}return!1}function Tl(e,t){return e==null?t||null:typeof e=="function"?e(t):e}function ps(e,t=!1,r){const{tag:n,$el:s}=e;s&&(Object.entries(n.props).forEach(([i,o])=>{o=String(o);const a=`attr:${i}`;if(i==="class"){if(!o)return;for(const l of o.split(" ")){const c=`${a}:${l}`;r&&r(e,c,()=>s.classList.remove(l)),s.classList.contains(l)||s.classList.add(l)}return}r&&!i.startsWith("data-h-")&&r(e,a,()=>s.removeAttribute(i)),(t||s.getAttribute(i)!==o)&&s.setAttribute(i,o)}),wf.includes(n.tag)&&(n.textContent&&n.textContent!==s.textContent?s.textContent=n.textContent:n.innerHTML&&n.innerHTML!==s.innerHTML&&(s.innerHTML=n.innerHTML)))}let gn=!1;async function R0(e,t={}){var d,h;const r={shouldRender:!0};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const n=t.document||e.resolvedOptions.document||window.document,s=(await e.resolveTags()).map(a);if(e.resolvedOptions.experimentalHashHydration&&(gn=gn||e._hash||!1,gn)){const p=P0(s.map(v=>v.tag._h));if(gn===p)return;gn=p}const i=e._popSideEffectQueue();e.headEntries().map(p=>p._sde).forEach(p=>{Object.entries(p).forEach(([v,x])=>{i[v]=x})});const o=(p,v,x)=>{v=`${p.renderId}:${v}`,p.entry&&(p.entry._sde[v]=x),delete i[v]};function a(p){const v=e.headEntries().find(m=>m._i===p._e),x={renderId:p._d||ho(p),$el:null,shouldRender:!0,tag:p,entry:v,markSideEffect:(m,g)=>o(x,m,g)};return x}const l=[],c={body:[],head:[]},u=p=>{e._elMap[p.renderId]=p.$el,l.push(p),o(p,"el",()=>{var v;(v=p.$el)==null||v.remove(),delete e._elMap[p.renderId]})};for(const p of s){if(await e.hooks.callHook("dom:beforeRenderTag",p),!p.shouldRender)continue;const{tag:v}=p;if(v.tag==="title"){n.title=v.textContent||"",l.push(p);continue}if(v.tag==="htmlAttrs"||v.tag==="bodyAttrs"){p.$el=n[v.tag==="htmlAttrs"?"documentElement":"body"],ps(p,!1,o),l.push(p);continue}if(p.$el=e._elMap[p.renderId],!p.$el&&v.key&&(p.$el=n.querySelector(`${(d=v.tagPosition)!=null&&d.startsWith("body")?"body":"head"} > ${v.tag}[data-h-${v._h}]`)),p.$el){p.tag._d&&ps(p),u(p);continue}c[(h=v.tagPosition)!=null&&h.startsWith("body")?"body":"head"].push(p)}const f={bodyClose:void 0,bodyOpen:void 0,head:void 0};Object.entries(c).forEach(([p,v])=>{var m;if(!v.length)return;const x=(m=n==null?void 0:n[p])==null?void 0:m.children;if(x){for(const g of[...x].reverse()){const E=g.tagName.toLowerCase();if(!xf.includes(E))continue;const _=g.getAttributeNames().reduce((O,M)=>({...O,[M]:g.getAttribute(M)}),{}),T={tag:E,props:_};g.innerHTML&&(T.innerHTML=g.innerHTML);const P=ho(T);let j=v.findIndex(O=>(O==null?void 0:O.renderId)===P);if(j===-1){const O=Ef(T);j=v.findIndex(M=>(M==null?void 0:M.tag._d)&&M.tag._d===O)}if(j!==-1){const O=v[j];O.$el=g,ps(O),u(O),delete v[j]}}v.forEach(g=>{const E=g.tag.tagPosition||"head";f[E]=f[E]||n.createDocumentFragment(),g.$el||(g.$el=n.createElement(g.tag.tag),ps(g,!0)),f[E].appendChild(g.$el),u(g)})}}),f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const p of l)await e.hooks.callHook("dom:renderTag",p);Object.values(i).forEach(p=>p())}let Ii=null;async function I0(e,t={}){function r(){return Ii=null,R0(e,t)}const n=t.delayFn||(s=>setTimeout(s,10));return Ii=Ii||new Promise(s=>n(()=>s(r())))}function j0(e){return{hooks:{"entries:updated":function(t){if(typeof(e==null?void 0:e.document)>"u"&&typeof window>"u")return;let r=e==null?void 0:e.delayFn;!r&&typeof requestAnimationFrame<"u"&&(r=requestAnimationFrame),I0(t,{document:(e==null?void 0:e.document)||window.document,delayFn:r})}}}}function L0(e){var t;return((t=e==null?void 0:e.head.querySelector('meta[name="unhead:ssr"]'))==null?void 0:t.getAttribute("content"))||!1}const Ol={base:-1,title:1},Cl={critical:-8,high:-1,low:2};function Hs(e){let t=10;const r=e.tagPriority;return typeof r=="number"?r:(e.tag==="meta"?(e.props.charset&&(t=-2),e.props["http-equiv"]==="content-security-policy"&&(t=0)):e.tag in Ol&&(t=Ol[e.tag]),typeof r=="string"&&r in Cl?t+Cl[r]:t)}const N0=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}];function M0(){return{hooks:{"tags:resolve":e=>{const t=r=>{var n;return(n=e.tags.find(s=>s._d===r))==null?void 0:n._p};for(const{prefix:r,offset:n}of N0)for(const s of e.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(r))){const i=t(s.tagPriority.replace(r,""));typeof i<"u"&&(s._p=i+n)}e.tags.sort((r,n)=>r._p-n._p).sort((r,n)=>Hs(r)-Hs(n))}}}}function D0(){return{hooks:{"tags:resolve":e=>{const{tags:t}=e;let r=t.findIndex(s=>s.tag==="titleTemplate");const n=t.findIndex(s=>s.tag==="title");if(n!==-1&&r!==-1){const s=Tl(t[r].textContent,t[n].textContent);s!==null?t[n].textContent=s||t[n].textContent:delete t[n]}else if(r!==-1){const s=Tl(t[r].textContent);s!==null&&(t[r].textContent=s,t[r].tag="title",r=-1)}r!==-1&&delete t[r],e.tags=t.filter(Boolean)}}}}function F0(){return{hooks:{"tag:normalise":function({tag:e}){typeof e.props.body<"u"&&(e.tagPosition="bodyClose",delete e.props.body)}}}}const B0=["link","style","script","noscript"];function U0(){return{hooks:{"tag:normalise":({tag:e,resolvedOptions:t})=>{t.experimentalHashHydration===!0&&(e._h=ho(e)),e.key&&B0.includes(e.tag)&&(e._h=kf(e.key),e.props[`data-h-${e._h}`]="")}}}}const Sl=["script","link","bodyAttrs"];function H0(){const e=(t,r)=>{const n={},s={};Object.entries(r.props).forEach(([o,a])=>{o.startsWith("on")&&typeof a=="function"?s[o]=a:n[o]=a});let i;return t==="dom"&&r.tag==="script"&&typeof n.src=="string"&&typeof s.onload<"u"&&(i=n.src,delete n.src),{props:n,eventHandlers:s,delayedSrc:i}};return{hooks:{"ssr:render":function(t){t.tags=t.tags.map(r=>(!Sl.includes(r.tag)||!Object.entries(r.props).find(([n,s])=>n.startsWith("on")&&typeof s=="function")||(r.props=e("ssr",r).props),r))},"dom:beforeRenderTag":function(t){if(!Sl.includes(t.tag.tag)||!Object.entries(t.tag.props).find(([i,o])=>i.startsWith("on")&&typeof o=="function"))return;const{props:r,eventHandlers:n,delayedSrc:s}=e("dom",t.tag);Object.keys(n).length&&(t.tag.props=r,t.tag._eventHandlers=n,t.tag._delayedSrc=s)},"dom:renderTag":function(t){const r=t.$el;if(!t.tag._eventHandlers||!r)return;const n=t.tag.tag==="bodyAttrs"&&typeof window<"u"?window:r;Object.entries(t.tag._eventHandlers).forEach(([s,i])=>{const o=`${t.tag._d||t.tag._p}:${s}`,a=s.slice(2).toLowerCase(),l=`data-h-${a}`;if(t.markSideEffect(o,()=>{}),r.hasAttribute(l))return;const c=i;r.setAttribute(l,""),n.addEventListener(a,c),t.entry&&(t.entry._sde[o]=()=>{n.removeEventListener(a,c),r.removeAttribute(l)})}),t.tag._delayedSrc&&r.setAttribute("src",t.tag._delayedSrc)}}}}const z0=["templateParams","htmlAttrs","bodyAttrs"];function q0(){return{hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(n=>{e.props[n]&&(e.key=e.props[n],delete e.props[n])});const r=Ef(e)||(e.key?`${e.tag}:${e.key}`:!1);r&&(e._d=r)},"tags:resolve":function(e){const t={};e.tags.forEach(n=>{const s=(n.key?`${n.tag}:${n.key}`:n._d)||n._p,i=t[s];if(i){let a=n==null?void 0:n.tagDuplicateStrategy;if(!a&&z0.includes(n.tag)&&(a="merge"),a==="merge"){const l=i.props;["class","style"].forEach(c=>{n.props[c]&&l[c]&&(c==="style"&&!l[c].endsWith(";")&&(l[c]+=";"),n.props[c]=`${l[c]} ${n.props[c]}`)}),t[s].props={...l,...n.props};return}else if(n._e===i._e){i._duped=i._duped||[],n._d=`${i._d}:${i._duped.length+1}`,i._duped.push(n);return}else if(Hs(n)>Hs(i))return}const o=Object.keys(n.props).length+(n.innerHTML?1:0)+(n.textContent?1:0);if(xf.includes(n.tag)&&o===0){delete t[s];return}t[s]=n});const r=[];Object.values(t).forEach(n=>{const s=n._duped;delete n._duped,r.push(n),s&&r.push(...s)}),e.tags=r}}}}function yn(e,t){if(typeof e!="string")return e;function r(o){if(["s","pageTitle"].includes(o))return t.pageTitle;let a;return o.includes(".")?a=o.split(".").reduce((l,c)=>l&&l[c]||void 0,t):a=t[o],typeof a<"u"?a||"":!1}let n=e;try{n=decodeURI(e)}catch{}(n.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(o=>{const a=r(o.slice(1));typeof a=="string"&&(e=e.replace(new RegExp(`\\${o}(\\W|$)`,"g"),`${a}$1`).trim())});const i=t.separator;return e.includes(i)&&(e.endsWith(i)&&(e=e.slice(0,-i.length).trim()),e.startsWith(i)&&(e=e.slice(i.length).trim()),e=e.replace(new RegExp(`\\${i}\\s*\\${i}`,"g"),i)),e}function K0(){return{hooks:{"tags:resolve":e=>{var i;const{tags:t}=e,r=(i=t.find(o=>o.tag==="title"))==null?void 0:i.textContent,n=t.findIndex(o=>o.tag==="templateParams"),s=n!==-1?t[n].props:{};s.separator=s.separator||"|",s.pageTitle=yn(s.pageTitle||r||"",s);for(const o of t)if(["titleTemplate","title"].includes(o.tag)&&typeof o.textContent=="string")o.textContent=yn(o.textContent,s);else if(o.tag==="meta"&&typeof o.props.content=="string")o.props.content=yn(o.props.content,s);else if(o.tag==="link"&&typeof o.props.href=="string")o.props.href=yn(o.props.href,s);else if(o.tag==="script"&&["application/json","application/ld+json"].includes(o.props.type)&&typeof o.innerHTML=="string")try{o.innerHTML=JSON.stringify(JSON.parse(o.innerHTML),(a,l)=>typeof l=="string"?yn(l,s):l)}catch{}e.tags=t.filter(o=>o.tag!=="templateParams")}}}}const W0=typeof window<"u";let Tf;function J0(e){return Tf=e}function V0(){return Tf}async function G0(e,t){const r={tag:e,props:{}};return t instanceof Promise&&(t=await t),e==="templateParams"?(r.props=t,r):["title","titleTemplate"].includes(e)?(t&&typeof t=="object"?(r.textContent=t.textContent,t.tagPriority&&(r.tagPriority=t.tagPriority)):r.textContent=t,r):typeof t=="string"?["script","noscript","style"].includes(e)?(e==="script"&&(/^(https?:)?\/\//.test(t)||t.startsWith("/"))?r.props.src=t:r.innerHTML=t,r):!1:(r.props=await Y0(e,{...t}),r.props.children&&(r.props.innerHTML=r.props.children),delete r.props.children,Object.keys(r.props).filter(n=>$0.includes(n)).forEach(n=>{(!["innerHTML","textContent"].includes(n)||wf.includes(r.tag))&&(r[n]=r.props[n]),delete r.props[n]}),["innerHTML","textContent"].forEach(n=>{if(r.tag==="script"&&typeof r[n]=="string"&&["application/ld+json","application/json"].includes(r.props.type))try{r[n]=JSON.parse(r[n])}catch{r[n]=""}typeof r[n]=="object"&&(r[n]=JSON.stringify(r[n]))}),r.props.class&&(r.props.class=X0(r.props.class)),r.props.content&&Array.isArray(r.props.content)?r.props.content.map(n=>({...r,props:{...r.props,content:n}})):r)}function X0(e){return typeof e=="object"&&!Array.isArray(e)&&(e=Object.keys(e).filter(t=>e[t])),(Array.isArray(e)?e.join(" "):e).split(" ").filter(t=>t.trim()).filter(Boolean).join(" ")}async function Y0(e,t){for(const r of Object.keys(t)){const n=r.startsWith("data-");t[r]instanceof Promise&&(t[r]=await t[r]),String(t[r])==="true"?t[r]=n?"true":"":String(t[r])==="false"&&(n?t[r]="false":delete t[r])}return t}const Q0=10;async function Z0(e){const t=[];return Object.entries(e.resolvedInput).filter(([r,n])=>typeof n<"u"&&S0.includes(r)).forEach(([r,n])=>{const s=C0(n);t.push(...s.map(i=>G0(r,i)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((r,n)=>(r._e=e._i,r._p=(e._i<a.hooks&&s.addHooks(a.hooks)),e.document=e.document||(W0?document:void 0);const i=()=>s.callHook("entries:updated",o),o={resolvedOptions:e,headEntries(){return t},get hooks(){return s},use(a){a.hooks&&s.addHooks(a.hooks)},push(a,l){const c={_i:n++,input:a,_sde:{}};return l!=null&&l.mode&&(c._m=l==null?void 0:l.mode),l!=null&&l.transform&&(c._t=l==null?void 0:l.transform),t.push(c),i(),{dispose(){t=t.filter(u=>u._i!==c._i?!0:(r={...r,...u._sde||{}},u._sde={},i(),!1))},patch(u){t=t.map(f=>(f._i===c._i&&(c.input=f.input=u,i()),f))}}},async resolveTags(){const a={tags:[],entries:[...t]};await s.callHook("entries:resolve",a);for(const l of a.entries){const c=l._t||(u=>u);if(l.resolvedInput=c(l.resolvedInput||l.input),l.resolvedInput)for(const u of await Z0(l)){const f={tag:u,entry:l,resolvedOptions:o.resolvedOptions};await s.callHook("tag:normalise",f),a.tags.push(f.tag)}}return await s.callHook("tags:resolve",a),a.tags},_popSideEffectQueue(){const a={...r};return r={},a},_elMap:{}};return o.hooks.callHook("init",o),o}function sy(e){return typeof e=="function"?e():pe(e)}function zs(e,t=""){if(e instanceof Promise)return e;const r=sy(e);return!e||!r?r:Array.isArray(r)?r.map(n=>zs(n,t)):typeof r=="object"?Object.fromEntries(Object.entries(r).map(([n,s])=>n==="titleTemplate"||n.startsWith("on")?[n,pe(s)]:[n,zs(s,n)])):r}const iy=nf.startsWith("3"),oy=typeof window<"u",Of="usehead";function aa(){return or()&&Ge(Of)||V0()}function ay(e){return{install(r){iy&&(r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(Of,e))}}.install}function ly(e={}){const t=ry({...e,domDelayFn:r=>setTimeout(()=>Or(()=>r()),10),plugins:[cy(),...(e==null?void 0:e.plugins)||[]]});return t.install=ay(t),t}function cy(){return{hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=zs(t.input)}}}}function uy(e,t={}){const r=aa(),n=Oe(!1),s=Oe({});Ou(()=>{s.value=n.value?{}:zs(e)});const i=r.push(s.value,t);return $t(s,a=>{i.patch(a)}),or()&&(ln(()=>{i.dispose()}),Ru(()=>{n.value=!0}),Pu(()=>{n.value=!1})),i}function fy(e,t={}){return aa().push(e,t)}function dy(e,t={}){var n;const r=aa();if(r){const s=oy||!!((n=r.resolvedOptions)!=null&&n.document);return t.mode==="server"&&s||t.mode==="client"&&!s?void 0:s?uy(e,t):fy(e,t)}}const hy={meta:[{name:"viewport",content:"width=device-width, initial-scale=1"},{charset:"utf-8"}],link:[],style:[],script:[],noscript:[],htmlAttrs:{dir:"rtl",lang:"he"}},po=!1,py=!1,gy="__nuxt",yy=!0;async function my(e){try{return yy?Cf(await fetch(e).then(t=>t.text())):await rt(()=>import(e),[],import.meta.url).then(t=>t.default||t)}catch(t){console.warn("[nuxt] Cannot load payload ",e,t)}return null}let gs=null;async function vy(){if(gs)return gs;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=Cf(e.textContent||""),r=e.dataset.src?await my(e.dataset.src):void 0;return gs={...t,...r,...window.__NUXT__},gs}function Cf(e){return T0(e,be()._payloadRevivers)}function by(e,t){be()._payloadRevivers[e]=t}const ys=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function _y(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const r={},s=(t||{}).decode||ky;let i=0;for(;it.reduce((r,n)=>go(r,n,"",e),{})}const kr=Sf(),Ty=Sf((e,t,r)=>{if(typeof e[t]<"u"&&typeof r=="function")return e[t]=r(e[t]),!0});class yo extends Error{constructor(){super(...arguments),this.statusCode=500,this.fatal=!1,this.unhandled=!1}toJSON(){const t={message:this.message,statusCode:vo(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Af(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}yo.__h3_error__=!0;function mo(e){if(typeof e=="string")return new yo(e);if(Oy(e))return e;const t=new yo(e.message??e.statusMessage??"",e.cause?{cause:e.cause}:void 0);if("stack"in e)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=vo(e.statusCode,t.statusCode):e.status&&(t.statusCode=vo(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const r=t.statusMessage;Af(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 Oy(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const Cy=/[^\u0009\u0020-\u007E]/g;function Af(e=""){return e.replace(Cy,"")}function vo(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Sy="$s";function ai(...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=Sy+r,i=be(),o=yu(i.payload.state,s);if(o.value===void 0&&n){const a=n();if(Se(a))return i.payload.state[s]=a,a;o.value=a}return o}const Ay=Symbol("layout-meta"),li=Symbol("route"),Ut=()=>{var e;return(e=be())==null?void 0:e.$router},$y=()=>Hu()?Ge(li,be()._route):be()._route;/*! @__NO_SIDE_EFFECTS__ */function hO(e){return e}const Py=()=>{try{if(be()._processingMiddleware)return!0}catch{return!0}return!1},Ry=(e,t)=>{e||(e="/");const r=typeof e=="string"?e:hf(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){{const{target:a="_blank",windowFeatures:l={}}=t.open,c=Object.entries(l).filter(([u,f])=>f!==void 0).map(([u,f])=>`${u.toLowerCase()}=${f}`).join(", ");open(r,a,c)}return Promise.resolve()}const n=(t==null?void 0:t.external)||ns(r,{acceptRelative:!0});if(n&&!(t!=null&&t.external))throw new Error("Navigating to external URL is not allowed by default. Use `navigateTo (url, { external: true })`.");if(n&&ii(r).protocol==="script:")throw new Error("Cannot navigate to an URL with script protocol.");const s=Py();if(!n&&s)return e;const i=Ut(),o=be();return n?(t!=null&&t.replace?location.replace(r):location.href=r,s?o.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)},ci=()=>yu(be().payload,"error"),Nr=e=>{const t=la(e);try{const r=be(),n=ci();r.hooks.callHook("app:error",t),n.value=n.value||t}catch{throw t}return t},Iy=async(e={})=>{const t=be(),r=ci();t.callHook("app:error:cleared",e),e.redirect&&await Ut().replace(e.redirect),r.value=null},jy=e=>!!(e&&typeof e=="object"&&"__nuxt_error"in e),la=e=>{const t=mo(e);return t.__nuxt_error=!0,t},$l={NuxtError:e=>la(e),EmptyShallowRef:e=>Un(e==="_"?void 0:e==="0n"?BigInt(0):JSON.parse(e)),EmptyRef:e=>Oe(e==="_"?void 0:e==="0n"?BigInt(0):JSON.parse(e)),ShallowRef:e=>Un(e),ShallowReactive:e=>ts(e),Ref:e=>Oe(e),Reactive:e=>xt(e)},Ly=Bt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,r;for(const n in $l)by(n,$l[n]);Object.assign(e.payload,([t,r]=Wn(()=>e.runWithContext(vy)),t=await t,r(),t)),window.__NUXT__=e.payload}});/*! +function Bd(e,t){for(var r=0;rn[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function No(e,t){const r=Object.create(null),n=e.split(",");for(let s=0;s!!r[s.toLowerCase()]:s=>!!r[s]}const ve={},Mr=[],pt=()=>{},Ud=()=>!1,Hd=/^on[^a-z]/,es=e=>Hd.test(e),Mo=e=>e.startsWith("onUpdate:"),Ce=Object.assign,Do=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},zd=Object.prototype.hasOwnProperty,ae=(e,t)=>zd.call(e,t),Q=Array.isArray,Dr=e=>ts(e)==="[object Map]",Gc=e=>ts(e)==="[object Set]",qd=e=>ts(e)==="[object RegExp]",te=e=>typeof e=="function",we=e=>typeof e=="string",Fo=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",Bo=e=>ye(e)&&te(e.then)&&te(e.catch),Xc=Object.prototype.toString,ts=e=>Xc.call(e),Kd=e=>ts(e).slice(8,-1),Yc=e=>ts(e)==="[object Object]",Uo=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,On=No(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xs=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Wd=/-(\w)/g,wt=Xs(e=>e.replace(Wd,(t,r)=>r?r.toUpperCase():"")),Jd=/\B([A-Z])/g,rn=Xs(e=>e.replace(Jd,"-$1").toLowerCase()),Ys=Xs(e=>e.charAt(0).toUpperCase()+e.slice(1)),wi=Xs(e=>e?`on${Ys(e)}`:""),Bn=(e,t)=>!Object.is(e,t),Cn=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Vd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Qc=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let Na;const Gi=()=>Na||(Na=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qs(e){if(Q(e)){const t={};for(let r=0;r{if(r){const n=r.split(Xd);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Je(e){let t="";if(we(e))t=e;else if(Q(e))for(let r=0;rwe(e)?e:e==null?"":Q(e)||ye(e)&&(e.toString===Xc||!te(e.toString))?JSON.stringify(e,eu,2):String(e),eu=(e,t)=>t&&t.__v_isRef?eu(e,t.value):Dr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s])=>(r[`${n} =>`]=s,r),{})}:Gc(t)?{[`Set(${t.size})`]:[...t.values()]}:ye(t)&&!Q(t)&&!Yc(t)?String(t):t;let ct;class rh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ct,!t&&ct&&(this.index=(ct.scopes||(ct.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=ct;try{return ct=this,t()}finally{ct=r}}}on(){ct=this}off(){ct=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r{const t=new Set(e);return t.w=0,t.n=0,t},tu=e=>(e.w&nr)>0,ru=e=>(e.n&nr)>0,ih=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n{(u==="length"||u>=l)&&a.push(c)})}else switch(r!==void 0&&a.push(o.get(r)),t){case"add":Q(e)?Uo(r)&&a.push(o.get("length")):(a.push(o.get(br)),Dr(e)&&a.push(o.get(Yi)));break;case"delete":Q(e)||(a.push(o.get(br)),Dr(e)&&a.push(o.get(Yi)));break;case"set":Dr(e)&&a.push(o.get(br));break}if(a.length===1)a[0]&&Qi(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Qi(Ho(l))}}function Qi(e,t){const r=Q(e)?e:[...e];for(const n of r)n.computed&&Da(n);for(const n of r)n.computed||Da(n)}function Da(e,t){(e!==ft||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function ah(e,t){var r;return(r=Ns.get(e))==null?void 0:r.get(t)}const lh=No("__proto__,__v_isRef,__isVue"),iu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Fo)),ch=qo(),uh=qo(!1,!0),fh=qo(!0),Fa=dh();function dh(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=ie(this);for(let i=0,o=this.length;i{e[t]=function(...r){nn();const n=ie(this)[t].apply(this,r);return sn(),n}}),e}function hh(e){const t=ie(this);return He(t,"has",e),t.hasOwnProperty(e)}function qo(e=!1,t=!1){return function(n,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?Ah:uu:t?cu:lu).get(n))return n;const o=Q(n);if(!e){if(o&&ae(Fa,s))return Reflect.get(Fa,s,i);if(s==="hasOwnProperty")return hh}const a=Reflect.get(n,s,i);return(Fo(s)?iu.has(s):lh(s))||(e||He(n,"get",s),t)?a:Se(a)?o&&Uo(s)?a:a.value:ye(a)?e?fu(a):xt(a):a}}const ph=ou(),gh=ou(!0);function ou(e=!1){return function(r,n,s,i){let o=r[n];if(xr(o)&&Se(o)&&!Se(s))return!1;if(!e&&(!Ms(s)&&!xr(s)&&(o=ie(o),s=ie(s)),!Q(r)&&Se(o)&&!Se(s)))return o.value=s,!0;const a=Q(r)&&Uo(n)?Number(n)e,Zs=e=>Reflect.getPrototypeOf(e);function ls(e,t,r=!1,n=!1){e=e.__v_raw;const s=ie(e),i=ie(t);r||(t!==i&&He(s,"get",t),He(s,"get",i));const{has:o}=Zs(s),a=n?Ko:r?Vo:Un;if(o.call(s,t))return a(e.get(t));if(o.call(s,i))return a(e.get(i));e!==s&&e.get(t)}function cs(e,t=!1){const r=this.__v_raw,n=ie(r),s=ie(e);return t||(e!==s&&He(n,"has",e),He(n,"has",s)),e===s?r.has(e):r.has(e)||r.has(s)}function us(e,t=!1){return e=e.__v_raw,!t&&He(ie(e),"iterate",br),Reflect.get(e,"size",e)}function Ba(e){e=ie(e);const t=ie(this);return Zs(t).has.call(t,e)||(t.add(e),Nt(t,"add",e,e)),this}function Ua(e,t){t=ie(t);const r=ie(this),{has:n,get:s}=Zs(r);let i=n.call(r,e);i||(e=ie(e),i=n.call(r,e));const o=s.call(r,e);return r.set(e,t),i?Bn(t,o)&&Nt(r,"set",e,t):Nt(r,"add",e,t),this}function Ha(e){const t=ie(this),{has:r,get:n}=Zs(t);let s=r.call(t,e);s||(e=ie(e),s=r.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return s&&Nt(t,"delete",e,void 0),i}function za(){const e=ie(this),t=e.size!==0,r=e.clear();return t&&Nt(e,"clear",void 0,void 0),r}function fs(e,t){return function(n,s){const i=this,o=i.__v_raw,a=ie(o),l=t?Ko:e?Vo:Un;return!e&&He(a,"iterate",br),o.forEach((c,u)=>n.call(s,l(c),l(u),i))}}function ds(e,t,r){return function(...n){const s=this.__v_raw,i=ie(s),o=Dr(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=s[e](...n),u=r?Ko:t?Vo:Un;return!t&&He(i,"iterate",l?Yi:br),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Kt(e){return function(...t){return e==="delete"?!1:this}}function wh(){const e={get(i){return ls(this,i)},get size(){return us(this)},has:cs,add:Ba,set:Ua,delete:Ha,clear:za,forEach:fs(!1,!1)},t={get(i){return ls(this,i,!1,!0)},get size(){return us(this)},has:cs,add:Ba,set:Ua,delete:Ha,clear:za,forEach:fs(!1,!0)},r={get(i){return ls(this,i,!0)},get size(){return us(this,!0)},has(i){return cs.call(this,i,!0)},add:Kt("add"),set:Kt("set"),delete:Kt("delete"),clear:Kt("clear"),forEach:fs(!0,!1)},n={get(i){return ls(this,i,!0,!0)},get size(){return us(this,!0)},has(i){return cs.call(this,i,!0)},add:Kt("add"),set:Kt("set"),delete:Kt("delete"),clear:Kt("clear"),forEach:fs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ds(i,!1,!1),r[i]=ds(i,!0,!1),t[i]=ds(i,!1,!0),n[i]=ds(i,!0,!0)}),[e,r,t,n]}const[xh,kh,Eh,Th]=wh();function Wo(e,t){const r=t?e?Th:Eh:e?kh:xh;return(n,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(ae(r,s)&&s in n?r:n,s,i)}const Oh={get:Wo(!1,!1)},Ch={get:Wo(!1,!0)},Sh={get:Wo(!0,!1)},lu=new WeakMap,cu=new WeakMap,uu=new WeakMap,Ah=new WeakMap;function $h(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ph(e){return e.__v_skip||!Object.isExtensible(e)?0:$h(Kd(e))}function xt(e){return xr(e)?e:Jo(e,!1,au,Oh,lu)}function rs(e){return Jo(e,!1,_h,Ch,cu)}function fu(e){return Jo(e,!0,bh,Sh,uu)}function Jo(e,t,r,n,s){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=Ph(e);if(o===0)return e;const a=new Proxy(e,o===2?n:r);return s.set(e,a),a}function Fr(e){return xr(e)?Fr(e.__v_raw):!!(e&&e.__v_isReactive)}function xr(e){return!!(e&&e.__v_isReadonly)}function Ms(e){return!!(e&&e.__v_isShallow)}function du(e){return Fr(e)||xr(e)}function ie(e){const t=e&&e.__v_raw;return t?ie(t):e}function hu(e){return js(e,"__v_skip",!0),e}const Un=e=>ye(e)?xt(e):e,Vo=e=>ye(e)?fu(e):e;function pu(e){Zt&&ft&&(e=ie(e),su(e.dep||(e.dep=Ho())))}function gu(e,t){e=ie(e);const r=e.dep;r&&Qi(r)}function Se(e){return!!(e&&e.__v_isRef===!0)}function Oe(e){return yu(e,!1)}function Hn(e){return yu(e,!0)}function yu(e,t){return Se(e)?e:new Rh(e,t)}class Rh{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ie(t),this._value=r?t:Un(t)}get value(){return pu(this),this._value}set value(t){const r=this.__v_isShallow||Ms(t)||xr(t);t=r?t:ie(t),Bn(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Un(t),gu(this))}}function ge(e){return Se(e)?e.value:e}const Ih={get:(e,t,r)=>ge(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return Se(s)&&!Se(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function mu(e){return Fr(e)?e:new Proxy(e,Ih)}function uO(e){const t=Q(e)?new Array(e.length):{};for(const r in e)t[r]=bu(e,r);return t}class jh{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ah(ie(this._object),this._key)}}class Lh{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function vu(e,t,r){return Se(e)?e:te(e)?new Lh(e):ye(e)&&arguments.length>1?bu(e,t,r):Oe(e)}function bu(e,t,r){const n=e[t];return Se(n)?n:new jh(e,t,r)}class Nh{constructor(t,r,n,s){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new zo(t,()=>{this._dirty||(this._dirty=!0,gu(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const t=ie(this);return pu(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Mh(e,t,r=!1){let n,s;const i=te(e);return i?(n=e,s=pt):(n=e.get,s=e.set),new Nh(n,s,i||!s,r)}function er(e,t,r,n){let s;try{s=n?e(...n):e()}catch(i){on(i,t,r)}return s}function nt(e,t,r,n){if(te(e)){const i=er(e,t,r,n);return i&&Bo(i)&&i.catch(o=>{on(o,t,r)}),i}const s=[];for(let i=0;i>>1;qn(Ie[n])_t&&Ie.splice(t,1)}function xu(e){Q(e)?Br.push(...e):(!Pt||!Pt.includes(e,e.allowRecurse?hr+1:hr))&&Br.push(e),wu()}function qa(e,t=zn?_t+1:0){for(;tqn(r)-qn(n)),hr=0;hre.id==null?1/0:e.id,Uh=(e,t)=>{const r=qn(e)-qn(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function ku(e){Zi=!1,zn=!0,Ie.sort(Uh);const t=pt;try{for(_t=0;_twe(h)?h.trim():h)),f&&(s=r.map(Vd))}let a,l=n[a=wi(t)]||n[a=wi(wt(t))];!l&&i&&(l=n[a=wi(rn(t))]),l&&nt(l,e,6,s);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,nt(c,e,6,s)}}function Eu(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(!te(e)){const l=c=>{const u=Eu(c,t,!0);u&&(a=!0,Ce(o,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ye(e)&&n.set(e,null),null):(Q(i)?i.forEach(l=>o[l]=null):Ce(o,i),ye(e)&&n.set(e,o),o)}function ti(e,t){return!e||!es(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,rn(t))||ae(e,t))}let $e=null,ri=null;function Fs(e){const t=$e;return $e=e,ri=e&&e.type.__scopeId||null,t}function fO(e){ri=e}function dO(){ri=null}function Ve(e,t=$e,r){if(!t||e._n)return e;const n=(...s)=>{n._d&&sl(-1);const i=Fs(t);let o;try{o=e(...s)}finally{Fs(i),n._d&&sl(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function xi(e){const{type:t,vnode:r,proxy:n,withProxy:s,props:i,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:f,data:d,setupState:h,ctx:p,inheritAttrs:v}=e;let x,m;const g=Fs(e);try{if(r.shapeFlag&4){const _=s||n;x=et(u.call(_,_,f,i,h,d,p)),m=l}else{const _=t;x=et(_.length>1?_(i,{attrs:l,slots:a,emit:c}):_(i,null)),m=t.props?l:qh(l)}}catch(_){$n.length=0,on(_,e,1),x=ne(Me)}let E=x;if(m&&v!==!1){const _=Object.keys(m),{shapeFlag:T}=E;_.length&&T&7&&(o&&_.some(Mo)&&(m=Kh(m,o)),E=Mt(E,m))}return r.dirs&&(E=Mt(E),E.dirs=E.dirs?E.dirs.concat(r.dirs):r.dirs),r.transition&&(E.transition=r.transition),x=E,Fs(g),x}function zh(e){let t;for(let r=0;r{let t;for(const r in e)(r==="class"||r==="style"||es(r))&&((t||(t={}))[r]=e[r]);return t},Kh=(e,t)=>{const r={};for(const n in e)(!Mo(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function Wh(e,t,r){const{props:n,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Ka(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense,Jh={name:"Suspense",__isSuspense:!0,process(e,t,r,n,s,i,o,a,l,c){e==null?Vh(t,r,n,s,i,o,a,l,c):Gh(e,t,r,n,s,o,a,l,c)},hydrate:Xh,create:Yo,normalize:Yh},Ou=Jh;function Kn(e,t){const r=e.props&&e.props[t];te(r)&&r()}function Vh(e,t,r,n,s,i,o,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=e.suspense=Yo(e,s,n,t,f,r,i,o,a,l);c(null,d.pendingBranch=e.ssContent,f,null,n,d,i,o),d.deps>0?(Kn(e,"onPending"),Kn(e,"onFallback"),c(null,e.ssFallback,t,r,n,null,i,o),Ur(d,e.ssFallback)):d.resolve(!1,!0)}function Gh(e,t,r,n,s,i,o,a,{p:l,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:x,isHydrating:m}=f;if(v)f.pendingBranch=d,dt(d,v)?(l(v,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():x&&(l(p,h,r,n,s,null,i,o,a),Ur(f,h))):(f.pendingId++,m?(f.isHydrating=!1,f.activeBranch=v):c(v,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),x?(l(null,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():(l(p,h,r,n,s,null,i,o,a),Ur(f,h))):p&&dt(d,p)?(l(p,d,r,n,s,f,i,o,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0&&f.resolve()));else if(p&&dt(d,p))l(p,d,r,n,s,f,i,o,a),Ur(f,d);else if(Kn(t,"onPending"),f.pendingBranch=d,f.pendingId++,l(null,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0)f.resolve();else{const{timeout:g,pendingId:E}=f;g>0?setTimeout(()=>{f.pendingId===E&&f.fallback(h)},g):g===0&&f.fallback(h)}}function Yo(e,t,r,n,s,i,o,a,l,c,u=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:v,remove:x}}=c;let m;const g=Qh(e);g&&t!=null&&t.pendingBranch&&(m=t.pendingId,t.deps++);const E=e.props?Qc(e.props.timeout):void 0,_={vnode:e,parent:t,parentComponent:r,isSVG:o,container:n,hiddenContainer:s,anchor:i,deps:0,pendingId:0,timeout:typeof E=="number"?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(T=!1,P=!1){const{vnode:j,activeBranch:O,pendingBranch:M,pendingId:B,effects:H,parentComponent:F,container:K}=_;if(_.isHydrating)_.isHydrating=!1;else if(!T){const L=O&&M.transition&&M.transition.mode==="out-in";L&&(O.transition.afterLeave=()=>{B===_.pendingId&&d(M,K,J,0)});let{anchor:J}=_;O&&(J=p(O),h(O,F,_,!0)),L||d(M,K,J,0)}Ur(_,M),_.pendingBranch=null,_.isInFallback=!1;let w=_.parent,$=!1;for(;w;){if(w.pendingBranch){w.effects.push(...H),$=!0;break}w=w.parent}$||xu(H),_.effects=[],g&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Kn(j,"onResolve")},fallback(T){if(!_.pendingBranch)return;const{vnode:P,activeBranch:j,parentComponent:O,container:M,isSVG:B}=_;Kn(P,"onFallback");const H=p(j),F=()=>{_.isInFallback&&(f(null,T,M,H,O,null,B,a,l),Ur(_,T))},K=T.transition&&T.transition.mode==="out-in";K&&(j.transition.afterLeave=F),_.isInFallback=!0,h(j,O,null,!0),K||F()},move(T,P,j){_.activeBranch&&d(_.activeBranch,T,P,j),_.container=T},next(){return _.activeBranch&&p(_.activeBranch)},registerDep(T,P){const j=!!_.pendingBranch;j&&_.deps++;const O=T.vnode.el;T.asyncDep.catch(M=>{on(M,T,0)}).then(M=>{if(T.isUnmounted||_.isUnmounted||_.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:B}=T;io(T,M,!1),O&&(B.el=O);const H=!O&&T.subTree.el;P(T,B,v(O||T.subTree.el),O?null:p(T.subTree),_,o,l),H&&x(H),Xo(T,B.el),j&&--_.deps===0&&_.resolve()})},unmount(T,P){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,r,T,P),_.pendingBranch&&h(_.pendingBranch,r,T,P)}};return _}function Xh(e,t,r,n,s,i,o,a,l){const c=t.suspense=Yo(t,n,r,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),u=l(e,c.pendingBranch=t.ssContent,r,c,i,o);return c.deps===0&&c.resolve(!1,!0),u}function Yh(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=Wa(n?r.default:r),e.ssFallback=n?Wa(r.fallback):ne(Me)}function Wa(e){let t;if(te(e)){const r=Kr&&e._c;r&&(e._d=!1,be()),e=e(),r&&(e._d=!0,t=tt,Qu())}return Q(e)&&(e=zh(e)),e=et(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Cu(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):xu(e)}function Ur(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e,s=r.el=t.el;n&&n.subTree===r&&(n.vnode.el=s,Xo(n,s))}function Qh(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Su(e,t){return Qo(e,null,t)}const hs={};function Rt(e,t,r){return Qo(e,t,r)}function Qo(e,t,{immediate:r,deep:n,flush:s,onTrack:i,onTrigger:o}=ve){var a;const l=sh()===((a=Te)==null?void 0:a.scope)?Te:null;let c,u=!1,f=!1;if(Se(e)?(c=()=>e.value,u=Ms(e)):Fr(e)?(c=()=>e,n=!0):Q(e)?(f=!0,u=e.some(_=>Fr(_)||Ms(_)),c=()=>e.map(_=>{if(Se(_))return _.value;if(Fr(_))return vr(_);if(te(_))return er(_,l,2)})):te(e)?t?c=()=>er(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return d&&d(),nt(e,l,3,[h])}:c=pt,t&&n){const _=c;c=()=>vr(_())}let d,h=_=>{d=g.onStop=()=>{er(_,l,4)}},p;if(Jr)if(h=pt,t?r&&nt(t,l,3,[c(),f?[]:void 0,h]):c(),s==="sync"){const _=Hp();p=_.__watcherHandles||(_.__watcherHandles=[])}else return pt;let v=f?new Array(e.length).fill(hs):hs;const x=()=>{if(g.active)if(t){const _=g.run();(n||u||(f?_.some((T,P)=>Bn(T,v[P])):Bn(_,v)))&&(d&&d(),nt(t,l,3,[_,v===hs?void 0:f&&v[0]===hs?[]:v,h]),v=_)}else g.run()};x.allowRecurse=!!t;let m;s==="sync"?m=x:s==="post"?m=()=>Pe(x,l&&l.suspense):(x.pre=!0,l&&(x.id=l.uid),m=()=>ei(x));const g=new zo(c,m);t?r?x():v=g.run():s==="post"?Pe(g.run.bind(g),l&&l.suspense):g.run();const E=()=>{g.stop(),l&&l.scope&&Do(l.scope.effects,g)};return p&&p.push(E),E}function Zh(e,t,r){const n=this.proxy,s=we(e)?e.includes(".")?Au(n,e):()=>n[e]:e.bind(n,n);let i;te(t)?i=t:(i=t.handler,r=t);const o=Te;sr(this);const a=Qo(s,i.bind(n),r);return o?sr(o):rr(),a}function Au(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;s{vr(r,t)});else if(Yc(e))for(const r in e)vr(e[r],t);return e}function hO(e,t){const r=$e;if(r===null)return e;const n=ii(r)||r.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),ln(()=>{e.isUnmounting=!0}),e}const Qe=[Function,Array],$u={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qe,onEnter:Qe,onAfterEnter:Qe,onEnterCancelled:Qe,onBeforeLeave:Qe,onLeave:Qe,onAfterLeave:Qe,onLeaveCancelled:Qe,onBeforeAppear:Qe,onAppear:Qe,onAfterAppear:Qe,onAppearCancelled:Qe},tp={name:"BaseTransition",props:$u,setup(e,{slots:t}){const r=or(),n=ep();let s;return()=>{const i=t.default&&Ru(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const v of i)if(v.type!==Me){o=v;break}}const a=ie(e),{mode:l}=a;if(n.isLeaving)return ki(o);const c=Ja(o);if(!c)return ki(o);const u=eo(c,a,n,r);Bs(c,u);const f=r.subTree,d=f&&Ja(f);let h=!1;const{getTransitionKey:p}=c.type;if(p){const v=p();s===void 0?s=v:v!==s&&(s=v,h=!0)}if(d&&d.type!==Me&&(!dt(c,d)||h)){const v=eo(d,a,n,r);if(Bs(d,v),l==="out-in")return n.isLeaving=!0,v.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},ki(o);l==="in-out"&&c.type!==Me&&(v.delayLeave=(x,m,g)=>{const E=Pu(n,d);E[String(d.key)]=d,x._leaveCb=()=>{m(),x._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=g})}return o}}},rp=tp;function Pu(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 eo(e,t,r,n){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:v,onAppear:x,onAfterAppear:m,onAppearCancelled:g}=t,E=String(e.key),_=Pu(r,e),T=(O,M)=>{O&&nt(O,n,9,M)},P=(O,M)=>{const B=M[1];T(O,M),Q(O)?O.every(H=>H.length<=1)&&B():O.length<=1&&B()},j={mode:i,persisted:o,beforeEnter(O){let M=a;if(!r.isMounted)if(s)M=v||a;else return;O._leaveCb&&O._leaveCb(!0);const B=_[E];B&&dt(e,B)&&B.el._leaveCb&&B.el._leaveCb(),T(M,[O])},enter(O){let M=l,B=c,H=u;if(!r.isMounted)if(s)M=x||l,B=m||c,H=g||u;else return;let F=!1;const K=O._enterCb=w=>{F||(F=!0,w?T(H,[O]):T(B,[O]),j.delayedLeave&&j.delayedLeave(),O._enterCb=void 0)};M?P(M,[O,K]):K()},leave(O,M){const B=String(e.key);if(O._enterCb&&O._enterCb(!0),r.isUnmounting)return M();T(f,[O]);let H=!1;const F=O._leaveCb=K=>{H||(H=!0,M(),K?T(p,[O]):T(h,[O]),O._leaveCb=void 0,_[B]===e&&delete _[B])};_[B]=e,d?P(d,[O,F]):F()},clone(O){return eo(O,t,r,n)}};return j}function ki(e){if(ns(e))return e=Mt(e),e.children=null,e}function Ja(e){return ns(e)?e.children?e.children[0]:void 0:e}function Bs(e,t){e.shapeFlag&6&&e.component?Bs(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 Ru(e,t=!1,r){let n=[],s=0;for(let i=0;i1)for(let i=0;iCe({name:e.name},t,{setup:e}))():e}const _r=e=>!!e.type.__asyncLoader;function Va(e){te(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:s=200,timeout:i,suspensible:o=!0,onError:a}=e;let l=null,c,u=0;const f=()=>(u++,l=null,d()),d=()=>{let h;return l||(h=l=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),a)return new Promise((v,x)=>{a(p,()=>v(f()),()=>x(p),u+1)});throw p}).then(p=>h!==l&&l?l:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),c=p,p)))};return Ye({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const h=Te;if(c)return()=>Ei(c,h);const p=g=>{l=null,on(g,h,13,!n)};if(o&&h.suspense||Jr)return d().then(g=>()=>Ei(g,h)).catch(g=>(p(g),()=>n?ne(n,{error:g}):null));const v=Oe(!1),x=Oe(),m=Oe(!!s);return s&&setTimeout(()=>{m.value=!1},s),i!=null&&setTimeout(()=>{if(!v.value&&!x.value){const g=new Error(`Async component timed out after ${i}ms.`);p(g),x.value=g}},i),d().then(()=>{v.value=!0,h.parent&&ns(h.parent.vnode)&&ei(h.parent.update)}).catch(g=>{p(g),x.value=g}),()=>{if(v.value&&c)return Ei(c,h);if(x.value&&n)return ne(n,{error:x.value});if(r&&!m.value)return ne(r)}}})}function Ei(e,t){const{ref:r,props:n,children:s,ce:i}=t.vnode,o=ne(e,n,s);return o.ref=r,o.ce=i,delete t.vnode.ce,o}const ns=e=>e.type.__isKeepAlive,np={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=or(),n=r.ctx;if(!n.renderer)return()=>{const g=t.default&&t.default();return g&&g.length===1?g[0]:g};const s=new Map,i=new Set;let o=null;const a=r.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=n,d=f("div");n.activate=(g,E,_,T,P)=>{const j=g.component;c(g,E,_,0,a),l(j.vnode,g,E,_,j,a,T,g.slotScopeIds,P),Pe(()=>{j.isDeactivated=!1,j.a&&Cn(j.a);const O=g.props&&g.props.onVnodeMounted;O&&Be(O,j.parent,g)},a)},n.deactivate=g=>{const E=g.component;c(g,d,null,1,a),Pe(()=>{E.da&&Cn(E.da);const _=g.props&&g.props.onVnodeUnmounted;_&&Be(_,E.parent,g),E.isDeactivated=!0},a)};function h(g){Ti(g),u(g,r,a,!0)}function p(g){s.forEach((E,_)=>{const T=oo(E.type);T&&(!g||!g(T))&&v(_)})}function v(g){const E=s.get(g);!o||!dt(E,o)?h(E):o&&Ti(o),s.delete(g),i.delete(g)}Rt(()=>[e.include,e.exclude],([g,E])=>{g&&p(_=>kn(g,_)),E&&p(_=>!kn(E,_))},{flush:"post",deep:!0});let x=null;const m=()=>{x!=null&&s.set(x,Oi(r.subTree))};return an(m),Nu(m),ln(()=>{s.forEach(g=>{const{subTree:E,suspense:_}=r,T=Oi(E);if(g.type===T.type&&g.key===T.key){Ti(T);const P=T.component.da;P&&Pe(P,_);return}h(g)})}),()=>{if(x=null,!t.default)return null;const g=t.default(),E=g[0];if(g.length>1)return o=null,g;if(!Wr(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return o=null,E;let _=Oi(E);const T=_.type,P=oo(_r(_)?_.type.__asyncResolved||{}:T),{include:j,exclude:O,max:M}=e;if(j&&(!P||!kn(j,P))||O&&P&&kn(O,P))return o=_,E;const B=_.key==null?T:_.key,H=s.get(B);return _.el&&(_=Mt(_),E.shapeFlag&128&&(E.ssContent=_)),x=B,H?(_.el=H.el,_.component=H.component,_.transition&&Bs(_,_.transition),_.shapeFlag|=512,i.delete(B),i.add(B)):(i.add(B),M&&i.size>parseInt(M,10)&&v(i.values().next().value)),_.shapeFlag|=256,o=_,Tu(E.type)?E:_}}},sp=np;function kn(e,t){return Q(e)?e.some(r=>kn(r,t)):we(e)?e.split(",").includes(t):qd(e)?e.test(t):!1}function Iu(e,t){Lu(e,"a",t)}function ju(e,t){Lu(e,"da",t)}function Lu(e,t,r=Te){const n=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(ni(t,n,r),r){let s=r.parent;for(;s&&s.parent;)ns(s.parent.vnode)&&ip(n,t,r,s),s=s.parent}}function ip(e,t,r,n){const s=ni(t,e,n,!0);Zo(()=>{Do(n[t],s)},r)}function Ti(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Oi(e){return e.shapeFlag&128?e.ssContent:e}function ni(e,t,r=Te,n=!1){if(r){const s=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;nn(),sr(r);const a=nt(t,r,e,o);return rr(),sn(),a});return n?s.unshift(i):s.push(i),i}}const Ut=e=>(t,r=Te)=>(!Jr||e==="sp")&&ni(e,(...n)=>t(...n),r),op=Ut("bm"),an=Ut("m"),ap=Ut("bu"),Nu=Ut("u"),ln=Ut("bum"),Zo=Ut("um"),lp=Ut("sp"),cp=Ut("rtg"),up=Ut("rtc");function Mu(e,t=Te){ni("ec",e,t)}const ea="components";function fp(e,t){return Bu(ea,e,!0,t)||e}const Du=Symbol.for("v-ndc");function Fu(e){return we(e)?Bu(ea,e,!1)||e:e||Du}function Bu(e,t,r=!0,n=!1){const s=$e||Te;if(s){const i=s.type;if(e===ea){const a=oo(i,!1);if(a&&(a===t||a===wt(t)||a===Ys(wt(t))))return i}const o=Ga(s[e]||i[e],t)||Ga(s.appContext[e],t);return!o&&n?i:o}}function Ga(e,t){return e&&(e[t]||e[wt(t)]||e[Ys(wt(t))])}function dp(e,t,r,n){let s;const i=r&&r[n];if(Q(e)||we(e)){s=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,i&&i[a]));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,l=o.length;aWr(t)?!(t.type===Me||t.type===Ne&&!Uu(t.children)):!0)?e:null}const to=e=>e?rf(e)?ii(e)||e.proxy:to(e.parent):null,Sn=Ce(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=>to(e.parent),$root:e=>to(e.root),$emit:e=>e.emit,$options:e=>ta(e),$forceUpdate:e=>e.f||(e.f=()=>ei(e.update)),$nextTick:e=>e.n||(e.n=Or.bind(e.proxy)),$watch:e=>Zh.bind(e)}),Ci=(e,t)=>e!==ve&&!e.__isScriptSetup&&ae(e,t),hp={get({_:e},t){const{ctx:r,setupState:n,data:s,props:i,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return s[t];case 4:return r[t];case 3:return i[t]}else{if(Ci(n,t))return o[t]=1,n[t];if(s!==ve&&ae(s,t))return o[t]=2,s[t];if((c=e.propsOptions[0])&&ae(c,t))return o[t]=3,i[t];if(r!==ve&&ae(r,t))return o[t]=4,r[t];ro&&(o[t]=0)}}const u=Sn[t];let f,d;if(u)return t==="$attrs"&&He(e,"get",t),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(r!==ve&&ae(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,ae(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:s,ctx:i}=e;return Ci(s,t)?(s[t]=r,!0):n!==ve&&ae(n,t)?(n[t]=r,!0):ae(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!==ve&&ae(e,o)||Ci(t,o)||(a=i[0])&&ae(a,o)||ae(n,o)||ae(Sn,o)||ae(s.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ae(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function pp(){return gp().slots}function gp(){const e=or();return e.setupContext||(e.setupContext=sf(e))}function Xa(e){return Q(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function pO(e){const t=or();let r=e();return rr(),Bo(r)&&(r=r.catch(n=>{throw sr(t),n})),[r,()=>sr(t)]}let ro=!0;function yp(e){const t=ta(e),r=e.proxy,n=e.ctx;ro=!1,t.beforeCreate&&Ya(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:v,deactivated:x,beforeDestroy:m,beforeUnmount:g,destroyed:E,unmounted:_,render:T,renderTracked:P,renderTriggered:j,errorCaptured:O,serverPrefetch:M,expose:B,inheritAttrs:H,components:F,directives:K,filters:w}=t;if(c&&mp(c,n,null),o)for(const J in o){const Y=o[J];te(Y)&&(n[J]=Y.bind(r))}if(s){const J=s.call(r,r);ye(J)&&(e.data=xt(J))}if(ro=!0,i)for(const J in i){const Y=i[J],ee=te(Y)?Y.bind(r,r):te(Y.get)?Y.get.bind(r,r):pt,Ae=!te(Y)&&te(Y.set)?Y.set.bind(r):pt,ke=ue({get:ee,set:Ae});Object.defineProperty(n,J,{enumerable:!0,configurable:!0,get:()=>ke.value,set:_e=>ke.value=_e})}if(a)for(const J in a)Hu(a[J],n,r,J);if(l){const J=te(l)?l.call(r):l;Reflect.ownKeys(J).forEach(Y=>{Hr(Y,J[Y])})}u&&Ya(u,e,"c");function L(J,Y){Q(Y)?Y.forEach(ee=>J(ee.bind(r))):Y&&J(Y.bind(r))}if(L(op,f),L(an,d),L(ap,h),L(Nu,p),L(Iu,v),L(ju,x),L(Mu,O),L(up,P),L(cp,j),L(ln,g),L(Zo,_),L(lp,M),Q(B))if(B.length){const J=e.exposed||(e.exposed={});B.forEach(Y=>{Object.defineProperty(J,Y,{get:()=>r[Y],set:ee=>r[Y]=ee})})}else e.exposed||(e.exposed={});T&&e.render===pt&&(e.render=T),H!=null&&(e.inheritAttrs=H),F&&(e.components=F),K&&(e.directives=K)}function mp(e,t,r=pt){Q(e)&&(e=no(e));for(const n in e){const s=e[n];let i;ye(s)?"default"in s?i=Ge(s.from||n,s.default,!0):i=Ge(s.from||n):i=Ge(s),Se(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function Ya(e,t,r){nt(Q(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Hu(e,t,r,n){const s=n.includes(".")?Au(r,n):()=>r[n];if(we(e)){const i=t[e];te(i)&&Rt(s,i)}else if(te(e))Rt(s,e.bind(r));else if(ye(e))if(Q(e))e.forEach(i=>Hu(i,t,r,n));else{const i=te(e.handler)?e.handler.bind(r):t[e.handler];te(i)&&Rt(s,i,e)}}function ta(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!r&&!n?l=t:(l={},s.length&&s.forEach(c=>Us(l,c,o,!0)),Us(l,t,o)),ye(t)&&i.set(t,l),l}function Us(e,t,r,n=!1){const{mixins:s,extends:i}=t;i&&Us(e,i,r,!0),s&&s.forEach(o=>Us(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const a=vp[o]||r&&r[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const vp={data:Qa,props:Za,emits:Za,methods:En,computed:En,beforeCreate:je,created:je,beforeMount:je,mounted:je,beforeUpdate:je,updated:je,beforeDestroy:je,beforeUnmount:je,destroyed:je,unmounted:je,activated:je,deactivated:je,errorCaptured:je,serverPrefetch:je,components:En,directives:En,watch:_p,provide:Qa,inject:bp};function Qa(e,t){return t?e?function(){return Ce(te(e)?e.call(this,this):e,te(t)?t.call(this,this):t)}:t:e}function bp(e,t){return En(no(e),no(t))}function no(e){if(Q(e)){const t={};for(let r=0;r1)return r&&te(t)?t.call(n&&n.proxy):t}}function qu(){return!!(Te||$e||Wn)}function kp(e,t,r,n=!1){const s={},i={};js(i,si,1),e.propsDefaults=Object.create(null),Ku(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);r?e.props=n?s:rs(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Ep(e,t,r,n){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=ie(s),[l]=e.propsOptions;let c=!1;if((n||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,h]=Wu(f,t,!0);Ce(o,d),h&&a.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return ye(e)&&n.set(e,Mr),Mr;if(Q(i))for(let u=0;u-1,h[1]=v<0||p-1||ae(h,"default"))&&a.push(f)}}}const c=[o,a];return ye(e)&&n.set(e,c),c}function el(e){return e[0]!=="$"}function tl(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function rl(e,t){return tl(e)===tl(t)}function nl(e,t){return Q(t)?t.findIndex(r=>rl(r,e)):te(t)&&rl(t,e)?0:-1}const Ju=e=>e[0]==="_"||e==="$stable",ra=e=>Q(e)?e.map(et):[et(e)],Tp=(e,t,r)=>{if(t._n)return t;const n=Ve((...s)=>ra(t(...s)),r);return n._c=!1,n},Vu=(e,t,r)=>{const n=e._ctx;for(const s in e){if(Ju(s))continue;const i=e[s];if(te(i))t[s]=Tp(s,i,n);else if(i!=null){const o=ra(i);t[s]=()=>o}}},Gu=(e,t)=>{const r=ra(t);e.slots.default=()=>r},Op=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=ie(t),js(t,"_",r)):Vu(t,e.slots={})}else e.slots={},t&&Gu(e,t);js(e.slots,si,1)},Cp=(e,t,r)=>{const{vnode:n,slots:s}=e;let i=!0,o=ve;if(n.shapeFlag&32){const a=t._;a?r&&a===1?i=!1:(Ce(s,t),!r&&a===1&&delete s._):(i=!t.$stable,Vu(t,s)),o=t}else t&&(Gu(e,t),o={default:1});if(i)for(const a in s)!Ju(a)&&!(a in o)&&delete s[a]};function Hs(e,t,r,n,s=!1){if(Q(e)){e.forEach((d,h)=>Hs(d,t&&(Q(t)?t[h]:t),r,n,s));return}if(_r(n)&&!s)return;const i=n.shapeFlag&4?ii(n.component)||n.component.proxy:n.el,o=s?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===ve?a.refs={}:a.refs,f=a.setupState;if(c!=null&&c!==l&&(we(c)?(u[c]=null,ae(f,c)&&(f[c]=null)):Se(c)&&(c.value=null)),te(l))er(l,a,12,[o,u]);else{const d=we(l),h=Se(l);if(d||h){const p=()=>{if(e.f){const v=d?ae(f,l)?f[l]:u[l]:l.value;s?Q(v)&&Do(v,i):Q(v)?v.includes(i)||v.push(i):d?(u[l]=[i],ae(f,l)&&(f[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else d?(u[l]=o,ae(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(u[e.k]=o))};o?(p.id=-1,Pe(p,r)):p()}}}let Wt=!1;const ps=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",gs=e=>e.nodeType===8;function Sp(e){const{mt:t,p:r,o:{patchProp:n,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:c}}=e,u=(m,g)=>{if(!g.hasChildNodes()){r(null,m,g),Ds(),g._vnode=m;return}Wt=!1,f(g.firstChild,m,null,null,null),Ds(),g._vnode=m,Wt&&console.error("Hydration completed but contains mismatches.")},f=(m,g,E,_,T,P=!1)=>{const j=gs(m)&&m.data==="[",O=()=>v(m,g,E,_,T,j),{type:M,ref:B,shapeFlag:H,patchFlag:F}=g;let K=m.nodeType;g.el=m,F===-2&&(P=!1,g.dynamicChildren=null);let w=null;switch(M){case qr:K!==3?g.children===""?(l(g.el=s(""),o(m),m),w=m):w=O():(m.data!==g.children&&(Wt=!0,m.data=g.children),w=i(m));break;case Me:K!==8||j?w=O():w=i(m);break;case An:if(j&&(m=i(m),K=m.nodeType),K===1||K===3){w=m;const $=!g.children.length;for(let L=0;L{P=P||!!g.dynamicChildren;const{type:j,props:O,patchFlag:M,shapeFlag:B,dirs:H}=g,F=j==="input"&&H||j==="option";if(F||M!==-1){if(H&&bt(g,null,E,"created"),O)if(F||!P||M&48)for(const w in O)(F&&w.endsWith("value")||es(w)&&!On(w))&&n(m,w,null,O[w],!1,void 0,E);else O.onClick&&n(m,"onClick",null,O.onClick,!1,void 0,E);let K;if((K=O&&O.onVnodeBeforeMount)&&Be(K,E,g),H&&bt(g,null,E,"beforeMount"),((K=O&&O.onVnodeMounted)||H)&&Cu(()=>{K&&Be(K,E,g),H&&bt(g,null,E,"mounted")},_),B&16&&!(O&&(O.innerHTML||O.textContent))){let w=h(m.firstChild,g,m,E,_,T,P);for(;w;){Wt=!0;const $=w;w=w.nextSibling,a($)}}else B&8&&m.textContent!==g.children&&(Wt=!0,m.textContent=g.children)}return m.nextSibling},h=(m,g,E,_,T,P,j)=>{j=j||!!g.dynamicChildren;const O=g.children,M=O.length;for(let B=0;B{const{slotScopeIds:j}=g;j&&(T=T?T.concat(j):j);const O=o(m),M=h(i(m),g,O,E,_,T,P);return M&&gs(M)&&M.data==="]"?i(g.anchor=M):(Wt=!0,l(g.anchor=c("]"),O,M),M)},v=(m,g,E,_,T,P)=>{if(Wt=!0,g.el=null,P){const M=x(m);for(;;){const B=i(m);if(B&&B!==M)a(B);else break}}const j=i(m),O=o(m);return a(m),r(null,g,O,j,E,_,ps(O),T),j},x=m=>{let g=0;for(;m;)if(m=i(m),m&&gs(m)&&(m.data==="["&&g++,m.data==="]")){if(g===0)return i(m);g--}return m};return[u,f]}const Pe=Cu;function Ap(e){return Xu(e)}function $p(e){return Xu(e,Sp)}function Xu(e,t){const r=Gi();r.__VUE__=!0;const{insert:n,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=pt,insertStaticContent:p}=e,v=(y,b,k,C=null,A=null,R=null,q=!1,N=null,D=!!b.dynamicChildren)=>{if(y===b)return;y&&!dt(y,b)&&(C=S(y),_e(y,A,R,!0),y=null),b.patchFlag===-2&&(D=!1,b.dynamicChildren=null);const{type:I,ref:X,shapeFlag:W}=b;switch(I){case qr:x(y,b,k,C);break;case Me:m(y,b,k,C);break;case An:y==null&&g(b,k,C,q);break;case Ne:F(y,b,k,C,A,R,q,N,D);break;default:W&1?T(y,b,k,C,A,R,q,N,D):W&6?K(y,b,k,C,A,R,q,N,D):(W&64||W&128)&&I.process(y,b,k,C,A,R,q,N,D,U)}X!=null&&A&&Hs(X,y&&y.ref,R,b||y,!b)},x=(y,b,k,C)=>{if(y==null)n(b.el=a(b.children),k,C);else{const A=b.el=y.el;b.children!==y.children&&c(A,b.children)}},m=(y,b,k,C)=>{y==null?n(b.el=l(b.children||""),k,C):b.el=y.el},g=(y,b,k,C)=>{[y.el,y.anchor]=p(y.children,b,k,C,y.el,y.anchor)},E=({el:y,anchor:b},k,C)=>{let A;for(;y&&y!==b;)A=d(y),n(y,k,C),y=A;n(b,k,C)},_=({el:y,anchor:b})=>{let k;for(;y&&y!==b;)k=d(y),s(y),y=k;s(b)},T=(y,b,k,C,A,R,q,N,D)=>{q=q||b.type==="svg",y==null?P(b,k,C,A,R,q,N,D):M(y,b,A,R,q,N,D)},P=(y,b,k,C,A,R,q,N)=>{let D,I;const{type:X,props:W,shapeFlag:G,transition:Z,dirs:re}=y;if(D=y.el=o(y.type,R,W&&W.is,W),G&8?u(D,y.children):G&16&&O(y.children,D,null,C,A,R&&X!=="foreignObject",q,N),re&&bt(y,null,C,"created"),j(D,y,y.scopeId,q,C),W){for(const le in W)le!=="value"&&!On(le)&&i(D,le,null,W[le],R,y.children,C,A,xe);"value"in W&&i(D,"value",null,W.value),(I=W.onVnodeBeforeMount)&&Be(I,C,y)}re&&bt(y,null,C,"beforeMount");const fe=(!A||A&&!A.pendingBranch)&&Z&&!Z.persisted;fe&&Z.beforeEnter(D),n(D,b,k),((I=W&&W.onVnodeMounted)||fe||re)&&Pe(()=>{I&&Be(I,C,y),fe&&Z.enter(D),re&&bt(y,null,C,"mounted")},A)},j=(y,b,k,C,A)=>{if(k&&h(y,k),C)for(let R=0;R{for(let I=D;I{const N=b.el=y.el;let{patchFlag:D,dynamicChildren:I,dirs:X}=b;D|=y.patchFlag&16;const W=y.props||ve,G=b.props||ve;let Z;k&&lr(k,!1),(Z=G.onVnodeBeforeUpdate)&&Be(Z,k,b,y),X&&bt(b,y,k,"beforeUpdate"),k&&lr(k,!0);const re=A&&b.type!=="foreignObject";if(I?B(y.dynamicChildren,I,N,k,C,re,R):q||Y(y,b,N,null,k,C,re,R,!1),D>0){if(D&16)H(N,b,W,G,k,C,A);else if(D&2&&W.class!==G.class&&i(N,"class",null,G.class,A),D&4&&i(N,"style",W.style,G.style,A),D&8){const fe=b.dynamicProps;for(let le=0;le{Z&&Be(Z,k,b,y),X&&bt(b,y,k,"updated")},C)},B=(y,b,k,C,A,R,q)=>{for(let N=0;N{if(k!==C){if(k!==ve)for(const N in k)!On(N)&&!(N in C)&&i(y,N,k[N],null,q,b.children,A,R,xe);for(const N in C){if(On(N))continue;const D=C[N],I=k[N];D!==I&&N!=="value"&&i(y,N,I,D,q,b.children,A,R,xe)}"value"in C&&i(y,"value",k.value,C.value)}},F=(y,b,k,C,A,R,q,N,D)=>{const I=b.el=y?y.el:a(""),X=b.anchor=y?y.anchor:a("");let{patchFlag:W,dynamicChildren:G,slotScopeIds:Z}=b;Z&&(N=N?N.concat(Z):Z),y==null?(n(I,k,C),n(X,k,C),O(b.children,k,X,A,R,q,N,D)):W>0&&W&64&&G&&y.dynamicChildren?(B(y.dynamicChildren,G,k,A,R,q,N),(b.key!=null||A&&b===A.subTree)&&Yu(y,b,!0)):Y(y,b,k,X,A,R,q,N,D)},K=(y,b,k,C,A,R,q,N,D)=>{b.slotScopeIds=N,y==null?b.shapeFlag&512?A.ctx.activate(b,k,C,q,D):w(b,k,C,A,R,q,D):$(y,b,D)},w=(y,b,k,C,A,R,q)=>{const N=y.component=Np(y,C,A);if(ns(y)&&(N.ctx.renderer=U),Mp(N),N.asyncDep){if(A&&A.registerDep(N,L),!y.el){const D=N.subTree=ne(Me);m(null,D,b,k)}return}L(N,y,b,k,A,R,q)},$=(y,b,k)=>{const C=b.component=y.component;if(Wh(y,b,k))if(C.asyncDep&&!C.asyncResolved){J(C,b,k);return}else C.next=b,Bh(C.update),C.update();else b.el=y.el,C.vnode=b},L=(y,b,k,C,A,R,q)=>{const N=()=>{if(y.isMounted){let{next:X,bu:W,u:G,parent:Z,vnode:re}=y,fe=X,le;lr(y,!1),X?(X.el=re.el,J(y,X,q)):X=re,W&&Cn(W),(le=X.props&&X.props.onVnodeBeforeUpdate)&&Be(le,Z,X,re),lr(y,!0);const Ee=xi(y),lt=y.subTree;y.subTree=Ee,v(lt,Ee,f(lt.el),S(lt),y,A,R),X.el=Ee.el,fe===null&&Xo(y,Ee.el),G&&Pe(G,A),(le=X.props&&X.props.onVnodeUpdated)&&Pe(()=>Be(le,Z,X,re),A)}else{let X;const{el:W,props:G}=b,{bm:Z,m:re,parent:fe}=y,le=_r(b);if(lr(y,!1),Z&&Cn(Z),!le&&(X=G&&G.onVnodeBeforeMount)&&Be(X,fe,b),lr(y,!0),W&&se){const Ee=()=>{y.subTree=xi(y),se(W,y.subTree,y,A,null)};le?b.type.__asyncLoader().then(()=>!y.isUnmounted&&Ee()):Ee()}else{const Ee=y.subTree=xi(y);v(null,Ee,k,C,y,A,R),b.el=Ee.el}if(re&&Pe(re,A),!le&&(X=G&&G.onVnodeMounted)){const Ee=b;Pe(()=>Be(X,fe,Ee),A)}(b.shapeFlag&256||fe&&_r(fe.vnode)&&fe.vnode.shapeFlag&256)&&y.a&&Pe(y.a,A),y.isMounted=!0,b=k=C=null}},D=y.effect=new zo(N,()=>ei(I),y.scope),I=y.update=()=>D.run();I.id=y.uid,lr(y,!0),I()},J=(y,b,k)=>{b.component=y;const C=y.vnode.props;y.vnode=b,y.next=null,Ep(y,b.props,C,k),Cp(y,b.children,k),nn(),qa(),sn()},Y=(y,b,k,C,A,R,q,N,D=!1)=>{const I=y&&y.children,X=y?y.shapeFlag:0,W=b.children,{patchFlag:G,shapeFlag:Z}=b;if(G>0){if(G&128){Ae(I,W,k,C,A,R,q,N,D);return}else if(G&256){ee(I,W,k,C,A,R,q,N,D);return}}Z&8?(X&16&&xe(I,A,R),W!==I&&u(k,W)):X&16?Z&16?Ae(I,W,k,C,A,R,q,N,D):xe(I,A,R,!0):(X&8&&u(k,""),Z&16&&O(W,k,C,A,R,q,N,D))},ee=(y,b,k,C,A,R,q,N,D)=>{y=y||Mr,b=b||Mr;const I=y.length,X=b.length,W=Math.min(I,X);let G;for(G=0;GX?xe(y,A,R,!0,!1,W):O(b,k,C,A,R,q,N,D,W)},Ae=(y,b,k,C,A,R,q,N,D)=>{let I=0;const X=b.length;let W=y.length-1,G=X-1;for(;I<=W&&I<=G;){const Z=y[I],re=b[I]=D?Xt(b[I]):et(b[I]);if(dt(Z,re))v(Z,re,k,null,A,R,q,N,D);else break;I++}for(;I<=W&&I<=G;){const Z=y[W],re=b[G]=D?Xt(b[G]):et(b[G]);if(dt(Z,re))v(Z,re,k,null,A,R,q,N,D);else break;W--,G--}if(I>W){if(I<=G){const Z=G+1,re=ZG)for(;I<=W;)_e(y[I],A,R,!0),I++;else{const Z=I,re=I,fe=new Map;for(I=re;I<=G;I++){const Ke=b[I]=D?Xt(b[I]):et(b[I]);Ke.key!=null&&fe.set(Ke.key,I)}let le,Ee=0;const lt=G-re+1;let $r=!1,Ia=0;const hn=new Array(lt);for(I=0;I=lt){_e(Ke,A,R,!0);continue}let mt;if(Ke.key!=null)mt=fe.get(Ke.key);else for(le=re;le<=G;le++)if(hn[le-re]===0&&dt(Ke,b[le])){mt=le;break}mt===void 0?_e(Ke,A,R,!0):(hn[mt-re]=I+1,mt>=Ia?Ia=mt:$r=!0,v(Ke,b[mt],k,null,A,R,q,N,D),Ee++)}const ja=$r?Pp(hn):Mr;for(le=ja.length-1,I=lt-1;I>=0;I--){const Ke=re+I,mt=b[Ke],La=Ke+1{const{el:R,type:q,transition:N,children:D,shapeFlag:I}=y;if(I&6){ke(y.component.subTree,b,k,C);return}if(I&128){y.suspense.move(b,k,C);return}if(I&64){q.move(y,b,k,U);return}if(q===Ne){n(R,b,k);for(let W=0;WN.enter(R),A);else{const{leave:W,delayLeave:G,afterLeave:Z}=N,re=()=>n(R,b,k),fe=()=>{W(R,()=>{re(),Z&&Z()})};G?G(R,re,fe):fe()}else n(R,b,k)},_e=(y,b,k,C=!1,A=!1)=>{const{type:R,props:q,ref:N,children:D,dynamicChildren:I,shapeFlag:X,patchFlag:W,dirs:G}=y;if(N!=null&&Hs(N,null,k,y,!0),X&256){b.ctx.deactivate(y);return}const Z=X&1&&G,re=!_r(y);let fe;if(re&&(fe=q&&q.onVnodeBeforeUnmount)&&Be(fe,b,y),X&6)qe(y.component,k,C);else{if(X&128){y.suspense.unmount(k,C);return}Z&&bt(y,null,b,"beforeUnmount"),X&64?y.type.remove(y,b,k,A,U,C):I&&(R!==Ne||W>0&&W&64)?xe(I,b,k,!1,!0):(R===Ne&&W&384||!A&&X&16)&&xe(D,b,k),C&&at(y)}(re&&(fe=q&&q.onVnodeUnmounted)||Z)&&Pe(()=>{fe&&Be(fe,b,y),Z&&bt(y,null,b,"unmounted")},k)},at=y=>{const{type:b,el:k,anchor:C,transition:A}=y;if(b===Ne){ze(k,C);return}if(b===An){_(y);return}const R=()=>{s(k),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(y.shapeFlag&1&&A&&!A.persisted){const{leave:q,delayLeave:N}=A,D=()=>q(k,R);N?N(y.el,R,D):D()}else R()},ze=(y,b)=>{let k;for(;y!==b;)k=d(y),s(y),y=k;s(b)},qe=(y,b,k)=>{const{bum:C,scope:A,update:R,subTree:q,um:N}=y;C&&Cn(C),A.stop(),R&&(R.active=!1,_e(q,y,b,k)),N&&Pe(N,b),Pe(()=>{y.isUnmounted=!0},b),b&&b.pendingBranch&&!b.isUnmounted&&y.asyncDep&&!y.asyncResolved&&y.suspenseId===b.pendingId&&(b.deps--,b.deps===0&&b.resolve())},xe=(y,b,k,C=!1,A=!1,R=0)=>{for(let q=R;qy.shapeFlag&6?S(y.component.subTree):y.shapeFlag&128?y.suspense.next():d(y.anchor||y.el),z=(y,b,k)=>{y==null?b._vnode&&_e(b._vnode,null,null,!0):v(b._vnode||null,y,b,null,null,null,k),qa(),Ds(),b._vnode=y},U={p:v,um:_e,m:ke,r:at,mt:w,mc:O,pc:Y,pbc:B,n:S,o:e};let V,se;return t&&([V,se]=t(U)),{render:z,hydrate:V,createApp:xp(z,V)}}function lr({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function Yu(e,t,r=!1){const n=e.children,s=t.children;if(Q(n)&&Q(s))for(let i=0;i>1,e[r[a]]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}const Rp=e=>e.__isTeleport,Ne=Symbol.for("v-fgt"),qr=Symbol.for("v-txt"),Me=Symbol.for("v-cmt"),An=Symbol.for("v-stc"),$n=[];let tt=null;function be(e=!1){$n.push(tt=e?null:[])}function Qu(){$n.pop(),tt=$n[$n.length-1]||null}let Kr=1;function sl(e){Kr+=e}function Zu(e){return e.dynamicChildren=Kr>0?tt||Mr:null,Qu(),Kr>0&&tt&&tt.push(e),e}function ht(e,t,r,n,s,i){return Zu(It(e,t,r,n,s,i,!0))}function Ue(e,t,r,n,s){return Zu(ne(e,t,r,n,s,!0))}function Wr(e){return e?e.__v_isVNode===!0:!1}function dt(e,t){return e.type===t.type&&e.key===t.key}const si="__vInternal",ef=({key:e})=>e??null,As=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Se(e)||te(e)?{i:$e,r:e,k:t,f:!!r}:e:null);function It(e,t=null,r=null,n=0,s=null,i=e===Ne?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ef(t),ref:t&&As(t),scopeId:ri,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:$e};return a?(na(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=we(r)?8:16),Kr>0&&!o&&tt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&tt.push(l),l}const ne=Ip;function Ip(e,t=null,r=null,n=0,s=null,i=!1){if((!e||e===Du)&&(e=Me),Wr(e)){const a=Mt(e,t,!0);return r&&na(a,r),Kr>0&&!i&&tt&&(a.shapeFlag&6?tt[tt.indexOf(e)]=a:tt.push(a)),a.patchFlag|=-2,a}if(Bp(e)&&(e=e.__vccOpts),t){t=tf(t);let{class:a,style:l}=t;a&&!we(a)&&(t.class=Je(a)),ye(l)&&(du(l)&&!Q(l)&&(l=Ce({},l)),t.style=Qs(l))}const o=we(e)?1:Tu(e)?128:Rp(e)?64:ye(e)?4:te(e)?2:0;return It(e,t,r,n,s,o,i,!0)}function tf(e){return e?du(e)||si in e?Ce({},e):e:null}function Mt(e,t,r=!1){const{props:n,ref:s,patchFlag:i,children:o}=e,a=t?sa(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&ef(a),ref:t&&t.ref?r&&s?Q(s)?s.concat(As(t)):[s,As(t)]:As(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mt(e.ssContent),ssFallback:e.ssFallback&&Mt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function zr(e=" ",t=0){return ne(qr,null,e,t)}function gO(e,t){const r=ne(An,null,e);return r.staticCount=t,r}function Pn(e="",t=!1){return t?(be(),Ue(Me,null,e)):ne(Me,null,e)}function et(e){return e==null||typeof e=="boolean"?ne(Me):Q(e)?ne(Ne,null,e.slice()):typeof e=="object"?Xt(e):ne(qr,null,String(e))}function Xt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Mt(e)}function na(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Q(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),na(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!(si in t)?t._ctx=$e:s===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else te(t)?(t={default:t,_ctx:$e},r=32):(t=String(t),n&64?(r=16,t=[zr(t)]):r=8);e.children=t,e.shapeFlag|=r}function sa(...e){const t={};for(let r=0;rTe||$e;let ia,Pr,il="__VUE_INSTANCE_SETTERS__";(Pr=Gi()[il])||(Pr=Gi()[il]=[]),Pr.push(e=>Te=e),ia=e=>{Pr.length>1?Pr.forEach(t=>t(e)):Pr[0](e)};const sr=e=>{ia(e),e.scope.on()},rr=()=>{Te&&Te.scope.off(),ia(null)};function rf(e){return e.vnode.shapeFlag&4}let Jr=!1;function Mp(e,t=!1){Jr=t;const{props:r,children:n}=e.vnode,s=rf(e);kp(e,r,s,t),Op(e,n);const i=s?Dp(e,t):void 0;return Jr=!1,i}function Dp(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=hu(new Proxy(e.ctx,hp));const{setup:n}=r;if(n){const s=e.setupContext=n.length>1?sf(e):null;sr(e),nn();const i=er(n,e,0,[e.props,s]);if(sn(),rr(),Bo(i)){if(i.then(rr,rr),t)return i.then(o=>{io(e,o,t)}).catch(o=>{on(o,e,0)});e.asyncDep=i}else io(e,i,t)}else nf(e,t)}function io(e,t,r){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=mu(t)),nf(e,r)}let ol;function nf(e,t,r){const n=e.type;if(!e.render){if(!t&&ol&&!n.render){const s=n.template||ta(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,c=Ce(Ce({isCustomElement:i,delimiters:a},o),l);n.render=ol(s,c)}}e.render=n.render||pt}sr(e),nn(),yp(e),sn(),rr()}function Fp(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return He(e,"get","$attrs"),t[r]}}))}function sf(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return Fp(e)},slots:e.slots,emit:e.emit,expose:t}}function ii(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(mu(hu(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Sn)return Sn[r](e)},has(t,r){return r in t||r in Sn}}))}function oo(e,t=!0){return te(e)?e.displayName||e.name:e.name||t&&e.__name}function Bp(e){return te(e)&&"__vccOpts"in e}const ue=(e,t)=>Mh(e,t,Jr);function st(e,t,r){const n=arguments.length;return n===2?ye(t)&&!Q(t)?Wr(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Wr(r)&&(r=[r]),ne(e,t,r))}const Up=Symbol.for("v-scx"),Hp=()=>Ge(Up),of="3.3.4",zp="http://www.w3.org/2000/svg",pr=typeof document<"u"?document:null,al=pr&&pr.createElement("template"),qp={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?pr.createElementNS(zp,e):pr.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>pr.createTextNode(e),createComment:e=>pr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pr.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{al.innerHTML=n?`${e}`:e;const a=al.content;if(n){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function Kp(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function Wp(e,t,r){const n=e.style,s=we(r);if(r&&!s){if(t&&!we(t))for(const i in t)r[i]==null&&ao(n,i,"");for(const i in r)ao(n,i,r[i])}else{const i=n.display;s?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=i)}}const ll=/\s*!important$/;function ao(e,t,r){if(Q(r))r.forEach(n=>ao(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Jp(e,t);ll.test(r)?e.setProperty(rn(n),r.replace(ll,""),"important"):e[n]=r}}const cl=["Webkit","Moz","ms"],Si={};function Jp(e,t){const r=Si[t];if(r)return r;let n=wt(t);if(n!=="filter"&&n in e)return Si[t]=n;n=Ys(n);for(let s=0;sAi||(eg.then(()=>Ai=0),Ai=Date.now());function rg(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;nt(ng(n,r.value),t,5,[n])};return r.value=e,r.attached=tg(),r}function ng(e,t){if(Q(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 dl=/^on[a-z]/,sg=(e,t,r,n,s=!1,i,o,a,l)=>{t==="class"?Kp(e,n,s):t==="style"?Wp(e,r,n):es(t)?Mo(t)||Qp(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ig(e,t,n,s))?Gp(e,t,n,i,o,a,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Vp(e,t,n,s))};function ig(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&dl.test(t)&&te(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||dl.test(t)&&we(r)?!1:t in e}const Jt="transition",pn="animation",oi=(e,{slots:t})=>st(rp,og(e),t);oi.displayName="Transition";const af={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};oi.props=Ce({},$u,af);const cr=(e,t=[])=>{Q(e)?e.forEach(r=>r(...t)):e&&e(...t)},hl=e=>e?Q(e)?e.some(t=>t.length>1):e.length>1:!1;function og(e){const t={};for(const F in e)F in af||(t[F]=e[F]);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:l=i,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,p=ag(s),v=p&&p[0],x=p&&p[1],{onBeforeEnter:m,onEnter:g,onEnterCancelled:E,onLeave:_,onLeaveCancelled:T,onBeforeAppear:P=m,onAppear:j=g,onAppearCancelled:O=E}=t,M=(F,K,w)=>{ur(F,K?u:a),ur(F,K?c:o),w&&w()},B=(F,K)=>{F._isLeaving=!1,ur(F,f),ur(F,h),ur(F,d),K&&K()},H=F=>(K,w)=>{const $=F?j:g,L=()=>M(K,F,w);cr($,[K,L]),pl(()=>{ur(K,F?l:i),Vt(K,F?u:a),hl($)||gl(K,n,v,L)})};return Ce(t,{onBeforeEnter(F){cr(m,[F]),Vt(F,i),Vt(F,o)},onBeforeAppear(F){cr(P,[F]),Vt(F,l),Vt(F,c)},onEnter:H(!1),onAppear:H(!0),onLeave(F,K){F._isLeaving=!0;const w=()=>B(F,K);Vt(F,f),ug(),Vt(F,d),pl(()=>{F._isLeaving&&(ur(F,f),Vt(F,h),hl(_)||gl(F,n,x,w))}),cr(_,[F,w])},onEnterCancelled(F){M(F,!1),cr(E,[F])},onAppearCancelled(F){M(F,!0),cr(O,[F])},onLeaveCancelled(F){B(F),cr(T,[F])}})}function ag(e){if(e==null)return null;if(ye(e))return[$i(e.enter),$i(e.leave)];{const t=$i(e);return[t,t]}}function $i(e){return Qc(e)}function Vt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function ur(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function pl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let lg=0;function gl(e,t,r,n){const s=e._endId=++lg,i=()=>{s===e._endId&&n()};if(r)return setTimeout(i,r);const{type:o,timeout:a,propCount:l}=cg(e,t);if(!o)return n();const c=o+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=h=>{h.target===e&&++u>=l&&f()};setTimeout(()=>{u(r[p]||"").split(", "),s=n(`${Jt}Delay`),i=n(`${Jt}Duration`),o=yl(s,i),a=n(`${pn}Delay`),l=n(`${pn}Duration`),c=yl(a,l);let u=null,f=0,d=0;t===Jt?o>0&&(u=Jt,f=o,d=i.length):t===pn?c>0&&(u=pn,f=c,d=l.length):(f=Math.max(o,c),u=f>0?o>c?Jt:pn:null,d=u?u===Jt?i.length:l.length:0);const h=u===Jt&&/\b(transform|all)(,|$)/.test(n(`${Jt}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function yl(e,t){for(;e.lengthml(r)+ml(e[n])))}function ml(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function ug(){return document.body.offsetHeight}const fg=["ctrl","shift","alt","meta"],dg={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)=>fg.some(r=>e[`${r}Key`]&&!t.includes(r))},yO=(e,t)=>(r,...n)=>{for(let s=0;s{gn(e,!1)}):gn(e,t))},beforeUnmount(e,{value:t}){gn(e,t)}};function gn(e,t){e.style.display=t?e._vod:"none"}const lf=Ce({patchProp:sg},qp);let Rn,vl=!1;function hg(){return Rn||(Rn=Ap(lf))}function pg(){return Rn=vl?Rn:$p(lf),vl=!0,Rn}const gg=(...e)=>{const t=hg().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=cf(n);if(!s)return;const i=t._component;!te(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=r(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t},yg=(...e)=>{const t=pg().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=cf(n);if(s)return r(s,!0,s instanceof SVGElement)},t};function cf(e){return we(e)?document.querySelector(e):e}const mg=/"(?:_|\\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*:/,vg=/"(?: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*:/,bg=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function _g(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){wg(e);return}return t}function wg(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function uf(e,t={}){if(typeof e!="string")return e;const r=e.trim();if(e[0]==='"'&&e[e.length-1]==='"')return r.slice(1,-1);const n=r.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n!=="undefined"){if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY;if(!bg.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(mg.test(e)||vg.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,_g)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}}const xg=/#/g,kg=/&/g,Eg=/=/g,ff=/\+/g,Tg=/%5e/gi,Og=/%60/gi,Cg=/%7c/gi,Sg=/%20/gi;function Ag(e){return encodeURI(""+e).replace(Cg,"|")}function lo(e){return Ag(typeof e=="string"?e:JSON.stringify(e)).replace(ff,"%2B").replace(Sg,"+").replace(xg,"%23").replace(kg,"%26").replace(Og,"`").replace(Tg,"^")}function Pi(e){return lo(e).replace(Eg,"%3D")}function df(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function $g(e){return df(e.replace(ff," "))}function hf(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const s=df(n[1]);if(s==="__proto__"||s==="constructor")continue;const i=$g(n[2]||"");typeof t[s]<"u"?Array.isArray(t[s])?t[s].push(i):t[s]=[t[s],i]:t[s]=i}return t}function Pg(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${Pi(e)}=${lo(r)}`).join("&"):`${Pi(e)}=${lo(t)}`:Pi(e)}function Rg(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Pg(t,e[t])).join("&")}const Ig=/^\w{2,}:([/\\]{1,2})/,jg=/^\w{2,}:([/\\]{2})?/,Lg=/^([/\\]\s*){2,}[^/\\]/;function cn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Ig.test(e):jg.test(e)||(t.acceptRelative?Lg.test(e):!1)}const Ng=/\/$|\/\?/;function co(e="",t=!1){return t?Ng.test(e):e.endsWith("/")}function oa(e="",t=!1){if(!t)return(co(e)?e.slice(0,-1):e)||"/";if(!co(e,!0))return e||"/";const[r,...n]=e.split("?");return(r.slice(0,-1)||"/")+(n.length>0?`?${n.join("?")}`:"")}function pf(e="",t=!1){if(!t)return e.endsWith("/")?e:e+"/";if(co(e,!0))return e||"/";const[r,...n]=e.split("?");return r+"/"+(n.length>0?`?${n.join("?")}`:"")}function Mg(e=""){return e.startsWith("/")}function Dg(e=""){return(Mg(e)?e.slice(1):e)||"/"}function Fg(e,t){if(yf(t)||cn(e))return e;const r=oa(t);return e.startsWith(r)?e:ss(r,e)}function bl(e,t){if(yf(t))return e;const r=oa(t);if(!e.startsWith(r))return e;const n=e.slice(r.length);return n[0]==="/"?n:"/"+n}function gf(e,t){const r=is(e),n={...hf(r.search),...t};return r.search=Rg(n),Ug(r)}function yf(e){return!e||e==="/"}function Bg(e){return e&&e!=="/"}function ss(e,...t){let r=e||"";for(const n of t.filter(s=>Bg(s)))r=r?pf(r)+Dg(n):n;return r}function is(e="",t){if(!cn(e,{acceptRelative:!0}))return t?is(t+e):_l(e);const[r="",n,s=""]=(e.replace(/\\/g,"/").match(/([^/:]+:)?\/\/([^/@]+@)?(.*)/)||[]).splice(1),[i="",o=""]=(s.match(/([^#/?]*)(.*)?/)||[]).splice(1),{pathname:a,search:l,hash:c}=_l(o.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r,auth:n?n.slice(0,Math.max(0,n.length-1)):"",host:i,pathname:a,search:l,hash:c}}function _l(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function Ug(e){const t=e.pathname+(e.search?(e.search.startsWith("?")?"":"?")+e.search:"")+e.hash;return e.protocol?e.protocol+"//"+(e.auth?e.auth+"@":"")+e.host+t:t}class Hg extends Error{constructor(){super(...arguments),this.name="FetchError"}}function zg(e,t,r){let n="";t&&(n=t.message),e&&r?n=`${n} (${r.status} ${r.statusText} (${e.toString()}))`:e&&(n=`${n} (${e.toString()})`);const s=new Hg(n);return Object.defineProperty(s,"request",{get(){return e}}),Object.defineProperty(s,"response",{get(){return r}}),Object.defineProperty(s,"data",{get(){return r&&r._data}}),Object.defineProperty(s,"status",{get(){return r&&r.status}}),Object.defineProperty(s,"statusText",{get(){return r&&r.statusText}}),Object.defineProperty(s,"statusCode",{get(){return r&&r.status}}),Object.defineProperty(s,"statusMessage",{get(){return r&&r.statusText}}),s}const qg=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function wl(e="GET"){return qg.has(e.toUpperCase())}function Kg(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.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Wg=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Jg=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Vg(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Jg.test(t)?"json":Wg.has(t)||t.startsWith("text/")?"text":"blob"}function Gg(e,t,r=globalThis.Headers){const n={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(n.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(n.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){n.headers=new r((t==null?void 0:t.headers)||{});for(const[s,i]of new r((e==null?void 0:e.headers)||{}))n.headers.set(s,i)}return n}const Xg=new Set([408,409,425,429,500,502,503,504]);function mf(e){const{fetch:t,Headers:r}=e;function n(o){const a=o.error&&o.error.name==="AbortError"||!1;if(o.options.retry!==!1&&!a){let c;typeof o.options.retry=="number"?c=o.options.retry:c=wl(o.options.method)?0:1;const u=o.response&&o.response.status||500;if(c>0&&Xg.has(u))return s(o.request,{...o.options,retry:c-1})}const l=zg(o.request,o.error,o.response);throw Error.captureStackTrace&&Error.captureStackTrace(l,s),l}const s=async function(a,l={}){const c={request:a,options:Gg(l,e.defaults,r),response:void 0,error:void 0};c.options.onRequest&&await c.options.onRequest(c),typeof c.request=="string"&&(c.options.baseURL&&(c.request=Fg(c.request,c.options.baseURL)),(c.options.query||c.options.params)&&(c.request=gf(c.request,{...c.options.params,...c.options.query})),c.options.body&&wl(c.options.method)&&Kg(c.options.body)&&(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new r(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")));try{c.response=await t(c.request,c.options)}catch(f){return c.error=f,c.options.onRequestError&&await c.options.onRequestError(c),await n(c)}const u=(c.options.parseResponse?"json":c.options.responseType)||Vg(c.response.headers.get("content-type")||"");if(u==="json"){const f=await c.response.text(),d=c.options.parseResponse||uf;c.response._data=d(f)}else u==="stream"?c.response._data=c.response.body:c.response._data=await c.response[u]();return c.options.onResponse&&await c.options.onResponse(c),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await c.options.onResponseError(c),await n(c)):c.response},i=async function(a,l){return(await s(a,l))._data};return i.raw=s,i.native=t,i.create=(o={})=>mf({...e,defaults:{...e.defaults,...o}}),i}const vf=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")}(),Yg=vf.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Qg=vf.Headers,Zg=mf({fetch:Yg,Headers:Qg}),e0=Zg,t0=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},zs=t0().app,r0=()=>zs.baseURL,n0=()=>zs.buildAssetsDir,s0=(...e)=>ss(bf(),n0(),...e),bf=(...e)=>{const t=zs.cdnURL||zs.baseURL;return e.length?ss(t,...e):t};globalThis.__buildAssetsURL=s0,globalThis.__publicAssetsURL=bf;function uo(e,t={},r){for(const n in e){const s=e[n],i=r?`${r}:${n}`:n;typeof s=="object"&&s!==null?uo(s,t,i):typeof s=="function"&&(t[i]=s)}return t}const i0={run:e=>e()},o0=()=>i0,_f=typeof console.createTask<"u"?console.createTask:o0;function a0(e,t){const r=t.shift(),n=_f(r);return e.reduce((s,i)=>s.then(()=>n.run(()=>i(...t))),Promise.resolve())}function l0(e,t){const r=t.shift(),n=_f(r);return Promise.all(e.map(s=>n.run(()=>s(...t))))}function Ri(e,t){for(const r of[...e])r(t)}class c0{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)||(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=uo(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=uo(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(a0,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(l0,t,...r)}callHookWith(t,r,...n){const s=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&Ri(this._before,s);const i=t(r in this._hooks?[...this._hooks[r]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&s&&Ri(this._after,s)}):(this._after&&s&&Ri(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 wf(){return new c0}function u0(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&&t===void 0){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 l=()=>{t=o},c=()=>t===o?l:void 0;fo.add(c);try{const u=s?s.run(o,a):a();return r||(t=void 0),await u}finally{fo.delete(c)}}}}function f0(e={}){const t={};return{get(r,n={}){return t[r]||(t[r]=u0({...e,...n})),t[r],t[r]}}}const qs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},xl="__unctx__",d0=qs[xl]||(qs[xl]=f0()),h0=(e,t={})=>d0.get(e,t),kl="__unctx_async_handlers__",fo=qs[kl]||(qs[kl]=new Set);function Jn(e){const t=[];for(const s of fo){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 xf=h0("nuxt-app"),p0="__nuxt_plugin";function g0(e){let t=0;const r={provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.6.2"},get vue(){return r.vueApp.version}},payload:xt({data:{},state:{},_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:s=>v0(r,s),isHydrating:!0,deferHydration(){if(!r.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return r.isHydrating=!1,r.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};r.hooks=wf(),r.hook=r.hooks.hook,r.callHook=r.hooks.callHook,r.provide=(s,i)=>{const o="$"+s;ys(r,o,i),ys(r.vueApp.config.globalProperties,o,i)},ys(r.vueApp,"$nuxt",r),ys(r.vueApp.config.globalProperties,"$nuxt",r);{window.addEventListener("nuxt.preloadError",i=>{r.callHook("app:chunkError",{error:i.payload})}),window.useNuxtApp=window.useNuxtApp||he;const s=r.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});r.hook("app:mounted",s)}const n=xt(r.payload.config);return r.provide("config",n),r}async function y0(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),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 m0(e,t){const r=[],n=[];for(const s of t){const i=y0(e,s);s.parallel?r.push(i.catch(o=>n.push(o))):await i}if(await Promise.all(r),n.length)throw n[0]}/*! @__NO_SIDE_EFFECTS__ */function Tt(e){return typeof e=="function"?e:(delete e.name,Object.assign(e.setup||(()=>{}),e,{[p0]:!0}))}function v0(e,t,r){const n=()=>r?t(...r):t();return xf.set(e),e.vueApp.runWithContext(n)}/*! @__NO_SIDE_EFFECTS__ */function he(){var t;let e;if(qu()&&(e=(t=or())==null?void 0:t.appContext.app.$nuxt),e=e||xf.tryUse(),!e)throw new Error("[nuxt] instance unavailable");return e}/*! @__NO_SIDE_EFFECTS__ */function os(){return he().$config}function ys(e,t,r){Object.defineProperty(e,t,{get:()=>r})}const b0="modulepreload",_0=function(e,t){return e.startsWith(".")?new URL(e,t).href:e},El={},w0=function(t,r,n){if(!r||r.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=_0(i,n),i in El)return;El[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!n)for(let u=s.length-1;u>=0;u--){const f=s[u];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":b0,o||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),o)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},rt=(...e)=>w0(...e).catch(t=>{const r=new Event("nuxt.preloadError");throw r.payload=t,window.dispatchEvent(r),t}),x0=-1,k0=-2,E0=-3,T0=-4,O0=-5,C0=-6;function S0(e,t){return A0(JSON.parse(e),t)}function A0(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===x0)return;if(i===E0)return NaN;if(i===T0)return 1/0;if(i===O0)return-1/0;if(i===C0)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 l=a[0],c=t==null?void 0:t[l];if(c)return n[i]=c(s(a[1]));switch(l){case"Date":n[i]=new Date(a[1]);break;case"Set":const u=new Set;n[i]=u;for(let h=1;h>>9)+65536).toString(16).substring(1,8).toLowerCase()}function ho(e){return Tf(`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,r])=>`${t}:${String(r)}`).join(",")}`)}function j0(e){let t=9;for(const r of e)for(let n=0;n>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Of(e,t){const{props:r,tag:n}=e;if(R0.includes(n))return n;if(n==="link"&&r.rel==="canonical")return"canonical";if(r.charset)return"charset";const s=["id"];n==="meta"&&s.push("name","property","http-equiv");for(const i of s)if(typeof r[i]<"u"){const o=String(r[i]);return t&&!t(o)?!1:`${n}:${i}:${o}`}return!1}function Tl(e,t){return e==null?t||null:typeof e=="function"?e(t):e}function ms(e,t=!1,r){const{tag:n,$el:s}=e;s&&(Object.entries(n.props).forEach(([i,o])=>{o=String(o);const a=`attr:${i}`;if(i==="class"){if(!o)return;for(const l of o.split(" ")){const c=`${a}:${l}`;r&&r(e,c,()=>s.classList.remove(l)),s.classList.contains(l)||s.classList.add(l)}return}r&&!i.startsWith("data-h-")&&r(e,a,()=>s.removeAttribute(i)),(t||s.getAttribute(i)!==o)&&s.setAttribute(i,o)}),kf.includes(n.tag)&&(n.textContent&&n.textContent!==s.textContent?s.textContent=n.textContent:n.innerHTML&&n.innerHTML!==s.innerHTML&&(s.innerHTML=n.innerHTML)))}let yn=!1;async function L0(e,t={}){var d,h;const r={shouldRender:!0};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const n=t.document||e.resolvedOptions.document||window.document,s=(await e.resolveTags()).map(a);if(e.resolvedOptions.experimentalHashHydration&&(yn=yn||e._hash||!1,yn)){const p=j0(s.map(v=>v.tag._h));if(yn===p)return;yn=p}const i=e._popSideEffectQueue();e.headEntries().map(p=>p._sde).forEach(p=>{Object.entries(p).forEach(([v,x])=>{i[v]=x})});const o=(p,v,x)=>{v=`${p.renderId}:${v}`,p.entry&&(p.entry._sde[v]=x),delete i[v]};function a(p){const v=e.headEntries().find(m=>m._i===p._e),x={renderId:p._d||ho(p),$el:null,shouldRender:!0,tag:p,entry:v,markSideEffect:(m,g)=>o(x,m,g)};return x}const l=[],c={body:[],head:[]},u=p=>{e._elMap[p.renderId]=p.$el,l.push(p),o(p,"el",()=>{var v;(v=p.$el)==null||v.remove(),delete e._elMap[p.renderId]})};for(const p of s){if(await e.hooks.callHook("dom:beforeRenderTag",p),!p.shouldRender)continue;const{tag:v}=p;if(v.tag==="title"){n.title=v.textContent||"",l.push(p);continue}if(v.tag==="htmlAttrs"||v.tag==="bodyAttrs"){p.$el=n[v.tag==="htmlAttrs"?"documentElement":"body"],ms(p,!1,o),l.push(p);continue}if(p.$el=e._elMap[p.renderId],!p.$el&&v.key&&(p.$el=n.querySelector(`${(d=v.tagPosition)!=null&&d.startsWith("body")?"body":"head"} > ${v.tag}[data-h-${v._h}]`)),p.$el){p.tag._d&&ms(p),u(p);continue}c[(h=v.tagPosition)!=null&&h.startsWith("body")?"body":"head"].push(p)}const f={bodyClose:void 0,bodyOpen:void 0,head:void 0};Object.entries(c).forEach(([p,v])=>{var m;if(!v.length)return;const x=(m=n==null?void 0:n[p])==null?void 0:m.children;if(x){for(const g of[...x].reverse()){const E=g.tagName.toLowerCase();if(!Ef.includes(E))continue;const _=g.getAttributeNames().reduce((O,M)=>({...O,[M]:g.getAttribute(M)}),{}),T={tag:E,props:_};g.innerHTML&&(T.innerHTML=g.innerHTML);const P=ho(T);let j=v.findIndex(O=>(O==null?void 0:O.renderId)===P);if(j===-1){const O=Of(T);j=v.findIndex(M=>(M==null?void 0:M.tag._d)&&M.tag._d===O)}if(j!==-1){const O=v[j];O.$el=g,ms(O),u(O),delete v[j]}}v.forEach(g=>{const E=g.tag.tagPosition||"head";f[E]=f[E]||n.createDocumentFragment(),g.$el||(g.$el=n.createElement(g.tag.tag),ms(g,!0)),f[E].appendChild(g.$el),u(g)})}}),f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const p of l)await e.hooks.callHook("dom:renderTag",p);Object.values(i).forEach(p=>p())}let Ii=null;async function N0(e,t={}){function r(){return Ii=null,L0(e,t)}const n=t.delayFn||(s=>setTimeout(s,10));return Ii=Ii||new Promise(s=>n(()=>s(r())))}function M0(e){return{hooks:{"entries:updated":function(t){if(typeof(e==null?void 0:e.document)>"u"&&typeof window>"u")return;let r=e==null?void 0:e.delayFn;!r&&typeof requestAnimationFrame<"u"&&(r=requestAnimationFrame),N0(t,{document:(e==null?void 0:e.document)||window.document,delayFn:r})}}}}function D0(e){var t;return((t=e==null?void 0:e.head.querySelector('meta[name="unhead:ssr"]'))==null?void 0:t.getAttribute("content"))||!1}const Ol={base:-1,title:1},Cl={critical:-8,high:-1,low:2};function Ks(e){let t=10;const r=e.tagPriority;return typeof r=="number"?r:(e.tag==="meta"?(e.props.charset&&(t=-2),e.props["http-equiv"]==="content-security-policy"&&(t=0)):e.tag in Ol&&(t=Ol[e.tag]),typeof r=="string"&&r in Cl?t+Cl[r]:t)}const F0=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}];function B0(){return{hooks:{"tags:resolve":e=>{const t=r=>{var n;return(n=e.tags.find(s=>s._d===r))==null?void 0:n._p};for(const{prefix:r,offset:n}of F0)for(const s of e.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(r))){const i=t(s.tagPriority.replace(r,""));typeof i<"u"&&(s._p=i+n)}e.tags.sort((r,n)=>r._p-n._p).sort((r,n)=>Ks(r)-Ks(n))}}}}function U0(){return{hooks:{"tags:resolve":e=>{const{tags:t}=e;let r=t.findIndex(s=>s.tag==="titleTemplate");const n=t.findIndex(s=>s.tag==="title");if(n!==-1&&r!==-1){const s=Tl(t[r].textContent,t[n].textContent);s!==null?t[n].textContent=s||t[n].textContent:delete t[n]}else if(r!==-1){const s=Tl(t[r].textContent);s!==null&&(t[r].textContent=s,t[r].tag="title",r=-1)}r!==-1&&delete t[r],e.tags=t.filter(Boolean)}}}}function H0(){return{hooks:{"tag:normalise":function({tag:e}){typeof e.props.body<"u"&&(e.tagPosition="bodyClose",delete e.props.body)}}}}const z0=["link","style","script","noscript"];function q0(){return{hooks:{"tag:normalise":({tag:e,resolvedOptions:t})=>{t.experimentalHashHydration===!0&&(e._h=ho(e)),e.key&&z0.includes(e.tag)&&(e._h=Tf(e.key),e.props[`data-h-${e._h}`]="")}}}}const Sl=["script","link","bodyAttrs"];function K0(){const e=(t,r)=>{const n={},s={};Object.entries(r.props).forEach(([o,a])=>{o.startsWith("on")&&typeof a=="function"?s[o]=a:n[o]=a});let i;return t==="dom"&&r.tag==="script"&&typeof n.src=="string"&&typeof s.onload<"u"&&(i=n.src,delete n.src),{props:n,eventHandlers:s,delayedSrc:i}};return{hooks:{"ssr:render":function(t){t.tags=t.tags.map(r=>(!Sl.includes(r.tag)||!Object.entries(r.props).find(([n,s])=>n.startsWith("on")&&typeof s=="function")||(r.props=e("ssr",r).props),r))},"dom:beforeRenderTag":function(t){if(!Sl.includes(t.tag.tag)||!Object.entries(t.tag.props).find(([i,o])=>i.startsWith("on")&&typeof o=="function"))return;const{props:r,eventHandlers:n,delayedSrc:s}=e("dom",t.tag);Object.keys(n).length&&(t.tag.props=r,t.tag._eventHandlers=n,t.tag._delayedSrc=s)},"dom:renderTag":function(t){const r=t.$el;if(!t.tag._eventHandlers||!r)return;const n=t.tag.tag==="bodyAttrs"&&typeof window<"u"?window:r;Object.entries(t.tag._eventHandlers).forEach(([s,i])=>{const o=`${t.tag._d||t.tag._p}:${s}`,a=s.slice(2).toLowerCase(),l=`data-h-${a}`;if(t.markSideEffect(o,()=>{}),r.hasAttribute(l))return;const c=i;r.setAttribute(l,""),n.addEventListener(a,c),t.entry&&(t.entry._sde[o]=()=>{n.removeEventListener(a,c),r.removeAttribute(l)})}),t.tag._delayedSrc&&r.setAttribute("src",t.tag._delayedSrc)}}}}const W0=["templateParams","htmlAttrs","bodyAttrs"];function J0(){return{hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(n=>{e.props[n]&&(e.key=e.props[n],delete e.props[n])});const r=Of(e)||(e.key?`${e.tag}:${e.key}`:!1);r&&(e._d=r)},"tags:resolve":function(e){const t={};e.tags.forEach(n=>{const s=(n.key?`${n.tag}:${n.key}`:n._d)||n._p,i=t[s];if(i){let a=n==null?void 0:n.tagDuplicateStrategy;if(!a&&W0.includes(n.tag)&&(a="merge"),a==="merge"){const l=i.props;["class","style"].forEach(c=>{n.props[c]&&l[c]&&(c==="style"&&!l[c].endsWith(";")&&(l[c]+=";"),n.props[c]=`${l[c]} ${n.props[c]}`)}),t[s].props={...l,...n.props};return}else if(n._e===i._e){i._duped=i._duped||[],n._d=`${i._d}:${i._duped.length+1}`,i._duped.push(n);return}else if(Ks(n)>Ks(i))return}const o=Object.keys(n.props).length+(n.innerHTML?1:0)+(n.textContent?1:0);if(Ef.includes(n.tag)&&o===0){delete t[s];return}t[s]=n});const r=[];Object.values(t).forEach(n=>{const s=n._duped;delete n._duped,r.push(n),s&&r.push(...s)}),e.tags=r}}}}function mn(e,t){if(typeof e!="string")return e;function r(o){if(["s","pageTitle"].includes(o))return t.pageTitle;let a;return o.includes(".")?a=o.split(".").reduce((l,c)=>l&&l[c]||void 0,t):a=t[o],typeof a<"u"?a||"":!1}let n=e;try{n=decodeURI(e)}catch{}(n.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(o=>{const a=r(o.slice(1));typeof a=="string"&&(e=e.replace(new RegExp(`\\${o}(\\W|$)`,"g"),`${a}$1`).trim())});const i=t.separator;return e.includes(i)&&(e.endsWith(i)&&(e=e.slice(0,-i.length).trim()),e.startsWith(i)&&(e=e.slice(i.length).trim()),e=e.replace(new RegExp(`\\${i}\\s*\\${i}`,"g"),i)),e}function V0(){return{hooks:{"tags:resolve":e=>{var i;const{tags:t}=e,r=(i=t.find(o=>o.tag==="title"))==null?void 0:i.textContent,n=t.findIndex(o=>o.tag==="templateParams"),s=n!==-1?t[n].props:{};s.separator=s.separator||"|",s.pageTitle=mn(s.pageTitle||r||"",s);for(const o of t)if(["titleTemplate","title"].includes(o.tag)&&typeof o.textContent=="string")o.textContent=mn(o.textContent,s);else if(o.tag==="meta"&&typeof o.props.content=="string")o.props.content=mn(o.props.content,s);else if(o.tag==="link"&&typeof o.props.href=="string")o.props.href=mn(o.props.href,s);else if(o.tag==="script"&&["application/json","application/ld+json"].includes(o.props.type)&&typeof o.innerHTML=="string")try{o.innerHTML=JSON.stringify(JSON.parse(o.innerHTML),(a,l)=>typeof l=="string"?mn(l,s):l)}catch{}e.tags=t.filter(o=>o.tag!=="templateParams")}}}}const G0=typeof window<"u";let Cf;function X0(e){return Cf=e}function Y0(){return Cf}async function Q0(e,t){const r={tag:e,props:{}};return t instanceof Promise&&(t=await t),e==="templateParams"?(r.props=t,r):["title","titleTemplate"].includes(e)?(t&&typeof t=="object"?(r.textContent=t.textContent,t.tagPriority&&(r.tagPriority=t.tagPriority)):r.textContent=t,r):typeof t=="string"?["script","noscript","style"].includes(e)?(e==="script"&&(/^(https?:)?\/\//.test(t)||t.startsWith("/"))?r.props.src=t:r.innerHTML=t,r):!1:(r.props=await ey(e,{...t}),r.props.children&&(r.props.innerHTML=r.props.children),delete r.props.children,Object.keys(r.props).filter(n=>I0.includes(n)).forEach(n=>{(!["innerHTML","textContent"].includes(n)||kf.includes(r.tag))&&(r[n]=r.props[n]),delete r.props[n]}),["innerHTML","textContent"].forEach(n=>{if(r.tag==="script"&&typeof r[n]=="string"&&["application/ld+json","application/json"].includes(r.props.type))try{r[n]=JSON.parse(r[n])}catch{r[n]=""}typeof r[n]=="object"&&(r[n]=JSON.stringify(r[n]))}),r.props.class&&(r.props.class=Z0(r.props.class)),r.props.content&&Array.isArray(r.props.content)?r.props.content.map(n=>({...r,props:{...r.props,content:n}})):r)}function Z0(e){return typeof e=="object"&&!Array.isArray(e)&&(e=Object.keys(e).filter(t=>e[t])),(Array.isArray(e)?e.join(" "):e).split(" ").filter(t=>t.trim()).filter(Boolean).join(" ")}async function ey(e,t){for(const r of Object.keys(t)){const n=r.startsWith("data-");t[r]instanceof Promise&&(t[r]=await t[r]),String(t[r])==="true"?t[r]=n?"true":"":String(t[r])==="false"&&(n?t[r]="false":delete t[r])}return t}const ty=10;async function ry(e){const t=[];return Object.entries(e.resolvedInput).filter(([r,n])=>typeof n<"u"&&P0.includes(r)).forEach(([r,n])=>{const s=$0(n);t.push(...s.map(i=>Q0(r,i)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((r,n)=>(r._e=e._i,r._p=(e._i<a.hooks&&s.addHooks(a.hooks)),e.document=e.document||(G0?document:void 0);const i=()=>s.callHook("entries:updated",o),o={resolvedOptions:e,headEntries(){return t},get hooks(){return s},use(a){a.hooks&&s.addHooks(a.hooks)},push(a,l){const c={_i:n++,input:a,_sde:{}};return l!=null&&l.mode&&(c._m=l==null?void 0:l.mode),l!=null&&l.transform&&(c._t=l==null?void 0:l.transform),t.push(c),i(),{dispose(){t=t.filter(u=>u._i!==c._i?!0:(r={...r,...u._sde||{}},u._sde={},i(),!1))},patch(u){t=t.map(f=>(f._i===c._i&&(c.input=f.input=u,i()),f))}}},async resolveTags(){const a={tags:[],entries:[...t]};await s.callHook("entries:resolve",a);for(const l of a.entries){const c=l._t||(u=>u);if(l.resolvedInput=c(l.resolvedInput||l.input),l.resolvedInput)for(const u of await ry(l)){const f={tag:u,entry:l,resolvedOptions:o.resolvedOptions};await s.callHook("tag:normalise",f),a.tags.push(f.tag)}}return await s.callHook("tags:resolve",a),a.tags},_popSideEffectQueue(){const a={...r};return r={},a},_elMap:{}};return o.hooks.callHook("init",o),o}function ay(e){return typeof e=="function"?e():ge(e)}function Ws(e,t=""){if(e instanceof Promise)return e;const r=ay(e);return!e||!r?r:Array.isArray(r)?r.map(n=>Ws(n,t)):typeof r=="object"?Object.fromEntries(Object.entries(r).map(([n,s])=>n==="titleTemplate"||n.startsWith("on")?[n,ge(s)]:[n,Ws(s,n)])):r}const ly=of.startsWith("3"),cy=typeof window<"u",Sf="usehead";function aa(){return or()&&Ge(Sf)||Y0()}function uy(e){return{install(r){ly&&(r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(Sf,e))}}.install}function fy(e={}){const t=iy({...e,domDelayFn:r=>setTimeout(()=>Or(()=>r()),10),plugins:[dy(),...(e==null?void 0:e.plugins)||[]]});return t.install=uy(t),t}function dy(){return{hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Ws(t.input)}}}}function hy(e,t={}){const r=aa(),n=Oe(!1),s=Oe({});Su(()=>{s.value=n.value?{}:Ws(e)});const i=r.push(s.value,t);return Rt(s,a=>{i.patch(a)}),or()&&(ln(()=>{i.dispose()}),ju(()=>{n.value=!0}),Iu(()=>{n.value=!1})),i}function py(e,t={}){return aa().push(e,t)}function gy(e,t={}){var n;const r=aa();if(r){const s=cy||!!((n=r.resolvedOptions)!=null&&n.document);return t.mode==="server"&&s||t.mode==="client"&&!s?void 0:s?hy(e,t):py(e,t)}}const yy={meta:[{name:"viewport",content:"width=device-width, initial-scale=1"},{charset:"utf-8"}],link:[],style:[],script:[],noscript:[],htmlAttrs:{dir:"rtl",lang:"he"}},po=!1,my=!1,vy="__nuxt",by=!0;function Al(e,t={}){const r=_y(e,t),n=he(),s=n._payloadCache=n._payloadCache||{};return s[r]||(s[r]=Af(r).then(i=>i||(delete s[r],null))),s[r]}const $l="json";function _y(e,t={}){const r=new URL(e,"http://localhost");if(r.search)throw new Error("Payload URL cannot contain search params: "+e);if(r.host!=="localhost"||cn(r.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const n=t.hash||(t.fresh?Date.now():"");return ss(os().app.baseURL,r.pathname,n?`_payload.${n}.${$l}`:`_payload.${$l}`)}async function Af(e){try{return by?$f(await fetch(e).then(t=>t.text())):await rt(()=>import(e),[],import.meta.url).then(t=>t.default||t)}catch(t){console.warn("[nuxt] Cannot load payload ",e,t)}return null}function wy(){return!!he().payload.prerenderedAt}let vs=null;async function xy(){if(vs)return vs;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=$f(e.textContent||""),r=e.dataset.src?await Af(e.dataset.src):void 0;return vs={...t,...r,...window.__NUXT__},vs}function $f(e){return S0(e,he()._payloadRevivers)}function ky(e,t){he()._payloadRevivers[e]=t}const bs=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function Ey(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const r={},s=(t||{}).decode||Cy;let i=0;for(;it.reduce((r,n)=>go(r,n,"",e),{})}const kr=Pf(),Ay=Pf((e,t,r)=>{if(typeof e[t]<"u"&&typeof r=="function")return e[t]=r(e[t]),!0});class yo extends Error{constructor(){super(...arguments),this.statusCode=500,this.fatal=!1,this.unhandled=!1}toJSON(){const t={message:this.message,statusCode:vo(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Rf(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}yo.__h3_error__=!0;function mo(e){if(typeof e=="string")return new yo(e);if($y(e))return e;const t=new yo(e.message??e.statusMessage??"",e.cause?{cause:e.cause}:void 0);if("stack"in e)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=vo(e.statusCode,t.statusCode):e.status&&(t.statusCode=vo(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const r=t.statusMessage;Rf(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 $y(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const Py=/[^\u0009\u0020-\u007E]/g;function Rf(e=""){return e.replace(Py,"")}function vo(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Ry="$s";function ai(...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=Ry+r,i=he(),o=vu(i.payload.state,s);if(o.value===void 0&&n){const a=n();if(Se(a))return i.payload.state[s]=a,a;o.value=a}return o}const Iy=Symbol("layout-meta"),li=Symbol("route"),Ot=()=>{var e;return(e=he())==null?void 0:e.$router},jy=()=>qu()?Ge(li,he()._route):he()._route;/*! @__NO_SIDE_EFFECTS__ */function vO(e){return e}const Ly=()=>{try{if(he()._processingMiddleware)return!0}catch{return!0}return!1},Ny=(e,t)=>{e||(e="/");const r=typeof e=="string"?e:gf(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){{const{target:a="_blank",windowFeatures:l={}}=t.open,c=Object.entries(l).filter(([u,f])=>f!==void 0).map(([u,f])=>`${u.toLowerCase()}=${f}`).join(", ");open(r,a,c)}return Promise.resolve()}const n=(t==null?void 0:t.external)||cn(r,{acceptRelative:!0});if(n&&!(t!=null&&t.external))throw new Error("Navigating to external URL is not allowed by default. Use `navigateTo (url, { external: true })`.");if(n&&is(r).protocol==="script:")throw new Error("Cannot navigate to an URL with script protocol.");const s=Ly();if(!n&&s)return e;const i=Ot(),o=he();return n?(t!=null&&t.replace?location.replace(r):location.href=r,s?o.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)},ci=()=>vu(he().payload,"error"),Nr=e=>{const t=la(e);try{const r=he(),n=ci();r.hooks.callHook("app:error",t),n.value=n.value||t}catch{throw t}return t},My=async(e={})=>{const t=he(),r=ci();t.callHook("app:error:cleared",e),e.redirect&&await Ot().replace(e.redirect),r.value=null},Dy=e=>!!(e&&typeof e=="object"&&"__nuxt_error"in e),la=e=>{const t=mo(e);return t.__nuxt_error=!0,t},Rl={NuxtError:e=>la(e),EmptyShallowRef:e=>Hn(e==="_"?void 0:e==="0n"?BigInt(0):JSON.parse(e)),EmptyRef:e=>Oe(e==="_"?void 0:e==="0n"?BigInt(0):JSON.parse(e)),ShallowRef:e=>Hn(e),ShallowReactive:e=>rs(e),Ref:e=>Oe(e),Reactive:e=>xt(e)},Fy=Tt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,r;for(const n in Rl)ky(n,Rl[n]);Object.assign(e.payload,([t,r]=Jn(()=>e.runWithContext(xy)),t=await t,r(),t)),window.__NUXT__=e.payload}});/*! * vue-router v4.2.4 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const jr=typeof window<"u";function Ny(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const de=Object.assign;function Li(e,t){const r={};for(const n in t){const s=t[n];r[n]=yt(s)?s.map(e):e(s)}return r}const Rn=()=>{},yt=Array.isArray,My=/\/$/,Dy=e=>e.replace(My,"");function Ni(e,t,r="/"){let n,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(n=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(n=n||t.slice(0,a),o=t.slice(a,t.length)),n=Hy(n??t,r),{fullPath:n+(i&&"?")+i+o,path:n,query:s,hash:o}}function Fy(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Pl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function By(e,t,r){const n=t.matched.length-1,s=r.matched.length-1;return n>-1&&n===s&&Vr(t.matched[n],r.matched[s])&&$f(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Vr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function $f(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!Uy(e[r],t[r]))return!1;return!0}function Uy(e,t){return yt(e)?Rl(e,t):yt(t)?Rl(t,e):e===t}function Rl(e,t){return yt(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function Hy(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;o1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(o-(o===n.length?1:0)).join("/")}var Jn;(function(e){e.pop="pop",e.push="push"})(Jn||(Jn={}));var In;(function(e){e.back="back",e.forward="forward",e.unknown=""})(In||(In={}));function zy(e){if(!e)if(jr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Dy(e)}const qy=/^[^#]+#/;function Ky(e,t){return e.replace(qy,"#")+t}function Wy(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 ui=()=>({left:window.pageXOffset,top:window.pageYOffset});function Jy(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=Wy(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Il(e,t){return(history.state?history.state.position-t:-1)+e}const bo=new Map;function Vy(e,t){bo.set(e,t)}function Gy(e){const t=bo.get(e);return bo.delete(e),t}let Xy=()=>location.protocol+"//"+location.host;function Pf(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,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Pl(l,"")}return Pl(r,e)+n+s}function Yy(e,t,r,n){let s=[],i=[],o=null;const a=({state:d})=>{const h=Pf(e,location),p=r.value,v=t.value;let x=0;if(d){if(r.value=h,t.value=d,o&&o===p){o=null;return}x=v?d.position-v.position:0}else n(h);s.forEach(m=>{m(r.value,p,{delta:x,type:Jn.pop,direction:x?x>0?In.forward:In.back:In.unknown})})};function l(){o=r.value}function c(d){s.push(d);const h=()=>{const p=s.indexOf(d);p>-1&&s.splice(p,1)};return i.push(h),h}function u(){const{history:d}=window;d.state&&d.replaceState(de({},d.state,{scroll:ui()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function jl(e,t,r,n=!1,s=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:s?ui():null}}function Qy(e){const{history:t,location:r}=window,n={value:Pf(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(l,c,u){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:Xy()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),s.value=c}catch(h){console.error(h),r[u?"replace":"assign"](d)}}function o(l,c){const u=de({},t.state,jl(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});i(l,u,!0),n.value=l}function a(l,c){const u=de({},s.value,t.state,{forward:l,scroll:ui()});i(u.current,u,!0);const f=de({},jl(n.value,l,null),{position:u.position+1},c);i(l,f,!1),n.value=l}return{location:n,state:s,push:a,replace:o}}function Rf(e){e=zy(e);const t=Qy(e),r=Yy(e,t.state,t.location,t.replace);function n(i,o=!0){o||r.pauseListeners(),history.go(i)}const s=de({location:"",base:e,go:n,createHref:Ky.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 Zy(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Rf(e)}function em(e){return typeof e=="string"||e&&typeof e=="object"}function If(e){return typeof e=="string"||typeof e=="symbol"}const vt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},jf=Symbol("");var Ll;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ll||(Ll={}));function Gr(e,t){return de(new Error,{type:e,[jf]:!0},t)}function Tt(e,t){return e instanceof Error&&jf in e&&(t==null||!!(e.type&t))}const Nl="[^/]+?",tm={sensitive:!1,strict:!1,start:!0,end:!0},rm=/[.+*?^${}()[\]/\\]/g;function nm(e,t){const r=de({},tm,t),n=[];let s=r.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];r.strict&&!c.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function im(e,t){let r=0;const n=e.score,s=t.score;for(;r0&&t[t.length-1]<0}const om={type:0,value:""},am=/[a-zA-Z0-9_]/;function lm(e){if(!e)return[[]];if(e==="/")return[[om]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${r})/"${c}": ${h}`)}let r=0,n=r;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,c="",u="";function f(){c&&(r===0?i.push({type:0,value:c}):r===1||r===2||r===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;a{o(g)}:Rn}function o(u){if(If(u)){const f=n.get(u);f&&(n.delete(u),r.splice(r.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=r.indexOf(u);f>-1&&(r.splice(f,1),u.record.name&&n.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return r}function l(u){let f=0;for(;f=0&&(u.record.path!==r[f].record.path||!Lf(u,r[f]));)f++;r.splice(f,0,u),u.record.name&&!Fl(u)&&n.set(u.record.name,u)}function c(u,f){let d,h={},p,v;if("name"in u&&u.name){if(d=n.get(u.name),!d)throw Gr(1,{location:u});v=d.record.name,h=de(Dl(f.params,d.keys.filter(g=>!g.optional).map(g=>g.name)),u.params&&Dl(u.params,d.keys.map(g=>g.name))),p=d.stringify(h)}else if("path"in u)p=u.path,d=r.find(g=>g.re.test(p)),d&&(h=d.parse(p),v=d.record.name);else{if(d=f.name?n.get(f.name):r.find(g=>g.re.test(f.path)),!d)throw Gr(1,{location:u,currentLocation:f});v=d.record.name,h=de({},f.params,u.params),p=d.stringify(h)}const x=[];let m=d;for(;m;)x.unshift(m.record),m=m.parent;return{name:v,path:p,params:h,matched:x,meta:hm(x)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function Dl(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function fm(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:dm(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function dm(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 Fl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hm(e){return e.reduce((t,r)=>de(t,r.meta),{})}function Bl(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function Lf(e,t){return t.children.some(r=>r===e||Lf(e,r))}const Nf=/#/g,pm=/&/g,gm=/\//g,ym=/=/g,mm=/\?/g,Mf=/\+/g,vm=/%5B/g,bm=/%5D/g,Df=/%5E/g,_m=/%60/g,Ff=/%7B/g,wm=/%7C/g,Bf=/%7D/g,xm=/%20/g;function ca(e){return encodeURI(""+e).replace(wm,"|").replace(vm,"[").replace(bm,"]")}function km(e){return ca(e).replace(Ff,"{").replace(Bf,"}").replace(Df,"^")}function _o(e){return ca(e).replace(Mf,"%2B").replace(xm,"+").replace(Nf,"%23").replace(pm,"%26").replace(_m,"`").replace(Ff,"{").replace(Bf,"}").replace(Df,"^")}function Em(e){return _o(e).replace(ym,"%3D")}function Tm(e){return ca(e).replace(Nf,"%23").replace(mm,"%3F")}function Om(e){return e==null?"":Tm(e).replace(gm,"%2F")}function qs(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Cm(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&_o(i)):[n&&_o(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function Sm(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=yt(n)?n.map(s=>s==null?null:""+s):n==null?n:""+n)}return t}const Am=Symbol(""),Hl=Symbol(""),ua=Symbol(""),Uf=Symbol(""),wo=Symbol("");function mn(){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 Yt(e,t,r,n,s){const i=n&&(n.enterCallbacks[s]=n.enterCallbacks[s]||[]);return()=>new Promise((o,a)=>{const l=f=>{f===!1?a(Gr(4,{from:r,to:t})):f instanceof Error?a(f):em(f)?a(Gr(2,{from:t,to:f})):(i&&n.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),o())},c=e.call(n&&n.instances[s],t,r,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(f=>a(f))})}function Mi(e,t,r,n){const s=[];for(const i of e)for(const o in i.components){let a=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if($m(a)){const c=(a.__vccOpts||a)[t];c&&s.push(Yt(c,r,n,i,o))}else{let l=a();s.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const u=Ny(c)?c.default:c;i.components[o]=u;const d=(u.__vccOpts||u)[t];return d&&Yt(d,r,n,i,o)()}))}}return s}function $m(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function zl(e){const t=Ge(ua),r=Ge(Uf),n=ue(()=>t.resolve(pe(e.to))),s=ue(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],f=r.matched;if(!u||!f.length)return-1;const d=f.findIndex(Vr.bind(null,u));if(d>-1)return d;const h=ql(l[c-2]);return c>1&&ql(u)===h&&f[f.length-1].path!==h?f.findIndex(Vr.bind(null,l[c-2])):d}),i=ue(()=>s.value>-1&&jm(r.params,n.value.params)),o=ue(()=>s.value>-1&&s.value===r.matched.length-1&&$f(r.params,n.value.params));function a(l={}){return Im(l)?t[pe(e.replace)?"replace":"push"](pe(e.to)).catch(Rn):Promise.resolve()}return{route:n,href:ue(()=>n.value.href),isActive:i,isExactActive:o,navigate:a}}const Pm=Ye({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:zl,setup(e,{slots:t}){const r=xt(zl(e)),{options:n}=Ge(ua),s=ue(()=>({[Kl(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[Kl(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&t.default(r);return e.custom?i:st("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},i)}}}),Rm=Pm;function Im(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 jm(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(!yt(s)||s.length!==n.length||n.some((i,o)=>i!==s[o]))return!1}return!0}function ql(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Kl=(e,t,r)=>e??t??r,Lm=Ye({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Ge(wo),s=ue(()=>e.route||n.value),i=Ge(Hl,0),o=ue(()=>{let c=pe(i);const{matched:u}=s.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=ue(()=>s.value.matched[o.value]);Hr(Hl,ue(()=>o.value+1)),Hr(Am,a),Hr(wo,s);const l=Oe();return $t(()=>[l.value,a.value,e.name],([c,u,f],[d,h,p])=>{u&&(u.instances[f]=c,h&&h!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!Vr(u,h)||!d)&&(u.enterCallbacks[f]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return Wl(r.default,{Component:d,route:c});const h=f.props[u],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,x=st(d,de({},p,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Wl(r.default,{Component:x,route:c})||x}}});function Wl(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Hf=Lm;function Nm(e){const t=um(e.routes,e),r=e.parseQuery||Cm,n=e.stringifyQuery||Ul,s=e.history,i=mn(),o=mn(),a=mn(),l=Un(vt);let c=vt;jr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Li.bind(null,S=>""+S),f=Li.bind(null,Om),d=Li.bind(null,qs);function h(S,z){let U,V;return If(S)?(U=t.getRecordMatcher(S),V=z):V=S,t.addRoute(V,U)}function p(S){const z=t.getRecordMatcher(S);z&&t.removeRoute(z)}function v(){return t.getRoutes().map(S=>S.record)}function x(S){return!!t.getRecordMatcher(S)}function m(S,z){if(z=de({},z||l.value),typeof S=="string"){const k=Ni(r,S,z.path),C=t.resolve({path:k.path},z),A=s.createHref(k.fullPath);return de(k,C,{params:d(C.params),hash:qs(k.hash),redirectedFrom:void 0,href:A})}let U;if("path"in S)U=de({},S,{path:Ni(r,S.path,z.path).path});else{const k=de({},S.params);for(const C in k)k[C]==null&&delete k[C];U=de({},S,{params:f(k)}),z.params=f(z.params)}const V=t.resolve(U,z),se=S.hash||"";V.params=u(d(V.params));const y=Fy(n,de({},S,{hash:km(se),path:V.path})),b=s.createHref(y);return de({fullPath:y,hash:se,query:n===Ul?Sm(S.query):S.query||{}},V,{redirectedFrom:void 0,href:b})}function g(S){return typeof S=="string"?Ni(r,S,l.value.path):de({},S)}function E(S,z){if(c!==S)return Gr(8,{from:z,to:S})}function _(S){return j(S)}function T(S){return _(de(g(S),{replace:!0}))}function P(S){const z=S.matched[S.matched.length-1];if(z&&z.redirect){const{redirect:U}=z;let V=typeof U=="function"?U(S):U;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=g(V):{path:V},V.params={}),de({query:S.query,hash:S.hash,params:"path"in V?{}:S.params},V)}}function j(S,z){const U=c=m(S),V=l.value,se=S.state,y=S.force,b=S.replace===!0,k=P(U);if(k)return j(de(g(k),{state:typeof k=="object"?de({},se,k.state):se,force:y,replace:b}),z||U);const C=U;C.redirectedFrom=z;let A;return!y&&By(n,V,U)&&(A=Gr(16,{to:C,from:V}),ke(V,V,!0,!1)),(A?Promise.resolve(A):B(C,V)).catch(R=>Tt(R)?Tt(R,2)?R:Ae(R):Y(R,C,V)).then(R=>{if(R){if(Tt(R,2))return j(de({replace:b},g(R.to),{state:typeof R.to=="object"?de({},se,R.to.state):se,force:y}),z||C)}else R=F(C,V,!0,b,se);return H(C,V,R),R})}function O(S,z){const U=E(S,z);return U?Promise.reject(U):Promise.resolve()}function M(S){const z=ze.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext(S):S()}function B(S,z){let U;const[V,se,y]=Mm(S,z);U=Mi(V.reverse(),"beforeRouteLeave",S,z);for(const k of V)k.leaveGuards.forEach(C=>{U.push(Yt(C,S,z))});const b=O.bind(null,S,z);return U.push(b),xe(U).then(()=>{U=[];for(const k of i.list())U.push(Yt(k,S,z));return U.push(b),xe(U)}).then(()=>{U=Mi(se,"beforeRouteUpdate",S,z);for(const k of se)k.updateGuards.forEach(C=>{U.push(Yt(C,S,z))});return U.push(b),xe(U)}).then(()=>{U=[];for(const k of y)if(k.beforeEnter)if(yt(k.beforeEnter))for(const C of k.beforeEnter)U.push(Yt(C,S,z));else U.push(Yt(k.beforeEnter,S,z));return U.push(b),xe(U)}).then(()=>(S.matched.forEach(k=>k.enterCallbacks={}),U=Mi(y,"beforeRouteEnter",S,z),U.push(b),xe(U))).then(()=>{U=[];for(const k of o.list())U.push(Yt(k,S,z));return U.push(b),xe(U)}).catch(k=>Tt(k,8)?k:Promise.reject(k))}function H(S,z,U){a.list().forEach(V=>M(()=>V(S,z,U)))}function F(S,z,U,V,se){const y=E(S,z);if(y)return y;const b=z===vt,k=jr?history.state:{};U&&(V||b?s.replace(S.fullPath,de({scroll:b&&k&&k.scroll},se)):s.push(S.fullPath,se)),l.value=S,ke(S,z,U,b),Ae()}let K;function w(){K||(K=s.listen((S,z,U)=>{if(!qe.listening)return;const V=m(S),se=P(V);if(se){j(de(se,{replace:!0}),V).catch(Rn);return}c=V;const y=l.value;jr&&Vy(Il(y.fullPath,U.delta),ui()),B(V,y).catch(b=>Tt(b,12)?b:Tt(b,2)?(j(b.to,V).then(k=>{Tt(k,20)&&!U.delta&&U.type===Jn.pop&&s.go(-1,!1)}).catch(Rn),Promise.reject()):(U.delta&&s.go(-U.delta,!1),Y(b,V,y))).then(b=>{b=b||F(V,y,!1),b&&(U.delta&&!Tt(b,8)?s.go(-U.delta,!1):U.type===Jn.pop&&Tt(b,20)&&s.go(-1,!1)),H(V,y,b)}).catch(Rn)}))}let $=mn(),L=mn(),J;function Y(S,z,U){Ae(S);const V=L.list();return V.length?V.forEach(se=>se(S,z,U)):console.error(S),Promise.reject(S)}function ee(){return J&&l.value!==vt?Promise.resolve():new Promise((S,z)=>{$.add([S,z])})}function Ae(S){return J||(J=!S,w(),$.list().forEach(([z,U])=>S?U(S):z()),$.reset()),S}function ke(S,z,U,V){const{scrollBehavior:se}=e;if(!jr||!se)return Promise.resolve();const y=!U&&Gy(Il(S.fullPath,0))||(V||!U)&&history.state&&history.state.scroll||null;return Or().then(()=>se(S,z,y)).then(b=>b&&Jy(b)).catch(b=>Y(b,S,z))}const _e=S=>s.go(S);let at;const ze=new Set,qe={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,hasRoute:x,getRoutes:v,resolve:m,options:e,push:_,replace:T,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:L.add,isReady:ee,install(S){const z=this;S.component("RouterLink",Rm),S.component("RouterView",Hf),S.config.globalProperties.$router=z,Object.defineProperty(S.config.globalProperties,"$route",{enumerable:!0,get:()=>pe(l)}),jr&&!at&&l.value===vt&&(at=!0,_(s.location).catch(se=>{}));const U={};for(const se in vt)Object.defineProperty(U,se,{get:()=>l.value[se],enumerable:!0});S.provide(ua,z),S.provide(Uf,ts(U)),S.provide(wo,l);const V=S.unmount;ze.add(S),S.unmount=function(){ze.delete(S),ze.size<1&&(c=vt,K&&K(),K=null,l.value=vt,at=!1,J=!1),V()}}};function xe(S){return S.reduce((z,U)=>z.then(()=>M(U)),Promise.resolve())}return qe}function Mm(e,t){const r=[],n=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oVr(c,a))?n.push(a):r.push(a));const l=e.matched[o];l&&(t.matched.find(c=>Vr(c,l))||s.push(l))}return[r,n,s]}const Jl=[{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>rt(()=>import("./index.2ff987a8.js"),["./index.2ff987a8.js","./togw-turn-truth-religion.3c14a7c2.js","./index.31cbc844.css"],import.meta.url).then(e=>e.default||e)},{name:"media",path:"/media",meta:{},alias:[],redirect:void 0,component:()=>rt(()=>import("./media.b5a5538f.js"),["./media.b5a5538f.js","./togw-turn-truth-religion.3c14a7c2.js"],import.meta.url).then(e=>e.default||e)},{name:"profile",path:"/profile",meta:{},alias:[],redirect:void 0,component:()=>rt(()=>import("./profile.2f135342.js"),["./profile.2f135342.js","./Container.1e0523ab.js"],import.meta.url).then(e=>e.default||e)},{name:"profiles",path:"/profiles",meta:{},alias:[],redirect:void 0,component:()=>rt(()=>import("./profiles.aa5972c5.js"),["./profiles.aa5972c5.js","./Container.1e0523ab.js"],import.meta.url).then(e=>e.default||e)}],Dm={scrollBehavior(e,t,r){const n=be();let s=r||void 0;if(!s&&t&&e&&e.meta.scrollToTop!==!1&&Fm(t,e)&&(s={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:Vl(e.hash)}}const i=a=>!!(a.meta.pageTransition??po),o=i(t)&&i(e)?"page:transition:finish":"page:finish";return new Promise(a=>{n.hooks.hookOnce(o,async()=>{await Or(),e.hash&&(s={el:e.hash,top:Vl(e.hash)}),a(s)})})}};function Vl(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function Fm(e,t){const r=t.matched.every((n,s)=>{var i,o,a;return((i=n.components)==null?void 0:i.default)===((a=(o=e.matched[s])==null?void 0:o.components)==null?void 0:a.default)});return!!(!r||r&&JSON.stringify(e.params)!==JSON.stringify(t.params))}const Bm={},De={...Bm,...Dm},Um=async e=>{var l;let t,r;if(!((l=e.meta)!=null&&l.validate))return;const n=be(),s=Ut();if(([t,r]=Wn(()=>Promise.resolve(e.meta.validate(e))),t=await t,r(),t)===!0)return;const o=la({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),a=s.beforeResolve(c=>{if(a(),c===e){const u=s.afterEach(async()=>{u(),await n.runWithContext(()=>Nr(o)),window.history.pushState({},"",e.fullPath)});return!1}})},Cs=[Um],jn={auth:()=>rt(()=>import("./auth.7dd1f124.js"),[],import.meta.url)};function Hm(e,t,r){const{pathname:n,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){const l=i.includes(e.slice(o))?e.slice(o).length:1;let c=i.slice(l);return c[0]!=="/"&&(c="/"+c),bl(c,"")}const a=r||bl(n,e);return a+(a.includes("?")?"":s)+i}const zm=Bt({name:"nuxt:router",enforce:"pre",async setup(e){var v,x;let t,r,n=oi().app.baseURL;De.hashMode&&!n.includes("#")&&(n+="#");const s=((v=De.history)==null?void 0:v.call(De,n))??(De.hashMode?Zy(n):Rf(n)),i=((x=De.routes)==null?void 0:x.call(De,Jl))??Jl;let o;const a=Hm(n,window.location,e.payload.path),l=Nm({...De,scrollBehavior:(m,g,E)=>{var _;if(g===vt){o=E;return}return l.options.scrollBehavior=De.scrollBehavior,(_=De.scrollBehavior)==null?void 0:_.call(De,m,vt,o||E)},history:s,routes:i});e.vueApp.use(l);const c=Un(l.currentRoute.value);l.afterEach((m,g)=>{c.value=g}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const u=Un(l.resolve(a)),f=()=>{u.value=l.currentRoute.value};e.hook("page:finish",f),l.afterEach((m,g)=>{var E,_,T,P;((_=(E=m.matched[0])==null?void 0:E.components)==null?void 0:_.default)===((P=(T=g.matched[0])==null?void 0:T.components)==null?void 0:P.default)&&f()});const d={};for(const m in u.value)Object.defineProperty(d,m,{get:()=>u.value[m]});e._route=ts(d),e._middleware=e._middleware||{global:[],named:{}};const h=ci();try{[t,r]=Wn(()=>l.isReady()),await t,r()}catch(m){[t,r]=Wn(()=>e.runWithContext(()=>Nr(m))),await t,r()}const p=ai("_layout");return l.beforeEach(async(m,g)=>{var E;m.meta=xt(m.meta),e.isHydrating&&p.value&&!xr(m.meta.layout)&&(m.meta.layout=p.value),e._processingMiddleware=!0;{const _=new Set([...Cs,...e._middleware.global]);for(const T of m.matched){const P=T.meta.middleware;if(P)if(Array.isArray(P))for(const j of P)_.add(j);else _.add(P)}for(const T of _){const P=typeof T=="string"?e._middleware.named[T]||await((E=jn[T])==null?void 0:E.call(jn).then(O=>O.default||O)):T;if(!P)throw new Error(`Unknown route middleware: '${T}'.`);const j=await e.runWithContext(()=>P(m,g));if(!e.payload.serverRendered&&e.isHydrating&&(j===!1||j instanceof Error)){const O=j||mo({statusCode:404,statusMessage:`Page Not Found: ${a}`});return await e.runWithContext(()=>Nr(O)),!1}if(j||j===!1)return j}}}),l.onError(()=>{delete e._processingMiddleware}),l.afterEach(async(m,g,E)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(Iy),m.matched.length===0&&await e.runWithContext(()=>Nr(mo({statusCode:404,fatal:!1,statusMessage:`Page not found: ${m.fullPath}`})))}),e.hooks.hookOnce("app:created",async()=>{try{await l.replace({...l.resolve(a),name:void 0,force:!0}),l.options.scrollBehavior=De.scrollBehavior}catch(m){await e.runWithContext(()=>Nr(m))}}),{provide:{router:l}}}}),qm=Bt({name:"nuxt:global-components"}),Km=Bt({name:"nuxt:head",setup(e){const r=ly();r.push(hy),e.vueApp.use(r);{let n=!0;const s=()=>{n=!1,r.hooks.callHook("entries:updated",r)};r.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",s),e.hooks.hook("app:suspense:resolve",s)}}}),ms={},Wm=Bt({name:"nuxt:prefetch",setup(e){const t=Ut();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 ms[n]=="function"&&await ms[n]()})}),e.hooks.hook("link:prefetch",r=>{var o,a,l,c;if(ns(r))return;const n=t.resolve(r);if(!n)return;const s=(o=n==null?void 0:n.meta)==null?void 0:o.layout;let i=Array.isArray((a=n==null?void 0:n.meta)==null?void 0:a.middleware)?(l=n==null?void 0:n.meta)==null?void 0:l.middleware:[(c=n==null?void 0:n.meta)==null?void 0:c.middleware];i=i.filter(u=>typeof u=="string");for(const u of i)typeof jn[u]=="function"&&jn[u]();s&&typeof ms[s]=="function"&&ms[s]()})}}),xo=globalThis.requestIdleCallback||(e=>{const t=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(r)},1)}),Jm=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Vm=e=>{const t=be();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{xo(e)}):xo(e)},Gm={ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1};function Gl(e,t={}){t={...Gm,...t};const r=zf(t);return r.dispatch(e),r.toString()}function zf(e){const t=[];let r=[];const n=s=>{t.push(s)};return{toString(){return t.join("")},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 (.*)]/i,o=Object.prototype.toString.call(s),a=i.exec(o),l=a?a[1].toLowerCase():"unknown:["+o.toLowerCase()+"]";let c=null;if((c=r.indexOf(s))>=0)return this.dispatch("[CIRCULAR:"+c+"]");if(r.push(s),typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(s))return n("buffer:"),n(s.toString("utf8"));if(l!=="object"&&l!=="function"&&l!=="asyncfunction")this["_"+l]?this["_"+l](s):e.ignoreUnknown||this._unkown(s,l);else{let u=Object.keys(s);e.unorderedObjects&&(u=u.sort()),e.respectType!==!1&&!Xl(s)&&u.splice(0,0,"prototype","__proto__","letructor"),e.excludeKeys&&(u=u.filter(function(f){return!e.excludeKeys(f)})),n("object:"+u.length+":");for(const f of u)this.dispatch(f),n(":"),e.excludeValues||this.dispatch(s[f]),n(",")}},_array(s,i){if(i=typeof i<"u"?i:e.unorderedArrays!==!1,n("array:"+s.length+":"),!i||s.length<=1){for(const l of s)this.dispatch(l);return}const o=[],a=s.map(l=>{const c=zf(e);return c.dispatch(l),o.push(c.getContext()),c.toString()});return r=[...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.toString())},_string(s){n("string:"+s.length+":"),n(s.toString())},_function(s){n("fn:"),Xl(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.toString())},_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 + */const jr=typeof window<"u";function By(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const de=Object.assign;function Li(e,t){const r={};for(const n in t){const s=t[n];r[n]=yt(s)?s.map(e):e(s)}return r}const In=()=>{},yt=Array.isArray,Uy=/\/$/,Hy=e=>e.replace(Uy,"");function Ni(e,t,r="/"){let n,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(n=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(n=n||t.slice(0,a),o=t.slice(a,t.length)),n=Wy(n??t,r),{fullPath:n+(i&&"?")+i+o,path:n,query:s,hash:o}}function zy(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Il(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function qy(e,t,r){const n=t.matched.length-1,s=r.matched.length-1;return n>-1&&n===s&&Vr(t.matched[n],r.matched[s])&&If(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Vr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function If(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!Ky(e[r],t[r]))return!1;return!0}function Ky(e,t){return yt(e)?jl(e,t):yt(t)?jl(t,e):e===t}function jl(e,t){return yt(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function Wy(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;o1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(o-(o===n.length?1:0)).join("/")}var Vn;(function(e){e.pop="pop",e.push="push"})(Vn||(Vn={}));var jn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(jn||(jn={}));function Jy(e){if(!e)if(jr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Hy(e)}const Vy=/^[^#]+#/;function Gy(e,t){return e.replace(Vy,"#")+t}function Xy(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 ui=()=>({left:window.pageXOffset,top:window.pageYOffset});function Yy(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=Xy(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Ll(e,t){return(history.state?history.state.position-t:-1)+e}const bo=new Map;function Qy(e,t){bo.set(e,t)}function Zy(e){const t=bo.get(e);return bo.delete(e),t}let em=()=>location.protocol+"//"+location.host;function jf(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,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Il(l,"")}return Il(r,e)+n+s}function tm(e,t,r,n){let s=[],i=[],o=null;const a=({state:d})=>{const h=jf(e,location),p=r.value,v=t.value;let x=0;if(d){if(r.value=h,t.value=d,o&&o===p){o=null;return}x=v?d.position-v.position:0}else n(h);s.forEach(m=>{m(r.value,p,{delta:x,type:Vn.pop,direction:x?x>0?jn.forward:jn.back:jn.unknown})})};function l(){o=r.value}function c(d){s.push(d);const h=()=>{const p=s.indexOf(d);p>-1&&s.splice(p,1)};return i.push(h),h}function u(){const{history:d}=window;d.state&&d.replaceState(de({},d.state,{scroll:ui()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function Nl(e,t,r,n=!1,s=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:s?ui():null}}function rm(e){const{history:t,location:r}=window,n={value:jf(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(l,c,u){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:em()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),s.value=c}catch(h){console.error(h),r[u?"replace":"assign"](d)}}function o(l,c){const u=de({},t.state,Nl(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});i(l,u,!0),n.value=l}function a(l,c){const u=de({},s.value,t.state,{forward:l,scroll:ui()});i(u.current,u,!0);const f=de({},Nl(n.value,l,null),{position:u.position+1},c);i(l,f,!1),n.value=l}return{location:n,state:s,push:a,replace:o}}function Lf(e){e=Jy(e);const t=rm(e),r=tm(e,t.state,t.location,t.replace);function n(i,o=!0){o||r.pauseListeners(),history.go(i)}const s=de({location:"",base:e,go:n,createHref:Gy.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 nm(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Lf(e)}function sm(e){return typeof e=="string"||e&&typeof e=="object"}function Nf(e){return typeof e=="string"||typeof e=="symbol"}const vt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Mf=Symbol("");var Ml;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ml||(Ml={}));function Gr(e,t){return de(new Error,{type:e,[Mf]:!0},t)}function Ct(e,t){return e instanceof Error&&Mf in e&&(t==null||!!(e.type&t))}const Dl="[^/]+?",im={sensitive:!1,strict:!1,start:!0,end:!0},om=/[.+*?^${}()[\]/\\]/g;function am(e,t){const r=de({},im,t),n=[];let s=r.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];r.strict&&!c.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function cm(e,t){let r=0;const n=e.score,s=t.score;for(;r0&&t[t.length-1]<0}const um={type:0,value:""},fm=/[a-zA-Z0-9_]/;function dm(e){if(!e)return[[]];if(e==="/")return[[um]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${r})/"${c}": ${h}`)}let r=0,n=r;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,c="",u="";function f(){c&&(r===0?i.push({type:0,value:c}):r===1||r===2||r===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;a{o(g)}:In}function o(u){if(Nf(u)){const f=n.get(u);f&&(n.delete(u),r.splice(r.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=r.indexOf(u);f>-1&&(r.splice(f,1),u.record.name&&n.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return r}function l(u){let f=0;for(;f=0&&(u.record.path!==r[f].record.path||!Df(u,r[f]));)f++;r.splice(f,0,u),u.record.name&&!Ul(u)&&n.set(u.record.name,u)}function c(u,f){let d,h={},p,v;if("name"in u&&u.name){if(d=n.get(u.name),!d)throw Gr(1,{location:u});v=d.record.name,h=de(Bl(f.params,d.keys.filter(g=>!g.optional).map(g=>g.name)),u.params&&Bl(u.params,d.keys.map(g=>g.name))),p=d.stringify(h)}else if("path"in u)p=u.path,d=r.find(g=>g.re.test(p)),d&&(h=d.parse(p),v=d.record.name);else{if(d=f.name?n.get(f.name):r.find(g=>g.re.test(f.path)),!d)throw Gr(1,{location:u,currentLocation:f});v=d.record.name,h=de({},f.params,u.params),p=d.stringify(h)}const x=[];let m=d;for(;m;)x.unshift(m.record),m=m.parent;return{name:v,path:p,params:h,matched:x,meta:mm(x)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function Bl(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function gm(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:ym(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function ym(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 Ul(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mm(e){return e.reduce((t,r)=>de(t,r.meta),{})}function Hl(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function Df(e,t){return t.children.some(r=>r===e||Df(e,r))}const Ff=/#/g,vm=/&/g,bm=/\//g,_m=/=/g,wm=/\?/g,Bf=/\+/g,xm=/%5B/g,km=/%5D/g,Uf=/%5E/g,Em=/%60/g,Hf=/%7B/g,Tm=/%7C/g,zf=/%7D/g,Om=/%20/g;function ca(e){return encodeURI(""+e).replace(Tm,"|").replace(xm,"[").replace(km,"]")}function Cm(e){return ca(e).replace(Hf,"{").replace(zf,"}").replace(Uf,"^")}function _o(e){return ca(e).replace(Bf,"%2B").replace(Om,"+").replace(Ff,"%23").replace(vm,"%26").replace(Em,"`").replace(Hf,"{").replace(zf,"}").replace(Uf,"^")}function Sm(e){return _o(e).replace(_m,"%3D")}function Am(e){return ca(e).replace(Ff,"%23").replace(wm,"%3F")}function $m(e){return e==null?"":Am(e).replace(bm,"%2F")}function Js(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Pm(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&_o(i)):[n&&_o(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function Rm(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=yt(n)?n.map(s=>s==null?null:""+s):n==null?n:""+n)}return t}const Im=Symbol(""),ql=Symbol(""),ua=Symbol(""),qf=Symbol(""),wo=Symbol("");function vn(){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 Yt(e,t,r,n,s){const i=n&&(n.enterCallbacks[s]=n.enterCallbacks[s]||[]);return()=>new Promise((o,a)=>{const l=f=>{f===!1?a(Gr(4,{from:r,to:t})):f instanceof Error?a(f):sm(f)?a(Gr(2,{from:t,to:f})):(i&&n.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),o())},c=e.call(n&&n.instances[s],t,r,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(f=>a(f))})}function Mi(e,t,r,n){const s=[];for(const i of e)for(const o in i.components){let a=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(jm(a)){const c=(a.__vccOpts||a)[t];c&&s.push(Yt(c,r,n,i,o))}else{let l=a();s.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const u=By(c)?c.default:c;i.components[o]=u;const d=(u.__vccOpts||u)[t];return d&&Yt(d,r,n,i,o)()}))}}return s}function jm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Kl(e){const t=Ge(ua),r=Ge(qf),n=ue(()=>t.resolve(ge(e.to))),s=ue(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],f=r.matched;if(!u||!f.length)return-1;const d=f.findIndex(Vr.bind(null,u));if(d>-1)return d;const h=Wl(l[c-2]);return c>1&&Wl(u)===h&&f[f.length-1].path!==h?f.findIndex(Vr.bind(null,l[c-2])):d}),i=ue(()=>s.value>-1&&Dm(r.params,n.value.params)),o=ue(()=>s.value>-1&&s.value===r.matched.length-1&&If(r.params,n.value.params));function a(l={}){return Mm(l)?t[ge(e.replace)?"replace":"push"](ge(e.to)).catch(In):Promise.resolve()}return{route:n,href:ue(()=>n.value.href),isActive:i,isExactActive:o,navigate:a}}const Lm=Ye({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:Kl,setup(e,{slots:t}){const r=xt(Kl(e)),{options:n}=Ge(ua),s=ue(()=>({[Jl(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[Jl(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&t.default(r);return e.custom?i:st("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},i)}}}),Nm=Lm;function Mm(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 Dm(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(!yt(s)||s.length!==n.length||n.some((i,o)=>i!==s[o]))return!1}return!0}function Wl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jl=(e,t,r)=>e??t??r,Fm=Ye({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Ge(wo),s=ue(()=>e.route||n.value),i=Ge(ql,0),o=ue(()=>{let c=ge(i);const{matched:u}=s.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=ue(()=>s.value.matched[o.value]);Hr(ql,ue(()=>o.value+1)),Hr(Im,a),Hr(wo,s);const l=Oe();return Rt(()=>[l.value,a.value,e.name],([c,u,f],[d,h,p])=>{u&&(u.instances[f]=c,h&&h!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!Vr(u,h)||!d)&&(u.enterCallbacks[f]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return Vl(r.default,{Component:d,route:c});const h=f.props[u],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,x=st(d,de({},p,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Vl(r.default,{Component:x,route:c})||x}}});function Vl(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Kf=Fm;function Bm(e){const t=pm(e.routes,e),r=e.parseQuery||Pm,n=e.stringifyQuery||zl,s=e.history,i=vn(),o=vn(),a=vn(),l=Hn(vt);let c=vt;jr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Li.bind(null,S=>""+S),f=Li.bind(null,$m),d=Li.bind(null,Js);function h(S,z){let U,V;return Nf(S)?(U=t.getRecordMatcher(S),V=z):V=S,t.addRoute(V,U)}function p(S){const z=t.getRecordMatcher(S);z&&t.removeRoute(z)}function v(){return t.getRoutes().map(S=>S.record)}function x(S){return!!t.getRecordMatcher(S)}function m(S,z){if(z=de({},z||l.value),typeof S=="string"){const k=Ni(r,S,z.path),C=t.resolve({path:k.path},z),A=s.createHref(k.fullPath);return de(k,C,{params:d(C.params),hash:Js(k.hash),redirectedFrom:void 0,href:A})}let U;if("path"in S)U=de({},S,{path:Ni(r,S.path,z.path).path});else{const k=de({},S.params);for(const C in k)k[C]==null&&delete k[C];U=de({},S,{params:f(k)}),z.params=f(z.params)}const V=t.resolve(U,z),se=S.hash||"";V.params=u(d(V.params));const y=zy(n,de({},S,{hash:Cm(se),path:V.path})),b=s.createHref(y);return de({fullPath:y,hash:se,query:n===zl?Rm(S.query):S.query||{}},V,{redirectedFrom:void 0,href:b})}function g(S){return typeof S=="string"?Ni(r,S,l.value.path):de({},S)}function E(S,z){if(c!==S)return Gr(8,{from:z,to:S})}function _(S){return j(S)}function T(S){return _(de(g(S),{replace:!0}))}function P(S){const z=S.matched[S.matched.length-1];if(z&&z.redirect){const{redirect:U}=z;let V=typeof U=="function"?U(S):U;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=g(V):{path:V},V.params={}),de({query:S.query,hash:S.hash,params:"path"in V?{}:S.params},V)}}function j(S,z){const U=c=m(S),V=l.value,se=S.state,y=S.force,b=S.replace===!0,k=P(U);if(k)return j(de(g(k),{state:typeof k=="object"?de({},se,k.state):se,force:y,replace:b}),z||U);const C=U;C.redirectedFrom=z;let A;return!y&&qy(n,V,U)&&(A=Gr(16,{to:C,from:V}),ke(V,V,!0,!1)),(A?Promise.resolve(A):B(C,V)).catch(R=>Ct(R)?Ct(R,2)?R:Ae(R):Y(R,C,V)).then(R=>{if(R){if(Ct(R,2))return j(de({replace:b},g(R.to),{state:typeof R.to=="object"?de({},se,R.to.state):se,force:y}),z||C)}else R=F(C,V,!0,b,se);return H(C,V,R),R})}function O(S,z){const U=E(S,z);return U?Promise.reject(U):Promise.resolve()}function M(S){const z=ze.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext(S):S()}function B(S,z){let U;const[V,se,y]=Um(S,z);U=Mi(V.reverse(),"beforeRouteLeave",S,z);for(const k of V)k.leaveGuards.forEach(C=>{U.push(Yt(C,S,z))});const b=O.bind(null,S,z);return U.push(b),xe(U).then(()=>{U=[];for(const k of i.list())U.push(Yt(k,S,z));return U.push(b),xe(U)}).then(()=>{U=Mi(se,"beforeRouteUpdate",S,z);for(const k of se)k.updateGuards.forEach(C=>{U.push(Yt(C,S,z))});return U.push(b),xe(U)}).then(()=>{U=[];for(const k of y)if(k.beforeEnter)if(yt(k.beforeEnter))for(const C of k.beforeEnter)U.push(Yt(C,S,z));else U.push(Yt(k.beforeEnter,S,z));return U.push(b),xe(U)}).then(()=>(S.matched.forEach(k=>k.enterCallbacks={}),U=Mi(y,"beforeRouteEnter",S,z),U.push(b),xe(U))).then(()=>{U=[];for(const k of o.list())U.push(Yt(k,S,z));return U.push(b),xe(U)}).catch(k=>Ct(k,8)?k:Promise.reject(k))}function H(S,z,U){a.list().forEach(V=>M(()=>V(S,z,U)))}function F(S,z,U,V,se){const y=E(S,z);if(y)return y;const b=z===vt,k=jr?history.state:{};U&&(V||b?s.replace(S.fullPath,de({scroll:b&&k&&k.scroll},se)):s.push(S.fullPath,se)),l.value=S,ke(S,z,U,b),Ae()}let K;function w(){K||(K=s.listen((S,z,U)=>{if(!qe.listening)return;const V=m(S),se=P(V);if(se){j(de(se,{replace:!0}),V).catch(In);return}c=V;const y=l.value;jr&&Qy(Ll(y.fullPath,U.delta),ui()),B(V,y).catch(b=>Ct(b,12)?b:Ct(b,2)?(j(b.to,V).then(k=>{Ct(k,20)&&!U.delta&&U.type===Vn.pop&&s.go(-1,!1)}).catch(In),Promise.reject()):(U.delta&&s.go(-U.delta,!1),Y(b,V,y))).then(b=>{b=b||F(V,y,!1),b&&(U.delta&&!Ct(b,8)?s.go(-U.delta,!1):U.type===Vn.pop&&Ct(b,20)&&s.go(-1,!1)),H(V,y,b)}).catch(In)}))}let $=vn(),L=vn(),J;function Y(S,z,U){Ae(S);const V=L.list();return V.length?V.forEach(se=>se(S,z,U)):console.error(S),Promise.reject(S)}function ee(){return J&&l.value!==vt?Promise.resolve():new Promise((S,z)=>{$.add([S,z])})}function Ae(S){return J||(J=!S,w(),$.list().forEach(([z,U])=>S?U(S):z()),$.reset()),S}function ke(S,z,U,V){const{scrollBehavior:se}=e;if(!jr||!se)return Promise.resolve();const y=!U&&Zy(Ll(S.fullPath,0))||(V||!U)&&history.state&&history.state.scroll||null;return Or().then(()=>se(S,z,y)).then(b=>b&&Yy(b)).catch(b=>Y(b,S,z))}const _e=S=>s.go(S);let at;const ze=new Set,qe={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,hasRoute:x,getRoutes:v,resolve:m,options:e,push:_,replace:T,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:L.add,isReady:ee,install(S){const z=this;S.component("RouterLink",Nm),S.component("RouterView",Kf),S.config.globalProperties.$router=z,Object.defineProperty(S.config.globalProperties,"$route",{enumerable:!0,get:()=>ge(l)}),jr&&!at&&l.value===vt&&(at=!0,_(s.location).catch(se=>{}));const U={};for(const se in vt)Object.defineProperty(U,se,{get:()=>l.value[se],enumerable:!0});S.provide(ua,z),S.provide(qf,rs(U)),S.provide(wo,l);const V=S.unmount;ze.add(S),S.unmount=function(){ze.delete(S),ze.size<1&&(c=vt,K&&K(),K=null,l.value=vt,at=!1,J=!1),V()}}};function xe(S){return S.reduce((z,U)=>z.then(()=>M(U)),Promise.resolve())}return qe}function Um(e,t){const r=[],n=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oVr(c,a))?n.push(a):r.push(a));const l=e.matched[o];l&&(t.matched.find(c=>Vr(c,l))||s.push(l))}return[r,n,s]}const Gl=[{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>rt(()=>import("./index.7df7466f.js"),["./index.7df7466f.js","./togw-turn-truth-religion.5da97e1c.js","./index.31cbc844.css"],import.meta.url).then(e=>e.default||e)},{name:"media",path:"/media",meta:{},alias:[],redirect:void 0,component:()=>rt(()=>import("./media.f9af00c6.js"),["./media.f9af00c6.js","./togw-turn-truth-religion.5da97e1c.js"],import.meta.url).then(e=>e.default||e)},{name:"profile",path:"/profile",meta:{},alias:[],redirect:void 0,component:()=>rt(()=>import("./profile.07517d5a.js"),["./profile.07517d5a.js","./Container.bdcd2033.js"],import.meta.url).then(e=>e.default||e)},{name:"profiles",path:"/profiles",meta:{},alias:[],redirect:void 0,component:()=>rt(()=>import("./profiles.3861e9bb.js"),["./profiles.3861e9bb.js","./Container.bdcd2033.js"],import.meta.url).then(e=>e.default||e)}],Hm={scrollBehavior(e,t,r){const n=he();let s=r||void 0;if(!s&&t&&e&&e.meta.scrollToTop!==!1&&zm(t,e)&&(s={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:Xl(e.hash)}}const i=a=>!!(a.meta.pageTransition??po),o=i(t)&&i(e)?"page:transition:finish":"page:finish";return new Promise(a=>{n.hooks.hookOnce(o,async()=>{await Or(),e.hash&&(s={el:e.hash,top:Xl(e.hash)}),a(s)})})}};function Xl(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function zm(e,t){const r=t.matched.every((n,s)=>{var i,o,a;return((i=n.components)==null?void 0:i.default)===((a=(o=e.matched[s])==null?void 0:o.components)==null?void 0:a.default)});return!!(!r||r&&JSON.stringify(e.params)!==JSON.stringify(t.params))}const qm={},De={...qm,...Hm},Km=async e=>{var l;let t,r;if(!((l=e.meta)!=null&&l.validate))return;const n=he(),s=Ot();if(([t,r]=Jn(()=>Promise.resolve(e.meta.validate(e))),t=await t,r(),t)===!0)return;const o=la({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),a=s.beforeResolve(c=>{if(a(),c===e){const u=s.afterEach(async()=>{u(),await n.runWithContext(()=>Nr(o)),window.history.pushState({},"",e.fullPath)});return!1}})},$s=[Km],Ln={auth:()=>rt(()=>import("./auth.4213601d.js"),[],import.meta.url)};function Wm(e,t,r){const{pathname:n,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){const l=i.includes(e.slice(o))?e.slice(o).length:1;let c=i.slice(l);return c[0]!=="/"&&(c="/"+c),bl(c,"")}const a=r||bl(n,e);return a+(a.includes("?")?"":s)+i}const Jm=Tt({name:"nuxt:router",enforce:"pre",async setup(e){var v,x;let t,r,n=os().app.baseURL;De.hashMode&&!n.includes("#")&&(n+="#");const s=((v=De.history)==null?void 0:v.call(De,n))??(De.hashMode?nm(n):Lf(n)),i=((x=De.routes)==null?void 0:x.call(De,Gl))??Gl;let o;const a=Wm(n,window.location,e.payload.path),l=Bm({...De,scrollBehavior:(m,g,E)=>{var _;if(g===vt){o=E;return}return l.options.scrollBehavior=De.scrollBehavior,(_=De.scrollBehavior)==null?void 0:_.call(De,m,vt,o||E)},history:s,routes:i});e.vueApp.use(l);const c=Hn(l.currentRoute.value);l.afterEach((m,g)=>{c.value=g}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const u=Hn(l.resolve(a)),f=()=>{u.value=l.currentRoute.value};e.hook("page:finish",f),l.afterEach((m,g)=>{var E,_,T,P;((_=(E=m.matched[0])==null?void 0:E.components)==null?void 0:_.default)===((P=(T=g.matched[0])==null?void 0:T.components)==null?void 0:P.default)&&f()});const d={};for(const m in u.value)Object.defineProperty(d,m,{get:()=>u.value[m]});e._route=rs(d),e._middleware=e._middleware||{global:[],named:{}};const h=ci();try{[t,r]=Jn(()=>l.isReady()),await t,r()}catch(m){[t,r]=Jn(()=>e.runWithContext(()=>Nr(m))),await t,r()}const p=ai("_layout");return l.beforeEach(async(m,g)=>{var E;m.meta=xt(m.meta),e.isHydrating&&p.value&&!xr(m.meta.layout)&&(m.meta.layout=p.value),e._processingMiddleware=!0;{const _=new Set([...$s,...e._middleware.global]);for(const T of m.matched){const P=T.meta.middleware;if(P)if(Array.isArray(P))for(const j of P)_.add(j);else _.add(P)}for(const T of _){const P=typeof T=="string"?e._middleware.named[T]||await((E=Ln[T])==null?void 0:E.call(Ln).then(O=>O.default||O)):T;if(!P)throw new Error(`Unknown route middleware: '${T}'.`);const j=await e.runWithContext(()=>P(m,g));if(!e.payload.serverRendered&&e.isHydrating&&(j===!1||j instanceof Error)){const O=j||mo({statusCode:404,statusMessage:`Page Not Found: ${a}`});return await e.runWithContext(()=>Nr(O)),!1}if(j||j===!1)return j}}}),l.onError(()=>{delete e._processingMiddleware}),l.afterEach(async(m,g,E)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(My),m.matched.length===0&&await e.runWithContext(()=>Nr(mo({statusCode:404,fatal:!1,statusMessage:`Page not found: ${m.fullPath}`})))}),e.hooks.hookOnce("app:created",async()=>{try{await l.replace({...l.resolve(a),name:void 0,force:!0}),l.options.scrollBehavior=De.scrollBehavior}catch(m){await e.runWithContext(()=>Nr(m))}}),{provide:{router:l}}}}),Vm=Tt({name:"nuxt:payload",setup(e){wy()&&(e.hooks.hook("link:prefetch",async t=>{is(t).protocol||await Al(t)}),Ot().beforeResolve(async(t,r)=>{if(t.path===r.path)return;const n=await Al(t.path);n&&Object.assign(e.static.data,n.data)}))}}),Gm=Tt({name:"nuxt:global-components"}),Xm=Tt({name:"nuxt:head",setup(e){const r=fy();r.push(yy),e.vueApp.use(r);{let n=!0;const s=()=>{n=!1,r.hooks.callHook("entries:updated",r)};r.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",s),e.hooks.hook("app:suspense:resolve",s)}}}),_s={},Ym=Tt({name:"nuxt:prefetch",setup(e){const t=Ot();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 _s[n]=="function"&&await _s[n]()})}),e.hooks.hook("link:prefetch",r=>{var o,a,l,c;if(cn(r))return;const n=t.resolve(r);if(!n)return;const s=(o=n==null?void 0:n.meta)==null?void 0:o.layout;let i=Array.isArray((a=n==null?void 0:n.meta)==null?void 0:a.middleware)?(l=n==null?void 0:n.meta)==null?void 0:l.middleware:[(c=n==null?void 0:n.meta)==null?void 0:c.middleware];i=i.filter(u=>typeof u=="string");for(const u of i)typeof Ln[u]=="function"&&Ln[u]();s&&typeof _s[s]=="function"&&_s[s]()})}}),xo=globalThis.requestIdleCallback||(e=>{const t=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(r)},1)}),Qm=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Zm=e=>{const t=he();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{xo(e)}):xo(e)},ev={ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1};function Yl(e,t={}){t={...ev,...t};const r=Wf(t);return r.dispatch(e),r.toString()}function Wf(e){const t=[];let r=[];const n=s=>{t.push(s)};return{toString(){return t.join("")},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 (.*)]/i,o=Object.prototype.toString.call(s),a=i.exec(o),l=a?a[1].toLowerCase():"unknown:["+o.toLowerCase()+"]";let c=null;if((c=r.indexOf(s))>=0)return this.dispatch("[CIRCULAR:"+c+"]");if(r.push(s),typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(s))return n("buffer:"),n(s.toString("utf8"));if(l!=="object"&&l!=="function"&&l!=="asyncfunction")this["_"+l]?this["_"+l](s):e.ignoreUnknown||this._unkown(s,l);else{let u=Object.keys(s);e.unorderedObjects&&(u=u.sort()),e.respectType!==!1&&!Ql(s)&&u.splice(0,0,"prototype","__proto__","letructor"),e.excludeKeys&&(u=u.filter(function(f){return!e.excludeKeys(f)})),n("object:"+u.length+":");for(const f of u)this.dispatch(f),n(":"),e.excludeValues||this.dispatch(s[f]),n(",")}},_array(s,i){if(i=typeof i<"u"?i:e.unorderedArrays!==!1,n("array:"+s.length+":"),!i||s.length<=1){for(const l of s)this.dispatch(l);return}const o=[],a=s.map(l=>{const c=Wf(e);return c.dispatch(l),o.push(c.getContext()),c.toString()});return r=[...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.toString())},_string(s){n("string:"+s.length+":"),n(s.toString())},_function(s){n("fn:"),Ql(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.toString())},_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 Use "options.replacer" or "options.ignoreUnknown" -`)},_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")},_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")}}}function Xl(e){return typeof e!="function"?!1:/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code]\s+}$/i.exec(Function.prototype.toString.call(e))!=null}function Xm(e,t,r={}){return e===t||Gl(e,r)===Gl(t,r)}const Ym={path:"/",watch:!0,decode:e=>lf(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))};function Qm(e,t){var i;const r={...Ym,...t},n=Zm(r)||{},s=Oe(n[e]??((i=r.default)==null?void 0:i.call(r)));{const o=typeof BroadcastChannel>"u"?null:new BroadcastChannel(`nuxt:cookies:${e}`);or()&&Zo(()=>{o==null||o.close()});const a=()=>{tv(e,s.value,r),o==null||o.postMessage(ie(s.value))};let l=!1;o&&(o.onmessage=c=>{l=!0,s.value=c.data,Or(()=>{l=!1})}),r.watch?$t(s,(c,u)=>{l||Xm(c,u)||a()},{deep:r.watch!=="shallow"}):a()}return s}function Zm(e={}){return _y(document.cookie,e)}function ev(e,t,r={}){return t==null?Al(e,t,{...r,maxAge:-1}):Al(e,t,r)}function tv(e,t,r={}){document.cookie=ev(e,t,r)}async function qf(e,t=Ut()){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(()=>qf(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 rv(e={}){const t=e.path||window.location.pathname;let r={};try{r=JSON.parse(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(r==null?void 0:r.path)!==t||(r==null?void 0:r.expires)e.find(t=>t!==void 0),sv="noopener noreferrer";/*! @__NO_SIDE_EFFECTS__ */function iv(e){const t=e.componentName||"NuxtLink",r=(n,s)=>{if(!n||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return n;const i=e.trailingSlash==="append"?df:oa;if(typeof n=="string")return i(n,!0);const o="path"in n?n.path:s(n).path;return{...n,name:void 0,path:i(o,!0)}};return Ye({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},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}},setup(n,{slots:s}){const i=Ut(),o=ue(()=>{const f=n.to||n.href||"";return r(f,i.resolve)}),a=ue(()=>n.external||n.target&&n.target!=="_self"?!0:typeof o.value=="object"?!1:o.value===""||ns(o.value,{acceptRelative:!0})),l=Oe(!1),c=Oe(null),u=f=>{var d;c.value=n.custom?(d=f==null?void 0:f.$el)==null?void 0:d.nextElementSibling:f==null?void 0:f.$el};if(n.prefetch!==!1&&n.noPrefetch!==!0&&n.target!=="_blank"&&!lv()){const d=be();let h,p=null;an(()=>{const v=av();Vm(()=>{h=xo(()=>{var x;(x=c==null?void 0:c.value)!=null&&x.tagName&&(p=v.observe(c.value,async()=>{p==null||p(),p=null;const m=typeof o.value=="string"?o.value:i.resolve(o.value).fullPath;await Promise.all([d.hooks.callHook("link:prefetch",m).catch(()=>{}),!a.value&&qf(o.value,i).catch(()=>{})]),l.value=!0}))})})}),ln(()=>{h&&Jm(h),p==null||p(),p=null})}return()=>{var v,x;if(!a.value){const m={ref:u,to:o.value,activeClass:n.activeClass||e.activeClass,exactActiveClass:n.exactActiveClass||e.exactActiveClass,replace:n.replace,ariaCurrentValue:n.ariaCurrentValue,custom:n.custom};return n.custom||(l.value&&(m.class=n.prefetchedClass||e.prefetchedClass),m.rel=n.rel),st(lp("RouterLink"),m,s.default)}const f=typeof o.value=="object"?((v=i.resolve(o.value))==null?void 0:v.href)??null:o.value||null,d=n.target||null,h=n.noRel?null:nv(n.rel,e.externalRelAttribute,f?sv:"")||null,p=()=>Ry(f,{replace:n.replace});return n.custom?s.default?s.default({href:f,navigate:p,get route(){if(!f)return;const m=ii(f);return{path:m.pathname,fullPath:m.pathname,get query(){return ff(m.search)},hash:m.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f}},rel:h,target:d,isExternal:a.value,isActive:!1,isExactActive:!1}):null:st("a",{ref:c,href:f,rel:h,target:d},(x=s.default)==null?void 0:x.call(s))}}})}const ov=iv({componentName:"NuxtLink"});function av(){const e=be();if(e._observer)return e._observer;let t=null;const r=new Map,n=(i,o)=>(t||(t=new IntersectionObserver(a=>{for(const l of a){const c=r.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}})),r.set(i,o),t.observe(i),()=>{r.delete(i),t.unobserve(i),r.size===0&&(t.disconnect(),t=null)});return e._observer={observe:n}}function lv(){const e=navigator.connection;return!!(e&&(e.saveData||/2g/.test(e.effectiveType)))}const cv={logomark:"TOGW-logomark-wht.jpg",avatarBaseUrl:"https://umjsqfwlhbsyfaqlyanw.supabase.co/storage/v1/object/sign/avatars/",ui:{primary:"main",gray:"zinc",avatar:{background:"bg-gray-200 dark:bg-gray-800",placeholder:"font-semibold"},badge:{variant:{theme:"dark:bg-{color}-400 dark:bg-opacity-80 bg-{color}-400 text-gray-800 dark:text-gray-800 ring-0"}},button:{font:"font-semibold",icon:{base:"flex-shrink-0",size:{"2xl":"h-7 w-7","3xl":"h-8 w-8"}},variant:{solid:"shadow-sm text-gray-700 dark:text-gray-700 hover:text-gray-800 dark:hover:text-gray-800 bg-{color}-600 hover:bg-{color}-500 disabled:bg-{color}-500 dark:bg-{color}-600 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-500",ghost:"text-black dark:text-white hover:bg-gray-200 dark:hover:bg-gray-900 disabled:bg-transparent dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"},padding:{"2xl":"px-3.5 py-2.5","3xl":"px-4.5 py-3.5"},square:{"2xl":"p-2.5","3xl":"p-3"},default:{size:"sm",variant:"ghost",loadingIcon:"i-heroicons-arrow-path-20-solid"}},modal:{width:"sm:w-auto",background:"bg-white dark:bg-gray-950",overlay:{background:"bg-gray-100/75 dark:bg-black/75"}},notifications:{position:"top-0 left-0"},tooltip:{background:"bg-primary-500 dark:bg-primary-500",color:"text-gray-900 dark:gray-900"}}},uv={wrapper:"relative",base:"min-w-full table-fixed",divide:"divide-y divide-gray-300 dark:divide-gray-700",thead:"",tbody:"divide-y divide-gray-200 dark:divide-gray-800",tr:{base:"",selected:"bg-gray-50 dark:bg-gray-800/50"},th:{base:"text-left rtl:text-right",padding:"px-3 py-3.5",color:"text-gray-900 dark:text-white",font:"font-semibold",size:"text-sm"},td:{base:"whitespace-nowrap",padding:"px-3 py-4",color:"text-gray-500 dark:text-gray-400",font:"",size:"text-sm"},loadingState:{wrapper:"flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",label:"text-sm text-center text-gray-900 dark:text-white",icon:"w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4 animate-spin"},emptyState:{wrapper:"flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",label:"text-sm text-center text-gray-900 dark:text-white",icon:"w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4"},default:{sortAscIcon:"i-heroicons-bars-arrow-up-20-solid",sortDescIcon:"i-heroicons-bars-arrow-down-20-solid",sortButton:{icon:"i-heroicons-arrows-up-down-20-solid",trailing:!0,square:!0,color:"gray",variant:"ghost",class:"-m-1.5"},loadingState:{icon:"i-heroicons-arrow-path-20-solid",label:"Loading..."},emptyState:{icon:"i-heroicons-circle-stack-20-solid",label:"No items."}}},fv={wrapper:"relative inline-flex items-center justify-center",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-full",placeholder:"font-medium leading-none text-gray-900 dark:text-white truncate",size:{"3xs":"h-4 w-4 text-[8px]","2xs":"h-5 w-5 text-[10px]",xs:"h-6 w-6 text-[11px]",sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-14 w-14 text-lg","2xl":"h-16 w-16 text-xl","3xl":"h-20 w-20 text-2xl"},chip:{base:"absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",background:"bg-{color}-500 dark:bg-{color}-400",position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px] p-px","2xs":"h-[5px] min-w-[5px] text-[5px] p-px",xs:"h-1.5 min-w-[0.375rem] text-[6px] p-px",sm:"h-2 min-w-[0.5rem] text-[7px] p-0.5",md:"h-2.5 min-w-[0.625rem] text-[8px] p-0.5",lg:"h-3 min-w-[0.75rem] text-[10px] p-0.5",xl:"h-3.5 min-w-[0.875rem] text-[11px] p-1","2xl":"h-4 min-w-[1rem] text-[12px] p-1","3xl":"h-5 min-w-[1.25rem] text-[14px] p-1"}},default:{size:"sm",chipColor:null,chipPosition:"top-right"}},dv={wrapper:"flex flex-row-reverse",ring:"ring-2 ring-white dark:ring-gray-900",margin:"-me-1.5 first:me-0"},hv={base:"inline-flex items-center",rounded:"rounded-md",font:"font-medium",size:{xs:"text-xs px-1.5 py-0.5",sm:"text-xs px-2 py-1",md:"text-sm px-2 py-1",lg:"text-sm px-2.5 py-1.5"},color:{},variant:{solid:"bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 ring-opacity-10 dark:ring-opacity-20"},default:{size:"sm",variant:"solid",color:"primary"}},pv={base:"focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0",font:"font-medium",rounded:"rounded-md",size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},square:{"2xs":"p-1",xs:"p-1.5",sm:"p-1.5",md:"p-2",lg:"p-2.5",xl:"p-2.5"},color:{white:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white hover:bg-gray-50 disabled:bg-white dark:bg-gray-900 dark:hover:bg-gray-800/50 dark:disabled:bg-gray-900 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-900 dark:text-white hover:bg-white dark:hover:bg-gray-900 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},gray:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 hover:bg-gray-100 disabled:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700/50 dark:disabled:bg-gray-800 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},black:{solid:"shadow-sm text-white dark:text-gray-900 bg-gray-900 hover:bg-gray-800 disabled:bg-gray-900 dark:bg-white dark:hover:bg-gray-100 dark:disabled:bg-white focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-900 dark:text-white underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}},variant:{solid:"shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400",outline:"ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 dark:hover:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",soft:"text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 dark:bg-{color}-950 dark:hover:bg-{color}-900 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",ghost:"text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 dark:hover:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",link:"text-{color}-500 hover:text-{color}-600 dark:text-{color}-400 dark:hover:text-{color}-500 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"},icon:{base:"flex-shrink-0",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"}},default:{size:"sm",variant:"solid",color:"primary",loadingIcon:"i-heroicons-arrow-path-20-solid"}},gv={wrapper:"inline-flex -space-x-px",rounded:"rounded-md",shadow:"shadow-sm"},yv={wrapper:"relative inline-flex text-left rtl:text-right",container:"z-20",width:"w-48",height:"",background:"bg-white dark:bg-gray-800",shadow:"shadow-lg",rounded:"rounded-md",ring:"ring-1 ring-gray-200 dark:ring-gray-700",base:"relative focus:outline-none overflow-y-auto scroll-py-1",divide:"divide-y divide-gray-200 dark:divide-gray-700",padding:"p-1",item:{base:"group flex items-center gap-2 w-full",rounded:"rounded-md",padding:"px-2 py-1.5",size:"text-sm",active:"bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-white",inactive:"text-gray-700 dark:text-gray-200",disabled:"cursor-not-allowed opacity-50",icon:{base:"flex-shrink-0 h-4 w-4",active:"text-gray-500 dark:text-gray-400",inactive:"text-gray-400 dark:text-gray-500"},avatar:{base:"flex-shrink-0",size:"3xs"},shortcuts:"hidden md:inline-flex flex-shrink-0 gap-0.5 ms-auto"},transition:{enterActiveClass:"transition duration-100 ease-out",enterFromClass:"transform scale-95 opacity-0",enterToClass:"transform scale-100 opacity-100",leaveActiveClass:"transition duration-75 ease-out",leaveFromClass:"transform scale-100 opacity-100",leaveToClass:"transform scale-95 opacity-0"},popper:{placement:"bottom-end",strategy:"fixed"}},mv={base:"inline-flex items-center justify-center text-gray-900 dark:text-white",padding:"px-1",size:{xs:"h-4 min-w-[16px] text-[10px]",sm:"h-5 min-w-[20px] text-[11px]",md:"h-6 min-w-[24px] text-[12px]"},rounded:"rounded",font:"font-medium font-sans",background:"bg-gray-100 dark:bg-gray-800",ring:"ring-1 ring-gray-300 dark:ring-gray-700 ring-inset",default:{size:"sm"}},fa={wrapper:"relative",base:"relative block w-full disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none border-0",rounded:"rounded-md",placeholder:"placeholder-gray-400 dark:placeholder-gray-500",size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-2",md:"gap-x-2",lg:"gap-x-2",xl:"gap-x-2"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},leading:{padding:{"2xs":"ps-7",xs:"ps-8",sm:"ps-9",md:"ps-10",lg:"ps-11",xl:"ps-12"}},trailing:{padding:{"2xs":"pe-7",xs:"pe-8",sm:"pe-9",md:"pe-10",lg:"pe-11",xl:"pe-12"}},color:{white:{outline:"shadow-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"},gray:{outline:"shadow-sm bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"}},variant:{outline:"shadow-sm bg-transparent text-gray-900 dark:text-white ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 focus:ring-2 focus:ring-{color}-500 dark:focus:ring-{color}-400",none:"bg-transparent focus:ring-0 focus:shadow-none"},icon:{base:"flex-shrink-0 text-gray-400 dark:text-gray-500",color:"text-{color}-500 dark:text-{color}-400",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"},leading:{wrapper:"absolute inset-y-0 start-0 flex items-center",pointer:"pointer-events-none",padding:{"2xs":"ps-2",xs:"ps-2.5",sm:"ps-2.5",md:"ps-3",lg:"ps-3.5",xl:"ps-3.5"}},trailing:{wrapper:"absolute inset-y-0 end-0 flex items-center",pointer:"pointer-events-none",padding:{"2xs":"pe-2",xs:"pe-2.5",sm:"pe-2.5",md:"pe-3",lg:"pe-3.5",xl:"pe-3.5"}}},default:{size:"sm",color:"white",variant:"outline",loadingIcon:"i-heroicons-arrow-path-20-solid"}},vv={wrapper:"",label:{wrapper:"flex content-center justify-between",base:"block text-sm font-medium text-gray-700 dark:text-gray-200",required:"after:content-['*'] after:ms-0.5 after:text-red-500 dark:after:text-red-400"},description:"text-sm text-gray-500 dark:text-gray-400",container:"mt-1 relative",hint:"text-sm text-gray-500 dark:text-gray-400",help:"mt-2 text-sm text-gray-500 dark:text-gray-400",error:"mt-2 text-sm text-red-500 dark:text-red-400"},bv={...fa,default:{size:"sm",color:"white",variant:"outline"}},_v={...fa,placeholder:"text-gray-900 dark:text-white",default:{size:"sm",color:"white",variant:"outline",loadingIcon:"i-heroicons-arrow-path-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"}},wv={wrapper:"relative",container:"z-20",width:"w-full",height:"max-h-60",base:"relative focus:outline-none overflow-y-auto scroll-py-1",background:"bg-white dark:bg-gray-800",shadow:"shadow-lg",rounded:"rounded-md",padding:"p-1",ring:"ring-1 ring-gray-200 dark:ring-gray-700",input:"block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 focus:border-inherit sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",option:{base:"cursor-default select-none relative flex items-center justify-between gap-1",rounded:"rounded-md",padding:"px-2 py-1.5",size:"text-sm",color:"text-gray-900 dark:text-white",container:"flex items-center gap-2 min-w-0",active:"bg-gray-100 dark:bg-gray-900",inactive:"",selected:"pe-7",disabled:"cursor-not-allowed opacity-50",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",icon:{base:"flex-shrink-0 h-4 w-4",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{wrapper:"absolute inset-y-0 end-0 flex items-center",padding:"pe-2",base:"h-4 w-4 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"3xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"}},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid"}},xv={wrapper:"relative flex items-start",base:"h-4 w-4 dark:checked:bg-current dark:checked:border-transparent disabled:opacity-50 disabled:cursor-not-allowed focus:ring-0 focus:ring-transparent focus:ring-offset-transparent",color:"text-{color}-500 dark:text-{color}-400",background:"bg-white dark:bg-gray-900",border:"border border-gray-300 dark:border-gray-700",ring:"focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",label:"font-medium text-gray-700 dark:text-gray-200",required:"text-red-500 dark:text-red-400",help:"text-gray-500 dark:text-gray-400",default:{color:"primary"}},kv={wrapper:"relative flex items-start",base:"h-4 w-4 dark:checked:bg-current dark:checked:border-transparent dark:indeterminate:bg-current dark:indeterminate:border-transparent disabled:opacity-50 disabled:cursor-not-allowed focus:ring-0 focus:ring-transparent focus:ring-offset-transparent",rounded:"rounded",color:"text-{color}-500 dark:text-{color}-400",background:"bg-white dark:bg-gray-900",border:"border border-gray-300 dark:border-gray-700",ring:"focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",label:"font-medium text-gray-700 dark:text-gray-200",required:"text-red-500 dark:text-red-400",help:"text-gray-500 dark:text-gray-400",default:{color:"primary"}},Ev={base:"relative inline-flex h-5 w-9 flex-shrink-0 border-2 border-transparent disabled:cursor-not-allowed disabled:opacity-50 focus:outline-none",rounded:"rounded-full",ring:"focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",active:"bg-{color}-500 dark:bg-{color}-400",inactive:"bg-gray-200 dark:bg-gray-700",container:{base:"pointer-events-none relative inline-block h-4 w-4 rounded-full bg-white dark:bg-gray-900 shadow transform ring-0 transition ease-in-out duration-200",active:"translate-x-4 rtl:-translate-x-4",inactive:"translate-x-0 rtl:-translate-x-0"},icon:{base:"absolute inset-0 h-full w-full flex items-center justify-center transition-opacity",active:"opacity-100 ease-in duration-200",inactive:"opacity-0 ease-out duration-100",on:"h-3 w-3 text-{color}-500 dark:text-{color}-400",off:"h-3 w-3 text-gray-400 dark:text-gray-500"},default:{onIcon:null,offIcon:null,color:"primary"}},Tv={wrapper:"relative w-full",base:"w-full absolute appearance-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 focus:outline-none [&::-webkit-slider-runnable-track]:h-full [&::-moz-slider-runnable-track]:h-full",background:"bg-gray-200 dark:bg-gray-700",rounded:"rounded-lg",ring:"focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",progress:{base:"absolute inset-0 h-full pointer-events-none",rounded:"rounded-s-lg",background:"bg-{color}-500 dark:bg-{color}-400"},thumb:{base:"[&::-webkit-slider-thumb]:relative [&::-moz-range-thumb]:relative [&::-webkit-slider-thumb]:z-[1] [&::-moz-range-thumb]:z-[1] [&::-webkit-slider-thumb]:appearance-none [&::-moz-range-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-0",color:"text-{color}-500 dark:text-{color}-400",background:"[&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:dark:bg-gray-900 [&::-moz-range-thumb]:bg-current",ring:"[&::-webkit-slider-thumb]:ring-2 [&::-webkit-slider-thumb]:ring-current",size:{sm:"[&::-webkit-slider-thumb]:h-3 [&::-moz-range-thumb]:h-3 [&::-webkit-slider-thumb]:w-3 [&::-moz-range-thumb]:w-3 [&::-webkit-slider-thumb]:-mt-1 [&::-moz-range-thumb]:-mt-1",md:"[&::-webkit-slider-thumb]:h-4 [&::-moz-range-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-moz-range-thumb]:w-4 [&::-webkit-slider-thumb]:-mt-1 [&::-moz-range-thumb]:-mt-1",lg:"[&::-webkit-slider-thumb]:h-5 [&::-moz-range-thumb]:h-5 [&::-webkit-slider-thumb]:w-5 [&::-moz-range-thumb]:w-5 [&::-webkit-slider-thumb]:-mt-1 [&::-moz-range-thumb]:-mt-1"}},size:{sm:"h-1",md:"h-2",lg:"h-3"},default:{size:"md",color:"primary"}},Ov={base:"overflow-hidden",background:"bg-white dark:bg-gray-900",divide:"divide-y divide-gray-200 dark:divide-gray-800",ring:"ring-1 ring-gray-200 dark:ring-gray-800",rounded:"rounded-lg",shadow:"shadow",body:{base:"",background:"",padding:"px-4 py-5 sm:p-6"},header:{base:"",background:"",padding:"px-4 py-5 sm:px-6"},footer:{base:"",background:"",padding:"px-4 py-4 sm:px-6"}},Cv={base:"mx-auto",padding:"px-4 sm:px-6 lg:px-8",constrained:"max-w-7xl"},Sv={base:"animate-pulse",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-md"},Av={wrapper:"relative",base:"group relative flex items-center gap-2 focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-1 focus-visible:before:ring-primary-500 dark:focus-visible:before:ring-primary-400 before:absolute before:inset-px before:rounded-md disabled:cursor-not-allowed disabled:opacity-75",ring:"focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",padding:"px-3 py-1.5",width:"w-full",rounded:"rounded-md",font:"font-medium",size:"text-sm",active:"text-gray-900 dark:text-white before:bg-gray-100 dark:before:bg-gray-800",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:before:bg-gray-50 dark:hover:before:bg-gray-800/50",label:"truncate relative",icon:{base:"flex-shrink-0 w-4 h-4",active:"text-gray-700 dark:text-gray-200",inactive:"text-gray-400 dark:text-gray-500 group-hover:text-gray-700 dark:group-hover:text-gray-200"},avatar:{base:"flex-shrink-0",size:"3xs"},badge:{base:"relative ms-auto inline-block py-0.5 px-2 text-xs rounded-md -me-1 -my-0.5",active:"bg-white dark:bg-gray-900",inactive:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white group-hover:bg-white dark:group-hover:bg-gray-900"}},$v={wrapper:"flex flex-col flex-1 min-h-0 divide-y divide-gray-100 dark:divide-gray-800",container:"relative flex-1 overflow-y-auto divide-y divide-gray-100 dark:divide-gray-800 scroll-py-2",input:{wrapper:"relative flex items-center",base:"w-full placeholder-gray-400 dark:placeholder-gray-500 bg-transparent border-0 text-gray-900 dark:text-white focus:ring-0 focus:outline-none",padding:"px-4",height:"h-12",size:"sm:text-sm",icon:{base:"pointer-events-none absolute start-4 text-gray-400 dark:text-gray-500",size:"h-4 w-4",padding:"ps-10"},closeButton:"absolute end-4"},emptyState:{wrapper:"flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",label:"text-sm text-center text-gray-900 dark:text-white",queryLabel:"text-sm text-center text-gray-900 dark:text-white",icon:"w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4"},group:{wrapper:"p-2",label:"px-2 my-2 text-xs font-semibold text-gray-900 dark:text-white",container:"text-sm text-gray-700 dark:text-gray-200",command:{base:"flex justify-between select-none items-center rounded-md px-2 py-1.5 gap-2 relative",active:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactive:"",label:"flex items-center gap-1.5 min-w-0",prefix:"text-gray-400 dark:text-gray-500",suffix:"text-gray-400 dark:text-gray-500",container:"flex items-center gap-2 min-w-0",icon:{base:"flex-shrink-0 w-4 h-4",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{base:"h-4 w-4 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"3xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"},disabled:"opacity-50",shortcuts:"hidden md:inline-flex flex-shrink-0 gap-0.5"},active:"flex-shrink-0 text-gray-500 dark:text-gray-400",inactive:"flex-shrink-0 text-gray-500 dark:text-gray-400"},default:{icon:"i-heroicons-magnifying-glass-20-solid",loadingIcon:"i-heroicons-arrow-path-20-solid",emptyState:{icon:"i-heroicons-magnifying-glass-20-solid",label:"We couldn't find any items.",queryLabel:"We couldn't find any items with that term. Please try again."},closeButton:null,selectedIcon:"i-heroicons-check-20-solid"}},Pv={wrapper:"flex items-center -space-x-px",base:"",rounded:"first:rounded-s-md last:rounded-e-md",default:{size:"sm",activeButton:{color:"primary"},inactiveButton:{color:"white"},prevButton:{color:"white",class:"rtl:[&_span:first-child]:rotate-180",icon:"i-heroicons-chevron-left-20-solid"},nextButton:{color:"white",class:"rtl:[&_span:last-child]:rotate-180",icon:"i-heroicons-chevron-right-20-solid "}}},Rv={wrapper:"relative z-50",inner:"fixed inset-0 overflow-y-auto",container:"flex min-h-full items-end sm:items-center justify-center text-center",padding:"p-4 sm:p-0",base:"relative text-left rtl:text-right overflow-hidden sm:my-8 w-full flex flex-col",overlay:{base:"fixed inset-0 transition-opacity",background:"bg-gray-200/75 dark:bg-gray-800/75",transition:{enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"}},background:"bg-white dark:bg-gray-900",ring:"",rounded:"rounded-lg",shadow:"shadow-xl",width:"sm:max-w-lg",height:"",transition:{enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"}},Iv={wrapper:"fixed inset-0 flex z-50",overlay:{base:"fixed inset-0 transition-opacity",background:"bg-gray-200/75 dark:bg-gray-800/75",transition:{enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0"}},base:"relative flex-1 flex flex-col w-full focus:outline-none",background:"bg-white dark:bg-gray-900",ring:"",rounded:"",padding:"",shadow:"shadow-xl",width:"w-screen max-w-md",transition:{enter:"transform transition ease-in-out duration-300",leave:"transform transition ease-in-out duration-200"}},jv={wrapper:"relative inline-flex",container:"z-20",width:"max-w-xs",background:"bg-white dark:bg-gray-900",color:"text-gray-900 dark:text-white",shadow:"shadow",rounded:"rounded",ring:"ring-1 ring-gray-200 dark:ring-gray-800",base:"invisible lg:visible h-6 px-2 py-1 text-xs font-normal truncate",shortcuts:"hidden md:inline-flex flex-shrink-0 gap-0.5",transition:{enterActiveClass:"transition ease-out duration-200",enterFromClass:"opacity-0 translate-y-1",enterToClass:"opacity-100 translate-y-0",leaveActiveClass:"transition ease-in duration-150",leaveFromClass:"opacity-100 translate-y-0",leaveToClass:"opacity-0 translate-y-1"},popper:{strategy:"fixed"}},Lv={wrapper:"relative",container:"z-20",width:"",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-md",ring:"ring-1 ring-gray-200 dark:ring-gray-800",base:"overflow-hidden focus:outline-none",transition:{enterActiveClass:"transition ease-out duration-200",enterFromClass:"opacity-0 translate-y-1",enterToClass:"opacity-100 translate-y-0",leaveActiveClass:"transition ease-in duration-150",leaveFromClass:"opacity-100 translate-y-0",leaveToClass:"opacity-0 translate-y-1"},popper:{strategy:"fixed"}},Nv={wrapper:"relative",container:"z-20",width:"",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-md",ring:"ring-1 ring-gray-200 dark:ring-gray-800",base:"overflow-hidden focus:outline-none",transition:{enterActiveClass:"transition ease-out duration-200",enterFromClass:"opacity-0 translate-y-1",enterToClass:"opacity-100 translate-y-0",leaveActiveClass:"transition ease-in duration-150",leaveFromClass:"opacity-100 translate-y-0",leaveToClass:"opacity-0 translate-y-1"},popper:{placement:"bottom-start",scroll:!1}},Mv={wrapper:"w-full pointer-events-auto",container:"relative overflow-hidden",title:"text-sm font-medium text-gray-900 dark:text-white",description:"mt-1 text-sm leading-5 text-gray-500 dark:text-gray-400",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-lg",padding:"p-4",ring:"ring-1 ring-gray-200 dark:ring-gray-800",icon:{base:"flex-shrink-0 w-5 h-5",color:"text-{color}-500 dark:text-{color}-400"},avatar:{base:"flex-shrink-0 self-center",size:"md"},progress:{base:"absolute bottom-0 end-0 start-0 h-1",background:"bg-{color}-500 dark:bg-{color}-400"},transition:{enterActiveClass:"transform ease-out duration-300 transition",enterFromClass:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterToClass:"translate-y-0 opacity-100 sm:translate-x-0",leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},default:{color:"primary",icon:null,closeButton:{icon:"i-heroicons-x-mark-20-solid",color:"gray",variant:"link",padded:!1},actionButton:{size:"xs",color:"white"}}},Dv={wrapper:"fixed flex flex-col justify-end z-[55]",position:"bottom-0 end-0",width:"w-full sm:w-96",container:"px-4 sm:px-6 py-6 space-y-3 overflow-y-auto"},Fv={ui:{table:uv,avatar:fv,avatarGroup:dv,badge:hv,button:pv,buttonGroup:gv,dropdown:yv,kbd:mv,input:fa,formGroup:vv,textarea:bv,select:_v,selectMenu:wv,checkbox:kv,radio:xv,toggle:Ev,range:Tv,card:Ov,container:Cv,skeleton:Sv,verticalNavigation:Av,commandPalette:$v,pagination:Pv,modal:Rv,slideover:Iv,popover:Lv,tooltip:jv,contextMenu:Nv,notification:Mv,notifications:Dv}},Bv={ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","brand","main","primary"]}},Le=Ty(cv,Fv,Bv);function fi(){const e=be();return e._appConfig||(e._appConfig=xt(Le)),e._appConfig}function Di(...e){return e.filter(Boolean).join(" ")}const Yl=e=>{const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(n,s,i,o){return s+s+i+i+o+o});const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?`${parseInt(r[1],16)} ${parseInt(r[2],16)} ${parseInt(r[3],16)}`:null},Uv="inherit",Hv="currentColor",zv="transparent",qv="#000",Kv="#fff",Wv={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},Jv={50:"rgb(var(--color-gray-50) / )",100:"rgb(var(--color-gray-100) / )",200:"rgb(var(--color-gray-200) / )",300:"rgb(var(--color-gray-300) / )",400:"rgb(var(--color-gray-400) / )",500:"rgb(var(--color-gray-500) / )",600:"rgb(var(--color-gray-600) / )",700:"rgb(var(--color-gray-700) / )",800:"rgb(var(--color-gray-800) / )",900:"rgb(var(--color-gray-900) / )",950:"rgb(var(--color-gray-950) / )"},Vv={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},Gv={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},Xv={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},Yv={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},Qv={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},Zv={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},eb={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},tb={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},rb={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},nb={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},sb={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},ib={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},ob={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},ab={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},lb={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},cb={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},ub={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fb={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},db={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},hb={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},pb={50:"#f1edff",100:"#dbd3ff",200:"#c9beff",300:"#a18eff",400:"#7a5eff",500:"#6342ff",600:"#5337d7",700:"#3e28a3",800:"#2b1c70",900:"#1f1258",950:"#0f082b"},gb={50:"#edfffb",100:"#dafff6",200:"#b5ffed",300:"#91ffe6",400:"#6cffdd",500:"#47ffd4",600:"#41ebc3",700:"#31af91",800:"#268770",900:"#1b5f4f",950:"#0c2822"},yb={50:"rgb(var(--color-primary-50) / )",100:"rgb(var(--color-primary-100) / )",200:"rgb(var(--color-primary-200) / )",300:"rgb(var(--color-primary-300) / )",400:"rgb(var(--color-primary-400) / )",500:"rgb(var(--color-primary-500) / )",600:"rgb(var(--color-primary-600) / )",700:"rgb(var(--color-primary-700) / )",800:"rgb(var(--color-primary-800) / )",900:"rgb(var(--color-primary-900) / )",950:"rgb(var(--color-primary-950) / )"},mb={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},vs={inherit:Uv,current:Hv,transparent:zv,black:qv,white:Kv,slate:Wv,gray:Jv,zinc:Vv,neutral:Gv,stone:Xv,red:Yv,orange:Qv,amber:Zv,yellow:eb,lime:tb,green:rb,emerald:nb,teal:sb,cyan:ib,sky:ob,blue:ab,indigo:lb,violet:cb,purple:ub,fuchsia:fb,pink:db,rose:hb,brand:pb,main:gb,primary:yb,cool:mb},vb=Bt(()=>{const e=fi(),t=be(),r=ue(()=>{const s=vs[e.ui.primary],i=vs[e.ui.gray];return s||console.warn(`[@nuxthq/ui] Primary color '${e.ui.primary}' not found in Tailwind config`),i||console.warn(`[@nuxthq/ui] Gray color '${e.ui.gray}' not found in Tailwind config`),`:root { -${Object.entries(s||vs.green).map(([o,a])=>`--color-primary-${o}: ${Yl(a)};`).join(` +`)},_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")},_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")}}}function Ql(e){return typeof e!="function"?!1:/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code]\s+}$/i.exec(Function.prototype.toString.call(e))!=null}function tv(e,t,r={}){return e===t||Yl(e,r)===Yl(t,r)}const rv={path:"/",watch:!0,decode:e=>uf(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))};function nv(e,t){var i;const r={...rv,...t},n=sv(r)||{},s=Oe(n[e]??((i=r.default)==null?void 0:i.call(r)));{const o=typeof BroadcastChannel>"u"?null:new BroadcastChannel(`nuxt:cookies:${e}`);or()&&Zo(()=>{o==null||o.close()});const a=()=>{ov(e,s.value,r),o==null||o.postMessage(ie(s.value))};let l=!1;o&&(o.onmessage=c=>{l=!0,s.value=c.data,Or(()=>{l=!1})}),r.watch?Rt(s,(c,u)=>{l||tv(c,u)||a()},{deep:r.watch!=="shallow"}):a()}return s}function sv(e={}){return Ey(document.cookie,e)}function iv(e,t,r={}){return t==null?Pl(e,t,{...r,maxAge:-1}):Pl(e,t,r)}function ov(e,t,r={}){document.cookie=iv(e,t,r)}async function Jf(e,t=Ot()){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(()=>Jf(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 av(e={}){const t=e.path||window.location.pathname;let r={};try{r=JSON.parse(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(r==null?void 0:r.path)!==t||(r==null?void 0:r.expires)e.find(t=>t!==void 0),cv="noopener noreferrer";/*! @__NO_SIDE_EFFECTS__ */function uv(e){const t=e.componentName||"NuxtLink",r=(n,s)=>{if(!n||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return n;const i=e.trailingSlash==="append"?pf:oa;if(typeof n=="string")return i(n,!0);const o="path"in n?n.path:s(n).path;return{...n,name:void 0,path:i(o,!0)}};return Ye({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},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}},setup(n,{slots:s}){const i=Ot(),o=ue(()=>{const f=n.to||n.href||"";return r(f,i.resolve)}),a=ue(()=>n.external||n.target&&n.target!=="_self"?!0:typeof o.value=="object"?!1:o.value===""||cn(o.value,{acceptRelative:!0})),l=Oe(!1),c=Oe(null),u=f=>{var d;c.value=n.custom?(d=f==null?void 0:f.$el)==null?void 0:d.nextElementSibling:f==null?void 0:f.$el};if(n.prefetch!==!1&&n.noPrefetch!==!0&&n.target!=="_blank"&&!hv()){const d=he();let h,p=null;an(()=>{const v=dv();Zm(()=>{h=xo(()=>{var x;(x=c==null?void 0:c.value)!=null&&x.tagName&&(p=v.observe(c.value,async()=>{p==null||p(),p=null;const m=typeof o.value=="string"?o.value:i.resolve(o.value).fullPath;await Promise.all([d.hooks.callHook("link:prefetch",m).catch(()=>{}),!a.value&&Jf(o.value,i).catch(()=>{})]),l.value=!0}))})})}),ln(()=>{h&&Qm(h),p==null||p(),p=null})}return()=>{var v,x;if(!a.value){const m={ref:u,to:o.value,activeClass:n.activeClass||e.activeClass,exactActiveClass:n.exactActiveClass||e.exactActiveClass,replace:n.replace,ariaCurrentValue:n.ariaCurrentValue,custom:n.custom};return n.custom||(l.value&&(m.class=n.prefetchedClass||e.prefetchedClass),m.rel=n.rel),st(fp("RouterLink"),m,s.default)}const f=typeof o.value=="object"?((v=i.resolve(o.value))==null?void 0:v.href)??null:o.value||null,d=n.target||null,h=n.noRel?null:lv(n.rel,e.externalRelAttribute,f?cv:"")||null,p=()=>Ny(f,{replace:n.replace});return n.custom?s.default?s.default({href:f,navigate:p,get route(){if(!f)return;const m=is(f);return{path:m.pathname,fullPath:m.pathname,get query(){return hf(m.search)},hash:m.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f}},rel:h,target:d,isExternal:a.value,isActive:!1,isExactActive:!1}):null:st("a",{ref:c,href:f,rel:h,target:d},(x=s.default)==null?void 0:x.call(s))}}})}const fv=uv({componentName:"NuxtLink"});function dv(){const e=he();if(e._observer)return e._observer;let t=null;const r=new Map,n=(i,o)=>(t||(t=new IntersectionObserver(a=>{for(const l of a){const c=r.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}})),r.set(i,o),t.observe(i),()=>{r.delete(i),t.unobserve(i),r.size===0&&(t.disconnect(),t=null)});return e._observer={observe:n}}function hv(){const e=navigator.connection;return!!(e&&(e.saveData||/2g/.test(e.effectiveType)))}const pv={logomark:"TOGW-logomark-wht.jpg",avatarBaseUrl:"https://umjsqfwlhbsyfaqlyanw.supabase.co/storage/v1/object/sign/avatars/",ui:{primary:"main",gray:"zinc",avatar:{background:"bg-gray-200 dark:bg-gray-800",placeholder:"font-semibold"},badge:{variant:{theme:"dark:bg-{color}-400 dark:bg-opacity-80 bg-{color}-400 text-gray-800 dark:text-gray-800 ring-0"}},button:{font:"font-semibold",icon:{base:"flex-shrink-0",size:{"2xl":"h-7 w-7","3xl":"h-8 w-8"}},variant:{solid:"shadow-sm text-gray-700 dark:text-gray-700 hover:text-gray-800 dark:hover:text-gray-800 bg-{color}-600 hover:bg-{color}-500 disabled:bg-{color}-500 dark:bg-{color}-600 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-500",ghost:"text-black dark:text-white hover:bg-gray-200 dark:hover:bg-gray-900 disabled:bg-transparent dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"},padding:{"2xl":"px-3.5 py-2.5","3xl":"px-4.5 py-3.5"},square:{"2xl":"p-2.5","3xl":"p-3"},default:{size:"sm",variant:"ghost",loadingIcon:"i-heroicons-arrow-path-20-solid"}},modal:{width:"sm:w-auto",background:"bg-white dark:bg-gray-950",overlay:{background:"bg-gray-100/75 dark:bg-black/75"}},notifications:{position:"top-0 left-0"},tooltip:{background:"bg-primary-500 dark:bg-primary-500",color:"text-gray-900 dark:gray-900"}}},gv={wrapper:"relative",base:"min-w-full table-fixed",divide:"divide-y divide-gray-300 dark:divide-gray-700",thead:"",tbody:"divide-y divide-gray-200 dark:divide-gray-800",tr:{base:"",selected:"bg-gray-50 dark:bg-gray-800/50"},th:{base:"text-left rtl:text-right",padding:"px-3 py-3.5",color:"text-gray-900 dark:text-white",font:"font-semibold",size:"text-sm"},td:{base:"whitespace-nowrap",padding:"px-3 py-4",color:"text-gray-500 dark:text-gray-400",font:"",size:"text-sm"},loadingState:{wrapper:"flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",label:"text-sm text-center text-gray-900 dark:text-white",icon:"w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4 animate-spin"},emptyState:{wrapper:"flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",label:"text-sm text-center text-gray-900 dark:text-white",icon:"w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4"},default:{sortAscIcon:"i-heroicons-bars-arrow-up-20-solid",sortDescIcon:"i-heroicons-bars-arrow-down-20-solid",sortButton:{icon:"i-heroicons-arrows-up-down-20-solid",trailing:!0,square:!0,color:"gray",variant:"ghost",class:"-m-1.5"},loadingState:{icon:"i-heroicons-arrow-path-20-solid",label:"Loading..."},emptyState:{icon:"i-heroicons-circle-stack-20-solid",label:"No items."}}},yv={wrapper:"relative inline-flex items-center justify-center",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-full",placeholder:"font-medium leading-none text-gray-900 dark:text-white truncate",size:{"3xs":"h-4 w-4 text-[8px]","2xs":"h-5 w-5 text-[10px]",xs:"h-6 w-6 text-[11px]",sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-14 w-14 text-lg","2xl":"h-16 w-16 text-xl","3xl":"h-20 w-20 text-2xl"},chip:{base:"absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",background:"bg-{color}-500 dark:bg-{color}-400",position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px] p-px","2xs":"h-[5px] min-w-[5px] text-[5px] p-px",xs:"h-1.5 min-w-[0.375rem] text-[6px] p-px",sm:"h-2 min-w-[0.5rem] text-[7px] p-0.5",md:"h-2.5 min-w-[0.625rem] text-[8px] p-0.5",lg:"h-3 min-w-[0.75rem] text-[10px] p-0.5",xl:"h-3.5 min-w-[0.875rem] text-[11px] p-1","2xl":"h-4 min-w-[1rem] text-[12px] p-1","3xl":"h-5 min-w-[1.25rem] text-[14px] p-1"}},default:{size:"sm",chipColor:null,chipPosition:"top-right"}},mv={wrapper:"flex flex-row-reverse",ring:"ring-2 ring-white dark:ring-gray-900",margin:"-me-1.5 first:me-0"},vv={base:"inline-flex items-center",rounded:"rounded-md",font:"font-medium",size:{xs:"text-xs px-1.5 py-0.5",sm:"text-xs px-2 py-1",md:"text-sm px-2 py-1",lg:"text-sm px-2.5 py-1.5"},color:{},variant:{solid:"bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 ring-opacity-10 dark:ring-opacity-20"},default:{size:"sm",variant:"solid",color:"primary"}},bv={base:"focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0",font:"font-medium",rounded:"rounded-md",size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},square:{"2xs":"p-1",xs:"p-1.5",sm:"p-1.5",md:"p-2",lg:"p-2.5",xl:"p-2.5"},color:{white:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white hover:bg-gray-50 disabled:bg-white dark:bg-gray-900 dark:hover:bg-gray-800/50 dark:disabled:bg-gray-900 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-900 dark:text-white hover:bg-white dark:hover:bg-gray-900 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},gray:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 hover:bg-gray-100 disabled:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700/50 dark:disabled:bg-gray-800 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},black:{solid:"shadow-sm text-white dark:text-gray-900 bg-gray-900 hover:bg-gray-800 disabled:bg-gray-900 dark:bg-white dark:hover:bg-gray-100 dark:disabled:bg-white focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-900 dark:text-white underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}},variant:{solid:"shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400",outline:"ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 dark:hover:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",soft:"text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 dark:bg-{color}-950 dark:hover:bg-{color}-900 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",ghost:"text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 dark:hover:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",link:"text-{color}-500 hover:text-{color}-600 dark:text-{color}-400 dark:hover:text-{color}-500 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"},icon:{base:"flex-shrink-0",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"}},default:{size:"sm",variant:"solid",color:"primary",loadingIcon:"i-heroicons-arrow-path-20-solid"}},_v={wrapper:"inline-flex -space-x-px",rounded:"rounded-md",shadow:"shadow-sm"},wv={wrapper:"relative inline-flex text-left rtl:text-right",container:"z-20",width:"w-48",height:"",background:"bg-white dark:bg-gray-800",shadow:"shadow-lg",rounded:"rounded-md",ring:"ring-1 ring-gray-200 dark:ring-gray-700",base:"relative focus:outline-none overflow-y-auto scroll-py-1",divide:"divide-y divide-gray-200 dark:divide-gray-700",padding:"p-1",item:{base:"group flex items-center gap-2 w-full",rounded:"rounded-md",padding:"px-2 py-1.5",size:"text-sm",active:"bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-white",inactive:"text-gray-700 dark:text-gray-200",disabled:"cursor-not-allowed opacity-50",icon:{base:"flex-shrink-0 h-4 w-4",active:"text-gray-500 dark:text-gray-400",inactive:"text-gray-400 dark:text-gray-500"},avatar:{base:"flex-shrink-0",size:"3xs"},shortcuts:"hidden md:inline-flex flex-shrink-0 gap-0.5 ms-auto"},transition:{enterActiveClass:"transition duration-100 ease-out",enterFromClass:"transform scale-95 opacity-0",enterToClass:"transform scale-100 opacity-100",leaveActiveClass:"transition duration-75 ease-out",leaveFromClass:"transform scale-100 opacity-100",leaveToClass:"transform scale-95 opacity-0"},popper:{placement:"bottom-end",strategy:"fixed"}},xv={base:"inline-flex items-center justify-center text-gray-900 dark:text-white",padding:"px-1",size:{xs:"h-4 min-w-[16px] text-[10px]",sm:"h-5 min-w-[20px] text-[11px]",md:"h-6 min-w-[24px] text-[12px]"},rounded:"rounded",font:"font-medium font-sans",background:"bg-gray-100 dark:bg-gray-800",ring:"ring-1 ring-gray-300 dark:ring-gray-700 ring-inset",default:{size:"sm"}},fa={wrapper:"relative",base:"relative block w-full disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none border-0",rounded:"rounded-md",placeholder:"placeholder-gray-400 dark:placeholder-gray-500",size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-2",md:"gap-x-2",lg:"gap-x-2",xl:"gap-x-2"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},leading:{padding:{"2xs":"ps-7",xs:"ps-8",sm:"ps-9",md:"ps-10",lg:"ps-11",xl:"ps-12"}},trailing:{padding:{"2xs":"pe-7",xs:"pe-8",sm:"pe-9",md:"pe-10",lg:"pe-11",xl:"pe-12"}},color:{white:{outline:"shadow-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"},gray:{outline:"shadow-sm bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"}},variant:{outline:"shadow-sm bg-transparent text-gray-900 dark:text-white ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 focus:ring-2 focus:ring-{color}-500 dark:focus:ring-{color}-400",none:"bg-transparent focus:ring-0 focus:shadow-none"},icon:{base:"flex-shrink-0 text-gray-400 dark:text-gray-500",color:"text-{color}-500 dark:text-{color}-400",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"},leading:{wrapper:"absolute inset-y-0 start-0 flex items-center",pointer:"pointer-events-none",padding:{"2xs":"ps-2",xs:"ps-2.5",sm:"ps-2.5",md:"ps-3",lg:"ps-3.5",xl:"ps-3.5"}},trailing:{wrapper:"absolute inset-y-0 end-0 flex items-center",pointer:"pointer-events-none",padding:{"2xs":"pe-2",xs:"pe-2.5",sm:"pe-2.5",md:"pe-3",lg:"pe-3.5",xl:"pe-3.5"}}},default:{size:"sm",color:"white",variant:"outline",loadingIcon:"i-heroicons-arrow-path-20-solid"}},kv={wrapper:"",label:{wrapper:"flex content-center justify-between",base:"block text-sm font-medium text-gray-700 dark:text-gray-200",required:"after:content-['*'] after:ms-0.5 after:text-red-500 dark:after:text-red-400"},description:"text-sm text-gray-500 dark:text-gray-400",container:"mt-1 relative",hint:"text-sm text-gray-500 dark:text-gray-400",help:"mt-2 text-sm text-gray-500 dark:text-gray-400",error:"mt-2 text-sm text-red-500 dark:text-red-400"},Ev={...fa,default:{size:"sm",color:"white",variant:"outline"}},Tv={...fa,placeholder:"text-gray-900 dark:text-white",default:{size:"sm",color:"white",variant:"outline",loadingIcon:"i-heroicons-arrow-path-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"}},Ov={wrapper:"relative",container:"z-20",width:"w-full",height:"max-h-60",base:"relative focus:outline-none overflow-y-auto scroll-py-1",background:"bg-white dark:bg-gray-800",shadow:"shadow-lg",rounded:"rounded-md",padding:"p-1",ring:"ring-1 ring-gray-200 dark:ring-gray-700",input:"block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 focus:border-inherit sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",option:{base:"cursor-default select-none relative flex items-center justify-between gap-1",rounded:"rounded-md",padding:"px-2 py-1.5",size:"text-sm",color:"text-gray-900 dark:text-white",container:"flex items-center gap-2 min-w-0",active:"bg-gray-100 dark:bg-gray-900",inactive:"",selected:"pe-7",disabled:"cursor-not-allowed opacity-50",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",icon:{base:"flex-shrink-0 h-4 w-4",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{wrapper:"absolute inset-y-0 end-0 flex items-center",padding:"pe-2",base:"h-4 w-4 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"3xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"}},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid"}},Cv={wrapper:"relative flex items-start",base:"h-4 w-4 dark:checked:bg-current dark:checked:border-transparent disabled:opacity-50 disabled:cursor-not-allowed focus:ring-0 focus:ring-transparent focus:ring-offset-transparent",color:"text-{color}-500 dark:text-{color}-400",background:"bg-white dark:bg-gray-900",border:"border border-gray-300 dark:border-gray-700",ring:"focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",label:"font-medium text-gray-700 dark:text-gray-200",required:"text-red-500 dark:text-red-400",help:"text-gray-500 dark:text-gray-400",default:{color:"primary"}},Sv={wrapper:"relative flex items-start",base:"h-4 w-4 dark:checked:bg-current dark:checked:border-transparent dark:indeterminate:bg-current dark:indeterminate:border-transparent disabled:opacity-50 disabled:cursor-not-allowed focus:ring-0 focus:ring-transparent focus:ring-offset-transparent",rounded:"rounded",color:"text-{color}-500 dark:text-{color}-400",background:"bg-white dark:bg-gray-900",border:"border border-gray-300 dark:border-gray-700",ring:"focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",label:"font-medium text-gray-700 dark:text-gray-200",required:"text-red-500 dark:text-red-400",help:"text-gray-500 dark:text-gray-400",default:{color:"primary"}},Av={base:"relative inline-flex h-5 w-9 flex-shrink-0 border-2 border-transparent disabled:cursor-not-allowed disabled:opacity-50 focus:outline-none",rounded:"rounded-full",ring:"focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",active:"bg-{color}-500 dark:bg-{color}-400",inactive:"bg-gray-200 dark:bg-gray-700",container:{base:"pointer-events-none relative inline-block h-4 w-4 rounded-full bg-white dark:bg-gray-900 shadow transform ring-0 transition ease-in-out duration-200",active:"translate-x-4 rtl:-translate-x-4",inactive:"translate-x-0 rtl:-translate-x-0"},icon:{base:"absolute inset-0 h-full w-full flex items-center justify-center transition-opacity",active:"opacity-100 ease-in duration-200",inactive:"opacity-0 ease-out duration-100",on:"h-3 w-3 text-{color}-500 dark:text-{color}-400",off:"h-3 w-3 text-gray-400 dark:text-gray-500"},default:{onIcon:null,offIcon:null,color:"primary"}},$v={wrapper:"relative w-full",base:"w-full absolute appearance-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 focus:outline-none [&::-webkit-slider-runnable-track]:h-full [&::-moz-slider-runnable-track]:h-full",background:"bg-gray-200 dark:bg-gray-700",rounded:"rounded-lg",ring:"focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",progress:{base:"absolute inset-0 h-full pointer-events-none",rounded:"rounded-s-lg",background:"bg-{color}-500 dark:bg-{color}-400"},thumb:{base:"[&::-webkit-slider-thumb]:relative [&::-moz-range-thumb]:relative [&::-webkit-slider-thumb]:z-[1] [&::-moz-range-thumb]:z-[1] [&::-webkit-slider-thumb]:appearance-none [&::-moz-range-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-0",color:"text-{color}-500 dark:text-{color}-400",background:"[&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:dark:bg-gray-900 [&::-moz-range-thumb]:bg-current",ring:"[&::-webkit-slider-thumb]:ring-2 [&::-webkit-slider-thumb]:ring-current",size:{sm:"[&::-webkit-slider-thumb]:h-3 [&::-moz-range-thumb]:h-3 [&::-webkit-slider-thumb]:w-3 [&::-moz-range-thumb]:w-3 [&::-webkit-slider-thumb]:-mt-1 [&::-moz-range-thumb]:-mt-1",md:"[&::-webkit-slider-thumb]:h-4 [&::-moz-range-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-moz-range-thumb]:w-4 [&::-webkit-slider-thumb]:-mt-1 [&::-moz-range-thumb]:-mt-1",lg:"[&::-webkit-slider-thumb]:h-5 [&::-moz-range-thumb]:h-5 [&::-webkit-slider-thumb]:w-5 [&::-moz-range-thumb]:w-5 [&::-webkit-slider-thumb]:-mt-1 [&::-moz-range-thumb]:-mt-1"}},size:{sm:"h-1",md:"h-2",lg:"h-3"},default:{size:"md",color:"primary"}},Pv={base:"overflow-hidden",background:"bg-white dark:bg-gray-900",divide:"divide-y divide-gray-200 dark:divide-gray-800",ring:"ring-1 ring-gray-200 dark:ring-gray-800",rounded:"rounded-lg",shadow:"shadow",body:{base:"",background:"",padding:"px-4 py-5 sm:p-6"},header:{base:"",background:"",padding:"px-4 py-5 sm:px-6"},footer:{base:"",background:"",padding:"px-4 py-4 sm:px-6"}},Rv={base:"mx-auto",padding:"px-4 sm:px-6 lg:px-8",constrained:"max-w-7xl"},Iv={base:"animate-pulse",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-md"},jv={wrapper:"relative",base:"group relative flex items-center gap-2 focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-1 focus-visible:before:ring-primary-500 dark:focus-visible:before:ring-primary-400 before:absolute before:inset-px before:rounded-md disabled:cursor-not-allowed disabled:opacity-75",ring:"focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",padding:"px-3 py-1.5",width:"w-full",rounded:"rounded-md",font:"font-medium",size:"text-sm",active:"text-gray-900 dark:text-white before:bg-gray-100 dark:before:bg-gray-800",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:before:bg-gray-50 dark:hover:before:bg-gray-800/50",label:"truncate relative",icon:{base:"flex-shrink-0 w-4 h-4",active:"text-gray-700 dark:text-gray-200",inactive:"text-gray-400 dark:text-gray-500 group-hover:text-gray-700 dark:group-hover:text-gray-200"},avatar:{base:"flex-shrink-0",size:"3xs"},badge:{base:"relative ms-auto inline-block py-0.5 px-2 text-xs rounded-md -me-1 -my-0.5",active:"bg-white dark:bg-gray-900",inactive:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white group-hover:bg-white dark:group-hover:bg-gray-900"}},Lv={wrapper:"flex flex-col flex-1 min-h-0 divide-y divide-gray-100 dark:divide-gray-800",container:"relative flex-1 overflow-y-auto divide-y divide-gray-100 dark:divide-gray-800 scroll-py-2",input:{wrapper:"relative flex items-center",base:"w-full placeholder-gray-400 dark:placeholder-gray-500 bg-transparent border-0 text-gray-900 dark:text-white focus:ring-0 focus:outline-none",padding:"px-4",height:"h-12",size:"sm:text-sm",icon:{base:"pointer-events-none absolute start-4 text-gray-400 dark:text-gray-500",size:"h-4 w-4",padding:"ps-10"},closeButton:"absolute end-4"},emptyState:{wrapper:"flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",label:"text-sm text-center text-gray-900 dark:text-white",queryLabel:"text-sm text-center text-gray-900 dark:text-white",icon:"w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4"},group:{wrapper:"p-2",label:"px-2 my-2 text-xs font-semibold text-gray-900 dark:text-white",container:"text-sm text-gray-700 dark:text-gray-200",command:{base:"flex justify-between select-none items-center rounded-md px-2 py-1.5 gap-2 relative",active:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactive:"",label:"flex items-center gap-1.5 min-w-0",prefix:"text-gray-400 dark:text-gray-500",suffix:"text-gray-400 dark:text-gray-500",container:"flex items-center gap-2 min-w-0",icon:{base:"flex-shrink-0 w-4 h-4",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{base:"h-4 w-4 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"3xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"},disabled:"opacity-50",shortcuts:"hidden md:inline-flex flex-shrink-0 gap-0.5"},active:"flex-shrink-0 text-gray-500 dark:text-gray-400",inactive:"flex-shrink-0 text-gray-500 dark:text-gray-400"},default:{icon:"i-heroicons-magnifying-glass-20-solid",loadingIcon:"i-heroicons-arrow-path-20-solid",emptyState:{icon:"i-heroicons-magnifying-glass-20-solid",label:"We couldn't find any items.",queryLabel:"We couldn't find any items with that term. Please try again."},closeButton:null,selectedIcon:"i-heroicons-check-20-solid"}},Nv={wrapper:"flex items-center -space-x-px",base:"",rounded:"first:rounded-s-md last:rounded-e-md",default:{size:"sm",activeButton:{color:"primary"},inactiveButton:{color:"white"},prevButton:{color:"white",class:"rtl:[&_span:first-child]:rotate-180",icon:"i-heroicons-chevron-left-20-solid"},nextButton:{color:"white",class:"rtl:[&_span:last-child]:rotate-180",icon:"i-heroicons-chevron-right-20-solid "}}},Mv={wrapper:"relative z-50",inner:"fixed inset-0 overflow-y-auto",container:"flex min-h-full items-end sm:items-center justify-center text-center",padding:"p-4 sm:p-0",base:"relative text-left rtl:text-right overflow-hidden sm:my-8 w-full flex flex-col",overlay:{base:"fixed inset-0 transition-opacity",background:"bg-gray-200/75 dark:bg-gray-800/75",transition:{enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"}},background:"bg-white dark:bg-gray-900",ring:"",rounded:"rounded-lg",shadow:"shadow-xl",width:"sm:max-w-lg",height:"",transition:{enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"}},Dv={wrapper:"fixed inset-0 flex z-50",overlay:{base:"fixed inset-0 transition-opacity",background:"bg-gray-200/75 dark:bg-gray-800/75",transition:{enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0"}},base:"relative flex-1 flex flex-col w-full focus:outline-none",background:"bg-white dark:bg-gray-900",ring:"",rounded:"",padding:"",shadow:"shadow-xl",width:"w-screen max-w-md",transition:{enter:"transform transition ease-in-out duration-300",leave:"transform transition ease-in-out duration-200"}},Fv={wrapper:"relative inline-flex",container:"z-20",width:"max-w-xs",background:"bg-white dark:bg-gray-900",color:"text-gray-900 dark:text-white",shadow:"shadow",rounded:"rounded",ring:"ring-1 ring-gray-200 dark:ring-gray-800",base:"invisible lg:visible h-6 px-2 py-1 text-xs font-normal truncate",shortcuts:"hidden md:inline-flex flex-shrink-0 gap-0.5",transition:{enterActiveClass:"transition ease-out duration-200",enterFromClass:"opacity-0 translate-y-1",enterToClass:"opacity-100 translate-y-0",leaveActiveClass:"transition ease-in duration-150",leaveFromClass:"opacity-100 translate-y-0",leaveToClass:"opacity-0 translate-y-1"},popper:{strategy:"fixed"}},Bv={wrapper:"relative",container:"z-20",width:"",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-md",ring:"ring-1 ring-gray-200 dark:ring-gray-800",base:"overflow-hidden focus:outline-none",transition:{enterActiveClass:"transition ease-out duration-200",enterFromClass:"opacity-0 translate-y-1",enterToClass:"opacity-100 translate-y-0",leaveActiveClass:"transition ease-in duration-150",leaveFromClass:"opacity-100 translate-y-0",leaveToClass:"opacity-0 translate-y-1"},popper:{strategy:"fixed"}},Uv={wrapper:"relative",container:"z-20",width:"",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-md",ring:"ring-1 ring-gray-200 dark:ring-gray-800",base:"overflow-hidden focus:outline-none",transition:{enterActiveClass:"transition ease-out duration-200",enterFromClass:"opacity-0 translate-y-1",enterToClass:"opacity-100 translate-y-0",leaveActiveClass:"transition ease-in duration-150",leaveFromClass:"opacity-100 translate-y-0",leaveToClass:"opacity-0 translate-y-1"},popper:{placement:"bottom-start",scroll:!1}},Hv={wrapper:"w-full pointer-events-auto",container:"relative overflow-hidden",title:"text-sm font-medium text-gray-900 dark:text-white",description:"mt-1 text-sm leading-5 text-gray-500 dark:text-gray-400",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-lg",padding:"p-4",ring:"ring-1 ring-gray-200 dark:ring-gray-800",icon:{base:"flex-shrink-0 w-5 h-5",color:"text-{color}-500 dark:text-{color}-400"},avatar:{base:"flex-shrink-0 self-center",size:"md"},progress:{base:"absolute bottom-0 end-0 start-0 h-1",background:"bg-{color}-500 dark:bg-{color}-400"},transition:{enterActiveClass:"transform ease-out duration-300 transition",enterFromClass:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterToClass:"translate-y-0 opacity-100 sm:translate-x-0",leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},default:{color:"primary",icon:null,closeButton:{icon:"i-heroicons-x-mark-20-solid",color:"gray",variant:"link",padded:!1},actionButton:{size:"xs",color:"white"}}},zv={wrapper:"fixed flex flex-col justify-end z-[55]",position:"bottom-0 end-0",width:"w-full sm:w-96",container:"px-4 sm:px-6 py-6 space-y-3 overflow-y-auto"},qv={ui:{table:gv,avatar:yv,avatarGroup:mv,badge:vv,button:bv,buttonGroup:_v,dropdown:wv,kbd:xv,input:fa,formGroup:kv,textarea:Ev,select:Tv,selectMenu:Ov,checkbox:Sv,radio:Cv,toggle:Av,range:$v,card:Pv,container:Rv,skeleton:Iv,verticalNavigation:jv,commandPalette:Lv,pagination:Nv,modal:Mv,slideover:Dv,popover:Bv,tooltip:Fv,contextMenu:Uv,notification:Hv,notifications:zv}},Kv={ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","brand","main","primary"]}},Le=Ay(pv,qv,Kv);function fi(){const e=he();return e._appConfig||(e._appConfig=xt(Le)),e._appConfig}function Di(...e){return e.filter(Boolean).join(" ")}const Zl=e=>{const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(n,s,i,o){return s+s+i+i+o+o});const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?`${parseInt(r[1],16)} ${parseInt(r[2],16)} ${parseInt(r[3],16)}`:null},Wv="inherit",Jv="currentColor",Vv="transparent",Gv="#000",Xv="#fff",Yv={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},Qv={50:"rgb(var(--color-gray-50) / )",100:"rgb(var(--color-gray-100) / )",200:"rgb(var(--color-gray-200) / )",300:"rgb(var(--color-gray-300) / )",400:"rgb(var(--color-gray-400) / )",500:"rgb(var(--color-gray-500) / )",600:"rgb(var(--color-gray-600) / )",700:"rgb(var(--color-gray-700) / )",800:"rgb(var(--color-gray-800) / )",900:"rgb(var(--color-gray-900) / )",950:"rgb(var(--color-gray-950) / )"},Zv={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},eb={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},tb={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},rb={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},nb={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},sb={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},ib={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},ob={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},ab={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lb={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},cb={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},ub={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},fb={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},db={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},hb={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},pb={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},gb={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},yb={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},mb={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},vb={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},bb={50:"#f1edff",100:"#dbd3ff",200:"#c9beff",300:"#a18eff",400:"#7a5eff",500:"#6342ff",600:"#5337d7",700:"#3e28a3",800:"#2b1c70",900:"#1f1258",950:"#0f082b"},_b={50:"#edfffb",100:"#dafff6",200:"#b5ffed",300:"#91ffe6",400:"#6cffdd",500:"#47ffd4",600:"#41ebc3",700:"#31af91",800:"#268770",900:"#1b5f4f",950:"#0c2822"},wb={50:"rgb(var(--color-primary-50) / )",100:"rgb(var(--color-primary-100) / )",200:"rgb(var(--color-primary-200) / )",300:"rgb(var(--color-primary-300) / )",400:"rgb(var(--color-primary-400) / )",500:"rgb(var(--color-primary-500) / )",600:"rgb(var(--color-primary-600) / )",700:"rgb(var(--color-primary-700) / )",800:"rgb(var(--color-primary-800) / )",900:"rgb(var(--color-primary-900) / )",950:"rgb(var(--color-primary-950) / )"},xb={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},ws={inherit:Wv,current:Jv,transparent:Vv,black:Gv,white:Xv,slate:Yv,gray:Qv,zinc:Zv,neutral:eb,stone:tb,red:rb,orange:nb,amber:sb,yellow:ib,lime:ob,green:ab,emerald:lb,teal:cb,cyan:ub,sky:fb,blue:db,indigo:hb,violet:pb,purple:gb,fuchsia:yb,pink:mb,rose:vb,brand:bb,main:_b,primary:wb,cool:xb},kb=Tt(()=>{const e=fi(),t=he(),r=ue(()=>{const s=ws[e.ui.primary],i=ws[e.ui.gray];return s||console.warn(`[@nuxthq/ui] Primary color '${e.ui.primary}' not found in Tailwind config`),i||console.warn(`[@nuxthq/ui] Gray color '${e.ui.gray}' not found in Tailwind config`),`:root { +${Object.entries(s||ws.green).map(([o,a])=>`--color-primary-${o}: ${Zl(a)};`).join(` `)} -${Object.entries(i||vs.cool).map(([o,a])=>`--color-gray-${o}: ${Yl(a)};`).join(` +${Object.entries(i||ws.cool).map(([o,a])=>`--color-gray-${o}: ${Zl(a)};`).join(` `)} -}`}),n={style:[{innerHTML:()=>r.value,tagPriority:-2,id:"nuxt-ui-colors"}]};if(t.isHydrating&&!t.payload.serverRendered){const s=document.createElement("style");s.innerHTML=r.value,s.setAttribute("data-nuxt-ui-colors",""),document.head.appendChild(s),n.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"}]}dy(n)}),bb="__NUXT_COLOR_MODE__",_b="nuxt-color-mode",Ot=window[bb],wb=Bt(e=>{const t=ai("color-mode",()=>xt({preference:Ot.preference,value:Ot.value,unknown:!1,forced:!1})).value;Ut().afterEach(s=>{const i=s.meta.colorMode;i&&i!=="system"?(t.value=i,t.forced=!0):(i==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?Ot.getColorScheme():t.preference)});let r;function n(){r||!window.matchMedia||(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=Ot.getColorScheme())}))}$t(()=>t.preference,s=>{var i;t.forced||(s==="system"?(t.value=Ot.getColorScheme(),n()):t.value=s,(i=window.localStorage)==null||i.setItem(_b,s))},{immediate:!0}),$t(()=>t.value,(s,i)=>{Ot.removeColorScheme(i),Ot.addColorScheme(s)}),t.preference==="system"&&n(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=Ot.preference,t.value=Ot.value,t.unknown=!1)}),e.provide("colorMode",t)});var xb=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const kb=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>xb(void 0,void 0,void 0,function*(){return yield(yield rt(()=>Promise.resolve().then(()=>di),void 0,import.meta.url)).fetch(...r)}):t=fetch,(...r)=>t(...r)};class da extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class Eb extends da{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Tb extends da{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Ob extends da{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Cb=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};class Sb{constructor(t,{headers:r={},customFetch:n}={}){this.url=t,this.headers=r,this.fetch=kb(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,r={}){var n;return Cb(this,void 0,void 0,function*(){try{const{headers:s,method:i,body:o}=r;let a={},l;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",l=o):typeof o=="string"?(a["Content-Type"]="text/plain",l=o):typeof FormData<"u"&&o instanceof FormData?l=o:(a["Content-Type"]="application/json",l=JSON.stringify(o)));const c=yield this.fetch(`${this.url}/${t}`,{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:l}).catch(h=>{throw new Eb(h)}),u=c.headers.get("x-relay-error");if(u&&u==="true")throw new Tb(c);if(!c.ok)throw new Ob(c);let f=((n=c.headers.get("Content-Type"))!==null&&n!==void 0?n:"text/plain").split(";")[0].trim(),d;return f==="application/json"?d=yield c.json():f==="application/octet-stream"?d=yield c.blob():f==="multipart/form-data"?d=yield c.formData():d=yield c.text(),{data:d,error:null}}catch(s){return{data:null,error:s}}})}}var Ab=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $b(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ko={exports:{}};(function(e,t){var r=typeof self<"u"?self:Ab,n=function(){function i(){this.fetch=!1,this.DOMException=r.DOMException}return i.prototype=r,new i}();(function(i){(function(o){var a={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function l(w){return w&&DataView.prototype.isPrototypeOf(w)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(w){return w&&c.indexOf(Object.prototype.toString.call(w))>-1};function f(w){if(typeof w!="string"&&(w=String(w)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(w))throw new TypeError("Invalid character in header field name");return w.toLowerCase()}function d(w){return typeof w!="string"&&(w=String(w)),w}function h(w){var $={next:function(){var L=w.shift();return{done:L===void 0,value:L}}};return a.iterable&&($[Symbol.iterator]=function(){return $}),$}function p(w){this.map={},w instanceof p?w.forEach(function($,L){this.append(L,$)},this):Array.isArray(w)?w.forEach(function($){this.append($[0],$[1])},this):w&&Object.getOwnPropertyNames(w).forEach(function($){this.append($,w[$])},this)}p.prototype.append=function(w,$){w=f(w),$=d($);var L=this.map[w];this.map[w]=L?L+", "+$:$},p.prototype.delete=function(w){delete this.map[f(w)]},p.prototype.get=function(w){return w=f(w),this.has(w)?this.map[w]:null},p.prototype.has=function(w){return this.map.hasOwnProperty(f(w))},p.prototype.set=function(w,$){this.map[f(w)]=d($)},p.prototype.forEach=function(w,$){for(var L in this.map)this.map.hasOwnProperty(L)&&w.call($,this.map[L],L,this)},p.prototype.keys=function(){var w=[];return this.forEach(function($,L){w.push(L)}),h(w)},p.prototype.values=function(){var w=[];return this.forEach(function($){w.push($)}),h(w)},p.prototype.entries=function(){var w=[];return this.forEach(function($,L){w.push([L,$])}),h(w)},a.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function v(w){if(w.bodyUsed)return Promise.reject(new TypeError("Already read"));w.bodyUsed=!0}function x(w){return new Promise(function($,L){w.onload=function(){$(w.result)},w.onerror=function(){L(w.error)}})}function m(w){var $=new FileReader,L=x($);return $.readAsArrayBuffer(w),L}function g(w){var $=new FileReader,L=x($);return $.readAsText(w),L}function E(w){for(var $=new Uint8Array(w),L=new Array($.length),J=0;J<$.length;J++)L[J]=String.fromCharCode($[J]);return L.join("")}function _(w){if(w.slice)return w.slice(0);var $=new Uint8Array(w.byteLength);return $.set(new Uint8Array(w)),$.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(w){this._bodyInit=w,w?typeof w=="string"?this._bodyText=w:a.blob&&Blob.prototype.isPrototypeOf(w)?this._bodyBlob=w:a.formData&&FormData.prototype.isPrototypeOf(w)?this._bodyFormData=w:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(w)?this._bodyText=w.toString():a.arrayBuffer&&a.blob&&l(w)?(this._bodyArrayBuffer=_(w.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(w)||u(w))?this._bodyArrayBuffer=_(w):this._bodyText=w=Object.prototype.toString.call(w):this._bodyText="",this.headers.get("content-type")||(typeof w=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(w)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var w=v(this);if(w)return w;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?v(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var w=v(this);if(w)return w;if(this._bodyBlob)return g(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(E(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(M)}),this.json=function(){return this.text().then(JSON.parse)},this}var P=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function j(w){var $=w.toUpperCase();return P.indexOf($)>-1?$:w}function O(w,$){$=$||{};var L=$.body;if(w instanceof O){if(w.bodyUsed)throw new TypeError("Already read");this.url=w.url,this.credentials=w.credentials,$.headers||(this.headers=new p(w.headers)),this.method=w.method,this.mode=w.mode,this.signal=w.signal,!L&&w._bodyInit!=null&&(L=w._bodyInit,w.bodyUsed=!0)}else this.url=String(w);if(this.credentials=$.credentials||this.credentials||"same-origin",($.headers||!this.headers)&&(this.headers=new p($.headers)),this.method=j($.method||this.method||"GET"),this.mode=$.mode||this.mode||null,this.signal=$.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(L)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})};function M(w){var $=new FormData;return w.trim().split("&").forEach(function(L){if(L){var J=L.split("="),Y=J.shift().replace(/\+/g," "),ee=J.join("=").replace(/\+/g," ");$.append(decodeURIComponent(Y),decodeURIComponent(ee))}}),$}function B(w){var $=new p,L=w.replace(/\r?\n[\t ]+/g," ");return L.split(/\r?\n/).forEach(function(J){var Y=J.split(":"),ee=Y.shift().trim();if(ee){var Ae=Y.join(":").trim();$.append(ee,Ae)}}),$}T.call(O.prototype);function H(w,$){$||($={}),this.type="default",this.status=$.status===void 0?200:$.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in $?$.statusText:"OK",this.headers=new p($.headers),this.url=$.url||"",this._initBody(w)}T.call(H.prototype),H.prototype.clone=function(){return new H(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},H.error=function(){var w=new H(null,{status:0,statusText:""});return w.type="error",w};var F=[301,302,303,307,308];H.redirect=function(w,$){if(F.indexOf($)===-1)throw new RangeError("Invalid status code");return new H(null,{status:$,headers:{location:w}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function($,L){this.message=$,this.name=L;var J=Error($);this.stack=J.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function K(w,$){return new Promise(function(L,J){var Y=new O(w,$);if(Y.signal&&Y.signal.aborted)return J(new o.DOMException("Aborted","AbortError"));var ee=new XMLHttpRequest;function Ae(){ee.abort()}ee.onload=function(){var ke={status:ee.status,statusText:ee.statusText,headers:B(ee.getAllResponseHeaders()||"")};ke.url="responseURL"in ee?ee.responseURL:ke.headers.get("X-Request-URL");var _e="response"in ee?ee.response:ee.responseText;L(new H(_e,ke))},ee.onerror=function(){J(new TypeError("Network request failed"))},ee.ontimeout=function(){J(new TypeError("Network request failed"))},ee.onabort=function(){J(new o.DOMException("Aborted","AbortError"))},ee.open(Y.method,Y.url,!0),Y.credentials==="include"?ee.withCredentials=!0:Y.credentials==="omit"&&(ee.withCredentials=!1),"responseType"in ee&&a.blob&&(ee.responseType="blob"),Y.headers.forEach(function(ke,_e){ee.setRequestHeader(_e,ke)}),Y.signal&&(Y.signal.addEventListener("abort",Ae),ee.onreadystatechange=function(){ee.readyState===4&&Y.signal.removeEventListener("abort",Ae)}),ee.send(typeof Y._bodyInit>"u"?null:Y._bodyInit)})}return K.polyfill=!0,i.fetch||(i.fetch=K,i.Headers=p,i.Request=O,i.Response=H),o.Headers=p,o.Request=O,o.Response=H,o.fetch=K,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var s=n;t=s.fetch,t.default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t})(ko,ko.exports);var ha=ko.exports;const pa=$b(ha),di=Md({__proto__:null,default:pa},[ha]);class Pb{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=pa:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}then(t,r){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 n=this.fetch;let s=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var o,a,l;let c=null,u=null,f=null,d=i.status,h=i.statusText;if(i.ok){if(this.method!=="HEAD"){const m=await i.text();m===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?u=m:u=JSON.parse(m))}const v=(o=this.headers.Prefer)===null||o===void 0?void 0:o.match(/count=(exact|planned|estimated)/),x=(a=i.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");v&&x&&x.length>1&&(f=parseInt(x[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(u)&&(u.length>1?(c={code:"PGRST116",details:`Results contain ${u.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},u=null,f=null,d=406,h="Not Acceptable"):u.length===1?u=u[0]:u=null)}else{const v=await i.text();try{c=JSON.parse(v),Array.isArray(c)&&i.status===404&&(u=[],c=null,d=200,h="OK")}catch{i.status===404&&v===""?(d=204,h="No Content"):c={message:v}}if(c&&this.isMaybeSingle&&(!((l=c==null?void 0:c.details)===null||l===void 0)&&l.includes("Results contain 0 rows"))&&(c=null,d=200,h="OK"),c&&this.shouldThrowOnError)throw c}return{error:c,data:u,count:f,status:d,statusText:h}});return this.shouldThrowOnError||(s=s.catch(i=>{var o,a,l;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(a=i==null?void 0:i.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=i==null?void 0:i.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(t,r)}}class Rb extends Pb{select(t){let r=!1;const n=(t??"*").split("").map(s=>/\s/.test(s)&&!r?"":(s==='"'&&(r=!r),s)).join("");return this.url.searchParams.set("select",n),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:r=!0,nullsFirst:n,foreignTable:s}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${t}.${r?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:r}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${t}`),this}range(t,r,{foreignTable:n}={}){const s=typeof n>"u"?"offset":`${n}.offset`,i=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${t}`),this.url.searchParams.set(i,`${r-t+1}`),this}abortSignal(t){return this.signal=t,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}explain({analyze:t=!1,verbose:r=!1,settings:n=!1,buffers:s=!1,wal:i=!1,format:o="text"}={}){const a=[t?"analyze":null,r?"verbose":null,n?"settings":null,s?"buffers":null,i?"wal":null].filter(Boolean).join("|"),l=this.headers.Accept;return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${l}"; options=${a};`,o==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}}class Lr extends Rb{eq(t,r){return this.url.searchParams.append(t,`eq.${r}`),this}neq(t,r){return this.url.searchParams.append(t,`neq.${r}`),this}gt(t,r){return this.url.searchParams.append(t,`gt.${r}`),this}gte(t,r){return this.url.searchParams.append(t,`gte.${r}`),this}lt(t,r){return this.url.searchParams.append(t,`lt.${r}`),this}lte(t,r){return this.url.searchParams.append(t,`lte.${r}`),this}like(t,r){return this.url.searchParams.append(t,`like.${r}`),this}likeAllOf(t,r){return this.url.searchParams.append(t,`like(all).{${r.join(",")}}`),this}likeAnyOf(t,r){return this.url.searchParams.append(t,`like(any).{${r.join(",")}}`),this}ilike(t,r){return this.url.searchParams.append(t,`ilike.${r}`),this}ilikeAllOf(t,r){return this.url.searchParams.append(t,`ilike(all).{${r.join(",")}}`),this}ilikeAnyOf(t,r){return this.url.searchParams.append(t,`ilike(any).{${r.join(",")}}`),this}is(t,r){return this.url.searchParams.append(t,`is.${r}`),this}in(t,r){const n=r.map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}contains(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cs.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cs.{${r.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(r)}`),this}containedBy(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cd.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cd.{${r.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(r)}`),this}rangeGt(t,r){return this.url.searchParams.append(t,`sr.${r}`),this}rangeGte(t,r){return this.url.searchParams.append(t,`nxl.${r}`),this}rangeLt(t,r){return this.url.searchParams.append(t,`sl.${r}`),this}rangeLte(t,r){return this.url.searchParams.append(t,`nxr.${r}`),this}rangeAdjacent(t,r){return this.url.searchParams.append(t,`adj.${r}`),this}overlaps(t,r){return typeof r=="string"?this.url.searchParams.append(t,`ov.${r}`):this.url.searchParams.append(t,`ov.{${r.join(",")}}`),this}textSearch(t,r,{config:n,type:s}={}){let i="";s==="plain"?i="pl":s==="phrase"?i="ph":s==="websearch"&&(i="w");const o=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${i}fts${o}.${r}`),this}match(t){return Object.entries(t).forEach(([r,n])=>{this.url.searchParams.append(r,`eq.${n}`)}),this}not(t,r,n){return this.url.searchParams.append(t,`not.${r}.${n}`),this}or(t,{foreignTable:r}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${t})`),this}filter(t,r,n){return this.url.searchParams.append(t,`${r}.${n}`),this}}class Ib{constructor(t,{headers:r={},schema:n,fetch:s}){this.url=t,this.headers=r,this.schema=n,this.fetch=s}select(t,{head:r=!1,count:n}={}){const s=r?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),n&&(this.headers.Prefer=`count=${n}`),new Lr({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:r,defaultToNull:n=!0}={}){const s="POST",i=[];if(this.headers.Prefer&&i.push(this.headers.Prefer),r&&i.push(`count=${r}`),n||i.push("missing=default"),this.headers.Prefer=i.join(","),Array.isArray(t)){const o=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>0){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Lr({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:r,ignoreDuplicates:n=!1,count:s,defaultToNull:i=!0}={}){const o="POST",a=[`resolution=${n?"ignore":"merge"}-duplicates`];if(r!==void 0&&this.url.searchParams.set("on_conflict",r),this.headers.Prefer&&a.push(this.headers.Prefer),s&&a.push(`count=${s}`),i||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const l=t.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);this.url.searchParams.set("columns",c.join(","))}}return new Lr({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:r}={}){const n="PATCH",s=[];return this.headers.Prefer&&s.push(this.headers.Prefer),r&&s.push(`count=${r}`),this.headers.Prefer=s.join(","),new Lr({method:n,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const r="DELETE",n=[];return t&&n.push(`count=${t}`),this.headers.Prefer&&n.unshift(this.headers.Prefer),this.headers.Prefer=n.join(","),new Lr({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}}const jb="1.7.2",Lb={"X-Client-Info":`postgrest-js/${jb}`};class Nb{constructor(t,{headers:r={},schema:n,fetch:s}={}){this.url=t,this.headers=Object.assign(Object.assign({},Lb),r),this.schema=n,this.fetch=s}from(t){const r=new URL(`${this.url}/${t}`);return new Ib(r,{headers:Object.assign({},this.headers),schema:this.schema,fetch:this.fetch})}rpc(t,r={},{head:n=!1,count:s}={}){let i;const o=new URL(`${this.url}/rpc/${t}`);let a;n?(i="HEAD",Object.entries(r).forEach(([c,u])=>{o.searchParams.append(c,`${u}`)})):(i="POST",a=r);const l=Object.assign({},this.headers);return s&&(l.Prefer=`count=${s}`),new Lr({method:i,url:o,headers:l,schema:this.schema,body:a,fetch:this.fetch,allowEmpty:!1})}}var Fi,Ql;function Mb(){if(Ql)return Fi;Ql=1;var e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};return Fi=function(){if(this)return this;if(typeof globalThis=="object"&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}(),Fi}const Db="websocket",Fb="Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.",Bb=["websocket","websockets","socket","networking","comet","push","RFC-6455","realtime","server","client"],Ub="Brian McKelvey (https://github.com/theturtle32)",Hb=["Iñaki Baz Castillo (http://dev.sipdoc.net)"],zb="1.0.34",qb={type:"git",url:"https://github.com/theturtle32/WebSocket-Node.git"},Kb="https://github.com/theturtle32/WebSocket-Node",Wb={node:">=4.0.0"},Jb={bufferutil:"^4.0.1",debug:"^2.2.0","es5-ext":"^0.10.50","typedarray-to-buffer":"^3.1.5","utf-8-validate":"^5.0.2",yaeti:"^0.0.6"},Vb={"buffer-equal":"^1.0.0",gulp:"^4.0.2","gulp-jshint":"^2.0.4","jshint-stylish":"^2.2.1",jshint:"^2.0.0",tape:"^4.9.1"},Gb={verbose:!1},Xb={test:"tape test/unit/*.js",gulp:"gulp"},Yb="index",Qb={lib:"./lib"},Zb="lib/browser.js",e_="Apache-2.0",t_={name:Db,description:Fb,keywords:Bb,author:Ub,contributors:Hb,version:zb,repository:qb,homepage:Kb,engines:Wb,dependencies:Jb,devDependencies:Vb,config:Gb,scripts:Xb,main:Yb,directories:Qb,browser:Zb,license:e_};var r_=t_.version,gr;if(typeof globalThis=="object")gr=globalThis;else try{gr=Mb()}catch{}finally{if(!gr&&typeof window<"u"&&(gr=window),!gr)throw new Error("Could not determine global this")}var Vn=gr.WebSocket||gr.MozWebSocket,n_=r_;function Kf(e,t){var r;return t?r=new Vn(e,t):r=new Vn(e),r}Vn&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach(function(e){Object.defineProperty(Kf,e,{get:function(){return Vn[e]}})});var s_={w3cwebsocket:Vn?Kf:null,version:n_};const i_="2.7.3",o_={"X-Client-Info":`realtime-js/${i_}`},a_="1.0.0",Wf=1e4,l_=1e3;var Ln;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Ln||(Ln={}));var We;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(We||(We={}));var ut;(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"})(ut||(ut={}));var Eo;(function(e){e.websocket="websocket"})(Eo||(Eo={}));var yr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(yr||(yr={}));class Jf{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))}}class c_{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 l=n.decode(t.slice(o,o+i));o=o+i;const c=JSON.parse(n.decode(t.slice(o,t.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class Bi{constructor(t,r,n={},s=Wf){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,this.rateLimited=!1}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){if(this._hasReceived("timeout"))return;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()})==="rate limited"&&(this.rateLimited=!0)}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 Zl;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Zl||(Zl={}));class Nn{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=Nn.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=Nn.syncDiff(this.state,l,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=Nn.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={},l={};return this.map(i,(c,u)=>{o[c]||(l[c]=u)}),this.map(o,(c,u)=>{const f=i[c];if(f){const d=u.map(x=>x.presence_ref),h=f.map(x=>x.presence_ref),p=u.filter(x=>h.indexOf(x.presence_ref)<0),v=f.filter(x=>d.indexOf(x.presence_ref)<0);p.length>0&&(a[c]=p),v.length>0&&(l[c]=v)}else a[c]=u}),this.syncDiff(i,{joins:a,leaves:l},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,l)=>{var c;const u=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),u.length>0){const f=t[a].map(h=>h.presence_ref),d=u.filter(h=>f.indexOf(h.presence_ref)<0);t[a].unshift(...d)}n(a,u,l)}),this.map(o,(a,l)=>{let c=t[a];if(!c)return;const u=l.map(f=>f.presence_ref);c=c.filter(f=>u.indexOf(f.presence_ref)<0),t[a]=c,s(a,c,l),c.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 he;(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"})(he||(he={}));const ec=(e,t,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return Object.keys(t).reduce((i,o)=>(i[o]=u_(o,e,t,s),i),{})},u_=(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)?Vf(i,o):To(o)},Vf=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return p_(t,r)}switch(e){case he.bool:return f_(t);case he.float4:case he.float8:case he.int2:case he.int4:case he.int8:case he.numeric:case he.oid:return d_(t);case he.json:case he.jsonb:return h_(t);case he.timestamp:return g_(t);case he.abstime:case he.date:case he.daterange:case he.int4range:case he.int8range:case he.money:case he.reltime:case he.text:case he.time:case he.timestamptz:case he.timetz:case he.tsrange:case he.tstzrange:return To(t);default:return To(t)}},To=e=>e,f_=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},d_=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},h_=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},p_=(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=>Vf(t,a))}return e},g_=e=>typeof e=="string"?e.replace(" ","T"):e;var tc=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})},rc;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(rc||(rc={}));var nc;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes"})(nc||(nc={}));var sc;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(sc||(sc={}));class ga{constructor(t,r={config:{}},n){this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=We.closed,this.joinedOnce=!1,this.pushBuffer=[],this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""}},r.config),this.timeout=this.socket.timeout,this.joinPush=new Bi(this,ut.join,this.params,this.timeout),this.rejoinTimer=new Jf(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=We.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=We.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=We.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=We.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ut.reply,{},(s,i)=>{this._trigger(this._replyEventName(i),s)}),this.presence=new Nn(this)}subscribe(t,r=this.timeout){var n,s;if(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}}=this.params;this._onError(c=>t&&t("CHANNEL_ERROR",c)),this._onClose(()=>t&&t("CLOSED"));const a={},l={broadcast:i,presence:o,postgres_changes:(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(c=>c.filter))!==null&&s!==void 0?s:[]};this.socket.accessToken&&(a.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:l},a)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",({postgres_changes:c})=>{var u;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),c===void 0){t&&t("SUBSCRIBED");return}else{const f=this.bindings.postgres_changes,d=(u=f==null?void 0:f.length)!==null&&u!==void 0?u:0,h=[];for(let p=0;p{t&&t("CHANNEL_ERROR",new Error(JSON.stringify(Object.values(c).join(", ")||"error")))}).receive("timeout",()=>{t&&t("TIMED_OUT")})}return this}presenceState(){return this.presence.state}track(t,r={}){return tc(this,void 0,void 0,function*(){return yield this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)})}untrack(t={}){return tc(this,void 0,void 0,function*(){return yield this.send({type:"presence",event:"untrack"},t)})}on(t,r,n){return this._on(t,r,n)}send(t,r={}){return new Promise(n=>{var s,i,o;const a=this._push(t.type,t,r.timeout||this.timeout);a.rateLimited&&n("rate limited"),t.type==="broadcast"&&!(!((o=(i=(s=this.params)===null||s===void 0?void 0:s.config)===null||i===void 0?void 0:i.broadcast)===null||o===void 0)&&o.ack)&&n("ok"),a.receive("ok",()=>n("ok")),a.receive("timeout",()=>n("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=We.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ut.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(n=>{const s=new Bi(this,ut.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",{})})}_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 Bi(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:l,leave:c,join:u}=ut;if(n&&[a,l,c,u].indexOf(o)>=0&&n!==this._joinRef())return;let d=this._onMessage(o,r,n);if(r&&!d)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(h=>{var p,v,x;return((p=h.filter)===null||p===void 0?void 0:p.event)==="*"||((x=(v=h.filter)===null||v===void 0?void 0:v.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===o}).map(h=>h.callback(d,n)):(i=this.bindings[o])===null||i===void 0||i.filter(h=>{var p,v,x,m,g,E;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in h){const _=h.id,T=(p=h.filter)===null||p===void 0?void 0:p.event;return _&&((v=r.ids)===null||v===void 0?void 0:v.includes(_))&&(T==="*"||(T==null?void 0:T.toLocaleLowerCase())===((x=r.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))}else{const _=(g=(m=h==null?void 0:h.filter)===null||m===void 0?void 0:m.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return _==="*"||_===((E=r==null?void 0:r.event)===null||E===void 0?void 0:E.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===o}).map(h=>{if(typeof d=="object"&&"ids"in d){const p=d.data,{schema:v,table:x,commit_timestamp:m,type:g,errors:E}=p;d=Object.assign(Object.assign({},{schema:v,table:x,commit_timestamp:m,eventType:g,new:{},old:{},errors:E}),this._getPayloadRecords(p))}h.callback(d,n)})}_isClosed(){return this.state===We.closed}_isJoined(){return this.state===We.joined}_isJoining(){return this.state===We.joining}_isLeaving(){return this.state===We.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&&ga.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(ut.close,{},t)}_onError(t){this._on(ut.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=We.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=ec(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=ec(t.columns,t.old_record)),r}}var Ui=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const y_=()=>{};class m_{constructor(t,r){var n;this.accessToken=null,this.channels=[],this.endPoint="",this.headers=o_,this.params={},this.timeout=Wf,this.transport=s_.w3cwebsocket,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=y_,this.conn=null,this.sendBuffer=[],this.serializer=new c_,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.eventsPerSecondLimitMs=100,this.inThrottle=!1,this.endPoint=`${t}/${Eo.websocket}`,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.transport&&(this.transport=r.transport),r!=null&&r.heartbeatIntervalMs&&(this.heartbeatIntervalMs=r.heartbeatIntervalMs);const s=(n=r==null?void 0:r.params)===null||n===void 0?void 0:n.eventsPerSecond;s&&(this.eventsPerSecondLimitMs=Math.floor(1e3/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 Jf(()=>Ui(this,void 0,void 0,function*(){this.disconnect(),this.connect()}),this.reconnectAfterMs)}connect(){this.conn||(this.conn=new this.transport(this._endPointURL(),[],null,this.headers),this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t)))}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}removeChannel(t){return Ui(this,void 0,void 0,function*(){const r=yield t.unsubscribe();return this.channels.length===0&&this.disconnect(),r})}removeAllChannels(){return Ui(this,void 0,void 0,function*(){const t=yield 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 Ln.connecting:return yr.Connecting;case Ln.open:return yr.Open;case Ln.closing:return yr.Closing;default:return yr.Closed}}isConnected(){return this.connectionState()===yr.Open}channel(t,r={config:{}}){this.isConnected()||this.connect();const n=new ga(`realtime:${t}`,r,this);return this.channels.push(n),n}push(t){const{topic:r,event:n,payload:s,ref:i}=t;let o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};if(this.log("push",`${r} ${n} (${i})`,s),this.isConnected())if(["broadcast","presence","postgres_changes"].includes(n)){if(this._throttle(o)())return"rate limited"}else o();else this.sendBuffer.push(o)}setAuth(t){this.accessToken=t,this.channels.forEach(r=>{t&&r.updateJoinPayload({access_token:t}),r.joinedOnce&&r._isJoined()&&r._push(ut.access_token,{access_token:t})})}_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())}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:a_}))}_onConnMessage(t){this.decode(t.data,r=>{let{topic:n,event:s,payload:i,ref:o}=r;(o&&o===this.pendingHeartbeatRef||s===(i==null?void 0:i.type))&&(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))})}_onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),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(ut.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${t}${n}${s}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_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(l_,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}_throttle(t,r=this.eventsPerSecondLimitMs){return()=>this.inThrottle?!0:(t(),r>0&&(this.inThrottle=!0,setTimeout(()=>{this.inThrottle=!1},r)),!1)}}class ya extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Re(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class v_ extends ya{constructor(t,r){super(t),this.name="StorageApiError",this.status=r}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class ic extends ya{constructor(t,r){super(t),this.name="StorageUnknownError",this.originalError=r}}var Gf=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const Xf=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>Gf(void 0,void 0,void 0,function*(){return yield(yield rt(()=>Promise.resolve().then(()=>di),void 0,import.meta.url)).fetch(...r)}):t=fetch,(...r)=>t(...r)},b_=()=>Gf(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield rt(()=>Promise.resolve().then(()=>di),void 0,import.meta.url)).Response:Response});var cn=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const Hi=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),__=(e,t)=>cn(void 0,void 0,void 0,function*(){const r=yield b_();e instanceof r?e.json().then(n=>{t(new v_(Hi(n),e.status||500))}).catch(n=>{t(new ic(Hi(n),n))}):t(new ic(Hi(e),e))}),w_=(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),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};function hi(e,t,r,n,s,i){return cn(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(r,w_(t,n,s,i)).then(l=>{if(!l.ok)throw l;return n!=null&&n.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>__(l,a))})})}function Oo(e,t,r,n){return cn(this,void 0,void 0,function*(){return hi(e,"GET",t,r,n)})}function Qt(e,t,r,n,s){return cn(this,void 0,void 0,function*(){return hi(e,"POST",t,n,s,r)})}function x_(e,t,r,n,s){return cn(this,void 0,void 0,function*(){return hi(e,"PUT",t,n,s,r)})}function Yf(e,t,r,n,s){return cn(this,void 0,void 0,function*(){return hi(e,"DELETE",t,n,s,r)})}var Ze=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const k_={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},oc={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class E_{constructor(t,r={},n,s){this.url=t,this.headers=r,this.bucketId=n,this.fetch=Xf(s)}uploadOrUpdate(t,r,n,s){return Ze(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},oc),s),a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.append("cacheControl",o.cacheControl)):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType);const l=this._removeEmptyFolders(r),c=this._getFinalPath(l),u=yield this.fetch(`${this.url}/object/${c}`,Object.assign({method:t,body:i,headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return u.ok?{data:{path:l},error:null}:{data:null,error:yield u.json()}}catch(i){if(Re(i))return{data:null,error:i};throw i}})}upload(t,r,n){return Ze(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,r,n)})}uploadToSignedUrl(t,r,n,s){return Ze(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 l;const c=Object.assign({upsert:oc.upsert},s),u=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",c.cacheControl)):(l=n,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType);const f=yield this.fetch(a.toString(),{method:"PUT",body:l,headers:u});return f.ok?{data:{path:i},error:null}:{data:null,error:yield f.json()}}catch(l){if(Re(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t){return Ze(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const n=yield Qt(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:this.headers}),s=new URL(this.url+n.url),i=s.searchParams.get("token");if(!i)throw new ya("No token returned by API");return{data:{signedUrl:s.toString(),path:t,token:i},error:null}}catch(r){if(Re(r))return{data:null,error:r};throw r}})}update(t,r,n){return Ze(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,r,n)})}move(t,r){return Ze(this,void 0,void 0,function*(){try{return{data:yield Qt(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r},{headers:this.headers}),error:null}}catch(n){if(Re(n))return{data:null,error:n};throw n}})}copy(t,r){return Ze(this,void 0,void 0,function*(){try{return{data:{path:(yield Qt(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r},{headers:this.headers})).Key},error:null}}catch(n){if(Re(n))return{data:null,error:n};throw n}})}createSignedUrl(t,r,n){return Ze(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),i=yield Qt(this.fetch,`${this.url}/object/sign/${s}`,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(Re(s))return{data:null,error:s};throw s}})}createSignedUrls(t,r,n){return Ze(this,void 0,void 0,function*(){try{const s=yield Qt(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(Re(s))return{data:null,error:s};throw s}})}download(t,r){return Ze(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 Oo(this.fetch,`${this.url}/${s}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(Re(a))return{data:null,error:a};throw a}})}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",l=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});l!==""&&s.push(l);let c=s.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}${c}`)}}}remove(t){return Ze(this,void 0,void 0,function*(){try{return{data:yield Yf(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(r){if(Re(r))return{data:null,error:r};throw r}})}list(t,r,n){return Ze(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},k_),r),{prefix:t||""});return{data:yield Qt(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},n),error:null}}catch(s){if(Re(s))return{data:null,error:s};throw s}})}_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 T_="2.5.1",O_={"X-Client-Info":`storage-js/${T_}`};var Rr=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};class C_{constructor(t,r={},n){this.url=t,this.headers=Object.assign(Object.assign({},O_),r),this.fetch=Xf(n)}listBuckets(){return Rr(this,void 0,void 0,function*(){try{return{data:yield Oo(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(Re(t))return{data:null,error:t};throw t}})}getBucket(t){return Rr(this,void 0,void 0,function*(){try{return{data:yield Oo(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(r){if(Re(r))return{data:null,error:r};throw r}})}createBucket(t,r={public:!1}){return Rr(this,void 0,void 0,function*(){try{return{data:yield Qt(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(Re(n))return{data:null,error:n};throw n}})}updateBucket(t,r){return Rr(this,void 0,void 0,function*(){try{return{data:yield x_(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(Re(n))return{data:null,error:n};throw n}})}emptyBucket(t){return Rr(this,void 0,void 0,function*(){try{return{data:yield Qt(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(Re(r))return{data:null,error:r};throw r}})}deleteBucket(t){return Rr(this,void 0,void 0,function*(){try{return{data:yield Yf(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(r){if(Re(r))return{data:null,error:r};throw r}})}}class S_ extends C_{constructor(t,r={},n){super(t,r,n)}from(t){return new E_(this.url,this.headers,t,this.fetch)}}const A_="2.26.0",$_={"X-Client-Info":`supabase-js/${A_}`};var P_=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const R_=e=>{let t;return e?t=e:typeof fetch>"u"?t=pa:t=fetch,(...r)=>t(...r)},I_=()=>typeof Headers>"u"?ha.Headers:Headers,j_=(e,t,r)=>{const n=R_(r),s=I_();return(i,o)=>P_(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let c=new s(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),n(i,Object.assign(Object.assign({},o),{headers:c}))})};function L_(e){return e.replace(/\/$/,"")}function N_(e,t){const{db:r,auth:n,realtime:s,global:i}=e,{db:o,auth:a,realtime:l,global:c}=t;return{db:Object.assign(Object.assign({},o),r),auth:Object.assign(Object.assign({},a),n),realtime:Object.assign(Object.assign({},l),s),global:Object.assign(Object.assign({},c),i)}}function M_(e){return Math.round(Date.now()/1e3)+e}function D_(){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 St=()=>typeof document<"u",fr={tested:!1,writable:!1},Ss=()=>{if(!St())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(fr.tested)return fr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),fr.tested=!0,fr.writable=!0}catch{fr.tested=!0,fr.writable=!1}return fr.writable};function Fe(e,t){var r;t||(t=((r=window==null?void 0:window.location)===null||r===void 0?void 0:r.href)||""),e=e.replace(/[\[\]]/g,"\\$&");const n=new RegExp("[?&#]"+e+"(=([^&#]*)|&|#|$)"),s=n.exec(t);return s?s[2]?decodeURIComponent(s[2].replace(/\+/g," ")):"":null}const Qf=e=>{let t;return e?t=e:typeof fetch>"u"?t=async(...r)=>await(await rt(()=>Promise.resolve().then(()=>di),void 0,import.meta.url)).fetch(...r):t=fetch,(...r)=>t(...r)},F_=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",vn=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},bs=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},zi=async(e,t)=>{await e.removeItem(t)};function B_(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let r="",n,s,i,o,a,l,c,u=0;for(e=e.replace("-","+").replace("_","/");u>4,s=(a&15)<<4|l>>2,i=(l&3)<<6|c,r=r+String.fromCharCode(n),l!=64&&s!=0&&(r=r+String.fromCharCode(s)),c!=64&&i!=0&&(r=r+String.fromCharCode(i));return r}class pi{constructor(){this.promise=new pi.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}pi.promiseConstructor=Promise;function ac(e){const t=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i,r=e.split(".");if(r.length!==3)throw new Error("JWT is not valid: not a JWT structure");if(!t.test(r[1]))throw new Error("JWT is not valid: payload is not in base64url format");const n=r[1];return JSON.parse(B_(n))}function U_(e){return new Promise(t=>{setTimeout(()=>t(null),e)})}function H_(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 z_(e){return("0"+e.toString(16)).substr(-2)}function _s(){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,z_).join("")}async function q_(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("")}function K_(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ws(e){if(typeof crypto>"u")return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const t=await q_(e);return K_(t)}class ma extends Error{constructor(t,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r}}function oe(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class W_ extends ma{constructor(t,r){super(t,r),this.name="AuthApiError",this.status=r}toJSON(){return{name:this.name,message:this.message,status:this.status}}}function J_(e){return oe(e)&&e.name==="AuthApiError"}class Zf extends ma{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class un extends ma{constructor(t,r,n){super(t),this.name=r,this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class Ir extends un{constructor(){super("Auth session missing!","AuthSessionMissingError",400)}}class qi extends un{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500)}}class xs extends un{constructor(t){super(t,"AuthInvalidCredentialsError",400)}}class Ct extends un{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Ki extends un{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Co extends un{constructor(t,r){super(t,"AuthRetryableFetchError",r)}}function lc(e){return oe(e)&&e.name==="AuthRetryableFetchError"}var V_=globalThis&&globalThis.__rest||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);se.msg||e.message||e.error_description||e.error||JSON.stringify(e),G_=[502,503,504];async function cc(e){if(!F_(e))throw new Co(En(e),0);if(G_.includes(e.status))throw new Co(En(e),e.status);let t;try{t=await e.json()}catch(r){throw new Zf(En(r),r)}throw new W_(En(t),e.status||500)}const X_=(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 ce(e,t,r,n){var s;const i=Object.assign({},n==null?void 0:n.headers);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():"",l=await Y_(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(l):{data:Object.assign({},l),error:null}}async function Y_(e,t,r,n,s,i){const o=X_(t,n,s,i);let a;try{a=await e(r,o)}catch(l){throw console.error(l),new Co(En(l),0)}if(a.ok||await cc(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(l){await cc(l)}}function Gt(e){var t;let r=null;tw(e)&&(r=Object.assign({},e),r.expires_at=M_(e.expires_in));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function mr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function Q_(e){return{data:e,error:null}}function Z_(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i}=e,o=V_(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},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function ew(e){return e}function tw(e){return e.access_token&&e.refresh_token&&e.expires_in}var rw=globalThis&&globalThis.__rest||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);s0&&(h.forEach(p=>{const v=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(p.split(";")[1].split("=")[1]);c[`${x}Page`]=v}),c.total=parseInt(d)),{data:Object.assign(Object.assign({},f),c),error:null}}catch(c){if(oe(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){try{return await ce(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:mr})}catch(r){if(oe(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){try{return await ce(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:mr})}catch(n){if(oe(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){try{return await ce(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:mr})}catch(n){if(oe(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){try{const{data:r,error:n}=await ce(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(oe(r))return{data:null,error:r};throw r}}async _deleteFactor(t){try{return{data:await ce(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(oe(r))return{data:null,error:r};throw r}}}const sw="2.42.0",iw="http://localhost:9999",ow="supabase.auth.token",aw={"X-Client-Info":`gotrue-js/${sw}`},uc=10,fc={getItem:e=>Ss()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{Ss()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{Ss()&&globalThis.localStorage.removeItem(e)}};function lw(){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)}}lw();const cw={url:iw,storageKey:ow,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:aw,flowType:"implicit",debug:!1},ks=30*1e3,dc=3;class Gn{constructor(t){var r;this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.broadcastChannel=null,this.instanceID=Gn.nextInstanceID,Gn.nextInstanceID+=1,this.instanceID>0&&St()&&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 n=Object.assign(Object.assign({},cw),t);if(this.logDebugMessages=n.debug,this.inMemorySession=null,this.storageKey=n.storageKey,this.autoRefreshToken=n.autoRefreshToken,this.persistSession=n.persistSession,this.storage=n.storage||fc,this.admin=new nw({url:n.url,headers:n.headers,fetch:n.fetch}),this.url=n.url,this.headers=n.headers,this.fetch=Qf(n.fetch),this.detectSessionInUrl=n.detectSessionInUrl,this.flowType=n.flowType,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&&this.storage===fc&&!Ss()&&console.warn(`No storage option exists to persist the session, which may result in unexpected behavior when using auth. - If you want to set persistSession to true, please provide a storage option or you may set persistSession to false to disable this warning.`),St()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s),await this._notifyAllSubscribers(s.data.event,s.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&console.log(`GoTrueClient@${this.instanceID} ${new Date().toISOString()}`,...t),this}initialize(){return this.initializePromise||(this.initializePromise=this._initialize()),this.initializePromise}async _initialize(){if(this.initializePromise)return this.initializePromise;try{const t=St()?await this._isPKCEFlow():!1;if(this._debug("#_initialize()","begin","is PKCE flow",t),t||this.detectSessionInUrl&&this._isImplicitGrantFlow()){const{data:r,error:n}=await this._getSessionFromUrl(t);if(n)return this._debug("#_initialize()","error detecting session from URL",n),await this._removeSession(),{error:n};const{session:s,redirectType:i}=r;return this._debug("#_initialize()","detected session in URL",s,"redirect type",i),await this._saveSession(s),setTimeout(async()=>{i==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",s):await this._notifyAllSubscribers("SIGNED_IN",s)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(t){return oe(t)?{error:t}:{error:new Zf("Unexpected error during initialization",t)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signUp(t){var r,n,s;try{await this._removeSession();let i;if("email"in t){const{email:u,password:f,options:d}=t;let h=null,p=null;if(this.flowType==="pkce"){const v=_s();await vn(this.storage,`${this.storageKey}-code-verifier`,v),h=await ws(v),p=v===h?"plain":"s256"}i=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:d==null?void 0:d.emailRedirectTo,body:{email:u,password:f,data:(r=d==null?void 0:d.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken},code_challenge:h,code_challenge_method:p},xform:Gt})}else if("phone"in t){const{phone:u,password:f,options:d}=t;i=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:f,data:(n=d==null?void 0:d.data)!==null&&n!==void 0?n:{},channel:(s=d==null?void 0:d.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken}},xform:Gt})}else throw new xs("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 l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(i){if(oe(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(t){try{await this._removeSession();let r;if("email"in t){const{email:i,password:o,options:a}=t;r=await ce(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:Gt})}else if("phone"in t){const{phone:i,password:o,options:a}=t;r=await ce(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:Gt})}else throw new xs("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 qi}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:{user:n.user,session:n.session},error:s})}catch(r){if(oe(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOAuth(t){var r,n,s,i;return await this._removeSession(),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){const r=await bs(this.storage,`${this.storageKey}-code-verifier`),{data:n,error:s}=await ce(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Gt});return await zi(this.storage,`${this.storageKey}-code-verifier`),s?{data:{user:null,session:null},error:s}:!n||!n.session||!n.user?{data:{user:null,session:null},error:new qi}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:n,error:s})}async signInWithIdToken(t){await this._removeSession();try{const{options:r,provider:n,token:s,access_token:i,nonce:o}=t,a=await ce(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:Gt}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new qi}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(r){if(oe(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOtp(t){var r,n,s,i,o;try{if(await this._removeSession(),"email"in t){const{email:a,options:l}=t;let c=null,u=null;if(this.flowType==="pkce"){const d=_s();await vn(this.storage,`${this.storageKey}-code-verifier`,d),c=await ws(d),u=d===c?"plain":"s256"}const{error:f}=await ce(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:u}=await ce(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u}}throw new xs("You must provide either an email or phone number.")}catch(a){if(oe(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var r,n;try{t.type!=="email_change"&&t.type!=="phone_change"&&await this._removeSession();const{data:s,error:i}=await ce(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:(r=t.options)===null||r===void 0?void 0:r.captchaToken}}),redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,xform:Gt});if(i)throw i;if(!s)throw new Error("An error occurred on token verification.");const o=s.session,a=s.user;return o!=null&&o.access_token&&(await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)),{data:{user:a,session:o},error:null}}catch(s){if(oe(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var r,n,s;try{return await this._removeSession(),await ce(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}),headers:this.headers,xform:Q_})}catch(i){if(oe(i))return{data:null,error:i};throw i}}async reauthenticate(){try{const{data:{session:t},error:r}=await this.getSession();if(r)throw r;if(!t)throw new Ir;const{error:n}=await ce(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:t.access_token});return{data:{user:null,session:null},error:n}}catch(t){if(oe(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{t.type!="email_change"&&t.type!="phone_change"&&await this._removeSession();const r=`${this.url}/resend`;if("email"in t){const{email:n,type:s,options:i}=t,{error:o}=await ce(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 ce(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 xs("You must provide either an email or phone number and a type")}catch(r){if(oe(r))return{data:{user:null,session:null},error:r};throw r}}async getSession(){await this.initializePromise,this._debug("#getSession()","begin");try{let t=null;if(this.persistSession){const i=await bs(this.storage,this.storageKey);this._debug("#getSession()","session from storage",i),i!==null&&(this._isValidSession(i)?t=i:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession()))}else t=this.inMemorySession,this._debug("#getSession()","session from memory",t);if(!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at<=Date.now()/1e3:!1;if(this._debug("#getSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r)return{data:{session:t},error:null};const{session:n,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{session:null},error:s}:{data:{session:n},error:null}}finally{this._debug("#getSession()","end")}}async getUser(t){var r,n;try{if(!t){const{data:s,error:i}=await this.getSession();if(i)throw i;t=(n=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&n!==void 0?n:void 0}return await ce(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:mr})}catch(s){if(oe(s))return{data:{user:null},error:s};throw s}}async updateUser(t,r={}){try{const{data:n,error:s}=await this.getSession();if(s)throw s;if(!n.session)throw new Ir;const i=n.session,{data:o,error:a}=await ce(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:t,jwt:i.access_token,xform:mr});if(a)throw a;return i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),{data:{user:i.user},error:null}}catch(n){if(oe(n))return{data:{user:null},error:n};throw n}}_decodeJWT(t){return ac(t)}async setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Ir;const r=Date.now()/1e3;let n=r,s=!0,i=null;const o=ac(t.access_token);if(o.exp&&(n=o.exp,s=n<=r),s){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this.getUser(t.access_token);if(l)throw l;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(oe(r))return{data:{session:null,user:null},error:r};throw r}}async refreshSession(t){var r;try{if(!t){const{data:i,error:o}=await this.getSession();if(o)throw o;t=(r=i.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Ir;const{session:n,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{user:null,session:null},error:s}:n?{data:{user:n.user,session:n},error:null}:{data:{user:null,session:null},error:null}}catch(n){if(oe(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromUrl(t){try{if(!St())throw new Ct("No browser detected.");if(this.flowType==="implicit"&&!this._isImplicitGrantFlow())throw new Ct("Not a valid implicit grant flow url.");if(this.flowType=="pkce"&&!t)throw new Ki("Not a valid PKCE flow url.");if(t){const x=Fe("code");if(!x)throw new Ki("No code detected.");const{data:m,error:g}=await this.exchangeCodeForSession(x);if(g)throw g;if(!m.session)throw new Ki("No session detected.");let E=new URL(window.location.href);return E.searchParams.delete("code"),window.history.replaceState(window.history.state,"",E.toString()),{data:{session:m.session,redirectType:null},error:null}}const r=Fe("error_description");if(r){const x=Fe("error_code");if(!x)throw new Ct("No error_code detected.");const m=Fe("error");throw m?new Ct(r,{error:m,code:x}):new Ct("No error detected.")}const n=Fe("provider_token"),s=Fe("provider_refresh_token"),i=Fe("access_token");if(!i)throw new Ct("No access_token detected.");const o=Fe("expires_in");if(!o)throw new Ct("No expires_in detected.");const a=Fe("refresh_token");if(!a)throw new Ct("No refresh_token detected.");const l=Fe("token_type");if(!l)throw new Ct("No token_type detected.");const u=Math.round(Date.now()/1e3)+parseInt(o),{data:f,error:d}=await this.getUser(i);if(d)throw d;const h=f.user,p={provider_token:n,provider_refresh_token:s,access_token:i,expires_in:parseInt(o),expires_at:u,refresh_token:a,token_type:l,user:h},v=Fe("type");return window.location.hash="",this._debug("#_getSessionFromUrl()","clearing window.location.hash"),{data:{session:p,redirectType:v},error:null}}catch(r){if(oe(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantFlow(){return St()&&(!!Fe("access_token")||!!Fe("error_description"))}async _isPKCEFlow(){const t=await bs(this.storage,`${this.storageKey}-code-verifier`);return!!Fe("code")&&!!t}async signOut({scope:t}={scope:"global"}){var r;const{data:n,error:s}=await this.getSession();if(s)return{error:s};const i=(r=n.session)===null||r===void 0?void 0:r.access_token;if(i){const{error:o}=await this.admin.signOut(i,t);if(o&&!(J_(o)&&(o.status===404||o.status===401)))return{error:o}}return t!=="others"&&(await this._removeSession(),await zi(this.storage,`${this.storageKey}-code-verifier`),await this._notifyAllSubscribers("SIGNED_OUT",null)),{error:null}}onAuthStateChange(t){const r=D_(),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),this._emitInitialSession(r),{data:{subscription:n}}}async _emitInitialSession(t){var r,n;try{const{data:{session:s},error:i}=await this.getSession();if(i)throw i;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}}async resetPasswordForEmail(t,r={}){let n=null,s=null;if(this.flowType==="pkce"){const i=_s();await vn(this.storage,`${this.storageKey}-code-verifier`,i),n=await ws(i),s=i===n?"plain":"s256"}try{return await ce(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(oe(i))return{data:null,error:i};throw i}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await H_(async s=>(await U_(s*200),this._debug(r,"refreshing attempt",s),await ce(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Gt})),(s,i,o)=>o&&o.error&&lc(o.error)&&Date.now()+(s+1)*200-n{try{await a.callback(t,r)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;athis._autoRefreshTokenTick(),ks);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),await this._autoRefreshTokenTick()}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{const t=Date.now();try{const{data:{session:r}}=await this.getSession();if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const n=Math.floor((r.expires_at*1e3-t)/ks);this._debug("#_autoRefreshTokenTick()",`access token expires in ${n} ticks, a tick lasts ${ks}ms, refresh threshold is ${dc} ticks`),n<=dc&&await this._callRefreshToken(r.refresh_token)}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!St()||!(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){this._debug(`#_onVisibilityChanged(${t})`,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(t||(await this.initializePromise,await this._recoverAndRefresh(),this._debug("#_onVisibilityChanged()","finished waiting for initialize, _recoverAndRefresh")),this.autoRefreshToken&&this._startAutoRefresh()):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r){const n=[`provider=${encodeURIComponent(t)}`];if(r!=null&&r.redirectTo&&n.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&n.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const s=_s();await vn(this.storage,`${this.storageKey}-code-verifier`,s);const i=await ws(s),o=s===i?"plain":"s256";this._debug("PKCE","code verifier",`${s.substring(0,5)}...`,"code challenge",i,"method",o);const a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});n.push(a.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);n.push(s.toString())}return`${this.url}/authorize?${n.join("&")}`}async _unenroll(t){var r;try{const{data:n,error:s}=await this.getSession();return s?{data:null,error:s}:await ce(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=n==null?void 0:n.session)===null||r===void 0?void 0:r.access_token})}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _enroll(t){var r,n;try{const{data:s,error:i}=await this.getSession();if(i)return{data:null,error:i};const{data:o,error:a}=await ce(this.fetch,"POST",`${this.url}/factors`,{body:{friendly_name:t.friendlyName,factor_type:t.factorType,issuer:t.issuer},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(!((n=o==null?void 0:o.totp)===null||n===void 0)&&n.qr_code&&(o.totp.qr_code=`data:image/svg+xml;utf-8,${o.totp.qr_code}`),{data:o,error:null})}catch(s){if(oe(s))return{data:null,error:s};throw s}}async _verify(t){var r;try{const{data:n,error:s}=await this.getSession();if(s)return{data:null,error:s};const{data:i,error:o}=await ce(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=n==null?void 0:n.session)===null||r===void 0?void 0:r.access_token});return o?{data:null,error:o}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+i.expires_in},i)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),{data:i,error:o})}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _challenge(t){var r;try{const{data:n,error:s}=await this.getSession();return s?{data:null,error:s}:await ce(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{headers:this.headers,jwt:(r=n==null?void 0:n.session)===null||r===void 0?void 0:r.access_token})}catch(n){if(oe(n))return{data:null,error:n};throw n}}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(i=>i.factor_type==="totp"&&i.status==="verified");return{data:{all:n,totp:s},error:null}}async _getAuthenticatorAssuranceLevel(){var t,r;const{data:{session:n},error:s}=await this.getSession();if(s)return{data:null,error:s};if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const i=this._decodeJWT(n.access_token);let o=null;i.aal&&(o=i.aal);let a=o;((r=(t=n.user.factors)===null||t===void 0?void 0:t.filter(u=>u.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(a="aal2");const c=i.amr||[];return{data:{currentLevel:o,nextLevel:a,currentAuthenticationMethods:c},error:null}}}Gn.nextInstanceID=0;class uw extends Gn{constructor(t){super(t)}}var fw=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const dw={headers:$_},hw={schema:"public"},pw={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},gw={};class yw{constructor(t,r,n){var s,i,o,a,l,c,u,f;if(this.supabaseUrl=t,this.supabaseKey=r,!t)throw new Error("supabaseUrl is required.");if(!r)throw new Error("supabaseKey is required.");const d=L_(t);this.realtimeUrl=`${d}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${d}/auth/v1`,this.storageUrl=`${d}/storage/v1`,this.functionsUrl=`${d}/functions/v1`;const h=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,p={db:hw,realtime:gw,auth:Object.assign(Object.assign({},pw),{storageKey:h}),global:dw},v=N_(n??{},p);this.storageKey=(i=(s=v.auth)===null||s===void 0?void 0:s.storageKey)!==null&&i!==void 0?i:"",this.headers=(a=(o=v.global)===null||o===void 0?void 0:o.headers)!==null&&a!==void 0?a:{},this.auth=this._initSupabaseAuthClient((l=v.auth)!==null&&l!==void 0?l:{},this.headers,(c=v.global)===null||c===void 0?void 0:c.fetch),this.fetch=j_(r,this._getAccessToken.bind(this),(u=v.global)===null||u===void 0?void 0:u.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},v.realtime)),this.rest=new Nb(`${d}/rest/v1`,{headers:this.headers,schema:(f=v.db)===null||f===void 0?void 0:f.schema,fetch:this.fetch}),this._listenForAuthEvents()}get functions(){return new Sb(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new S_(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(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 fw(this,void 0,void 0,function*(){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},a,l){const c={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new uw({url:this.authUrl,headers:Object.assign(Object.assign({},c),a),storageKey:i,autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:s,flowType:o,fetch:l})}_initRealtimeClient(t){return new m_(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.realtime.setAuth(n??null),this.changedAccessToken=n):t==="SIGNED_OUT"&&(this.realtime.setAuth(this.supabaseKey),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const mw=(e,t,r)=>new yw(e,t,r),va=()=>{const{supabase:{cookies:e}}=oi().public,t=`${e.name}-access-token`;return Qm(t)},vw=()=>{var a,l,c;const e=va(),t=e.value?`Bearer ${e.value}`:void 0,{supabase:{url:r,key:n,client:s}}=oi().public,i={detectSessionInUrl:(a=s.auth)==null?void 0:a.detectSessionInUrl,persistSession:(l=s.auth)==null?void 0:l.persistSession,autoRefreshToken:(c=s.auth)==null?void 0:c.autoRefreshToken},o=kr(t?{auth:i,global:{headers:{Authorization:t}}}:{auth:i},s);return mw(r,n,o)},bw=()=>{const e=be();return e._supabaseAuthClient||(e._supabaseAuthClient=vw()),e._supabaseAuthClient},_w=()=>{const e=ai("supabase_user",()=>null);return va().value||(e.value=null),e},ww=Bt(async e=>{let t,r;const n=_w(),s=bw();if(!n.value){const i=va();if(i.value){const{data:{user:o},error:a}=([t,r]=Wn(()=>s.auth.getUser(i.value)),t=await t,r(),t);a?(i.value=null,n.value=null):n.value=o}}e.hooks.hook("app:mounted",()=>{s.auth.onAuthStateChange(async(i,o)=>{if(o){await hc(i,o);const a=o?await s.auth.getUser():null;n.value=a?a.data.user:null}else n.value=null,await hc(i,o)})})}),hc=(e,t)=>$fetch("/api/_supabase/session",{method:"POST",body:{event:e,session:t}}),xw=Bt({name:"nuxt:chunk-reload",setup(e){const t=Ut(),r=oi(),n=new Set;t.beforeEach(()=>{n.clear()}),e.hook("app:chunkError",({error:s})=>{n.add(s)}),t.onError((s,i)=>{if(n.has(s)){const a="href"in i&&i.href.startsWith("#")?r.app.baseURL+i.href:si(r.app.baseURL,i.fullPath);rv({path:a,persistState:!0})}})}}),kw=[Ly,zm,qm,Km,Wm,vb,wb,ww,xw],Cr=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},Ew=Ye({props:{name:{type:String,required:!0}}});function Tw(e,t,r,n,s,i){return ve(),ht("span",{class:Je(e.name)},null,2)}const ed=Cr(Ew,[["render",Tw]]),Ow=Ye({components:{UIcon:ed,NuxtLink:ov},props:{type:{type:String,default:"button"},block:{type:Boolean,default:!1},label:{type:String,default:null},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:()=>Le.ui.button.default.size,validator(e){return Object.keys(Le.ui.button.size).includes(e)}},color:{type:String,default:()=>Le.ui.button.default.color,validator(e){return[...Le.ui.colors,...Object.keys(Le.ui.button.color)].includes(e)}},variant:{type:String,default:()=>Le.ui.button.default.variant,validator(e){return[...Object.keys(Le.ui.button.variant),...Object.values(Le.ui.button.color).flatMap(t=>Object.keys(t))].includes(e)}},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>Le.ui.button.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:null},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},to:{type:[String,Object],default:null},target:{type:String,default:null},ariaLabel:{type:String,default:null},square:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},ui:{type:Object,default:()=>Le.ui.button}},setup(e){const t=fi(),r=ue(()=>kr({},e.ui,t.ui.button)),n=fp(),s=ue(()=>e.to?"NuxtLink":"button"),i=ue(()=>e.to?{to:e.to,target:e.target}:{disabled:e.disabled||e.loading,type:e.type}),o=ue(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),a=ue(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),l=ue(()=>e.square||!n.default&&!e.label),c=ue(()=>{var v,x;const p=((x=(v=r.value.color)==null?void 0:v[e.color])==null?void 0:x[e.variant])||r.value.variant[e.variant];return Di(r.value.base,r.value.font,r.value.rounded,r.value.size[e.size],r.value.gap[e.size],e.padded&&r.value[l.value?"square":"padding"][e.size],p==null?void 0:p.replaceAll("{color}",e.color),e.block?"w-full flex justify-center items-center":"inline-flex items-center")}),u=ue(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),f=ue(()=>e.loading&&!o.value?e.loadingIcon:e.trailingIcon||e.icon),d=ue(()=>Di(r.value.icon.base,r.value.icon.size[e.size],e.loading&&"animate-spin")),h=ue(()=>Di(r.value.icon.base,r.value.icon.size[e.size],e.loading&&!o.value&&"animate-spin"));return{buttonIs:s,buttonProps:i,isLeading:o,isTrailing:a,isSquare:l,buttonClass:c,leadingIconName:u,trailingIconName:f,leadingIconClass:d,trailingIconClass:h}}});function Cw(e,t,r,n,s,i){const o=ed;return ve(),Ue(Mu(e.buttonIs),sa({class:e.buttonClass,"aria-label":e.ariaLabel},e.buttonProps),{default:Ve(()=>[tr(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[e.isLeading&&e.leadingIconName?(ve(),Ue(o,{key:0,name:e.leadingIconName,class:Je(e.leadingIconClass),"aria-hidden":"true"},null,8,["name","class"])):$n("",!0)]),tr(e.$slots,"default",{},()=>[e.label?(ve(),ht("span",{key:0,class:Je([e.truncate?"text-left break-all line-clamp-1":""])},Rs(e.label),3)):$n("",!0)]),tr(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[e.isTrailing&&e.trailingIconName?(ve(),Ue(o,{key:0,name:e.trailingIconName,class:Je(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])):$n("",!0)])]),_:3},16,["class","aria-label"])}const td=Cr(Ow,[["render",Cw]]),Sw=Ye({props:{value:{type:String,default:null},size:{type:String,default:()=>Le.ui.kbd.default.size,validator(e){return Object.keys(Le.ui.kbd.size).includes(e)}},ui:{type:Object,default:()=>Le.ui.kbd}},setup(e){const t=fi();return{ui:ue(()=>kr({},e.ui,t.ui.kbd))}}});function Aw(e,t,r,n,s,i){return ve(),ht("kbd",{class:Je([e.ui.base,e.ui.size[e.size],e.ui.padding,e.ui.rounded,e.ui.font,e.ui.background,e.ui.ring])},[tr(e.$slots,"default",{},()=>[zr(Rs(e.value),1)])],2)}const rd=Cr(Sw,[["render",Aw]]);function Xe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Er(e){var t=Xe(e).Element;return e instanceof t||e instanceof Element}function it(e){var t=Xe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ba(e){if(typeof ShadowRoot>"u")return!1;var t=Xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var wr=Math.max,Ks=Math.min,Xr=Math.round;function So(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function nd(){return!/^((?!chrome|android).)*safari/i.test(So())}function Yr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),s=1,i=1;t&&it(e)&&(s=e.offsetWidth>0&&Xr(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Xr(n.height)/e.offsetHeight||1);var o=Er(e)?Xe(e):window,a=o.visualViewport,l=!nd()&&r,c=(n.left+(l&&a?a.offsetLeft:0))/s,u=(n.top+(l&&a?a.offsetTop:0))/i,f=n.width/s,d=n.height/i;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function _a(e){var t=Xe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function $w(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Pw(e){return e===Xe(e)||!it(e)?_a(e):$w(e)}function kt(e){return e?(e.nodeName||"").toLowerCase():null}function ar(e){return((Er(e)?e.ownerDocument:e.document)||window.document).documentElement}function wa(e){return Yr(ar(e)).left+_a(e).scrollLeft}function Nt(e){return Xe(e).getComputedStyle(e)}function xa(e){var t=Nt(e),r=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+n)}function Rw(e){var t=e.getBoundingClientRect(),r=Xr(t.width)/e.offsetWidth||1,n=Xr(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Iw(e,t,r){r===void 0&&(r=!1);var n=it(t),s=it(t)&&Rw(t),i=ar(t),o=Yr(e,s,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((kt(t)!=="body"||xa(i))&&(a=Pw(t)),it(t)?(l=Yr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=wa(i))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function sd(e){var t=Yr(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function gi(e){return kt(e)==="html"?e:e.assignedSlot||e.parentNode||(ba(e)?e.host:null)||ar(e)}function id(e){return["html","body","#document"].indexOf(kt(e))>=0?e.ownerDocument.body:it(e)&&xa(e)?e:id(gi(e))}function Mn(e,t){var r;t===void 0&&(t=[]);var n=id(e),s=n===((r=e.ownerDocument)==null?void 0:r.body),i=Xe(n),o=s?[i].concat(i.visualViewport||[],xa(n)?n:[]):n,a=t.concat(o);return s?a:a.concat(Mn(gi(o)))}function jw(e){return["table","td","th"].indexOf(kt(e))>=0}function pc(e){return!it(e)||Nt(e).position==="fixed"?null:e.offsetParent}function Lw(e){var t=/firefox/i.test(So()),r=/Trident/i.test(So());if(r&&it(e)){var n=Nt(e);if(n.position==="fixed")return null}var s=gi(e);for(ba(s)&&(s=s.host);it(s)&&["html","body"].indexOf(kt(s))<0;){var i=Nt(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function yi(e){for(var t=Xe(e),r=pc(e);r&&jw(r)&&Nt(r).position==="static";)r=pc(r);return r&&(kt(r)==="html"||kt(r)==="body"&&Nt(r).position==="static")?t:r||Lw(e)||t}var ot="top",Et="bottom",Mt="right",gt="left",ka="auto",mi=[ot,Et,Mt,gt],Qr="start",Xn="end",Nw="clippingParents",od="viewport",bn="popper",Mw="reference",gc=mi.reduce(function(e,t){return e.concat([t+"-"+Qr,t+"-"+Xn])},[]),ad=[].concat(mi,[ka]).reduce(function(e,t){return e.concat([t,t+"-"+Qr,t+"-"+Xn])},[]),Dw="beforeRead",Fw="read",Bw="afterRead",Uw="beforeMain",Hw="main",zw="afterMain",qw="beforeWrite",Kw="write",Ww="afterWrite",Jw=[Dw,Fw,Bw,Uw,Hw,zw,qw,Kw,Ww];function Vw(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function s(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!r.has(a)){var l=t.get(a);l&&s(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||s(i)}),n}function Gw(e){var t=Vw(e);return Jw.reduce(function(r,n){return r.concat(t.filter(function(s){return s.phase===n}))},[])}function Xw(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Yw(e){var t=e.reduce(function(r,n){var s=r[n.name];return r[n.name]=s?Object.assign({},s,n,{options:Object.assign({},s.options,n.options),data:Object.assign({},s.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}function Qw(e,t){var r=Xe(e),n=ar(e),s=r.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;var c=nd();(c||!c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a+wa(e),y:l}}function Zw(e){var t,r=ar(e),n=_a(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=wr(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=wr(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+wa(e),l=-n.scrollTop;return Nt(s||r).direction==="rtl"&&(a+=wr(r.clientWidth,s?s.clientWidth:0)-i),{width:i,height:o,x:a,y:l}}function ex(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ba(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ao(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tx(e,t){var r=Yr(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function yc(e,t,r){return t===od?Ao(Qw(e,r)):Er(t)?tx(t,r):Ao(Zw(ar(e)))}function rx(e){var t=Mn(gi(e)),r=["absolute","fixed"].indexOf(Nt(e).position)>=0,n=r&&it(e)?yi(e):e;return Er(n)?t.filter(function(s){return Er(s)&&ex(s,n)&&kt(s)!=="body"}):[]}function nx(e,t,r,n){var s=t==="clippingParents"?rx(e):[].concat(t),i=[].concat(s,[r]),o=i[0],a=i.reduce(function(l,c){var u=yc(e,c,n);return l.top=wr(u.top,l.top),l.right=Ks(u.right,l.right),l.bottom=Ks(u.bottom,l.bottom),l.left=wr(u.left,l.left),l},yc(e,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Rt(e){return e.split("-")[0]}function Zr(e){return e.split("-")[1]}function ld(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cd(e){var t=e.reference,r=e.element,n=e.placement,s=n?Rt(n):null,i=n?Zr(n):null,o=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2,l;switch(s){case ot:l={x:o,y:t.y-r.height};break;case Et:l={x:o,y:t.y+t.height};break;case Mt:l={x:t.x+t.width,y:a};break;case gt:l={x:t.x-r.width,y:a};break;default:l={x:t.x,y:t.y}}var c=s?ld(s):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Qr:l[c]=l[c]-(t[u]/2-r[u]/2);break;case Xn:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function ud(){return{top:0,right:0,bottom:0,left:0}}function sx(e){return Object.assign({},ud(),e)}function ix(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}function Ea(e,t){t===void 0&&(t={});var r=t,n=r.placement,s=n===void 0?e.placement:n,i=r.strategy,o=i===void 0?e.strategy:i,a=r.boundary,l=a===void 0?Nw:a,c=r.rootBoundary,u=c===void 0?od:c,f=r.elementContext,d=f===void 0?bn:f,h=r.altBoundary,p=h===void 0?!1:h,v=r.padding,x=v===void 0?0:v,m=sx(typeof x!="number"?x:ix(x,mi)),g=d===bn?Mw:bn,E=e.rects.popper,_=e.elements[p?g:d],T=nx(Er(_)?_:_.contextElement||ar(e.elements.popper),l,u,o),P=Yr(e.elements.reference),j=cd({reference:P,element:E,strategy:"absolute",placement:s}),O=Ao(Object.assign({},E,j)),M=d===bn?O:P,B={top:T.top-M.top+m.top,bottom:M.bottom-T.bottom+m.bottom,left:T.left-M.left+m.left,right:M.right-T.right+m.right},H=e.modifiersData.offset;if(d===bn&&H){var F=H[s];Object.keys(B).forEach(function(K){var w=[Mt,Et].indexOf(K)>=0?1:-1,$=[ot,Et].indexOf(K)>=0?"y":"x";B[K]+=F[$]*w})}return B}var mc={placement:"bottom",modifiers:[],strategy:"absolute"};function vc(){for(var e=arguments.length,t=new Array(e),r=0;r-1&&e%1==0&&e-1&&e%1==0&&e<=sk}function vd(e){return e!=null&&Sa(e.length)&&!md(e)}var ik=Object.prototype;function bd(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ik;return e===r}function ok(e,t){for(var r=-1,n=Array(e);++r-1}function x1(e,t){var r=this.__data__,n=vi(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function zt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++ta))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=r&vE?new Ws:void 0;for(i.set(e,t),i.set(t,e);++f=0});d.length===0&&(d=f);var h=d.reduce(function(p,v){return p[v]=Ea(e,{placement:v,boundary:s,rootBoundary:i,padding:o})[Rt(v)],p},{});return Object.keys(h).sort(function(p,v){return h[p]-h[v]})}function dT(e){if(Rt(e)===ka)return[];var t=As(e);return[zc(e),t,zc(t)]}function hT(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=r.mainAxis,i=s===void 0?!0:s,o=r.altAxis,a=o===void 0?!0:o,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,p=h===void 0?!0:h,v=r.allowedAutoPlacements,x=t.options.placement,m=Rt(x),g=m===x,E=l||(g||!p?[As(x)]:dT(x)),_=[x].concat(E).reduce(function(ze,qe){return ze.concat(Rt(qe)===ka?fT(t,{placement:qe,boundary:u,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:v}):qe)},[]),T=t.rects.reference,P=t.rects.popper,j=new Map,O=!0,M=_[0],B=0;B<_.length;B++){var H=_[B],F=Rt(H),K=Zr(H)===Qr,w=[ot,Et].indexOf(F)>=0,$=w?"width":"height",L=Ea(t,{placement:H,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),J=w?K?Mt:gt:K?Et:ot;T[$]>P[$]&&(J=As(J));var Y=As(J),ee=[];if(i&&ee.push(L[F]<=0),a&&ee.push(L[J]<=0,L[Y]<=0),ee.every(function(ze){return ze})){M=H,O=!1;break}j.set(H,ee)}if(O)for(var Ae=p?3:1,ke=function(qe){var xe=_.find(function(S){var z=j.get(S);if(z)return z.slice(0,qe).every(function(U){return U})});if(xe)return M=xe,"break"},_e=Ae;_e>0;_e--){var at=ke(_e);if(at==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const pT={name:"flip",enabled:!0,phase:"main",fn:hT,requiresIfExists:["offset"],data:{_skip:!1}};function gT(e,t,r){var n=Rt(e),s=[gt,ot].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=i[0],a=i[1];return o=o||0,a=(a||0)*s,[gt,Mt].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}function yT(e){var t=e.state,r=e.options,n=e.name,s=r.offset,i=s===void 0?[0,0]:s,o=ad.reduce(function(u,f){return u[f]=gT(f,t.rects,i),u},{}),a=o[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}const mT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yT};function vT(e){return e==="x"?"y":"x"}function $s(e,t,r){return wr(e,Ks(t,r))}function bT(e,t,r){var n=$s(e,t,r);return n>r?r:n}function _T(e){var t=e.state,r=e.options,n=e.name,s=r.mainAxis,i=s===void 0?!0:s,o=r.altAxis,a=o===void 0?!1:o,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,p=r.tetherOffset,v=p===void 0?0:p,x=Ea(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),m=Rt(t.placement),g=Zr(t.placement),E=!g,_=ld(m),T=vT(_),P=t.modifiersData.popperOffsets,j=t.rects.reference,O=t.rects.popper,M=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,B=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(P){if(i){var K,w=_==="y"?ot:gt,$=_==="y"?Et:Mt,L=_==="y"?"height":"width",J=P[_],Y=J+x[w],ee=J-x[$],Ae=h?-O[L]/2:0,ke=g===Qr?j[L]:O[L],_e=g===Qr?-O[L]:-j[L],at=t.elements.arrow,ze=h&&at?sd(at):{width:0,height:0},qe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ud(),xe=qe[w],S=qe[$],z=$s(0,j[L],ze[L]),U=E?j[L]/2-Ae-z-xe-B.mainAxis:ke-z-xe-B.mainAxis,V=E?-j[L]/2+Ae+z+S+B.mainAxis:_e+z+S+B.mainAxis,se=t.elements.arrow&&yi(t.elements.arrow),y=se?_==="y"?se.clientTop||0:se.clientLeft||0:0,b=(K=H==null?void 0:H[_])!=null?K:0,k=J+U-b-y,C=J+V-b,A=$s(h?Ks(Y,k):Y,J,h?wr(ee,C):ee);P[_]=A,F[_]=A-J}if(a){var R,q=_==="x"?ot:gt,N=_==="x"?Et:Mt,D=P[T],I=T==="y"?"height":"width",X=D+x[q],W=D-x[N],G=[ot,gt].indexOf(m)!==-1,Z=(R=H==null?void 0:H[T])!=null?R:0,re=G?X:D-j[I]-O[I]-Z+B.altAxis,fe=G?D+j[I]+O[I]-Z-B.altAxis:W,le=h&&G?bT(re,D,fe):$s(h?re:X,D,h?fe:W);P[T]=le,F[T]=le-D}t.modifiersData[n]=F}}const wT={name:"preventOverflow",enabled:!0,phase:"main",fn:_T,requiresIfExists:["offset"]};function xT(e){return typeof e=="function"?e():pe(e)}function qc(e){var t;const r=xT(e);return(t=r==null?void 0:r.$el)!=null?t:r}const kT=ox({defaultModifiers:[...yx,mT,pT,wT,dd,fd]});function ET({locked:e=!1,overflowPadding:t=8,offsetDistance:r=8,offsetSkid:n=0,gpuAcceleration:s=!0,adaptive:i=!0,scroll:o=!0,resize:a=!0,placement:l,strategy:c},u){const f=Oe(null),d=Oe(null),h=Oe(null);return an(()=>{Ou(p=>{if(!d.value||!f.value&&!(u!=null&&u.value))return;const v=qc(d),x=(u==null?void 0:u.value)||qc(f);v instanceof HTMLElement&&x&&(h.value=kT(x,v,lT({placement:l,strategy:c,modifiers:[{name:"flip",enabled:!e},{name:"preventOverflow",options:{padding:t}},{name:"offset",options:{offset:[n,r]}},{name:"computeStyles",options:{adaptive:i,gpuAcceleration:s}},{name:"eventListeners",options:{scroll:o,resize:a}}]},rT)),p(h.value.destroy))})}),[f,d,h]}const TT=Ye({components:{UKbd:rd},props:{text:{type:String,default:null},prevent:{type:Boolean,default:!1},shortcuts:{type:Array,default:()=>[]},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},popper:{type:Object,default:()=>({})},ui:{type:Object,default:()=>Le.ui.tooltip}},setup(e){const t=fi(),r=ue(()=>kr({},e.ui,t.ui.tooltip)),n=ue(()=>kr({},e.popper,r.value.popper)),[s,i]=ET(n.value),o=Oe(!1);let a=null,l=null;function c(){l&&(clearTimeout(l),l=null),!o.value&&(a=a||setTimeout(()=>{o.value=!0,a=null},e.openDelay))}function u(){a&&(clearTimeout(a),a=null),o.value&&(l=l||setTimeout(()=>{o.value=!1,l=null},e.closeDelay))}return{ui:r,trigger:s,container:i,open:o,onMouseOver:c,onMouseLeave:u}}}),OT=Pt("span",{class:"mx-1 text-gray-700 dark:text-gray-200"},"·",-1);function CT(e,t,r,n,s,i){const o=rd;return ve(),ht("div",{ref:"trigger",class:Je(e.ui.wrapper),onMouseover:t[0]||(t[0]=(...a)=>e.onMouseOver&&e.onMouseOver(...a)),onMouseleave:t[1]||(t[1]=(...a)=>e.onMouseLeave&&e.onMouseLeave(...a))},[tr(e.$slots,"default",{open:e.open},()=>[zr(" Hover ")]),e.open&&!e.prevent?(ve(),ht("div",{key:0,ref:"container",class:Je([e.ui.container,e.ui.width])},[ne(ni,sa({appear:""},e.ui.transition),{default:Ve(()=>{var a;return[Pt("div",{class:Je([e.ui.base,e.ui.background,e.ui.color,e.ui.rounded,e.ui.shadow,e.ui.ring])},[tr(e.$slots,"text",{},()=>[zr(Rs(e.text),1)]),(a=e.shortcuts)!=null&&a.length?(ve(),ht("span",{key:0,class:Je(e.ui.shortcuts)},[OT,(ve(!0),ht(Ne,null,cp(e.shortcuts,l=>(ve(),Ue(o,{key:l,size:"xs"},{default:Ve(()=>[zr(Rs(l),1)]),_:2},1024))),128))],2)):$n("",!0)],2)]}),_:3},16)],2)):$n("",!0)],34)}const ST=Cr(TT,[["render",CT]]),Nd=Ye({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:r}){const n=Oe(!1);return an(()=>{n.value=!0}),s=>{var l;if(n.value)return(l=t.default)==null?void 0:l.call(t);const i=t.fallback||t.placeholder;if(i)return i();const o=s.fallback||s.placeholder||"",a=s.fallbackTag||s.placeholderTag||"span";return ht(a,r,o)}}}),AT=()=>ai("color-mode").value,$T=Pt("div",{class:"w-8 h-8"},null,-1),PT={__name:"ColorModeButton",setup(e){const t=AT(),r=ue({get(){return t.value==="dark"},set(){t.preference=t.value==="dark"?"light":"dark"}});return console.log(r),(n,s)=>{const i=td,o=Nd;return ve(),Ue(o,null,{fallback:Ve(()=>[$T]),default:Ve(()=>[ne(i,{icon:pe(r)?"i-heroicons-moon-20-solid":"i-heroicons-sun-20-solid","aria-label":"Theme",size:"xl",onClick:s[0]||(s[0]=a=>r.value=!pe(r))},null,8,["icon"])]),_:1})}}},RT={class:"fixed top-0 left-0 right-0 py-2 z-10 backdrop-filter backdrop-blur-[16px] bg-white/90 dark:bg-gray-950/90 border-gray-200 dark:border-gray-900/70"},IT={class:"container flex mx-auto flex-row items-center px-2"},jT={class:"flex flex-1 space-x-4 flex-row items-center justify-start"},LT=Pt("div",{class:"flex-1 flex flex-row items-center justify-center"},null,-1),NT={class:"flex flex-1 flex-row items-center justify-end"},MT=Ye({__name:"AppHeader",setup(e){return(t,r)=>{const n=td,s=ST,i=Nd,o=PT;return ve(),ht("header",RT,[Pt("div",IT,[ne(i,null,{default:Ve(()=>[Pt("div",jT,[ne(s,{text:"העבודה הגדולה האחת"},{default:Ve(()=>[ne(n,{icon:"i-heroicons-scale-solid",to:"/#hero",class:"",size:"3xl","aria-label":"Theme"})]),_:1})])]),_:1}),LT,Pt("div",NT,[ne(s,{text:"מדיה לשיתופים"},{default:Ve(()=>[ne(n,{icon:"i-heroicons-camera-solid",to:"/#media",class:"me-1",size:"xl","aria-label":"Theme"})]),_:1}),ne(n,{icon:"i-heroicons-bolt-solid",to:"/#hero",size:"xl",class:"ms-1 me-1","aria-label":"Theme"}),ne(s,{text:"מצב צבע",class:"ms-1"},{default:Ve(()=>[ne(o)]),_:1})])])])}}}),DT=Ye({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"}},setup(e,{slots:t}){const r=FT({duration:e.duration,throttle:e.throttle}),n=be(),s=Ut();return Cs.unshift(r.start),s.onError(()=>{r.finish()}),s.beforeResolve((i,o)=>{(i===o||i.matched.every((a,l)=>{var c,u,f;return a.components&&((c=a.components)==null?void 0:c.default)===((f=(u=o.matched[l])==null?void 0:u.components)==null?void 0:f.default)}))&&r.finish()}),s.afterEach((i,o,a)=>{a&&r.finish()}),n.hook("page:finish",r.finish),n.hook("vue:error",r.finish),ln(()=>{const i=Cs.indexOf(r.start);i>=0&&Cs.splice(i,1),r.clear()}),()=>st("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:r.isLoading.value?1:0,background:e.color||void 0,backgroundSize:`${100/r.progress.value*100}% auto`,transform:`scaleX(${r.progress.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}});function FT(e){const t=Oe(0),r=Oe(!1),n=ue(()=>1e4/e.duration);let s=null,i=null;function o(){l(),t.value=0,e.throttle?i=setTimeout(()=>{r.value=!0,f()},e.throttle):(r.value=!0,f())}function a(){t.value=100,u()}function l(){clearInterval(s),clearTimeout(i),s=null,i=null}function c(d){t.value=Math.min(100,t.value+d)}function u(){l(),setTimeout(()=>{r.value=!1,setTimeout(()=>{t.value=0},400)},500)}function f(){s=setInterval(()=>{c(n.value)},100)}return{progress:t,isLoading:r,start:o,finish:a,clear:l}}const BT=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,r=>{var n;return((n=e.params[r.slice(1)])==null?void 0:n.toString())||""}),Lo=(e,t)=>{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&&BT(e.route,r));return typeof n=="function"?n(e.route):n},UT=(e,t)=>({default:()=>e?st(tp,e===!0?{}:e,t):t}),HT=Ye({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,r=e.route,n={};for(const s in e.route)Object.defineProperty(n,s,{get:()=>t===e.renderKey?e.route[s]:r[s]});return Hr(li,ts(n)),()=>st(e.vnode,{ref:e.vnodeRef})}}),zT=(e,t,r)=>(t=t===!0?{}:t,{default:()=>{var n;return t?st(e,t,r):(n=r.default)==null?void 0:n.call(r)}}),qT=Ye({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,expose:r}){const n=be(),s=Oe(),i=Ge(li,null);r({pageRef:s});const o=Ge(Ay,null);let a;return()=>st(Hf,{name:e.name,route:e.route,...t},{default:l=>{const c=JT(i,l.route,l.Component),u=i&&i.matched.length===l.route.matched.length;if(!l.Component)return a&&!u?a:void 0;if(a&&o&&!o.isCurrent(l.route))return a;if(c&&i&&(!o||o!=null&&o.isCurrent(i)))return u?a:null;const f=Lo(l,e.pageKey),d=n.deferHydration(),h=!!(e.transition??l.route.meta.pageTransition??po),p=h&&WT([e.transition,l.route.meta.pageTransition,po,{onAfterLeave:()=>{n.callHook("page:transition:finish",l.Component)}}].filter(Boolean));return a=zT(ni,h&&p,UT(e.keepalive??l.route.meta.keepalive??py,st(Eu,{suspensible:!0,onPending:()=>n.callHook("page:start",l.Component),onResolve:()=>{Or(()=>n.callHook("page:finish",l.Component).finally(d))}},{default:()=>st(HT,{key:f,vnode:l.Component,route:l.route,renderKey:f,trackRootNodes:h,vnodeRef:s})}))).default(),a}})}});function KT(e){return Array.isArray(e)?e:e?[e]:[]}function WT(e){const t=e.map(r=>({...r,onAfterLeave:KT(r.onAfterLeave)}));return kr(...t)}function JT(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,l;return((o=s.components)==null?void 0:o.default)!==((l=(a=e.matched[i])==null?void 0:a.components)==null?void 0:l.default)})||r&&Lo({route:t,Component:r})!==Lo({route:e,Component:r})}const VT={},GT={class:"max-w-screen min-h-screen px-4 mx-auto sm:px-6 lg:px-8"};function XT(e,t){return ve(),ht("div",GT,[tr(e.$slots,"default")])}const YT=Cr(VT,[["render",XT]]),QT={};function ZT(e,t){return ve(),ht("div",null,[tr(e.$slots,"default")])}const eO=Cr(QT,[["render",ZT]]);const tO={};function rO(e,t){const r=MT,n=DT,s=qT,i=YT,o=eO;return ve(),Ue(o,{class:""},{default:Ve(()=>[ne(r),ne(i,{class:""},{default:Ve(()=>[ne(n,{color:"#47ffd4",height:"3"}),ne(s)]),_:1})]),_:1})}const nO=Cr(tO,[["render",rO]]),sO={__name:"nuxt-error-page",props:{error:Object},setup(e){const r=e.error;(r.stack||"").split(` +}`}),n={style:[{innerHTML:()=>r.value,tagPriority:-2,id:"nuxt-ui-colors"}]};if(t.isHydrating&&!t.payload.serverRendered){const s=document.createElement("style");s.innerHTML=r.value,s.setAttribute("data-nuxt-ui-colors",""),document.head.appendChild(s),n.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"}]}gy(n)}),Eb="__NUXT_COLOR_MODE__",Tb="nuxt-color-mode",St=window[Eb],Ob=Tt(e=>{const t=ai("color-mode",()=>xt({preference:St.preference,value:St.value,unknown:!1,forced:!1})).value;Ot().afterEach(s=>{const i=s.meta.colorMode;i&&i!=="system"?(t.value=i,t.forced=!0):(i==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?St.getColorScheme():t.preference)});let r;function n(){r||!window.matchMedia||(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=St.getColorScheme())}))}Rt(()=>t.preference,s=>{var i;t.forced||(s==="system"?(t.value=St.getColorScheme(),n()):t.value=s,(i=window.localStorage)==null||i.setItem(Tb,s))},{immediate:!0}),Rt(()=>t.value,(s,i)=>{St.removeColorScheme(i),St.addColorScheme(s)}),t.preference==="system"&&n(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=St.preference,t.value=St.value,t.unknown=!1)}),e.provide("colorMode",t)});var Cb=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const Sb=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>Cb(void 0,void 0,void 0,function*(){return yield(yield rt(()=>Promise.resolve().then(()=>di),void 0,import.meta.url)).fetch(...r)}):t=fetch,(...r)=>t(...r)};class da extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class Ab extends da{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class $b extends da{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Pb extends da{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Rb=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};class Ib{constructor(t,{headers:r={},customFetch:n}={}){this.url=t,this.headers=r,this.fetch=Sb(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,r={}){var n;return Rb(this,void 0,void 0,function*(){try{const{headers:s,method:i,body:o}=r;let a={},l;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",l=o):typeof o=="string"?(a["Content-Type"]="text/plain",l=o):typeof FormData<"u"&&o instanceof FormData?l=o:(a["Content-Type"]="application/json",l=JSON.stringify(o)));const c=yield this.fetch(`${this.url}/${t}`,{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:l}).catch(h=>{throw new Ab(h)}),u=c.headers.get("x-relay-error");if(u&&u==="true")throw new $b(c);if(!c.ok)throw new Pb(c);let f=((n=c.headers.get("Content-Type"))!==null&&n!==void 0?n:"text/plain").split(";")[0].trim(),d;return f==="application/json"?d=yield c.json():f==="application/octet-stream"?d=yield c.blob():f==="multipart/form-data"?d=yield c.formData():d=yield c.text(),{data:d,error:null}}catch(s){return{data:null,error:s}}})}}var jb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ko={exports:{}};(function(e,t){var r=typeof self<"u"?self:jb,n=function(){function i(){this.fetch=!1,this.DOMException=r.DOMException}return i.prototype=r,new i}();(function(i){(function(o){var a={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function l(w){return w&&DataView.prototype.isPrototypeOf(w)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(w){return w&&c.indexOf(Object.prototype.toString.call(w))>-1};function f(w){if(typeof w!="string"&&(w=String(w)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(w))throw new TypeError("Invalid character in header field name");return w.toLowerCase()}function d(w){return typeof w!="string"&&(w=String(w)),w}function h(w){var $={next:function(){var L=w.shift();return{done:L===void 0,value:L}}};return a.iterable&&($[Symbol.iterator]=function(){return $}),$}function p(w){this.map={},w instanceof p?w.forEach(function($,L){this.append(L,$)},this):Array.isArray(w)?w.forEach(function($){this.append($[0],$[1])},this):w&&Object.getOwnPropertyNames(w).forEach(function($){this.append($,w[$])},this)}p.prototype.append=function(w,$){w=f(w),$=d($);var L=this.map[w];this.map[w]=L?L+", "+$:$},p.prototype.delete=function(w){delete this.map[f(w)]},p.prototype.get=function(w){return w=f(w),this.has(w)?this.map[w]:null},p.prototype.has=function(w){return this.map.hasOwnProperty(f(w))},p.prototype.set=function(w,$){this.map[f(w)]=d($)},p.prototype.forEach=function(w,$){for(var L in this.map)this.map.hasOwnProperty(L)&&w.call($,this.map[L],L,this)},p.prototype.keys=function(){var w=[];return this.forEach(function($,L){w.push(L)}),h(w)},p.prototype.values=function(){var w=[];return this.forEach(function($){w.push($)}),h(w)},p.prototype.entries=function(){var w=[];return this.forEach(function($,L){w.push([L,$])}),h(w)},a.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function v(w){if(w.bodyUsed)return Promise.reject(new TypeError("Already read"));w.bodyUsed=!0}function x(w){return new Promise(function($,L){w.onload=function(){$(w.result)},w.onerror=function(){L(w.error)}})}function m(w){var $=new FileReader,L=x($);return $.readAsArrayBuffer(w),L}function g(w){var $=new FileReader,L=x($);return $.readAsText(w),L}function E(w){for(var $=new Uint8Array(w),L=new Array($.length),J=0;J<$.length;J++)L[J]=String.fromCharCode($[J]);return L.join("")}function _(w){if(w.slice)return w.slice(0);var $=new Uint8Array(w.byteLength);return $.set(new Uint8Array(w)),$.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(w){this._bodyInit=w,w?typeof w=="string"?this._bodyText=w:a.blob&&Blob.prototype.isPrototypeOf(w)?this._bodyBlob=w:a.formData&&FormData.prototype.isPrototypeOf(w)?this._bodyFormData=w:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(w)?this._bodyText=w.toString():a.arrayBuffer&&a.blob&&l(w)?(this._bodyArrayBuffer=_(w.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(w)||u(w))?this._bodyArrayBuffer=_(w):this._bodyText=w=Object.prototype.toString.call(w):this._bodyText="",this.headers.get("content-type")||(typeof w=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(w)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var w=v(this);if(w)return w;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?v(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var w=v(this);if(w)return w;if(this._bodyBlob)return g(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(E(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(M)}),this.json=function(){return this.text().then(JSON.parse)},this}var P=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function j(w){var $=w.toUpperCase();return P.indexOf($)>-1?$:w}function O(w,$){$=$||{};var L=$.body;if(w instanceof O){if(w.bodyUsed)throw new TypeError("Already read");this.url=w.url,this.credentials=w.credentials,$.headers||(this.headers=new p(w.headers)),this.method=w.method,this.mode=w.mode,this.signal=w.signal,!L&&w._bodyInit!=null&&(L=w._bodyInit,w.bodyUsed=!0)}else this.url=String(w);if(this.credentials=$.credentials||this.credentials||"same-origin",($.headers||!this.headers)&&(this.headers=new p($.headers)),this.method=j($.method||this.method||"GET"),this.mode=$.mode||this.mode||null,this.signal=$.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(L)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})};function M(w){var $=new FormData;return w.trim().split("&").forEach(function(L){if(L){var J=L.split("="),Y=J.shift().replace(/\+/g," "),ee=J.join("=").replace(/\+/g," ");$.append(decodeURIComponent(Y),decodeURIComponent(ee))}}),$}function B(w){var $=new p,L=w.replace(/\r?\n[\t ]+/g," ");return L.split(/\r?\n/).forEach(function(J){var Y=J.split(":"),ee=Y.shift().trim();if(ee){var Ae=Y.join(":").trim();$.append(ee,Ae)}}),$}T.call(O.prototype);function H(w,$){$||($={}),this.type="default",this.status=$.status===void 0?200:$.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in $?$.statusText:"OK",this.headers=new p($.headers),this.url=$.url||"",this._initBody(w)}T.call(H.prototype),H.prototype.clone=function(){return new H(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},H.error=function(){var w=new H(null,{status:0,statusText:""});return w.type="error",w};var F=[301,302,303,307,308];H.redirect=function(w,$){if(F.indexOf($)===-1)throw new RangeError("Invalid status code");return new H(null,{status:$,headers:{location:w}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function($,L){this.message=$,this.name=L;var J=Error($);this.stack=J.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function K(w,$){return new Promise(function(L,J){var Y=new O(w,$);if(Y.signal&&Y.signal.aborted)return J(new o.DOMException("Aborted","AbortError"));var ee=new XMLHttpRequest;function Ae(){ee.abort()}ee.onload=function(){var ke={status:ee.status,statusText:ee.statusText,headers:B(ee.getAllResponseHeaders()||"")};ke.url="responseURL"in ee?ee.responseURL:ke.headers.get("X-Request-URL");var _e="response"in ee?ee.response:ee.responseText;L(new H(_e,ke))},ee.onerror=function(){J(new TypeError("Network request failed"))},ee.ontimeout=function(){J(new TypeError("Network request failed"))},ee.onabort=function(){J(new o.DOMException("Aborted","AbortError"))},ee.open(Y.method,Y.url,!0),Y.credentials==="include"?ee.withCredentials=!0:Y.credentials==="omit"&&(ee.withCredentials=!1),"responseType"in ee&&a.blob&&(ee.responseType="blob"),Y.headers.forEach(function(ke,_e){ee.setRequestHeader(_e,ke)}),Y.signal&&(Y.signal.addEventListener("abort",Ae),ee.onreadystatechange=function(){ee.readyState===4&&Y.signal.removeEventListener("abort",Ae)}),ee.send(typeof Y._bodyInit>"u"?null:Y._bodyInit)})}return K.polyfill=!0,i.fetch||(i.fetch=K,i.Headers=p,i.Request=O,i.Response=H),o.Headers=p,o.Request=O,o.Response=H,o.fetch=K,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var s=n;t=s.fetch,t.default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t})(ko,ko.exports);var ha=ko.exports;const pa=Lb(ha),di=Bd({__proto__:null,default:pa},[ha]);class Nb{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=pa:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}then(t,r){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 n=this.fetch;let s=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var o,a,l;let c=null,u=null,f=null,d=i.status,h=i.statusText;if(i.ok){if(this.method!=="HEAD"){const m=await i.text();m===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?u=m:u=JSON.parse(m))}const v=(o=this.headers.Prefer)===null||o===void 0?void 0:o.match(/count=(exact|planned|estimated)/),x=(a=i.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");v&&x&&x.length>1&&(f=parseInt(x[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(u)&&(u.length>1?(c={code:"PGRST116",details:`Results contain ${u.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},u=null,f=null,d=406,h="Not Acceptable"):u.length===1?u=u[0]:u=null)}else{const v=await i.text();try{c=JSON.parse(v),Array.isArray(c)&&i.status===404&&(u=[],c=null,d=200,h="OK")}catch{i.status===404&&v===""?(d=204,h="No Content"):c={message:v}}if(c&&this.isMaybeSingle&&(!((l=c==null?void 0:c.details)===null||l===void 0)&&l.includes("Results contain 0 rows"))&&(c=null,d=200,h="OK"),c&&this.shouldThrowOnError)throw c}return{error:c,data:u,count:f,status:d,statusText:h}});return this.shouldThrowOnError||(s=s.catch(i=>{var o,a,l;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(a=i==null?void 0:i.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=i==null?void 0:i.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(t,r)}}class Mb extends Nb{select(t){let r=!1;const n=(t??"*").split("").map(s=>/\s/.test(s)&&!r?"":(s==='"'&&(r=!r),s)).join("");return this.url.searchParams.set("select",n),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:r=!0,nullsFirst:n,foreignTable:s}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${t}.${r?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:r}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${t}`),this}range(t,r,{foreignTable:n}={}){const s=typeof n>"u"?"offset":`${n}.offset`,i=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${t}`),this.url.searchParams.set(i,`${r-t+1}`),this}abortSignal(t){return this.signal=t,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}explain({analyze:t=!1,verbose:r=!1,settings:n=!1,buffers:s=!1,wal:i=!1,format:o="text"}={}){const a=[t?"analyze":null,r?"verbose":null,n?"settings":null,s?"buffers":null,i?"wal":null].filter(Boolean).join("|"),l=this.headers.Accept;return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${l}"; options=${a};`,o==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}}class Lr extends Mb{eq(t,r){return this.url.searchParams.append(t,`eq.${r}`),this}neq(t,r){return this.url.searchParams.append(t,`neq.${r}`),this}gt(t,r){return this.url.searchParams.append(t,`gt.${r}`),this}gte(t,r){return this.url.searchParams.append(t,`gte.${r}`),this}lt(t,r){return this.url.searchParams.append(t,`lt.${r}`),this}lte(t,r){return this.url.searchParams.append(t,`lte.${r}`),this}like(t,r){return this.url.searchParams.append(t,`like.${r}`),this}likeAllOf(t,r){return this.url.searchParams.append(t,`like(all).{${r.join(",")}}`),this}likeAnyOf(t,r){return this.url.searchParams.append(t,`like(any).{${r.join(",")}}`),this}ilike(t,r){return this.url.searchParams.append(t,`ilike.${r}`),this}ilikeAllOf(t,r){return this.url.searchParams.append(t,`ilike(all).{${r.join(",")}}`),this}ilikeAnyOf(t,r){return this.url.searchParams.append(t,`ilike(any).{${r.join(",")}}`),this}is(t,r){return this.url.searchParams.append(t,`is.${r}`),this}in(t,r){const n=r.map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}contains(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cs.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cs.{${r.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(r)}`),this}containedBy(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cd.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cd.{${r.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(r)}`),this}rangeGt(t,r){return this.url.searchParams.append(t,`sr.${r}`),this}rangeGte(t,r){return this.url.searchParams.append(t,`nxl.${r}`),this}rangeLt(t,r){return this.url.searchParams.append(t,`sl.${r}`),this}rangeLte(t,r){return this.url.searchParams.append(t,`nxr.${r}`),this}rangeAdjacent(t,r){return this.url.searchParams.append(t,`adj.${r}`),this}overlaps(t,r){return typeof r=="string"?this.url.searchParams.append(t,`ov.${r}`):this.url.searchParams.append(t,`ov.{${r.join(",")}}`),this}textSearch(t,r,{config:n,type:s}={}){let i="";s==="plain"?i="pl":s==="phrase"?i="ph":s==="websearch"&&(i="w");const o=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${i}fts${o}.${r}`),this}match(t){return Object.entries(t).forEach(([r,n])=>{this.url.searchParams.append(r,`eq.${n}`)}),this}not(t,r,n){return this.url.searchParams.append(t,`not.${r}.${n}`),this}or(t,{foreignTable:r}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${t})`),this}filter(t,r,n){return this.url.searchParams.append(t,`${r}.${n}`),this}}class Db{constructor(t,{headers:r={},schema:n,fetch:s}){this.url=t,this.headers=r,this.schema=n,this.fetch=s}select(t,{head:r=!1,count:n}={}){const s=r?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),n&&(this.headers.Prefer=`count=${n}`),new Lr({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:r,defaultToNull:n=!0}={}){const s="POST",i=[];if(this.headers.Prefer&&i.push(this.headers.Prefer),r&&i.push(`count=${r}`),n||i.push("missing=default"),this.headers.Prefer=i.join(","),Array.isArray(t)){const o=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>0){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Lr({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:r,ignoreDuplicates:n=!1,count:s,defaultToNull:i=!0}={}){const o="POST",a=[`resolution=${n?"ignore":"merge"}-duplicates`];if(r!==void 0&&this.url.searchParams.set("on_conflict",r),this.headers.Prefer&&a.push(this.headers.Prefer),s&&a.push(`count=${s}`),i||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const l=t.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);this.url.searchParams.set("columns",c.join(","))}}return new Lr({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:r}={}){const n="PATCH",s=[];return this.headers.Prefer&&s.push(this.headers.Prefer),r&&s.push(`count=${r}`),this.headers.Prefer=s.join(","),new Lr({method:n,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const r="DELETE",n=[];return t&&n.push(`count=${t}`),this.headers.Prefer&&n.unshift(this.headers.Prefer),this.headers.Prefer=n.join(","),new Lr({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}}const Fb="1.7.2",Bb={"X-Client-Info":`postgrest-js/${Fb}`};class Ub{constructor(t,{headers:r={},schema:n,fetch:s}={}){this.url=t,this.headers=Object.assign(Object.assign({},Bb),r),this.schema=n,this.fetch=s}from(t){const r=new URL(`${this.url}/${t}`);return new Db(r,{headers:Object.assign({},this.headers),schema:this.schema,fetch:this.fetch})}rpc(t,r={},{head:n=!1,count:s}={}){let i;const o=new URL(`${this.url}/rpc/${t}`);let a;n?(i="HEAD",Object.entries(r).forEach(([c,u])=>{o.searchParams.append(c,`${u}`)})):(i="POST",a=r);const l=Object.assign({},this.headers);return s&&(l.Prefer=`count=${s}`),new Lr({method:i,url:o,headers:l,schema:this.schema,body:a,fetch:this.fetch,allowEmpty:!1})}}var Fi,ec;function Hb(){if(ec)return Fi;ec=1;var e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};return Fi=function(){if(this)return this;if(typeof globalThis=="object"&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}(),Fi}const zb="websocket",qb="Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.",Kb=["websocket","websockets","socket","networking","comet","push","RFC-6455","realtime","server","client"],Wb="Brian McKelvey (https://github.com/theturtle32)",Jb=["Iñaki Baz Castillo (http://dev.sipdoc.net)"],Vb="1.0.34",Gb={type:"git",url:"https://github.com/theturtle32/WebSocket-Node.git"},Xb="https://github.com/theturtle32/WebSocket-Node",Yb={node:">=4.0.0"},Qb={bufferutil:"^4.0.1",debug:"^2.2.0","es5-ext":"^0.10.50","typedarray-to-buffer":"^3.1.5","utf-8-validate":"^5.0.2",yaeti:"^0.0.6"},Zb={"buffer-equal":"^1.0.0",gulp:"^4.0.2","gulp-jshint":"^2.0.4","jshint-stylish":"^2.2.1",jshint:"^2.0.0",tape:"^4.9.1"},e_={verbose:!1},t_={test:"tape test/unit/*.js",gulp:"gulp"},r_="index",n_={lib:"./lib"},s_="lib/browser.js",i_="Apache-2.0",o_={name:zb,description:qb,keywords:Kb,author:Wb,contributors:Jb,version:Vb,repository:Gb,homepage:Xb,engines:Yb,dependencies:Qb,devDependencies:Zb,config:e_,scripts:t_,main:r_,directories:n_,browser:s_,license:i_};var a_=o_.version,gr;if(typeof globalThis=="object")gr=globalThis;else try{gr=Hb()}catch{}finally{if(!gr&&typeof window<"u"&&(gr=window),!gr)throw new Error("Could not determine global this")}var Gn=gr.WebSocket||gr.MozWebSocket,l_=a_;function Vf(e,t){var r;return t?r=new Gn(e,t):r=new Gn(e),r}Gn&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach(function(e){Object.defineProperty(Vf,e,{get:function(){return Gn[e]}})});var c_={w3cwebsocket:Gn?Vf:null,version:l_};const u_="2.7.3",f_={"X-Client-Info":`realtime-js/${u_}`},d_="1.0.0",Gf=1e4,h_=1e3;var Nn;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Nn||(Nn={}));var We;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(We||(We={}));var ut;(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"})(ut||(ut={}));var Eo;(function(e){e.websocket="websocket"})(Eo||(Eo={}));var yr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(yr||(yr={}));class Xf{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))}}class p_{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 l=n.decode(t.slice(o,o+i));o=o+i;const c=JSON.parse(n.decode(t.slice(o,t.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class Bi{constructor(t,r,n={},s=Gf){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,this.rateLimited=!1}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){if(this._hasReceived("timeout"))return;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()})==="rate limited"&&(this.rateLimited=!0)}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 tc;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(tc||(tc={}));class Mn{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=Mn.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=Mn.syncDiff(this.state,l,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=Mn.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={},l={};return this.map(i,(c,u)=>{o[c]||(l[c]=u)}),this.map(o,(c,u)=>{const f=i[c];if(f){const d=u.map(x=>x.presence_ref),h=f.map(x=>x.presence_ref),p=u.filter(x=>h.indexOf(x.presence_ref)<0),v=f.filter(x=>d.indexOf(x.presence_ref)<0);p.length>0&&(a[c]=p),v.length>0&&(l[c]=v)}else a[c]=u}),this.syncDiff(i,{joins:a,leaves:l},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,l)=>{var c;const u=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),u.length>0){const f=t[a].map(h=>h.presence_ref),d=u.filter(h=>f.indexOf(h.presence_ref)<0);t[a].unshift(...d)}n(a,u,l)}),this.map(o,(a,l)=>{let c=t[a];if(!c)return;const u=l.map(f=>f.presence_ref);c=c.filter(f=>u.indexOf(f.presence_ref)<0),t[a]=c,s(a,c,l),c.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 pe;(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"})(pe||(pe={}));const rc=(e,t,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return Object.keys(t).reduce((i,o)=>(i[o]=g_(o,e,t,s),i),{})},g_=(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)?Yf(i,o):To(o)},Yf=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return b_(t,r)}switch(e){case pe.bool:return y_(t);case pe.float4:case pe.float8:case pe.int2:case pe.int4:case pe.int8:case pe.numeric:case pe.oid:return m_(t);case pe.json:case pe.jsonb:return v_(t);case pe.timestamp:return __(t);case pe.abstime:case pe.date:case pe.daterange:case pe.int4range:case pe.int8range:case pe.money:case pe.reltime:case pe.text:case pe.time:case pe.timestamptz:case pe.timetz:case pe.tsrange:case pe.tstzrange:return To(t);default:return To(t)}},To=e=>e,y_=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},m_=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},v_=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},b_=(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=>Yf(t,a))}return e},__=e=>typeof e=="string"?e.replace(" ","T"):e;var nc=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})},sc;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(sc||(sc={}));var ic;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes"})(ic||(ic={}));var oc;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(oc||(oc={}));class ga{constructor(t,r={config:{}},n){this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=We.closed,this.joinedOnce=!1,this.pushBuffer=[],this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""}},r.config),this.timeout=this.socket.timeout,this.joinPush=new Bi(this,ut.join,this.params,this.timeout),this.rejoinTimer=new Xf(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=We.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=We.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=We.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=We.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ut.reply,{},(s,i)=>{this._trigger(this._replyEventName(i),s)}),this.presence=new Mn(this)}subscribe(t,r=this.timeout){var n,s;if(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}}=this.params;this._onError(c=>t&&t("CHANNEL_ERROR",c)),this._onClose(()=>t&&t("CLOSED"));const a={},l={broadcast:i,presence:o,postgres_changes:(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(c=>c.filter))!==null&&s!==void 0?s:[]};this.socket.accessToken&&(a.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:l},a)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",({postgres_changes:c})=>{var u;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),c===void 0){t&&t("SUBSCRIBED");return}else{const f=this.bindings.postgres_changes,d=(u=f==null?void 0:f.length)!==null&&u!==void 0?u:0,h=[];for(let p=0;p{t&&t("CHANNEL_ERROR",new Error(JSON.stringify(Object.values(c).join(", ")||"error")))}).receive("timeout",()=>{t&&t("TIMED_OUT")})}return this}presenceState(){return this.presence.state}track(t,r={}){return nc(this,void 0,void 0,function*(){return yield this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)})}untrack(t={}){return nc(this,void 0,void 0,function*(){return yield this.send({type:"presence",event:"untrack"},t)})}on(t,r,n){return this._on(t,r,n)}send(t,r={}){return new Promise(n=>{var s,i,o;const a=this._push(t.type,t,r.timeout||this.timeout);a.rateLimited&&n("rate limited"),t.type==="broadcast"&&!(!((o=(i=(s=this.params)===null||s===void 0?void 0:s.config)===null||i===void 0?void 0:i.broadcast)===null||o===void 0)&&o.ack)&&n("ok"),a.receive("ok",()=>n("ok")),a.receive("timeout",()=>n("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=We.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ut.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(n=>{const s=new Bi(this,ut.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",{})})}_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 Bi(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:l,leave:c,join:u}=ut;if(n&&[a,l,c,u].indexOf(o)>=0&&n!==this._joinRef())return;let d=this._onMessage(o,r,n);if(r&&!d)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(h=>{var p,v,x;return((p=h.filter)===null||p===void 0?void 0:p.event)==="*"||((x=(v=h.filter)===null||v===void 0?void 0:v.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===o}).map(h=>h.callback(d,n)):(i=this.bindings[o])===null||i===void 0||i.filter(h=>{var p,v,x,m,g,E;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in h){const _=h.id,T=(p=h.filter)===null||p===void 0?void 0:p.event;return _&&((v=r.ids)===null||v===void 0?void 0:v.includes(_))&&(T==="*"||(T==null?void 0:T.toLocaleLowerCase())===((x=r.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))}else{const _=(g=(m=h==null?void 0:h.filter)===null||m===void 0?void 0:m.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return _==="*"||_===((E=r==null?void 0:r.event)===null||E===void 0?void 0:E.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===o}).map(h=>{if(typeof d=="object"&&"ids"in d){const p=d.data,{schema:v,table:x,commit_timestamp:m,type:g,errors:E}=p;d=Object.assign(Object.assign({},{schema:v,table:x,commit_timestamp:m,eventType:g,new:{},old:{},errors:E}),this._getPayloadRecords(p))}h.callback(d,n)})}_isClosed(){return this.state===We.closed}_isJoined(){return this.state===We.joined}_isJoining(){return this.state===We.joining}_isLeaving(){return this.state===We.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&&ga.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(ut.close,{},t)}_onError(t){this._on(ut.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=We.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=rc(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=rc(t.columns,t.old_record)),r}}var Ui=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const w_=()=>{};class x_{constructor(t,r){var n;this.accessToken=null,this.channels=[],this.endPoint="",this.headers=f_,this.params={},this.timeout=Gf,this.transport=c_.w3cwebsocket,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=w_,this.conn=null,this.sendBuffer=[],this.serializer=new p_,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.eventsPerSecondLimitMs=100,this.inThrottle=!1,this.endPoint=`${t}/${Eo.websocket}`,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.transport&&(this.transport=r.transport),r!=null&&r.heartbeatIntervalMs&&(this.heartbeatIntervalMs=r.heartbeatIntervalMs);const s=(n=r==null?void 0:r.params)===null||n===void 0?void 0:n.eventsPerSecond;s&&(this.eventsPerSecondLimitMs=Math.floor(1e3/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 Xf(()=>Ui(this,void 0,void 0,function*(){this.disconnect(),this.connect()}),this.reconnectAfterMs)}connect(){this.conn||(this.conn=new this.transport(this._endPointURL(),[],null,this.headers),this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t)))}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}removeChannel(t){return Ui(this,void 0,void 0,function*(){const r=yield t.unsubscribe();return this.channels.length===0&&this.disconnect(),r})}removeAllChannels(){return Ui(this,void 0,void 0,function*(){const t=yield 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 Nn.connecting:return yr.Connecting;case Nn.open:return yr.Open;case Nn.closing:return yr.Closing;default:return yr.Closed}}isConnected(){return this.connectionState()===yr.Open}channel(t,r={config:{}}){this.isConnected()||this.connect();const n=new ga(`realtime:${t}`,r,this);return this.channels.push(n),n}push(t){const{topic:r,event:n,payload:s,ref:i}=t;let o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};if(this.log("push",`${r} ${n} (${i})`,s),this.isConnected())if(["broadcast","presence","postgres_changes"].includes(n)){if(this._throttle(o)())return"rate limited"}else o();else this.sendBuffer.push(o)}setAuth(t){this.accessToken=t,this.channels.forEach(r=>{t&&r.updateJoinPayload({access_token:t}),r.joinedOnce&&r._isJoined()&&r._push(ut.access_token,{access_token:t})})}_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())}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:d_}))}_onConnMessage(t){this.decode(t.data,r=>{let{topic:n,event:s,payload:i,ref:o}=r;(o&&o===this.pendingHeartbeatRef||s===(i==null?void 0:i.type))&&(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))})}_onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),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(ut.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${t}${n}${s}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_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(h_,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}_throttle(t,r=this.eventsPerSecondLimitMs){return()=>this.inThrottle?!0:(t(),r>0&&(this.inThrottle=!0,setTimeout(()=>{this.inThrottle=!1},r)),!1)}}class ya extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Re(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class k_ extends ya{constructor(t,r){super(t),this.name="StorageApiError",this.status=r}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class ac extends ya{constructor(t,r){super(t),this.name="StorageUnknownError",this.originalError=r}}var Qf=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const Zf=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>Qf(void 0,void 0,void 0,function*(){return yield(yield rt(()=>Promise.resolve().then(()=>di),void 0,import.meta.url)).fetch(...r)}):t=fetch,(...r)=>t(...r)},E_=()=>Qf(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield rt(()=>Promise.resolve().then(()=>di),void 0,import.meta.url)).Response:Response});var un=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const Hi=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),T_=(e,t)=>un(void 0,void 0,void 0,function*(){const r=yield E_();e instanceof r?e.json().then(n=>{t(new k_(Hi(n),e.status||500))}).catch(n=>{t(new ac(Hi(n),n))}):t(new ac(Hi(e),e))}),O_=(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),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};function hi(e,t,r,n,s,i){return un(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(r,O_(t,n,s,i)).then(l=>{if(!l.ok)throw l;return n!=null&&n.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>T_(l,a))})})}function Oo(e,t,r,n){return un(this,void 0,void 0,function*(){return hi(e,"GET",t,r,n)})}function Qt(e,t,r,n,s){return un(this,void 0,void 0,function*(){return hi(e,"POST",t,n,s,r)})}function C_(e,t,r,n,s){return un(this,void 0,void 0,function*(){return hi(e,"PUT",t,n,s,r)})}function ed(e,t,r,n,s){return un(this,void 0,void 0,function*(){return hi(e,"DELETE",t,n,s,r)})}var Ze=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const S_={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},lc={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class A_{constructor(t,r={},n,s){this.url=t,this.headers=r,this.bucketId=n,this.fetch=Zf(s)}uploadOrUpdate(t,r,n,s){return Ze(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},lc),s),a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.append("cacheControl",o.cacheControl)):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType);const l=this._removeEmptyFolders(r),c=this._getFinalPath(l),u=yield this.fetch(`${this.url}/object/${c}`,Object.assign({method:t,body:i,headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return u.ok?{data:{path:l},error:null}:{data:null,error:yield u.json()}}catch(i){if(Re(i))return{data:null,error:i};throw i}})}upload(t,r,n){return Ze(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,r,n)})}uploadToSignedUrl(t,r,n,s){return Ze(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 l;const c=Object.assign({upsert:lc.upsert},s),u=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",c.cacheControl)):(l=n,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType);const f=yield this.fetch(a.toString(),{method:"PUT",body:l,headers:u});return f.ok?{data:{path:i},error:null}:{data:null,error:yield f.json()}}catch(l){if(Re(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t){return Ze(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const n=yield Qt(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:this.headers}),s=new URL(this.url+n.url),i=s.searchParams.get("token");if(!i)throw new ya("No token returned by API");return{data:{signedUrl:s.toString(),path:t,token:i},error:null}}catch(r){if(Re(r))return{data:null,error:r};throw r}})}update(t,r,n){return Ze(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,r,n)})}move(t,r){return Ze(this,void 0,void 0,function*(){try{return{data:yield Qt(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r},{headers:this.headers}),error:null}}catch(n){if(Re(n))return{data:null,error:n};throw n}})}copy(t,r){return Ze(this,void 0,void 0,function*(){try{return{data:{path:(yield Qt(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r},{headers:this.headers})).Key},error:null}}catch(n){if(Re(n))return{data:null,error:n};throw n}})}createSignedUrl(t,r,n){return Ze(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),i=yield Qt(this.fetch,`${this.url}/object/sign/${s}`,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(Re(s))return{data:null,error:s};throw s}})}createSignedUrls(t,r,n){return Ze(this,void 0,void 0,function*(){try{const s=yield Qt(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(Re(s))return{data:null,error:s};throw s}})}download(t,r){return Ze(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 Oo(this.fetch,`${this.url}/${s}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(Re(a))return{data:null,error:a};throw a}})}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",l=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});l!==""&&s.push(l);let c=s.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}${c}`)}}}remove(t){return Ze(this,void 0,void 0,function*(){try{return{data:yield ed(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(r){if(Re(r))return{data:null,error:r};throw r}})}list(t,r,n){return Ze(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},S_),r),{prefix:t||""});return{data:yield Qt(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},n),error:null}}catch(s){if(Re(s))return{data:null,error:s};throw s}})}_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 $_="2.5.1",P_={"X-Client-Info":`storage-js/${$_}`};var Rr=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};class R_{constructor(t,r={},n){this.url=t,this.headers=Object.assign(Object.assign({},P_),r),this.fetch=Zf(n)}listBuckets(){return Rr(this,void 0,void 0,function*(){try{return{data:yield Oo(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(Re(t))return{data:null,error:t};throw t}})}getBucket(t){return Rr(this,void 0,void 0,function*(){try{return{data:yield Oo(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(r){if(Re(r))return{data:null,error:r};throw r}})}createBucket(t,r={public:!1}){return Rr(this,void 0,void 0,function*(){try{return{data:yield Qt(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(Re(n))return{data:null,error:n};throw n}})}updateBucket(t,r){return Rr(this,void 0,void 0,function*(){try{return{data:yield C_(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(Re(n))return{data:null,error:n};throw n}})}emptyBucket(t){return Rr(this,void 0,void 0,function*(){try{return{data:yield Qt(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(Re(r))return{data:null,error:r};throw r}})}deleteBucket(t){return Rr(this,void 0,void 0,function*(){try{return{data:yield ed(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(r){if(Re(r))return{data:null,error:r};throw r}})}}class I_ extends R_{constructor(t,r={},n){super(t,r,n)}from(t){return new A_(this.url,this.headers,t,this.fetch)}}const j_="2.26.0",L_={"X-Client-Info":`supabase-js/${j_}`};var N_=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const M_=e=>{let t;return e?t=e:typeof fetch>"u"?t=pa:t=fetch,(...r)=>t(...r)},D_=()=>typeof Headers>"u"?ha.Headers:Headers,F_=(e,t,r)=>{const n=M_(r),s=D_();return(i,o)=>N_(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let c=new s(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),n(i,Object.assign(Object.assign({},o),{headers:c}))})};function B_(e){return e.replace(/\/$/,"")}function U_(e,t){const{db:r,auth:n,realtime:s,global:i}=e,{db:o,auth:a,realtime:l,global:c}=t;return{db:Object.assign(Object.assign({},o),r),auth:Object.assign(Object.assign({},a),n),realtime:Object.assign(Object.assign({},l),s),global:Object.assign(Object.assign({},c),i)}}function H_(e){return Math.round(Date.now()/1e3)+e}function z_(){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 $t=()=>typeof document<"u",fr={tested:!1,writable:!1},Ps=()=>{if(!$t())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(fr.tested)return fr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),fr.tested=!0,fr.writable=!0}catch{fr.tested=!0,fr.writable=!1}return fr.writable};function Fe(e,t){var r;t||(t=((r=window==null?void 0:window.location)===null||r===void 0?void 0:r.href)||""),e=e.replace(/[\[\]]/g,"\\$&");const n=new RegExp("[?&#]"+e+"(=([^&#]*)|&|#|$)"),s=n.exec(t);return s?s[2]?decodeURIComponent(s[2].replace(/\+/g," ")):"":null}const td=e=>{let t;return e?t=e:typeof fetch>"u"?t=async(...r)=>await(await rt(()=>Promise.resolve().then(()=>di),void 0,import.meta.url)).fetch(...r):t=fetch,(...r)=>t(...r)},q_=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",bn=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},xs=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},zi=async(e,t)=>{await e.removeItem(t)};function K_(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let r="",n,s,i,o,a,l,c,u=0;for(e=e.replace("-","+").replace("_","/");u>4,s=(a&15)<<4|l>>2,i=(l&3)<<6|c,r=r+String.fromCharCode(n),l!=64&&s!=0&&(r=r+String.fromCharCode(s)),c!=64&&i!=0&&(r=r+String.fromCharCode(i));return r}class pi{constructor(){this.promise=new pi.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}pi.promiseConstructor=Promise;function cc(e){const t=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i,r=e.split(".");if(r.length!==3)throw new Error("JWT is not valid: not a JWT structure");if(!t.test(r[1]))throw new Error("JWT is not valid: payload is not in base64url format");const n=r[1];return JSON.parse(K_(n))}function W_(e){return new Promise(t=>{setTimeout(()=>t(null),e)})}function J_(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 V_(e){return("0"+e.toString(16)).substr(-2)}function ks(){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,V_).join("")}async function G_(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("")}function X_(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Es(e){if(typeof crypto>"u")return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const t=await G_(e);return X_(t)}class ma extends Error{constructor(t,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r}}function oe(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class Y_ extends ma{constructor(t,r){super(t,r),this.name="AuthApiError",this.status=r}toJSON(){return{name:this.name,message:this.message,status:this.status}}}function Q_(e){return oe(e)&&e.name==="AuthApiError"}class rd extends ma{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class fn extends ma{constructor(t,r,n){super(t),this.name=r,this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class Ir extends fn{constructor(){super("Auth session missing!","AuthSessionMissingError",400)}}class qi extends fn{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500)}}class Ts extends fn{constructor(t){super(t,"AuthInvalidCredentialsError",400)}}class At extends fn{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Ki extends fn{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Co extends fn{constructor(t,r){super(t,"AuthRetryableFetchError",r)}}function uc(e){return oe(e)&&e.name==="AuthRetryableFetchError"}var Z_=globalThis&&globalThis.__rest||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);se.msg||e.message||e.error_description||e.error||JSON.stringify(e),ew=[502,503,504];async function fc(e){if(!q_(e))throw new Co(Tn(e),0);if(ew.includes(e.status))throw new Co(Tn(e),e.status);let t;try{t=await e.json()}catch(r){throw new rd(Tn(r),r)}throw new Y_(Tn(t),e.status||500)}const tw=(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 ce(e,t,r,n){var s;const i=Object.assign({},n==null?void 0:n.headers);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():"",l=await rw(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(l):{data:Object.assign({},l),error:null}}async function rw(e,t,r,n,s,i){const o=tw(t,n,s,i);let a;try{a=await e(r,o)}catch(l){throw console.error(l),new Co(Tn(l),0)}if(a.ok||await fc(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(l){await fc(l)}}function Gt(e){var t;let r=null;ow(e)&&(r=Object.assign({},e),r.expires_at=H_(e.expires_in));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function mr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function nw(e){return{data:e,error:null}}function sw(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i}=e,o=Z_(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},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function iw(e){return e}function ow(e){return e.access_token&&e.refresh_token&&e.expires_in}var aw=globalThis&&globalThis.__rest||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);s0&&(h.forEach(p=>{const v=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(p.split(";")[1].split("=")[1]);c[`${x}Page`]=v}),c.total=parseInt(d)),{data:Object.assign(Object.assign({},f),c),error:null}}catch(c){if(oe(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){try{return await ce(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:mr})}catch(r){if(oe(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){try{return await ce(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:mr})}catch(n){if(oe(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){try{return await ce(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:mr})}catch(n){if(oe(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){try{const{data:r,error:n}=await ce(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(oe(r))return{data:null,error:r};throw r}}async _deleteFactor(t){try{return{data:await ce(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(oe(r))return{data:null,error:r};throw r}}}const cw="2.42.0",uw="http://localhost:9999",fw="supabase.auth.token",dw={"X-Client-Info":`gotrue-js/${cw}`},dc=10,hc={getItem:e=>Ps()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{Ps()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{Ps()&&globalThis.localStorage.removeItem(e)}};function hw(){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)}}hw();const pw={url:uw,storageKey:fw,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:dw,flowType:"implicit",debug:!1},Os=30*1e3,pc=3;class Xn{constructor(t){var r;this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.broadcastChannel=null,this.instanceID=Xn.nextInstanceID,Xn.nextInstanceID+=1,this.instanceID>0&&$t()&&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 n=Object.assign(Object.assign({},pw),t);if(this.logDebugMessages=n.debug,this.inMemorySession=null,this.storageKey=n.storageKey,this.autoRefreshToken=n.autoRefreshToken,this.persistSession=n.persistSession,this.storage=n.storage||hc,this.admin=new lw({url:n.url,headers:n.headers,fetch:n.fetch}),this.url=n.url,this.headers=n.headers,this.fetch=td(n.fetch),this.detectSessionInUrl=n.detectSessionInUrl,this.flowType=n.flowType,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&&this.storage===hc&&!Ps()&&console.warn(`No storage option exists to persist the session, which may result in unexpected behavior when using auth. + If you want to set persistSession to true, please provide a storage option or you may set persistSession to false to disable this warning.`),$t()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s),await this._notifyAllSubscribers(s.data.event,s.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&console.log(`GoTrueClient@${this.instanceID} ${new Date().toISOString()}`,...t),this}initialize(){return this.initializePromise||(this.initializePromise=this._initialize()),this.initializePromise}async _initialize(){if(this.initializePromise)return this.initializePromise;try{const t=$t()?await this._isPKCEFlow():!1;if(this._debug("#_initialize()","begin","is PKCE flow",t),t||this.detectSessionInUrl&&this._isImplicitGrantFlow()){const{data:r,error:n}=await this._getSessionFromUrl(t);if(n)return this._debug("#_initialize()","error detecting session from URL",n),await this._removeSession(),{error:n};const{session:s,redirectType:i}=r;return this._debug("#_initialize()","detected session in URL",s,"redirect type",i),await this._saveSession(s),setTimeout(async()=>{i==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",s):await this._notifyAllSubscribers("SIGNED_IN",s)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(t){return oe(t)?{error:t}:{error:new rd("Unexpected error during initialization",t)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signUp(t){var r,n,s;try{await this._removeSession();let i;if("email"in t){const{email:u,password:f,options:d}=t;let h=null,p=null;if(this.flowType==="pkce"){const v=ks();await bn(this.storage,`${this.storageKey}-code-verifier`,v),h=await Es(v),p=v===h?"plain":"s256"}i=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:d==null?void 0:d.emailRedirectTo,body:{email:u,password:f,data:(r=d==null?void 0:d.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken},code_challenge:h,code_challenge_method:p},xform:Gt})}else if("phone"in t){const{phone:u,password:f,options:d}=t;i=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:f,data:(n=d==null?void 0:d.data)!==null&&n!==void 0?n:{},channel:(s=d==null?void 0:d.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken}},xform:Gt})}else throw new Ts("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 l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(i){if(oe(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(t){try{await this._removeSession();let r;if("email"in t){const{email:i,password:o,options:a}=t;r=await ce(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:Gt})}else if("phone"in t){const{phone:i,password:o,options:a}=t;r=await ce(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:Gt})}else throw new Ts("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 qi}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:{user:n.user,session:n.session},error:s})}catch(r){if(oe(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOAuth(t){var r,n,s,i;return await this._removeSession(),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){const r=await xs(this.storage,`${this.storageKey}-code-verifier`),{data:n,error:s}=await ce(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Gt});return await zi(this.storage,`${this.storageKey}-code-verifier`),s?{data:{user:null,session:null},error:s}:!n||!n.session||!n.user?{data:{user:null,session:null},error:new qi}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:n,error:s})}async signInWithIdToken(t){await this._removeSession();try{const{options:r,provider:n,token:s,access_token:i,nonce:o}=t,a=await ce(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:Gt}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new qi}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(r){if(oe(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOtp(t){var r,n,s,i,o;try{if(await this._removeSession(),"email"in t){const{email:a,options:l}=t;let c=null,u=null;if(this.flowType==="pkce"){const d=ks();await bn(this.storage,`${this.storageKey}-code-verifier`,d),c=await Es(d),u=d===c?"plain":"s256"}const{error:f}=await ce(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:u}=await ce(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u}}throw new Ts("You must provide either an email or phone number.")}catch(a){if(oe(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var r,n;try{t.type!=="email_change"&&t.type!=="phone_change"&&await this._removeSession();const{data:s,error:i}=await ce(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:(r=t.options)===null||r===void 0?void 0:r.captchaToken}}),redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,xform:Gt});if(i)throw i;if(!s)throw new Error("An error occurred on token verification.");const o=s.session,a=s.user;return o!=null&&o.access_token&&(await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)),{data:{user:a,session:o},error:null}}catch(s){if(oe(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var r,n,s;try{return await this._removeSession(),await ce(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}),headers:this.headers,xform:nw})}catch(i){if(oe(i))return{data:null,error:i};throw i}}async reauthenticate(){try{const{data:{session:t},error:r}=await this.getSession();if(r)throw r;if(!t)throw new Ir;const{error:n}=await ce(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:t.access_token});return{data:{user:null,session:null},error:n}}catch(t){if(oe(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{t.type!="email_change"&&t.type!="phone_change"&&await this._removeSession();const r=`${this.url}/resend`;if("email"in t){const{email:n,type:s,options:i}=t,{error:o}=await ce(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 ce(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 Ts("You must provide either an email or phone number and a type")}catch(r){if(oe(r))return{data:{user:null,session:null},error:r};throw r}}async getSession(){await this.initializePromise,this._debug("#getSession()","begin");try{let t=null;if(this.persistSession){const i=await xs(this.storage,this.storageKey);this._debug("#getSession()","session from storage",i),i!==null&&(this._isValidSession(i)?t=i:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession()))}else t=this.inMemorySession,this._debug("#getSession()","session from memory",t);if(!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at<=Date.now()/1e3:!1;if(this._debug("#getSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r)return{data:{session:t},error:null};const{session:n,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{session:null},error:s}:{data:{session:n},error:null}}finally{this._debug("#getSession()","end")}}async getUser(t){var r,n;try{if(!t){const{data:s,error:i}=await this.getSession();if(i)throw i;t=(n=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&n!==void 0?n:void 0}return await ce(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:mr})}catch(s){if(oe(s))return{data:{user:null},error:s};throw s}}async updateUser(t,r={}){try{const{data:n,error:s}=await this.getSession();if(s)throw s;if(!n.session)throw new Ir;const i=n.session,{data:o,error:a}=await ce(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:t,jwt:i.access_token,xform:mr});if(a)throw a;return i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),{data:{user:i.user},error:null}}catch(n){if(oe(n))return{data:{user:null},error:n};throw n}}_decodeJWT(t){return cc(t)}async setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Ir;const r=Date.now()/1e3;let n=r,s=!0,i=null;const o=cc(t.access_token);if(o.exp&&(n=o.exp,s=n<=r),s){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this.getUser(t.access_token);if(l)throw l;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(oe(r))return{data:{session:null,user:null},error:r};throw r}}async refreshSession(t){var r;try{if(!t){const{data:i,error:o}=await this.getSession();if(o)throw o;t=(r=i.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Ir;const{session:n,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{user:null,session:null},error:s}:n?{data:{user:n.user,session:n},error:null}:{data:{user:null,session:null},error:null}}catch(n){if(oe(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromUrl(t){try{if(!$t())throw new At("No browser detected.");if(this.flowType==="implicit"&&!this._isImplicitGrantFlow())throw new At("Not a valid implicit grant flow url.");if(this.flowType=="pkce"&&!t)throw new Ki("Not a valid PKCE flow url.");if(t){const x=Fe("code");if(!x)throw new Ki("No code detected.");const{data:m,error:g}=await this.exchangeCodeForSession(x);if(g)throw g;if(!m.session)throw new Ki("No session detected.");let E=new URL(window.location.href);return E.searchParams.delete("code"),window.history.replaceState(window.history.state,"",E.toString()),{data:{session:m.session,redirectType:null},error:null}}const r=Fe("error_description");if(r){const x=Fe("error_code");if(!x)throw new At("No error_code detected.");const m=Fe("error");throw m?new At(r,{error:m,code:x}):new At("No error detected.")}const n=Fe("provider_token"),s=Fe("provider_refresh_token"),i=Fe("access_token");if(!i)throw new At("No access_token detected.");const o=Fe("expires_in");if(!o)throw new At("No expires_in detected.");const a=Fe("refresh_token");if(!a)throw new At("No refresh_token detected.");const l=Fe("token_type");if(!l)throw new At("No token_type detected.");const u=Math.round(Date.now()/1e3)+parseInt(o),{data:f,error:d}=await this.getUser(i);if(d)throw d;const h=f.user,p={provider_token:n,provider_refresh_token:s,access_token:i,expires_in:parseInt(o),expires_at:u,refresh_token:a,token_type:l,user:h},v=Fe("type");return window.location.hash="",this._debug("#_getSessionFromUrl()","clearing window.location.hash"),{data:{session:p,redirectType:v},error:null}}catch(r){if(oe(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantFlow(){return $t()&&(!!Fe("access_token")||!!Fe("error_description"))}async _isPKCEFlow(){const t=await xs(this.storage,`${this.storageKey}-code-verifier`);return!!Fe("code")&&!!t}async signOut({scope:t}={scope:"global"}){var r;const{data:n,error:s}=await this.getSession();if(s)return{error:s};const i=(r=n.session)===null||r===void 0?void 0:r.access_token;if(i){const{error:o}=await this.admin.signOut(i,t);if(o&&!(Q_(o)&&(o.status===404||o.status===401)))return{error:o}}return t!=="others"&&(await this._removeSession(),await zi(this.storage,`${this.storageKey}-code-verifier`),await this._notifyAllSubscribers("SIGNED_OUT",null)),{error:null}}onAuthStateChange(t){const r=z_(),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),this._emitInitialSession(r),{data:{subscription:n}}}async _emitInitialSession(t){var r,n;try{const{data:{session:s},error:i}=await this.getSession();if(i)throw i;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}}async resetPasswordForEmail(t,r={}){let n=null,s=null;if(this.flowType==="pkce"){const i=ks();await bn(this.storage,`${this.storageKey}-code-verifier`,i),n=await Es(i),s=i===n?"plain":"s256"}try{return await ce(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(oe(i))return{data:null,error:i};throw i}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await J_(async s=>(await W_(s*200),this._debug(r,"refreshing attempt",s),await ce(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Gt})),(s,i,o)=>o&&o.error&&uc(o.error)&&Date.now()+(s+1)*200-n{try{await a.callback(t,r)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;athis._autoRefreshTokenTick(),Os);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),await this._autoRefreshTokenTick()}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{const t=Date.now();try{const{data:{session:r}}=await this.getSession();if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const n=Math.floor((r.expires_at*1e3-t)/Os);this._debug("#_autoRefreshTokenTick()",`access token expires in ${n} ticks, a tick lasts ${Os}ms, refresh threshold is ${pc} ticks`),n<=pc&&await this._callRefreshToken(r.refresh_token)}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!$t()||!(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){this._debug(`#_onVisibilityChanged(${t})`,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(t||(await this.initializePromise,await this._recoverAndRefresh(),this._debug("#_onVisibilityChanged()","finished waiting for initialize, _recoverAndRefresh")),this.autoRefreshToken&&this._startAutoRefresh()):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r){const n=[`provider=${encodeURIComponent(t)}`];if(r!=null&&r.redirectTo&&n.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&n.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const s=ks();await bn(this.storage,`${this.storageKey}-code-verifier`,s);const i=await Es(s),o=s===i?"plain":"s256";this._debug("PKCE","code verifier",`${s.substring(0,5)}...`,"code challenge",i,"method",o);const a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});n.push(a.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);n.push(s.toString())}return`${this.url}/authorize?${n.join("&")}`}async _unenroll(t){var r;try{const{data:n,error:s}=await this.getSession();return s?{data:null,error:s}:await ce(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=n==null?void 0:n.session)===null||r===void 0?void 0:r.access_token})}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _enroll(t){var r,n;try{const{data:s,error:i}=await this.getSession();if(i)return{data:null,error:i};const{data:o,error:a}=await ce(this.fetch,"POST",`${this.url}/factors`,{body:{friendly_name:t.friendlyName,factor_type:t.factorType,issuer:t.issuer},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(!((n=o==null?void 0:o.totp)===null||n===void 0)&&n.qr_code&&(o.totp.qr_code=`data:image/svg+xml;utf-8,${o.totp.qr_code}`),{data:o,error:null})}catch(s){if(oe(s))return{data:null,error:s};throw s}}async _verify(t){var r;try{const{data:n,error:s}=await this.getSession();if(s)return{data:null,error:s};const{data:i,error:o}=await ce(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=n==null?void 0:n.session)===null||r===void 0?void 0:r.access_token});return o?{data:null,error:o}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+i.expires_in},i)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),{data:i,error:o})}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _challenge(t){var r;try{const{data:n,error:s}=await this.getSession();return s?{data:null,error:s}:await ce(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{headers:this.headers,jwt:(r=n==null?void 0:n.session)===null||r===void 0?void 0:r.access_token})}catch(n){if(oe(n))return{data:null,error:n};throw n}}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(i=>i.factor_type==="totp"&&i.status==="verified");return{data:{all:n,totp:s},error:null}}async _getAuthenticatorAssuranceLevel(){var t,r;const{data:{session:n},error:s}=await this.getSession();if(s)return{data:null,error:s};if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const i=this._decodeJWT(n.access_token);let o=null;i.aal&&(o=i.aal);let a=o;((r=(t=n.user.factors)===null||t===void 0?void 0:t.filter(u=>u.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(a="aal2");const c=i.amr||[];return{data:{currentLevel:o,nextLevel:a,currentAuthenticationMethods:c},error:null}}}Xn.nextInstanceID=0;class gw extends Xn{constructor(t){super(t)}}var yw=globalThis&&globalThis.__awaiter||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(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const mw={headers:L_},vw={schema:"public"},bw={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},_w={};class ww{constructor(t,r,n){var s,i,o,a,l,c,u,f;if(this.supabaseUrl=t,this.supabaseKey=r,!t)throw new Error("supabaseUrl is required.");if(!r)throw new Error("supabaseKey is required.");const d=B_(t);this.realtimeUrl=`${d}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${d}/auth/v1`,this.storageUrl=`${d}/storage/v1`,this.functionsUrl=`${d}/functions/v1`;const h=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,p={db:vw,realtime:_w,auth:Object.assign(Object.assign({},bw),{storageKey:h}),global:mw},v=U_(n??{},p);this.storageKey=(i=(s=v.auth)===null||s===void 0?void 0:s.storageKey)!==null&&i!==void 0?i:"",this.headers=(a=(o=v.global)===null||o===void 0?void 0:o.headers)!==null&&a!==void 0?a:{},this.auth=this._initSupabaseAuthClient((l=v.auth)!==null&&l!==void 0?l:{},this.headers,(c=v.global)===null||c===void 0?void 0:c.fetch),this.fetch=F_(r,this._getAccessToken.bind(this),(u=v.global)===null||u===void 0?void 0:u.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},v.realtime)),this.rest=new Ub(`${d}/rest/v1`,{headers:this.headers,schema:(f=v.db)===null||f===void 0?void 0:f.schema,fetch:this.fetch}),this._listenForAuthEvents()}get functions(){return new Ib(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new I_(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(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 yw(this,void 0,void 0,function*(){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},a,l){const c={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new gw({url:this.authUrl,headers:Object.assign(Object.assign({},c),a),storageKey:i,autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:s,flowType:o,fetch:l})}_initRealtimeClient(t){return new x_(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.realtime.setAuth(n??null),this.changedAccessToken=n):t==="SIGNED_OUT"&&(this.realtime.setAuth(this.supabaseKey),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const xw=(e,t,r)=>new ww(e,t,r),va=()=>{const{supabase:{cookies:e}}=os().public,t=`${e.name}-access-token`;return nv(t)},kw=()=>{var a,l,c;const e=va(),t=e.value?`Bearer ${e.value}`:void 0,{supabase:{url:r,key:n,client:s}}=os().public,i={detectSessionInUrl:(a=s.auth)==null?void 0:a.detectSessionInUrl,persistSession:(l=s.auth)==null?void 0:l.persistSession,autoRefreshToken:(c=s.auth)==null?void 0:c.autoRefreshToken},o=kr(t?{auth:i,global:{headers:{Authorization:t}}}:{auth:i},s);return xw(r,n,o)},Ew=()=>{const e=he();return e._supabaseAuthClient||(e._supabaseAuthClient=kw()),e._supabaseAuthClient},Tw=()=>{const e=ai("supabase_user",()=>null);return va().value||(e.value=null),e},Ow=Tt(async e=>{let t,r;const n=Tw(),s=Ew();if(!n.value){const i=va();if(i.value){const{data:{user:o},error:a}=([t,r]=Jn(()=>s.auth.getUser(i.value)),t=await t,r(),t);a?(i.value=null,n.value=null):n.value=o}}e.hooks.hook("app:mounted",()=>{s.auth.onAuthStateChange(async(i,o)=>{if(o){await gc(i,o);const a=o?await s.auth.getUser():null;n.value=a?a.data.user:null}else n.value=null,await gc(i,o)})})}),gc=(e,t)=>$fetch("/api/_supabase/session",{method:"POST",body:{event:e,session:t}}),Cw=Tt({name:"nuxt:chunk-reload",setup(e){const t=Ot(),r=os(),n=new Set;t.beforeEach(()=>{n.clear()}),e.hook("app:chunkError",({error:s})=>{n.add(s)}),t.onError((s,i)=>{if(n.has(s)){const a="href"in i&&i.href.startsWith("#")?r.app.baseURL+i.href:ss(r.app.baseURL,i.fullPath);av({path:a,persistState:!0})}})}}),Sw=[Fy,Jm,Vm,Gm,Xm,Ym,kb,Ob,Ow,Cw],Cr=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},Aw=Ye({props:{name:{type:String,required:!0}}});function $w(e,t,r,n,s,i){return be(),ht("span",{class:Je(e.name)},null,2)}const nd=Cr(Aw,[["render",$w]]),Pw=Ye({components:{UIcon:nd,NuxtLink:fv},props:{type:{type:String,default:"button"},block:{type:Boolean,default:!1},label:{type:String,default:null},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:()=>Le.ui.button.default.size,validator(e){return Object.keys(Le.ui.button.size).includes(e)}},color:{type:String,default:()=>Le.ui.button.default.color,validator(e){return[...Le.ui.colors,...Object.keys(Le.ui.button.color)].includes(e)}},variant:{type:String,default:()=>Le.ui.button.default.variant,validator(e){return[...Object.keys(Le.ui.button.variant),...Object.values(Le.ui.button.color).flatMap(t=>Object.keys(t))].includes(e)}},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>Le.ui.button.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:null},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},to:{type:[String,Object],default:null},target:{type:String,default:null},ariaLabel:{type:String,default:null},square:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},ui:{type:Object,default:()=>Le.ui.button}},setup(e){const t=fi(),r=ue(()=>kr({},e.ui,t.ui.button)),n=pp(),s=ue(()=>e.to?"NuxtLink":"button"),i=ue(()=>e.to?{to:e.to,target:e.target}:{disabled:e.disabled||e.loading,type:e.type}),o=ue(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),a=ue(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),l=ue(()=>e.square||!n.default&&!e.label),c=ue(()=>{var v,x;const p=((x=(v=r.value.color)==null?void 0:v[e.color])==null?void 0:x[e.variant])||r.value.variant[e.variant];return Di(r.value.base,r.value.font,r.value.rounded,r.value.size[e.size],r.value.gap[e.size],e.padded&&r.value[l.value?"square":"padding"][e.size],p==null?void 0:p.replaceAll("{color}",e.color),e.block?"w-full flex justify-center items-center":"inline-flex items-center")}),u=ue(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),f=ue(()=>e.loading&&!o.value?e.loadingIcon:e.trailingIcon||e.icon),d=ue(()=>Di(r.value.icon.base,r.value.icon.size[e.size],e.loading&&"animate-spin")),h=ue(()=>Di(r.value.icon.base,r.value.icon.size[e.size],e.loading&&!o.value&&"animate-spin"));return{buttonIs:s,buttonProps:i,isLeading:o,isTrailing:a,isSquare:l,buttonClass:c,leadingIconName:u,trailingIconName:f,leadingIconClass:d,trailingIconClass:h}}});function Rw(e,t,r,n,s,i){const o=nd;return be(),Ue(Fu(e.buttonIs),sa({class:e.buttonClass,"aria-label":e.ariaLabel},e.buttonProps),{default:Ve(()=>[tr(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[e.isLeading&&e.leadingIconName?(be(),Ue(o,{key:0,name:e.leadingIconName,class:Je(e.leadingIconClass),"aria-hidden":"true"},null,8,["name","class"])):Pn("",!0)]),tr(e.$slots,"default",{},()=>[e.label?(be(),ht("span",{key:0,class:Je([e.truncate?"text-left break-all line-clamp-1":""])},Ls(e.label),3)):Pn("",!0)]),tr(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[e.isTrailing&&e.trailingIconName?(be(),Ue(o,{key:0,name:e.trailingIconName,class:Je(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])):Pn("",!0)])]),_:3},16,["class","aria-label"])}const sd=Cr(Pw,[["render",Rw]]),Iw=Ye({props:{value:{type:String,default:null},size:{type:String,default:()=>Le.ui.kbd.default.size,validator(e){return Object.keys(Le.ui.kbd.size).includes(e)}},ui:{type:Object,default:()=>Le.ui.kbd}},setup(e){const t=fi();return{ui:ue(()=>kr({},e.ui,t.ui.kbd))}}});function jw(e,t,r,n,s,i){return be(),ht("kbd",{class:Je([e.ui.base,e.ui.size[e.size],e.ui.padding,e.ui.rounded,e.ui.font,e.ui.background,e.ui.ring])},[tr(e.$slots,"default",{},()=>[zr(Ls(e.value),1)])],2)}const id=Cr(Iw,[["render",jw]]);function Xe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Er(e){var t=Xe(e).Element;return e instanceof t||e instanceof Element}function it(e){var t=Xe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ba(e){if(typeof ShadowRoot>"u")return!1;var t=Xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var wr=Math.max,Vs=Math.min,Xr=Math.round;function So(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function od(){return!/^((?!chrome|android).)*safari/i.test(So())}function Yr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),s=1,i=1;t&&it(e)&&(s=e.offsetWidth>0&&Xr(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Xr(n.height)/e.offsetHeight||1);var o=Er(e)?Xe(e):window,a=o.visualViewport,l=!od()&&r,c=(n.left+(l&&a?a.offsetLeft:0))/s,u=(n.top+(l&&a?a.offsetTop:0))/i,f=n.width/s,d=n.height/i;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function _a(e){var t=Xe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Lw(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Nw(e){return e===Xe(e)||!it(e)?_a(e):Lw(e)}function kt(e){return e?(e.nodeName||"").toLowerCase():null}function ar(e){return((Er(e)?e.ownerDocument:e.document)||window.document).documentElement}function wa(e){return Yr(ar(e)).left+_a(e).scrollLeft}function Dt(e){return Xe(e).getComputedStyle(e)}function xa(e){var t=Dt(e),r=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+n)}function Mw(e){var t=e.getBoundingClientRect(),r=Xr(t.width)/e.offsetWidth||1,n=Xr(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Dw(e,t,r){r===void 0&&(r=!1);var n=it(t),s=it(t)&&Mw(t),i=ar(t),o=Yr(e,s,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((kt(t)!=="body"||xa(i))&&(a=Nw(t)),it(t)?(l=Yr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=wa(i))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function ad(e){var t=Yr(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function gi(e){return kt(e)==="html"?e:e.assignedSlot||e.parentNode||(ba(e)?e.host:null)||ar(e)}function ld(e){return["html","body","#document"].indexOf(kt(e))>=0?e.ownerDocument.body:it(e)&&xa(e)?e:ld(gi(e))}function Dn(e,t){var r;t===void 0&&(t=[]);var n=ld(e),s=n===((r=e.ownerDocument)==null?void 0:r.body),i=Xe(n),o=s?[i].concat(i.visualViewport||[],xa(n)?n:[]):n,a=t.concat(o);return s?a:a.concat(Dn(gi(o)))}function Fw(e){return["table","td","th"].indexOf(kt(e))>=0}function yc(e){return!it(e)||Dt(e).position==="fixed"?null:e.offsetParent}function Bw(e){var t=/firefox/i.test(So()),r=/Trident/i.test(So());if(r&&it(e)){var n=Dt(e);if(n.position==="fixed")return null}var s=gi(e);for(ba(s)&&(s=s.host);it(s)&&["html","body"].indexOf(kt(s))<0;){var i=Dt(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function yi(e){for(var t=Xe(e),r=yc(e);r&&Fw(r)&&Dt(r).position==="static";)r=yc(r);return r&&(kt(r)==="html"||kt(r)==="body"&&Dt(r).position==="static")?t:r||Bw(e)||t}var ot="top",Et="bottom",Ft="right",gt="left",ka="auto",mi=[ot,Et,Ft,gt],Qr="start",Yn="end",Uw="clippingParents",cd="viewport",_n="popper",Hw="reference",mc=mi.reduce(function(e,t){return e.concat([t+"-"+Qr,t+"-"+Yn])},[]),ud=[].concat(mi,[ka]).reduce(function(e,t){return e.concat([t,t+"-"+Qr,t+"-"+Yn])},[]),zw="beforeRead",qw="read",Kw="afterRead",Ww="beforeMain",Jw="main",Vw="afterMain",Gw="beforeWrite",Xw="write",Yw="afterWrite",Qw=[zw,qw,Kw,Ww,Jw,Vw,Gw,Xw,Yw];function Zw(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function s(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!r.has(a)){var l=t.get(a);l&&s(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||s(i)}),n}function ex(e){var t=Zw(e);return Qw.reduce(function(r,n){return r.concat(t.filter(function(s){return s.phase===n}))},[])}function tx(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function rx(e){var t=e.reduce(function(r,n){var s=r[n.name];return r[n.name]=s?Object.assign({},s,n,{options:Object.assign({},s.options,n.options),data:Object.assign({},s.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}function nx(e,t){var r=Xe(e),n=ar(e),s=r.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;var c=od();(c||!c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a+wa(e),y:l}}function sx(e){var t,r=ar(e),n=_a(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=wr(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=wr(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+wa(e),l=-n.scrollTop;return Dt(s||r).direction==="rtl"&&(a+=wr(r.clientWidth,s?s.clientWidth:0)-i),{width:i,height:o,x:a,y:l}}function ix(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ba(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ao(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ox(e,t){var r=Yr(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function vc(e,t,r){return t===cd?Ao(nx(e,r)):Er(t)?ox(t,r):Ao(sx(ar(e)))}function ax(e){var t=Dn(gi(e)),r=["absolute","fixed"].indexOf(Dt(e).position)>=0,n=r&&it(e)?yi(e):e;return Er(n)?t.filter(function(s){return Er(s)&&ix(s,n)&&kt(s)!=="body"}):[]}function lx(e,t,r,n){var s=t==="clippingParents"?ax(e):[].concat(t),i=[].concat(s,[r]),o=i[0],a=i.reduce(function(l,c){var u=vc(e,c,n);return l.top=wr(u.top,l.top),l.right=Vs(u.right,l.right),l.bottom=Vs(u.bottom,l.bottom),l.left=wr(u.left,l.left),l},vc(e,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function jt(e){return e.split("-")[0]}function Zr(e){return e.split("-")[1]}function fd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dd(e){var t=e.reference,r=e.element,n=e.placement,s=n?jt(n):null,i=n?Zr(n):null,o=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2,l;switch(s){case ot:l={x:o,y:t.y-r.height};break;case Et:l={x:o,y:t.y+t.height};break;case Ft:l={x:t.x+t.width,y:a};break;case gt:l={x:t.x-r.width,y:a};break;default:l={x:t.x,y:t.y}}var c=s?fd(s):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Qr:l[c]=l[c]-(t[u]/2-r[u]/2);break;case Yn:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function hd(){return{top:0,right:0,bottom:0,left:0}}function cx(e){return Object.assign({},hd(),e)}function ux(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}function Ea(e,t){t===void 0&&(t={});var r=t,n=r.placement,s=n===void 0?e.placement:n,i=r.strategy,o=i===void 0?e.strategy:i,a=r.boundary,l=a===void 0?Uw:a,c=r.rootBoundary,u=c===void 0?cd:c,f=r.elementContext,d=f===void 0?_n:f,h=r.altBoundary,p=h===void 0?!1:h,v=r.padding,x=v===void 0?0:v,m=cx(typeof x!="number"?x:ux(x,mi)),g=d===_n?Hw:_n,E=e.rects.popper,_=e.elements[p?g:d],T=lx(Er(_)?_:_.contextElement||ar(e.elements.popper),l,u,o),P=Yr(e.elements.reference),j=dd({reference:P,element:E,strategy:"absolute",placement:s}),O=Ao(Object.assign({},E,j)),M=d===_n?O:P,B={top:T.top-M.top+m.top,bottom:M.bottom-T.bottom+m.bottom,left:T.left-M.left+m.left,right:M.right-T.right+m.right},H=e.modifiersData.offset;if(d===_n&&H){var F=H[s];Object.keys(B).forEach(function(K){var w=[Ft,Et].indexOf(K)>=0?1:-1,$=[ot,Et].indexOf(K)>=0?"y":"x";B[K]+=F[$]*w})}return B}var bc={placement:"bottom",modifiers:[],strategy:"absolute"};function _c(){for(var e=arguments.length,t=new Array(e),r=0;r-1&&e%1==0&&e-1&&e%1==0&&e<=ck}function wd(e){return e!=null&&Sa(e.length)&&!_d(e)}var uk=Object.prototype;function xd(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||uk;return e===r}function fk(e,t){for(var r=-1,n=Array(e);++r-1}function C1(e,t){var r=this.__data__,n=vi(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function zt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++ta))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=r&kE?new Gs:void 0;for(i.set(e,t),i.set(t,e);++f=0});d.length===0&&(d=f);var h=d.reduce(function(p,v){return p[v]=Ea(e,{placement:v,boundary:s,rootBoundary:i,padding:o})[jt(v)],p},{});return Object.keys(h).sort(function(p,v){return h[p]-h[v]})}function mT(e){if(jt(e)===ka)return[];var t=Rs(e);return[Kc(e),t,Kc(t)]}function vT(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=r.mainAxis,i=s===void 0?!0:s,o=r.altAxis,a=o===void 0?!0:o,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,p=h===void 0?!0:h,v=r.allowedAutoPlacements,x=t.options.placement,m=jt(x),g=m===x,E=l||(g||!p?[Rs(x)]:mT(x)),_=[x].concat(E).reduce(function(ze,qe){return ze.concat(jt(qe)===ka?yT(t,{placement:qe,boundary:u,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:v}):qe)},[]),T=t.rects.reference,P=t.rects.popper,j=new Map,O=!0,M=_[0],B=0;B<_.length;B++){var H=_[B],F=jt(H),K=Zr(H)===Qr,w=[ot,Et].indexOf(F)>=0,$=w?"width":"height",L=Ea(t,{placement:H,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),J=w?K?Ft:gt:K?Et:ot;T[$]>P[$]&&(J=Rs(J));var Y=Rs(J),ee=[];if(i&&ee.push(L[F]<=0),a&&ee.push(L[J]<=0,L[Y]<=0),ee.every(function(ze){return ze})){M=H,O=!1;break}j.set(H,ee)}if(O)for(var Ae=p?3:1,ke=function(qe){var xe=_.find(function(S){var z=j.get(S);if(z)return z.slice(0,qe).every(function(U){return U})});if(xe)return M=xe,"break"},_e=Ae;_e>0;_e--){var at=ke(_e);if(at==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const bT={name:"flip",enabled:!0,phase:"main",fn:vT,requiresIfExists:["offset"],data:{_skip:!1}};function _T(e,t,r){var n=jt(e),s=[gt,ot].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=i[0],a=i[1];return o=o||0,a=(a||0)*s,[gt,Ft].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}function wT(e){var t=e.state,r=e.options,n=e.name,s=r.offset,i=s===void 0?[0,0]:s,o=ud.reduce(function(u,f){return u[f]=_T(f,t.rects,i),u},{}),a=o[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}const xT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wT};function kT(e){return e==="x"?"y":"x"}function Is(e,t,r){return wr(e,Vs(t,r))}function ET(e,t,r){var n=Is(e,t,r);return n>r?r:n}function TT(e){var t=e.state,r=e.options,n=e.name,s=r.mainAxis,i=s===void 0?!0:s,o=r.altAxis,a=o===void 0?!1:o,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,p=r.tetherOffset,v=p===void 0?0:p,x=Ea(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),m=jt(t.placement),g=Zr(t.placement),E=!g,_=fd(m),T=kT(_),P=t.modifiersData.popperOffsets,j=t.rects.reference,O=t.rects.popper,M=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,B=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(P){if(i){var K,w=_==="y"?ot:gt,$=_==="y"?Et:Ft,L=_==="y"?"height":"width",J=P[_],Y=J+x[w],ee=J-x[$],Ae=h?-O[L]/2:0,ke=g===Qr?j[L]:O[L],_e=g===Qr?-O[L]:-j[L],at=t.elements.arrow,ze=h&&at?ad(at):{width:0,height:0},qe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:hd(),xe=qe[w],S=qe[$],z=Is(0,j[L],ze[L]),U=E?j[L]/2-Ae-z-xe-B.mainAxis:ke-z-xe-B.mainAxis,V=E?-j[L]/2+Ae+z+S+B.mainAxis:_e+z+S+B.mainAxis,se=t.elements.arrow&&yi(t.elements.arrow),y=se?_==="y"?se.clientTop||0:se.clientLeft||0:0,b=(K=H==null?void 0:H[_])!=null?K:0,k=J+U-b-y,C=J+V-b,A=Is(h?Vs(Y,k):Y,J,h?wr(ee,C):ee);P[_]=A,F[_]=A-J}if(a){var R,q=_==="x"?ot:gt,N=_==="x"?Et:Ft,D=P[T],I=T==="y"?"height":"width",X=D+x[q],W=D-x[N],G=[ot,gt].indexOf(m)!==-1,Z=(R=H==null?void 0:H[T])!=null?R:0,re=G?X:D-j[I]-O[I]-Z+B.altAxis,fe=G?D+j[I]+O[I]-Z-B.altAxis:W,le=h&&G?ET(re,D,fe):Is(h?re:X,D,h?fe:W);P[T]=le,F[T]=le-D}t.modifiersData[n]=F}}const OT={name:"preventOverflow",enabled:!0,phase:"main",fn:TT,requiresIfExists:["offset"]};function CT(e){return typeof e=="function"?e():ge(e)}function Wc(e){var t;const r=CT(e);return(t=r==null?void 0:r.$el)!=null?t:r}const ST=fx({defaultModifiers:[...wx,xT,bT,OT,gd,pd]});function AT({locked:e=!1,overflowPadding:t=8,offsetDistance:r=8,offsetSkid:n=0,gpuAcceleration:s=!0,adaptive:i=!0,scroll:o=!0,resize:a=!0,placement:l,strategy:c},u){const f=Oe(null),d=Oe(null),h=Oe(null);return an(()=>{Su(p=>{if(!d.value||!f.value&&!(u!=null&&u.value))return;const v=Wc(d),x=(u==null?void 0:u.value)||Wc(f);v instanceof HTMLElement&&x&&(h.value=ST(x,v,hT({placement:l,strategy:c,modifiers:[{name:"flip",enabled:!e},{name:"preventOverflow",options:{padding:t}},{name:"offset",options:{offset:[n,r]}},{name:"computeStyles",options:{adaptive:i,gpuAcceleration:s}},{name:"eventListeners",options:{scroll:o,resize:a}}]},aT)),p(h.value.destroy))})}),[f,d,h]}const $T=Ye({components:{UKbd:id},props:{text:{type:String,default:null},prevent:{type:Boolean,default:!1},shortcuts:{type:Array,default:()=>[]},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},popper:{type:Object,default:()=>({})},ui:{type:Object,default:()=>Le.ui.tooltip}},setup(e){const t=fi(),r=ue(()=>kr({},e.ui,t.ui.tooltip)),n=ue(()=>kr({},e.popper,r.value.popper)),[s,i]=AT(n.value),o=Oe(!1);let a=null,l=null;function c(){l&&(clearTimeout(l),l=null),!o.value&&(a=a||setTimeout(()=>{o.value=!0,a=null},e.openDelay))}function u(){a&&(clearTimeout(a),a=null),o.value&&(l=l||setTimeout(()=>{o.value=!1,l=null},e.closeDelay))}return{ui:r,trigger:s,container:i,open:o,onMouseOver:c,onMouseLeave:u}}}),PT=It("span",{class:"mx-1 text-gray-700 dark:text-gray-200"},"·",-1);function RT(e,t,r,n,s,i){const o=id;return be(),ht("div",{ref:"trigger",class:Je(e.ui.wrapper),onMouseover:t[0]||(t[0]=(...a)=>e.onMouseOver&&e.onMouseOver(...a)),onMouseleave:t[1]||(t[1]=(...a)=>e.onMouseLeave&&e.onMouseLeave(...a))},[tr(e.$slots,"default",{open:e.open},()=>[zr(" Hover ")]),e.open&&!e.prevent?(be(),ht("div",{key:0,ref:"container",class:Je([e.ui.container,e.ui.width])},[ne(oi,sa({appear:""},e.ui.transition),{default:Ve(()=>{var a;return[It("div",{class:Je([e.ui.base,e.ui.background,e.ui.color,e.ui.rounded,e.ui.shadow,e.ui.ring])},[tr(e.$slots,"text",{},()=>[zr(Ls(e.text),1)]),(a=e.shortcuts)!=null&&a.length?(be(),ht("span",{key:0,class:Je(e.ui.shortcuts)},[PT,(be(!0),ht(Ne,null,dp(e.shortcuts,l=>(be(),Ue(o,{key:l,size:"xs"},{default:Ve(()=>[zr(Ls(l),1)]),_:2},1024))),128))],2)):Pn("",!0)],2)]}),_:3},16)],2)):Pn("",!0)],34)}const IT=Cr($T,[["render",RT]]),Fd=Ye({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:r}){const n=Oe(!1);return an(()=>{n.value=!0}),s=>{var l;if(n.value)return(l=t.default)==null?void 0:l.call(t);const i=t.fallback||t.placeholder;if(i)return i();const o=s.fallback||s.placeholder||"",a=s.fallbackTag||s.placeholderTag||"span";return ht(a,r,o)}}}),jT=()=>ai("color-mode").value,LT=It("div",{class:"w-8 h-8"},null,-1),NT={__name:"ColorModeButton",setup(e){const t=jT(),r=ue({get(){return t.value==="dark"},set(){t.preference=t.value==="dark"?"light":"dark"}});return console.log(r),(n,s)=>{const i=sd,o=Fd;return be(),Ue(o,null,{fallback:Ve(()=>[LT]),default:Ve(()=>[ne(i,{icon:ge(r)?"i-heroicons-moon-20-solid":"i-heroicons-sun-20-solid","aria-label":"Theme",size:"xl",onClick:s[0]||(s[0]=a=>r.value=!ge(r))},null,8,["icon"])]),_:1})}}},MT={class:"fixed top-0 left-0 right-0 py-2 z-10 backdrop-filter backdrop-blur-[16px] bg-white/90 dark:bg-gray-950/90 border-gray-200 dark:border-gray-900/70"},DT={class:"container flex mx-auto flex-row items-center px-2"},FT={class:"flex flex-1 space-x-4 flex-row items-center justify-start"},BT=It("div",{class:"flex-1 flex flex-row items-center justify-center"},null,-1),UT={class:"flex flex-1 flex-row items-center justify-end"},HT=Ye({__name:"AppHeader",setup(e){return(t,r)=>{const n=sd,s=IT,i=Fd,o=NT;return be(),ht("header",MT,[It("div",DT,[ne(i,null,{default:Ve(()=>[It("div",FT,[ne(s,{text:"העבודה הגדולה האחת"},{default:Ve(()=>[ne(n,{icon:"i-heroicons-scale-solid",to:"/#hero",class:"",size:"3xl","aria-label":"Theme"})]),_:1})])]),_:1}),BT,It("div",UT,[ne(s,{text:"מדיה לשיתופים"},{default:Ve(()=>[ne(n,{icon:"i-heroicons-camera-solid",to:"/#media",class:"me-1",size:"xl","aria-label":"Theme"})]),_:1}),ne(n,{icon:"i-heroicons-bolt-solid",to:"/#hero",size:"xl",class:"ms-1 me-1","aria-label":"Theme"}),ne(s,{text:"מצב צבע",class:"ms-1"},{default:Ve(()=>[ne(o)]),_:1})])])])}}}),zT=Ye({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"}},setup(e,{slots:t}){const r=qT({duration:e.duration,throttle:e.throttle}),n=he(),s=Ot();return $s.unshift(r.start),s.onError(()=>{r.finish()}),s.beforeResolve((i,o)=>{(i===o||i.matched.every((a,l)=>{var c,u,f;return a.components&&((c=a.components)==null?void 0:c.default)===((f=(u=o.matched[l])==null?void 0:u.components)==null?void 0:f.default)}))&&r.finish()}),s.afterEach((i,o,a)=>{a&&r.finish()}),n.hook("page:finish",r.finish),n.hook("vue:error",r.finish),ln(()=>{const i=$s.indexOf(r.start);i>=0&&$s.splice(i,1),r.clear()}),()=>st("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:r.isLoading.value?1:0,background:e.color||void 0,backgroundSize:`${100/r.progress.value*100}% auto`,transform:`scaleX(${r.progress.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}});function qT(e){const t=Oe(0),r=Oe(!1),n=ue(()=>1e4/e.duration);let s=null,i=null;function o(){l(),t.value=0,e.throttle?i=setTimeout(()=>{r.value=!0,f()},e.throttle):(r.value=!0,f())}function a(){t.value=100,u()}function l(){clearInterval(s),clearTimeout(i),s=null,i=null}function c(d){t.value=Math.min(100,t.value+d)}function u(){l(),setTimeout(()=>{r.value=!1,setTimeout(()=>{t.value=0},400)},500)}function f(){s=setInterval(()=>{c(n.value)},100)}return{progress:t,isLoading:r,start:o,finish:a,clear:l}}const KT=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,r=>{var n;return((n=e.params[r.slice(1)])==null?void 0:n.toString())||""}),Lo=(e,t)=>{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&&KT(e.route,r));return typeof n=="function"?n(e.route):n},WT=(e,t)=>({default:()=>e?st(sp,e===!0?{}:e,t):t}),JT=Ye({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,r=e.route,n={};for(const s in e.route)Object.defineProperty(n,s,{get:()=>t===e.renderKey?e.route[s]:r[s]});return Hr(li,rs(n)),()=>st(e.vnode,{ref:e.vnodeRef})}}),VT=(e,t,r)=>(t=t===!0?{}:t,{default:()=>{var n;return t?st(e,t,r):(n=r.default)==null?void 0:n.call(r)}}),GT=Ye({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,expose:r}){const n=he(),s=Oe(),i=Ge(li,null);r({pageRef:s});const o=Ge(Iy,null);let a;return()=>st(Kf,{name:e.name,route:e.route,...t},{default:l=>{const c=QT(i,l.route,l.Component),u=i&&i.matched.length===l.route.matched.length;if(!l.Component)return a&&!u?a:void 0;if(a&&o&&!o.isCurrent(l.route))return a;if(c&&i&&(!o||o!=null&&o.isCurrent(i)))return u?a:null;const f=Lo(l,e.pageKey),d=n.deferHydration(),h=!!(e.transition??l.route.meta.pageTransition??po),p=h&&YT([e.transition,l.route.meta.pageTransition,po,{onAfterLeave:()=>{n.callHook("page:transition:finish",l.Component)}}].filter(Boolean));return a=VT(oi,h&&p,WT(e.keepalive??l.route.meta.keepalive??my,st(Ou,{suspensible:!0,onPending:()=>n.callHook("page:start",l.Component),onResolve:()=>{Or(()=>n.callHook("page:finish",l.Component).finally(d))}},{default:()=>st(JT,{key:f,vnode:l.Component,route:l.route,renderKey:f,trackRootNodes:h,vnodeRef:s})}))).default(),a}})}});function XT(e){return Array.isArray(e)?e:e?[e]:[]}function YT(e){const t=e.map(r=>({...r,onAfterLeave:XT(r.onAfterLeave)}));return kr(...t)}function QT(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,l;return((o=s.components)==null?void 0:o.default)!==((l=(a=e.matched[i])==null?void 0:a.components)==null?void 0:l.default)})||r&&Lo({route:t,Component:r})!==Lo({route:e,Component:r})}const ZT={},eO={class:"max-w-screen min-h-screen px-4 mx-auto sm:px-6 lg:px-8"};function tO(e,t){return be(),ht("div",eO,[tr(e.$slots,"default")])}const rO=Cr(ZT,[["render",tO]]),nO={};function sO(e,t){return be(),ht("div",null,[tr(e.$slots,"default")])}const iO=Cr(nO,[["render",sO]]);const oO={};function aO(e,t){const r=HT,n=zT,s=GT,i=rO,o=iO;return be(),Ue(o,{class:""},{default:Ve(()=>[ne(r),ne(i,{class:""},{default:Ve(()=>[ne(n,{color:"#47ffd4",height:"3"}),ne(s)]),_:1})]),_:1})}const lO=Cr(oO,[["render",aO]]),cO={__name:"nuxt-error-page",props:{error:Object},setup(e){const r=e.error;(r.stack||"").split(` `).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`${f.text}`).join(` -`);const n=Number(r.statusCode||500),s=n===404,i=r.statusMessage??(s?"Page Not Found":"Internal Server Error"),o=r.message||r.toString(),a=void 0,u=s?Va(()=>rt(()=>import("./error-404.6dcdbe42.js"),["./error-404.6dcdbe42.js","./error-404.fdd90155.css"],import.meta.url).then(f=>f.default||f)):Va(()=>rt(()=>import("./error-500.4656891a.js"),["./error-500.4656891a.js","./error-500.f4699d7d.css"],import.meta.url).then(f=>f.default||f));return(f,d)=>(ve(),Ue(pe(u),Xd(Zu({statusCode:pe(n),statusMessage:pe(i),description:pe(o),stack:pe(a)})),null,16))}},Kc={__name:"nuxt-root",setup(e){const t=()=>null,r=be(),n=r.deferHydration(),s=!1;Hr(li,$y()),r.hooks.callHookWith(a=>a.map(l=>l()),"vue:setup");const i=ci();Lu((a,l,c)=>{if(r.hooks.callHook("vue:error",a,l,c).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),jy(a)&&(a.fatal||a.unhandled))return r.runWithContext(()=>Nr(a)),!1});const{islandContext:o}=!1;return(a,l)=>(ve(),Ue(Eu,{onResolve:pe(n)},{default:Ve(()=>[pe(i)?(ve(),Ue(pe(sO),{key:0,error:pe(i)},null,8,["error"])):pe(o)?(ve(),Ue(pe(t),{key:1,context:pe(o)},null,8,["context"])):pe(s)?(ve(),Ue(Mu(pe(s)),{key:2})):(ve(),Ue(pe(nO),{key:3}))]),_:1},8,["onResolve"]))}};globalThis.$fetch||(globalThis.$fetch=Yg.create({baseURL:Zg()}));let Wc;{let e;Wc=async function(){var i,o;if(e)return e;const n=!!((i=window.__NUXT__)!=null&&i.serverRendered||((o=document.getElementById("__NUXT_DATA__"))==null?void 0:o.dataset.ssr)==="true")?hg(Kc):dg(Kc),s=d0({vueApp:n});try{await p0(s,kw)}catch(a){await s.callHook("app:error",a),s.payload.error=s.payload.error||a}try{await s.hooks.callHook("app:created",n),await s.hooks.callHook("app:beforeMount",n),n.mount("#"+gy),await s.hooks.callHook("app:mounted",n),await Or()}catch(a){await s.callHook("app:error",a),s.payload.error=s.payload.error||a}return n},e=Wc().catch(t=>{console.error("Error while mounting app:",t)})}export{ed as A,Le as B,fi as C,ue as D,kr as E,Di as F,sa as G,tr as H,Se as I,fO as J,yu as K,np as L,Zo as M,be as N,la as O,or as P,Ne as Q,cp as R,va as S,vw as T,Mu as U,hO as V,Ry as W,Cr as _,Pt as a,ne as b,ht as c,zr as d,ov as e,aO as f,an as g,pe as h,lO as i,$n as j,uO as k,td as l,Ye as m,Je as n,ve as o,oO as p,iO as q,Oe as r,$t as s,Rs as t,dy as u,dO as v,Ve as w,Ue as x,_w as y,cO as z}; +`);const n=Number(r.statusCode||500),s=n===404,i=r.statusMessage??(s?"Page Not Found":"Internal Server Error"),o=r.message||r.toString(),a=void 0,u=s?Va(()=>rt(()=>import("./error-404.ef468a68.js"),["./error-404.ef468a68.js","./error-404.fdd90155.css"],import.meta.url).then(f=>f.default||f)):Va(()=>rt(()=>import("./error-500.86eb9acd.js"),["./error-500.86eb9acd.js","./error-500.f4699d7d.css"],import.meta.url).then(f=>f.default||f));return(f,d)=>(be(),Ue(ge(u),Zd(tf({statusCode:ge(n),statusMessage:ge(i),description:ge(o),stack:ge(a)})),null,16))}},Jc={__name:"nuxt-root",setup(e){const t=()=>null,r=he(),n=r.deferHydration(),s=!1;Hr(li,jy()),r.hooks.callHookWith(a=>a.map(l=>l()),"vue:setup");const i=ci();Mu((a,l,c)=>{if(r.hooks.callHook("vue:error",a,l,c).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),Dy(a)&&(a.fatal||a.unhandled))return r.runWithContext(()=>Nr(a)),!1});const{islandContext:o}=!1;return(a,l)=>(be(),Ue(Ou,{onResolve:ge(n)},{default:Ve(()=>[ge(i)?(be(),Ue(ge(cO),{key:0,error:ge(i)},null,8,["error"])):ge(o)?(be(),Ue(ge(t),{key:1,context:ge(o)},null,8,["context"])):ge(s)?(be(),Ue(Fu(ge(s)),{key:2})):(be(),Ue(ge(lO),{key:3}))]),_:1},8,["onResolve"]))}};globalThis.$fetch||(globalThis.$fetch=e0.create({baseURL:r0()}));let Vc;{let e;Vc=async function(){var i,o;if(e)return e;const n=!!((i=window.__NUXT__)!=null&&i.serverRendered||((o=document.getElementById("__NUXT_DATA__"))==null?void 0:o.dataset.ssr)==="true")?yg(Jc):gg(Jc),s=g0({vueApp:n});try{await m0(s,Sw)}catch(a){await s.callHook("app:error",a),s.payload.error=s.payload.error||a}try{await s.hooks.callHook("app:created",n),await s.hooks.callHook("app:beforeMount",n),n.mount("#"+vy),await s.hooks.callHook("app:mounted",n),await Or()}catch(a){await s.callHook("app:error",a),s.payload.error=s.payload.error||a}return n},e=Vc().catch(t=>{console.error("Error while mounting app:",t)})}export{nd as A,Le as B,fi as C,ue as D,kr as E,Di as F,sa as G,tr as H,Se as I,yO as J,vu as K,op as L,Zo as M,he as N,la as O,or as P,Ne as Q,dp as R,va as S,kw as T,Fu as U,vO as V,Ny as W,Cr as _,It as a,ne as b,ht as c,zr as d,fv as e,dO as f,an as g,ge as h,hO as i,Pn as j,gO as k,sd as l,Ye as m,Je as n,be as o,fO as p,uO as q,Oe as r,Rt as s,Ls as t,gy as u,mO as v,Ve as w,Ue as x,Tw as y,pO as z}; diff --git a/_nuxt/error-404.6dcdbe42.js b/_nuxt/error-404.ef468a68.js similarity index 97% rename from _nuxt/error-404.6dcdbe42.js rename to _nuxt/error-404.ef468a68.js index 501d520..d157b46 100644 --- a/_nuxt/error-404.6dcdbe42.js +++ b/_nuxt/error-404.ef468a68.js @@ -1 +1 @@ -import{_ as a,u as n,o as r,c as d,a as e,t as s,b as l,w as c,d as p,e as f,p as x,f as h}from"./entry.85cabd99.js";const m=t=>(x("data-v-24df7949"),t=t(),h(),t),u={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},g=m(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),_={class:"max-w-520px text-center z-20"},b=["textContent"],w=["textContent"],y={class:"w-full flex items-center justify-center"},S={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const o=t;return n({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(k,v)=>{const i=f;return r(),d("div",u,[g,e("div",_,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,b),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,w),e("div",y,[l(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:c(()=>[p(s(t.backHome),1)]),_:1})])])])}}},z=a(S,[["__scopeId","data-v-24df7949"]]);export{z as default}; +import{_ as a,u as n,o as r,c as d,a as e,t as s,b as l,w as c,d as p,e as f,p as x,f as h}from"./entry.9faa54b8.js";const m=t=>(x("data-v-24df7949"),t=t(),h(),t),u={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},g=m(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),_={class:"max-w-520px text-center z-20"},b=["textContent"],w=["textContent"],y={class:"w-full flex items-center justify-center"},S={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const o=t;return n({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(k,v)=>{const i=f;return r(),d("div",u,[g,e("div",_,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,b),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,w),e("div",y,[l(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:c(()=>[p(s(t.backHome),1)]),_:1})])])])}}},z=a(S,[["__scopeId","data-v-24df7949"]]);export{z as default}; diff --git a/_nuxt/error-500.4656891a.js b/_nuxt/error-500.86eb9acd.js similarity index 96% rename from _nuxt/error-500.4656891a.js rename to _nuxt/error-500.86eb9acd.js index c90970c..b3d17d6 100644 --- a/_nuxt/error-500.4656891a.js +++ b/_nuxt/error-500.86eb9acd.js @@ -1 +1 @@ -import{_ as i,u as a,o as r,c as n,a as e,t as s,p as l,f as d}from"./entry.85cabd99.js";const c=t=>(l("data-v-92365d16"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},h=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),f={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],x={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(u,b)=>(r(),n("div",p,[h,e("div",f,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(x,[["__scopeId","data-v-92365d16"]]);export{w as default}; +import{_ as i,u as a,o as r,c as n,a as e,t as s,p as l,f as d}from"./entry.9faa54b8.js";const c=t=>(l("data-v-92365d16"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},h=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),f={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],x={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(u,b)=>(r(),n("div",p,[h,e("div",f,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(x,[["__scopeId","data-v-92365d16"]]);export{w as default}; diff --git a/_nuxt/index.2ff987a8.js b/_nuxt/index.7df7466f.js similarity index 99% rename from _nuxt/index.2ff987a8.js rename to _nuxt/index.7df7466f.js index 34b5f5e..973ff48 100644 --- a/_nuxt/index.2ff987a8.js +++ b/_nuxt/index.7df7466f.js @@ -1 +1 @@ -import{r as W,g as Te,c as ae,a as j,n as Se,h as J,i as ze,v as Ce,b as G,w as re,j as je,e as Ee,k as Pe,o as le,d as Ne,l as Ie}from"./entry.85cabd99.js";import{_ as Ae,a as De,b as Le,c as Me,d as Be,e as He,f as Re,g as Fe,h as $e,i as Qe,j as Ve,k as Ue,l as qe,m as We,n as Je,o as Ge,p as Ke,q as Xe,r as Oe,s as Ye,t as Ze,u as et,v as tt,w as at,x as rt,y as lt,z as st,A as nt,B as it,C as ot,D as dt,E as mt,F as ut,G as gt,H as pt,I as ct,J as ht,K as bt}from"./togw-turn-truth-religion.3c14a7c2.js";const ue=e=>Array.isArray(e),ge=e=>ue(e)?e:[e];let ft=function(e){let t=function(p){return ge(p).forEach(v=>{var P;return b.set(Symbol((P=v.char)==null?void 0:P.innerText),i({...v}))}),this},r=()=>h().filter(p=>p.typeable),s=function(p,v){let P=[...b.keys()];b.set(P[p],i(v))},i=p=>(p.shouldPauseCursor=function(){return!!(this.typeable||this.cursorable||this.deletable)},p),n=function(){b.forEach(p=>delete p.done)},u=function(){b=new Map,t(e)},m=()=>b,h=()=>Array.from(b.values()),g=p=>b.delete(p),y=(p=!1)=>p?h():h().filter(v=>!v.done),_=(p,v=!1)=>v?b.delete(p):b.get(p).done=!0,b=new Map;return t(e),{add:t,set:s,wipe:u,reset:n,destroy:g,done:_,getItems:y,getQueue:m,getTypeable:r}};const pe=e=>Array.from(e),K=e=>document.createTextNode(e);let X=e=>([...e.childNodes].forEach(t=>{if(t.nodeValue){[...t.nodeValue].forEach(r=>{t.parentNode.insertBefore(K(r),t)}),t.remove();return}X(t)}),e);const ce=e=>{let t=document.implementation.createHTMLDocument();return t.body.innerHTML=e,X(t.body)},he="data-typeit-id",E="ti-cursor",yt="END",_t={started:!1,completed:!1,frozen:!1,destroyed:!1},A={breakLines:!0,cursor:{autoPause:!0,autoPauseDelay:500,animation:{frames:[0,0,1].map(e=>({opacity:e})),options:{iterations:1/0,easing:"steps(2, start)",fill:"forwards"}}},cursorChar:"|",cursorSpeed:1e3,deleteSpeed:null,html:!0,lifeLike:!0,loop:!1,loopDelay:750,nextStringDelay:750,speed:100,startDelay:250,startDelete:!1,strings:[],waitUntilVisible:!1,beforeString:()=>{},afterString:()=>{},beforeStep:()=>{},afterStep:()=>{},afterComplete:()=>{}},kt=`[${he}]:before {content: '.'; display: inline-block; width: 0; visibility: hidden;}`;function be(e,t=!1,r=!1){let s=e.querySelector(`.${E}`),i=document.createTreeWalker(e,NodeFilter.SHOW_ALL,{acceptNode:m=>{var h,g;if(s&&r){if((h=m.classList)!=null&&h.contains(E))return NodeFilter.FILTER_ACCEPT;if(s.contains(m))return NodeFilter.FILTER_REJECT}return(g=m.classList)!=null&&g.contains(E)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),n,u=[];for(;n=i.nextNode();)n.originalParent||(n.originalParent=n.parentNode),u.push(n);return t?u.reverse():u}function wt(e){return be(ce(e))}function vt(e,t=!0){return t?wt(e):pe(e).map(K)}const R=e=>document.createElement(e),fe=(e,t="")=>{let r=R("style");r.id=t,r.appendChild(K(e)),document.head.appendChild(r)},se=e=>(ue(e)||(e=[e/2,e/2]),e),ne=(e,t)=>Math.abs(Math.random()*(e+t-(e-t))+(e-t));let ie=e=>e/2;function xt(e){let{speed:t,deleteSpeed:r,lifeLike:s}=e;return r=r!==null?r:t/3,s?[ne(t,ie(t)),ne(r,ie(r))]:[t,r]}const Tt=e=>(e.forEach(clearTimeout),[]),St=()=>Math.random().toString().substring(2,9),O=e=>"value"in e;let zt=e=>O(e)?pe(e.value):be(e,!0).filter(t=>!(t.childNodes.length>0));const Ct=(e,t)=>{new IntersectionObserver((s,i)=>{s.forEach(n=>{n.isIntersecting&&(t(),i.unobserve(e))})},{threshold:1}).observe(e)};let I=e=>typeof e=="function"?e():e;const ye=e=>Number.isInteger(e);let Y=(e,t=document,r=!1)=>t[`querySelector${r?"All":""}`](e),jt=e=>/body/i.test(e==null?void 0:e.tagName),Et=(e,t)=>{if(O(e)){e.value=`${e.value}${t.textContent}`;return}t.innerHTML="";let r=jt(t.originalParent)?e:t.originalParent||e;r.insertBefore(t,Y("."+E,r)||null)},Pt=(e,t,r)=>Math.min(Math.max(t+e,0),r.length);const D=(e,t)=>Object.assign({},e,t),Nt=(e,t)=>{if(!e)return;let r=e.parentNode;(r.childNodes.length>1||r.isSameNode(t)?e:r).remove()},It=(e,t,r)=>{let s=t[r-1],i=Y(`.${E}`,e);e=(s==null?void 0:s.parentNode)||e,e.insertBefore(i,s||null)};function At(e){return typeof e=="string"?Y(e):e}const Dt=e=>/<(.+)>(.*?)<\/(.+)>/.test(e.outerHTML);let Lt=(e,t,r)=>new Promise(s=>{let i=async()=>{await e(),s()};r.push(setTimeout(i,t||0))}),Mt={"font-family":"","font-weight":"","font-size":"","font-style":"","line-height":"",color:"",transform:"translateX(-.125em)"},Bt=(e,t)=>{let s=`${`[${he}='${e}']`} .${E}`,i=getComputedStyle(t),n=Object.entries(Mt).reduce((u,[m,h])=>`${u} ${m}: var(--ti-cursor-${m}, ${h||i[m]});`,"");fe(`${s} { display: inline-block; width: 0; ${n} }`,e)};const H=(e,t)=>new Array(t).fill(e),oe=({queueItems:e,selector:t,cursorPosition:r,to:s})=>{if(ye(t))return t*-1;let i=new RegExp(yt,"i").test(s),n=t?[...e].reverse().findIndex(({char:m})=>{let h=m.parentElement,g=h.matches(t);return i&&g?!0:g&&h.firstChild.isSameNode(m)}):-1;n<0&&(n=i?0:e.length-1);let u=i?0:1;return n-r+u};let F=e=>new Promise(t=>{requestAnimationFrame(async()=>{t(await e())})}),_e=e=>e==null?void 0:e.getAnimations().find(t=>t.id===e.dataset.tiAnimationId),ke=({cursor:e,frames:t,options:r})=>{let s=e.animate(t,r);return s.pause(),s.id=e.dataset.tiAnimationId,F(()=>{F(()=>{s.play()})}),s},Ht=({cursor:e,options:t,cursorOptions:r})=>{if(!e||!r)return;let s=_e(e),i;s&&(t.delay=s.effect.getComputedTiming().delay,i=s.currentTime,s.cancel());let n=ke({cursor:e,frames:r.animation.frames,options:t});return i&&(n.currentTime=i),n},de=e=>{var t;return(t=e.func)==null?void 0:t.call(null)},Rt=async({index:e,queueItems:t,wait:r,cursor:s,cursorOptions:i})=>{let n=t[e][1],u=[],m=e,h=n,g=()=>h&&!h.delay,y=n.shouldPauseCursor()&&i.autoPause;for(;g();)u.push(h),g()&&m++,h=t[m]?t[m][1]:null;if(u.length)return await F(async()=>{for(let p of u)await de(p)}),m-1;let _=_e(s),b;return _&&(b={..._.effect.getComputedTiming(),delay:y?i.autoPauseDelay:0}),await r(async()=>{_&&y&&_.cancel(),await F(()=>{de(n)})},n.delay),await Ht({cursor:s,options:b,cursorOptions:i}),e},Ft=e=>{var t,r;if(typeof e=="object"){let s={},{frames:i,options:n}=A.cursor.animation;return s.animation=e.animation||{},s.animation.frames=((t=e.animation)==null?void 0:t.frames)||i,s.animation.options=D(n,((r=e.animation)==null?void 0:r.options)||{}),s.autoPause=e.autoPause??A.cursor.autoPause,s.autoPauseDelay=e.autoPauseDelay||A.cursor.autoPauseDelay,s}return e===!0?A.cursor:e};const me=function(e,t={}){let r=async(a,l,d=!1)=>{x.frozen&&await new Promise(c=>{this.unfreeze=()=>{x.frozen=!1,c()}}),d||await o.beforeStep(this),await Lt(a,l,Q),d||await o.afterStep(this)},s=(a,l)=>Rt({index:a,queueItems:l,wait:r,cursor:C,cursorOptions:o.cursor}),i=a=>Nt(a,f),n=()=>O(f),u=(a=0)=>xt(o)[a],m=()=>zt(f),h=(a={})=>{let l=a.delay;l&&k.add({delay:l})},g=(a,l)=>(k.add(a),h(l),this),y=()=>ee??N,_=(a={})=>[{func:()=>M(a)},{func:()=>M(o)}],b=a=>{let l=o.nextStringDelay;k.add([{delay:l[0]},...a,{delay:l[1]}])},p=()=>{if(n())return;let a=R("span");return a.className=E,te?(a.innerHTML=ce(o.cursorChar).innerHTML,a):(a.style.visibility="hidden",a)},v=async()=>{if(!n()&&C&&f.appendChild(C),te){Bt(V,f),C.dataset.tiAnimationId=V;let{animation:a}=o.cursor,{frames:l,options:d}=a;ke({frames:l,cursor:C,options:{duration:o.cursorSpeed,...d}})}},P=()=>{let a=o.strings.filter(l=>!!l);a.forEach((l,d)=>{if(this.type(l),d+1===a.length)return;let c=o.breakLines?[{func:()=>$(R("BR")),typeable:!0}]:H({func:B,delay:u(1)},k.getTypeable().length);b(c)})},we=async a=>{let l=y();l&&await Z({value:l});let d=m().map(c=>[Symbol(),{func:B,delay:u(1),deletable:!0,shouldPauseCursor:()=>!0}]);for(let c=0;c{let l=f.innerHTML;return l?(f.innerHTML="",o.startDelete?(f.innerHTML=l,X(f),b(H({func:B,delay:u(1),deletable:!0},m().length)),a):l.replace(//g,"").trim().split(//).concat(a)):a},L=async(a=!0)=>{x.started=!0;let l=d=>{k.done(d,!a)};try{let d=[...k.getQueue()];for(let w=0;wU+q).forEach(U=>{let[q]=d[U];l(q)}),w=z}l(S)}}if(!a)return this;if(x.completed=!0,await o.afterComplete(this),!o.loop)throw"";let c=o.loopDelay;r(async()=>{await we(c[0]),L()},c[1])}catch{}return this},Z=async a=>{N=Pt(a,N,m()),It(f,m(),N)},$=a=>Et(f,a),M=async a=>o=D(o,a),xe=async()=>{if(n()){f.value="";return}m().forEach(i)},B=()=>{let a=m();a.length&&(n()?f.value=f.value.slice(0,-1):i(a[N]))};this.break=function(a){return g({func:()=>$(R("BR")),typeable:!0},a)},this.delete=function(a=null,l={}){a=I(a);let d=_(l),c=a,{instant:w,to:S}=l,T=k.getTypeable(),z=(()=>c===null?T.length:ye(c)?c:oe({queueItems:T,selector:c,cursorPosition:y(),to:S}))();return g([d[0],...H({func:B,delay:w?0:u(1),deletable:!0},z),d[1]],l)},this.empty=function(a={}){return g({func:xe},a)},this.exec=function(a,l={}){let d=_(l);return g([d[0],{func:()=>a(this)},d[1]],l)},this.move=function(a,l={}){a=I(a);let d=_(l),{instant:c,to:w}=l,S=oe({queueItems:k.getTypeable(),selector:a===null?"":a,to:w,cursorPosition:y()}),T=S<0?-1:1;return ee=y()+S,g([d[0],...H({func:()=>Z(T),delay:c?0:u(),cursorable:!0},Math.abs(S)),d[1]],l)},this.options=function(a,l={}){return a=I(a),M(a),g({},l)},this.pause=function(a,l={}){return g({delay:I(a)},l)},this.type=function(a,l={}){a=I(a);let{instant:d}=l,c=_(l),S=vt(a,o.html).map(z=>({func:()=>$(z),char:z,delay:d||Dt(z)?0:u(),typeable:z.nodeType===Node.TEXT_NODE})),T=[c[0],{func:async()=>await o.beforeString(a,this)},...S,{func:async()=>await o.afterString(a,this)},c[1]];return g(T,l)},this.is=function(a){return x[a]},this.destroy=function(a=!0){Q=Tt(Q),I(a)&&C&&i(C),x.destroyed=!0},this.freeze=function(){x.frozen=!0},this.unfreeze=()=>{},this.reset=function(a){!this.is("destroyed")&&this.destroy(),a?(k.wipe(),a(this)):k.reset(),N=0;for(let l in x)x[l]=!1;return f[n()?"value":"innerHTML"]="",this},this.go=function(){return x.started?this:(v(),o.waitUntilVisible?(Ct(f,L.bind(this)),this):(L(),this))},this.flush=function(a=()=>{}){return v(),L(!1).then(a),this},this.getQueue=()=>k,this.getOptions=()=>o,this.updateOptions=a=>M(a),this.getElement=()=>f;let f=At(e),Q=[],N=0,ee=null,x=D({},_t);t.cursor=Ft(t.cursor??A.cursor);let o=D(A,t);o=D(o,{html:!n()&&o.html,nextStringDelay:se(o.nextStringDelay),loopDelay:se(o.loopDelay)});let V=St(),k=ft([{delay:o.startDelay}]);f.dataset.typeitId=V,fe(kt);let te=!!o.cursor&&!n(),C=p();o.strings=ve(ge(o.strings)),o.strings.length&&P()},$t={id:"hero",class:"container min-h-screen mx-auto pt-20 px-2"},Qt={id:"media",class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-8 pt-24"},Vt=Pe('mediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamedia',38),Ut=[Vt],qt={key:0,class:"flex mx-auto flex-col justify-start px-2 mt-48 border-t border-gray-200 dark:border-gray-900"},Wt={class:"flex flex-col justify-start"},Jt=j("div",{class:"mx-auto -mt-20 w-36 h-36 lg:w-36 lg:h-36 bg-[url('/img/togw-logomark-app-black-on-white.jpg')] dark:bg-[url('/img/togw-logomark-app-white-on-zinc.jpg')] bg-contain"},null,-1),Gt=j("h2",{class:"mt-4 font-black text-3xl"},"העבודה הגדולה האחת",-1),Kt=j("p",{class:"mx-auto mt-4 mb-2 font-thin text-sm text-center tracking-wider text-gray-500"},"הכל זה אהבה, פחד הוא אשליה, כל היצורים חופשיים והאמת לעולם לא ניתנת להכחדה",-1),Yt={__name:"index",emits:["doneTyping"],setup(e,{emit:t}){const r=W([]),s=W([]);Te(()=>{m()});function i(){window.scrollTo(0,document.body.scrollHeight)}const n=W(!1),u=()=>{t("doneTyping",n.value=!0)},m=function(){new me(s.value,{strings:[],speed:120,waitUntilVisible:!0,afterComplete:function(y){y.destroy(),h()}}).pause(3333).type("העבודה ").options({speed:80}).type("האמיתית ").pause(333).delete(8).type("החשובה ").pause(222).delete(7).pause(140).type("ה").pause(555).type("יחידה").pause(666).delete(7).type(" הגדולה האחת").type("").go()},h=function(){new me(r.value,{strings:[],speed:60,waitUntilVisible:!0,afterStep:()=>{i()},afterComplete:y=>{y.destroy(),i(),u()}}).pause(2222).options({speed:30}).type("תודה שהגעתם לאתר של קבוצת ").options({speed:50}).type('העבודה הגדולה האחת. ').pause(777).options({speed:25}).type("פה תוכלו לרכוש ידע על הכוח של עצמכם ואיך להשתמש בו. ").pause(777).options({speed:40}).type("מכם זה ידרוש זמן, ").pause(444).options({speed:30}).type("תשומת לב, ").pause(333).type("וכמובן רצון ללמוד איתנו את גוף הידע הנסתר שאנו לומדים ומקדמים בקבוצה. ").pause(500).type("לעזרכם:").options({speed:80}).move(-3).type("ת").move(3).pause(500).move(-10).pause(200).type(" ובאתר").pause(200).move(10).type("
").type("
").options({speed:50}).type('גוף הידע הנסתר:').type("
").type("
").type('✅  סמינר החוק הטבעי האמיתי').type("
").type('✅  עבודת התזה').type("
").options({speed:25}).type('✅  כל השקופיות').type("
").type('✅  שאלות עזר').type("
").type("
").type('ידע נלווה לחוק הטבעי האמיתי:').type("
").type("
").type('⚖️  מהי האמת?').type("
").type('👑  מהי העבודה הגדולה האחת?').type("
").type('👁  מה זה אומר להיות ער באמת?').type("
").type('😈  מה זה שטניזם באמת?').type("
").type('❤️  מהי אהבת אמת?').type("
").type('😱  מהו הפחד מהקרבה?').type("
").type('🛠  מהי עבודת הצללים?').type("
").type('😡  מהי המתנה המקודשת של כעס?').type("
").type('🙅‍♀️  מהי הנשיות הבלתי מקודשת?').type("
").type('🙅‍♂️  מהו בולשיט העידן החדש?').type("
").type('☠️  מהם שבעת החטאים האמיתיים?').type("
").type('🧠  מהי לוחמה פסיכולוגית?').type("
").type('💎  מהו הטריביום?').type("
").type('🕊  מהו הפתרון היחיד לשיעבוד?').type("
").type("
").type('למידה פוריה !').type("
").type("
").type("⚖️ 🕊 ❤️").type("
").type("
").type('והנה מספר קבצי מדיה שיתנו לכם השראה ויעזרו לכם לחדד את המסר כשאתם משתפים עם משפחה וחברים...').type("
").type("
").type("🙏 👇").go()};return(g,y)=>{const _=Ee,b=Ie;return le(),ae("div",$t,[j("h1",{ref_key:"typingTitle",ref:s,class:"font-black text-6xl md:text-8xl lg:text-9xl tracking-[-0.0125em] mt-12"},null,512),j("div",{ref_key:"typingBody",ref:r,class:Se([J(n)?"mb-4":"mb-24 md:mb-36 lg:mb-48","font-thin text-3xl md:text-4xl lg:text-5xl leading-[2.4rem] md:leading-[3rem] lg:leading-[4rem] mt-12 md:mt-16 lg:mt-20"])},null,2),ze(j("div",Qt,Ut,512),[[Ce,J(n)]]),J(n)?(le(),ae("footer",qt,[j("div",Wt,[G(_,{to:"#hero",class:"flex flex-1 flex-col justify-center mx-auto"},{default:re(()=>[Jt,Gt]),_:1}),G(b,{to:"https://t.me/theonegreatwork",target:"_blank",label:"בטלגרם",color:"primary",variant:"solid",size:"md",class:"mx-auto mt-3 mb-6 hover:scale-[1.1] hover:rotate-[6deg]"}),Kt,G(_,{to:"https://t.me/lexxrex",target:"_blank",class:"mx-auto mt-0 mb-4 font-thin text-xs"},{default:re(()=>[Ne(" Made with ❤️ by Lex ")]),_:1})])])):je("",!0)])}}};export{Yt as default}; +import{r as W,g as Te,c as ae,a as j,n as Se,h as J,i as ze,v as Ce,b as G,w as re,j as je,e as Ee,k as Pe,o as le,d as Ne,l as Ie}from"./entry.9faa54b8.js";import{_ as Ae,a as De,b as Le,c as Me,d as Be,e as He,f as Re,g as Fe,h as $e,i as Qe,j as Ve,k as Ue,l as qe,m as We,n as Je,o as Ge,p as Ke,q as Xe,r as Oe,s as Ye,t as Ze,u as et,v as tt,w as at,x as rt,y as lt,z as st,A as nt,B as it,C as ot,D as dt,E as mt,F as ut,G as gt,H as pt,I as ct,J as ht,K as bt}from"./togw-turn-truth-religion.5da97e1c.js";const ue=e=>Array.isArray(e),ge=e=>ue(e)?e:[e];let ft=function(e){let t=function(p){return ge(p).forEach(v=>{var P;return b.set(Symbol((P=v.char)==null?void 0:P.innerText),i({...v}))}),this},r=()=>h().filter(p=>p.typeable),s=function(p,v){let P=[...b.keys()];b.set(P[p],i(v))},i=p=>(p.shouldPauseCursor=function(){return!!(this.typeable||this.cursorable||this.deletable)},p),n=function(){b.forEach(p=>delete p.done)},u=function(){b=new Map,t(e)},m=()=>b,h=()=>Array.from(b.values()),g=p=>b.delete(p),y=(p=!1)=>p?h():h().filter(v=>!v.done),_=(p,v=!1)=>v?b.delete(p):b.get(p).done=!0,b=new Map;return t(e),{add:t,set:s,wipe:u,reset:n,destroy:g,done:_,getItems:y,getQueue:m,getTypeable:r}};const pe=e=>Array.from(e),K=e=>document.createTextNode(e);let X=e=>([...e.childNodes].forEach(t=>{if(t.nodeValue){[...t.nodeValue].forEach(r=>{t.parentNode.insertBefore(K(r),t)}),t.remove();return}X(t)}),e);const ce=e=>{let t=document.implementation.createHTMLDocument();return t.body.innerHTML=e,X(t.body)},he="data-typeit-id",E="ti-cursor",yt="END",_t={started:!1,completed:!1,frozen:!1,destroyed:!1},A={breakLines:!0,cursor:{autoPause:!0,autoPauseDelay:500,animation:{frames:[0,0,1].map(e=>({opacity:e})),options:{iterations:1/0,easing:"steps(2, start)",fill:"forwards"}}},cursorChar:"|",cursorSpeed:1e3,deleteSpeed:null,html:!0,lifeLike:!0,loop:!1,loopDelay:750,nextStringDelay:750,speed:100,startDelay:250,startDelete:!1,strings:[],waitUntilVisible:!1,beforeString:()=>{},afterString:()=>{},beforeStep:()=>{},afterStep:()=>{},afterComplete:()=>{}},kt=`[${he}]:before {content: '.'; display: inline-block; width: 0; visibility: hidden;}`;function be(e,t=!1,r=!1){let s=e.querySelector(`.${E}`),i=document.createTreeWalker(e,NodeFilter.SHOW_ALL,{acceptNode:m=>{var h,g;if(s&&r){if((h=m.classList)!=null&&h.contains(E))return NodeFilter.FILTER_ACCEPT;if(s.contains(m))return NodeFilter.FILTER_REJECT}return(g=m.classList)!=null&&g.contains(E)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),n,u=[];for(;n=i.nextNode();)n.originalParent||(n.originalParent=n.parentNode),u.push(n);return t?u.reverse():u}function wt(e){return be(ce(e))}function vt(e,t=!0){return t?wt(e):pe(e).map(K)}const R=e=>document.createElement(e),fe=(e,t="")=>{let r=R("style");r.id=t,r.appendChild(K(e)),document.head.appendChild(r)},se=e=>(ue(e)||(e=[e/2,e/2]),e),ne=(e,t)=>Math.abs(Math.random()*(e+t-(e-t))+(e-t));let ie=e=>e/2;function xt(e){let{speed:t,deleteSpeed:r,lifeLike:s}=e;return r=r!==null?r:t/3,s?[ne(t,ie(t)),ne(r,ie(r))]:[t,r]}const Tt=e=>(e.forEach(clearTimeout),[]),St=()=>Math.random().toString().substring(2,9),O=e=>"value"in e;let zt=e=>O(e)?pe(e.value):be(e,!0).filter(t=>!(t.childNodes.length>0));const Ct=(e,t)=>{new IntersectionObserver((s,i)=>{s.forEach(n=>{n.isIntersecting&&(t(),i.unobserve(e))})},{threshold:1}).observe(e)};let I=e=>typeof e=="function"?e():e;const ye=e=>Number.isInteger(e);let Y=(e,t=document,r=!1)=>t[`querySelector${r?"All":""}`](e),jt=e=>/body/i.test(e==null?void 0:e.tagName),Et=(e,t)=>{if(O(e)){e.value=`${e.value}${t.textContent}`;return}t.innerHTML="";let r=jt(t.originalParent)?e:t.originalParent||e;r.insertBefore(t,Y("."+E,r)||null)},Pt=(e,t,r)=>Math.min(Math.max(t+e,0),r.length);const D=(e,t)=>Object.assign({},e,t),Nt=(e,t)=>{if(!e)return;let r=e.parentNode;(r.childNodes.length>1||r.isSameNode(t)?e:r).remove()},It=(e,t,r)=>{let s=t[r-1],i=Y(`.${E}`,e);e=(s==null?void 0:s.parentNode)||e,e.insertBefore(i,s||null)};function At(e){return typeof e=="string"?Y(e):e}const Dt=e=>/<(.+)>(.*?)<\/(.+)>/.test(e.outerHTML);let Lt=(e,t,r)=>new Promise(s=>{let i=async()=>{await e(),s()};r.push(setTimeout(i,t||0))}),Mt={"font-family":"","font-weight":"","font-size":"","font-style":"","line-height":"",color:"",transform:"translateX(-.125em)"},Bt=(e,t)=>{let s=`${`[${he}='${e}']`} .${E}`,i=getComputedStyle(t),n=Object.entries(Mt).reduce((u,[m,h])=>`${u} ${m}: var(--ti-cursor-${m}, ${h||i[m]});`,"");fe(`${s} { display: inline-block; width: 0; ${n} }`,e)};const H=(e,t)=>new Array(t).fill(e),oe=({queueItems:e,selector:t,cursorPosition:r,to:s})=>{if(ye(t))return t*-1;let i=new RegExp(yt,"i").test(s),n=t?[...e].reverse().findIndex(({char:m})=>{let h=m.parentElement,g=h.matches(t);return i&&g?!0:g&&h.firstChild.isSameNode(m)}):-1;n<0&&(n=i?0:e.length-1);let u=i?0:1;return n-r+u};let F=e=>new Promise(t=>{requestAnimationFrame(async()=>{t(await e())})}),_e=e=>e==null?void 0:e.getAnimations().find(t=>t.id===e.dataset.tiAnimationId),ke=({cursor:e,frames:t,options:r})=>{let s=e.animate(t,r);return s.pause(),s.id=e.dataset.tiAnimationId,F(()=>{F(()=>{s.play()})}),s},Ht=({cursor:e,options:t,cursorOptions:r})=>{if(!e||!r)return;let s=_e(e),i;s&&(t.delay=s.effect.getComputedTiming().delay,i=s.currentTime,s.cancel());let n=ke({cursor:e,frames:r.animation.frames,options:t});return i&&(n.currentTime=i),n},de=e=>{var t;return(t=e.func)==null?void 0:t.call(null)},Rt=async({index:e,queueItems:t,wait:r,cursor:s,cursorOptions:i})=>{let n=t[e][1],u=[],m=e,h=n,g=()=>h&&!h.delay,y=n.shouldPauseCursor()&&i.autoPause;for(;g();)u.push(h),g()&&m++,h=t[m]?t[m][1]:null;if(u.length)return await F(async()=>{for(let p of u)await de(p)}),m-1;let _=_e(s),b;return _&&(b={..._.effect.getComputedTiming(),delay:y?i.autoPauseDelay:0}),await r(async()=>{_&&y&&_.cancel(),await F(()=>{de(n)})},n.delay),await Ht({cursor:s,options:b,cursorOptions:i}),e},Ft=e=>{var t,r;if(typeof e=="object"){let s={},{frames:i,options:n}=A.cursor.animation;return s.animation=e.animation||{},s.animation.frames=((t=e.animation)==null?void 0:t.frames)||i,s.animation.options=D(n,((r=e.animation)==null?void 0:r.options)||{}),s.autoPause=e.autoPause??A.cursor.autoPause,s.autoPauseDelay=e.autoPauseDelay||A.cursor.autoPauseDelay,s}return e===!0?A.cursor:e};const me=function(e,t={}){let r=async(a,l,d=!1)=>{x.frozen&&await new Promise(c=>{this.unfreeze=()=>{x.frozen=!1,c()}}),d||await o.beforeStep(this),await Lt(a,l,Q),d||await o.afterStep(this)},s=(a,l)=>Rt({index:a,queueItems:l,wait:r,cursor:C,cursorOptions:o.cursor}),i=a=>Nt(a,f),n=()=>O(f),u=(a=0)=>xt(o)[a],m=()=>zt(f),h=(a={})=>{let l=a.delay;l&&k.add({delay:l})},g=(a,l)=>(k.add(a),h(l),this),y=()=>ee??N,_=(a={})=>[{func:()=>M(a)},{func:()=>M(o)}],b=a=>{let l=o.nextStringDelay;k.add([{delay:l[0]},...a,{delay:l[1]}])},p=()=>{if(n())return;let a=R("span");return a.className=E,te?(a.innerHTML=ce(o.cursorChar).innerHTML,a):(a.style.visibility="hidden",a)},v=async()=>{if(!n()&&C&&f.appendChild(C),te){Bt(V,f),C.dataset.tiAnimationId=V;let{animation:a}=o.cursor,{frames:l,options:d}=a;ke({frames:l,cursor:C,options:{duration:o.cursorSpeed,...d}})}},P=()=>{let a=o.strings.filter(l=>!!l);a.forEach((l,d)=>{if(this.type(l),d+1===a.length)return;let c=o.breakLines?[{func:()=>$(R("BR")),typeable:!0}]:H({func:B,delay:u(1)},k.getTypeable().length);b(c)})},we=async a=>{let l=y();l&&await Z({value:l});let d=m().map(c=>[Symbol(),{func:B,delay:u(1),deletable:!0,shouldPauseCursor:()=>!0}]);for(let c=0;c{let l=f.innerHTML;return l?(f.innerHTML="",o.startDelete?(f.innerHTML=l,X(f),b(H({func:B,delay:u(1),deletable:!0},m().length)),a):l.replace(//g,"").trim().split(//).concat(a)):a},L=async(a=!0)=>{x.started=!0;let l=d=>{k.done(d,!a)};try{let d=[...k.getQueue()];for(let w=0;wU+q).forEach(U=>{let[q]=d[U];l(q)}),w=z}l(S)}}if(!a)return this;if(x.completed=!0,await o.afterComplete(this),!o.loop)throw"";let c=o.loopDelay;r(async()=>{await we(c[0]),L()},c[1])}catch{}return this},Z=async a=>{N=Pt(a,N,m()),It(f,m(),N)},$=a=>Et(f,a),M=async a=>o=D(o,a),xe=async()=>{if(n()){f.value="";return}m().forEach(i)},B=()=>{let a=m();a.length&&(n()?f.value=f.value.slice(0,-1):i(a[N]))};this.break=function(a){return g({func:()=>$(R("BR")),typeable:!0},a)},this.delete=function(a=null,l={}){a=I(a);let d=_(l),c=a,{instant:w,to:S}=l,T=k.getTypeable(),z=(()=>c===null?T.length:ye(c)?c:oe({queueItems:T,selector:c,cursorPosition:y(),to:S}))();return g([d[0],...H({func:B,delay:w?0:u(1),deletable:!0},z),d[1]],l)},this.empty=function(a={}){return g({func:xe},a)},this.exec=function(a,l={}){let d=_(l);return g([d[0],{func:()=>a(this)},d[1]],l)},this.move=function(a,l={}){a=I(a);let d=_(l),{instant:c,to:w}=l,S=oe({queueItems:k.getTypeable(),selector:a===null?"":a,to:w,cursorPosition:y()}),T=S<0?-1:1;return ee=y()+S,g([d[0],...H({func:()=>Z(T),delay:c?0:u(),cursorable:!0},Math.abs(S)),d[1]],l)},this.options=function(a,l={}){return a=I(a),M(a),g({},l)},this.pause=function(a,l={}){return g({delay:I(a)},l)},this.type=function(a,l={}){a=I(a);let{instant:d}=l,c=_(l),S=vt(a,o.html).map(z=>({func:()=>$(z),char:z,delay:d||Dt(z)?0:u(),typeable:z.nodeType===Node.TEXT_NODE})),T=[c[0],{func:async()=>await o.beforeString(a,this)},...S,{func:async()=>await o.afterString(a,this)},c[1]];return g(T,l)},this.is=function(a){return x[a]},this.destroy=function(a=!0){Q=Tt(Q),I(a)&&C&&i(C),x.destroyed=!0},this.freeze=function(){x.frozen=!0},this.unfreeze=()=>{},this.reset=function(a){!this.is("destroyed")&&this.destroy(),a?(k.wipe(),a(this)):k.reset(),N=0;for(let l in x)x[l]=!1;return f[n()?"value":"innerHTML"]="",this},this.go=function(){return x.started?this:(v(),o.waitUntilVisible?(Ct(f,L.bind(this)),this):(L(),this))},this.flush=function(a=()=>{}){return v(),L(!1).then(a),this},this.getQueue=()=>k,this.getOptions=()=>o,this.updateOptions=a=>M(a),this.getElement=()=>f;let f=At(e),Q=[],N=0,ee=null,x=D({},_t);t.cursor=Ft(t.cursor??A.cursor);let o=D(A,t);o=D(o,{html:!n()&&o.html,nextStringDelay:se(o.nextStringDelay),loopDelay:se(o.loopDelay)});let V=St(),k=ft([{delay:o.startDelay}]);f.dataset.typeitId=V,fe(kt);let te=!!o.cursor&&!n(),C=p();o.strings=ve(ge(o.strings)),o.strings.length&&P()},$t={id:"hero",class:"container min-h-screen mx-auto pt-20 px-2"},Qt={id:"media",class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-8 pt-24"},Vt=Pe('mediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamediamedia',38),Ut=[Vt],qt={key:0,class:"flex mx-auto flex-col justify-start px-2 mt-48 border-t border-gray-200 dark:border-gray-900"},Wt={class:"flex flex-col justify-start"},Jt=j("div",{class:"mx-auto -mt-20 w-36 h-36 lg:w-36 lg:h-36 bg-[url('/img/togw-logomark-app-black-on-white.jpg')] dark:bg-[url('/img/togw-logomark-app-white-on-zinc.jpg')] bg-contain"},null,-1),Gt=j("h2",{class:"mt-4 font-black text-3xl"},"העבודה הגדולה האחת",-1),Kt=j("p",{class:"mx-auto mt-4 mb-2 font-thin text-sm text-center tracking-wider text-gray-500"},"הכל זה אהבה, פחד הוא אשליה, כל היצורים חופשיים והאמת לעולם לא ניתנת להכחדה",-1),Yt={__name:"index",emits:["doneTyping"],setup(e,{emit:t}){const r=W([]),s=W([]);Te(()=>{m()});function i(){window.scrollTo(0,document.body.scrollHeight)}const n=W(!1),u=()=>{t("doneTyping",n.value=!0)},m=function(){new me(s.value,{strings:[],speed:120,waitUntilVisible:!0,afterComplete:function(y){y.destroy(),h()}}).pause(3333).type("העבודה ").options({speed:80}).type("האמיתית ").pause(333).delete(8).type("החשובה ").pause(222).delete(7).pause(140).type("ה").pause(555).type("יחידה").pause(666).delete(7).type(" הגדולה האחת").type("").go()},h=function(){new me(r.value,{strings:[],speed:60,waitUntilVisible:!0,afterStep:()=>{i()},afterComplete:y=>{y.destroy(),i(),u()}}).pause(2222).options({speed:30}).type("תודה שהגעתם לאתר של קבוצת ").options({speed:50}).type('העבודה הגדולה האחת. ').pause(777).options({speed:25}).type("פה תוכלו לרכוש ידע על הכוח של עצמכם ואיך להשתמש בו. ").pause(777).options({speed:40}).type("מכם זה ידרוש זמן, ").pause(444).options({speed:30}).type("תשומת לב, ").pause(333).type("וכמובן רצון ללמוד איתנו את גוף הידע הנסתר שאנו לומדים ומקדמים בקבוצה. ").pause(500).type("לעזרכם:").options({speed:80}).move(-3).type("ת").move(3).pause(500).move(-10).pause(200).type(" ובאתר").pause(200).move(10).type("
").type("
").options({speed:50}).type('גוף הידע הנסתר:').type("
").type("
").type('✅  סמינר החוק הטבעי האמיתי').type("
").type('✅  עבודת התזה').type("
").options({speed:25}).type('✅  כל השקופיות').type("
").type('✅  שאלות עזר').type("
").type("
").type('ידע נלווה לחוק הטבעי האמיתי:').type("
").type("
").type('⚖️  מהי האמת?').type("
").type('👑  מהי העבודה הגדולה האחת?').type("
").type('👁  מה זה אומר להיות ער באמת?').type("
").type('😈  מה זה שטניזם באמת?').type("
").type('❤️  מהי אהבת אמת?').type("
").type('😱  מהו הפחד מהקרבה?').type("
").type('🛠  מהי עבודת הצללים?').type("
").type('😡  מהי המתנה המקודשת של כעס?').type("
").type('🙅‍♀️  מהי הנשיות הבלתי מקודשת?').type("
").type('🙅‍♂️  מהו בולשיט העידן החדש?').type("
").type('☠️  מהם שבעת החטאים האמיתיים?').type("
").type('🧠  מהי לוחמה פסיכולוגית?').type("
").type('💎  מהו הטריביום?').type("
").type('🕊  מהו הפתרון היחיד לשיעבוד?').type("
").type("
").type('למידה פוריה !').type("
").type("
").type("⚖️ 🕊 ❤️").type("
").type("
").type('והנה מספר קבצי מדיה שיתנו לכם השראה ויעזרו לכם לחדד את המסר כשאתם משתפים עם משפחה וחברים...').type("
").type("
").type("🙏 👇").go()};return(g,y)=>{const _=Ee,b=Ie;return le(),ae("div",$t,[j("h1",{ref_key:"typingTitle",ref:s,class:"font-black text-6xl md:text-8xl lg:text-9xl tracking-[-0.0125em] mt-12"},null,512),j("div",{ref_key:"typingBody",ref:r,class:Se([J(n)?"mb-4":"mb-24 md:mb-36 lg:mb-48","font-thin text-3xl md:text-4xl lg:text-5xl leading-[2.4rem] md:leading-[3rem] lg:leading-[4rem] mt-12 md:mt-16 lg:mt-20"])},null,2),ze(j("div",Qt,Ut,512),[[Ce,J(n)]]),J(n)?(le(),ae("footer",qt,[j("div",Wt,[G(_,{to:"#hero",class:"flex flex-1 flex-col justify-center mx-auto"},{default:re(()=>[Jt,Gt]),_:1}),G(b,{to:"https://t.me/theonegreatwork",target:"_blank",label:"בטלגרם",color:"primary",variant:"solid",size:"md",class:"mx-auto mt-3 mb-6 hover:scale-[1.1] hover:rotate-[6deg]"}),Kt,G(_,{to:"https://t.me/lexxrex",target:"_blank",class:"mx-auto mt-0 mb-4 font-thin text-xs"},{default:re(()=>[Ne(" Made with ❤️ by Lex ")]),_:1})])])):je("",!0)])}}};export{Yt as default}; diff --git a/_nuxt/media.b5a5538f.js b/_nuxt/media.f9af00c6.js similarity index 98% rename from _nuxt/media.b5a5538f.js rename to _nuxt/media.f9af00c6.js index dd72442..a62a931 100644 --- a/_nuxt/media.b5a5538f.js +++ b/_nuxt/media.f9af00c6.js @@ -1 +1 @@ -import{_ as a,a as e,b as r,c as i,d as g,e as o,f as d,g as l,h as t,i as m,j as s,k as n,l as h,m as c,n as b,o as p,p as _,q as k,r as v,s as w,t as u,u as f,v as y,w as j,x as z,y as x,z as B,A as C,B as E,C as q,D as A,E as D,F,G,H,I,J,K}from"./togw-turn-truth-religion.3c14a7c2.js";import{m as N,o as S,c as V,k as L}from"./entry.85cabd99.js";const M={class:"container min-h-screen mx-auto pt-20 px-2"},O=L('',1),P=[O],X=N({__name:"media",setup(Q){return(R,T)=>(S(),V("div",M,P))}});export{X as default}; +import{_ as a,a as e,b as r,c as i,d as g,e as o,f as d,g as l,h as t,i as m,j as s,k as n,l as h,m as c,n as b,o as p,p as _,q as k,r as v,s as w,t as u,u as f,v as y,w as j,x as z,y as x,z as B,A as C,B as E,C as q,D as A,E as D,F,G,H,I,J,K}from"./togw-turn-truth-religion.5da97e1c.js";import{m as N,o as S,c as V,k as L}from"./entry.9faa54b8.js";const M={class:"container min-h-screen mx-auto pt-20 px-2"},O=L('',1),P=[O],X=N({__name:"media",setup(Q){return(R,T)=>(S(),V("div",M,P))}});export{X as default}; diff --git a/_nuxt/profile.2f135342.js b/_nuxt/profile.07517d5a.js similarity index 98% rename from _nuxt/profile.2f135342.js rename to _nuxt/profile.07517d5a.js index 5f6bae6..47fed86 100644 --- a/_nuxt/profile.2f135342.js +++ b/_nuxt/profile.07517d5a.js @@ -1 +1 @@ -import{u as U,_ as M,a as R,b as T}from"./Container.1e0523ab.js";import{q as x,r as p,s as D,o as f,c as b,h as s,x as O,a as u,t as A,j as B,y as E,z as F,b as h,w as L,e as P,_ as G,m as H,A as W,B as v,C as J,D as y,E as Y,g as K,F as k,G as Q,H as N,n as C,I as X,J as Z,d as q,l as ee}from"./entry.85cabd99.js";const ae={key:2,style:{width:"10em",position:"relative"}},ne={class:"button primary block",for:"single"},te=["disabled"],le={__name:"Avatar",props:["path","showUpload"],emits:["update:path","upload","alt"],setup(e,{emit:n}){const o=e,{path:l}=x(o),{alt:a}=x(o),t=U(),i=p(!1),r=p(""),g=p(),c=async()=>{try{const{data:_,error:m}=await t.storage.from("avatars").download(l.value);if(m)throw m;r.value=URL.createObjectURL(_)}catch(_){console.error("Error downloading image: ",_.message)}},d=async _=>{g.value=_.target.files;try{if(i.value=!0,!g.value||g.value.length===0)throw new Error("You must select an image to upload.");const m=g.value[0],I=m.name.split(".").pop(),w=`${`${Math.random()}.${I}`}`,{error:S}=await t.storage.from("avatars").upload(w,m);if(S)throw S;n("update:path",w),n("upload")}catch(m){alert(m.message)}finally{i.value=!1}};return c(),D(l,()=>{l.value&&c()}),(_,m)=>{const I=M;return f(),b("div",null,[s(r)?(f(),O(I,{key:0,src:s(r),size:"2xl"},null,8,["src"])):(f(),O(I,{key:1,alt:s(a),size:"2xl"},null,8,["alt"])),_.upload?(f(),b("div",ae,[u("label",ne,A(s(i)?"Uploading ...":"Upload"),1),u("input",{id:"single",style:{position:"absolute",visibility:"hidden"},type:"file",accept:"image/*",disabled:s(i),onChange:d},null,40,te)])):B("",!0)])}}},oe={class:"text-xl font-bold"},ie={class:""},se={__name:"Account",async setup(e){let n,o;const l=U(),a=E(),t=p(!0),i=p(""),r=p(""),g=p(""),c=p("");t.value=!0;const{data:d}=([n,o]=F(()=>l.from("profiles").select("username, website, avatar_url, full_name").eq("id",a.value.id).single()),n=await n,o(),n);return d&&(i.value=d.username,r.value=d.website,g.value=d.avatar_url,c.value=d.full_name),t.value=!1,(_,m)=>{const I=le,z=R,w=P;return f(),b("div",null,[h(I,{path:s(g)},null,8,["path"]),u("h1",oe,A(s(c)),1),u("div",ie,A("@"+s(i)),1),u("div",null,A(s(a).email),1),h(w,{to:s(r),target:"_blank"},{default:L(()=>[h(z,{variant:"theme",size:"xs",label:s(r)},null,8,["label"])]),_:1},8,["to"])])}}},re=H({components:{UIcon:W},inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},name:{type:String,default:null},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>v.ui.input.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:null},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:()=>v.ui.input.default.size,validator(e){return Object.keys(v.ui.input.size).includes(e)}},color:{type:String,default:()=>v.ui.input.default.color,validator(e){return[...v.ui.colors,...Object.keys(v.ui.input.color)].includes(e)}},variant:{type:String,default:()=>v.ui.input.default.variant,validator(e){return[...Object.keys(v.ui.input.variant),...Object.values(v.ui.input.color).flatMap(n=>Object.keys(n))].includes(e)}},ui:{type:Object,default:()=>v.ui.input}},emits:["update:modelValue"],setup(e,{emit:n,slots:o}){const l=J(),a=y(()=>Y({},e.ui,l.ui.input)),t=p(null),i=()=>{var $;e.autofocus&&(($=t.value)==null||$.focus())},r=$=>{n("update:modelValue",$.target.value)};K(()=>{setTimeout(()=>{i()},100)});const g=y(()=>{var V,j;const $=((j=(V=a.value.color)==null?void 0:V[e.color])==null?void 0:j[e.variant])||a.value.variant[e.variant];return k(a.value.base,a.value.rounded,a.value.placeholder,a.value.size[e.size],e.padded?a.value.padding[e.size]:"p-0",$==null?void 0:$.replaceAll("{color}",e.color),(c.value||o.leading)&&a.value.leading.padding[e.size],(d.value||o.trailing)&&a.value.trailing.padding[e.size])}),c=y(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),d=y(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),_=y(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),m=y(()=>e.loading&&!c.value?e.loadingIcon:e.trailingIcon||e.icon),I=y(()=>k(a.value.icon.leading.wrapper,a.value.icon.leading.pointer,a.value.icon.leading.padding[e.size])),z=y(()=>k(a.value.icon.base,l.ui.colors.includes(e.color)&&a.value.icon.color.replaceAll("{color}",e.color),a.value.icon.size[e.size],e.loading&&"animate-spin")),w=y(()=>k(a.value.icon.trailing.wrapper,a.value.icon.trailing.pointer,a.value.icon.trailing.padding[e.size])),S=y(()=>k(a.value.icon.base,l.ui.colors.includes(e.color)&&a.value.icon.color.replaceAll("{color}",e.color),a.value.icon.size[e.size],e.loading&&!c.value&&"animate-spin"));return{ui:a,input:t,isLeading:c,isTrailing:d,inputClass:g,leadingIconName:_,leadingIconClass:z,leadingWrapperIconClass:I,trailingIconName:m,trailingIconClass:S,trailingWrapperIconClass:w,onInput:r}}}),ue=["id","name","value","type","required","placeholder","disabled"];function ce(e,n,o,l,a,t){const i=W;return f(),b("div",{class:C(e.ui.wrapper)},[u("input",Q({id:e.name,ref:"input",name:e.name,value:e.modelValue,type:e.type,required:e.required,placeholder:e.placeholder,disabled:e.disabled||e.loading,class:["form-input",e.inputClass]},e.$attrs,{onInput:n[0]||(n[0]=(...r)=>e.onInput&&e.onInput(...r))}),null,16,ue),N(e.$slots,"default"),e.isLeading&&e.leadingIconName||e.$slots.leading?(f(),b("span",{key:0,class:C(e.leadingWrapperIconClass)},[N(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[h(i,{name:e.leadingIconName,class:C(e.leadingIconClass)},null,8,["name","class"])])],2)):B("",!0),e.isTrailing&&e.trailingIconName||e.$slots.trailing?(f(),b("span",{key:1,class:C(e.trailingWrapperIconClass)},[N(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[h(i,{name:e.trailingIconName,class:C(e.trailingIconClass)},null,8,["name","class"])])],2)):B("",!0)],2)}const de=G(re,[["render",ce]]),ge=["onSubmit"],me=u("h1",{class:"text-3xl font-black"}," ההרשמה הגדולה האחת ",-1),pe=u("hr",{class:"mb-4 mt-6 border-l-gray-100 dark:border-gray-900"},null,-1),fe=u("p",{class:"my-4 text-lg text-gray-800 dark:text-gray-300"},[q(" כניסה באמצעות "),u("b",null,"קישור פלא"),q(' עם הדוא"ל שלך ')],-1),_e=u("span",{class:"text-xs text-gray-400 dark:text-gray-700 block mt-2"}," אין צורך בסיסמה",-1),ve={__name:"Auth",setup(e){const n=U(),o=p(!1),l=p(""),a=async()=>{try{o.value=!0;const{error:t}=await n.auth.signInWithOtp({email:l.value});if(t)throw t;alert("Check your email for the login link!")}catch(t){alert(t.error_description||t.message)}finally{o.value=!1}};return(t,i)=>{const r=de,g=ee,c=T;return f(),b("form",{class:"flex items-center justify-center",onSubmit:Z(a,["prevent"])},[h(c,{class:"max-w-xl text-center"},{default:L(()=>[me,pe,fe,u("div",null,[h(r,{modelValue:s(l),"onUpdate:modelValue":i[0]||(i[0]=d=>X(l)?l.value=d:null),type:"email",placeholder:'הדוא"ל שלך',size:"lg"},null,8,["modelValue"])]),u("div",null,[h(g,{label:s(o)?"טוען":"שלח קישור פלא",disabled:s(o),type:"submit",variant:"solid",class:"mt-2",color:"primary",size:"xl",block:""},null,8,["label","disabled"])]),_e]),_:1})],40,ge)}}},ye={key:0,class:"container mx-auto pt-20"},he={key:1,class:"min-h-screen flex items-center justify-center relative -mt-10"},$e={__name:"profile",setup(e){const n=E();return(o,l)=>{const a=se,t=ve;return s(n)?(f(),b("div",ye,[h(a)])):(f(),b("div",he,[h(t)]))}}};export{$e as default}; +import{u as U,_ as M,a as R,b as T}from"./Container.bdcd2033.js";import{q as x,r as p,s as D,o as f,c as b,h as s,x as O,a as u,t as A,j as B,y as E,z as F,b as h,w as L,e as P,_ as G,m as H,A as W,B as v,C as J,D as y,E as Y,g as K,F as k,G as Q,H as N,n as C,I as X,J as Z,d as q,l as ee}from"./entry.9faa54b8.js";const ae={key:2,style:{width:"10em",position:"relative"}},ne={class:"button primary block",for:"single"},te=["disabled"],le={__name:"Avatar",props:["path","showUpload"],emits:["update:path","upload","alt"],setup(e,{emit:n}){const o=e,{path:l}=x(o),{alt:a}=x(o),t=U(),i=p(!1),r=p(""),g=p(),c=async()=>{try{const{data:_,error:m}=await t.storage.from("avatars").download(l.value);if(m)throw m;r.value=URL.createObjectURL(_)}catch(_){console.error("Error downloading image: ",_.message)}},d=async _=>{g.value=_.target.files;try{if(i.value=!0,!g.value||g.value.length===0)throw new Error("You must select an image to upload.");const m=g.value[0],I=m.name.split(".").pop(),w=`${`${Math.random()}.${I}`}`,{error:S}=await t.storage.from("avatars").upload(w,m);if(S)throw S;n("update:path",w),n("upload")}catch(m){alert(m.message)}finally{i.value=!1}};return c(),D(l,()=>{l.value&&c()}),(_,m)=>{const I=M;return f(),b("div",null,[s(r)?(f(),O(I,{key:0,src:s(r),size:"2xl"},null,8,["src"])):(f(),O(I,{key:1,alt:s(a),size:"2xl"},null,8,["alt"])),_.upload?(f(),b("div",ae,[u("label",ne,A(s(i)?"Uploading ...":"Upload"),1),u("input",{id:"single",style:{position:"absolute",visibility:"hidden"},type:"file",accept:"image/*",disabled:s(i),onChange:d},null,40,te)])):B("",!0)])}}},oe={class:"text-xl font-bold"},ie={class:""},se={__name:"Account",async setup(e){let n,o;const l=U(),a=E(),t=p(!0),i=p(""),r=p(""),g=p(""),c=p("");t.value=!0;const{data:d}=([n,o]=F(()=>l.from("profiles").select("username, website, avatar_url, full_name").eq("id",a.value.id).single()),n=await n,o(),n);return d&&(i.value=d.username,r.value=d.website,g.value=d.avatar_url,c.value=d.full_name),t.value=!1,(_,m)=>{const I=le,z=R,w=P;return f(),b("div",null,[h(I,{path:s(g)},null,8,["path"]),u("h1",oe,A(s(c)),1),u("div",ie,A("@"+s(i)),1),u("div",null,A(s(a).email),1),h(w,{to:s(r),target:"_blank"},{default:L(()=>[h(z,{variant:"theme",size:"xs",label:s(r)},null,8,["label"])]),_:1},8,["to"])])}}},re=H({components:{UIcon:W},inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},name:{type:String,default:null},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>v.ui.input.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:null},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:()=>v.ui.input.default.size,validator(e){return Object.keys(v.ui.input.size).includes(e)}},color:{type:String,default:()=>v.ui.input.default.color,validator(e){return[...v.ui.colors,...Object.keys(v.ui.input.color)].includes(e)}},variant:{type:String,default:()=>v.ui.input.default.variant,validator(e){return[...Object.keys(v.ui.input.variant),...Object.values(v.ui.input.color).flatMap(n=>Object.keys(n))].includes(e)}},ui:{type:Object,default:()=>v.ui.input}},emits:["update:modelValue"],setup(e,{emit:n,slots:o}){const l=J(),a=y(()=>Y({},e.ui,l.ui.input)),t=p(null),i=()=>{var $;e.autofocus&&(($=t.value)==null||$.focus())},r=$=>{n("update:modelValue",$.target.value)};K(()=>{setTimeout(()=>{i()},100)});const g=y(()=>{var V,j;const $=((j=(V=a.value.color)==null?void 0:V[e.color])==null?void 0:j[e.variant])||a.value.variant[e.variant];return k(a.value.base,a.value.rounded,a.value.placeholder,a.value.size[e.size],e.padded?a.value.padding[e.size]:"p-0",$==null?void 0:$.replaceAll("{color}",e.color),(c.value||o.leading)&&a.value.leading.padding[e.size],(d.value||o.trailing)&&a.value.trailing.padding[e.size])}),c=y(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),d=y(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),_=y(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),m=y(()=>e.loading&&!c.value?e.loadingIcon:e.trailingIcon||e.icon),I=y(()=>k(a.value.icon.leading.wrapper,a.value.icon.leading.pointer,a.value.icon.leading.padding[e.size])),z=y(()=>k(a.value.icon.base,l.ui.colors.includes(e.color)&&a.value.icon.color.replaceAll("{color}",e.color),a.value.icon.size[e.size],e.loading&&"animate-spin")),w=y(()=>k(a.value.icon.trailing.wrapper,a.value.icon.trailing.pointer,a.value.icon.trailing.padding[e.size])),S=y(()=>k(a.value.icon.base,l.ui.colors.includes(e.color)&&a.value.icon.color.replaceAll("{color}",e.color),a.value.icon.size[e.size],e.loading&&!c.value&&"animate-spin"));return{ui:a,input:t,isLeading:c,isTrailing:d,inputClass:g,leadingIconName:_,leadingIconClass:z,leadingWrapperIconClass:I,trailingIconName:m,trailingIconClass:S,trailingWrapperIconClass:w,onInput:r}}}),ue=["id","name","value","type","required","placeholder","disabled"];function ce(e,n,o,l,a,t){const i=W;return f(),b("div",{class:C(e.ui.wrapper)},[u("input",Q({id:e.name,ref:"input",name:e.name,value:e.modelValue,type:e.type,required:e.required,placeholder:e.placeholder,disabled:e.disabled||e.loading,class:["form-input",e.inputClass]},e.$attrs,{onInput:n[0]||(n[0]=(...r)=>e.onInput&&e.onInput(...r))}),null,16,ue),N(e.$slots,"default"),e.isLeading&&e.leadingIconName||e.$slots.leading?(f(),b("span",{key:0,class:C(e.leadingWrapperIconClass)},[N(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[h(i,{name:e.leadingIconName,class:C(e.leadingIconClass)},null,8,["name","class"])])],2)):B("",!0),e.isTrailing&&e.trailingIconName||e.$slots.trailing?(f(),b("span",{key:1,class:C(e.trailingWrapperIconClass)},[N(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[h(i,{name:e.trailingIconName,class:C(e.trailingIconClass)},null,8,["name","class"])])],2)):B("",!0)],2)}const de=G(re,[["render",ce]]),ge=["onSubmit"],me=u("h1",{class:"text-3xl font-black"}," ההרשמה הגדולה האחת ",-1),pe=u("hr",{class:"mb-4 mt-6 border-l-gray-100 dark:border-gray-900"},null,-1),fe=u("p",{class:"my-4 text-lg text-gray-800 dark:text-gray-300"},[q(" כניסה באמצעות "),u("b",null,"קישור פלא"),q(' עם הדוא"ל שלך ')],-1),_e=u("span",{class:"text-xs text-gray-400 dark:text-gray-700 block mt-2"}," אין צורך בסיסמה",-1),ve={__name:"Auth",setup(e){const n=U(),o=p(!1),l=p(""),a=async()=>{try{o.value=!0;const{error:t}=await n.auth.signInWithOtp({email:l.value});if(t)throw t;alert("Check your email for the login link!")}catch(t){alert(t.error_description||t.message)}finally{o.value=!1}};return(t,i)=>{const r=de,g=ee,c=T;return f(),b("form",{class:"flex items-center justify-center",onSubmit:Z(a,["prevent"])},[h(c,{class:"max-w-xl text-center"},{default:L(()=>[me,pe,fe,u("div",null,[h(r,{modelValue:s(l),"onUpdate:modelValue":i[0]||(i[0]=d=>X(l)?l.value=d:null),type:"email",placeholder:'הדוא"ל שלך',size:"lg"},null,8,["modelValue"])]),u("div",null,[h(g,{label:s(o)?"טוען":"שלח קישור פלא",disabled:s(o),type:"submit",variant:"solid",class:"mt-2",color:"primary",size:"xl",block:""},null,8,["label","disabled"])]),_e]),_:1})],40,ge)}}},ye={key:0,class:"container mx-auto pt-20"},he={key:1,class:"min-h-screen flex items-center justify-center relative -mt-10"},$e={__name:"profile",setup(e){const n=E();return(o,l)=>{const a=se,t=ve;return s(n)?(f(),b("div",ye,[h(a)])):(f(),b("div",he,[h(t)]))}}};export{$e as default}; diff --git a/_nuxt/profiles.aa5972c5.js b/_nuxt/profiles.3861e9bb.js similarity index 95% rename from _nuxt/profiles.aa5972c5.js rename to _nuxt/profiles.3861e9bb.js index 96089e4..ce098da 100644 --- a/_nuxt/profiles.aa5972c5.js +++ b/_nuxt/profiles.3861e9bb.js @@ -1 +1 @@ -import{u as P,b as k,_ as C,a as B}from"./Container.1e0523ab.js";import{r as h,K as O,L as M,M as g,s as z,N as E,h as x,O as A,P as H,m as N,z as R,o as _,x as U,w as L,a as v,c as y,Q as S,R as j,b,t as F}from"./entry.85cabd99.js";const K=()=>null;function T(...o){const i=typeof o[o.length-1]=="string"?o.pop():void 0;typeof o[0]!="string"&&o.unshift(i);let[a,l,s={}]=o;if(typeof a!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof l!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");s.server=s.server??!0,s.default=s.default??K,s.lazy=s.lazy??!1,s.immediate=s.immediate??!0;const e=E(),p=()=>e.isHydrating?e.payload.data[a]:e.static.data[a],d=()=>p()!==void 0;e._asyncData[a]||(e._asyncData[a]={data:h(p()??s.default()),pending:h(!d()),error:O(e.payload._errors,a),status:h("idle")});const t={...e._asyncData[a]};t.refresh=t.execute=(r={})=>{if(e._asyncDataPromises[a]){if(r.dedupe===!1)return e._asyncDataPromises[a];e._asyncDataPromises[a].cancelled=!0}if((r._initial||e.isHydrating&&r._initial!==!1)&&d())return p();t.pending.value=!0,t.status.value="pending";const f=new Promise((n,c)=>{try{n(l(e))}catch(w){c(w)}}).then(n=>{if(f.cancelled)return e._asyncDataPromises[a];let c=n;s.transform&&(c=s.transform(n)),s.pick&&(c=V(c,s.pick)),t.data.value=c,t.error.value=null,t.status.value="success"}).catch(n=>{if(f.cancelled)return e._asyncDataPromises[a];t.error.value=n,t.data.value=x(s.default()),t.status.value="error"}).finally(()=>{f.cancelled||(t.pending.value=!1,e.payload.data[a]=t.data.value,t.error.value&&(e.payload._errors[a]=A(t.error.value)),delete e._asyncDataPromises[a])});return e._asyncDataPromises[a]=f,e._asyncDataPromises[a]};const m=()=>t.refresh({_initial:!0}),u=s.server!==!1&&e.payload.serverRendered;{const r=H();if(r&&!r._nuxtOnBeforeMountCbs){r._nuxtOnBeforeMountCbs=[];const n=r._nuxtOnBeforeMountCbs;r&&(M(()=>{n.forEach(c=>{c()}),n.splice(0,n.length)}),g(()=>n.splice(0,n.length)))}u&&e.isHydrating&&d()?(t.pending.value=!1,t.status.value=t.error.value?"error":"success"):r&&(e.payload.serverRendered&&e.isHydrating||s.lazy)&&s.immediate?r._nuxtOnBeforeMountCbs.push(m):s.immediate&&m(),s.watch&&z(s.watch,()=>t.refresh());const f=e.hook("app:data:refresh",n=>{if(!n||n.includes(a))return t.refresh()});r&&g(f)}const D=Promise.resolve(e._asyncDataPromises[a]).then(()=>t);return Object.assign(D,t),D}function V(o,i){const a={};for(const l of i)a[l]=o[l];return a}const I={class:"container mx-auto pt-20"},Q={class:"m-4"},q={key:0},G={key:1},X=N({__name:"profiles",async setup(o){let i,a;const l=P(),{data:s}=([i,a]=R(async()=>T("profiles",async()=>{const{data:e}=await l.from("profiles").select("*");return e})),i=await i,a(),i);return(e,p)=>{const d=C,t=B,m=k;return _(),U(m,null,{default:L(()=>[v("div",I,[v("div",Q,[x(s)?(_(),y("ul",q,[(_(!0),y(S,null,j(x(s),u=>(_(),y("li",{key:u.id,class:"py-4 flex items-center space-x-3"},[b(d,{src:u.avatar_url,alt:u.full_name,class:"ml-4"},null,8,["src","alt"]),v("span",null,F(u.full_name),1),b(t,{variant:"theme",size:"xs",label:u.website},null,8,["label"])]))),128))])):(_(),y("p",G," Loading... "))])])]),_:1})}}});export{X as default}; +import{u as P,b as k,_ as C,a as B}from"./Container.bdcd2033.js";import{r as h,K as O,L as M,M as g,s as z,N as E,h as x,O as A,P as H,m as N,z as R,o as _,x as U,w as L,a as v,c as y,Q as S,R as j,b,t as F}from"./entry.9faa54b8.js";const K=()=>null;function T(...o){const i=typeof o[o.length-1]=="string"?o.pop():void 0;typeof o[0]!="string"&&o.unshift(i);let[a,l,s={}]=o;if(typeof a!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof l!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");s.server=s.server??!0,s.default=s.default??K,s.lazy=s.lazy??!1,s.immediate=s.immediate??!0;const e=E(),p=()=>e.isHydrating?e.payload.data[a]:e.static.data[a],d=()=>p()!==void 0;e._asyncData[a]||(e._asyncData[a]={data:h(p()??s.default()),pending:h(!d()),error:O(e.payload._errors,a),status:h("idle")});const t={...e._asyncData[a]};t.refresh=t.execute=(r={})=>{if(e._asyncDataPromises[a]){if(r.dedupe===!1)return e._asyncDataPromises[a];e._asyncDataPromises[a].cancelled=!0}if((r._initial||e.isHydrating&&r._initial!==!1)&&d())return p();t.pending.value=!0,t.status.value="pending";const f=new Promise((n,c)=>{try{n(l(e))}catch(w){c(w)}}).then(n=>{if(f.cancelled)return e._asyncDataPromises[a];let c=n;s.transform&&(c=s.transform(n)),s.pick&&(c=V(c,s.pick)),t.data.value=c,t.error.value=null,t.status.value="success"}).catch(n=>{if(f.cancelled)return e._asyncDataPromises[a];t.error.value=n,t.data.value=x(s.default()),t.status.value="error"}).finally(()=>{f.cancelled||(t.pending.value=!1,e.payload.data[a]=t.data.value,t.error.value&&(e.payload._errors[a]=A(t.error.value)),delete e._asyncDataPromises[a])});return e._asyncDataPromises[a]=f,e._asyncDataPromises[a]};const m=()=>t.refresh({_initial:!0}),u=s.server!==!1&&e.payload.serverRendered;{const r=H();if(r&&!r._nuxtOnBeforeMountCbs){r._nuxtOnBeforeMountCbs=[];const n=r._nuxtOnBeforeMountCbs;r&&(M(()=>{n.forEach(c=>{c()}),n.splice(0,n.length)}),g(()=>n.splice(0,n.length)))}u&&e.isHydrating&&d()?(t.pending.value=!1,t.status.value=t.error.value?"error":"success"):r&&(e.payload.serverRendered&&e.isHydrating||s.lazy)&&s.immediate?r._nuxtOnBeforeMountCbs.push(m):s.immediate&&m(),s.watch&&z(s.watch,()=>t.refresh());const f=e.hook("app:data:refresh",n=>{if(!n||n.includes(a))return t.refresh()});r&&g(f)}const D=Promise.resolve(e._asyncDataPromises[a]).then(()=>t);return Object.assign(D,t),D}function V(o,i){const a={};for(const l of i)a[l]=o[l];return a}const I={class:"container mx-auto pt-20"},Q={class:"m-4"},q={key:0},G={key:1},X=N({__name:"profiles",async setup(o){let i,a;const l=P(),{data:s}=([i,a]=R(async()=>T("profiles",async()=>{const{data:e}=await l.from("profiles").select("*");return e})),i=await i,a(),i);return(e,p)=>{const d=C,t=B,m=k;return _(),U(m,null,{default:L(()=>[v("div",I,[v("div",Q,[x(s)?(_(),y("ul",q,[(_(!0),y(S,null,j(x(s),u=>(_(),y("li",{key:u.id,class:"py-4 flex items-center space-x-3"},[b(d,{src:u.avatar_url,alt:u.full_name,class:"ml-4"},null,8,["src","alt"]),v("span",null,F(u.full_name),1),b(t,{variant:"theme",size:"xs",label:u.website},null,8,["label"])]))),128))])):(_(),y("p",G," Loading... "))])])]),_:1})}}});export{X as default}; diff --git a/_nuxt/togw-turn-truth-religion.3c14a7c2.js b/_nuxt/togw-turn-truth-religion.5da97e1c.js similarity index 98% rename from _nuxt/togw-turn-truth-religion.3c14a7c2.js rename to _nuxt/togw-turn-truth-religion.5da97e1c.js index e224e60..e93a976 100644 --- a/_nuxt/togw-turn-truth-religion.3c14a7c2.js +++ b/_nuxt/togw-turn-truth-religion.5da97e1c.js @@ -1 +1 @@ -import"./entry.85cabd99.js";const i=""+globalThis.__publicAssetsURL("img/media/ogw-allow-continue-chemtrails.jpg"),o=""+globalThis.__publicAssetsURL("img/media/ogw-authority-belief.jpg"),t=""+globalThis.__publicAssetsURL("img/media/ogw-concious-light-darkness.jpg"),e=""+globalThis.__publicAssetsURL("img/media/ogw-critical-mass.jpg"),g=""+globalThis.__publicAssetsURL("img/media/ogw-freedom-politics-slave.jpg"),l=""+globalThis.__publicAssetsURL("img/media/ogw-human-sickness-dare-look.jpg"),a=""+globalThis.__publicAssetsURL("img/media/ogw-natural-law-definition.jpg"),_=""+globalThis.__publicAssetsURL("img/media/ogw-need-knowledge.jpg"),m=""+globalThis.__publicAssetsURL("img/media/ogw-no-man-command-other.jpg"),p=""+globalThis.__publicAssetsURL("img/media/ogw-true-self-return-remember.jpg"),c=""+globalThis.__publicAssetsURL("img/media/ogw-truth-singular-perception.jpg"),n=""+globalThis.__publicAssetsURL("img/media/togw-21st-century-illiterate.jpg"),r=""+globalThis.__publicAssetsURL("img/media/togw-age-knowledge-belief-end.jpg"),b=""+globalThis.__publicAssetsURL("img/media/togw-all-is-love.jpg"),u=""+globalThis.__publicAssetsURL("img/media/togw-anarchy-meaning.jpg"),d=""+globalThis.__publicAssetsURL("img/media/togw-anger-justice-right.jpg"),h=""+globalThis.__publicAssetsURL("img/media/togw-applied-knowledge-power.jpg"),w=""+globalThis.__publicAssetsURL("img/media/togw-consiousness-reponsible-adult.jpg"),j=""+globalThis.__publicAssetsURL("img/media/togw-corrects-you-ego-feel.jpg"),A=""+globalThis.__publicAssetsURL("img/media/togw-covid-def.jpg"),L=""+globalThis.__publicAssetsURL("img/media/togw-ignorance-bad-person.jpg"),R=""+globalThis.__publicAssetsURL("img/media/togw-increase-your-light.jpg"),T=""+globalThis.__publicAssetsURL("img/media/togw-lion-fear-mission-same-place.jpg"),U=""+globalThis.__publicAssetsURL("img/media/togw-lion-knowledge-sheep-information.jpg"),f=""+globalThis.__publicAssetsURL("img/media/togw-love-fear-illusion-freedom-truth.jpg"),y=""+globalThis.__publicAssetsURL("img/media/togw-love-knowledge-share.jpg"),k=""+globalThis.__publicAssetsURL("img/media/togw-man-nature-refuse-be.jpg"),v=""+globalThis.__publicAssetsURL("img/media/togw-people-power-greater.jpg"),x=""+globalThis.__publicAssetsURL("img/media/togw-privacy-annonymity.jpg"),q=""+globalThis.__publicAssetsURL("img/media/togw-real-enemy.jpg"),z=""+globalThis.__publicAssetsURL("img/media/togw-right-to-govern.jpg"),B=""+globalThis.__publicAssetsURL("img/media/togw-say-no.jpg"),C=""+globalThis.__publicAssetsURL("img/media/togw-seems-impossible-done.jpg"),D=""+globalThis.__publicAssetsURL("img/media/togw-silence-cowardice.jpg"),E=""+globalThis.__publicAssetsURL("img/media/togw-soft-people-truth.jpg"),F=""+globalThis.__publicAssetsURL("img/media/togw-strong-inner-wellness.jpg"),G=""+globalThis.__publicAssetsURL("img/media/togw-truth-first-love-second.jpg"),H=""+globalThis.__publicAssetsURL("img/media/togw-turn-truth-religion.jpg");export{v as A,x as B,q as C,z as D,B as E,C as F,D as G,E as H,F as I,G as J,H as K,i as _,o as a,t as b,e as c,g as d,l as e,a as f,_ as g,m as h,p as i,c as j,n as k,r as l,b as m,u as n,d as o,h as p,w as q,j as r,A as s,L as t,R as u,T as v,U as w,f as x,y,k as z}; +import"./entry.9faa54b8.js";const i=""+globalThis.__publicAssetsURL("img/media/ogw-allow-continue-chemtrails.jpg"),o=""+globalThis.__publicAssetsURL("img/media/ogw-authority-belief.jpg"),t=""+globalThis.__publicAssetsURL("img/media/ogw-concious-light-darkness.jpg"),e=""+globalThis.__publicAssetsURL("img/media/ogw-critical-mass.jpg"),g=""+globalThis.__publicAssetsURL("img/media/ogw-freedom-politics-slave.jpg"),l=""+globalThis.__publicAssetsURL("img/media/ogw-human-sickness-dare-look.jpg"),a=""+globalThis.__publicAssetsURL("img/media/ogw-natural-law-definition.jpg"),_=""+globalThis.__publicAssetsURL("img/media/ogw-need-knowledge.jpg"),m=""+globalThis.__publicAssetsURL("img/media/ogw-no-man-command-other.jpg"),p=""+globalThis.__publicAssetsURL("img/media/ogw-true-self-return-remember.jpg"),c=""+globalThis.__publicAssetsURL("img/media/ogw-truth-singular-perception.jpg"),n=""+globalThis.__publicAssetsURL("img/media/togw-21st-century-illiterate.jpg"),r=""+globalThis.__publicAssetsURL("img/media/togw-age-knowledge-belief-end.jpg"),b=""+globalThis.__publicAssetsURL("img/media/togw-all-is-love.jpg"),u=""+globalThis.__publicAssetsURL("img/media/togw-anarchy-meaning.jpg"),d=""+globalThis.__publicAssetsURL("img/media/togw-anger-justice-right.jpg"),h=""+globalThis.__publicAssetsURL("img/media/togw-applied-knowledge-power.jpg"),w=""+globalThis.__publicAssetsURL("img/media/togw-consiousness-reponsible-adult.jpg"),j=""+globalThis.__publicAssetsURL("img/media/togw-corrects-you-ego-feel.jpg"),A=""+globalThis.__publicAssetsURL("img/media/togw-covid-def.jpg"),L=""+globalThis.__publicAssetsURL("img/media/togw-ignorance-bad-person.jpg"),R=""+globalThis.__publicAssetsURL("img/media/togw-increase-your-light.jpg"),T=""+globalThis.__publicAssetsURL("img/media/togw-lion-fear-mission-same-place.jpg"),U=""+globalThis.__publicAssetsURL("img/media/togw-lion-knowledge-sheep-information.jpg"),f=""+globalThis.__publicAssetsURL("img/media/togw-love-fear-illusion-freedom-truth.jpg"),y=""+globalThis.__publicAssetsURL("img/media/togw-love-knowledge-share.jpg"),k=""+globalThis.__publicAssetsURL("img/media/togw-man-nature-refuse-be.jpg"),v=""+globalThis.__publicAssetsURL("img/media/togw-people-power-greater.jpg"),x=""+globalThis.__publicAssetsURL("img/media/togw-privacy-annonymity.jpg"),q=""+globalThis.__publicAssetsURL("img/media/togw-real-enemy.jpg"),z=""+globalThis.__publicAssetsURL("img/media/togw-right-to-govern.jpg"),B=""+globalThis.__publicAssetsURL("img/media/togw-say-no.jpg"),C=""+globalThis.__publicAssetsURL("img/media/togw-seems-impossible-done.jpg"),D=""+globalThis.__publicAssetsURL("img/media/togw-silence-cowardice.jpg"),E=""+globalThis.__publicAssetsURL("img/media/togw-soft-people-truth.jpg"),F=""+globalThis.__publicAssetsURL("img/media/togw-strong-inner-wellness.jpg"),G=""+globalThis.__publicAssetsURL("img/media/togw-truth-first-love-second.jpg"),H=""+globalThis.__publicAssetsURL("img/media/togw-turn-truth-religion.jpg");export{v as A,x as B,q as C,z as D,B as E,C as F,D as G,E as H,F as I,G as J,H as K,i as _,o as a,t as b,e as c,g as d,l as e,a as f,_ as g,m as h,p as i,c as j,n as k,r as l,b as m,u as n,d as o,h as p,w as q,j as r,A as s,L as t,R as u,T as v,U as w,f as x,y,k as z}; diff --git a/index.html b/index.html new file mode 100644 index 0000000..651e126 --- /dev/null +++ b/index.html @@ -0,0 +1,7 @@ + + + + +
+ \ No newline at end of file