diff --git a/_app/immutable/chunks/4.Dx4fyXSx.js b/_app/immutable/chunks/4.CmdEqcRO.js similarity index 99% rename from _app/immutable/chunks/4.Dx4fyXSx.js rename to _app/immutable/chunks/4.CmdEqcRO.js index e6dc3dd..bd25700 100644 --- a/_app/immutable/chunks/4.Dx4fyXSx.js +++ b/_app/immutable/chunks/4.CmdEqcRO.js @@ -1,4 +1,4 @@ -import{h as Sc,e as N_,r as sc,v as F_,g as Os,a as gt,t as It,c as Q,b as B,s as sn,f as $e,j as yn}from"./disclose-version.BVilGUYt.js";import{X as ra,Z as da,l as tt,r as B_,af as U_,w as Ic,a4 as us,o as Yi,E as W_,ai as q_,aj as H_,n as G_,j as pa,ak as k_,al as z_,y as j_,am as K_,an as Y_,p as zn,C as De,f as ls,t as pe,a as jn,s as Ut,u as he,q as oc}from"./runtime.CKNddQ8B.js";import{_ as ga,p as fe,i as Rc,a as wt,c as J_,o as X_,b as Z_}from"./preload-helper.7zv84HIM.js";import{i as Me}from"./if.rAoOK4dE.js";import{a as V_,r as Lc,e as qn,i as Hn,b as Q_,c as Pc,s as Dc,g as tm}from"./utils.BT7cNBW3.js";import{t as Wn,s as em}from"./class.t1vgL6hd.js";import{u as Ts,s as Jr,a as nm,i as rm}from"./store.lFX7wZhJ.js";import{c as _r,a as im,b as sm,s as ia,d as om,e as am,g as um}from"./projectStore.COkh1dC6.js";import{w as lm,d as cm,g as Ne}from"./index.BK7BN-jz.js";import{p as ac}from"./stores.CDQvZFra.js";function fm(i,r){const n=i.dom;if(Ic(n)){for(let a=n.length-1;a>=0;a--)if(r.includes(n[a])){n.splice(a,1);break}}else n!==null&&r.includes(n)&&(i.dom=null)}function hm(i,r,n,a){var h;const u=i.parentNode!==((h=ra)==null?void 0:h.dom)?ra:null;let c=us(r);da(()=>{var p=dm(i,u,tt(c));if(p)return()=>{u!==null&&fm(u,Ic(p)?p:[p]),B_(p)}})}function dm(i,r,n,a,u){if(Sc)return N_;var c=n+"",h=U_(c);if(h.childNodes.length===1){var p=h.firstChild;return i.before(p),r!==null&&sc(p,r),p}var _=[...h.childNodes];return i.before(h),r!==null&&sc(_,r),_}const $c=typeof window<"u",pm=$c?requestAnimationFrame:Yi,gm=$c?()=>performance.now():()=>Date.now(),rn={tick:i=>pm(i),now:()=>gm(),tasks:new Set};function Mc(i){rn.tasks.forEach(r=>{r.c(i)||(rn.tasks.delete(r),r.f())}),rn.tasks.size!==0&&rn.tick(Mc)}function vm(i){let r;return rn.tasks.size===0&&rn.tick(Mc),{promise:new Promise(n=>{rn.tasks.add(r={c:i,f:n})}),abort(){rn.tasks.delete(r)}}}function ji(i,r){i.dispatchEvent(new CustomEvent(r))}function _m(i){const r=i.split("-");return r.length===1?r[0]:r[0]+r.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("")}function mm(i){const r={},n=i.split(";");for(const a of n){const[u,c]=a.split(":");if(!u||c===void 0)break;const h=_m(u.trim());r[h]=c.trim()}return r}const wm=i=>i;function en(i,r,n,a){var u=(i&k_)!==0,c=(i&K_)!==0,h=(i&Y_)!==0,p=u&&c?"both":u?"in":"out",_,E=r.inert,m,w,C;function I(){return _??(_=n()(r,a==null?void 0:a(),{direction:p}))}var N={is_global:h,in(){r.inert=E,u?(ji(r,"introstart"),m=sa(r,I(),w,1,()=>{ji(r,"introend"),m=_=void 0})):(w==null||w.abort(),C==null||C())},out(O){c?(r.inert=!0,ji(r,"outrostart"),w=sa(r,I(),m,0,()=>{ji(r,"outroend"),w=_=void 0,O==null||O()}),C=w.reset):O==null||O()},stop:()=>{m==null||m.abort(),w==null||w.abort()}},R=ra;if((R.transitions??(R.transitions=[])).push(N),u&&F_){let O=h;if(!O){for(var x=R.parent;x&&x.f&W_;)for(;(x=x.parent)&&!(x.f&q_););O=!x||(x.f&H_)!==0}O&&G_(()=>{pa(()=>N.in())})}}function sa(i,r,n,a,u){if(z_(r)){var c;return j_(()=>{var it=r({direction:a===1?"in":"out"});c=sa(i,it,n,a,u)}),{abort:()=>c.abort(),deactivate:()=>c.deactivate(),reset:()=>c.reset(),t:it=>c.t(it)}}if(n==null||n.deactivate(),!(r!=null&&r.duration))return u==null||u(),{abort:Yi,deactivate:Yi,reset:Yi,t:()=>a};var{delay:h=0,duration:p,css:_,tick:E,easing:m=wm}=r,w=rn.now()+h,C=(n==null?void 0:n.t(w))??1-a,I=a-C;p*=Math.abs(I);var N=w+p,R,x;if(_){for(var O=[],W=Math.ceil(p/16.666666666666668),G=0;G<=W;G+=1){var q=C+I*m(G/W),K=_(q,1-q);O.push(mm(K))}R=i.animate(O,{delay:h,duration:p,easing:"linear",fill:"forwards"}),R.finished.then(()=>{u==null||u(),a===1&&R.cancel()}).catch(it=>{if(R.startTime!==null&&R.currentTime!==null)throw it})}else C===0&&(E==null||E(0,1)),x=vm(it=>{if(it>=N)return E==null||E(a,1-a),u==null||u(),!1;if(it>=w){var at=C+I*m((it-w)/p);E==null||E(at,1-at)}return!0});return{abort:()=>{R==null||R.cancel(),x==null||x.abort()},deactivate:()=>{u=void 0},reset:()=>{a===0&&(E==null||E(1,0))},t:it=>{var at=C+I*m((it-w)/p);return Math.min(1,Math.max(0,at))}}}function Nc(i,r,n,a=n){i.addEventListener(r,n);const u=i.__on_r;u?i.__on_r=()=>{u(),a()}:i.__on_r=a,V_()}function oa(i,r,n){Nc(i,"input",()=>{n(uc(i)?lc(i.value):i.value)}),da(()=>{var a=r();if(Sc&&i.defaultValue!==i.value){n(i.value);return}uc(i)&&a===lc(i.value)||i.type==="date"&&!a&&!i.value||(i.value=a??"")})}function ym(i,r,n){Nc(i,"change",()=>{var a=i.checked;n(a)}),r()==null&&n(!1),da(()=>{var a=r();i.checked=!!a})}function uc(i){var r=i.type;return r==="number"||r==="range"}function lc(i){return i===""?null:+i}const Fc=typeof navigator>"u"?!1:navigator.product==="ReactNative",Bc={timeout:Fc?6e4:12e4},bm=function(i){const r={...Bc,...typeof i=="string"?{url:i}:i};if(r.timeout=Uc(r.timeout),r.query){const{url:n,searchParams:a}=Em(r.url);for(const[u,c]of Object.entries(r.query)){if(c!==void 0)if(Array.isArray(c))for(const p of c)a.append(u,p);else a.append(u,c);const h=a.toString();h&&(r.url=`${n}?${h}`)}}return r.method=r.body&&!r.method?"POST":(r.method||"GET").toUpperCase(),r};function Em(i){const r=i.indexOf("?");if(r===-1)return{url:i,searchParams:new URLSearchParams};const n=i.slice(0,r),a=i.slice(r+1);if(!Fc)return{url:n,searchParams:new URLSearchParams(a)};if(typeof decodeURIComponent!="function")throw new Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");const u=new URLSearchParams;for(const c of a.split("&")){const[h,p]=c.split("=");h&&u.append(cc(h),cc(p||""))}return{url:n,searchParams:u}}function cc(i){return decodeURIComponent(i.replace(/\+/g," "))}function Uc(i){if(i===!1||i===0)return!1;if(i.connect||i.socket)return i;const r=Number(i);return isNaN(r)?Uc(Bc.timeout):{connect:r,socket:r}}const Cm=/^https?:\/\//i,xm=function(i){if(!Cm.test(i.url))throw new Error(`"${i.url}" is not a valid URL`)};function Am(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}const Om=i=>function(r,n,...a){const u=r==="onError";let c=n;for(let h=0;h(c[h]=c[h]||[],c),{processOptions:[bm],validateOptions:[xm]});function u(c){const h=(N,R,x)=>{let O=N,W=R;if(!O)try{W=_("onResponse",R,x)}catch(G){W=null,O=G}O=O&&_("onError",O,x),O?p.error.publish(O):W&&p.response.publish(W)},p=Sm.reduce((N,R)=>(N[R]=Tm(),N),{}),_=Om(a),E=_("processOptions",c);_("validateOptions",E);const m={options:E,channels:p,applyMiddleware:_};let w;const C=p.request.subscribe(N=>{w=r(N,(R,x)=>h(R,x,N))});p.abort.subscribe(()=>{C(),w&&w.abort()});const I=_("onReturn",p,m);return I===p&&p.request.publish(m),I}return u.use=function(c){if(!c)throw new Error("Tried to add middleware that resolved to falsey value");if(typeof c=="function")throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(c.onReturn&&a.onReturn.length>0)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return fc.forEach(h=>{c[h]&&a[h].push(c[h])}),n.push(c),u},u.clone=()=>Wc(n,r),i.forEach(u.use),u}var Zo=function(i){return i.replace(/^\s+|\s+$/g,"")},Im=function(i){return Object.prototype.toString.call(i)==="[object Array]"},Rm=function(i){if(!i)return{};for(var r={},n=Zo(i).split(` +import{h as Sc,e as N_,r as sc,v as F_,g as Os,a as gt,t as It,c as Q,b as B,s as sn,f as $e,j as yn}from"./disclose-version.BVilGUYt.js";import{X as ra,Z as da,l as tt,r as B_,af as U_,w as Ic,a4 as us,o as Yi,E as W_,ai as q_,aj as H_,n as G_,j as pa,ak as k_,al as z_,y as j_,am as K_,an as Y_,p as zn,C as De,f as ls,t as pe,a as jn,s as Ut,u as he,q as oc}from"./runtime.CKNddQ8B.js";import{_ as ga,p as fe,i as Rc,a as wt,c as J_,o as X_,b as Z_}from"./preload-helper.7zv84HIM.js";import{i as Me}from"./if.rAoOK4dE.js";import{a as V_,r as Lc,e as qn,i as Hn,b as Q_,c as Pc,s as Dc,g as tm}from"./utils.BT7cNBW3.js";import{t as Wn,s as em}from"./class.t1vgL6hd.js";import{u as Ts,s as Jr,a as nm,i as rm}from"./store.lFX7wZhJ.js";import{c as _r,a as im,b as sm,s as ia,d as om,e as am,g as um}from"./projectStore.COkh1dC6.js";import{w as lm,d as cm,g as Ne}from"./index.BK7BN-jz.js";import{p as ac}from"./stores.CziGYtPu.js";function fm(i,r){const n=i.dom;if(Ic(n)){for(let a=n.length-1;a>=0;a--)if(r.includes(n[a])){n.splice(a,1);break}}else n!==null&&r.includes(n)&&(i.dom=null)}function hm(i,r,n,a){var h;const u=i.parentNode!==((h=ra)==null?void 0:h.dom)?ra:null;let c=us(r);da(()=>{var p=dm(i,u,tt(c));if(p)return()=>{u!==null&&fm(u,Ic(p)?p:[p]),B_(p)}})}function dm(i,r,n,a,u){if(Sc)return N_;var c=n+"",h=U_(c);if(h.childNodes.length===1){var p=h.firstChild;return i.before(p),r!==null&&sc(p,r),p}var _=[...h.childNodes];return i.before(h),r!==null&&sc(_,r),_}const $c=typeof window<"u",pm=$c?requestAnimationFrame:Yi,gm=$c?()=>performance.now():()=>Date.now(),rn={tick:i=>pm(i),now:()=>gm(),tasks:new Set};function Mc(i){rn.tasks.forEach(r=>{r.c(i)||(rn.tasks.delete(r),r.f())}),rn.tasks.size!==0&&rn.tick(Mc)}function vm(i){let r;return rn.tasks.size===0&&rn.tick(Mc),{promise:new Promise(n=>{rn.tasks.add(r={c:i,f:n})}),abort(){rn.tasks.delete(r)}}}function ji(i,r){i.dispatchEvent(new CustomEvent(r))}function _m(i){const r=i.split("-");return r.length===1?r[0]:r[0]+r.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("")}function mm(i){const r={},n=i.split(";");for(const a of n){const[u,c]=a.split(":");if(!u||c===void 0)break;const h=_m(u.trim());r[h]=c.trim()}return r}const wm=i=>i;function en(i,r,n,a){var u=(i&k_)!==0,c=(i&K_)!==0,h=(i&Y_)!==0,p=u&&c?"both":u?"in":"out",_,E=r.inert,m,w,C;function I(){return _??(_=n()(r,a==null?void 0:a(),{direction:p}))}var N={is_global:h,in(){r.inert=E,u?(ji(r,"introstart"),m=sa(r,I(),w,1,()=>{ji(r,"introend"),m=_=void 0})):(w==null||w.abort(),C==null||C())},out(O){c?(r.inert=!0,ji(r,"outrostart"),w=sa(r,I(),m,0,()=>{ji(r,"outroend"),w=_=void 0,O==null||O()}),C=w.reset):O==null||O()},stop:()=>{m==null||m.abort(),w==null||w.abort()}},R=ra;if((R.transitions??(R.transitions=[])).push(N),u&&F_){let O=h;if(!O){for(var x=R.parent;x&&x.f&W_;)for(;(x=x.parent)&&!(x.f&q_););O=!x||(x.f&H_)!==0}O&&G_(()=>{pa(()=>N.in())})}}function sa(i,r,n,a,u){if(z_(r)){var c;return j_(()=>{var it=r({direction:a===1?"in":"out"});c=sa(i,it,n,a,u)}),{abort:()=>c.abort(),deactivate:()=>c.deactivate(),reset:()=>c.reset(),t:it=>c.t(it)}}if(n==null||n.deactivate(),!(r!=null&&r.duration))return u==null||u(),{abort:Yi,deactivate:Yi,reset:Yi,t:()=>a};var{delay:h=0,duration:p,css:_,tick:E,easing:m=wm}=r,w=rn.now()+h,C=(n==null?void 0:n.t(w))??1-a,I=a-C;p*=Math.abs(I);var N=w+p,R,x;if(_){for(var O=[],W=Math.ceil(p/16.666666666666668),G=0;G<=W;G+=1){var q=C+I*m(G/W),K=_(q,1-q);O.push(mm(K))}R=i.animate(O,{delay:h,duration:p,easing:"linear",fill:"forwards"}),R.finished.then(()=>{u==null||u(),a===1&&R.cancel()}).catch(it=>{if(R.startTime!==null&&R.currentTime!==null)throw it})}else C===0&&(E==null||E(0,1)),x=vm(it=>{if(it>=N)return E==null||E(a,1-a),u==null||u(),!1;if(it>=w){var at=C+I*m((it-w)/p);E==null||E(at,1-at)}return!0});return{abort:()=>{R==null||R.cancel(),x==null||x.abort()},deactivate:()=>{u=void 0},reset:()=>{a===0&&(E==null||E(1,0))},t:it=>{var at=C+I*m((it-w)/p);return Math.min(1,Math.max(0,at))}}}function Nc(i,r,n,a=n){i.addEventListener(r,n);const u=i.__on_r;u?i.__on_r=()=>{u(),a()}:i.__on_r=a,V_()}function oa(i,r,n){Nc(i,"input",()=>{n(uc(i)?lc(i.value):i.value)}),da(()=>{var a=r();if(Sc&&i.defaultValue!==i.value){n(i.value);return}uc(i)&&a===lc(i.value)||i.type==="date"&&!a&&!i.value||(i.value=a??"")})}function ym(i,r,n){Nc(i,"change",()=>{var a=i.checked;n(a)}),r()==null&&n(!1),da(()=>{var a=r();i.checked=!!a})}function uc(i){var r=i.type;return r==="number"||r==="range"}function lc(i){return i===""?null:+i}const Fc=typeof navigator>"u"?!1:navigator.product==="ReactNative",Bc={timeout:Fc?6e4:12e4},bm=function(i){const r={...Bc,...typeof i=="string"?{url:i}:i};if(r.timeout=Uc(r.timeout),r.query){const{url:n,searchParams:a}=Em(r.url);for(const[u,c]of Object.entries(r.query)){if(c!==void 0)if(Array.isArray(c))for(const p of c)a.append(u,p);else a.append(u,c);const h=a.toString();h&&(r.url=`${n}?${h}`)}}return r.method=r.body&&!r.method?"POST":(r.method||"GET").toUpperCase(),r};function Em(i){const r=i.indexOf("?");if(r===-1)return{url:i,searchParams:new URLSearchParams};const n=i.slice(0,r),a=i.slice(r+1);if(!Fc)return{url:n,searchParams:new URLSearchParams(a)};if(typeof decodeURIComponent!="function")throw new Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");const u=new URLSearchParams;for(const c of a.split("&")){const[h,p]=c.split("=");h&&u.append(cc(h),cc(p||""))}return{url:n,searchParams:u}}function cc(i){return decodeURIComponent(i.replace(/\+/g," "))}function Uc(i){if(i===!1||i===0)return!1;if(i.connect||i.socket)return i;const r=Number(i);return isNaN(r)?Uc(Bc.timeout):{connect:r,socket:r}}const Cm=/^https?:\/\//i,xm=function(i){if(!Cm.test(i.url))throw new Error(`"${i.url}" is not a valid URL`)};function Am(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}const Om=i=>function(r,n,...a){const u=r==="onError";let c=n;for(let h=0;h(c[h]=c[h]||[],c),{processOptions:[bm],validateOptions:[xm]});function u(c){const h=(N,R,x)=>{let O=N,W=R;if(!O)try{W=_("onResponse",R,x)}catch(G){W=null,O=G}O=O&&_("onError",O,x),O?p.error.publish(O):W&&p.response.publish(W)},p=Sm.reduce((N,R)=>(N[R]=Tm(),N),{}),_=Om(a),E=_("processOptions",c);_("validateOptions",E);const m={options:E,channels:p,applyMiddleware:_};let w;const C=p.request.subscribe(N=>{w=r(N,(R,x)=>h(R,x,N))});p.abort.subscribe(()=>{C(),w&&w.abort()});const I=_("onReturn",p,m);return I===p&&p.request.publish(m),I}return u.use=function(c){if(!c)throw new Error("Tried to add middleware that resolved to falsey value");if(typeof c=="function")throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(c.onReturn&&a.onReturn.length>0)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return fc.forEach(h=>{c[h]&&a[h].push(c[h])}),n.push(c),u},u.clone=()=>Wc(n,r),i.forEach(u.use),u}var Zo=function(i){return i.replace(/^\s+|\s+$/g,"")},Im=function(i){return Object.prototype.toString.call(i)==="[object Array]"},Rm=function(i){if(!i)return{};for(var r={},n=Zo(i).split(` `),a=0;a"u"?r[h]=p:Im(r[h])?r[h].push(p):r[h]=[r[h],p]}return r},Lm=Am(Rm),Pm=Object.defineProperty,qc=i=>{throw TypeError(i)},Dm=(i,r,n)=>r in i?Pm(i,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[r]=n,Pe=(i,r,n)=>Dm(i,typeof r!="symbol"?r+"":r,n),Hc=(i,r,n)=>r.has(i)||qc("Cannot "+n),Ce=(i,r,n)=>(Hc(i,r,"read from private field"),n?n.call(i):r.get(i)),Dn=(i,r,n)=>r.has(i)?qc("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,n),vn=(i,r,n,a)=>(Hc(i,r,"write to private field"),r.set(i,n),n),Ji,Xi,lr,Zi,_n,Vi,Qi;class aa{constructor(){Pe(this,"onabort"),Pe(this,"onerror"),Pe(this,"onreadystatechange"),Pe(this,"ontimeout"),Pe(this,"readyState",0),Pe(this,"response"),Pe(this,"responseText",""),Pe(this,"responseType",""),Pe(this,"status"),Pe(this,"statusText"),Pe(this,"withCredentials"),Dn(this,Ji),Dn(this,Xi),Dn(this,lr),Dn(this,Zi,{}),Dn(this,_n),Dn(this,Vi,{}),Dn(this,Qi)}open(r,n,a){var u;vn(this,Ji,r),vn(this,Xi,n),vn(this,lr,""),this.readyState=1,(u=this.onreadystatechange)==null||u.call(this),vn(this,_n,void 0)}abort(){Ce(this,_n)&&Ce(this,_n).abort()}getAllResponseHeaders(){return Ce(this,lr)}setRequestHeader(r,n){Ce(this,Zi)[r]=n}setInit(r,n=!0){vn(this,Vi,r),vn(this,Qi,n)}send(r){const n=this.responseType!=="arraybuffer",a={...Ce(this,Vi),method:Ce(this,Ji),headers:Ce(this,Zi),body:r};typeof AbortController=="function"&&Ce(this,Qi)&&(vn(this,_n,new AbortController),typeof EventTarget<"u"&&Ce(this,_n).signal instanceof EventTarget&&(a.signal=Ce(this,_n).signal)),typeof document<"u"&&(a.credentials=this.withCredentials?"include":"omit"),fetch(Ce(this,Xi),a).then(u=>{var c;return u.headers.forEach((h,p)=>{vn(this,lr,Ce(this,lr)+`${p}: ${h}\r `)}),this.status=u.status,this.statusText=u.statusText,this.readyState=3,(c=this.onreadystatechange)==null||c.call(this),n?u.text():u.arrayBuffer()}).then(u=>{var c;typeof u=="string"?this.responseText=u:this.response=u,this.readyState=4,(c=this.onreadystatechange)==null||c.call(this)}).catch(u=>{var c,h;if(u.name==="AbortError"){(c=this.onabort)==null||c.call(this);return}(h=this.onerror)==null||h.call(this,u)})}}Ji=new WeakMap,Xi=new WeakMap,lr=new WeakMap,Zi=new WeakMap,_n=new WeakMap,Vi=new WeakMap,Qi=new WeakMap;const ua=typeof XMLHttpRequest=="function"?"xhr":"fetch",$m=ua==="xhr"?XMLHttpRequest:aa,Mm=(i,r)=>{var n;const a=i.options,u=i.applyMiddleware("finalizeOptions",a),c={},h=i.applyMiddleware("interceptRequest",void 0,{adapter:ua,context:i});if(h){const q=setTimeout(r,0,null,h);return{abort:()=>clearTimeout(q)}}let p=new $m;p instanceof aa&&typeof u.fetch=="object"&&p.setInit(u.fetch,(n=u.useAbortSignal)!=null?n:!0);const _=u.headers,E=u.timeout;let m=!1,w=!1,C=!1;if(p.onerror=q=>{p instanceof aa?O(q instanceof Error?q:new Error(`Request error while attempting to reach is ${u.url}`,{cause:q})):O(new Error(`Request error while attempting to reach is ${u.url}${q.lengthComputable?`(${q.loaded} of ${q.total} bytes transferred)`:""}`))},p.ontimeout=q=>{O(new Error(`Request timeout while attempting to reach ${u.url}${q.lengthComputable?`(${q.loaded} of ${q.total} bytes transferred)`:""}`))},p.onabort=()=>{x(!0),m=!0},p.onreadystatechange=()=>{R(),!(m||p.readyState!==4)&&p.status!==0&&G()},p.open(u.method,u.url,!0),p.withCredentials=!!u.withCredentials,_&&p.setRequestHeader)for(const q in _)_.hasOwnProperty(q)&&p.setRequestHeader(q,_[q]);return u.rawBody&&(p.responseType="arraybuffer"),i.applyMiddleware("onRequest",{options:u,adapter:ua,request:p,context:i}),p.send(u.body||null),E&&(c.connect=setTimeout(()=>N("ETIMEDOUT"),E.connect)),{abort:I};function I(){m=!0,p&&p.abort()}function N(q){C=!0,p.abort();const K=new Error(q==="ESOCKETTIMEDOUT"?`Socket timed out on request to ${u.url}`:`Connection timed out on request to ${u.url}`);K.code=q,i.channels.error.publish(K)}function R(){E&&(x(),c.socket=setTimeout(()=>N("ESOCKETTIMEDOUT"),E.socket))}function x(q){(q||m||p.readyState>=2&&c.connect)&&clearTimeout(c.connect),c.socket&&clearTimeout(c.socket)}function O(q){if(w)return;x(!0),w=!0,p=null;const K=q||new Error(`Network error while attempting to reach ${u.url}`);K.isNetworkError=!0,K.request=u,r(K)}function W(){return{body:p.response||(p.responseType===""||p.responseType==="text"?p.responseText:""),url:u.url,method:u.method,headers:Lm(p.getAllResponseHeaders()),statusCode:p.status,statusMessage:p.statusText}}function G(){if(!(m||w||C)){if(p.status===0){O(new Error("Unknown XHR error"));return}x(),w=!0,r(null,W())}}},Nm=(i=[],r=Mm)=>Wc(i,r);var Fm={},hc={exports:{}},Vo,dc;function Bm(){if(dc)return Vo;dc=1;var i=1e3,r=i*60,n=r*60,a=n*24,u=a*7,c=a*365.25;Vo=function(m,w){w=w||{};var C=typeof m;if(C==="string"&&m.length>0)return h(m);if(C==="number"&&isFinite(m))return w.long?_(m):p(m);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(m))};function h(m){if(m=String(m),!(m.length>100)){var w=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(m);if(w){var C=parseFloat(w[1]),I=(w[2]||"ms").toLowerCase();switch(I){case"years":case"year":case"yrs":case"yr":case"y":return C*c;case"weeks":case"week":case"w":return C*u;case"days":case"day":case"d":return C*a;case"hours":case"hour":case"hrs":case"hr":case"h":return C*n;case"minutes":case"minute":case"mins":case"min":case"m":return C*r;case"seconds":case"second":case"secs":case"sec":case"s":return C*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return C;default:return}}}}function p(m){var w=Math.abs(m);return w>=a?Math.round(m/a)+"d":w>=n?Math.round(m/n)+"h":w>=r?Math.round(m/r)+"m":w>=i?Math.round(m/i)+"s":m+"ms"}function _(m){var w=Math.abs(m);return w>=a?E(m,w,a,"day"):w>=n?E(m,w,n,"hour"):w>=r?E(m,w,r,"minute"):w>=i?E(m,w,i,"second"):m+" ms"}function E(m,w,C,I){var N=w>=C*1.5;return Math.round(m/C)+" "+I+(N?"s":"")}return Vo}function Um(i){n.debug=n,n.default=n,n.coerce=_,n.disable=c,n.enable=u,n.enabled=h,n.humanize=Bm(),n.destroy=E,Object.keys(i).forEach(m=>{n[m]=i[m]}),n.names=[],n.skips=[],n.formatters={};function r(m){let w=0;for(let C=0;C{if(K==="%%")return"%";q++;const at=n.formatters[it];if(typeof at=="function"){const j=x[q];K=at.call(O,j),x.splice(q,1),q--}return K}),n.formatArgs.call(O,x),(O.log||n.log).apply(O,x)}return R.namespace=m,R.useColors=n.useColors(),R.color=n.selectColor(m),R.extend=a,R.destroy=n.destroy,Object.defineProperty(R,"enabled",{enumerable:!0,configurable:!1,get:()=>C!==null?C:(I!==n.namespaces&&(I=n.namespaces,N=n.enabled(m)),N),set:x=>{C=x}}),typeof n.init=="function"&&n.init(R),R}function a(m,w){const C=n(this.namespace+(typeof w>"u"?":":w)+m);return C.log=this.log,C}function u(m){n.save(m),n.namespaces=m,n.names=[],n.skips=[];let w;const C=(typeof m=="string"?m:"").split(/[\s,]+/),I=C.length;for(w=0;w"-"+w)].join(",");return n.enable(""),m}function h(m){if(m[m.length-1]==="*")return!0;let w,C;for(w=0,C=n.skips.length;w{let _=!1;return()=>{_||(_=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(_){if(_[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+_[0]+(this.useColors?"%c ":" ")+"+"+i.exports.humanize(this.diff),!this.useColors)return;const E="color: "+this.color;_.splice(1,0,E,"color: inherit");let m=0,w=0;_[0].replace(/%[a-zA-Z%]/g,C=>{C!=="%%"&&(m++,C==="%c"&&(w=m))}),_.splice(w,0,E)}r.log=console.debug||console.log||(()=>{});function u(_){try{_?r.storage.setItem("debug",_):r.storage.removeItem("debug")}catch{}}function c(){let _;try{_=r.storage.getItem("debug")}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=Fm.DEBUG),_}function h(){try{return localStorage}catch{}}i.exports=Wm(r);const{formatters:p}=i.exports;p.j=function(_){try{return JSON.stringify(_)}catch(E){return"[UnexpectedJSONParseError]: "+E.message}}})(hc,hc.exports);const qm=typeof Buffer>"u"?()=>!1:i=>Buffer.isBuffer(i);/*! * is-plain-object @@ -13,7 +13,7 @@ import{h as Sc,e as N_,r as sc,v as F_,g as Os,a as gt,t as It,c as Q,b as B,s a ...and ${a.length-5} more`),n.message=`${r.error.description}${c}`,n.details=r.error,n}return r.error&&r.error.description?(n.message=r.error.description,n.details=r.error,n):(n.message=r.error||r.message||ey(i),n)}function Qw(i){return cs(i)&&cs(i.error)&&i.error.type==="mutationError"&&typeof i.error.description=="string"}function ty(i){return cs(i)&&cs(i.error)&&i.error.type==="actionError"&&typeof i.error.description=="string"}function cs(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function ey(i){const r=i.statusMessage?` ${i.statusMessage}`:"";return`${i.method}-request to ${i.url} resulted in HTTP ${i.statusCode}${r}`}function ny(i,r){return(r.headers["content-type"]||"").toLowerCase().indexOf("application/json")!==-1?JSON.stringify(i,null,2):i}const ry={onResponse:i=>{if(i.statusCode>=500)throw new Vw(i);if(i.statusCode>=400)throw new Zw(i);return i}},iy={onResponse:i=>{const r=i.headers["x-sanity-warning"];return(Array.isArray(r)?r:[r]).filter(Boolean).forEach(n=>console.warn(n)),i}};function sy(i){return Nm([va({shouldRetry:oy}),...i,iy,km(),zm(),Ym(),ry,Km({implementation:xe})])}function oy(i,r,n){if(n.maxRetries===0)return!1;const a=n.method==="GET"||n.method==="HEAD",u=(n.uri||n.url).startsWith("/data/query"),c=i.response&&(i.response.statusCode===429||i.response.statusCode===502||i.response.statusCode===503);return(a||u)&&c?!0:va.shouldRetry(i,r,n)}function rf(i){if(typeof i=="string")return{id:i};if(Array.isArray(i))return{query:"*[_id in $ids]",params:{ids:i}};if(typeof i=="object"&&i!==null&&"query"in i&&typeof i.query=="string")return"params"in i&&typeof i.params=="object"&&i.params!==null?{query:i.query,params:i.params}:{query:i.query};const r=["* Document ID ()","* Array of document IDs","* Object containing `query`"].join(` `);throw new Error(`Unknown selection - must be one of: -${r}`)}const Ec=["image","file"],Cc=["before","after","replace"],sf=i=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(i))throw new Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},ay=i=>{if(!/^[-a-z0-9]+$/i.test(i))throw new Error("`projectId` can only contain only a-z, 0-9 and dashes")},uy=i=>{if(Ec.indexOf(i)===-1)throw new Error(`Invalid asset type: ${i}. Must be one of ${Ec.join(", ")}`)},zr=(i,r)=>{if(r===null||typeof r!="object"||Array.isArray(r))throw new Error(`${i}() takes an object of properties`)},of=(i,r)=>{if(typeof r!="string"||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(r)||r.includes(".."))throw new Error(`${i}(): "${r}" is not a valid document ID`)},fs=(i,r)=>{if(!r._id)throw new Error(`${i}() requires that the document contains an ID ("_id" property)`);of(i,r._id)},ly=(i,r,n)=>{const a="insert(at, selector, items)";if(Cc.indexOf(i)===-1){const u=Cc.map(c=>`"${c}"`).join(", ");throw new Error(`${a} takes an "at"-argument which is one of: ${u}`)}if(typeof r!="string")throw new Error(`${a} takes a "selector"-argument which must be a string`);if(!Array.isArray(n))throw new Error(`${a} takes an "items"-argument which must be an array`)},af=i=>{if(!i.dataset)throw new Error("`dataset` must be provided to perform queries");return i.dataset||""},uf=i=>{if(typeof i!="string"||!/^[a-z0-9._-]{1,75}$/i.test(i))throw new Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return i};var cy=Object.defineProperty,fy=(i,r,n)=>r in i?cy(i,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[r]=n,xc=(i,r,n)=>(fy(i,typeof r!="symbol"?r+"":r,n),n),lf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},gr=(i,r,n)=>(lf(i,r,"read from private field"),n?n.call(i):r.get(i)),cf=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},ff=(i,r,n,a)=>(lf(i,r,"write to private field"),r.set(i,n),n);class hf{constructor(r,n={}){xc(this,"selection"),xc(this,"operations"),this.selection=r,this.operations=n}set(r){return this._assign("set",r)}setIfMissing(r){return this._assign("setIfMissing",r)}diffMatchPatch(r){return zr("diffMatchPatch",r),this._assign("diffMatchPatch",r)}unset(r){if(!Array.isArray(r))throw new Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:r}),this}inc(r){return this._assign("inc",r)}dec(r){return this._assign("dec",r)}insert(r,n,a){return ly(r,n,a),this._assign("insert",{[r]:n,items:a})}append(r,n){return this.insert("after",`${r}[-1]`,n)}prepend(r,n){return this.insert("before",`${r}[0]`,n)}splice(r,n,a,u){const c=typeof a>"u"||a===-1,h=n<0?n-1:n,p=c?-1:Math.max(0,n+a),_=h<0&&p>=0?"":p,E=`${r}[${h}:${_}]`;return this.insert("replace",E,u||[])}ifRevisionId(r){return this.operations.ifRevisionID=r,this}serialize(){return{...rf(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(r,n,a=!0){return zr(r,n),this.operations=Object.assign({},this.operations,{[r]:Object.assign({},a&&this.operations[r]||{},n)}),this}_set(r,n){return this._assign(r,n,!1)}}var cr;const hy=class df extends hf{constructor(r,n,a){super(r,n),cf(this,cr,void 0),ff(this,cr,a)}clone(){return new df(this.selection,{...this.operations},gr(this,cr))}commit(r){if(!gr(this,cr))throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");const n=typeof this.selection=="string",a=Object.assign({returnFirst:n,returnDocuments:!0},r);return gr(this,cr).mutate({patch:this.serialize()},a)}};cr=new WeakMap;let jr=hy;var fr;const dy=class pf extends hf{constructor(r,n,a){super(r,n),cf(this,fr,void 0),ff(this,fr,a)}clone(){return new pf(this.selection,{...this.operations},gr(this,fr))}commit(r){if(!gr(this,fr))throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");const n=typeof this.selection=="string",a=Object.assign({returnFirst:n,returnDocuments:!0},r);return gr(this,fr).mutate({patch:this.serialize()},a)}};fr=new WeakMap;let Kr=dy;var py=Object.defineProperty,gy=(i,r,n)=>r in i?py(i,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[r]=n,Ac=(i,r,n)=>(gy(i,typeof r!="symbol"?r+"":r,n),n),gf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},En=(i,r,n)=>(gf(i,r,"read from private field"),n?n.call(i):r.get(i)),vf=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},_f=(i,r,n,a)=>(gf(i,r,"write to private field"),r.set(i,n),n);const mf={returnDocuments:!1};class wf{constructor(r=[],n){Ac(this,"operations"),Ac(this,"trxId"),this.operations=r,this.trxId=n}create(r){return zr("create",r),this._add({create:r})}createIfNotExists(r){const n="createIfNotExists";return zr(n,r),fs(n,r),this._add({[n]:r})}createOrReplace(r){const n="createOrReplace";return zr(n,r),fs(n,r),this._add({[n]:r})}delete(r){return of("delete",r),this._add({delete:{id:r}})}transactionId(r){return r?(this.trxId=r,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(r){return this.operations.push(r),this}}var $n;const vy=class yf extends wf{constructor(r,n,a){super(r,a),vf(this,$n,void 0),_f(this,$n,n)}clone(){return new yf([...this.operations],En(this,$n),this.trxId)}commit(r){if(!En(this,$n))throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return En(this,$n).mutate(this.serialize(),Object.assign({transactionId:this.trxId},mf,r||{}))}patch(r,n){const a=typeof n=="function";if(typeof r!="string"&&r instanceof Kr)return this._add({patch:r.serialize()});if(a){const u=n(new Kr(r,{},En(this,$n)));if(!(u instanceof Kr))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:u.serialize()})}return this._add({patch:{id:r,...n}})}};$n=new WeakMap;let bf=vy;var Mn;const _y=class Ef extends wf{constructor(r,n,a){super(r,a),vf(this,Mn,void 0),_f(this,Mn,n)}clone(){return new Ef([...this.operations],En(this,Mn),this.trxId)}commit(r){if(!En(this,Mn))throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return En(this,Mn).mutate(this.serialize(),Object.assign({transactionId:this.trxId},mf,r||{}))}patch(r,n){const a=typeof n=="function";if(typeof r!="string"&&r instanceof jr)return this._add({patch:r.serialize()});if(a){const u=n(new jr(r,{},En(this,Mn)));if(!(u instanceof jr))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:u.serialize()})}return this._add({patch:{id:r,...n}})}};Mn=new WeakMap;let Cf=_y;const my="https://www.sanity.io/help/";function xa(i){return my+i}function wy(i){let r=!1,n;return(...a)=>(r||(n=i(...a),r=!0),n)}const Qr=i=>wy((...r)=>console.warn(i.join(" "),...r)),yy=Qr(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),by=Qr(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),Ey=Qr(["The Sanity client is configured with the `perspective` set to `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),Cy=Qr(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${xa("js-client-browser-token")} for more information and how to hide this warning.`]),xy=Qr(["Using the Sanity client without specifying an API version is deprecated.",`See ${xa("js-client-api-version")}`]),Ay="apicdn.sanity.io",Yr={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},Oy=["localhost","127.0.0.1","0.0.0.0"],Ty=i=>Oy.indexOf(i)!==-1;function Sy(i){if(i==="1"||i==="X")return;const r=new Date(i);if(!(/^\d{4}-\d{2}-\d{2}$/.test(i)&&r instanceof Date&&r.getTime()>0))throw new Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}const xf=function(i){switch(i){case"previewDrafts":case"published":case"raw":return;default:throw new TypeError("Invalid API perspective string, expected `published`, `previewDrafts` or `raw`")}},Af=(i,r)=>{const n={...r,...i,stega:{...typeof r.stega=="boolean"?{enabled:r.stega}:r.stega||Yr.stega,...typeof i.stega=="boolean"?{enabled:i.stega}:i.stega||{}}};n.apiVersion||xy();const a={...Yr,...n},u=a.useProjectHostname;if(typeof Promise>"u"){const w=xa("js-client-promise-polyfill");throw new Error(`No native Promise-implementation found, polyfill needed - see ${w}`)}if(u&&!a.projectId)throw new Error("Configuration must contain `projectId`");if(typeof a.perspective=="string"&&xf(a.perspective),"encodeSourceMap"in a)throw new Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in a)throw new Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");if(typeof a.stega.enabled!="boolean")throw new Error(`stega.enabled must be a boolean, received ${a.stega.enabled}`);if(a.stega.enabled&&a.stega.studioUrl===void 0)throw new Error("stega.studioUrl must be defined when stega.enabled is true");if(a.stega.enabled&&typeof a.stega.studioUrl!="string"&&typeof a.stega.studioUrl!="function")throw new Error(`stega.studioUrl must be a string or a function, received ${a.stega.studioUrl}`);const c=typeof window<"u"&&window.location&&window.location.hostname,h=c&&Ty(window.location.hostname);c&&h&&a.token&&a.ignoreBrowserTokenWarning!==!0?Cy():typeof a.useCdn>"u"&&by(),u&&ay(a.projectId),a.dataset&&sf(a.dataset),"requestTagPrefix"in a&&(a.requestTagPrefix=a.requestTagPrefix?uf(a.requestTagPrefix).replace(/\.+$/,""):void 0),a.apiVersion=`${a.apiVersion}`.replace(/^v/,""),a.isDefaultApi=a.apiHost===Yr.apiHost,a.useCdn===!0&&a.withCredentials&&yy(),a.useCdn=a.useCdn!==!1&&!a.withCredentials,Sy(a.apiVersion);const p=a.apiHost.split("://",2),_=p[0],E=p[1],m=a.isDefaultApi?Ay:E;return a.useProjectHostname?(a.url=`${_}://${a.projectId}.${E}/v${a.apiVersion}`,a.cdnUrl=`${_}://${a.projectId}.${m}/v${a.apiVersion}`):(a.url=`${a.apiHost}/v${a.apiVersion}`,a.cdnUrl=a.url),a},Iy="X-Sanity-Project-ID";function Ry(i,r={}){const n={},a=r.token||i.token;a&&(n.Authorization=`Bearer ${a}`),!r.useGlobalApi&&!i.useProjectHostname&&i.projectId&&(n[Iy]=i.projectId);const u=!!(typeof r.withCredentials>"u"?i.token||i.withCredentials:r.withCredentials),c=typeof r.timeout>"u"?i.timeout:r.timeout;return Object.assign({},r,{headers:Object.assign({},n,r.headers||{}),timeout:typeof c>"u"?5*60*1e3:c,proxy:r.proxy||i.proxy,json:!0,withCredentials:u,fetch:typeof r.fetch=="object"&&typeof i.fetch=="object"?{...i.fetch,...r.fetch}:r.fetch||i.fetch})}const Of=({query:i,params:r={},options:n={}})=>{const a=new URLSearchParams,{tag:u,returnQuery:c,...h}=n;u&&a.append("tag",u),a.append("query",i);for(const[p,_]of Object.entries(r))a.append(`$${p}`,JSON.stringify(_));for(const[p,_]of Object.entries(h))_&&a.append(p,`${_}`);return c===!1&&a.append("returnQuery","false"),`?${a}`},Ly=(i,r)=>i===!1?void 0:typeof i>"u"?r:i,Py=(i={})=>({dryRun:i.dryRun,returnIds:!0,returnDocuments:Ly(i.returnDocuments,!0),visibility:i.visibility||"sync",autoGenerateArrayKeys:i.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:i.skipCrossDatasetReferenceValidation}),Aa=i=>i.type==="response",Dy=i=>i.body,$y=(i,r)=>i.reduce((n,a)=>(n[r(a)]=a,n),Object.create(null)),My=11264;function Tf(i,r,n,a,u={},c={}){const h="stega"in c?{...n||{},...typeof c.stega=="boolean"?{enabled:c.stega}:c.stega||{}}:n,p=h.enabled?Yw(u):u,_=c.filterResponse===!1?N=>N:N=>N.result,{cache:E,next:m,...w}={useAbortSignal:typeof c.signal<"u",resultSourceMap:h.enabled?"withKeyArraySelector":c.resultSourceMap,...c,returnQuery:c.filterResponse===!1&&c.returnQuery!==!1},C=typeof E<"u"||typeof m<"u"?{...w,fetch:{cache:E,next:m}}:w,I=wr(i,r,"query",{query:a,params:p},C);return h.enabled?I.pipe(Ww(Qc(ga(()=>import("./stegaEncodeSourceMap.CxhRIzmO.js"),[],import.meta.url).then(function(N){return N.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:N})=>N))),on(([N,R])=>{const x=R(N.result,N.resultSourceMap,h);return _({...N,result:x})})):I.pipe(on(_))}function Sf(i,r,n,a={}){const u={uri:Kn(i,"doc",n),json:!0,tag:a.tag};return ti(i,r,u).pipe(Vr(Aa),on(c=>c.body.documents&&c.body.documents[0]))}function If(i,r,n,a={}){const u={uri:Kn(i,"doc",n.join(",")),json:!0,tag:a.tag};return ti(i,r,u).pipe(Vr(Aa),on(c=>{const h=$y(c.body.documents||[],p=>p._id);return n.map(p=>h[p]||null)}))}function Rf(i,r,n,a){return fs("createIfNotExists",n),Ss(i,r,n,"createIfNotExists",a)}function Lf(i,r,n,a){return fs("createOrReplace",n),Ss(i,r,n,"createOrReplace",a)}function Pf(i,r,n,a){return wr(i,r,"mutate",{mutations:[{delete:rf(n)}]},a)}function Df(i,r,n,a){let u;n instanceof Kr||n instanceof jr?u={patch:n.serialize()}:n instanceof bf||n instanceof Cf?u=n.serialize():u=n;const c=Array.isArray(u)?u:[u],h=a&&a.transactionId||void 0;return wr(i,r,"mutate",{mutations:c,transactionId:h},a)}function $f(i,r,n,a){const u=Array.isArray(n)?n:[n],c=a&&a.transactionId||void 0,h=a&&a.skipCrossDatasetReferenceValidation||void 0,p=a&&a.dryRun||void 0;return wr(i,r,"actions",{actions:u,transactionId:c,skipCrossDatasetReferenceValidation:h,dryRun:p},a)}function wr(i,r,n,a,u={}){const c=n==="mutate",h=n==="actions",p=n==="query",_=c||h?"":Of(a),E=!c&&!h&&_.length{if(!c)return q;const K=q.results||[];if(u.returnDocuments)return w?K[0]&&K[0].document:K.map(j=>j.document);const it=w?"documentId":"documentIds",at=w?K[0]&&K[0].id:K.map(j=>j.id);return{transactionId:q.transactionId,results:K,[it]:at}}))}function Ss(i,r,n,a,u={}){const c={[a]:n},h=Object.assign({returnFirst:!0,returnDocuments:!0},u);return wr(i,r,"mutate",{mutations:[c]},h)}function ti(i,r,n){var a,u;const c=n.url||n.uri,h=i.config(),p=typeof n.canUseCdn>"u"?["GET","HEAD"].indexOf(n.method||"GET")>=0&&c.indexOf("/data/")===0:n.canUseCdn;let _=((a=n.useCdn)!=null?a:h.useCdn)&&p;const E=n.tag&&h.requestTagPrefix?[h.requestTagPrefix,n.tag].join("."):n.tag||h.requestTagPrefix;if(E&&n.tag!==null&&(n.query={tag:uf(E),...n.query}),["GET","HEAD","POST"].indexOf(n.method||"GET")>=0&&c.indexOf("/data/query/")===0){const C=(u=n.resultSourceMap)!=null?u:h.resultSourceMap;C!==void 0&&C!==!1&&(n.query={resultSourceMap:C,...n.query});const I=n.perspective||h.perspective;typeof I=="string"&&I!=="raw"&&(xf(I),n.query={perspective:I,...n.query},I==="previewDrafts"&&_&&(_=!1,Ey())),n.lastLiveEventId&&(n.query={...n.query,lastLiveEventId:n.lastLiveEventId}),n.returnQuery===!1&&(n.query={returnQuery:"false",...n.query})}const m=Ry(h,Object.assign({},n,{url:Oa(i,c,_)})),w=new xe(C=>r(m,h.requester).subscribe(C));return n.signal?w.pipe(Ny(n.signal)):w}function Fe(i,r,n){return ti(i,r,n).pipe(Vr(a=>a.type==="response"),on(a=>a.body))}function Kn(i,r,n){const a=i.config(),u=af(a),c=`/${r}/${u}`;return`/data${n?`${c}/${n}`:c}`.replace(/\/($|\?)/,"$1")}function Oa(i,r,n=!1){const{url:a,cdnUrl:u}=i.config();return`${n?u:a}/${r.replace(/^\//,"")}`}function Ny(i){return r=>new xe(n=>{const a=()=>n.error(By(i));if(i&&i.aborted){a();return}const u=r.subscribe(n);return i.addEventListener("abort",a),()=>{i.removeEventListener("abort",a),u.unsubscribe()}})}const Fy=!!globalThis.DOMException;function By(i){var r,n;if(Fy)return new DOMException((r=i==null?void 0:i.reason)!=null?r:"The operation was aborted.","AbortError");const a=new Error((n=i==null?void 0:i.reason)!=null?n:"The operation was aborted.");return a.name="AbortError",a}var Mf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},hs=(i,r,n)=>(Mf(i,r,"read from private field"),n?n.call(i):r.get(i)),ds=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},ps=(i,r,n,a)=>(Mf(i,r,"write to private field"),r.set(i,n),n),ts,es;class Uy{constructor(r,n){ds(this,ts,void 0),ds(this,es,void 0),ps(this,ts,r),ps(this,es,n)}upload(r,n,a){return Nf(hs(this,ts),hs(this,es),r,n,a)}}ts=new WeakMap,es=new WeakMap;var ns,rs;class Wy{constructor(r,n){ds(this,ns,void 0),ds(this,rs,void 0),ps(this,ns,r),ps(this,rs,n)}upload(r,n,a){const u=Nf(hs(this,ns),hs(this,rs),r,n,a);return Wt(u.pipe(Vr(c=>c.type==="response"),on(c=>c.body.document)))}}ns=new WeakMap,rs=new WeakMap;function Nf(i,r,n,a,u={}){uy(n);let c=u.extract||void 0;c&&!c.length&&(c=["none"]);const h=af(i.config()),p=n==="image"?"images":"files",_=qy(u,a),{tag:E,label:m,title:w,description:C,creditLine:I,filename:N,source:R}=_,x={label:m,title:w,description:C,filename:N,meta:c,creditLine:I};return R&&(x.sourceId=R.id,x.sourceName=R.name,x.sourceUrl=R.url),ti(i,r,{tag:E,method:"POST",timeout:_.timeout||0,uri:`/assets/${p}/${h}`,headers:_.contentType?{"Content-Type":_.contentType}:{},query:x,body:a})}function qy(i,r){return typeof File>"u"||!(r instanceof File)?i:Object.assign({filename:i.preserveFilename===!1?void 0:r.name,contentType:r.type},i)}var Hy=(i,r)=>Object.keys(r).concat(Object.keys(i)).reduce((n,a)=>(n[a]=typeof i[a]>"u"?r[a]:i[a],n),{});const Gy=(i,r)=>r.reduce((n,a)=>(typeof i[a]>"u"||(n[a]=i[a]),n),{}),ky=14800,zy=["includePreviousRevision","includeResult","visibility","effectFormat","tag"],jy={includeResult:!0};function Ff(i,r,n={}){const{url:a,token:u,withCredentials:c,requestTagPrefix:h}=this.config(),p=n.tag&&h?[h,n.tag].join("."):n.tag,_={...Hy(n,jy),tag:p},E=Gy(_,zy),m=Of({query:i,params:r,options:{tag:p,...E}}),w=`${a}${Kn(this,"listen",m)}`;if(w.length>ky)return new xe(R=>R.error(new Error("Query too large for listener")));const C=_.events?_.events:["mutation"],I=C.indexOf("reconnect")!==-1,N={};return(u||c)&&(N.withCredentials=!0),u&&(N.headers={Authorization:`Bearer ${u}`}),new xe(R=>{let x,O,W=!1,G=!1;T();function q(){W||(Z(),!W&&x.readyState===x.CLOSED&&(j(),clearTimeout(O),O=setTimeout(T,100)))}function K(D){R.error(Ky(D))}function it(D){const L=Bf(D);return L instanceof Error?R.error(L):R.next(L)}function at(){W=!0,j(),R.complete()}function j(){x&&(x.removeEventListener("error",q),x.removeEventListener("channelError",K),x.removeEventListener("disconnect",at),C.forEach(D=>x.removeEventListener(D,it)),x.close())}function Z(){I&&R.next({type:"reconnect"})}async function Tt(){const{default:D}=await ga(async()=>{const{default:V}=await import("./browser.BhnyNIqh.js").then(z=>z.b);return{default:V}},[],import.meta.url);if(G)return;const L=new D(w,N);return L.addEventListener("error",q),L.addEventListener("channelError",K),L.addEventListener("disconnect",at),C.forEach(V=>L.addEventListener(V,it)),L}function T(){Tt().then(D=>{D&&(x=D,G&&j())}).catch(D=>{R.error(D),M()})}function M(){W=!0,j(),G=!0}return M})}function Bf(i){try{const r=i.data&&JSON.parse(i.data)||{};return Object.assign({type:i.type},r)}catch(r){return r}}function Ky(i){if(i instanceof Error)return i;const r=Bf(i);return r instanceof Error?r:new Error(Yy(r))}function Yy(i){return i.error?i.error.description?i.error.description:typeof i.error=="string"?i.error:JSON.stringify(i.error,null,2):i.message||"Unknown listener error"}var Uf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},ea=(i,r,n)=>(Uf(i,r,"read from private field"),n?n.call(i):r.get(i)),Jy=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},Xy=(i,r,n,a)=>(Uf(i,r,"write to private field"),r.set(i,n),n);const Oc="2021-03-26";var hr;class Wf{constructor(r){Jy(this,hr,void 0),Xy(this,hr,r)}events(){const r=ea(this,hr).config().apiVersion.replace(/^v/,"");if(r!=="X"&&r{let h,p,_=!1,E=!1;N();function m(x){if(!_){if("data"in x){const O=Tc(x);c.error(new Error(O.message,{cause:O}))}h.readyState===h.CLOSED&&(C(),clearTimeout(p),p=setTimeout(N,100))}}function w(x){const O=Tc(x);return O instanceof Error?c.error(O):c.next(O)}function C(){if(h){h.removeEventListener("error",m);for(const x of u)h.removeEventListener(x,w);h.close()}}async function I(){const x=typeof EventSource>"u"?(await ga(async()=>{const{default:W}=await import("./browser.BhnyNIqh.js").then(G=>G.b);return{default:W}},[],import.meta.url)).default:EventSource;if(E)return;const O=new x(a.toString());O.addEventListener("error",m);for(const W of u)O.addEventListener(W,w);return O}function N(){I().then(x=>{x&&(h=x,E&&C())}).catch(x=>{c.error(x),R()})}function R(){_=!0,C(),E=!0}return R})}}hr=new WeakMap;function Tc(i){try{const r=i.data&&JSON.parse(i.data)||{};return{type:i.type,id:i.lastEventId,...r}}catch(r){return r}}var qf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},Yt=(i,r,n)=>(qf(i,r,"read from private field"),n?n.call(i):r.get(i)),gs=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},vs=(i,r,n,a)=>(qf(i,r,"write to private field"),r.set(i,n),n),Nn,Fn;class Zy{constructor(r,n){gs(this,Nn,void 0),gs(this,Fn,void 0),vs(this,Nn,r),vs(this,Fn,n)}create(r,n){return vr(Yt(this,Nn),Yt(this,Fn),"PUT",r,n)}edit(r,n){return vr(Yt(this,Nn),Yt(this,Fn),"PATCH",r,n)}delete(r){return vr(Yt(this,Nn),Yt(this,Fn),"DELETE",r)}list(){return Fe(Yt(this,Nn),Yt(this,Fn),{uri:"/datasets",tag:null})}}Nn=new WeakMap,Fn=new WeakMap;var Bn,Un;class Vy{constructor(r,n){gs(this,Bn,void 0),gs(this,Un,void 0),vs(this,Bn,r),vs(this,Un,n)}create(r,n){return Wt(vr(Yt(this,Bn),Yt(this,Un),"PUT",r,n))}edit(r,n){return Wt(vr(Yt(this,Bn),Yt(this,Un),"PATCH",r,n))}delete(r){return Wt(vr(Yt(this,Bn),Yt(this,Un),"DELETE",r))}list(){return Wt(Fe(Yt(this,Bn),Yt(this,Un),{uri:"/datasets",tag:null}))}}Bn=new WeakMap,Un=new WeakMap;function vr(i,r,n,a,u){return sf(a),Fe(i,r,{method:n,uri:`/datasets/${a}`,body:u,tag:null})}var Hf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},Cn=(i,r,n)=>(Hf(i,r,"read from private field"),n?n.call(i):r.get(i)),_s=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},ms=(i,r,n,a)=>(Hf(i,r,"write to private field"),r.set(i,n),n),qr,Hr;class Qy{constructor(r,n){_s(this,qr,void 0),_s(this,Hr,void 0),ms(this,qr,r),ms(this,Hr,n)}list(r){const n=(r==null?void 0:r.includeMembers)===!1?"/projects?includeMembers=false":"/projects";return Fe(Cn(this,qr),Cn(this,Hr),{uri:n})}getById(r){return Fe(Cn(this,qr),Cn(this,Hr),{uri:`/projects/${r}`})}}qr=new WeakMap,Hr=new WeakMap;var Gr,kr;class tb{constructor(r,n){_s(this,Gr,void 0),_s(this,kr,void 0),ms(this,Gr,r),ms(this,kr,n)}list(r){const n=(r==null?void 0:r.includeMembers)===!1?"/projects?includeMembers=false":"/projects";return Wt(Fe(Cn(this,Gr),Cn(this,kr),{uri:n}))}getById(r){return Wt(Fe(Cn(this,Gr),Cn(this,kr),{uri:`/projects/${r}`}))}}Gr=new WeakMap,kr=new WeakMap;var Gf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},ws=(i,r,n)=>(Gf(i,r,"read from private field"),n?n.call(i):r.get(i)),ys=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},bs=(i,r,n,a)=>(Gf(i,r,"write to private field"),r.set(i,n),n),is,ss;class eb{constructor(r,n){ys(this,is,void 0),ys(this,ss,void 0),bs(this,is,r),bs(this,ss,n)}getById(r){return Fe(ws(this,is),ws(this,ss),{uri:`/users/${r}`})}}is=new WeakMap,ss=new WeakMap;var os,as;class nb{constructor(r,n){ys(this,os,void 0),ys(this,as,void 0),bs(this,os,r),bs(this,as,n)}getById(r){return Wt(Fe(ws(this,os),ws(this,as),{uri:`/users/${r}`}))}}os=new WeakMap,as=new WeakMap;var rb=Object.defineProperty,ib=(i,r,n)=>r in i?rb(i,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[r]=n,de=(i,r,n)=>(ib(i,typeof r!="symbol"?r+"":r,n),n),kf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},rt=(i,r,n)=>(kf(i,r,"read from private field"),n?n.call(i):r.get(i)),Es=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},Cs=(i,r,n,a)=>(kf(i,r,"write to private field"),r.set(i,n),n),mn,Bt;const sb=class fa{constructor(r,n=Yr){de(this,"assets"),de(this,"datasets"),de(this,"live"),de(this,"projects"),de(this,"users"),Es(this,mn,void 0),Es(this,Bt,void 0),de(this,"listen",Ff),this.config(n),Cs(this,Bt,r),this.assets=new Uy(this,rt(this,Bt)),this.datasets=new Zy(this,rt(this,Bt)),this.live=new Wf(this),this.projects=new Qy(this,rt(this,Bt)),this.users=new eb(this,rt(this,Bt))}clone(){return new fa(rt(this,Bt),this.config())}config(r){if(r===void 0)return{...rt(this,mn)};if(rt(this,mn)&&rt(this,mn).allowReconfigure===!1)throw new Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return Cs(this,mn,Af(r,rt(this,mn)||{})),this}withConfig(r){const n=this.config();return new fa(rt(this,Bt),{...n,...r,stega:{...n.stega||{},...typeof(r==null?void 0:r.stega)=="boolean"?{enabled:r.stega}:(r==null?void 0:r.stega)||{}}})}fetch(r,n,a){return Tf(this,rt(this,Bt),rt(this,mn).stega,r,n,a)}getDocument(r,n){return Sf(this,rt(this,Bt),r,n)}getDocuments(r,n){return If(this,rt(this,Bt),r,n)}create(r,n){return Ss(this,rt(this,Bt),r,"create",n)}createIfNotExists(r,n){return Rf(this,rt(this,Bt),r,n)}createOrReplace(r,n){return Lf(this,rt(this,Bt),r,n)}delete(r,n){return Pf(this,rt(this,Bt),r,n)}mutate(r,n){return Df(this,rt(this,Bt),r,n)}patch(r,n){return new jr(r,n,this)}transaction(r){return new Cf(r,this)}action(r,n){return $f(this,rt(this,Bt),r,n)}request(r){return Fe(this,rt(this,Bt),r)}getUrl(r,n){return Oa(this,r,n)}getDataUrl(r,n){return Kn(this,r,n)}};mn=new WeakMap,Bt=new WeakMap;let ob=sb;var wn,Dt;const ab=class ha{constructor(r,n=Yr){de(this,"assets"),de(this,"datasets"),de(this,"live"),de(this,"projects"),de(this,"users"),de(this,"observable"),Es(this,wn,void 0),Es(this,Dt,void 0),de(this,"listen",Ff),this.config(n),Cs(this,Dt,r),this.assets=new Wy(this,rt(this,Dt)),this.datasets=new Vy(this,rt(this,Dt)),this.live=new Wf(this),this.projects=new tb(this,rt(this,Dt)),this.users=new nb(this,rt(this,Dt)),this.observable=new ob(r,n)}clone(){return new ha(rt(this,Dt),this.config())}config(r){if(r===void 0)return{...rt(this,wn)};if(rt(this,wn)&&rt(this,wn).allowReconfigure===!1)throw new Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(r),Cs(this,wn,Af(r,rt(this,wn)||{})),this}withConfig(r){const n=this.config();return new ha(rt(this,Dt),{...n,...r,stega:{...n.stega||{},...typeof(r==null?void 0:r.stega)=="boolean"?{enabled:r.stega}:(r==null?void 0:r.stega)||{}}})}fetch(r,n,a){return Wt(Tf(this,rt(this,Dt),rt(this,wn).stega,r,n,a))}getDocument(r,n){return Wt(Sf(this,rt(this,Dt),r,n))}getDocuments(r,n){return Wt(If(this,rt(this,Dt),r,n))}create(r,n){return Wt(Ss(this,rt(this,Dt),r,"create",n))}createIfNotExists(r,n){return Wt(Rf(this,rt(this,Dt),r,n))}createOrReplace(r,n){return Wt(Lf(this,rt(this,Dt),r,n))}delete(r,n){return Wt(Pf(this,rt(this,Dt),r,n))}mutate(r,n){return Wt(Df(this,rt(this,Dt),r,n))}patch(r,n){return new Kr(r,n,this)}transaction(r){return new bf(r,this)}action(r,n){return Wt($f(this,rt(this,Dt),r,n))}request(r){return Wt(Fe(this,rt(this,Dt),r))}dataRequest(r,n,a){return Wt(wr(this,rt(this,Dt),r,n,a))}getUrl(r,n){return Oa(this,r,n)}getDataUrl(r,n){return Kn(this,r,n)}};wn=new WeakMap,Dt=new WeakMap;let ub=ab;function lb(i,r){const n=sy(i);return{requester:n,createClient:a=>new r((u,c)=>(c||n)({maxRedirects:0,maxRetries:a.maxRetries,retryDelay:a.retryDelay,...u}),a)}}var cb=[];const fb=lb(cb,ub),hb=fb.createClient;var dr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zf(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var jf={exports:{}};(function(i,r){(function(n,a){i.exports=a()})(dr,function(){function n(){return n=Object.assign||function(T){for(var M=1;MT.length)&&(M=T.length);for(var D=0,L=new Array(M);D=T.length?{done:!0}:{done:!1,value:T[L++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +${r}`)}const Ec=["image","file"],Cc=["before","after","replace"],sf=i=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(i))throw new Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},ay=i=>{if(!/^[-a-z0-9]+$/i.test(i))throw new Error("`projectId` can only contain only a-z, 0-9 and dashes")},uy=i=>{if(Ec.indexOf(i)===-1)throw new Error(`Invalid asset type: ${i}. Must be one of ${Ec.join(", ")}`)},zr=(i,r)=>{if(r===null||typeof r!="object"||Array.isArray(r))throw new Error(`${i}() takes an object of properties`)},of=(i,r)=>{if(typeof r!="string"||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(r)||r.includes(".."))throw new Error(`${i}(): "${r}" is not a valid document ID`)},fs=(i,r)=>{if(!r._id)throw new Error(`${i}() requires that the document contains an ID ("_id" property)`);of(i,r._id)},ly=(i,r,n)=>{const a="insert(at, selector, items)";if(Cc.indexOf(i)===-1){const u=Cc.map(c=>`"${c}"`).join(", ");throw new Error(`${a} takes an "at"-argument which is one of: ${u}`)}if(typeof r!="string")throw new Error(`${a} takes a "selector"-argument which must be a string`);if(!Array.isArray(n))throw new Error(`${a} takes an "items"-argument which must be an array`)},af=i=>{if(!i.dataset)throw new Error("`dataset` must be provided to perform queries");return i.dataset||""},uf=i=>{if(typeof i!="string"||!/^[a-z0-9._-]{1,75}$/i.test(i))throw new Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return i};var cy=Object.defineProperty,fy=(i,r,n)=>r in i?cy(i,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[r]=n,xc=(i,r,n)=>(fy(i,typeof r!="symbol"?r+"":r,n),n),lf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},gr=(i,r,n)=>(lf(i,r,"read from private field"),n?n.call(i):r.get(i)),cf=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},ff=(i,r,n,a)=>(lf(i,r,"write to private field"),r.set(i,n),n);class hf{constructor(r,n={}){xc(this,"selection"),xc(this,"operations"),this.selection=r,this.operations=n}set(r){return this._assign("set",r)}setIfMissing(r){return this._assign("setIfMissing",r)}diffMatchPatch(r){return zr("diffMatchPatch",r),this._assign("diffMatchPatch",r)}unset(r){if(!Array.isArray(r))throw new Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:r}),this}inc(r){return this._assign("inc",r)}dec(r){return this._assign("dec",r)}insert(r,n,a){return ly(r,n,a),this._assign("insert",{[r]:n,items:a})}append(r,n){return this.insert("after",`${r}[-1]`,n)}prepend(r,n){return this.insert("before",`${r}[0]`,n)}splice(r,n,a,u){const c=typeof a>"u"||a===-1,h=n<0?n-1:n,p=c?-1:Math.max(0,n+a),_=h<0&&p>=0?"":p,E=`${r}[${h}:${_}]`;return this.insert("replace",E,u||[])}ifRevisionId(r){return this.operations.ifRevisionID=r,this}serialize(){return{...rf(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(r,n,a=!0){return zr(r,n),this.operations=Object.assign({},this.operations,{[r]:Object.assign({},a&&this.operations[r]||{},n)}),this}_set(r,n){return this._assign(r,n,!1)}}var cr;const hy=class df extends hf{constructor(r,n,a){super(r,n),cf(this,cr,void 0),ff(this,cr,a)}clone(){return new df(this.selection,{...this.operations},gr(this,cr))}commit(r){if(!gr(this,cr))throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");const n=typeof this.selection=="string",a=Object.assign({returnFirst:n,returnDocuments:!0},r);return gr(this,cr).mutate({patch:this.serialize()},a)}};cr=new WeakMap;let jr=hy;var fr;const dy=class pf extends hf{constructor(r,n,a){super(r,n),cf(this,fr,void 0),ff(this,fr,a)}clone(){return new pf(this.selection,{...this.operations},gr(this,fr))}commit(r){if(!gr(this,fr))throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");const n=typeof this.selection=="string",a=Object.assign({returnFirst:n,returnDocuments:!0},r);return gr(this,fr).mutate({patch:this.serialize()},a)}};fr=new WeakMap;let Kr=dy;var py=Object.defineProperty,gy=(i,r,n)=>r in i?py(i,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[r]=n,Ac=(i,r,n)=>(gy(i,typeof r!="symbol"?r+"":r,n),n),gf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},En=(i,r,n)=>(gf(i,r,"read from private field"),n?n.call(i):r.get(i)),vf=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},_f=(i,r,n,a)=>(gf(i,r,"write to private field"),r.set(i,n),n);const mf={returnDocuments:!1};class wf{constructor(r=[],n){Ac(this,"operations"),Ac(this,"trxId"),this.operations=r,this.trxId=n}create(r){return zr("create",r),this._add({create:r})}createIfNotExists(r){const n="createIfNotExists";return zr(n,r),fs(n,r),this._add({[n]:r})}createOrReplace(r){const n="createOrReplace";return zr(n,r),fs(n,r),this._add({[n]:r})}delete(r){return of("delete",r),this._add({delete:{id:r}})}transactionId(r){return r?(this.trxId=r,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(r){return this.operations.push(r),this}}var $n;const vy=class yf extends wf{constructor(r,n,a){super(r,a),vf(this,$n,void 0),_f(this,$n,n)}clone(){return new yf([...this.operations],En(this,$n),this.trxId)}commit(r){if(!En(this,$n))throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return En(this,$n).mutate(this.serialize(),Object.assign({transactionId:this.trxId},mf,r||{}))}patch(r,n){const a=typeof n=="function";if(typeof r!="string"&&r instanceof Kr)return this._add({patch:r.serialize()});if(a){const u=n(new Kr(r,{},En(this,$n)));if(!(u instanceof Kr))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:u.serialize()})}return this._add({patch:{id:r,...n}})}};$n=new WeakMap;let bf=vy;var Mn;const _y=class Ef extends wf{constructor(r,n,a){super(r,a),vf(this,Mn,void 0),_f(this,Mn,n)}clone(){return new Ef([...this.operations],En(this,Mn),this.trxId)}commit(r){if(!En(this,Mn))throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return En(this,Mn).mutate(this.serialize(),Object.assign({transactionId:this.trxId},mf,r||{}))}patch(r,n){const a=typeof n=="function";if(typeof r!="string"&&r instanceof jr)return this._add({patch:r.serialize()});if(a){const u=n(new jr(r,{},En(this,Mn)));if(!(u instanceof jr))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:u.serialize()})}return this._add({patch:{id:r,...n}})}};Mn=new WeakMap;let Cf=_y;const my="https://www.sanity.io/help/";function xa(i){return my+i}function wy(i){let r=!1,n;return(...a)=>(r||(n=i(...a),r=!0),n)}const Qr=i=>wy((...r)=>console.warn(i.join(" "),...r)),yy=Qr(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),by=Qr(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),Ey=Qr(["The Sanity client is configured with the `perspective` set to `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),Cy=Qr(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${xa("js-client-browser-token")} for more information and how to hide this warning.`]),xy=Qr(["Using the Sanity client without specifying an API version is deprecated.",`See ${xa("js-client-api-version")}`]),Ay="apicdn.sanity.io",Yr={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},Oy=["localhost","127.0.0.1","0.0.0.0"],Ty=i=>Oy.indexOf(i)!==-1;function Sy(i){if(i==="1"||i==="X")return;const r=new Date(i);if(!(/^\d{4}-\d{2}-\d{2}$/.test(i)&&r instanceof Date&&r.getTime()>0))throw new Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}const xf=function(i){switch(i){case"previewDrafts":case"published":case"raw":return;default:throw new TypeError("Invalid API perspective string, expected `published`, `previewDrafts` or `raw`")}},Af=(i,r)=>{const n={...r,...i,stega:{...typeof r.stega=="boolean"?{enabled:r.stega}:r.stega||Yr.stega,...typeof i.stega=="boolean"?{enabled:i.stega}:i.stega||{}}};n.apiVersion||xy();const a={...Yr,...n},u=a.useProjectHostname;if(typeof Promise>"u"){const w=xa("js-client-promise-polyfill");throw new Error(`No native Promise-implementation found, polyfill needed - see ${w}`)}if(u&&!a.projectId)throw new Error("Configuration must contain `projectId`");if(typeof a.perspective=="string"&&xf(a.perspective),"encodeSourceMap"in a)throw new Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in a)throw new Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");if(typeof a.stega.enabled!="boolean")throw new Error(`stega.enabled must be a boolean, received ${a.stega.enabled}`);if(a.stega.enabled&&a.stega.studioUrl===void 0)throw new Error("stega.studioUrl must be defined when stega.enabled is true");if(a.stega.enabled&&typeof a.stega.studioUrl!="string"&&typeof a.stega.studioUrl!="function")throw new Error(`stega.studioUrl must be a string or a function, received ${a.stega.studioUrl}`);const c=typeof window<"u"&&window.location&&window.location.hostname,h=c&&Ty(window.location.hostname);c&&h&&a.token&&a.ignoreBrowserTokenWarning!==!0?Cy():typeof a.useCdn>"u"&&by(),u&&ay(a.projectId),a.dataset&&sf(a.dataset),"requestTagPrefix"in a&&(a.requestTagPrefix=a.requestTagPrefix?uf(a.requestTagPrefix).replace(/\.+$/,""):void 0),a.apiVersion=`${a.apiVersion}`.replace(/^v/,""),a.isDefaultApi=a.apiHost===Yr.apiHost,a.useCdn===!0&&a.withCredentials&&yy(),a.useCdn=a.useCdn!==!1&&!a.withCredentials,Sy(a.apiVersion);const p=a.apiHost.split("://",2),_=p[0],E=p[1],m=a.isDefaultApi?Ay:E;return a.useProjectHostname?(a.url=`${_}://${a.projectId}.${E}/v${a.apiVersion}`,a.cdnUrl=`${_}://${a.projectId}.${m}/v${a.apiVersion}`):(a.url=`${a.apiHost}/v${a.apiVersion}`,a.cdnUrl=a.url),a},Iy="X-Sanity-Project-ID";function Ry(i,r={}){const n={},a=r.token||i.token;a&&(n.Authorization=`Bearer ${a}`),!r.useGlobalApi&&!i.useProjectHostname&&i.projectId&&(n[Iy]=i.projectId);const u=!!(typeof r.withCredentials>"u"?i.token||i.withCredentials:r.withCredentials),c=typeof r.timeout>"u"?i.timeout:r.timeout;return Object.assign({},r,{headers:Object.assign({},n,r.headers||{}),timeout:typeof c>"u"?5*60*1e3:c,proxy:r.proxy||i.proxy,json:!0,withCredentials:u,fetch:typeof r.fetch=="object"&&typeof i.fetch=="object"?{...i.fetch,...r.fetch}:r.fetch||i.fetch})}const Of=({query:i,params:r={},options:n={}})=>{const a=new URLSearchParams,{tag:u,returnQuery:c,...h}=n;u&&a.append("tag",u),a.append("query",i);for(const[p,_]of Object.entries(r))a.append(`$${p}`,JSON.stringify(_));for(const[p,_]of Object.entries(h))_&&a.append(p,`${_}`);return c===!1&&a.append("returnQuery","false"),`?${a}`},Ly=(i,r)=>i===!1?void 0:typeof i>"u"?r:i,Py=(i={})=>({dryRun:i.dryRun,returnIds:!0,returnDocuments:Ly(i.returnDocuments,!0),visibility:i.visibility||"sync",autoGenerateArrayKeys:i.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:i.skipCrossDatasetReferenceValidation}),Aa=i=>i.type==="response",Dy=i=>i.body,$y=(i,r)=>i.reduce((n,a)=>(n[r(a)]=a,n),Object.create(null)),My=11264;function Tf(i,r,n,a,u={},c={}){const h="stega"in c?{...n||{},...typeof c.stega=="boolean"?{enabled:c.stega}:c.stega||{}}:n,p=h.enabled?Yw(u):u,_=c.filterResponse===!1?N=>N:N=>N.result,{cache:E,next:m,...w}={useAbortSignal:typeof c.signal<"u",resultSourceMap:h.enabled?"withKeyArraySelector":c.resultSourceMap,...c,returnQuery:c.filterResponse===!1&&c.returnQuery!==!1},C=typeof E<"u"||typeof m<"u"?{...w,fetch:{cache:E,next:m}}:w,I=wr(i,r,"query",{query:a,params:p},C);return h.enabled?I.pipe(Ww(Qc(ga(()=>import("./stegaEncodeSourceMap.Dqxs4OFo.js"),[],import.meta.url).then(function(N){return N.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:N})=>N))),on(([N,R])=>{const x=R(N.result,N.resultSourceMap,h);return _({...N,result:x})})):I.pipe(on(_))}function Sf(i,r,n,a={}){const u={uri:Kn(i,"doc",n),json:!0,tag:a.tag};return ti(i,r,u).pipe(Vr(Aa),on(c=>c.body.documents&&c.body.documents[0]))}function If(i,r,n,a={}){const u={uri:Kn(i,"doc",n.join(",")),json:!0,tag:a.tag};return ti(i,r,u).pipe(Vr(Aa),on(c=>{const h=$y(c.body.documents||[],p=>p._id);return n.map(p=>h[p]||null)}))}function Rf(i,r,n,a){return fs("createIfNotExists",n),Ss(i,r,n,"createIfNotExists",a)}function Lf(i,r,n,a){return fs("createOrReplace",n),Ss(i,r,n,"createOrReplace",a)}function Pf(i,r,n,a){return wr(i,r,"mutate",{mutations:[{delete:rf(n)}]},a)}function Df(i,r,n,a){let u;n instanceof Kr||n instanceof jr?u={patch:n.serialize()}:n instanceof bf||n instanceof Cf?u=n.serialize():u=n;const c=Array.isArray(u)?u:[u],h=a&&a.transactionId||void 0;return wr(i,r,"mutate",{mutations:c,transactionId:h},a)}function $f(i,r,n,a){const u=Array.isArray(n)?n:[n],c=a&&a.transactionId||void 0,h=a&&a.skipCrossDatasetReferenceValidation||void 0,p=a&&a.dryRun||void 0;return wr(i,r,"actions",{actions:u,transactionId:c,skipCrossDatasetReferenceValidation:h,dryRun:p},a)}function wr(i,r,n,a,u={}){const c=n==="mutate",h=n==="actions",p=n==="query",_=c||h?"":Of(a),E=!c&&!h&&_.length{if(!c)return q;const K=q.results||[];if(u.returnDocuments)return w?K[0]&&K[0].document:K.map(j=>j.document);const it=w?"documentId":"documentIds",at=w?K[0]&&K[0].id:K.map(j=>j.id);return{transactionId:q.transactionId,results:K,[it]:at}}))}function Ss(i,r,n,a,u={}){const c={[a]:n},h=Object.assign({returnFirst:!0,returnDocuments:!0},u);return wr(i,r,"mutate",{mutations:[c]},h)}function ti(i,r,n){var a,u;const c=n.url||n.uri,h=i.config(),p=typeof n.canUseCdn>"u"?["GET","HEAD"].indexOf(n.method||"GET")>=0&&c.indexOf("/data/")===0:n.canUseCdn;let _=((a=n.useCdn)!=null?a:h.useCdn)&&p;const E=n.tag&&h.requestTagPrefix?[h.requestTagPrefix,n.tag].join("."):n.tag||h.requestTagPrefix;if(E&&n.tag!==null&&(n.query={tag:uf(E),...n.query}),["GET","HEAD","POST"].indexOf(n.method||"GET")>=0&&c.indexOf("/data/query/")===0){const C=(u=n.resultSourceMap)!=null?u:h.resultSourceMap;C!==void 0&&C!==!1&&(n.query={resultSourceMap:C,...n.query});const I=n.perspective||h.perspective;typeof I=="string"&&I!=="raw"&&(xf(I),n.query={perspective:I,...n.query},I==="previewDrafts"&&_&&(_=!1,Ey())),n.lastLiveEventId&&(n.query={...n.query,lastLiveEventId:n.lastLiveEventId}),n.returnQuery===!1&&(n.query={returnQuery:"false",...n.query})}const m=Ry(h,Object.assign({},n,{url:Oa(i,c,_)})),w=new xe(C=>r(m,h.requester).subscribe(C));return n.signal?w.pipe(Ny(n.signal)):w}function Fe(i,r,n){return ti(i,r,n).pipe(Vr(a=>a.type==="response"),on(a=>a.body))}function Kn(i,r,n){const a=i.config(),u=af(a),c=`/${r}/${u}`;return`/data${n?`${c}/${n}`:c}`.replace(/\/($|\?)/,"$1")}function Oa(i,r,n=!1){const{url:a,cdnUrl:u}=i.config();return`${n?u:a}/${r.replace(/^\//,"")}`}function Ny(i){return r=>new xe(n=>{const a=()=>n.error(By(i));if(i&&i.aborted){a();return}const u=r.subscribe(n);return i.addEventListener("abort",a),()=>{i.removeEventListener("abort",a),u.unsubscribe()}})}const Fy=!!globalThis.DOMException;function By(i){var r,n;if(Fy)return new DOMException((r=i==null?void 0:i.reason)!=null?r:"The operation was aborted.","AbortError");const a=new Error((n=i==null?void 0:i.reason)!=null?n:"The operation was aborted.");return a.name="AbortError",a}var Mf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},hs=(i,r,n)=>(Mf(i,r,"read from private field"),n?n.call(i):r.get(i)),ds=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},ps=(i,r,n,a)=>(Mf(i,r,"write to private field"),r.set(i,n),n),ts,es;class Uy{constructor(r,n){ds(this,ts,void 0),ds(this,es,void 0),ps(this,ts,r),ps(this,es,n)}upload(r,n,a){return Nf(hs(this,ts),hs(this,es),r,n,a)}}ts=new WeakMap,es=new WeakMap;var ns,rs;class Wy{constructor(r,n){ds(this,ns,void 0),ds(this,rs,void 0),ps(this,ns,r),ps(this,rs,n)}upload(r,n,a){const u=Nf(hs(this,ns),hs(this,rs),r,n,a);return Wt(u.pipe(Vr(c=>c.type==="response"),on(c=>c.body.document)))}}ns=new WeakMap,rs=new WeakMap;function Nf(i,r,n,a,u={}){uy(n);let c=u.extract||void 0;c&&!c.length&&(c=["none"]);const h=af(i.config()),p=n==="image"?"images":"files",_=qy(u,a),{tag:E,label:m,title:w,description:C,creditLine:I,filename:N,source:R}=_,x={label:m,title:w,description:C,filename:N,meta:c,creditLine:I};return R&&(x.sourceId=R.id,x.sourceName=R.name,x.sourceUrl=R.url),ti(i,r,{tag:E,method:"POST",timeout:_.timeout||0,uri:`/assets/${p}/${h}`,headers:_.contentType?{"Content-Type":_.contentType}:{},query:x,body:a})}function qy(i,r){return typeof File>"u"||!(r instanceof File)?i:Object.assign({filename:i.preserveFilename===!1?void 0:r.name,contentType:r.type},i)}var Hy=(i,r)=>Object.keys(r).concat(Object.keys(i)).reduce((n,a)=>(n[a]=typeof i[a]>"u"?r[a]:i[a],n),{});const Gy=(i,r)=>r.reduce((n,a)=>(typeof i[a]>"u"||(n[a]=i[a]),n),{}),ky=14800,zy=["includePreviousRevision","includeResult","visibility","effectFormat","tag"],jy={includeResult:!0};function Ff(i,r,n={}){const{url:a,token:u,withCredentials:c,requestTagPrefix:h}=this.config(),p=n.tag&&h?[h,n.tag].join("."):n.tag,_={...Hy(n,jy),tag:p},E=Gy(_,zy),m=Of({query:i,params:r,options:{tag:p,...E}}),w=`${a}${Kn(this,"listen",m)}`;if(w.length>ky)return new xe(R=>R.error(new Error("Query too large for listener")));const C=_.events?_.events:["mutation"],I=C.indexOf("reconnect")!==-1,N={};return(u||c)&&(N.withCredentials=!0),u&&(N.headers={Authorization:`Bearer ${u}`}),new xe(R=>{let x,O,W=!1,G=!1;T();function q(){W||(Z(),!W&&x.readyState===x.CLOSED&&(j(),clearTimeout(O),O=setTimeout(T,100)))}function K(D){R.error(Ky(D))}function it(D){const L=Bf(D);return L instanceof Error?R.error(L):R.next(L)}function at(){W=!0,j(),R.complete()}function j(){x&&(x.removeEventListener("error",q),x.removeEventListener("channelError",K),x.removeEventListener("disconnect",at),C.forEach(D=>x.removeEventListener(D,it)),x.close())}function Z(){I&&R.next({type:"reconnect"})}async function Tt(){const{default:D}=await ga(async()=>{const{default:V}=await import("./browser.Cg41ufUB.js").then(z=>z.b);return{default:V}},[],import.meta.url);if(G)return;const L=new D(w,N);return L.addEventListener("error",q),L.addEventListener("channelError",K),L.addEventListener("disconnect",at),C.forEach(V=>L.addEventListener(V,it)),L}function T(){Tt().then(D=>{D&&(x=D,G&&j())}).catch(D=>{R.error(D),M()})}function M(){W=!0,j(),G=!0}return M})}function Bf(i){try{const r=i.data&&JSON.parse(i.data)||{};return Object.assign({type:i.type},r)}catch(r){return r}}function Ky(i){if(i instanceof Error)return i;const r=Bf(i);return r instanceof Error?r:new Error(Yy(r))}function Yy(i){return i.error?i.error.description?i.error.description:typeof i.error=="string"?i.error:JSON.stringify(i.error,null,2):i.message||"Unknown listener error"}var Uf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},ea=(i,r,n)=>(Uf(i,r,"read from private field"),n?n.call(i):r.get(i)),Jy=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},Xy=(i,r,n,a)=>(Uf(i,r,"write to private field"),r.set(i,n),n);const Oc="2021-03-26";var hr;class Wf{constructor(r){Jy(this,hr,void 0),Xy(this,hr,r)}events(){const r=ea(this,hr).config().apiVersion.replace(/^v/,"");if(r!=="X"&&r{let h,p,_=!1,E=!1;N();function m(x){if(!_){if("data"in x){const O=Tc(x);c.error(new Error(O.message,{cause:O}))}h.readyState===h.CLOSED&&(C(),clearTimeout(p),p=setTimeout(N,100))}}function w(x){const O=Tc(x);return O instanceof Error?c.error(O):c.next(O)}function C(){if(h){h.removeEventListener("error",m);for(const x of u)h.removeEventListener(x,w);h.close()}}async function I(){const x=typeof EventSource>"u"?(await ga(async()=>{const{default:W}=await import("./browser.Cg41ufUB.js").then(G=>G.b);return{default:W}},[],import.meta.url)).default:EventSource;if(E)return;const O=new x(a.toString());O.addEventListener("error",m);for(const W of u)O.addEventListener(W,w);return O}function N(){I().then(x=>{x&&(h=x,E&&C())}).catch(x=>{c.error(x),R()})}function R(){_=!0,C(),E=!0}return R})}}hr=new WeakMap;function Tc(i){try{const r=i.data&&JSON.parse(i.data)||{};return{type:i.type,id:i.lastEventId,...r}}catch(r){return r}}var qf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},Yt=(i,r,n)=>(qf(i,r,"read from private field"),n?n.call(i):r.get(i)),gs=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},vs=(i,r,n,a)=>(qf(i,r,"write to private field"),r.set(i,n),n),Nn,Fn;class Zy{constructor(r,n){gs(this,Nn,void 0),gs(this,Fn,void 0),vs(this,Nn,r),vs(this,Fn,n)}create(r,n){return vr(Yt(this,Nn),Yt(this,Fn),"PUT",r,n)}edit(r,n){return vr(Yt(this,Nn),Yt(this,Fn),"PATCH",r,n)}delete(r){return vr(Yt(this,Nn),Yt(this,Fn),"DELETE",r)}list(){return Fe(Yt(this,Nn),Yt(this,Fn),{uri:"/datasets",tag:null})}}Nn=new WeakMap,Fn=new WeakMap;var Bn,Un;class Vy{constructor(r,n){gs(this,Bn,void 0),gs(this,Un,void 0),vs(this,Bn,r),vs(this,Un,n)}create(r,n){return Wt(vr(Yt(this,Bn),Yt(this,Un),"PUT",r,n))}edit(r,n){return Wt(vr(Yt(this,Bn),Yt(this,Un),"PATCH",r,n))}delete(r){return Wt(vr(Yt(this,Bn),Yt(this,Un),"DELETE",r))}list(){return Wt(Fe(Yt(this,Bn),Yt(this,Un),{uri:"/datasets",tag:null}))}}Bn=new WeakMap,Un=new WeakMap;function vr(i,r,n,a,u){return sf(a),Fe(i,r,{method:n,uri:`/datasets/${a}`,body:u,tag:null})}var Hf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},Cn=(i,r,n)=>(Hf(i,r,"read from private field"),n?n.call(i):r.get(i)),_s=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},ms=(i,r,n,a)=>(Hf(i,r,"write to private field"),r.set(i,n),n),qr,Hr;class Qy{constructor(r,n){_s(this,qr,void 0),_s(this,Hr,void 0),ms(this,qr,r),ms(this,Hr,n)}list(r){const n=(r==null?void 0:r.includeMembers)===!1?"/projects?includeMembers=false":"/projects";return Fe(Cn(this,qr),Cn(this,Hr),{uri:n})}getById(r){return Fe(Cn(this,qr),Cn(this,Hr),{uri:`/projects/${r}`})}}qr=new WeakMap,Hr=new WeakMap;var Gr,kr;class tb{constructor(r,n){_s(this,Gr,void 0),_s(this,kr,void 0),ms(this,Gr,r),ms(this,kr,n)}list(r){const n=(r==null?void 0:r.includeMembers)===!1?"/projects?includeMembers=false":"/projects";return Wt(Fe(Cn(this,Gr),Cn(this,kr),{uri:n}))}getById(r){return Wt(Fe(Cn(this,Gr),Cn(this,kr),{uri:`/projects/${r}`}))}}Gr=new WeakMap,kr=new WeakMap;var Gf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},ws=(i,r,n)=>(Gf(i,r,"read from private field"),n?n.call(i):r.get(i)),ys=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},bs=(i,r,n,a)=>(Gf(i,r,"write to private field"),r.set(i,n),n),is,ss;class eb{constructor(r,n){ys(this,is,void 0),ys(this,ss,void 0),bs(this,is,r),bs(this,ss,n)}getById(r){return Fe(ws(this,is),ws(this,ss),{uri:`/users/${r}`})}}is=new WeakMap,ss=new WeakMap;var os,as;class nb{constructor(r,n){ys(this,os,void 0),ys(this,as,void 0),bs(this,os,r),bs(this,as,n)}getById(r){return Wt(Fe(ws(this,os),ws(this,as),{uri:`/users/${r}`}))}}os=new WeakMap,as=new WeakMap;var rb=Object.defineProperty,ib=(i,r,n)=>r in i?rb(i,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[r]=n,de=(i,r,n)=>(ib(i,typeof r!="symbol"?r+"":r,n),n),kf=(i,r,n)=>{if(!r.has(i))throw TypeError("Cannot "+n)},rt=(i,r,n)=>(kf(i,r,"read from private field"),n?n.call(i):r.get(i)),Es=(i,r,n)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,n)},Cs=(i,r,n,a)=>(kf(i,r,"write to private field"),r.set(i,n),n),mn,Bt;const sb=class fa{constructor(r,n=Yr){de(this,"assets"),de(this,"datasets"),de(this,"live"),de(this,"projects"),de(this,"users"),Es(this,mn,void 0),Es(this,Bt,void 0),de(this,"listen",Ff),this.config(n),Cs(this,Bt,r),this.assets=new Uy(this,rt(this,Bt)),this.datasets=new Zy(this,rt(this,Bt)),this.live=new Wf(this),this.projects=new Qy(this,rt(this,Bt)),this.users=new eb(this,rt(this,Bt))}clone(){return new fa(rt(this,Bt),this.config())}config(r){if(r===void 0)return{...rt(this,mn)};if(rt(this,mn)&&rt(this,mn).allowReconfigure===!1)throw new Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return Cs(this,mn,Af(r,rt(this,mn)||{})),this}withConfig(r){const n=this.config();return new fa(rt(this,Bt),{...n,...r,stega:{...n.stega||{},...typeof(r==null?void 0:r.stega)=="boolean"?{enabled:r.stega}:(r==null?void 0:r.stega)||{}}})}fetch(r,n,a){return Tf(this,rt(this,Bt),rt(this,mn).stega,r,n,a)}getDocument(r,n){return Sf(this,rt(this,Bt),r,n)}getDocuments(r,n){return If(this,rt(this,Bt),r,n)}create(r,n){return Ss(this,rt(this,Bt),r,"create",n)}createIfNotExists(r,n){return Rf(this,rt(this,Bt),r,n)}createOrReplace(r,n){return Lf(this,rt(this,Bt),r,n)}delete(r,n){return Pf(this,rt(this,Bt),r,n)}mutate(r,n){return Df(this,rt(this,Bt),r,n)}patch(r,n){return new jr(r,n,this)}transaction(r){return new Cf(r,this)}action(r,n){return $f(this,rt(this,Bt),r,n)}request(r){return Fe(this,rt(this,Bt),r)}getUrl(r,n){return Oa(this,r,n)}getDataUrl(r,n){return Kn(this,r,n)}};mn=new WeakMap,Bt=new WeakMap;let ob=sb;var wn,Dt;const ab=class ha{constructor(r,n=Yr){de(this,"assets"),de(this,"datasets"),de(this,"live"),de(this,"projects"),de(this,"users"),de(this,"observable"),Es(this,wn,void 0),Es(this,Dt,void 0),de(this,"listen",Ff),this.config(n),Cs(this,Dt,r),this.assets=new Wy(this,rt(this,Dt)),this.datasets=new Vy(this,rt(this,Dt)),this.live=new Wf(this),this.projects=new tb(this,rt(this,Dt)),this.users=new nb(this,rt(this,Dt)),this.observable=new ob(r,n)}clone(){return new ha(rt(this,Dt),this.config())}config(r){if(r===void 0)return{...rt(this,wn)};if(rt(this,wn)&&rt(this,wn).allowReconfigure===!1)throw new Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(r),Cs(this,wn,Af(r,rt(this,wn)||{})),this}withConfig(r){const n=this.config();return new ha(rt(this,Dt),{...n,...r,stega:{...n.stega||{},...typeof(r==null?void 0:r.stega)=="boolean"?{enabled:r.stega}:(r==null?void 0:r.stega)||{}}})}fetch(r,n,a){return Wt(Tf(this,rt(this,Dt),rt(this,wn).stega,r,n,a))}getDocument(r,n){return Wt(Sf(this,rt(this,Dt),r,n))}getDocuments(r,n){return Wt(If(this,rt(this,Dt),r,n))}create(r,n){return Wt(Ss(this,rt(this,Dt),r,"create",n))}createIfNotExists(r,n){return Wt(Rf(this,rt(this,Dt),r,n))}createOrReplace(r,n){return Wt(Lf(this,rt(this,Dt),r,n))}delete(r,n){return Wt(Pf(this,rt(this,Dt),r,n))}mutate(r,n){return Wt(Df(this,rt(this,Dt),r,n))}patch(r,n){return new Kr(r,n,this)}transaction(r){return new bf(r,this)}action(r,n){return Wt($f(this,rt(this,Dt),r,n))}request(r){return Wt(Fe(this,rt(this,Dt),r))}dataRequest(r,n,a){return Wt(wr(this,rt(this,Dt),r,n,a))}getUrl(r,n){return Oa(this,r,n)}getDataUrl(r,n){return Kn(this,r,n)}};wn=new WeakMap,Dt=new WeakMap;let ub=ab;function lb(i,r){const n=sy(i);return{requester:n,createClient:a=>new r((u,c)=>(c||n)({maxRedirects:0,maxRetries:a.maxRetries,retryDelay:a.retryDelay,...u}),a)}}var cb=[];const fb=lb(cb,ub),hb=fb.createClient;var dr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zf(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var jf={exports:{}};(function(i,r){(function(n,a){i.exports=a()})(dr,function(){function n(){return n=Object.assign||function(T){for(var M=1;MT.length)&&(M=T.length);for(var D=0,L=new Array(M);D=T.length?{done:!0}:{done:!1,value:T[L++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function p(T){var M=T.split("-"),D=M[1],L=M[2],V=M[3];if(!D||!L||!V)throw new Error("Malformed asset _ref '"+T+`'. Expected an id like "`+h+'".');var z=L.split("x"),lt=z[0],_t=z[1],Jt=+lt,Rt=+_t,yt=isFinite(Jt)&&isFinite(Rt);if(!yt)throw new Error("Malformed asset _ref '"+T+`'. Expected an id like "`+h+'".');return{id:D,width:Jt,height:Rt,format:V}}var _=function(M){var D=M;return D?typeof D._ref=="string":!1},E=function(M){var D=M;return D?typeof D._id=="string":!1},m=function(M){var D=M;return D&&D.asset?typeof D.asset.url=="string":!1};function w(T){if(!T)return null;var M;if(typeof T=="string"&&C(T))M={asset:{_ref:I(T)}};else if(typeof T=="string")M={asset:{_ref:T}};else if(_(T))M={asset:T};else if(E(T))M={asset:{_ref:T._id||""}};else if(m(T))M={asset:{_ref:I(T.asset.url)}};else if(typeof T.asset=="object")M=n({},T);else return null;var D=T;return D.crop&&(M.crop=D.crop),D.hotspot&&(M.hotspot=D.hotspot),N(M)}function C(T){return/^https?:\/\//.test(""+T)}function I(T){var M=T.split("/").slice(-1);return("image-"+M[0]).replace(/\.([a-z]+)$/,"-$1")}function N(T){if(T.crop&&T.hotspot)return T;var M=n({},T);return M.crop||(M.crop={left:0,top:0,bottom:0,right:0}),M.hotspot||(M.hotspot={x:.5,y:.5,height:1,width:1}),M}var R=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"]];function x(T){var M=n({},T||{}),D=M.source;delete M.source;var L=w(D);if(!L)throw new Error("Unable to resolve image URL from source ("+JSON.stringify(D)+")");var V=L.asset._ref||L.asset._id||"",z=p(V),lt=Math.round(L.crop.left*z.width),_t=Math.round(L.crop.top*z.height),Jt={left:lt,top:_t,width:Math.round(z.width-L.crop.right*z.width-lt),height:Math.round(z.height-L.crop.bottom*z.height-_t)},Rt=L.hotspot.height*z.height/2,yt=L.hotspot.width*z.width/2,$t=L.hotspot.x*z.width,xt=L.hotspot.y*z.height,Mt={left:$t-yt,top:xt-Rt,right:$t+yt,bottom:xt+Rt};return M.rect||M.focalPoint||M.ignoreImageParams||M.crop||(M=n({},M,W({crop:Jt,hotspot:Mt},M))),O(n({},M,{asset:z}))}function O(T){var M=(T.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),D=T.asset.id+"-"+T.asset.width+"x"+T.asset.height+"."+T.asset.format,L=M+"/images/"+T.projectId+"/"+T.dataset+"/"+D,V=[];if(T.rect){var z=T.rect,lt=z.left,_t=z.top,Jt=z.width,Rt=z.height,yt=lt!==0||_t!==0||Rt!==T.asset.height||Jt!==T.asset.width;yt&&V.push("rect="+lt+","+_t+","+Jt+","+Rt)}T.bg&&V.push("bg="+T.bg),T.focalPoint&&(V.push("fp-x="+T.focalPoint.x),V.push("fp-y="+T.focalPoint.y));var $t=[T.flipHorizontal&&"h",T.flipVertical&&"v"].filter(Boolean).join("");return $t&&V.push("flip="+$t),R.forEach(function(xt){var Mt=xt[0],At=xt[1];typeof T[Mt]<"u"?V.push(At+"="+encodeURIComponent(T[Mt])):typeof T[At]<"u"&&V.push(At+"="+encodeURIComponent(T[At]))}),V.length===0?L:L+"?"+V.join("&")}function W(T,M){var D,L=M.width,V=M.height;if(!(L&&V))return{width:L,height:V,rect:T.crop};var z=T.crop,lt=T.hotspot,_t=L/V,Jt=z.width/z.height;if(Jt>_t){var Rt=Math.round(z.height),yt=Math.round(Rt*_t),$t=Math.max(0,Math.round(z.top)),xt=Math.round((lt.right-lt.left)/2+lt.left),Mt=Math.max(0,Math.round(xt-yt/2));Mtz.left+z.width&&(Mt=z.left+z.width-yt),D={left:Mt,top:$t,width:yt,height:Rt}}else{var At=z.width,zt=Math.round(At/_t),Ae=Math.max(0,Math.round(z.left)),ke=Math.round((lt.bottom-lt.top)/2+lt.top),ie=Math.max(0,Math.round(ke-zt/2));iez.top+z.height&&(ie=z.top+z.height-zt),D={left:Ae,top:ie,width:At,height:zt}}return{width:L,height:V,rect:D}}var G=["clip","crop","fill","fillmax","max","scale","min"],q=["top","bottom","left","right","center","focalpoint","entropy"],K=["format"];function it(T){return T&&"config"in T?typeof T.config=="function":!1}function at(T){return T&&"clientConfig"in T?typeof T.clientConfig=="object":!1}function j(T){for(var M=R,D=c(M),L;!(L=D()).done;){var V=L.value,z=V[0],lt=V[1];if(T===z||T===lt)return z}return T}function Z(T){if(it(T)){var M=T.config(),D=M.apiHost,L=M.projectId,V=M.dataset,z=D||"https://api.sanity.io";return new Tt(null,{baseUrl:z.replace(/^https:\/\/api\./,"https://cdn."),projectId:L,dataset:V})}var lt=T;if(at(lt)){var _t=lt.clientConfig,Jt=_t.apiHost,Rt=_t.projectId,yt=_t.dataset,$t=Jt||"https://api.sanity.io";return new Tt(null,{baseUrl:$t.replace(/^https:\/\/api\./,"https://cdn."),projectId:Rt,dataset:yt})}return new Tt(null,T)}var Tt=function(){function T(D,L){this.options=void 0,this.options=D?n({},D.options||{},L||{}):n({},L||{})}var M=T.prototype;return M.withOptions=function(L){var V=L.baseUrl||this.options.baseUrl,z={baseUrl:V};for(var lt in L)if(L.hasOwnProperty(lt)){var _t=j(lt);z[_t]=L[lt]}return new T(this,n({baseUrl:V},z))},M.image=function(L){return this.withOptions({source:L})},M.dataset=function(L){return this.withOptions({dataset:L})},M.projectId=function(L){return this.withOptions({projectId:L})},M.bg=function(L){return this.withOptions({bg:L})},M.dpr=function(L){return this.withOptions(L&&L!==1?{dpr:L}:{})},M.width=function(L){return this.withOptions({width:L})},M.height=function(L){return this.withOptions({height:L})},M.focalPoint=function(L,V){return this.withOptions({focalPoint:{x:L,y:V}})},M.maxWidth=function(L){return this.withOptions({maxWidth:L})},M.minWidth=function(L){return this.withOptions({minWidth:L})},M.maxHeight=function(L){return this.withOptions({maxHeight:L})},M.minHeight=function(L){return this.withOptions({minHeight:L})},M.size=function(L,V){return this.withOptions({width:L,height:V})},M.blur=function(L){return this.withOptions({blur:L})},M.sharpen=function(L){return this.withOptions({sharpen:L})},M.rect=function(L,V,z,lt){return this.withOptions({rect:{left:L,top:V,width:z,height:lt}})},M.format=function(L){return this.withOptions({format:L})},M.invert=function(L){return this.withOptions({invert:L})},M.orientation=function(L){return this.withOptions({orientation:L})},M.quality=function(L){return this.withOptions({quality:L})},M.forceDownload=function(L){return this.withOptions({download:L})},M.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},M.flipVertical=function(){return this.withOptions({flipVertical:!0})},M.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},M.fit=function(L){if(G.indexOf(L)===-1)throw new Error('Invalid fit mode "'+L+'"');return this.withOptions({fit:L})},M.crop=function(L){if(q.indexOf(L)===-1)throw new Error('Invalid crop mode "'+L+'"');return this.withOptions({crop:L})},M.saturation=function(L){return this.withOptions({saturation:L})},M.auto=function(L){if(K.indexOf(L)===-1)throw new Error('Invalid auto mode "'+L+'"');return this.withOptions({auto:L})},M.pad=function(L){return this.withOptions({pad:L})},M.url=function(){return x(this.options)},M.toString=function(){return this.url()},T}();return Z})})(jf);var db=jf.exports;const pb=zf(db),gb="8q01xvhz",vb="development",_b="https://airtable.com/appP6q5gukoNcz1OT/shr1v3iMtTSI2T5sI";var xs={exports:{}};/** * @license * Lodash diff --git a/_app/immutable/chunks/browser.BhnyNIqh.js b/_app/immutable/chunks/browser.Cg41ufUB.js similarity index 99% rename from _app/immutable/chunks/browser.BhnyNIqh.js rename to _app/immutable/chunks/browser.Cg41ufUB.js index 1760f87..55632f3 100644 --- a/_app/immutable/chunks/browser.BhnyNIqh.js +++ b/_app/immutable/chunks/browser.Cg41ufUB.js @@ -1,4 +1,4 @@ -import{c as Pe,g as Xe}from"./4.Dx4fyXSx.js";var se={exports:{}};/** @license +import{c as Pe,g as Xe}from"./4.CmdEqcRO.js";var se={exports:{}};/** @license * eventsource.js * Available under MIT License (MIT) * https://github.com/Yaffle/EventSource/ diff --git a/_app/immutable/chunks/entry.D2sf_QNO.js b/_app/immutable/chunks/entry.CLBXmzHC.js similarity index 99% rename from _app/immutable/chunks/entry.D2sf_QNO.js rename to _app/immutable/chunks/entry.CLBXmzHC.js index 6871611..efbd6be 100644 --- a/_app/immutable/chunks/entry.D2sf_QNO.js +++ b/_app/immutable/chunks/entry.CLBXmzHC.js @@ -1,3 +1,3 @@ -import{Q as ot}from"./runtime.CKNddQ8B.js";import{w as pe}from"./index.BK7BN-jz.js";import{a as st,b as P}from"./paths.B67rEwCD.js";new URL("sveltekit-internal://");function it(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function ct(e){return e.split("%25").map(decodeURI).join("%25")}function lt(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function ce({href:e}){return e.split("#")[0]}const ft=["href","pathname","search","toString","toJSON"];function ut(e,n,t){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(t(s),r[o](s));n();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ft)Object.defineProperty(a,r,{get(){return n(),e[r]},enumerable:!0,configurable:!0});return a}const dt="/__data.json",ht=".html__data.json";function pt(e){return e.endsWith(".html")?e.replace(/\.html$/,ht):e.replace(/\/$/,"")+dt}function gt(...e){let n=5381;for(const t of e)if(typeof t=="string"){let a=t.length;for(;a;)n=n*33^t.charCodeAt(--a)}else if(ArrayBuffer.isView(t)){const a=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);let r=a.length;for(;r;)n=n*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function mt(e){const n=atob(e),t=new Uint8Array(n.length);for(let a=0;a((e instanceof Request?e.method:(n==null?void 0:n.method)||"GET")!=="GET"&&q.delete(ge(e)),je(e,n));const q=new Map;function _t(e,n){const t=ge(e,n),a=document.querySelector(t);if(a!=null&&a.textContent){let{body:r,...o}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&q.set(t,{body:r,init:o,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=mt(r)),Promise.resolve(new Response(r,o))}return window.fetch(e,n)}function yt(e,n,t){if(q.size>0){const a=ge(e,t),r=q.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return n.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const u=wt.exec(c),[,h,g,d,_]=u;return n.push({name:d,matcher:_,optional:!!h,rest:!!g,chained:g?f===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:n}}function bt(e){return!/^\([^)]+\)$/.test(e)}function Et(e){return e.slice(1).split("/").filter(bt)}function kt(e,n,t){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),f===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||t[c.matcher](f)){a[c.name]=f;const u=n[s+1],h=r[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function St({nodes:e,server_loads:n,dictionary:t,matchers:a}){const r=new Set(n);return Object.entries(t).map(([s,[c,f,u]])=>{const{pattern:h,params:g}=vt(s),d={id:s,exec:_=>{const l=h.exec(_);if(l)return kt(l,g,a)},errors:[1,...u||[]].map(_=>e[_]),layouts:[0,...f||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function De(e,n=JSON.parse){try{return n(sessionStorage[e])}catch{}}function Ie(e,n,t=JSON.stringify){const a=t(n);try{sessionStorage[e]=a}catch{}}const At="1719925840049",$e="sveltekit:snapshot",Ce="sveltekit:scroll",Ve="sveltekit:states",Rt="sveltekit:pageurl",D="sveltekit:history",M="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},K=location.origin;function Fe(e){if(e instanceof URL)return e;let n=document.baseURI;if(!n){const t=document.getElementsByTagName("base");n=t.length?t[0].href:document.URL}return new URL(e,n)}function me(){return{x:pageXOffset,y:pageYOffset}}function O(e,n){return e.getAttribute(`data-sveltekit-${n}`)}const Le={...J,"":J.hover};function qe(e){let n=e.assignedSlot??e.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function Ge(e,n){for(;e&&e!==n;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=qe(e)}}function ue(e,n){let t;try{t=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!t||!!a||ne(t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(t==null?void 0:t.origin)===K&&e.hasAttribute("download");return{url:t,external:r,target:a,download:o}}function W(e){let n=null,t=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=O(s,"preload-code")),r===null&&(r=O(s,"preload-data")),n===null&&(n=O(s,"keepfocus")),t===null&&(t=O(s,"noscroll")),o===null&&(o=O(s,"reload")),i===null&&(i=O(s,"replacestate")),s=qe(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Le[a??"off"],preload_data:Le[r??"off"],keepfocus:c(n),noscroll:c(t),reload:c(o),replace_state:c(i)}}function Pe(e){const n=pe(e);let t=!0;function a(){t=!0,n.update(i=>i)}function r(i){t=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||t&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function It(){const{set:e,subscribe:n}=pe(!1);let t;async function a(){clearTimeout(t);try{const r=await fetch(`${st}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==At;return i&&(e(!0),clearTimeout(t)),i}catch{return!1}}return{subscribe:n,check:a}}function ne(e,n){return e.origin!==K||!e.pathname.startsWith(n)}const Lt=-1,Pt=-2,Tt=-3,Ut=-4,xt=-5,Nt=-6;function Ot(e,n){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,a=Array(t.length);function r(o,i=!1){if(o===Lt)return;if(o===Tt)return NaN;if(o===Ut)return 1/0;if(o===xt)return-1/0;if(o===Nt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=t[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],f=n==null?void 0:n[c];if(f)return a[o]=f(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const u=new Set;a[o]=u;for(let d=1;dn!=null)}class ae{constructor(n,t){this.status=n,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class He{constructor(n,t){this.status=n,this.location=t}}class _e extends Error{constructor(n,t,a){super(a),this.status=n,this.text=t}}const $t="x-sveltekit-invalidated",Ct="x-sveltekit-trailing-slash";function z(e){return e instanceof ae||e instanceof _e?e.status:500}function Vt(e){return e instanceof _e?e.text:"Internal Error"}const N=De(Ce)??{},H=De($e)??{},U={url:Pe({}),page:Pe({}),navigating:pe(null),updated:It()};function ye(e){N[e]=me()}function Ft(e,n){let t=e+1;for(;N[t];)delete N[t],t+=1;for(t=n+1;H[t];)delete H[t],t+=1}function C(e){return location.href=e.href,new Promise(()=>{})}function Te(){}let re,de,X,T,he,V;const Be=[],Q=[];let R=null;const Ke=[],qt=[];let j=[],y={branch:[],error:null,url:null},we=!1,Z=!1,Ue=!0,B=!1,F=!1,Ye=!1,ve=!1,be,S,L,I,ee;const G=new Set;async function en(e,n,t){var r,o;document.URL!==location.href&&(location.href=location.href),V=e,re=St(e),T=document.documentElement,he=n,de=e.nodes[0],X=e.nodes[1],de(),X(),S=(r=history.state)==null?void 0:r[D],L=(o=history.state)==null?void 0:o[M],S||(S=L=Date.now(),history.replaceState({...history.state,[D]:S,[M]:L},""));const a=N[S];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),t?await Wt(he,t):Yt(location.href,{replaceState:!0}),Jt()}function Gt(){Be.length=0,ve=!1}function Je(e){Q.some(n=>n==null?void 0:n.snapshot)&&(H[e]=Q.map(n=>{var t;return(t=n==null?void 0:n.snapshot)==null?void 0:t.capture()}))}function We(e){var n;(n=H[e])==null||n.forEach((t,a)=>{var r,o;(o=(r=Q[a])==null?void 0:r.snapshot)==null||o.restore(t)})}function xe(){ye(S),Ie(Ce,N),Je(L),Ie($e,H)}async function ze(e,n,t,a){return Y({type:"goto",url:Fe(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:t,nav_token:a,accept:()=>{n.invalidateAll&&(ve=!0)}})}async function Mt(e){if(e.id!==(R==null?void 0:R.id)){const n={};G.add(n),R={id:e.id,token:n,promise:Qe({...e,preload:n}).then(t=>(G.delete(n),t.type==="loaded"&&t.state.error&&(R=null),t))}}return R.promise}async function fe(e){const n=re.find(t=>t.exec(Ze(e)));n&&await Promise.all([...n.layouts,n.leaf].map(t=>t==null?void 0:t[1]()))}function Xe(e,n,t){var o;y=e.state;const a=document.querySelector("style[data-sveltekit]");a&&a.remove(),I=e.props.page,be=new V.root({target:n,props:{...e.props,stores:U,components:Q},hydrate:t}),We(L);const r={from:null,to:{params:y.params,route:{id:((o=y.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};j.forEach(i=>i(r)),Z=!0}function te({url:e,params:n,branch:t,status:a,error:r,route:o,form:i}){let s="never";if(P&&(e.pathname===P||e.pathname===P+"/"))s="always";else for(const d of t)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);e.pathname=it(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:n,branch:t,error:r,route:o},props:{constructors:Dt(t).map(d=>d.node.component),page:I}};i!==void 0&&(c.props.form=i);let f={},u=!I,h=0;for(let d=0;d(s&&(c.route=!0),l[m])}),params:new Proxy(a,{get:(l,m)=>(s&&c.params.add(m),l[m])}),data:(o==null?void 0:o.data)??null,url:ut(t,()=>{s&&(c.url=!0)},l=>{s&&c.search_params.add(l)}),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const A=new URL(b,t);return s&&d(A.href),A.origin===t.origin&&(b=A.href.slice(t.origin.length)),Z?yt(b,A.href,m):_t(b,m)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),n()},untrack(l){s=!1;try{return l()}finally{s=!0}}};i=await f.universal.load.call(null,_)??null}return{node:f,loader:e,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=f.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Ne(e,n,t,a,r,o){if(ve)return!0;if(!r)return!1;if(r.parent&&e||r.route&&n||r.url&&t)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Be.some(s=>s(new URL(i))))return!0;return!1}function ke(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}function Ht(e,n){if(!e)return new Set(n.searchParams.keys());const t=new Set([...e.searchParams.keys(),...n.searchParams.keys()]);for(const a of t){const r=e.searchParams.getAll(a),o=n.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&t.delete(a)}return t}function Oe({error:e,url:n,route:t,params:a}){return{type:"loaded",state:{error:e,url:n,route:t,params:a,branch:[]},props:{page:I,constructors:[]}}}async function Qe({id:e,invalidating:n,url:t,params:a,route:r,preload:o}){if((R==null?void 0:R.id)===e)return G.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=r,f=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),f.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let u=null;const h=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,d=Ht(y.url,t);let _=!1;const l=f.map((p,v)=>{var x;const E=y.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||Ne(_,g,h,d,(x=E.server)==null?void 0:x.uses,a));return k&&(_=!0),k});if(l.some(Boolean)){try{u=await nt(t,l)}catch(p){const v=await $(p,{url:t,params:a,route:{id:e}});return G.has(o)?Oe({error:v,url:t,params:a,route:r}):oe({status:z(p),error:v,url:t,route:r})}if(u.type==="redirect")return u}const m=u==null?void 0:u.nodes;let b=!1;const A=f.map(async(p,v)=>{var se;if(!p)return;const E=y.branch[v],k=m==null?void 0:m[v];if((!k||k.type==="skip")&&p[1]===(E==null?void 0:E.loader)&&!Ne(b,g,h,d,(se=E.universal)==null?void 0:se.uses,a))return E;if(b=!0,(k==null?void 0:k.type)==="error")throw k;return Ee({loader:p[1],url:t,params:a,route:r,parent:async()=>{var Re;const Ae={};for(let ie=0;ie{});const w=[];for(let p=0;pPromise.resolve({}),server_data_node:ke(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return te({url:t,params:r,branch:[s,c],status:e,error:n,route:null})}function Se(e,n){if(!e||ne(e,P))return;let t;try{t=V.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=Ze(t);for(const r of re){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:n,route:r,params:lt(o),url:e}}}function Ze(e){return ct(e.slice(P.length)||"/")}function et({url:e,type:n,intent:t,delta:a}){let r=!1;const o=rt(y,t,e,n);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return B||Ke.forEach(s=>s(i)),r?null:o}async function Y({type:e,url:n,popped:t,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:f=Te,block:u=Te}){const h=Se(n,!1),g=et({url:n,type:e,delta:t==null?void 0:t.delta,intent:h});if(!g){u();return}const d=S,_=L;f(),B=!0,Z&&U.navigating.set(g.navigation),ee=c;let l=h&&await Qe(h);if(!l){if(ne(n,P))return await C(n);l=await tt(n,{id:null},await $(new _e(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,ee!==c)return g.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(s>=20)l=await oe({status:500,error:await $(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return ze(new URL(l.location,n).href,{},s+1,c),!1;else l.props.page.status>=400&&await U.updated.check()&&await C(n);if(Gt(),ye(d),Je(_),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),i=t?t.state:i,!t){const w=o?0:1,p={[D]:S+=w,[M]:L+=w,[Ve]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||Ft(S,L)}if(R=null,l.props.page.state=i,Z){y=l.state,l.props.page&&(l.props.page.url=n);const w=(await Promise.all(qt.map(p=>p(g.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){j=j.filter(v=>!w.includes(v))};w.push(p),j.push(...w)}be.$set(l.props),Ye=!0}else Xe(l,he,!1);const{activeElement:m}=document;await ot();const b=t?t.scroll:r?me():null;if(Ue){const w=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));b?scrollTo(b.x,b.y):w?w.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==m&&document.activeElement!==document.body;!a&&!A&&zt(),Ue=!0,l.props.page&&(I=l.props.page),B=!1,e==="popstate"&&We(L),g.fulfil(void 0),j.forEach(w=>w(g.navigation)),U.navigating.set(null)}async function tt(e,n,t,a){return e.origin===K&&e.pathname===location.pathname&&!we?await oe({status:a,error:t,url:e,route:n}):await C(e)}function Kt(){let e;T.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function n(o){a(o.composedPath()[0],1)}T.addEventListener("mousedown",n),T.addEventListener("touchstart",n,{passive:!0});const t=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(fe(i.target.href),t.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ge(o,T);if(!s)return;const{url:c,external:f,download:u}=ue(s,P);if(f||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Se(c,!1);g&&Mt(g)}else i<=h.preload_code&&fe(c.pathname)}function r(){t.disconnect();for(const o of T.querySelectorAll("a")){const{url:i,external:s,download:c}=ue(o,P);if(s||c)continue;const f=W(o);f.reload||(f.preload_code===J.viewport&&t.observe(o),f.preload_code===J.eager&&fe(i.pathname))}}j.push(r),r()}function $(e,n){if(e instanceof ae)return e.body;const t=z(e),a=Vt(e);return V.hooks.handleError({error:e,event:n,status:t,message:a})??{message:a}}function Yt(e,n={}){return e=Fe(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):ze(e,n,0)}function Jt(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let a=!1;if(xe(),!B){const r=rt(y,void 0,null,"leave"),o={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Ke.forEach(i=>i(o))}a?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&xe()}),(n=navigator.connection)!=null&&n.saveData||Kt(),T.addEventListener("click",async t=>{var g;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const a=Ge(t.composedPath()[0],T);if(!a)return;const{url:r,external:o,target:i,download:s}=ue(a,P);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;if(o||c.reload){et({url:r,type:"link"})?B=!0:t.preventDefault();return}const[u,h]=r.href.split("#");if(h!==void 0&&u===ce(location)){const[,d]=y.url.href.split("#");if(d===h){t.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=a.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(F=!0,ye(S),e(r),!c.replace_state)return;F=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),Y({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href})}),T.addEventListener("submit",t=>{if(t.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if(((r==null?void 0:r.formMethod)||a.method)!=="get")return;const i=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(ne(i,P))return;const s=t.target,c=W(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s),u=r==null?void 0:r.getAttribute("name");u&&f.append(u,(r==null?void 0:r.getAttribute("value"))??""),i.search=new URLSearchParams(f).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async t=>{var a;if((a=t.state)!=null&&a[D]){const r=t.state[D];if(ee={},r===S)return;const o=N[r],i=t.state[Ve]??{},s=new URL(t.state[Rt]??location.href),c=t.state[M],f=ce(location)===ce(y.url);if(c===L&&(Ye||f)){e(s),N[S]=me(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},be.$set({page:I})),S=r;return}const h=r-S;await Y({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{S=r,L=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!F){const r=new URL(location.href);e(r)}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[D]:++S,[M]:L},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&U.navigating.set(null)});function e(t){y.url=t,U.page.set({...I,url:t}),U.page.notify()}}async function Wt(e,{status:n=200,error:t,node_ids:a,params:r,route:o,data:i,form:s}){we=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=Se(c,!1)||{});let f;try{const u=a.map(async(d,_)=>{const l=i[_];return l!=null&&l.uses&&(l.uses=at(l.uses)),Ee({loader:V.nodes[d],url:c,params:r,route:o,parent:async()=>{const m={};for(let b=0;b<_;b+=1)Object.assign(m,(await u[b]).data);return m},server_data_node:ke(l)})}),h=await Promise.all(u),g=re.find(({id:d})=>d===o.id);if(g){const d=g.layouts;for(let _=0;_o?"1":"0").join(""));const a=await je(t.href);if(!a.ok){let o;throw(r=a.headers.get("content-type"))!=null&&r.includes("application/json")?o=await a.json():a.status===404?o="Not Found":a.status===500&&(o="Internal Error"),new ae(a.status,o)}return new Promise(async o=>{var h;const i=new Map,s=a.body.getReader(),c=new TextDecoder;function f(g){return Ot(g,{Promise:d=>new Promise((_,l)=>{i.set(d,{fulfil:_,reject:l})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` +import{Q as ot}from"./runtime.CKNddQ8B.js";import{w as pe}from"./index.BK7BN-jz.js";import{a as st,b as P}from"./paths.LZtzvX8V.js";new URL("sveltekit-internal://");function it(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function ct(e){return e.split("%25").map(decodeURI).join("%25")}function lt(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function ce({href:e}){return e.split("#")[0]}const ft=["href","pathname","search","toString","toJSON"];function ut(e,n,t){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(t(s),r[o](s));n();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ft)Object.defineProperty(a,r,{get(){return n(),e[r]},enumerable:!0,configurable:!0});return a}const dt="/__data.json",ht=".html__data.json";function pt(e){return e.endsWith(".html")?e.replace(/\.html$/,ht):e.replace(/\/$/,"")+dt}function gt(...e){let n=5381;for(const t of e)if(typeof t=="string"){let a=t.length;for(;a;)n=n*33^t.charCodeAt(--a)}else if(ArrayBuffer.isView(t)){const a=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);let r=a.length;for(;r;)n=n*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function mt(e){const n=atob(e),t=new Uint8Array(n.length);for(let a=0;a((e instanceof Request?e.method:(n==null?void 0:n.method)||"GET")!=="GET"&&q.delete(ge(e)),je(e,n));const q=new Map;function _t(e,n){const t=ge(e,n),a=document.querySelector(t);if(a!=null&&a.textContent){let{body:r,...o}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&q.set(t,{body:r,init:o,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=mt(r)),Promise.resolve(new Response(r,o))}return window.fetch(e,n)}function yt(e,n,t){if(q.size>0){const a=ge(e,t),r=q.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return n.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const u=wt.exec(c),[,h,g,d,_]=u;return n.push({name:d,matcher:_,optional:!!h,rest:!!g,chained:g?f===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:n}}function bt(e){return!/^\([^)]+\)$/.test(e)}function Et(e){return e.slice(1).split("/").filter(bt)}function kt(e,n,t){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),f===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||t[c.matcher](f)){a[c.name]=f;const u=n[s+1],h=r[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function St({nodes:e,server_loads:n,dictionary:t,matchers:a}){const r=new Set(n);return Object.entries(t).map(([s,[c,f,u]])=>{const{pattern:h,params:g}=vt(s),d={id:s,exec:_=>{const l=h.exec(_);if(l)return kt(l,g,a)},errors:[1,...u||[]].map(_=>e[_]),layouts:[0,...f||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function De(e,n=JSON.parse){try{return n(sessionStorage[e])}catch{}}function Ie(e,n,t=JSON.stringify){const a=t(n);try{sessionStorage[e]=a}catch{}}const At="1719926464401",$e="sveltekit:snapshot",Ce="sveltekit:scroll",Ve="sveltekit:states",Rt="sveltekit:pageurl",D="sveltekit:history",M="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},K=location.origin;function Fe(e){if(e instanceof URL)return e;let n=document.baseURI;if(!n){const t=document.getElementsByTagName("base");n=t.length?t[0].href:document.URL}return new URL(e,n)}function me(){return{x:pageXOffset,y:pageYOffset}}function O(e,n){return e.getAttribute(`data-sveltekit-${n}`)}const Le={...J,"":J.hover};function qe(e){let n=e.assignedSlot??e.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function Ge(e,n){for(;e&&e!==n;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=qe(e)}}function ue(e,n){let t;try{t=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!t||!!a||ne(t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(t==null?void 0:t.origin)===K&&e.hasAttribute("download");return{url:t,external:r,target:a,download:o}}function W(e){let n=null,t=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=O(s,"preload-code")),r===null&&(r=O(s,"preload-data")),n===null&&(n=O(s,"keepfocus")),t===null&&(t=O(s,"noscroll")),o===null&&(o=O(s,"reload")),i===null&&(i=O(s,"replacestate")),s=qe(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Le[a??"off"],preload_data:Le[r??"off"],keepfocus:c(n),noscroll:c(t),reload:c(o),replace_state:c(i)}}function Pe(e){const n=pe(e);let t=!0;function a(){t=!0,n.update(i=>i)}function r(i){t=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||t&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function It(){const{set:e,subscribe:n}=pe(!1);let t;async function a(){clearTimeout(t);try{const r=await fetch(`${st}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==At;return i&&(e(!0),clearTimeout(t)),i}catch{return!1}}return{subscribe:n,check:a}}function ne(e,n){return e.origin!==K||!e.pathname.startsWith(n)}const Lt=-1,Pt=-2,Tt=-3,Ut=-4,xt=-5,Nt=-6;function Ot(e,n){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,a=Array(t.length);function r(o,i=!1){if(o===Lt)return;if(o===Tt)return NaN;if(o===Ut)return 1/0;if(o===xt)return-1/0;if(o===Nt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=t[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],f=n==null?void 0:n[c];if(f)return a[o]=f(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const u=new Set;a[o]=u;for(let d=1;dn!=null)}class ae{constructor(n,t){this.status=n,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class He{constructor(n,t){this.status=n,this.location=t}}class _e extends Error{constructor(n,t,a){super(a),this.status=n,this.text=t}}const $t="x-sveltekit-invalidated",Ct="x-sveltekit-trailing-slash";function z(e){return e instanceof ae||e instanceof _e?e.status:500}function Vt(e){return e instanceof _e?e.text:"Internal Error"}const N=De(Ce)??{},H=De($e)??{},U={url:Pe({}),page:Pe({}),navigating:pe(null),updated:It()};function ye(e){N[e]=me()}function Ft(e,n){let t=e+1;for(;N[t];)delete N[t],t+=1;for(t=n+1;H[t];)delete H[t],t+=1}function C(e){return location.href=e.href,new Promise(()=>{})}function Te(){}let re,de,X,T,he,V;const Be=[],Q=[];let R=null;const Ke=[],qt=[];let j=[],y={branch:[],error:null,url:null},we=!1,Z=!1,Ue=!0,B=!1,F=!1,Ye=!1,ve=!1,be,S,L,I,ee;const G=new Set;async function en(e,n,t){var r,o;document.URL!==location.href&&(location.href=location.href),V=e,re=St(e),T=document.documentElement,he=n,de=e.nodes[0],X=e.nodes[1],de(),X(),S=(r=history.state)==null?void 0:r[D],L=(o=history.state)==null?void 0:o[M],S||(S=L=Date.now(),history.replaceState({...history.state,[D]:S,[M]:L},""));const a=N[S];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),t?await Wt(he,t):Yt(location.href,{replaceState:!0}),Jt()}function Gt(){Be.length=0,ve=!1}function Je(e){Q.some(n=>n==null?void 0:n.snapshot)&&(H[e]=Q.map(n=>{var t;return(t=n==null?void 0:n.snapshot)==null?void 0:t.capture()}))}function We(e){var n;(n=H[e])==null||n.forEach((t,a)=>{var r,o;(o=(r=Q[a])==null?void 0:r.snapshot)==null||o.restore(t)})}function xe(){ye(S),Ie(Ce,N),Je(L),Ie($e,H)}async function ze(e,n,t,a){return Y({type:"goto",url:Fe(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:t,nav_token:a,accept:()=>{n.invalidateAll&&(ve=!0)}})}async function Mt(e){if(e.id!==(R==null?void 0:R.id)){const n={};G.add(n),R={id:e.id,token:n,promise:Qe({...e,preload:n}).then(t=>(G.delete(n),t.type==="loaded"&&t.state.error&&(R=null),t))}}return R.promise}async function fe(e){const n=re.find(t=>t.exec(Ze(e)));n&&await Promise.all([...n.layouts,n.leaf].map(t=>t==null?void 0:t[1]()))}function Xe(e,n,t){var o;y=e.state;const a=document.querySelector("style[data-sveltekit]");a&&a.remove(),I=e.props.page,be=new V.root({target:n,props:{...e.props,stores:U,components:Q},hydrate:t}),We(L);const r={from:null,to:{params:y.params,route:{id:((o=y.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};j.forEach(i=>i(r)),Z=!0}function te({url:e,params:n,branch:t,status:a,error:r,route:o,form:i}){let s="never";if(P&&(e.pathname===P||e.pathname===P+"/"))s="always";else for(const d of t)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);e.pathname=it(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:n,branch:t,error:r,route:o},props:{constructors:Dt(t).map(d=>d.node.component),page:I}};i!==void 0&&(c.props.form=i);let f={},u=!I,h=0;for(let d=0;d(s&&(c.route=!0),l[m])}),params:new Proxy(a,{get:(l,m)=>(s&&c.params.add(m),l[m])}),data:(o==null?void 0:o.data)??null,url:ut(t,()=>{s&&(c.url=!0)},l=>{s&&c.search_params.add(l)}),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const A=new URL(b,t);return s&&d(A.href),A.origin===t.origin&&(b=A.href.slice(t.origin.length)),Z?yt(b,A.href,m):_t(b,m)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),n()},untrack(l){s=!1;try{return l()}finally{s=!0}}};i=await f.universal.load.call(null,_)??null}return{node:f,loader:e,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=f.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Ne(e,n,t,a,r,o){if(ve)return!0;if(!r)return!1;if(r.parent&&e||r.route&&n||r.url&&t)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Be.some(s=>s(new URL(i))))return!0;return!1}function ke(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}function Ht(e,n){if(!e)return new Set(n.searchParams.keys());const t=new Set([...e.searchParams.keys(),...n.searchParams.keys()]);for(const a of t){const r=e.searchParams.getAll(a),o=n.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&t.delete(a)}return t}function Oe({error:e,url:n,route:t,params:a}){return{type:"loaded",state:{error:e,url:n,route:t,params:a,branch:[]},props:{page:I,constructors:[]}}}async function Qe({id:e,invalidating:n,url:t,params:a,route:r,preload:o}){if((R==null?void 0:R.id)===e)return G.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=r,f=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),f.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let u=null;const h=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,d=Ht(y.url,t);let _=!1;const l=f.map((p,v)=>{var x;const E=y.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||Ne(_,g,h,d,(x=E.server)==null?void 0:x.uses,a));return k&&(_=!0),k});if(l.some(Boolean)){try{u=await nt(t,l)}catch(p){const v=await $(p,{url:t,params:a,route:{id:e}});return G.has(o)?Oe({error:v,url:t,params:a,route:r}):oe({status:z(p),error:v,url:t,route:r})}if(u.type==="redirect")return u}const m=u==null?void 0:u.nodes;let b=!1;const A=f.map(async(p,v)=>{var se;if(!p)return;const E=y.branch[v],k=m==null?void 0:m[v];if((!k||k.type==="skip")&&p[1]===(E==null?void 0:E.loader)&&!Ne(b,g,h,d,(se=E.universal)==null?void 0:se.uses,a))return E;if(b=!0,(k==null?void 0:k.type)==="error")throw k;return Ee({loader:p[1],url:t,params:a,route:r,parent:async()=>{var Re;const Ae={};for(let ie=0;ie{});const w=[];for(let p=0;pPromise.resolve({}),server_data_node:ke(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return te({url:t,params:r,branch:[s,c],status:e,error:n,route:null})}function Se(e,n){if(!e||ne(e,P))return;let t;try{t=V.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=Ze(t);for(const r of re){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:n,route:r,params:lt(o),url:e}}}function Ze(e){return ct(e.slice(P.length)||"/")}function et({url:e,type:n,intent:t,delta:a}){let r=!1;const o=rt(y,t,e,n);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return B||Ke.forEach(s=>s(i)),r?null:o}async function Y({type:e,url:n,popped:t,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:f=Te,block:u=Te}){const h=Se(n,!1),g=et({url:n,type:e,delta:t==null?void 0:t.delta,intent:h});if(!g){u();return}const d=S,_=L;f(),B=!0,Z&&U.navigating.set(g.navigation),ee=c;let l=h&&await Qe(h);if(!l){if(ne(n,P))return await C(n);l=await tt(n,{id:null},await $(new _e(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,ee!==c)return g.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(s>=20)l=await oe({status:500,error:await $(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return ze(new URL(l.location,n).href,{},s+1,c),!1;else l.props.page.status>=400&&await U.updated.check()&&await C(n);if(Gt(),ye(d),Je(_),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),i=t?t.state:i,!t){const w=o?0:1,p={[D]:S+=w,[M]:L+=w,[Ve]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||Ft(S,L)}if(R=null,l.props.page.state=i,Z){y=l.state,l.props.page&&(l.props.page.url=n);const w=(await Promise.all(qt.map(p=>p(g.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){j=j.filter(v=>!w.includes(v))};w.push(p),j.push(...w)}be.$set(l.props),Ye=!0}else Xe(l,he,!1);const{activeElement:m}=document;await ot();const b=t?t.scroll:r?me():null;if(Ue){const w=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));b?scrollTo(b.x,b.y):w?w.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==m&&document.activeElement!==document.body;!a&&!A&&zt(),Ue=!0,l.props.page&&(I=l.props.page),B=!1,e==="popstate"&&We(L),g.fulfil(void 0),j.forEach(w=>w(g.navigation)),U.navigating.set(null)}async function tt(e,n,t,a){return e.origin===K&&e.pathname===location.pathname&&!we?await oe({status:a,error:t,url:e,route:n}):await C(e)}function Kt(){let e;T.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function n(o){a(o.composedPath()[0],1)}T.addEventListener("mousedown",n),T.addEventListener("touchstart",n,{passive:!0});const t=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(fe(i.target.href),t.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ge(o,T);if(!s)return;const{url:c,external:f,download:u}=ue(s,P);if(f||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Se(c,!1);g&&Mt(g)}else i<=h.preload_code&&fe(c.pathname)}function r(){t.disconnect();for(const o of T.querySelectorAll("a")){const{url:i,external:s,download:c}=ue(o,P);if(s||c)continue;const f=W(o);f.reload||(f.preload_code===J.viewport&&t.observe(o),f.preload_code===J.eager&&fe(i.pathname))}}j.push(r),r()}function $(e,n){if(e instanceof ae)return e.body;const t=z(e),a=Vt(e);return V.hooks.handleError({error:e,event:n,status:t,message:a})??{message:a}}function Yt(e,n={}){return e=Fe(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):ze(e,n,0)}function Jt(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let a=!1;if(xe(),!B){const r=rt(y,void 0,null,"leave"),o={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Ke.forEach(i=>i(o))}a?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&xe()}),(n=navigator.connection)!=null&&n.saveData||Kt(),T.addEventListener("click",async t=>{var g;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const a=Ge(t.composedPath()[0],T);if(!a)return;const{url:r,external:o,target:i,download:s}=ue(a,P);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;if(o||c.reload){et({url:r,type:"link"})?B=!0:t.preventDefault();return}const[u,h]=r.href.split("#");if(h!==void 0&&u===ce(location)){const[,d]=y.url.href.split("#");if(d===h){t.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=a.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(F=!0,ye(S),e(r),!c.replace_state)return;F=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),Y({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href})}),T.addEventListener("submit",t=>{if(t.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if(((r==null?void 0:r.formMethod)||a.method)!=="get")return;const i=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(ne(i,P))return;const s=t.target,c=W(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s),u=r==null?void 0:r.getAttribute("name");u&&f.append(u,(r==null?void 0:r.getAttribute("value"))??""),i.search=new URLSearchParams(f).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async t=>{var a;if((a=t.state)!=null&&a[D]){const r=t.state[D];if(ee={},r===S)return;const o=N[r],i=t.state[Ve]??{},s=new URL(t.state[Rt]??location.href),c=t.state[M],f=ce(location)===ce(y.url);if(c===L&&(Ye||f)){e(s),N[S]=me(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},be.$set({page:I})),S=r;return}const h=r-S;await Y({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{S=r,L=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!F){const r=new URL(location.href);e(r)}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[D]:++S,[M]:L},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&U.navigating.set(null)});function e(t){y.url=t,U.page.set({...I,url:t}),U.page.notify()}}async function Wt(e,{status:n=200,error:t,node_ids:a,params:r,route:o,data:i,form:s}){we=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=Se(c,!1)||{});let f;try{const u=a.map(async(d,_)=>{const l=i[_];return l!=null&&l.uses&&(l.uses=at(l.uses)),Ee({loader:V.nodes[d],url:c,params:r,route:o,parent:async()=>{const m={};for(let b=0;b<_;b+=1)Object.assign(m,(await u[b]).data);return m},server_data_node:ke(l)})}),h=await Promise.all(u),g=re.find(({id:d})=>d===o.id);if(g){const d=g.layouts;for(let _=0;_o?"1":"0").join(""));const a=await je(t.href);if(!a.ok){let o;throw(r=a.headers.get("content-type"))!=null&&r.includes("application/json")?o=await a.json():a.status===404?o="Not Found":a.status===500&&(o="Internal Error"),new ae(a.status,o)}return new Promise(async o=>{var h;const i=new Map,s=a.body.getReader(),c=new TextDecoder;function f(g){return Ot(g,{Promise:d=>new Promise((_,l)=>{i.set(d,{fulfil:_,reject:l})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` `:c.decode(d,{stream:!0});;){const _=u.indexOf(` `);if(_===-1)break;const l=JSON.parse(u.slice(0,_));if(u=u.slice(_+1),l.type==="redirect")return o(l);if(l.type==="data")(h=l.nodes)==null||h.forEach(m=>{(m==null?void 0:m.type)==="data"&&(m.uses=at(m.uses),m.data=f(m.data))}),o(l);else if(l.type==="chunk"){const{id:m,data:b,error:A}=l,w=i.get(m);i.delete(m),A?w.reject(f(A)):w.fulfil(f(b))}}}})}function at(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function zt(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const n=document.body,t=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),t!==null?n.setAttribute("tabindex",t):n.removeAttribute("tabindex");const a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o{if(a.rangeCount===r.length){for(let o=0;o{r=u,o=h});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:t&&{params:(n==null?void 0:n.params)??null,route:{id:((f=n==null?void 0:n.route)==null?void 0:f.id)??null},url:t},willUnload:!n,type:a,complete:i},fulfil:r,reject:o}}export{en as a,U as s}; diff --git a/_app/immutable/chunks/paths.B67rEwCD.js b/_app/immutable/chunks/paths.B67rEwCD.js deleted file mode 100644 index 5a86175..0000000 --- a/_app/immutable/chunks/paths.B67rEwCD.js +++ /dev/null @@ -1 +0,0 @@ -var s;const a=((s=globalThis.__sveltekit_194o3bo)==null?void 0:s.base)??"/iconography-field-research";var e;const o=((e=globalThis.__sveltekit_194o3bo)==null?void 0:e.assets)??a;export{o as a,a as b}; diff --git a/_app/immutable/chunks/paths.LZtzvX8V.js b/_app/immutable/chunks/paths.LZtzvX8V.js new file mode 100644 index 0000000..1beb802 --- /dev/null +++ b/_app/immutable/chunks/paths.LZtzvX8V.js @@ -0,0 +1 @@ +var s;const a=((s=globalThis.__sveltekit_1tolck5)==null?void 0:s.base)??"/iconography-field-research";var e;const t=((e=globalThis.__sveltekit_1tolck5)==null?void 0:e.assets)??a;export{t as a,a as b}; diff --git a/_app/immutable/chunks/stegaEncodeSourceMap.CxhRIzmO.js b/_app/immutable/chunks/stegaEncodeSourceMap.Dqxs4OFo.js similarity index 99% rename from _app/immutable/chunks/stegaEncodeSourceMap.CxhRIzmO.js rename to _app/immutable/chunks/stegaEncodeSourceMap.Dqxs4OFo.js index fd10512..5adedcb 100644 --- a/_app/immutable/chunks/stegaEncodeSourceMap.CxhRIzmO.js +++ b/_app/immutable/chunks/stegaEncodeSourceMap.Dqxs4OFo.js @@ -1,2 +1,2 @@ -import{C as J}from"./4.Dx4fyXSx.js";const T=/_key\s*==\s*['"](.*)['"]/;function v(e){return typeof e=="string"?T.test(e.trim()):typeof e=="object"&&"_key"in e}function I(e){if(!Array.isArray(e))throw new Error("Path is not an array");return e.reduce((t,n,r)=>{const o=typeof n;if(o==="number")return`${t}[${n}]`;if(o==="string")return`${t}${r===0?"":"."}${n}`;if(v(n)&&n._key)return`${t}[_key=="${n._key}"]`;if(Array.isArray(n)){const[s,a]=n;return`${t}[${s}:${a}]`}throw new Error(`Unsupported path segment \`${JSON.stringify(n)}\``)},"")}const j={"\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","'":"\\'","\\":"\\\\"},P={"\\f":"\f","\\n":` +import{C as J}from"./4.CmdEqcRO.js";const T=/_key\s*==\s*['"](.*)['"]/;function v(e){return typeof e=="string"?T.test(e.trim()):typeof e=="object"&&"_key"in e}function I(e){if(!Array.isArray(e))throw new Error("Path is not an array");return e.reduce((t,n,r)=>{const o=typeof n;if(o==="number")return`${t}[${n}]`;if(o==="string")return`${t}${r===0?"":"."}${n}`;if(v(n)&&n._key)return`${t}[_key=="${n._key}"]`;if(Array.isArray(n)){const[s,a]=n;return`${t}[${s}:${a}]`}throw new Error(`Unsupported path segment \`${JSON.stringify(n)}\``)},"")}const j={"\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","'":"\\'","\\":"\\\\"},P={"\\f":"\f","\\n":` `,"\\r":"\r","\\t":" ","\\'":"'","\\\\":"\\"};function V(e){return`$${e.map(t=>typeof t=="string"?`['${t.replace(/[\f\n\r\t'\\]/g,n=>j[n])}']`:typeof t=="number"?`[${t}]`:t._key!==""?`[?(@._key=='${t._key.replace(/['\\]/g,n=>j[n])}')]`:`[${t._index}]`).join("")}`}function U(e){const t=[],n=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g;let r;for(;(r=n.exec(e))!==null;){if(r[1]!==void 0){const o=r[1].replace(/\\(\\|f|n|r|t|')/g,s=>P[s]);t.push(o);continue}if(r[2]!==void 0){t.push(parseInt(r[2],10));continue}if(r[3]!==void 0){const o=r[3].replace(/\\(\\')/g,s=>P[s]);t.push({_key:o,_index:-1});continue}}return t}function C(e){return e.map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(t._key!=="")return{_key:t._key};if(t._index!==-1)return t._index;throw new Error(`invalid segment:${JSON.stringify(t)}`)})}function G(e){return e.map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(t._index!==-1)return t._index;throw new Error(`invalid segment:${JSON.stringify(t)}`)})}function K(e,t){if(!(t!=null&&t.mappings))return;const n=V(G(e));if(t.mappings[n]!==void 0)return{mapping:t.mappings[n],matchedPath:n,pathSuffix:""};const r=Object.entries(t.mappings).filter(([d])=>n.startsWith(d)).sort(([d],[u])=>u.length-d.length);if(r.length==0)return;const[o,s]=r[0],a=n.substring(o.length);return{mapping:s,matchedPath:o,pathSuffix:a}}function z(e){return e!==null&&Array.isArray(e)}function A(e){return typeof e=="object"&&e!==null}function b(e,t,n=[]){return z(e)?e.map((r,o)=>{if(A(r)){const s=r._key;if(typeof s=="string")return b(r,t,n.concat({_key:s,_index:o}))}return b(r,t,n.concat(o))}):A(e)?Object.fromEntries(Object.entries(e).map(([r,o])=>[r,b(o,t,n.concat(r))])):t(e,n)}function B(e,t,n){return b(e,(r,o)=>{if(typeof r!="string")return r;const s=K(o,t);if(!s)return r;const{mapping:a,matchedPath:d}=s;if(a.type!=="value"||a.source.type!=="documentValue")return r;const u=t.documents[a.source.document],f=t.paths[a.source.path],h=U(d),y=U(f).concat(o.slice(h.length));return n({sourcePath:y,sourceDocument:u,resultPath:o,value:r})})}const E="drafts.";function H(e){return e.startsWith(E)?e.slice(E.length):e}function X(e){const{baseUrl:t,workspace:n="default",tool:r="default",id:o,type:s,path:a,projectId:d,dataset:u}=e;if(!t)throw new Error("baseUrl is required");if(!a)throw new Error("path is required");if(!o)throw new Error("id is required");if(t!=="/"&&t.endsWith("/"))throw new Error("baseUrl must not end with a slash");const f=n==="default"?void 0:n,h=r==="default"?void 0:r,y=H(o),_=Array.isArray(a)?I(C(a)):a,i=new URLSearchParams({baseUrl:t,id:y,type:s,path:_});f&&i.set("workspace",f),h&&i.set("tool",h),d&&i.set("projectId",d),u&&i.set("dataset",u),o.startsWith(E)&&i.set("isDraft","");const k=[t==="/"?"":t];f&&k.push(f);const p=["mode=presentation",`id=${y}`,`type=${s}`,`path=${encodeURIComponent(_)}`];return h&&p.push(`tool=${h}`),k.push("intent","edit",`${p.join(";")}?${i}`),k.join("/")}function F(e){let t=typeof e=="string"?e:e.baseUrl;return t!=="/"&&(t=t.replace(/\/$/,"")),typeof e=="string"?{baseUrl:t}:{...e,baseUrl:t}}const m=({sourcePath:e,resultPath:t,value:n})=>{if(Y(n)||Z(n))return!1;const r=e.at(-1);return!(e.at(-2)==="slug"&&r==="current"||typeof r=="string"&&r.startsWith("_")||typeof r=="number"&&e.at(-2)==="marks"||r==="href"&&typeof e.at(-2)=="number"&&e.at(-3)==="markDefs"||r==="style"||r==="listItem"||e.some(o=>o==="meta"||o==="metadata"||o==="openGraph"||o==="seo")||R(e)||R(t)||typeof r=="string"&&Q.has(r))},Q=new Set(["color","colour","currency","email","format","gid","hex","href","hsl","hsla","icon","id","index","key","language","layout","link","linkAction","locale","lqip","page","path","ref","rgb","rgba","route","secret","slug","status","tag","template","theme","type","unit","url","username","variant","website"]);function Y(e){return/^\d{4}-\d{2}-\d{2}/.test(e)?!!Date.parse(e):!1}function Z(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}function R(e){return e.some(t=>typeof t=="string"&&t.match(/type/i)!==null)}const w=20;function tt(e,t,n){var r,o,s,a,d,u,f,h,y;const{filter:_,logger:i,enabled:k}=n;if(!k){const l="config.enabled must be true, don't call this function otherwise";throw(r=i==null?void 0:i.error)==null||r.call(i,`[@sanity/client]: ${l}`,{result:e,resultSourceMap:t,config:n}),new TypeError(l)}if(!t)return(o=i==null?void 0:i.error)==null||o.call(i,"[@sanity/client]: Missing Content Source Map from response body",{result:e,resultSourceMap:t,config:n}),e;if(!n.studioUrl){const l="config.studioUrl must be defined";throw(s=i==null?void 0:i.error)==null||s.call(i,`[@sanity/client]: ${l}`,{result:e,resultSourceMap:t,config:n}),new TypeError(l)}const p={encoded:[],skipped:[]},L=B(e,t,({sourcePath:l,sourceDocument:g,resultPath:$,value:c})=>{if((typeof _=="function"?_({sourcePath:l,resultPath:$,filterDefault:m,sourceDocument:g,value:c}):m({sourcePath:l,resultPath:$,filterDefault:m,sourceDocument:g,value:c}))===!1)return i&&p.skipped.push({path:x(l),value:`${c.slice(0,w)}${c.length>w?"...":""}`,length:c.length}),c;i&&p.encoded.push({path:x(l),value:`${c.slice(0,w)}${c.length>w?"...":""}`,length:c.length});const{baseUrl:S,workspace:O,tool:W}=F(typeof n.studioUrl=="function"?n.studioUrl(g):n.studioUrl);if(!S)return c;const{_id:D,_type:N,_projectId:M,_dataset:q}=g;return J(c,{origin:"sanity.io",href:X({baseUrl:S,workspace:O,tool:W,id:D,type:N,path:l,...!n.omitCrossDatasetReferenceData&&{dataset:q,projectId:M}})},!1)});if(i){const l=p.skipped.length,g=p.encoded.length;if((l||g)&&((a=(i==null?void 0:i.groupCollapsed)||i.log)==null||a("[@sanity/client]: Encoding source map into result"),(d=i.log)==null||d.call(i,`[@sanity/client]: Paths encoded: ${p.encoded.length}, skipped: ${p.skipped.length}`)),p.encoded.length>0&&((u=i==null?void 0:i.log)==null||u.call(i,"[@sanity/client]: Table of encoded paths"),(f=(i==null?void 0:i.table)||i.log)==null||f(p.encoded)),p.skipped.length>0){const $=new Set;for(const{path:c}of p.skipped)$.add(c.replace(T,"0").replace(/\[\d+\]/g,"[]"));(h=i==null?void 0:i.log)==null||h.call(i,"[@sanity/client]: List of skipped paths",[...$.values()])}(l||g)&&((y=i==null?void 0:i.groupEnd)==null||y.call(i))}return L}function x(e){return I(C(e))}var nt=Object.freeze({__proto__:null,stegaEncodeSourceMap:tt});export{B as encodeIntoResult,tt as stegaEncodeSourceMap,nt as stegaEncodeSourceMap$1}; diff --git a/_app/immutable/chunks/stores.CDQvZFra.js b/_app/immutable/chunks/stores.CziGYtPu.js similarity index 72% rename from _app/immutable/chunks/stores.CDQvZFra.js rename to _app/immutable/chunks/stores.CziGYtPu.js index ef12dcc..9c7b0e6 100644 --- a/_app/immutable/chunks/stores.CDQvZFra.js +++ b/_app/immutable/chunks/stores.CziGYtPu.js @@ -1 +1 @@ -import{s as e}from"./entry.D2sf_QNO.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p}; +import{s as e}from"./entry.CLBXmzHC.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p}; diff --git a/_app/immutable/entry/app.BRxx5we0.js b/_app/immutable/entry/app.aUqmAxrz.js similarity index 86% rename from _app/immutable/entry/app.BRxx5we0.js rename to _app/immutable/entry/app.aUqmAxrz.js index 1927c7a..8956260 100644 --- a/_app/immutable/entry/app.BRxx5we0.js +++ b/_app/immutable/entry/app.aUqmAxrz.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["../nodes/0.BHMEOoXG.js","../chunks/disclose-version.BVilGUYt.js","../chunks/runtime.CKNddQ8B.js","../chunks/misc.BGa3BRog.js","../assets/0.CSwTxoli.css","../nodes/1.ADBfnwA1.js","../chunks/store.lFX7wZhJ.js","../chunks/index.BK7BN-jz.js","../chunks/stores.CDQvZFra.js","../chunks/entry.D2sf_QNO.js","../chunks/paths.B67rEwCD.js","../nodes/2.B1fU1xCc.js","../chunks/Header.Clge3bpP.js","../chunks/class.t1vgL6hd.js","../chunks/projectStore.COkh1dC6.js","../nodes/3.xR6BaQu9.js","../chunks/utils.BT7cNBW3.js","../chunks/if.rAoOK4dE.js","../nodes/4.BLeMJJnj.js","../chunks/4.Dx4fyXSx.js","../chunks/preload-helper.7zv84HIM.js","../assets/4.ClyFVvIG.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -var B=r=>{throw TypeError(r)};var F=(r,t,e)=>t.has(r)||B("Cannot "+e);var o=(r,t,e)=>(F(r,t,"read from private field"),e?e.call(r):t.get(r)),I=(r,t,e)=>t.has(r)?B("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),L=(r,t,e,a)=>(F(r,t,"write to private field"),a?a.call(r,e):t.set(r,e),e);import{p as j,a as x,o as W,b,_ as p}from"../chunks/preload-helper.7zv84HIM.js";import{b as X,d as Y,e as Z,P as $,p as tt,g as et,f as rt,a as at,l as P,s as T,Q as st,C as V,t as ot}from"../chunks/runtime.CKNddQ8B.js";import{o as nt,p as it,u as ct,j as v,a as u,t as H,f as m,b as G,s as ut,c as lt,q as _t}from"../chunks/disclose-version.BVilGUYt.js";import{i as O}from"../chunks/if.rAoOK4dE.js";function y(r,t){let e,a;X(()=>{e!==(e=r())&&(a&&(Z(a),a=null),e&&(a=Y(()=>t(e))))})}function dt(r){return class extends mt{constructor(t){super({component:r,...t})}}}var l,n;class mt{constructor(t){I(this,l);I(this,n);const e=j({...t.props||{},$$events:{}},!1);L(this,n,(t.hydrate?nt:it)(t.component,{target:t.target,props:e,context:t.context,intro:t.intro,recover:t.recover})),L(this,l,e.$$events);for(const a of Object.keys(o(this,n)))a==="$set"||a==="$destroy"||a==="$on"||$(this,a,{get(){return o(this,n)[a]},set(c){o(this,n)[a]=c},enumerable:!0});o(this,n).$set=a=>{Object.assign(e,a)},o(this,n).$destroy=()=>{ct(o(this,n))}}$set(t){o(this,n).$set(t)}$on(t,e){o(this,l)[t]=o(this,l)[t]||[];const a=(...c)=>e.call(this,...c);return o(this,l)[t].push(a),()=>{o(this,l)[t]=o(this,l)[t].filter(c=>c!==a)}}$destroy(){o(this,n).$destroy()}}l=new WeakMap,n=new WeakMap;const Ot={};var ft=H('
'),vt=H(" ",1);function ht(r,t){tt(t,!0);let e=x(t,"components",15,()=>j([])),a=x(t,"data_0",3,null),c=x(t,"data_1",3,null),w=x(t,"data_2",3,null);et(()=>t.stores.page.set(t.page)),rt(()=>{t.stores,t.page,t.constructors,e(),t.form,a(),c(),w(),t.stores.page.notify()});let k=V(!1),C=V(!1),q=V(null);W(()=>{const d=t.stores.page.subscribe(()=>{P(k)&&(T(C,!0),st().then(()=>{T(q,j(document.title||"untitled page"))}))});return T(k,!0),d});var M=vt(),Q=m(M);O(Q,()=>t.constructors[1],d=>{var _=v(),h=m(_);y(()=>t.constructors[0],f=>{b(f(h,{get data(){return a()},children:(s,gt)=>{var S=v(),K=m(S);O(K,()=>t.constructors[2],R=>{var g=v(),A=m(g);y(()=>t.constructors[1],D=>{b(D(A,{get data(){return c()},children:(i,bt)=>{var z=v(),N=m(z);y(()=>t.constructors[2],U=>{b(U(N,{get data(){return w()},get form(){return t.form}}),E=>e()[2]=E,()=>{var E;return(E=e())==null?void 0:E[2]})}),u(i,z)},$$slots:{default:!0}}),i=>e()[1]=i,()=>{var i;return(i=e())==null?void 0:i[1]})}),u(R,g)},R=>{var g=v(),A=m(g);y(()=>t.constructors[1],D=>{b(D(A,{get data(){return c()},get form(){return t.form}}),i=>e()[1]=i,()=>{var i;return(i=e())==null?void 0:i[1]})}),u(R,g)}),u(s,S)},$$slots:{default:!0}}),s=>e()[0]=s,()=>{var s;return(s=e())==null?void 0:s[0]})}),u(d,_)},d=>{var _=v(),h=m(_);y(()=>t.constructors[0],f=>{b(f(h,{get data(){return a()},get form(){return t.form}}),s=>e()[0]=s,()=>{var s;return(s=e())==null?void 0:s[0]})}),u(d,_)});var J=G(G(Q,!0));O(J,()=>P(k),d=>{var _=ft(),h=lt(_);O(h,()=>P(C),f=>{var s=_t(f);ot(()=>ut(s,P(q))),u(f,s)}),u(d,_)}),u(r,M),at()}const kt=dt(ht),Rt=[()=>p(()=>import("../nodes/0.BHMEOoXG.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>p(()=>import("../nodes/1.ADBfnwA1.js"),__vite__mapDeps([5,1,2,6,7,8,9,10]),import.meta.url),()=>p(()=>import("../nodes/2.B1fU1xCc.js"),__vite__mapDeps([11,1,2,3,12,13,6,7,14]),import.meta.url),()=>p(()=>import("../nodes/3.xR6BaQu9.js"),__vite__mapDeps([15,1,2,16,12,17,6,7,14,10]),import.meta.url),()=>p(()=>import("../nodes/4.BLeMJJnj.js"),__vite__mapDeps([18,19,1,2,20,17,16,13,6,7,14,8,9,10,21]),import.meta.url)],At=[],Dt={"/":[3],"/project/[id]":[4,[2]]},It={handleError:({error:r})=>{console.error(r)},reroute:()=>{}};export{Dt as dictionary,It as hooks,Ot as matchers,Rt as nodes,kt as root,At as server_loads}; +const __vite__fileDeps=["../nodes/0.BHMEOoXG.js","../chunks/disclose-version.BVilGUYt.js","../chunks/runtime.CKNddQ8B.js","../chunks/misc.BGa3BRog.js","../assets/0.CSwTxoli.css","../nodes/1.C9esfDnU.js","../chunks/store.lFX7wZhJ.js","../chunks/index.BK7BN-jz.js","../chunks/stores.CziGYtPu.js","../chunks/entry.CLBXmzHC.js","../chunks/paths.LZtzvX8V.js","../nodes/2.B1fU1xCc.js","../chunks/Header.Clge3bpP.js","../chunks/class.t1vgL6hd.js","../chunks/projectStore.COkh1dC6.js","../nodes/3.HoOzqS-n.js","../chunks/utils.BT7cNBW3.js","../chunks/if.rAoOK4dE.js","../nodes/4.CItaZ6Uv.js","../chunks/4.CmdEqcRO.js","../chunks/preload-helper.7zv84HIM.js","../assets/4.ClyFVvIG.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +var B=r=>{throw TypeError(r)};var F=(r,t,e)=>t.has(r)||B("Cannot "+e);var o=(r,t,e)=>(F(r,t,"read from private field"),e?e.call(r):t.get(r)),I=(r,t,e)=>t.has(r)?B("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),L=(r,t,e,a)=>(F(r,t,"write to private field"),a?a.call(r,e):t.set(r,e),e);import{p as j,a as x,o as W,b,_ as p}from"../chunks/preload-helper.7zv84HIM.js";import{b as X,d as Y,e as Z,P as $,p as tt,g as et,f as rt,a as at,l as P,s as T,Q as st,C as V,t as ot}from"../chunks/runtime.CKNddQ8B.js";import{o as nt,p as it,u as ct,j as v,a as u,t as H,f as m,b as G,s as ut,c as lt,q as _t}from"../chunks/disclose-version.BVilGUYt.js";import{i as O}from"../chunks/if.rAoOK4dE.js";function y(r,t){let e,a;X(()=>{e!==(e=r())&&(a&&(Z(a),a=null),e&&(a=Y(()=>t(e))))})}function dt(r){return class extends mt{constructor(t){super({component:r,...t})}}}var l,n;class mt{constructor(t){I(this,l);I(this,n);const e=j({...t.props||{},$$events:{}},!1);L(this,n,(t.hydrate?nt:it)(t.component,{target:t.target,props:e,context:t.context,intro:t.intro,recover:t.recover})),L(this,l,e.$$events);for(const a of Object.keys(o(this,n)))a==="$set"||a==="$destroy"||a==="$on"||$(this,a,{get(){return o(this,n)[a]},set(c){o(this,n)[a]=c},enumerable:!0});o(this,n).$set=a=>{Object.assign(e,a)},o(this,n).$destroy=()=>{ct(o(this,n))}}$set(t){o(this,n).$set(t)}$on(t,e){o(this,l)[t]=o(this,l)[t]||[];const a=(...c)=>e.call(this,...c);return o(this,l)[t].push(a),()=>{o(this,l)[t]=o(this,l)[t].filter(c=>c!==a)}}$destroy(){o(this,n).$destroy()}}l=new WeakMap,n=new WeakMap;const Ot={};var ft=H('
'),vt=H(" ",1);function ht(r,t){tt(t,!0);let e=x(t,"components",15,()=>j([])),a=x(t,"data_0",3,null),c=x(t,"data_1",3,null),w=x(t,"data_2",3,null);et(()=>t.stores.page.set(t.page)),rt(()=>{t.stores,t.page,t.constructors,e(),t.form,a(),c(),w(),t.stores.page.notify()});let k=V(!1),C=V(!1),q=V(null);W(()=>{const d=t.stores.page.subscribe(()=>{P(k)&&(T(C,!0),st().then(()=>{T(q,j(document.title||"untitled page"))}))});return T(k,!0),d});var M=vt(),Q=m(M);O(Q,()=>t.constructors[1],d=>{var _=v(),h=m(_);y(()=>t.constructors[0],f=>{b(f(h,{get data(){return a()},children:(s,gt)=>{var S=v(),K=m(S);O(K,()=>t.constructors[2],R=>{var g=v(),A=m(g);y(()=>t.constructors[1],D=>{b(D(A,{get data(){return c()},children:(i,bt)=>{var z=v(),N=m(z);y(()=>t.constructors[2],U=>{b(U(N,{get data(){return w()},get form(){return t.form}}),E=>e()[2]=E,()=>{var E;return(E=e())==null?void 0:E[2]})}),u(i,z)},$$slots:{default:!0}}),i=>e()[1]=i,()=>{var i;return(i=e())==null?void 0:i[1]})}),u(R,g)},R=>{var g=v(),A=m(g);y(()=>t.constructors[1],D=>{b(D(A,{get data(){return c()},get form(){return t.form}}),i=>e()[1]=i,()=>{var i;return(i=e())==null?void 0:i[1]})}),u(R,g)}),u(s,S)},$$slots:{default:!0}}),s=>e()[0]=s,()=>{var s;return(s=e())==null?void 0:s[0]})}),u(d,_)},d=>{var _=v(),h=m(_);y(()=>t.constructors[0],f=>{b(f(h,{get data(){return a()},get form(){return t.form}}),s=>e()[0]=s,()=>{var s;return(s=e())==null?void 0:s[0]})}),u(d,_)});var J=G(G(Q,!0));O(J,()=>P(k),d=>{var _=ft(),h=lt(_);O(h,()=>P(C),f=>{var s=_t(f);ot(()=>ut(s,P(q))),u(f,s)}),u(d,_)}),u(r,M),at()}const kt=dt(ht),Rt=[()=>p(()=>import("../nodes/0.BHMEOoXG.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>p(()=>import("../nodes/1.C9esfDnU.js"),__vite__mapDeps([5,1,2,6,7,8,9,10]),import.meta.url),()=>p(()=>import("../nodes/2.B1fU1xCc.js"),__vite__mapDeps([11,1,2,3,12,13,6,7,14]),import.meta.url),()=>p(()=>import("../nodes/3.HoOzqS-n.js"),__vite__mapDeps([15,1,2,16,12,17,6,7,14,10]),import.meta.url),()=>p(()=>import("../nodes/4.CItaZ6Uv.js"),__vite__mapDeps([18,19,1,2,20,17,16,13,6,7,14,8,9,10,21]),import.meta.url)],At=[],Dt={"/":[3],"/project/[id]":[4,[2]]},It={handleError:({error:r})=>{console.error(r)},reroute:()=>{}};export{Dt as dictionary,It as hooks,Ot as matchers,Rt as nodes,kt as root,At as server_loads}; diff --git a/_app/immutable/entry/start.BtzcC07V.js b/_app/immutable/entry/start.BtzcC07V.js deleted file mode 100644 index bb19609..0000000 --- a/_app/immutable/entry/start.BtzcC07V.js +++ /dev/null @@ -1 +0,0 @@ -import{a as t}from"../chunks/entry.D2sf_QNO.js";export{t as start}; diff --git a/_app/immutable/entry/start.SzYkOu1Y.js b/_app/immutable/entry/start.SzYkOu1Y.js new file mode 100644 index 0000000..07555db --- /dev/null +++ b/_app/immutable/entry/start.SzYkOu1Y.js @@ -0,0 +1 @@ +import{a as t}from"../chunks/entry.CLBXmzHC.js";export{t as start}; diff --git a/_app/immutable/nodes/1.ADBfnwA1.js b/_app/immutable/nodes/1.C9esfDnU.js similarity index 87% rename from _app/immutable/nodes/1.ADBfnwA1.js rename to _app/immutable/nodes/1.C9esfDnU.js index e0afe15..a0d01f3 100644 --- a/_app/immutable/nodes/1.ADBfnwA1.js +++ b/_app/immutable/nodes/1.C9esfDnU.js @@ -1 +1 @@ -import{a as g,t as _,s as o,c as p,f as h,b as i}from"../chunks/disclose-version.BVilGUYt.js";import{p as l,t as v,a as b}from"../chunks/runtime.CKNddQ8B.js";import{u as d,i as x,s as $}from"../chunks/store.lFX7wZhJ.js";import{p as y}from"../chunks/stores.CDQvZFra.js";var E=_("

