var Be=Object.defineProperty;var Xe=(e,t,r)=>t in e?Be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var j=(e,t,r)=>Xe(e,typeof t!="symbol"?t+"":t,r);import{J as pe,K as Ye,L as Ve,M as We,F as we,P as ve,E as J,r as u,C as Ke,x as ge,c as Ee,u as Se,Q as Ge,S as Qe,T as Ze,U as qe,D as et,h as tt,n as rt,V as nt}from"./index-B3OTimmw.js";import{L as at,F as it,d as ot,N as lt}from"./index-CCtBluj6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b4630ad2-3a42-4fc6-954d-93edba310339",e._sentryDebugIdIdentifier="sentry-dbid-b4630ad2-3a42-4fc6-954d-93edba310339")}catch{}})();var st=-1,ut=-2,ct=-3,dt=-4,ft=-5,ht=-6,mt=-7,yt="B",pt="D",Re="E",wt="M",vt="N",xe="P",gt="R",Et="S",St="Y",Rt="U",xt="Z",be=class{constructor(){j(this,"promise");j(this,"resolve");j(this,"reject");this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function bt(){const e=new TextDecoder;let t="";return new TransformStream({transform(r,n){const a=e.decode(r,{stream:!0}),i=(t+a).split(`
`);t=i.pop()||"";for(const s of i)n.enqueue(s)},flush(r){t&&r.enqueue(t)}})}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var V=typeof window<"u"?window:typeof globalThis<"u"?globalThis:void 0;function K(e){const{hydrated:t,values:r}=this;if(typeof e=="number")return ue.call(this,e);if(!Array.isArray(e)||!e.length)throw new SyntaxError;const n=r.length;for(const a of e)r.push(a);return t.length=r.length,ue.call(this,n)}function ue(e){const{hydrated:t,values:r,deferred:n,plugins:a}=this;let i;const s=[[e,o=>{i=o}]];let l=[];for(;s.length>0;){const[o,d]=s.pop();switch(o){case mt:d(void 0);continue;case ft:d(null);continue;case ut:d(NaN);continue;case ht:d(1/0);continue;case ct:d(-1/0);continue;case dt:d(-0);continue}if(t[o]){d(t[o]);continue}const m=r[o];if(!m||typeof m!="object"){t[o]=m,d(m);continue}if(Array.isArray(m))if(typeof m[0]=="string"){const[f,h,y]=m;switch(f){case pt:d(t[o]=new Date(h));continue;case Rt:d(t[o]=new URL(h));continue;case yt:d(t[o]=BigInt(h));continue;case gt:d(t[o]=new RegExp(h,y));continue;case St:d(t[o]=Symbol.for(h));continue;case Et:const c=new Set;t[o]=c;for(let w=1;w<m.length;w++)s.push([m[w],E=>{c.add(E)}]);d(c);continue;case wt:const g=new Map;t[o]=g;for(let w=1;w<m.length;w+=2){const E=[];s.push([m[w+1],p=>{E[1]=p}]),s.push([m[w],p=>{E[0]=p}]),l.push(()=>{g.set(E[0],E[1])})}d(g);continue;case vt:const x=Object.create(null);t[o]=x;for(const w of Object.keys(h).reverse()){const E=[];s.push([h[w],p=>{E[1]=p}]),s.push([Number(w.slice(1)),p=>{E[0]=p}]),l.push(()=>{x[E[0]]=E[1]})}d(x);continue;case xe:if(t[h])d(t[o]=t[h]);else{const w=new be;n[h]=w,d(t[o]=w.promise)}continue;case Re:const[,v,b]=m;let S=b&&V&&V[b]?new V[b](v):new Error(v);t[o]=S,d(S);continue;case xt:d(t[o]=t[h]);continue;default:if(Array.isArray(a)){const w=[],E=m.slice(1);for(let p=0;p<E.length;p++){const R=E[p];s.push([R,_=>{w[p]=_}])}l.push(()=>{for(const p of a){const R=p(m[0],...w);if(R){d(t[o]=R.value);return}}throw new SyntaxError});continue}throw new SyntaxError}}else{const f=[];t[o]=f;for(let h=0;h<m.length;h++){const y=m[h];y!==st&&s.push([y,c=>{f[h]=c}])}d(f);continue}else{const f={};t[o]=f;for(const h of Object.keys(m).reverse()){const y=[];s.push([m[h],c=>{y[1]=c}]),s.push([Number(h.slice(1)),c=>{y[0]=c}]),l.push(()=>{f[y[0]]=y[1]})}d(f);continue}}for(;l.length>0;)l.pop()();return i}async function _t(e,t){const{plugins:r}=t??{},n=new be,a=e.pipeThrough(bt()).getReader(),i={values:[],hydrated:[],deferred:{},plugins:r},s=await Lt.call(i,a);let l=n.promise;return s.done?n.resolve():l=Ot.call(i,a).then(n.resolve).catch(o=>{for(const d of Object.values(i.deferred))d.reject(o);n.reject(o)}),{done:l.then(()=>a.closed),value:s.value}}async function Lt(e){const t=await e.read();if(!t.value)throw new SyntaxError;let r;try{r=JSON.parse(t.value)}catch{throw new SyntaxError}return{done:t.done,value:K.call(this,r)}}async function Ot(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;const r=t.value;switch(r[0]){case xe:{const n=r.indexOf(":"),a=Number(r.slice(1,n)),i=this.deferred[a];if(!i)throw new Error(`Deferred ID ${a} not found in stream`);const s=r.slice(n+1);let l;try{l=JSON.parse(s)}catch{throw new SyntaxError}const o=K.call(this,l);i.resolve(o);break}case Re:{const n=r.indexOf(":"),a=Number(r.slice(1,n)),i=this.deferred[a];if(!i)throw new Error(`Deferred ID ${a} not found in stream`);const s=r.slice(n+1);let l;try{l=JSON.parse(s)}catch{throw new SyntaxError}const o=K.call(this,l);i.reject(o);break}default:throw new SyntaxError}t=await e.read()}}/**
 * @remix-run/server-runtime v2.13.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */const _e=Symbol("SingleFetchRedirect");function br(e,t){return pe(e,t)}/**
 * @remix-run/react v2.13.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},L.apply(this,arguments)}/**
 * @remix-run/react v2.13.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function k(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}/**
 * @remix-run/react v2.13.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */async function Le(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__remixContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}/**
 * @remix-run/react v2.13.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function kt(e,t,r){let n=e.map(i=>{var s;let l=t[i.route.id],o=r.routes[i.route.id];return[o.css?o.css.map(d=>({rel:"stylesheet",href:d})):[],(l==null||(s=l.links)===null||s===void 0?void 0:s.call(l))||[]]}).flat(2),a=At(e,r);return ke(n,a)}async function Oe(e,t){var r,n;if(!e.css&&!t.links||!jt())return;let a=[((r=e.css)===null||r===void 0?void 0:r.map(l=>({rel:"stylesheet",href:l})))??[],((n=t.links)===null||n===void 0?void 0:n.call(t))??[]].flat(1);if(a.length===0)return;let i=[];for(let l of a)!Z(l)&&l.rel==="stylesheet"&&i.push({...l,rel:"preload",as:"style"});let s=i.filter(l=>(!l.media||window.matchMedia(l.media).matches)&&!document.querySelector(`link[rel="stylesheet"][href="${l.href}"]`));await Promise.all(s.map(Dt))}async function Dt(e){return new Promise(t=>{let r=document.createElement("link");Object.assign(r,e);function n(){document.head.contains(r)&&document.head.removeChild(r)}r.onload=()=>{n(),t()},r.onerror=()=>{n(),t()},document.head.appendChild(r)})}function Z(e){return e!=null&&typeof e.page=="string"}function Pt(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Nt(e,t,r){let n=await Promise.all(e.map(async a=>{let i=await Le(t.routes[a.route.id],r);return i.links?i.links():[]}));return ke(n.flat(1).filter(Pt).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function ce(e,t,r,n,a,i){let s=De(e),l=(m,f)=>r[f]?m.route.id!==r[f].route.id:!0,o=(m,f)=>{var h;return r[f].pathname!==m.pathname||((h=r[f].route.path)===null||h===void 0?void 0:h.endsWith("*"))&&r[f].params["*"]!==m.params["*"]};return i==="data"&&a.search!==s.search?t.filter((m,f)=>{if(!n.routes[m.route.id].hasLoader)return!1;if(l(m,f)||o(m,f))return!0;if(m.route.shouldRevalidate){var y;let c=m.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((y=r[0])===null||y===void 0?void 0:y.params)||{},nextUrl:new URL(e,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof c=="boolean")return c}return!0}):t.filter((m,f)=>{let h=n.routes[m.route.id];return(i==="assets"||h.hasLoader)&&(l(m,f)||o(m,f))})}function Ct(e,t,r){let n=De(e);return q(t.filter(a=>r.routes[a.route.id].hasLoader&&!r.routes[a.route.id].hasClientLoader).map(a=>{let{pathname:i,search:s}=n,l=new URLSearchParams(s);return l.set("_data",a.route.id),`${i}?${l}`}))}function Tt(e,t){return q(e.map(r=>{let n=t.routes[r.route.id],a=[n.module];return n.imports&&(a=a.concat(n.imports)),a}).flat(1))}function At(e,t){return q(e.map(r=>{let n=t.routes[r.route.id],a=[n.module];return n.imports&&(a=a.concat(n.imports)),a}).flat(1))}function q(e){return[...new Set(e)]}function $t(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function ke(e,t){let r=new Set,n=new Set(t);return e.reduce((a,i)=>{if(t&&!Z(i)&&i.as==="script"&&i.href&&n.has(i.href))return a;let l=JSON.stringify($t(i));return r.has(l)||(r.add(l),a.push({key:l,link:i})),a},[])}function De(e){let t=Ye(e);return t.search===void 0&&(t.search=""),t}let F;function jt(){if(F!==void 0)return F;let e=document.createElement("link");return F=e.relList.supports("preload"),e=null,F}/**
 * @remix-run/react v2.13.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */const Ft={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},It=/[&><\u2028\u2029]/g;function $(e){return e.replace(It,t=>Ft[t])}function de(e){return{__html:e}}/**
 * @remix-run/react v2.13.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Ht(e){return e.headers.get("X-Remix-Catch")!=null}function Mt(e){return e.headers.get("X-Remix-Error")!=null}function Jt(e){return ee(e)&&e.status>=400&&e.headers.get("X-Remix-Error")==null&&e.headers.get("X-Remix-Catch")==null&&e.headers.get("X-Remix-Response")==null}function Ut(e){return e.headers.get("X-Remix-Redirect")!=null}function zt(e){var t;return!!((t=e.headers.get("Content-Type"))!==null&&t!==void 0&&t.match(/text\/remix-deferred/))}function ee(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Bt(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}async function Pe(e,t,r=0){let n=new URL(e.url);n.searchParams.set("_data",t),r>0&&await new Promise(l=>setTimeout(l,5**r*10));let a=await z(e),i=window.__remixRevalidation,s=await fetch(n.href,a).catch(l=>{if(typeof i=="number"&&i===window.__remixRevalidation&&(l==null?void 0:l.name)==="TypeError"&&r<3)return Pe(e,t,r+1);throw l});if(Mt(s)){let l=await s.json(),o=new Error(l.message);return o.stack=l.stack,o}if(Jt(s)){let l=await s.text(),o=new Error(l);return o.stack=void 0,o}return s}async function z(e){let t={signal:e.signal};if(e.method!=="GET"){t.method=e.method;let r=e.headers.get("Content-Type");r&&/\bapplication\/json\b/.test(r)?(t.headers={"Content-Type":r},t.body=JSON.stringify(await e.json())):r&&/\btext\/plain\b/.test(r)?(t.headers={"Content-Type":r},t.body=await e.text()):r&&/\bapplication\/x-www-form-urlencoded\b/.test(r)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}const Xt="__deferred_promise:";async function Yt(e){if(!e)throw new Error("parseDeferredReadableStream requires stream argument");let t,r={};try{let n=Vt(e),i=(await n.next()).value;if(!i)throw new Error("no critical data");let s=JSON.parse(i);if(typeof s=="object"&&s!==null)for(let[l,o]of Object.entries(s))typeof o!="string"||!o.startsWith(Xt)||(t=t||{},t[l]=new Promise((d,m)=>{r[l]={resolve:f=>{d(f),delete r[l]},reject:f=>{m(f),delete r[l]}}}));return(async()=>{try{for await(let l of n){let[o,...d]=l.split(":"),m=d.join(":"),f=JSON.parse(m);if(o==="data")for(let[h,y]of Object.entries(f))r[h]&&r[h].resolve(y);else if(o==="error")for(let[h,y]of Object.entries(f)){let c=new Error(y.message);c.stack=y.stack,r[h]&&r[h].reject(c)}}for(let[l,o]of Object.entries(r))o.reject(new Ve(`Deferred ${l} will never be resolved`))}catch(l){for(let o of Object.values(r))o.reject(l)}})(),new We({...s,...t})}catch(n){for(let a of Object.values(r))a.reject(n);throw n}}async function*Vt(e){let t=e.getReader(),r=[],n=[],a=!1,i=new TextEncoder,s=new TextDecoder,l=async()=>{if(n.length>0)return n.shift();for(;!a&&n.length===0;){let d=await t.read();if(d.done){a=!0;break}r.push(d.value);try{let f=s.decode(fe(...r)).split(`

`);if(f.length>=2&&(n.push(...f.slice(0,-1)),r=[i.encode(f.slice(-1).join(`

`))]),n.length>0)break}catch{continue}}return n.length>0||r.length>0&&(n=s.decode(fe(...r)).split(`

`).filter(m=>m),r=[]),n.shift()},o=await l();for(;o;)yield o,o=await l()}function fe(...e){let t=new Uint8Array(e.reduce((n,a)=>n+a.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}/**
 * @remix-run/react v2.13.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Wt({context:e,identifier:t,reader:r,textDecoder:n,nonce:a}){if(!e.renderMeta||!e.renderMeta.didRenderScripts)return null;e.renderMeta.streamCache||(e.renderMeta.streamCache={});let{streamCache:i}=e.renderMeta,s=i[t];if(s||(s=i[t]=r.read().then(m=>{i[t].result={done:m.done,value:n.decode(m.value,{stream:!0})}}).catch(m=>{i[t].error=m})),s.error)throw s.error;if(s.result===void 0)throw s;let{done:l,value:o}=s.result,d=o?u.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:`window.__remixContext.streamController.enqueue(${$(JSON.stringify(o))});`}}):null;return l?u.createElement(u.Fragment,null,d,u.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:"window.__remixContext.streamController.close();"}})):u.createElement(u.Fragment,null,d,u.createElement(u.Suspense,null,u.createElement(Wt,{context:e,identifier:t+1,reader:r,textDecoder:n,nonce:a})))}function _r(e,t,r){return async({request:n,matches:a,fetcherKey:i})=>n.method!=="GET"?Kt(n,a):i?Qt(n,a):Gt(e,t,r(),n,a)}async function Kt(e,t){let r=t.find(i=>i.shouldLoad);k(r,"No action match found");let n,a=await r.resolve(async i=>await i(async()=>{let l=B(e.url),o=await z(e),{data:d,status:m}=await te(l,o);return n=m,G(d,r.route.id)}));return ee(a.result)||we(a.result)?{[r.route.id]:a}:{[r.route.id]:{type:a.type,result:pe(a.result,n)}}}async function Gt(e,t,r,n,a){let i=new Set,s=!1,l=a.map(()=>he()),o=Promise.all(l.map(c=>c.promise)),d=he(),m=Ce(B(n.url)),f=await z(n),h={},y=Promise.all(a.map(async(c,g)=>c.resolve(async x=>{if(l[g].resolve(),!c.shouldLoad){var v;if(!r.state.initialized)return;if(c.route.id in r.state.loaderData&&e.routes[c.route.id].hasLoader&&(v=t[c.route.id])!==null&&v!==void 0&&v.shouldRevalidate){s=!0;return}}if(e.routes[c.route.id].hasClientLoader){e.routes[c.route.id].hasLoader&&(s=!0);try{let b=await Ne(x,m,f,c.route.id);h[c.route.id]={type:"data",result:b}}catch(b){h[c.route.id]={type:"error",result:b}}return}e.routes[c.route.id].hasLoader&&i.add(c.route.id);try{let b=await x(async()=>{let S=await d.promise;return Te(S,c.route.id)});h[c.route.id]={type:"data",result:b}}catch(b){h[c.route.id]={type:"error",result:b}}})));if(await o,(!r.state.initialized||i.size===0)&&!window.__remixHdrActive)d.resolve({});else try{s&&i.size>0&&m.searchParams.set("_routes",a.filter(g=>i.has(g.route.id)).map(g=>g.route.id).join(","));let c=await te(m,f);d.resolve(c.data)}catch(c){d.reject(c)}return await y,h}async function Qt(e,t){let r=t.find(a=>a.shouldLoad);k(r,"No fetcher match found");let n=await r.resolve(async a=>{let i=Ce(B(e.url)),s=await z(e);return Ne(a,i,s,r.route.id)});return{[r.route.id]:n}}function Ne(e,t,r,n){return e(async()=>{let a=new URL(t);a.searchParams.set("_routes",n);let{data:i}=await te(a,r);return Te(i,n)})}function Ce(e){let t=e.searchParams.getAll("index");e.searchParams.delete("index");let r=[];for(let n of t)n&&r.push(n);for(let n of r)e.searchParams.append("index",n);return e}function B(e){let t=typeof e=="string"?new URL(e,window.location.origin):e;return t.pathname==="/"?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}async function te(e,t){let r=await fetch(e,t);k(r.body,"No response body to decode");try{let n=await Zt(r.body,window);return{status:r.status,data:n.value}}catch(n){throw console.error(n),new Error(`Unable to decode turbo-stream response from URL: ${e.toString()}`)}}function Zt(e,t){return _t(e,{plugins:[(r,...n)=>{if(r==="SanitizedError"){let[a,i,s]=n,l=Error;a&&a in t&&typeof t[a]=="function"&&(l=t[a]);let o=new l(i);return o.stack=s,{value:o}}if(r==="ErrorResponse"){let[a,i,s]=n;return{value:new J(i,s,a)}}if(r==="SingleFetchRedirect")return{value:{[_e]:n[0]}}},(r,n)=>{if(r==="SingleFetchFallback")return{value:void 0};if(r==="SingleFetchClassInstance")return{value:n}}]})}function Te(e,t){let r=e[_e];return r?G(r,t):e[t]!==void 0?G(e[t],t):null}function G(e,t){if("error"in e)throw e.error;if("redirect"in e){let r={};return e.revalidate&&(r["X-Remix-Revalidate"]="yes"),e.reload&&(r["X-Remix-Reload-Document"]="yes"),e.replace&&(r["X-Remix-Replace"]="yes"),ve(e.redirect,{status:e.status,headers:r})}else{if("data"in e)return e.data;throw new Error(`No response found for routeId "${t}"`)}}function he(){let e,t,r=new Promise((n,a)=>{e=async i=>{n(i);try{await r}catch{}},t=async i=>{a(i);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}/**
 * @remix-run/react v2.13.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */class Lr extends u.Component{constructor(t){super(t),this.state={error:t.error||null,location:t.location}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location?{error:t.error||null,location:t.location}:{error:t.error||r.error,location:r.location}}render(){return this.state.error?u.createElement(Ae,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}}function Ae({error:e,isOutsideRemixApp:t}){console.error(e);let r=u.createElement("script",{dangerouslySetInnerHTML:{__html:`
        console.log(
          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://remix.run/guides/errors for more information."
        );
      `}});if(we(e))return u.createElement(Q,{title:"Unhandled Thrown Response!"},u.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);let n;if(e instanceof Error)n=e;else{let a=e==null?"Unknown Error":typeof e=="object"&&"toString"in e?e.toString():JSON.stringify(e);n=new Error(a)}return u.createElement(Q,{title:"Application Error!",isOutsideRemixApp:t},u.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),u.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function Q({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){var a;let{routeModules:i}=C();return(a=i.root)!==null&&a!==void 0&&a.Layout&&!r?n:u.createElement("html",{lang:"en"},u.createElement("head",null,u.createElement("meta",{charSet:"utf-8"}),u.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),u.createElement("title",null,e)),u.createElement("body",null,u.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?u.createElement(vr,null):null)))}/**
 * @remix-run/react v2.13.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function qt(){return u.createElement(Q,{title:"Loading...",renderScripts:!0},u.createElement("script",{dangerouslySetInnerHTML:{__html:`
              console.log(
                "💿 Hey developer 👋. You can provide a way better UX than this " +
                "when your app is loading JS modules and/or running \`clientLoader\` " +
                "functions. Check out https://remix.run/route/hydrate-fallback " +
                "for more information."
              );
            `}}))}/**
 * @remix-run/react v2.13.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function re(e){let t={};return Object.values(e).forEach(r=>{let n=r.parentId||"";t[n]||(t[n]=[]),t[n].push(r)}),t}function $e(e,t,r){let n=je(t),a=t.HydrateFallback&&(!r||e.id==="root")?t.HydrateFallback:e.id==="root"?qt:void 0,i=t.ErrorBoundary?t.ErrorBoundary:e.id==="root"?()=>u.createElement(Ae,{error:Ke()}):void 0;return e.id==="root"&&t.Layout?{...n?{element:u.createElement(t.Layout,null,u.createElement(n,null))}:{Component:n},...i?{errorElement:u.createElement(t.Layout,null,u.createElement(i,null))}:{ErrorBoundary:i},...a?{hydrateFallbackElement:u.createElement(t.Layout,null,u.createElement(a,null))}:{HydrateFallback:a}}:{Component:n,ErrorBoundary:i,HydrateFallback:a}}function er(e,t,r,n,a="",i=re(e),s=Promise.resolve({Component:()=>null})){return(i[a]||[]).map(l=>{let o=t[l.id];k(o,"No `routeModule` available to create server routes");let d={...$e(l,o,n),caseSensitive:l.caseSensitive,id:l.id,index:l.index,path:l.path,handle:o.handle,lazy:n?()=>s:void 0,loader:l.hasLoader||l.hasClientLoader?()=>null:void 0},m=er(e,t,r,n,l.id,i,s);return m.length>0&&(d.children=m),d})}function Or(e,t,r,n,a,i){return ne(t,r,n,a,i,"",re(t),e)}function I(e,t,r){if(r){let s=`You cannot call ${e==="action"?"serverAction()":"serverLoader()"} in SPA Mode (routeId: "${t.id}")`;throw console.error(s),new J(400,"Bad Request",new Error(s),!0)}let a=`You are trying to call ${e==="action"?"serverAction()":"serverLoader()"} on a route that does not have a server ${e} (routeId: "${t.id}")`;if(e==="loader"&&!t.hasLoader||e==="action"&&!t.hasAction)throw console.error(a),new J(400,"Bad Request",new Error(a),!0)}function W(e,t){let r=e==="clientAction"?"a":"an",n=`Route "${t}" does not have ${r} ${e}, but you are trying to submit to it. To fix this, please add ${r} \`${e}\` function to the route`;throw console.error(n),new J(405,"Method Not Allowed",new Error(n),!0)}function ne(e,t,r,n,a,i="",s=re(e),l){return(s[i]||[]).map(o=>{let d=t[o.id];async function m(S,w,E){if(typeof E=="function")return await E();let p=await rr(S,o);return w?nr(p):p}function f(S,w,E){return o.hasLoader?m(S,w,E):Promise.resolve(null)}function h(S,w,E){if(!o.hasAction)throw W("action",o.id);return m(S,w,E)}async function y(S){let w=t[o.id],E=w?Oe(o,w):Promise.resolve();try{return S()}finally{await E}}let c={id:o.id,index:o.index,path:o.path};if(d){var g,x,v;Object.assign(c,{...c,...$e(o,d,a),handle:d.handle,shouldRevalidate:l?me(o.id,d.shouldRevalidate,l):d.shouldRevalidate});let S=r==null||(g=r.loaderData)===null||g===void 0?void 0:g[o.id],w=r==null||(x=r.errors)===null||x===void 0?void 0:x[o.id],E=l==null&&(((v=d.clientLoader)===null||v===void 0?void 0:v.hydrate)===!0||!o.hasLoader);c.loader=async({request:p,params:R},_)=>{try{return await y(async()=>(k(d,"No `routeModule` available for critical-route loader"),d.clientLoader?d.clientLoader({request:p,params:R,async serverLoader(){if(I("loader",o,a),E){if(S!==void 0)return S;if(w!==void 0)throw w;return null}return f(p,!0,_)}}):a?null:f(p,!1,_)))}finally{E=!1}},c.loader.hydrate=ir(o,d,a),c.action=({request:p,params:R},_)=>y(async()=>{if(k(d,"No `routeModule` available for critical-route action"),!d.clientAction){if(a)throw W("clientAction",o.id);return h(p,!1,_)}return d.clientAction({request:p,params:R,async serverAction(){return I("action",o,a),h(p,!0,_)}})})}else o.hasClientLoader||(c.loader=({request:S},w)=>y(()=>a?Promise.resolve(null):f(S,!1,w))),o.hasClientAction||(c.action=({request:S},w)=>y(()=>{if(a)throw W("clientAction",o.id);return h(S,!1,w)})),c.lazy=async()=>{let S=await tr(o,t),w={...S};if(S.clientLoader){let E=S.clientLoader;w.loader=(p,R)=>E({...p,async serverLoader(){return I("loader",o,a),f(p.request,!0,R)}})}if(S.clientAction){let E=S.clientAction;w.action=(p,R)=>E({...p,async serverAction(){return I("action",o,a),h(p.request,!0,R)}})}return l&&(w.shouldRevalidate=me(o.id,S.shouldRevalidate,l)),{...w.loader?{loader:w.loader}:{},...w.action?{action:w.action}:{},hasErrorBoundary:w.hasErrorBoundary,shouldRevalidate:w.shouldRevalidate,handle:w.handle,Component:w.Component,ErrorBoundary:w.ErrorBoundary}};let b=ne(e,t,r,n,a,o.id,s,l);return b.length>0&&(c.children=b),c})}function me(e,t,r){let n=!1;return a=>n?t?t(a):a.defaultShouldRevalidate:(n=!0,r.has(e))}async function tr(e,t){let r=await Le(e,t);return await Oe(e,r),{Component:je(r),ErrorBoundary:r.ErrorBoundary,clientAction:r.clientAction,clientLoader:r.clientLoader,handle:r.handle,links:r.links,meta:r.meta,shouldRevalidate:r.shouldRevalidate}}async function rr(e,t){let r=await Pe(e,t.id);if(r instanceof Error)throw r;if(Ut(r))throw ar(r);if(Ht(r))throw r;return zt(r)&&r.body?await Yt(r.body):r}function nr(e){if(Bt(e))return e.data;if(ee(e)){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.json():e.text()}return e}function ar(e){let t=parseInt(e.headers.get("X-Remix-Status"),10)||302,r=e.headers.get("X-Remix-Redirect"),n={},a=e.headers.get("X-Remix-Revalidate");a&&(n["X-Remix-Revalidate"]=a);let i=e.headers.get("X-Remix-Reload-Document");i&&(n["X-Remix-Reload-Document"]=i);let s=e.headers.get("X-Remix-Replace");return s&&(n["X-Remix-Replace"]=s),ve(r,{status:t,headers:n})}function je(e){if(e.default==null)return;if(!(typeof e.default=="object"&&Object.keys(e.default).length===0))return e.default}function ir(e,t,r){return r&&e.id!=="root"||t.clientLoader!=null&&(t.clientLoader.hydrate===!0||e.hasLoader!==!0)}/**
 * @remix-run/react v2.13.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */const H=new Set,or=1e3,U=new Set,lr=7680;function ae(e,t){return e.v3_lazyRouteDiscovery===!0&&!t}function sr(e,t){let r=new Set(t.state.matches.map(s=>s.route.id)),n=t.state.location.pathname.split("/").filter(Boolean),a=["/"];for(n.pop();n.length>0;)a.push(`/${n.join("/")}`),n.pop();a.forEach(s=>{let l=ge(t.routes,s,t.basename);l&&l.forEach(o=>r.add(o.route.id))});let i=[...r].reduce((s,l)=>Object.assign(s,{[l]:e.routes[l]}),{});return{...e,routes:i}}function kr(e,t,r,n,a){if(ae(r,n))return async({path:i,patch:s})=>{U.has(i)||await Fe([i],e,t,r,n,a,s)}}function Dr(e,t,r,n,a){u.useEffect(()=>{var i;if(!ae(n,a)||((i=navigator.connection)===null||i===void 0?void 0:i.saveData)===!0)return;function s(f){let h=f.tagName==="FORM"?f.getAttribute("action"):f.getAttribute("href");if(!h)return;let y=new URL(h,window.location.origin);U.has(y.pathname)||H.add(y.pathname)}async function l(){let f=Array.from(H.keys()).filter(h=>U.has(h)?(H.delete(h),!1):!0);if(f.length!==0)try{await Fe(f,t,r,n,a,e.basename,e.patchRoutes)}catch(h){console.error("Failed to fetch manifest patches",h)}}document.body.querySelectorAll("a[data-discover], form[data-discover]").forEach(f=>s(f)),l();let o=cr(l,100);function d(f){return f.nodeType===Node.ELEMENT_NODE}let m=new MutationObserver(f=>{let h=new Set;f.forEach(y=>{[y.target,...y.addedNodes].forEach(c=>{d(c)&&((c.tagName==="A"&&c.getAttribute("data-discover")||c.tagName==="FORM"&&c.getAttribute("data-discover"))&&h.add(c),c.tagName!=="A"&&c.querySelectorAll("a[data-discover], form[data-discover]").forEach(g=>h.add(g)))})}),h.forEach(y=>s(y)),o()});return m.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-discover","href","action"]}),()=>m.disconnect()},[n,a,t,r,e])}async function Fe(e,t,r,n,a,i,s){let l=`${i??"/"}/__manifest`.replace(/\/+/g,"/"),o=new URL(l,window.location.origin);if(e.sort().forEach(c=>o.searchParams.append("p",c)),o.searchParams.set("version",t.version),o.toString().length>lr){H.clear();return}let d=await fetch(o);if(d.ok){if(d.status>=400)throw new Error(await d.text())}else throw new Error(`${d.status} ${d.statusText}`);let m=await d.json(),f=new Set(Object.keys(t.routes)),h=Object.values(m).reduce((c,g)=>f.has(g.id)?c:Object.assign(c,{[g.id]:g}),{});Object.assign(t.routes,h),e.forEach(c=>ur(c,U));let y=new Set;Object.values(h).forEach(c=>{(!c.parentId||!h[c.parentId])&&y.add(c.parentId)}),y.forEach(c=>s(c||null,ne(h,r,null,n,a,c)))}function ur(e,t){if(t.size>=or){let r=t.values().next().value;t.delete(r)}t.add(e)}function cr(e,t){let r;return(...n)=>{window.clearTimeout(r),r=window.setTimeout(()=>e(...n),t)}}function Ie(){let e=u.useContext(et);return k(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function X(){let e=u.useContext(tt);return k(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}const He=u.createContext(void 0);He.displayName="Remix";function C(){let e=u.useContext(He);return k(e,"You must render this element inside a <Remix> element"),e}function Me(e,t){let[r,n]=u.useState(!1),[a,i]=u.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:o,onMouseLeave:d,onTouchStart:m}=t,f=u.useRef(null);u.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let c=x=>{x.forEach(v=>{i(v.isIntersecting)})},g=new IntersectionObserver(c,{threshold:.5});return f.current&&g.observe(f.current),()=>{g.disconnect()}}},[e]);let h=()=>{e==="intent"&&n(!0)},y=()=>{e==="intent"&&(n(!1),i(!1))};return u.useEffect(()=>{if(r){let c=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(c)}}},[r]),[a,f,{onFocus:A(s,h),onBlur:A(l,y),onMouseEnter:A(o,h),onMouseLeave:A(d,y),onTouchStart:A(m,h)}]}const ie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function oe(e,t,r){return e==="render"&&!t&&!r?"true":void 0}let dr=u.forwardRef(({to:e,prefetch:t="none",discover:r="render",...n},a)=>{let i=typeof e=="string"&&ie.test(e),s=Ee(e),[l,o,d]=Me(t,n);return u.createElement(u.Fragment,null,u.createElement(lt,L({},n,d,{ref:Je(a,o),to:e,"data-discover":oe(r,i,n.reloadDocument)})),l&&!i?u.createElement(se,{page:s}):null)});dr.displayName="NavLink";let fr=u.forwardRef(({to:e,prefetch:t="none",discover:r="render",...n},a)=>{let i=typeof e=="string"&&ie.test(e),s=Ee(e),[l,o,d]=Me(t,n);return u.createElement(u.Fragment,null,u.createElement(at,L({},n,d,{ref:Je(a,o),to:e,"data-discover":oe(r,i,n.reloadDocument)})),l&&!i?u.createElement(se,{page:s}):null)});fr.displayName="Link";let hr=u.forwardRef(({discover:e="render",...t},r)=>{let n=typeof t.action=="string"&&ie.test(t.action);return u.createElement(it,L({},t,{ref:r,"data-discover":oe(e,n,t.reloadDocument)}))});hr.displayName="Form";function A(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function le(e,t,r){if(r&&!M)return[e[0]];if(t){let n=e.findIndex(a=>t[a.route.id]!==void 0);return e.slice(0,n+1)}return e}function Pr(){let{isSpaMode:e,manifest:t,routeModules:r,criticalCss:n}=C(),{errors:a,matches:i}=X(),s=le(i,a,e),l=u.useMemo(()=>kt(s,r,t),[s,r,t]);return u.createElement(u.Fragment,null,n?u.createElement("style",{dangerouslySetInnerHTML:{__html:n}}):null,l.map(({key:o,link:d})=>Z(d)?u.createElement(se,L({key:o},d)):u.createElement("link",L({key:o},d))))}function se({page:e,...t}){let{router:r}=Ie(),n=u.useMemo(()=>ge(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?u.createElement(yr,L({page:e,matches:n},t)):(console.warn(`Tried to prefetch ${e} but no routes matched.`),null)}function mr(e){let{manifest:t,routeModules:r}=C(),[n,a]=u.useState([]);return u.useEffect(()=>{let i=!1;return Nt(e,t,r).then(s=>{i||a(s)}),()=>{i=!0}},[e,t,r]),n}function yr({page:e,matches:t,...r}){let n=Se(),{future:a,manifest:i,routeModules:s}=C(),{loaderData:l,matches:o}=X(),d=u.useMemo(()=>ce(e,t,o,i,n,"data"),[e,t,o,i,n]),m=u.useMemo(()=>{if(!a.v3_singleFetch)return Ct(e,d,i);if(e===n.pathname+n.search+n.hash)return[];let c=new Set,g=!1;if(t.forEach(v=>{var b;i.routes[v.route.id].hasLoader&&(!d.some(S=>S.route.id===v.route.id)&&v.route.id in l&&(b=s[v.route.id])!==null&&b!==void 0&&b.shouldRevalidate||i.routes[v.route.id].hasClientLoader?g=!0:c.add(v.route.id))}),c.size===0)return[];let x=B(e);return g&&c.size>0&&x.searchParams.set("_routes",t.filter(v=>c.has(v.route.id)).map(v=>v.route.id).join(",")),[x.pathname+x.search]},[a.v3_singleFetch,l,n,i,d,t,e,s]),f=u.useMemo(()=>ce(e,t,o,i,n,"assets"),[e,t,o,i,n]),h=u.useMemo(()=>Tt(f,i),[f,i]),y=mr(f);return u.createElement(u.Fragment,null,m.map(c=>u.createElement("link",L({key:c,rel:"prefetch",as:"fetch",href:c},r))),h.map(c=>u.createElement("link",L({key:c,rel:"modulepreload",href:c},r))),y.map(({key:c,link:g})=>u.createElement("link",L({key:c},g))))}function Nr(){let{isSpaMode:e,routeModules:t}=C(),{errors:r,matches:n,loaderData:a}=X(),i=Se(),s=le(n,r,e),l=null;r&&(l=r[s[s.length-1].route.id]);let o=[],d=null,m=[];for(let f=0;f<s.length;f++){let h=s[f],y=h.route.id,c=a[y],g=h.params,x=t[y],v=[],b={id:y,data:c,meta:[],params:h.params,pathname:h.pathname,handle:h.route.handle,error:l};if(m[f]=b,x!=null&&x.meta?v=typeof x.meta=="function"?x.meta({data:c,params:g,location:i,matches:m,error:l}):Array.isArray(x.meta)?[...x.meta]:x.meta:d&&(v=[...d]),v=v||[],!Array.isArray(v))throw new Error("The route at "+h.route.path+` returns an invalid value. All route meta functions must return an array of meta objects.

To reference the meta function API, see https://remix.run/route/meta`);b.meta=v,m[f]=b,o=[...v],d=o}return u.createElement(u.Fragment,null,o.flat().map(f=>{if(!f)return null;if("tagName"in f){let{tagName:h,...y}=f;if(!pr(h))return console.warn(`A meta object uses an invalid tagName: ${h}. Expected either 'link' or 'meta'`),null;let c=h;return u.createElement(c,L({key:JSON.stringify(y)},y))}if("title"in f)return u.createElement("title",{key:"title"},String(f.title));if("charset"in f&&(f.charSet??(f.charSet=f.charset),delete f.charset),"charSet"in f&&f.charSet!=null)return typeof f.charSet=="string"?u.createElement("meta",{key:"charSet",charSet:f.charSet}):null;if("script:ld+json"in f)try{let h=JSON.stringify(f["script:ld+json"]);return u.createElement("script",{key:`script:ld+json:${h}`,type:"application/ld+json",dangerouslySetInnerHTML:{__html:h}})}catch{return null}return u.createElement("meta",L({key:JSON.stringify(f)},f))}))}function pr(e){return typeof e=="string"&&/^(meta|link)$/.test(e)}function wr(e){return u.createElement(Ge,e)}let M=!1;function vr(e){let{manifest:t,serverHandoffString:r,abortDelay:n,serializeError:a,isSpaMode:i,future:s,renderMeta:l}=C(),{router:o,static:d,staticContext:m}=Ie(),{matches:f}=X(),h=ae(s,i);l&&(l.didRenderScripts=!0);let y=le(f,null,i);u.useEffect(()=>{M=!0},[]);let c=(p,R)=>{let _;return a&&R instanceof Error?_=a(R):_=R,`${JSON.stringify(p)}:__remixContext.p(!1, ${$(JSON.stringify(_))})`},g=(p,R,_)=>{let O;try{O=JSON.stringify(_)}catch(T){return c(R,T)}return`${JSON.stringify(R)}:__remixContext.p(${$(O)})`},x=(p,R,_)=>{let O;return a&&_ instanceof Error?O=a(_):O=_,`__remixContext.r(${JSON.stringify(p)}, ${JSON.stringify(R)}, !1, ${$(JSON.stringify(O))})`},v=(p,R,_)=>{let O;try{O=JSON.stringify(_)}catch(T){return x(p,R,T)}return`__remixContext.r(${JSON.stringify(p)}, ${JSON.stringify(R)}, ${$(O)})`},b=[],S=u.useMemo(()=>{var p;let R=s.v3_singleFetch?"window.__remixContext.stream = new ReadableStream({start(controller){window.__remixContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());":"",_=m?`window.__remixContext = ${r};${R}`:" ",O=s.v3_singleFetch||m==null?void 0:m.activeDeferreds;_+=O?["__remixContext.p = function(v,e,p,x) {","  if (typeof e !== 'undefined') {",`    x=new Error("Unexpected Server Error");
    x.stack=undefined;`,"    p=Promise.reject(x);","  } else {","    p=Promise.resolve(v);","  }","  return p;","};","__remixContext.n = function(i,k) {","  __remixContext.t = __remixContext.t || {};","  __remixContext.t[i] = __remixContext.t[i] || {};","  let p = new Promise((r, e) => {__remixContext.t[i][k] = {r:(v)=>{r(v);},e:(v)=>{e(v);}};});",typeof n=="number"?`setTimeout(() => {if(typeof p._error !== "undefined" || typeof p._data !== "undefined"){return;} __remixContext.t[i][k].e(new Error("Server timeout."))}, ${n});`:"","  return p;","};","__remixContext.r = function(i,k,v,e,p,x) {","  p = __remixContext.t[i][k];","  if (typeof e !== 'undefined') {",`    x=new Error("Unexpected Server Error");
    x.stack=undefined;`,"    p.e(x);","  } else {","    p.r(v);","  }","};"].join(`
`)+Object.entries(O).map(([D,P])=>{let Ue=new Set(P.pendingKeys),ze=P.deferredKeys.map(N=>{if(Ue.has(N))return b.push(u.createElement(ye,{key:`${D} | ${N}`,deferredData:P,routeId:D,dataKey:N,scriptProps:e,serializeData:v,serializeError:x})),`${JSON.stringify(N)}:__remixContext.n(${JSON.stringify(D)}, ${JSON.stringify(N)})`;{let Y=P.data[N];return typeof Y._error<"u"?c(N,Y._error):g(D,N,Y._data)}}).join(`,
`);return`Object.assign(__remixContext.state.loaderData[${JSON.stringify(D)}], {${ze}});`}).join(`
`)+(b.length>0?`__remixContext.a=${b.length};`:""):"";let T=d?`${(p=t.hmr)!==null&&p!==void 0&&p.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${h?"":`import ${JSON.stringify(t.url)}`};
${y.map((D,P)=>`import * as route${P} from ${JSON.stringify(t.routes[D.route.id].module)};`).join(`
`)}
${h?`window.__remixManifest = ${JSON.stringify(sr(t,o),null,2)};`:""}
window.__remixRouteModules = {${y.map((D,P)=>`${JSON.stringify(D.route.id)}:route${P}`).join(",")}};

import(${JSON.stringify(t.entry.module)});`:" ";return u.createElement(u.Fragment,null,u.createElement("script",L({},e,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:de(_),type:void 0})),u.createElement("script",L({},e,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:de(T),type:"module",async:!0})))},[]);if(!d&&typeof __remixContext=="object"&&__remixContext.a)for(let p=0;p<__remixContext.a;p++)b.push(u.createElement(ye,{key:p,scriptProps:e,serializeData:v,serializeError:x}));let w=y.map(p=>{let R=t.routes[p.route.id];return(R.imports||[]).concat([R.module])}).flat(1),E=M?[]:t.entry.imports.concat(w);return M?null:u.createElement(u.Fragment,null,h?null:u.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin}),u.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin}),Er(E).map(p=>u.createElement("link",{key:p,rel:"modulepreload",href:p,crossOrigin:e.crossOrigin})),S,b)}function ye({dataKey:e,deferredData:t,routeId:r,scriptProps:n,serializeData:a,serializeError:i}){return typeof document>"u"&&t&&e&&r&&k(t.pendingKeys.includes(e),`Deferred data for route ${r} with key ${e} was not pending but tried to render a script for it.`),u.createElement(u.Suspense,{fallback:typeof document>"u"&&t&&e&&r?null:u.createElement("script",L({},n,{async:!0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:" "}}))},typeof document>"u"&&t&&e&&r?u.createElement(wr,{resolve:t.data[e],errorElement:u.createElement(gr,{dataKey:e,routeId:r,scriptProps:n,serializeError:i}),children:s=>u.createElement("script",L({},n,{async:!0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:a(r,e,s)}}))}):u.createElement("script",L({},n,{async:!0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:" "}})))}function gr({dataKey:e,routeId:t,scriptProps:r,serializeError:n}){let a=nt();return u.createElement("script",L({},r,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:n(t,e,a)}}))}function Er(e){return[...new Set(e)]}function Cr(){return rt()}function Tr(){return Qe()}function Ar(e){return Ze(e)}function $r(){return qe()}function jr(e={}){return ot(e)}const Fr=()=>null;function Je(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}export{wr as A,hr as F,fr as L,Nr as M,dr as N,se as P,He as R,Wt as S,L as _,jr as a,C as b,Ar as c,$r as d,Or as e,Zt as f,ne as g,_r as h,k as i,kr as j,Dr as k,Lr as l,Cr as m,er as n,Pr as o,Fr as p,vr as q,br as r,ir as s,Tr as u};
//# sourceMappingURL=components-n14sJ-xI.js.map