",1);function z(m,n){l(n,!1);const s={};d(s);const t=()=>$(y,"$page",s);x();var a=E(),r=h(a),f=p(r),c=i(i(r,!0)),u=p(c);v(()=>{var e;o(f,t().status),o(u,(e=t().error)==null?void 0:e.message)}),g(m,a),b()}export{z as component}; +import{a as g,t as _,s as o,c as p,f as h,b as i}from"../chunks/disclose-version.BVilGUYt.js";import{p as l,t as v,a as b}from"../chunks/runtime.CKNddQ8B.js";import{u as d,i as x,s as $}from"../chunks/store.lFX7wZhJ.js";import{p as y}from"../chunks/stores.CziGYtPu.js";var E=_("

",1);function z(m,n){l(n,!1);const s={};d(s);const t=()=>$(y,"$page",s);x();var a=E(),r=h(a),f=p(r),c=i(i(r,!0)),u=p(c);v(()=>{var e;o(f,t().status),o(u,(e=t().error)==null?void 0:e.message)}),g(m,a),b()}export{z as component}; diff --git a/_app/immutable/nodes/3.xR6BaQu9.js b/_app/immutable/nodes/3.HoOzqS-n.js similarity index 98% rename from _app/immutable/nodes/3.xR6BaQu9.js rename to _app/immutable/nodes/3.HoOzqS-n.js index 17f40ba..5b808d9 100644 --- a/_app/immutable/nodes/3.xR6BaQu9.js +++ b/_app/immutable/nodes/3.HoOzqS-n.js @@ -1,4 +1,4 @@ -import{g as K,j as M,a as v,t as b,f as P,b as a,s as f,c as t}from"../chunks/disclose-version.BVilGUYt.js";import{p as I,a as L,t as D,u as o,f as Q}from"../chunks/runtime.CKNddQ8B.js";import{e as R,i as S,t as T,s as F}from"../chunks/utils.BT7cNBW3.js";import{H as U,F as W}from"../chunks/Header.Clge3bpP.js";import{i as X}from"../chunks/if.rAoOK4dE.js";import{u as Z,i as aa,s as ta}from"../chunks/store.lFX7wZhJ.js";import{p as ea,r as ra,s as sa}from"../chunks/projectStore.COkh1dC6.js";import{b as A}from"../chunks/paths.B67rEwCD.js";var oa=(u,n,i)=>n(o(i)),ia=b('
Open
',1),la=b('

Projects

Project title
Project description
Creation date
Number of objects
Actions
',1),ca=b(`

No saved projects

You can start by creating a new project. All projects created on this device will be +import{g as K,j as M,a as v,t as b,f as P,b as a,s as f,c as t}from"../chunks/disclose-version.BVilGUYt.js";import{p as I,a as L,t as D,u as o,f as Q}from"../chunks/runtime.CKNddQ8B.js";import{e as R,i as S,t as T,s as F}from"../chunks/utils.BT7cNBW3.js";import{H as U,F as W}from"../chunks/Header.Clge3bpP.js";import{i as X}from"../chunks/if.rAoOK4dE.js";import{u as Z,i as aa,s as ta}from"../chunks/store.lFX7wZhJ.js";import{p as ea,r as ra,s as sa}from"../chunks/projectStore.COkh1dC6.js";import{b as A}from"../chunks/paths.LZtzvX8V.js";var oa=(u,n,i)=>n(o(i)),ia=b('

Open
',1),la=b('

Projects

Project title
Project description
Creation date
Number of objects
Actions
',1),ca=b(`

No saved projects

You can start by creating a new project. All projects created on this device will be automaically saved and displayed here.

`,1);function na(u,n){I(n,!1);const i={};Z(i);const d=()=>ta(ea,"$projects",i);aa();var m=M(),p=P(m);X(p,()=>d().length,l=>{var c=la(),h=P(c),_=a(a(h,!0)),g=t(_),x=a(a(g,!0)),j=a(a(x,!0)),y=a(a(j,!0)),w=a(a(y,!0)),$=a(a(w,!0));R($,1,d,S,(O,e,va)=>{var C=ia(),k=P(C),V=t(k),H=a(a(k,!0)),Y=t(H);D(()=>{var r,s;return f(Y,(r=o(e))!=null&&r.description?T((s=o(e))==null?void 0:s.description,100):"")});var N=a(a(H,!0)),q=t(N);D(()=>{var r,s;return f(q,(s=(r=o(e))==null?void 0:r.date)==null?void 0:s.substring(0,10))});var z=a(a(N,!0)),E=t(z),G=a(a(z,!0)),B=t(G),J=a(a(B,!0));J.__click=[oa,ra,e],D(()=>{var r,s;F(k,"href",`${A??""}/project/${o(e).id??""}`),f(V,o(e).name),f(E,(s=(r=o(e))==null?void 0:r.ids)==null?void 0:s.length),F(B,"href",`${A??""}/project/${o(e).id??""}`)}),v(O,C)}),v(l,c)},l=>{var c=ca();v(l,c)}),v(u,m),L()}K(["click"]);var da=b(`
Digital Benin background

Iconography printer tool

Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Donec ullamcorper nulla non metus auctor fringilla. Donec id elit non mi porta diff --git a/_app/immutable/nodes/4.BLeMJJnj.js b/_app/immutable/nodes/4.BLeMJJnj.js deleted file mode 100644 index 55db9d3..0000000 --- a/_app/immutable/nodes/4.BLeMJJnj.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"../chunks/4.Dx4fyXSx.js";export{m as component}; diff --git a/_app/immutable/nodes/4.CItaZ6Uv.js b/_app/immutable/nodes/4.CItaZ6Uv.js new file mode 100644 index 0000000..7737dfd --- /dev/null +++ b/_app/immutable/nodes/4.CItaZ6Uv.js @@ -0,0 +1 @@ +import{_ as m}from"../chunks/4.CmdEqcRO.js";export{m as component}; diff --git a/_app/version.json b/_app/version.json index 3586864..c90a3b4 100644 --- a/_app/version.json +++ b/_app/version.json @@ -1 +1 @@ -{"version":"1719925840049"} \ No newline at end of file +{"version":"1719926464401"} \ No newline at end of file diff --git a/index.html b/index.html index 3211529..cdb04d0 100644 --- a/index.html +++ b/index.html @@ -6,12 +6,12 @@ - - + + - - + + @@ -20,7 +20,7 @@