2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!R._hasLoadedGA){var q=document.createElement("script");q.async=!0,q.src="".concat(F,"?id=").concat(P),H&&q.setAttribute("nonce",H),document.body.appendChild(q),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},R._hasLoadedGA=!0}}),M(this,"_toGtagOptions",function(P){if(P){var H={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},F=Object.entries(P).reduce(function(q,V){var X=b(V,2),G=X[0],J=X[1];return H[G]?q[H[G]]=J:q[G]=J,q},{});return F}}),M(this,"initialize",function(P){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!P)throw new Error("Require GA_MEASUREMENT_ID");var F=typeof P=="string"?[{trackingId:P}]:P;R._currentMeasurementId=F[0].trackingId;var q=H.gaOptions,V=H.gtagOptions,X=H.nonce,G=H.testMode,J=G===void 0?!1:G,te=H.gtagUrl;if(R._testMode=J,J||R._loadGA(R._currentMeasurementId,X,te),R.isInitialized||(R._gtag("js",new Date),F.forEach(function(ae){var le=g(g(g({},R._toGtagOptions(g(g({},q),ae.gaOptions))),V),ae.gtagOptions);Object.keys(le).length?R._gtag("config",ae.trackingId,le):R._gtag("config",ae.trackingId)})),R.isInitialized=!0,!J){var re=c(R._queueGtag);for(R._queueGtag=[],R._isQueuing=!1;re.length;){var Q=re.shift();R._gtag.apply(R,c(Q)),Q[0]==="get"&&(R._isQueuing=!0)}}}),M(this,"set",function(P){if(!P){console.warn("`fieldsObject` is required in .set()");return}if(u(P)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(P).length===0&&console.warn("empty `fieldsObject` given to .set()"),R._gaCommand("set",P)}),M(this,"_gaCommandSendEvent",function(P,H,F,q,V){R._gtag("event",H,g(g({event_category:P,event_label:F,value:q},V&&{non_interaction:V.nonInteraction}),R._toGtagOptions(V)))}),M(this,"_gaCommandSendEventParameters",function(){for(var P=arguments.length,H=new Array(P),F=0;F1?H-1:0),q=1;q"u")throw new Error(t)}function X6(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tmt(){return Math.random().toString(36).substr(2,8)}function Cye(e,t){return{usr:e.state,key:e.key,idx:t}}function AA(e,t,n,r){return n===void 0&&(n=null),ua({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?om(t):t,{state:n,key:t&&t.key||r||tmt()})}function C4(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function om(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function nmt(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=Ks.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(ua({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){s=Ks.Pop;let b=c(),m=b==null?null:b-u;u=b,l&&l({action:s,location:g.location,delta:m})}function d(b,m){s=Ks.Push;let v=AA(g.location,b,m);n&&n(v,b),u=c()+1;let w=Cye(v,u),k=g.createHref(v);try{o.pushState(w,"",k)}catch{i.location.assign(k)}a&&l&&l({action:s,location:g.location,delta:1})}function h(b,m){s=Ks.Replace;let v=AA(g.location,b,m);n&&n(v,b),u=c();let w=Cye(v,u),k=g.createHref(v);o.replaceState(w,"",k),a&&l&&l({action:s,location:g.location,delta:0})}function p(b){let m=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof b=="string"?b:C4(b);return Si(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let g={get action(){return s},get location(){return e(i,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(_ye,f),l=b,()=>{i.removeEventListener(_ye,f),l=null}},createHref(b){return t(i,b)},createURL:p,encodeLocation(b){let m=p(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:h,go(b){return o.go(b)}};return g}var xl;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(xl||(xl={}));const rmt=new Set(["lazy","caseSensitive","path","id","index","children"]);function imt(e){return e.index===!0}function wze(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if(Si(i.index!==!0||!i.children,"Cannot specify children on an index route"),Si(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),imt(i)){let l=ua({},i,{hasErrorBoundary:t(i),id:s});return r[s]=l,l}else{let l=ua({},i,{id:s,hasErrorBoundary:t(i),children:void 0});return r[s]=l,i.children&&(l.children=wze(i.children,t,o,r)),l}})}function Vk(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?om(t):t,i=AN(r.pathname||"/",n);if(i==null)return null;let a=kze(e);amt(a);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Si(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Hv([r,l.relativePath]),c=n.concat(l);a.children&&a.children.length>0&&(Si(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),kze(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:dmt(u,a.index),routesMeta:c})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of _ze(a.path))i(a,o,l)}),t}function _ze(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=_ze(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function amt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hmt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const omt=/^:\w+$/,smt=3,lmt=2,umt=1,cmt=10,fmt=-2,Eye=e=>e==="*";function dmt(e,t){let n=e.split("/"),r=n.length;return n.some(Eye)&&(r+=fmt),t&&(r+=lmt),n.filter(i=>!Eye(i)).reduce((i,a)=>i+(omt.test(a)?smt:a===""?umt:cmt),r)}function hmt(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function pmt(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(c==="*"){let d=s[f]||"";o=a.slice(0,a.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=ymt(s[f]||"",c),u},{}),pathname:a,pathnameBase:o,pattern:e}}function mmt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),X6(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function vmt(e){try{return decodeURI(e)}catch(t){return X6(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ymt(e,t){try{return decodeURIComponent(e)}catch(n){return X6(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function AN(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function bmt(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?om(e):e;return{pathname:n?n.startsWith("/")?n:wmt(n,t):t,search:_mt(r),hash:Cmt(i)}}function wmt(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function tq(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ufe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Cze(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=om(e):(i=ua({},e),Si(!i.pathname||!i.pathname.includes("?"),tq("?","pathname","search",i)),Si(!i.pathname||!i.pathname.includes("#"),tq("#","pathname","hash",i)),Si(!i.search||!i.search.includes("#"),tq("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let f=t.length-1;if(o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=bmt(i,s),u=o&&o!=="/"&&o.endsWith("/"),c=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Hv=e=>e.join("/").replace(/\/\/+/g,"/"),kmt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_mt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Cmt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class xye extends Error{}class Emt{constructor(t,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],Si(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((a,o)=>r=o),this.controller=new AbortController;let i=()=>r(new xye("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",i),this.controller.signal.addEventListener("abort",i),this.data=Object.entries(t).reduce((a,o)=>{let[s,l]=o;return Object.assign(a,{[s]:this.trackPromise(s,l)})},{}),this.done&&this.unlistenAbortSignal(),this.init=n}trackPromise(t,n){if(!(n instanceof Promise))return n;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let r=Promise.race([n,this.abortPromise]).then(i=>this.onSettle(r,t,null,i),i=>this.onSettle(r,t,i));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(t,n,r,i){return this.controller.signal.aborted&&r instanceof xye?(this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>r}),Promise.reject(r)):(this.pendingKeysSet.delete(n),this.done&&this.unlistenAbortSignal(),r?(Object.defineProperty(t,"_error",{get:()=>r}),this.emit(!1,n),Promise.reject(r)):(Object.defineProperty(t,"_data",{get:()=>i}),this.emit(!1,n),i))}emit(t,n){this.subscribers.forEach(r=>r(t,n))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,n)=>this.pendingKeysSet.delete(n)),this.emit(!0)}async resolveData(t){let n=!1;if(!this.done){let r=()=>this.cancel();t.addEventListener("abort",r),n=await new Promise(i=>{this.subscribe(a=>{t.removeEventListener("abort",r),(a||this.done)&&i(a)})})}return n}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return Si(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,n)=>{let[r,i]=n;return Object.assign(t,{[r]:Smt(i)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function xmt(e){return e instanceof Promise&&e._tracked===!0}function Smt(e){if(!xmt(e))return e;if(e._error)throw e._error;return e._data}class cfe{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Eze(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const xze=["post","put","patch","delete"],Amt=new Set(xze),Tmt=["get",...xze],Dmt=new Set(Tmt),Imt=new Set([301,302,303,307,308]),Rmt=new Set([307,308]),nq={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Mmt={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Sye={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Sze=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Aze=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Omt=!Aze,Lmt=e=>!!e.hasErrorBoundary;function Bmt(e){Si(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=e.detectErrorBoundary||Lmt,n={},r=wze(e.routes,t,void 0,n),i,a=null,o=new Set,s=null,l=null,u=null,c=e.hydrationData!=null,f=Vk(r,e.history.location,e.basename),d=null;if(f==null){let ye=mp(404,{pathname:e.history.location.pathname}),{matches:fe,route:de}=Mye(r);f=fe,d={[de.id]:ye}}let h=!f.some(ye=>ye.route.lazy)&&(!f.some(ye=>ye.route.loader)||e.hydrationData!=null),p,g={historyAction:e.history.action,location:e.history.location,matches:f,initialized:h,navigation:nq,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||d,fetchers:new Map,blockers:new Map},b=Ks.Pop,m=!1,v,w=!1,k=!1,E=[],S=[],T=new Map,L=0,M=-1,D=new Map,I=new Set,B=new Map,N=new Map,O=new Map,R=!1;function P(){if(a=e.history.listen(de=>{let{action:xe,location:Ye,delta:Ze}=de;if(R){R=!1;return}X6(O.size===0||Ze!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let st=Ie({currentLocation:g.location,nextLocation:Ye,historyAction:xe});if(st&&Ze!=null){R=!0,e.history.go(Ze*-1),De(st,{state:"blocked",location:Ye,proceed(){De(st,{state:"proceeding",proceed:void 0,reset:void 0,location:Ye}),e.history.go(Ze)},reset(){$e(st),q({blockers:new Map(p.state.blockers)})}});return}return J(xe,Ye)}),g.initialized)return p;let ye=g.matches.filter(de=>de.route.lazy);if(ye.length===0)return J(Ks.Pop,g.location),p;let fe=ye.map(de=>iae(de.route,t,n));return Promise.all(fe).then(()=>{!g.matches.some(xe=>xe.route.loader)||e.hydrationData!=null?q({initialized:!0}):J(Ks.Pop,g.location)}),p}function H(){a&&a(),o.clear(),v&&v.abort(),g.fetchers.forEach((ye,fe)=>ce(fe)),g.blockers.forEach((ye,fe)=>$e(fe))}function F(ye){return o.add(ye),()=>o.delete(ye)}function q(ye){g=ua({},g,ye),o.forEach(fe=>fe(g))}function V(ye,fe){var de,xe;let Ye=g.actionData!=null&&g.navigation.formMethod!=null&&lg(g.navigation.formMethod)&&g.navigation.state==="loading"&&((de=ye.state)==null?void 0:de._isRedirect)!==!0,Ze;fe.actionData?Object.keys(fe.actionData).length>0?Ze=fe.actionData:Ze=null:Ye?Ze=g.actionData:Ze=null;let st=fe.loaderData?Rye(g.loaderData,fe.loaderData,fe.matches||[],fe.errors):g.loaderData;for(let[rt]of O)$e(rt);let at=m===!0||g.navigation.formMethod!=null&&lg(g.navigation.formMethod)&&((xe=ye.state)==null?void 0:xe._isRedirect)!==!0;i&&(r=i,i=void 0),q(ua({},fe,{actionData:Ze,loaderData:st,historyAction:b,location:ye,initialized:!0,navigation:nq,revalidation:"idle",restoreScrollPosition:Oe(ye,fe.matches||g.matches),preventScrollReset:at,blockers:new Map(g.blockers)})),w||b===Ks.Pop||(b===Ks.Push?e.history.push(ye,ye.state):b===Ks.Replace&&e.history.replace(ye,ye.state)),b=Ks.Pop,m=!1,w=!1,k=!1,E=[],S=[]}async function X(ye,fe){if(typeof ye=="number"){e.history.go(ye);return}let{path:de,submission:xe,error:Ye}=Aye(ye,fe),Ze=g.location,st=AA(g.location,de,fe&&fe.state);st=ua({},st,e.history.encodeLocation(st));let at=fe&&fe.replace!=null?fe.replace:void 0,rt=Ks.Push;at===!0?rt=Ks.Replace:at===!1||xe!=null&&lg(xe.formMethod)&&xe.formAction===g.location.pathname+g.location.search&&(rt=Ks.Replace);let et=fe&&"preventScrollReset"in fe?fe.preventScrollReset===!0:void 0,Ot=Ie({currentLocation:Ze,nextLocation:st,historyAction:rt});if(Ot){De(Ot,{state:"blocked",location:st,proceed(){De(Ot,{state:"proceeding",proceed:void 0,reset:void 0,location:st}),X(ye,fe)},reset(){$e(Ot),q({blockers:new Map(g.blockers)})}});return}return await J(rt,st,{submission:xe,pendingError:Ye,preventScrollReset:et,replace:fe&&fe.replace})}function G(){if(ue(),q({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){J(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}J(b||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation})}}async function J(ye,fe,de){v&&v.abort(),v=null,b=ye,w=(de&&de.startUninterruptedRevalidation)===!0,je(g.location,g.matches),m=(de&&de.preventScrollReset)===!0;let xe=i||r,Ye=de&&de.overrideNavigation,Ze=Vk(xe,fe,e.basename);if(!Ze){let xt=mp(404,{pathname:fe.pathname}),{matches:pt,route:_t}=Mye(xe);Be(),V(fe,{matches:pt,loaderData:{},errors:{[_t.id]:xt}});return}if(zmt(g.location,fe)&&!(de&&de.submission&&lg(de.submission.formMethod))){V(fe,{matches:Ze});return}v=new AbortController;let st=D5(e.history,fe,v.signal,de&&de.submission),at,rt;if(de&&de.pendingError)rt={[Kk(Ze).route.id]:de.pendingError};else if(de&&de.submission&&lg(de.submission.formMethod)){let xt=await te(st,fe,de.submission,Ze,{replace:de.replace});if(xt.shortCircuited)return;at=xt.pendingActionData,rt=xt.pendingActionError,Ye=ua({state:"loading",location:fe},de.submission),st=new Request(st.url,{signal:st.signal})}let{shortCircuited:et,loaderData:Ot,errors:jt}=await re(st,fe,Ze,Ye,de&&de.submission,de&&de.replace,at,rt);et||(v=null,V(fe,ua({matches:Ze},at?{actionData:at}:{},{loaderData:Ot,errors:jt})))}async function te(ye,fe,de,xe,Ye){ue();let Ze=ua({state:"submitting",location:fe},de);q({navigation:Ze});let st,at=aae(xe,fe);if(!at.route.action&&!at.route.lazy)st={type:xl.error,error:mp(405,{method:ye.method,pathname:fe.pathname,routeId:at.route.id})};else if(st=await T5("action",ye,at,xe,n,t,p.basename),ye.signal.aborted)return{shortCircuited:!0};if(p6(st)){let rt;return Ye&&Ye.replace!=null?rt=Ye.replace:rt=st.location===g.location.pathname+g.location.search,await ee(g,st,{submission:de,replace:rt}),{shortCircuited:!0}}if(vS(st)){let rt=Kk(xe,at.route.id);return(Ye&&Ye.replace)!==!0&&(b=Ks.Push),{pendingActionData:{},pendingActionError:{[rt.route.id]:st.error}}}if(Wb(st))throw mp(400,{type:"defer-action"});return{pendingActionData:{[at.route.id]:st.data}}}async function re(ye,fe,de,xe,Ye,Ze,st,at){let rt=xe;rt||(rt=ua({state:"loading",location:fe,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Ye));let et=Ye||(rt.formMethod&&rt.formAction&&rt.formData&&rt.formEncType?{formMethod:rt.formMethod,formAction:rt.formAction,formData:rt.formData,formEncType:rt.formEncType}:void 0),Ot=i||r,[jt,xt]=Tye(e.history,g,de,et,fe,k,E,S,B,Ot,e.basename,st,at);if(Be(vn=>!(de&&de.some($t=>$t.route.id===vn))||jt&&jt.some($t=>$t.route.id===vn)),jt.length===0&&xt.length===0)return V(fe,ua({matches:de,loaderData:{},errors:at||null},st?{actionData:st}:{})),{shortCircuited:!0};if(!w){xt.forEach($t=>{let Tt=g.fetchers.get($t.key),Wt={state:"loading",data:Tt&&Tt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set($t.key,Wt)});let vn=st||g.actionData;q(ua({navigation:rt},vn?Object.keys(vn).length===0?{actionData:null}:{actionData:vn}:{},xt.length>0?{fetchers:new Map(g.fetchers)}:{}))}M=++L,xt.forEach(vn=>T.set(vn.key,v));let{results:pt,loaderResults:_t,fetcherResults:ht}=await ne(g.matches,de,jt,xt,ye);if(ye.signal.aborted)return{shortCircuited:!0};xt.forEach(vn=>T.delete(vn.key));let yt=Oye(pt);if(yt)return await ee(g,yt,{replace:Ze}),{shortCircuited:!0};let{loaderData:Lt,errors:on}=Iye(g,de,jt,_t,at,xt,ht,N);N.forEach((vn,$t)=>{vn.subscribe(Tt=>{(Tt||vn.done)&&N.delete($t)})}),ve();let Ht=ie(M);return ua({loaderData:Lt,errors:on},Ht||xt.length>0?{fetchers:new Map(g.fetchers)}:{})}function Q(ye){return g.fetchers.get(ye)||Mmt}function ae(ye,fe,de,xe){if(Omt)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");T.has(ye)&&be(ye);let Ze=Vk(i||r,de,e.basename);if(!Ze){Ae(ye,fe,mp(404,{pathname:de}));return}let{path:st,submission:at}=Aye(de,xe,!0),rt=aae(Ze,st);if(m=(xe&&xe.preventScrollReset)===!0,at&&lg(at.formMethod)){le(ye,fe,st,rt,Ze,at);return}B.set(ye,{routeId:fe,path:st}),oe(ye,fe,st,rt,Ze,at)}async function le(ye,fe,de,xe,Ye,Ze){if(ue(),B.delete(ye),!xe.route.action&&!xe.route.lazy){let gn=mp(405,{method:Ze.formMethod,pathname:de,routeId:fe});Ae(ye,fe,gn);return}let st=g.fetchers.get(ye),at=ua({state:"submitting"},Ze,{data:st&&st.data," _hasFetcherDoneAnything ":!0});g.fetchers.set(ye,at),q({fetchers:new Map(g.fetchers)});let rt=new AbortController,et=D5(e.history,de,rt.signal,Ze);T.set(ye,rt);let Ot=await T5("action",et,xe,Ye,n,t,p.basename);if(et.signal.aborted){T.get(ye)===rt&&T.delete(ye);return}if(p6(Ot)){T.delete(ye),I.add(ye);let gn=ua({state:"loading"},Ze,{data:void 0," _hasFetcherDoneAnything ":!0});return g.fetchers.set(ye,gn),q({fetchers:new Map(g.fetchers)}),ee(g,Ot,{isFetchActionRedirect:!0})}if(vS(Ot)){Ae(ye,fe,Ot.error);return}if(Wb(Ot))throw mp(400,{type:"defer-action"});let jt=g.navigation.location||g.location,xt=D5(e.history,jt,rt.signal),pt=i||r,_t=g.navigation.state!=="idle"?Vk(pt,g.navigation.location,e.basename):g.matches;Si(_t,"Didn't find any matches after fetcher action");let ht=++L;D.set(ye,ht);let yt=ua({state:"loading",data:Ot.data},Ze,{" _hasFetcherDoneAnything ":!0});g.fetchers.set(ye,yt);let[Lt,on]=Tye(e.history,g,_t,Ze,jt,k,E,S,B,pt,e.basename,{[xe.route.id]:Ot.data},void 0);on.filter(gn=>gn.key!==ye).forEach(gn=>{let In=gn.key,Wn=g.fetchers.get(In),yn={state:"loading",data:Wn&&Wn.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(In,yn),T.set(In,rt)}),q({fetchers:new Map(g.fetchers)});let{results:Ht,loaderResults:vn,fetcherResults:$t}=await ne(g.matches,_t,Lt,on,xt);if(rt.signal.aborted)return;D.delete(ye),T.delete(ye),on.forEach(gn=>T.delete(gn.key));let Tt=Oye(Ht);if(Tt)return ee(g,Tt);let{loaderData:Wt,errors:Ut}=Iye(g,g.matches,Lt,vn,void 0,on,$t,N),en={state:"idle",data:Ot.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(ye,en);let Gt=ie(ht);g.navigation.state==="loading"&&ht>M?(Si(b,"Expected pending action"),v&&v.abort(),V(g.navigation.location,{matches:_t,loaderData:Wt,errors:Ut,fetchers:new Map(g.fetchers)})):(q(ua({errors:Ut,loaderData:Rye(g.loaderData,Wt,_t,Ut)},Gt?{fetchers:new Map(g.fetchers)}:{})),k=!1)}async function oe(ye,fe,de,xe,Ye,Ze){let st=g.fetchers.get(ye),at=ua({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Ze,{data:st&&st.data," _hasFetcherDoneAnything ":!0});g.fetchers.set(ye,at),q({fetchers:new Map(g.fetchers)});let rt=new AbortController,et=D5(e.history,de,rt.signal);T.set(ye,rt);let Ot=await T5("loader",et,xe,Ye,n,t,p.basename);if(Wb(Ot)&&(Ot=await Rze(Ot,et.signal,!0)||Ot),T.get(ye)===rt&&T.delete(ye),et.signal.aborted)return;if(p6(Ot)){await ee(g,Ot);return}if(vS(Ot)){let xt=Kk(g.matches,fe);g.fetchers.delete(ye),q({fetchers:new Map(g.fetchers),errors:{[xt.route.id]:Ot.error}});return}Si(!Wb(Ot),"Unhandled fetcher deferred data");let jt={state:"idle",data:Ot.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(ye,jt),q({fetchers:new Map(g.fetchers)})}async function ee(ye,fe,de){var xe;let{submission:Ye,replace:Ze,isFetchActionRedirect:st}=de===void 0?{}:de;fe.revalidate&&(k=!0);let at=AA(ye.location,fe.location,ua({_isRedirect:!0},st?{_isFetchActionRedirect:!0}:{}));if(Si(at,"Expected a location on the redirect navigation"),Sze.test(fe.location)&&Aze&&typeof((xe=window)==null?void 0:xe.location)<"u"){let pt=e.history.createURL(fe.location),_t=AN(pt.pathname,e.basename||"/")==null;if(window.location.origin!==pt.origin||_t){Ze?window.location.replace(fe.location):window.location.assign(fe.location);return}}v=null;let rt=Ze===!0?Ks.Replace:Ks.Push,{formMethod:et,formAction:Ot,formEncType:jt,formData:xt}=ye.navigation;!Ye&&et&&Ot&&xt&&jt&&(Ye={formMethod:et,formAction:Ot,formEncType:jt,formData:xt}),Rmt.has(fe.status)&&Ye&&lg(Ye.formMethod)?await J(rt,at,{submission:ua({},Ye,{formAction:fe.location}),preventScrollReset:m}):await J(rt,at,{overrideNavigation:{state:"loading",location:at,formMethod:Ye?Ye.formMethod:void 0,formAction:Ye?Ye.formAction:void 0,formEncType:Ye?Ye.formEncType:void 0,formData:Ye?Ye.formData:void 0},preventScrollReset:m})}async function ne(ye,fe,de,xe,Ye){let Ze=await Promise.all([...de.map(rt=>T5("loader",Ye,rt,fe,n,t,p.basename)),...xe.map(rt=>rt.matches&&rt.match?T5("loader",D5(e.history,rt.path,Ye.signal),rt.match,rt.matches,n,t,p.basename):{type:xl.error,error:mp(404,{pathname:rt.path})})]),st=Ze.slice(0,de.length),at=Ze.slice(de.length);return await Promise.all([Lye(ye,de,st,Ye.signal,!1,g.loaderData),Lye(ye,xe.map(rt=>rt.match),at,Ye.signal,!0)]),{results:Ze,loaderResults:st,fetcherResults:at}}function ue(){k=!0,E.push(...Be()),B.forEach((ye,fe)=>{T.has(fe)&&(S.push(fe),be(fe))})}function Ae(ye,fe,de){let xe=Kk(g.matches,fe);ce(ye),q({errors:{[xe.route.id]:de},fetchers:new Map(g.fetchers)})}function ce(ye){T.has(ye)&&be(ye),B.delete(ye),D.delete(ye),I.delete(ye),g.fetchers.delete(ye)}function be(ye){let fe=T.get(ye);Si(fe,"Expected fetch controller: "+ye),fe.abort(),T.delete(ye)}function ge(ye){for(let fe of ye){let xe={state:"idle",data:Q(fe).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(fe,xe)}}function ve(){let ye=[];for(let fe of I){let de=g.fetchers.get(fe);Si(de,"Expected fetcher: "+fe),de.state==="loading"&&(I.delete(fe),ye.push(fe))}ge(ye)}function ie(ye){let fe=[];for(let[de,xe]of D)if(xe0}function he(ye,fe){let de=g.blockers.get(ye)||Sye;return O.get(ye)!==fe&&O.set(ye,fe),de}function $e(ye){g.blockers.delete(ye),O.delete(ye)}function De(ye,fe){let de=g.blockers.get(ye)||Sye;Si(de.state==="unblocked"&&fe.state==="blocked"||de.state==="blocked"&&fe.state==="blocked"||de.state==="blocked"&&fe.state==="proceeding"||de.state==="blocked"&&fe.state==="unblocked"||de.state==="proceeding"&&fe.state==="unblocked","Invalid blocker state transition: "+de.state+" -> "+fe.state),g.blockers.set(ye,fe),q({blockers:new Map(g.blockers)})}function Ie(ye){let{currentLocation:fe,nextLocation:de,historyAction:xe}=ye;if(O.size===0)return;O.size>1&&X6(!1,"A router only supports one blocker at a time");let Ye=Array.from(O.entries()),[Ze,st]=Ye[Ye.length-1],at=g.blockers.get(Ze);if(!(at&&at.state==="proceeding")&&st({currentLocation:fe,nextLocation:de,historyAction:xe}))return Ze}function Be(ye){let fe=[];return N.forEach((de,xe)=>{(!ye||ye(xe))&&(de.cancel(),fe.push(xe),N.delete(xe))}),fe}function we(ye,fe,de){if(s=ye,u=fe,l=de||(xe=>xe.key),!c&&g.navigation===nq){c=!0;let xe=Oe(g.location,g.matches);xe!=null&&q({restoreScrollPosition:xe})}return()=>{s=null,u=null,l=null}}function je(ye,fe){if(s&&l&&u){let de=fe.map(Ye=>Bye(Ye,g.loaderData)),xe=l(ye,de)||ye.key;s[xe]=u()}}function Oe(ye,fe){if(s&&l&&u){let de=fe.map(Ze=>Bye(Ze,g.loaderData)),xe=l(ye,de)||ye.key,Ye=s[xe];if(typeof Ye=="number")return Ye}return null}function Re(ye){i=ye}return p={get basename(){return e.basename},get state(){return g},get routes(){return r},initialize:P,subscribe:F,enableScrollRestoration:we,navigate:X,fetch:ae,revalidate:G,createHref:ye=>e.history.createHref(ye),encodeLocation:ye=>e.history.encodeLocation(ye),getFetcher:Q,deleteFetcher:ce,dispose:H,getBlocker:he,deleteBlocker:$e,_internalFetchControllers:T,_internalActiveDeferreds:N,_internalSetRoutes:Re},p}function Pmt(e){return e!=null&&"formData"in e}function Aye(e,t,n){n===void 0&&(n=!1);let r=typeof e=="string"?e:C4(e);if(!t||!Pmt(t))return{path:r};if(t.formMethod&&!jmt(t.formMethod))return{path:r,error:mp(405,{method:t.formMethod})};let i;if(t.formData&&(i={formMethod:t.formMethod||"get",formAction:Ize(r),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData},lg(i.formMethod)))return{path:r,submission:i};let a=om(r),o=Dze(t.formData);return n&&a.search&&Mze(a.search)&&o.append("index",""),a.search="?"+o,{path:C4(a),submission:i}}function Fmt(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Tye(e,t,n,r,i,a,o,s,l,u,c,f,d){let h=d?Object.values(d)[0]:f?Object.values(f)[0]:void 0,p=e.createURL(t.location),g=e.createURL(i),b=a||p.toString()===g.toString()||p.search!==g.search,m=d?Object.keys(d)[0]:void 0,w=Fmt(n,m).filter((E,S)=>{if(E.route.lazy)return!0;if(E.route.loader==null)return!1;if(Nmt(t.loaderData,t.matches[S],E)||o.some(M=>M===E.route.id))return!0;let T=t.matches[S],L=E;return Dye(E,ua({currentUrl:p,currentParams:T.params,nextUrl:g,nextParams:L.params},r,{actionResult:h,defaultShouldRevalidate:b||Tze(T,L)}))}),k=[];return l.forEach((E,S)=>{if(!n.some(D=>D.route.id===E.routeId))return;let T=Vk(u,E.path,c);if(!T){k.push(ua({key:S},E,{matches:null,match:null}));return}let L=aae(T,E.path);if(s.includes(S)){k.push(ua({key:S,matches:T,match:L},E));return}Dye(L,ua({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:h,defaultShouldRevalidate:b}))&&k.push(ua({key:S,matches:T,match:L},E))}),[w,k]}function Nmt(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Tze(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Dye(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function iae(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Si(i,"No route found in manifest");let a={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";X6(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!rmt.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,{hasErrorBoundary:t(ua({},i)),lazy:void 0})}async function T5(e,t,n,r,i,a,o,s,l,u){o===void 0&&(o="/"),s===void 0&&(s=!1),l===void 0&&(l=!1);let c,f,d,h=b=>{let m,v=new Promise((w,k)=>m=k);return d=()=>m(),t.signal.addEventListener("abort",d),Promise.race([b({request:t,params:n.params,context:u}),v])};try{let b=n.route[e];if(n.route.lazy)if(b)f=(await Promise.all([h(b),iae(n.route,a,i)]))[0];else if(await iae(n.route,a,i),b=n.route[e],b)f=await h(b);else{if(e==="action")throw mp(405,{method:t.method,pathname:new URL(t.url).pathname,routeId:n.route.id});return{type:xl.data,data:void 0}}else Si(b,"Could not find the "+e+' to run on the "'+n.route.id+'" route'),f=await h(b);Si(f!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(b){c=xl.error,f=b}finally{d&&t.signal.removeEventListener("abort",d)}if(Umt(f)){let b=f.status;if(Imt.has(b)){let w=f.headers.get("Location");if(Si(w,"Redirects returned/thrown from loaders/actions must have a Location header"),Sze.test(w)){if(!s){let k=new URL(t.url),E=w.startsWith("//")?new URL(k.protocol+w):new URL(w),S=AN(E.pathname,o)!=null;E.origin===k.origin&&S&&(w=E.pathname+E.search+E.hash)}}else{let k=r.slice(0,r.indexOf(n)+1),E=ufe(k).map(T=>T.pathnameBase),S=Cze(w,E,new URL(t.url).pathname);if(Si(C4(S),"Unable to resolve redirect location: "+w),o){let T=S.pathname;S.pathname=T==="/"?o:Hv([o,T])}w=C4(S)}if(s)throw f.headers.set("Location",w),f;return{type:xl.redirect,status:b,location:w,revalidate:f.headers.get("X-Remix-Revalidate")!==null}}if(l)throw{type:c||xl.data,response:f};let m,v=f.headers.get("Content-Type");return v&&/\bapplication\/json\b/.test(v)?m=await f.json():m=await f.text(),c===xl.error?{type:c,error:new cfe(b,f.statusText,m),headers:f.headers}:{type:xl.data,data:m,statusCode:f.status,headers:f.headers}}if(c===xl.error)return{type:c,error:f};if(f instanceof Emt){var p,g;return{type:xl.deferred,deferredData:f,statusCode:(p=f.init)==null?void 0:p.status,headers:((g=f.init)==null?void 0:g.headers)&&new Headers(f.init.headers)}}return{type:xl.data,data:f}}function D5(e,t,n,r){let i=e.createURL(Ize(t)).toString(),a={signal:n};if(r&&lg(r.formMethod)){let{formMethod:o,formEncType:s,formData:l}=r;a.method=o.toUpperCase(),a.body=s==="application/x-www-form-urlencoded"?Dze(l):l}return new Request(i,a)}function Dze(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function $mt(e,t,n,r,i){let a={},o=null,s,l=!1,u={};return n.forEach((c,f)=>{let d=t[f].route.id;if(Si(!p6(c),"Cannot handle redirect results in processLoaderData"),vS(c)){let h=Kk(e,d),p=c.error;r&&(p=Object.values(r)[0],r=void 0),o=o||{},o[h.route.id]==null&&(o[h.route.id]=p),a[d]=void 0,l||(l=!0,s=Eze(c.error)?c.error.status:500),c.headers&&(u[d]=c.headers)}else Wb(c)?(i.set(d,c.deferredData),a[d]=c.deferredData.data):a[d]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[d]=c.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:u}}function Iye(e,t,n,r,i,a,o,s){let{loaderData:l,errors:u}=$mt(t,n,r,i,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Mye(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function mp(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"&&(s="defer() is not supported in actions")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new cfe(e||500,o,new Error(s),!0)}function Oye(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(p6(n))return n}}function Ize(e){let t=typeof e=="string"?om(e):e;return C4(ua({},t,{hash:""}))}function zmt(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function Wb(e){return e.type===xl.deferred}function vS(e){return e.type===xl.error}function p6(e){return(e&&e.type)===xl.redirect}function Umt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function jmt(e){return Dmt.has(e)}function lg(e){return Amt.has(e)}async function Lye(e,t,n,r,i,a){for(let o=0;of.route.id===l.route.id),c=u!=null&&!Tze(u,l)&&(a&&a[l.route.id])!==void 0;Wb(s)&&(i||c)&&await Rze(s,r,i).then(f=>{f&&(n[o]=f||n[o])})}}async function Rze(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:xl.data,data:e.deferredData.unwrappedData}}catch(i){return{type:xl.error,error:i}}return{type:xl.data,data:e.deferredData.data}}}function Mze(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Bye(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function aae(e,t){let n=typeof t=="string"?om(t).search:t.search;if(e[e.length-1].route.index&&Mze(n||""))return e[e.length-1];let r=ufe(e);return r[r.length-1]}/**
+ */function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function X6(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nmt(){return Math.random().toString(36).substr(2,8)}function Cye(e,t){return{usr:e.state,key:e.key,idx:t}}function AA(e,t,n,r){return n===void 0&&(n=null),ua({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?om(t):t,{state:n,key:t&&t.key||r||nmt()})}function C4(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function om(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function rmt(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=Ks.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(ua({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){s=Ks.Pop;let b=c(),m=b==null?null:b-u;u=b,l&&l({action:s,location:g.location,delta:m})}function d(b,m){s=Ks.Push;let v=AA(g.location,b,m);n&&n(v,b),u=c()+1;let w=Cye(v,u),k=g.createHref(v);try{o.pushState(w,"",k)}catch{i.location.assign(k)}a&&l&&l({action:s,location:g.location,delta:1})}function h(b,m){s=Ks.Replace;let v=AA(g.location,b,m);n&&n(v,b),u=c();let w=Cye(v,u),k=g.createHref(v);o.replaceState(w,"",k),a&&l&&l({action:s,location:g.location,delta:0})}function p(b){let m=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof b=="string"?b:C4(b);return Si(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let g={get action(){return s},get location(){return e(i,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(_ye,f),l=b,()=>{i.removeEventListener(_ye,f),l=null}},createHref(b){return t(i,b)},createURL:p,encodeLocation(b){let m=p(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:h,go(b){return o.go(b)}};return g}var xl;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(xl||(xl={}));const imt=new Set(["lazy","caseSensitive","path","id","index","children"]);function amt(e){return e.index===!0}function wze(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if(Si(i.index!==!0||!i.children,"Cannot specify children on an index route"),Si(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),amt(i)){let l=ua({},i,{hasErrorBoundary:t(i),id:s});return r[s]=l,l}else{let l=ua({},i,{id:s,hasErrorBoundary:t(i),children:void 0});return r[s]=l,i.children&&(l.children=wze(i.children,t,o,r)),l}})}function Vk(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?om(t):t,i=AN(r.pathname||"/",n);if(i==null)return null;let a=kze(e);omt(a);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Si(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Hv([r,l.relativePath]),c=n.concat(l);a.children&&a.children.length>0&&(Si(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),kze(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:hmt(u,a.index),routesMeta:c})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of _ze(a.path))i(a,o,l)}),t}function _ze(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=_ze(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function omt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:pmt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const smt=/^:\w+$/,lmt=3,umt=2,cmt=1,fmt=10,dmt=-2,Eye=e=>e==="*";function hmt(e,t){let n=e.split("/"),r=n.length;return n.some(Eye)&&(r+=dmt),t&&(r+=umt),n.filter(i=>!Eye(i)).reduce((i,a)=>i+(smt.test(a)?lmt:a===""?cmt:fmt),r)}function pmt(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function gmt(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(c==="*"){let d=s[f]||"";o=a.slice(0,a.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=bmt(s[f]||"",c),u},{}),pathname:a,pathnameBase:o,pattern:e}}function vmt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),X6(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function ymt(e){try{return decodeURI(e)}catch(t){return X6(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function bmt(e,t){try{return decodeURIComponent(e)}catch(n){return X6(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function AN(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function wmt(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?om(e):e;return{pathname:n?n.startsWith("/")?n:kmt(n,t):t,search:Cmt(r),hash:Emt(i)}}function kmt(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function tq(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ufe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Cze(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=om(e):(i=ua({},e),Si(!i.pathname||!i.pathname.includes("?"),tq("?","pathname","search",i)),Si(!i.pathname||!i.pathname.includes("#"),tq("#","pathname","hash",i)),Si(!i.search||!i.search.includes("#"),tq("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let f=t.length-1;if(o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=wmt(i,s),u=o&&o!=="/"&&o.endsWith("/"),c=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Hv=e=>e.join("/").replace(/\/\/+/g,"/"),_mt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Cmt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Emt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class xye extends Error{}class xmt{constructor(t,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],Si(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((a,o)=>r=o),this.controller=new AbortController;let i=()=>r(new xye("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",i),this.controller.signal.addEventListener("abort",i),this.data=Object.entries(t).reduce((a,o)=>{let[s,l]=o;return Object.assign(a,{[s]:this.trackPromise(s,l)})},{}),this.done&&this.unlistenAbortSignal(),this.init=n}trackPromise(t,n){if(!(n instanceof Promise))return n;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let r=Promise.race([n,this.abortPromise]).then(i=>this.onSettle(r,t,null,i),i=>this.onSettle(r,t,i));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(t,n,r,i){return this.controller.signal.aborted&&r instanceof xye?(this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>r}),Promise.reject(r)):(this.pendingKeysSet.delete(n),this.done&&this.unlistenAbortSignal(),r?(Object.defineProperty(t,"_error",{get:()=>r}),this.emit(!1,n),Promise.reject(r)):(Object.defineProperty(t,"_data",{get:()=>i}),this.emit(!1,n),i))}emit(t,n){this.subscribers.forEach(r=>r(t,n))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,n)=>this.pendingKeysSet.delete(n)),this.emit(!0)}async resolveData(t){let n=!1;if(!this.done){let r=()=>this.cancel();t.addEventListener("abort",r),n=await new Promise(i=>{this.subscribe(a=>{t.removeEventListener("abort",r),(a||this.done)&&i(a)})})}return n}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return Si(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,n)=>{let[r,i]=n;return Object.assign(t,{[r]:Amt(i)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function Smt(e){return e instanceof Promise&&e._tracked===!0}function Amt(e){if(!Smt(e))return e;if(e._error)throw e._error;return e._data}class cfe{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Eze(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const xze=["post","put","patch","delete"],Tmt=new Set(xze),Dmt=["get",...xze],Imt=new Set(Dmt),Rmt=new Set([301,302,303,307,308]),Mmt=new Set([307,308]),nq={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Omt={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Sye={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Sze=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Aze=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Lmt=!Aze,Bmt=e=>!!e.hasErrorBoundary;function Pmt(e){Si(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=e.detectErrorBoundary||Bmt,n={},r=wze(e.routes,t,void 0,n),i,a=null,o=new Set,s=null,l=null,u=null,c=e.hydrationData!=null,f=Vk(r,e.history.location,e.basename),d=null;if(f==null){let ye=mp(404,{pathname:e.history.location.pathname}),{matches:fe,route:de}=Mye(r);f=fe,d={[de.id]:ye}}let h=!f.some(ye=>ye.route.lazy)&&(!f.some(ye=>ye.route.loader)||e.hydrationData!=null),p,g={historyAction:e.history.action,location:e.history.location,matches:f,initialized:h,navigation:nq,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||d,fetchers:new Map,blockers:new Map},b=Ks.Pop,m=!1,v,w=!1,k=!1,E=[],S=[],T=new Map,L=0,M=-1,D=new Map,I=new Set,B=new Map,N=new Map,O=new Map,R=!1;function P(){if(a=e.history.listen(de=>{let{action:xe,location:Ye,delta:Ze}=de;if(R){R=!1;return}X6(O.size===0||Ze!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let st=Ie({currentLocation:g.location,nextLocation:Ye,historyAction:xe});if(st&&Ze!=null){R=!0,e.history.go(Ze*-1),De(st,{state:"blocked",location:Ye,proceed(){De(st,{state:"proceeding",proceed:void 0,reset:void 0,location:Ye}),e.history.go(Ze)},reset(){$e(st),q({blockers:new Map(p.state.blockers)})}});return}return J(xe,Ye)}),g.initialized)return p;let ye=g.matches.filter(de=>de.route.lazy);if(ye.length===0)return J(Ks.Pop,g.location),p;let fe=ye.map(de=>iae(de.route,t,n));return Promise.all(fe).then(()=>{!g.matches.some(xe=>xe.route.loader)||e.hydrationData!=null?q({initialized:!0}):J(Ks.Pop,g.location)}),p}function H(){a&&a(),o.clear(),v&&v.abort(),g.fetchers.forEach((ye,fe)=>ce(fe)),g.blockers.forEach((ye,fe)=>$e(fe))}function F(ye){return o.add(ye),()=>o.delete(ye)}function q(ye){g=ua({},g,ye),o.forEach(fe=>fe(g))}function V(ye,fe){var de,xe;let Ye=g.actionData!=null&&g.navigation.formMethod!=null&&lg(g.navigation.formMethod)&&g.navigation.state==="loading"&&((de=ye.state)==null?void 0:de._isRedirect)!==!0,Ze;fe.actionData?Object.keys(fe.actionData).length>0?Ze=fe.actionData:Ze=null:Ye?Ze=g.actionData:Ze=null;let st=fe.loaderData?Rye(g.loaderData,fe.loaderData,fe.matches||[],fe.errors):g.loaderData;for(let[rt]of O)$e(rt);let at=m===!0||g.navigation.formMethod!=null&&lg(g.navigation.formMethod)&&((xe=ye.state)==null?void 0:xe._isRedirect)!==!0;i&&(r=i,i=void 0),q(ua({},fe,{actionData:Ze,loaderData:st,historyAction:b,location:ye,initialized:!0,navigation:nq,revalidation:"idle",restoreScrollPosition:Oe(ye,fe.matches||g.matches),preventScrollReset:at,blockers:new Map(g.blockers)})),w||b===Ks.Pop||(b===Ks.Push?e.history.push(ye,ye.state):b===Ks.Replace&&e.history.replace(ye,ye.state)),b=Ks.Pop,m=!1,w=!1,k=!1,E=[],S=[]}async function X(ye,fe){if(typeof ye=="number"){e.history.go(ye);return}let{path:de,submission:xe,error:Ye}=Aye(ye,fe),Ze=g.location,st=AA(g.location,de,fe&&fe.state);st=ua({},st,e.history.encodeLocation(st));let at=fe&&fe.replace!=null?fe.replace:void 0,rt=Ks.Push;at===!0?rt=Ks.Replace:at===!1||xe!=null&&lg(xe.formMethod)&&xe.formAction===g.location.pathname+g.location.search&&(rt=Ks.Replace);let et=fe&&"preventScrollReset"in fe?fe.preventScrollReset===!0:void 0,Ot=Ie({currentLocation:Ze,nextLocation:st,historyAction:rt});if(Ot){De(Ot,{state:"blocked",location:st,proceed(){De(Ot,{state:"proceeding",proceed:void 0,reset:void 0,location:st}),X(ye,fe)},reset(){$e(Ot),q({blockers:new Map(g.blockers)})}});return}return await J(rt,st,{submission:xe,pendingError:Ye,preventScrollReset:et,replace:fe&&fe.replace})}function G(){if(ue(),q({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){J(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}J(b||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation})}}async function J(ye,fe,de){v&&v.abort(),v=null,b=ye,w=(de&&de.startUninterruptedRevalidation)===!0,je(g.location,g.matches),m=(de&&de.preventScrollReset)===!0;let xe=i||r,Ye=de&&de.overrideNavigation,Ze=Vk(xe,fe,e.basename);if(!Ze){let xt=mp(404,{pathname:fe.pathname}),{matches:pt,route:_t}=Mye(xe);Be(),V(fe,{matches:pt,loaderData:{},errors:{[_t.id]:xt}});return}if(Umt(g.location,fe)&&!(de&&de.submission&&lg(de.submission.formMethod))){V(fe,{matches:Ze});return}v=new AbortController;let st=D5(e.history,fe,v.signal,de&&de.submission),at,rt;if(de&&de.pendingError)rt={[Kk(Ze).route.id]:de.pendingError};else if(de&&de.submission&&lg(de.submission.formMethod)){let xt=await te(st,fe,de.submission,Ze,{replace:de.replace});if(xt.shortCircuited)return;at=xt.pendingActionData,rt=xt.pendingActionError,Ye=ua({state:"loading",location:fe},de.submission),st=new Request(st.url,{signal:st.signal})}let{shortCircuited:et,loaderData:Ot,errors:jt}=await re(st,fe,Ze,Ye,de&&de.submission,de&&de.replace,at,rt);et||(v=null,V(fe,ua({matches:Ze},at?{actionData:at}:{},{loaderData:Ot,errors:jt})))}async function te(ye,fe,de,xe,Ye){ue();let Ze=ua({state:"submitting",location:fe},de);q({navigation:Ze});let st,at=aae(xe,fe);if(!at.route.action&&!at.route.lazy)st={type:xl.error,error:mp(405,{method:ye.method,pathname:fe.pathname,routeId:at.route.id})};else if(st=await T5("action",ye,at,xe,n,t,p.basename),ye.signal.aborted)return{shortCircuited:!0};if(p6(st)){let rt;return Ye&&Ye.replace!=null?rt=Ye.replace:rt=st.location===g.location.pathname+g.location.search,await ee(g,st,{submission:de,replace:rt}),{shortCircuited:!0}}if(vS(st)){let rt=Kk(xe,at.route.id);return(Ye&&Ye.replace)!==!0&&(b=Ks.Push),{pendingActionData:{},pendingActionError:{[rt.route.id]:st.error}}}if(Wb(st))throw mp(400,{type:"defer-action"});return{pendingActionData:{[at.route.id]:st.data}}}async function re(ye,fe,de,xe,Ye,Ze,st,at){let rt=xe;rt||(rt=ua({state:"loading",location:fe,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Ye));let et=Ye||(rt.formMethod&&rt.formAction&&rt.formData&&rt.formEncType?{formMethod:rt.formMethod,formAction:rt.formAction,formData:rt.formData,formEncType:rt.formEncType}:void 0),Ot=i||r,[jt,xt]=Tye(e.history,g,de,et,fe,k,E,S,B,Ot,e.basename,st,at);if(Be(vn=>!(de&&de.some($t=>$t.route.id===vn))||jt&&jt.some($t=>$t.route.id===vn)),jt.length===0&&xt.length===0)return V(fe,ua({matches:de,loaderData:{},errors:at||null},st?{actionData:st}:{})),{shortCircuited:!0};if(!w){xt.forEach($t=>{let Tt=g.fetchers.get($t.key),Wt={state:"loading",data:Tt&&Tt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set($t.key,Wt)});let vn=st||g.actionData;q(ua({navigation:rt},vn?Object.keys(vn).length===0?{actionData:null}:{actionData:vn}:{},xt.length>0?{fetchers:new Map(g.fetchers)}:{}))}M=++L,xt.forEach(vn=>T.set(vn.key,v));let{results:pt,loaderResults:_t,fetcherResults:ht}=await ne(g.matches,de,jt,xt,ye);if(ye.signal.aborted)return{shortCircuited:!0};xt.forEach(vn=>T.delete(vn.key));let yt=Oye(pt);if(yt)return await ee(g,yt,{replace:Ze}),{shortCircuited:!0};let{loaderData:Lt,errors:on}=Iye(g,de,jt,_t,at,xt,ht,N);N.forEach((vn,$t)=>{vn.subscribe(Tt=>{(Tt||vn.done)&&N.delete($t)})}),ve();let Ht=ie(M);return ua({loaderData:Lt,errors:on},Ht||xt.length>0?{fetchers:new Map(g.fetchers)}:{})}function Q(ye){return g.fetchers.get(ye)||Omt}function ae(ye,fe,de,xe){if(Lmt)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");T.has(ye)&&be(ye);let Ze=Vk(i||r,de,e.basename);if(!Ze){Ae(ye,fe,mp(404,{pathname:de}));return}let{path:st,submission:at}=Aye(de,xe,!0),rt=aae(Ze,st);if(m=(xe&&xe.preventScrollReset)===!0,at&&lg(at.formMethod)){le(ye,fe,st,rt,Ze,at);return}B.set(ye,{routeId:fe,path:st}),oe(ye,fe,st,rt,Ze,at)}async function le(ye,fe,de,xe,Ye,Ze){if(ue(),B.delete(ye),!xe.route.action&&!xe.route.lazy){let gn=mp(405,{method:Ze.formMethod,pathname:de,routeId:fe});Ae(ye,fe,gn);return}let st=g.fetchers.get(ye),at=ua({state:"submitting"},Ze,{data:st&&st.data," _hasFetcherDoneAnything ":!0});g.fetchers.set(ye,at),q({fetchers:new Map(g.fetchers)});let rt=new AbortController,et=D5(e.history,de,rt.signal,Ze);T.set(ye,rt);let Ot=await T5("action",et,xe,Ye,n,t,p.basename);if(et.signal.aborted){T.get(ye)===rt&&T.delete(ye);return}if(p6(Ot)){T.delete(ye),I.add(ye);let gn=ua({state:"loading"},Ze,{data:void 0," _hasFetcherDoneAnything ":!0});return g.fetchers.set(ye,gn),q({fetchers:new Map(g.fetchers)}),ee(g,Ot,{isFetchActionRedirect:!0})}if(vS(Ot)){Ae(ye,fe,Ot.error);return}if(Wb(Ot))throw mp(400,{type:"defer-action"});let jt=g.navigation.location||g.location,xt=D5(e.history,jt,rt.signal),pt=i||r,_t=g.navigation.state!=="idle"?Vk(pt,g.navigation.location,e.basename):g.matches;Si(_t,"Didn't find any matches after fetcher action");let ht=++L;D.set(ye,ht);let yt=ua({state:"loading",data:Ot.data},Ze,{" _hasFetcherDoneAnything ":!0});g.fetchers.set(ye,yt);let[Lt,on]=Tye(e.history,g,_t,Ze,jt,k,E,S,B,pt,e.basename,{[xe.route.id]:Ot.data},void 0);on.filter(gn=>gn.key!==ye).forEach(gn=>{let In=gn.key,Wn=g.fetchers.get(In),yn={state:"loading",data:Wn&&Wn.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(In,yn),T.set(In,rt)}),q({fetchers:new Map(g.fetchers)});let{results:Ht,loaderResults:vn,fetcherResults:$t}=await ne(g.matches,_t,Lt,on,xt);if(rt.signal.aborted)return;D.delete(ye),T.delete(ye),on.forEach(gn=>T.delete(gn.key));let Tt=Oye(Ht);if(Tt)return ee(g,Tt);let{loaderData:Wt,errors:Ut}=Iye(g,g.matches,Lt,vn,void 0,on,$t,N),en={state:"idle",data:Ot.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(ye,en);let Gt=ie(ht);g.navigation.state==="loading"&&ht>M?(Si(b,"Expected pending action"),v&&v.abort(),V(g.navigation.location,{matches:_t,loaderData:Wt,errors:Ut,fetchers:new Map(g.fetchers)})):(q(ua({errors:Ut,loaderData:Rye(g.loaderData,Wt,_t,Ut)},Gt?{fetchers:new Map(g.fetchers)}:{})),k=!1)}async function oe(ye,fe,de,xe,Ye,Ze){let st=g.fetchers.get(ye),at=ua({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Ze,{data:st&&st.data," _hasFetcherDoneAnything ":!0});g.fetchers.set(ye,at),q({fetchers:new Map(g.fetchers)});let rt=new AbortController,et=D5(e.history,de,rt.signal);T.set(ye,rt);let Ot=await T5("loader",et,xe,Ye,n,t,p.basename);if(Wb(Ot)&&(Ot=await Rze(Ot,et.signal,!0)||Ot),T.get(ye)===rt&&T.delete(ye),et.signal.aborted)return;if(p6(Ot)){await ee(g,Ot);return}if(vS(Ot)){let xt=Kk(g.matches,fe);g.fetchers.delete(ye),q({fetchers:new Map(g.fetchers),errors:{[xt.route.id]:Ot.error}});return}Si(!Wb(Ot),"Unhandled fetcher deferred data");let jt={state:"idle",data:Ot.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(ye,jt),q({fetchers:new Map(g.fetchers)})}async function ee(ye,fe,de){var xe;let{submission:Ye,replace:Ze,isFetchActionRedirect:st}=de===void 0?{}:de;fe.revalidate&&(k=!0);let at=AA(ye.location,fe.location,ua({_isRedirect:!0},st?{_isFetchActionRedirect:!0}:{}));if(Si(at,"Expected a location on the redirect navigation"),Sze.test(fe.location)&&Aze&&typeof((xe=window)==null?void 0:xe.location)<"u"){let pt=e.history.createURL(fe.location),_t=AN(pt.pathname,e.basename||"/")==null;if(window.location.origin!==pt.origin||_t){Ze?window.location.replace(fe.location):window.location.assign(fe.location);return}}v=null;let rt=Ze===!0?Ks.Replace:Ks.Push,{formMethod:et,formAction:Ot,formEncType:jt,formData:xt}=ye.navigation;!Ye&&et&&Ot&&xt&&jt&&(Ye={formMethod:et,formAction:Ot,formEncType:jt,formData:xt}),Mmt.has(fe.status)&&Ye&&lg(Ye.formMethod)?await J(rt,at,{submission:ua({},Ye,{formAction:fe.location}),preventScrollReset:m}):await J(rt,at,{overrideNavigation:{state:"loading",location:at,formMethod:Ye?Ye.formMethod:void 0,formAction:Ye?Ye.formAction:void 0,formEncType:Ye?Ye.formEncType:void 0,formData:Ye?Ye.formData:void 0},preventScrollReset:m})}async function ne(ye,fe,de,xe,Ye){let Ze=await Promise.all([...de.map(rt=>T5("loader",Ye,rt,fe,n,t,p.basename)),...xe.map(rt=>rt.matches&&rt.match?T5("loader",D5(e.history,rt.path,Ye.signal),rt.match,rt.matches,n,t,p.basename):{type:xl.error,error:mp(404,{pathname:rt.path})})]),st=Ze.slice(0,de.length),at=Ze.slice(de.length);return await Promise.all([Lye(ye,de,st,Ye.signal,!1,g.loaderData),Lye(ye,xe.map(rt=>rt.match),at,Ye.signal,!0)]),{results:Ze,loaderResults:st,fetcherResults:at}}function ue(){k=!0,E.push(...Be()),B.forEach((ye,fe)=>{T.has(fe)&&(S.push(fe),be(fe))})}function Ae(ye,fe,de){let xe=Kk(g.matches,fe);ce(ye),q({errors:{[xe.route.id]:de},fetchers:new Map(g.fetchers)})}function ce(ye){T.has(ye)&&be(ye),B.delete(ye),D.delete(ye),I.delete(ye),g.fetchers.delete(ye)}function be(ye){let fe=T.get(ye);Si(fe,"Expected fetch controller: "+ye),fe.abort(),T.delete(ye)}function ge(ye){for(let fe of ye){let xe={state:"idle",data:Q(fe).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(fe,xe)}}function ve(){let ye=[];for(let fe of I){let de=g.fetchers.get(fe);Si(de,"Expected fetcher: "+fe),de.state==="loading"&&(I.delete(fe),ye.push(fe))}ge(ye)}function ie(ye){let fe=[];for(let[de,xe]of D)if(xe0}function he(ye,fe){let de=g.blockers.get(ye)||Sye;return O.get(ye)!==fe&&O.set(ye,fe),de}function $e(ye){g.blockers.delete(ye),O.delete(ye)}function De(ye,fe){let de=g.blockers.get(ye)||Sye;Si(de.state==="unblocked"&&fe.state==="blocked"||de.state==="blocked"&&fe.state==="blocked"||de.state==="blocked"&&fe.state==="proceeding"||de.state==="blocked"&&fe.state==="unblocked"||de.state==="proceeding"&&fe.state==="unblocked","Invalid blocker state transition: "+de.state+" -> "+fe.state),g.blockers.set(ye,fe),q({blockers:new Map(g.blockers)})}function Ie(ye){let{currentLocation:fe,nextLocation:de,historyAction:xe}=ye;if(O.size===0)return;O.size>1&&X6(!1,"A router only supports one blocker at a time");let Ye=Array.from(O.entries()),[Ze,st]=Ye[Ye.length-1],at=g.blockers.get(Ze);if(!(at&&at.state==="proceeding")&&st({currentLocation:fe,nextLocation:de,historyAction:xe}))return Ze}function Be(ye){let fe=[];return N.forEach((de,xe)=>{(!ye||ye(xe))&&(de.cancel(),fe.push(xe),N.delete(xe))}),fe}function we(ye,fe,de){if(s=ye,u=fe,l=de||(xe=>xe.key),!c&&g.navigation===nq){c=!0;let xe=Oe(g.location,g.matches);xe!=null&&q({restoreScrollPosition:xe})}return()=>{s=null,u=null,l=null}}function je(ye,fe){if(s&&l&&u){let de=fe.map(Ye=>Bye(Ye,g.loaderData)),xe=l(ye,de)||ye.key;s[xe]=u()}}function Oe(ye,fe){if(s&&l&&u){let de=fe.map(Ze=>Bye(Ze,g.loaderData)),xe=l(ye,de)||ye.key,Ye=s[xe];if(typeof Ye=="number")return Ye}return null}function Re(ye){i=ye}return p={get basename(){return e.basename},get state(){return g},get routes(){return r},initialize:P,subscribe:F,enableScrollRestoration:we,navigate:X,fetch:ae,revalidate:G,createHref:ye=>e.history.createHref(ye),encodeLocation:ye=>e.history.encodeLocation(ye),getFetcher:Q,deleteFetcher:ce,dispose:H,getBlocker:he,deleteBlocker:$e,_internalFetchControllers:T,_internalActiveDeferreds:N,_internalSetRoutes:Re},p}function Fmt(e){return e!=null&&"formData"in e}function Aye(e,t,n){n===void 0&&(n=!1);let r=typeof e=="string"?e:C4(e);if(!t||!Fmt(t))return{path:r};if(t.formMethod&&!Hmt(t.formMethod))return{path:r,error:mp(405,{method:t.formMethod})};let i;if(t.formData&&(i={formMethod:t.formMethod||"get",formAction:Ize(r),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData},lg(i.formMethod)))return{path:r,submission:i};let a=om(r),o=Dze(t.formData);return n&&a.search&&Mze(a.search)&&o.append("index",""),a.search="?"+o,{path:C4(a),submission:i}}function Nmt(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Tye(e,t,n,r,i,a,o,s,l,u,c,f,d){let h=d?Object.values(d)[0]:f?Object.values(f)[0]:void 0,p=e.createURL(t.location),g=e.createURL(i),b=a||p.toString()===g.toString()||p.search!==g.search,m=d?Object.keys(d)[0]:void 0,w=Nmt(n,m).filter((E,S)=>{if(E.route.lazy)return!0;if(E.route.loader==null)return!1;if($mt(t.loaderData,t.matches[S],E)||o.some(M=>M===E.route.id))return!0;let T=t.matches[S],L=E;return Dye(E,ua({currentUrl:p,currentParams:T.params,nextUrl:g,nextParams:L.params},r,{actionResult:h,defaultShouldRevalidate:b||Tze(T,L)}))}),k=[];return l.forEach((E,S)=>{if(!n.some(D=>D.route.id===E.routeId))return;let T=Vk(u,E.path,c);if(!T){k.push(ua({key:S},E,{matches:null,match:null}));return}let L=aae(T,E.path);if(s.includes(S)){k.push(ua({key:S,matches:T,match:L},E));return}Dye(L,ua({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:h,defaultShouldRevalidate:b}))&&k.push(ua({key:S,matches:T,match:L},E))}),[w,k]}function $mt(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Tze(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Dye(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function iae(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Si(i,"No route found in manifest");let a={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";X6(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!imt.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,{hasErrorBoundary:t(ua({},i)),lazy:void 0})}async function T5(e,t,n,r,i,a,o,s,l,u){o===void 0&&(o="/"),s===void 0&&(s=!1),l===void 0&&(l=!1);let c,f,d,h=b=>{let m,v=new Promise((w,k)=>m=k);return d=()=>m(),t.signal.addEventListener("abort",d),Promise.race([b({request:t,params:n.params,context:u}),v])};try{let b=n.route[e];if(n.route.lazy)if(b)f=(await Promise.all([h(b),iae(n.route,a,i)]))[0];else if(await iae(n.route,a,i),b=n.route[e],b)f=await h(b);else{if(e==="action")throw mp(405,{method:t.method,pathname:new URL(t.url).pathname,routeId:n.route.id});return{type:xl.data,data:void 0}}else Si(b,"Could not find the "+e+' to run on the "'+n.route.id+'" route'),f=await h(b);Si(f!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(b){c=xl.error,f=b}finally{d&&t.signal.removeEventListener("abort",d)}if(jmt(f)){let b=f.status;if(Rmt.has(b)){let w=f.headers.get("Location");if(Si(w,"Redirects returned/thrown from loaders/actions must have a Location header"),Sze.test(w)){if(!s){let k=new URL(t.url),E=w.startsWith("//")?new URL(k.protocol+w):new URL(w),S=AN(E.pathname,o)!=null;E.origin===k.origin&&S&&(w=E.pathname+E.search+E.hash)}}else{let k=r.slice(0,r.indexOf(n)+1),E=ufe(k).map(T=>T.pathnameBase),S=Cze(w,E,new URL(t.url).pathname);if(Si(C4(S),"Unable to resolve redirect location: "+w),o){let T=S.pathname;S.pathname=T==="/"?o:Hv([o,T])}w=C4(S)}if(s)throw f.headers.set("Location",w),f;return{type:xl.redirect,status:b,location:w,revalidate:f.headers.get("X-Remix-Revalidate")!==null}}if(l)throw{type:c||xl.data,response:f};let m,v=f.headers.get("Content-Type");return v&&/\bapplication\/json\b/.test(v)?m=await f.json():m=await f.text(),c===xl.error?{type:c,error:new cfe(b,f.statusText,m),headers:f.headers}:{type:xl.data,data:m,statusCode:f.status,headers:f.headers}}if(c===xl.error)return{type:c,error:f};if(f instanceof xmt){var p,g;return{type:xl.deferred,deferredData:f,statusCode:(p=f.init)==null?void 0:p.status,headers:((g=f.init)==null?void 0:g.headers)&&new Headers(f.init.headers)}}return{type:xl.data,data:f}}function D5(e,t,n,r){let i=e.createURL(Ize(t)).toString(),a={signal:n};if(r&&lg(r.formMethod)){let{formMethod:o,formEncType:s,formData:l}=r;a.method=o.toUpperCase(),a.body=s==="application/x-www-form-urlencoded"?Dze(l):l}return new Request(i,a)}function Dze(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function zmt(e,t,n,r,i){let a={},o=null,s,l=!1,u={};return n.forEach((c,f)=>{let d=t[f].route.id;if(Si(!p6(c),"Cannot handle redirect results in processLoaderData"),vS(c)){let h=Kk(e,d),p=c.error;r&&(p=Object.values(r)[0],r=void 0),o=o||{},o[h.route.id]==null&&(o[h.route.id]=p),a[d]=void 0,l||(l=!0,s=Eze(c.error)?c.error.status:500),c.headers&&(u[d]=c.headers)}else Wb(c)?(i.set(d,c.deferredData),a[d]=c.deferredData.data):a[d]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[d]=c.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:u}}function Iye(e,t,n,r,i,a,o,s){let{loaderData:l,errors:u}=zmt(t,n,r,i,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Mye(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function mp(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"&&(s="defer() is not supported in actions")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new cfe(e||500,o,new Error(s),!0)}function Oye(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(p6(n))return n}}function Ize(e){let t=typeof e=="string"?om(e):e;return C4(ua({},t,{hash:""}))}function Umt(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function Wb(e){return e.type===xl.deferred}function vS(e){return e.type===xl.error}function p6(e){return(e&&e.type)===xl.redirect}function jmt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Hmt(e){return Imt.has(e)}function lg(e){return Tmt.has(e)}async function Lye(e,t,n,r,i,a){for(let o=0;of.route.id===l.route.id),c=u!=null&&!Tze(u,l)&&(a&&a[l.route.id])!==void 0;Wb(s)&&(i||c)&&await Rze(s,r,i).then(f=>{f&&(n[o]=f||n[o])})}}async function Rze(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:xl.data,data:e.deferredData.unwrappedData}}catch(i){return{type:xl.error,error:i}}return{type:xl.data,data:e.deferredData.data}}}function Mze(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Bye(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function aae(e,t){let n=typeof t=="string"?om(t).search:t.search;if(e[e.length-1].route.index&&Mze(n||""))return e[e.length-1];let r=ufe(e);return r[r.length-1]}/**
* React Router v6.9.0
*
* Copyright (c) Remix Software Inc.
@@ -88,7 +88,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
- */function Hmt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const qmt=typeof Object.is=="function"?Object.is:Hmt,{useState:Wmt,useEffect:Gmt,useLayoutEffect:Vmt,useDebugValue:Kmt}=v4;function Ymt(e,t,n){const r=t(),[{inst:i},a]=Wmt({inst:{value:r,getSnapshot:t}});return Vmt(()=>{i.value=r,i.getSnapshot=t,rq(i)&&a({inst:i})},[e,r,t]),Gmt(()=>(rq(i)&&a({inst:i}),e(()=>{rq(i)&&a({inst:i})})),[e]),Kmt(r),r}function rq(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!qmt(n,r)}catch{return!0}}function Xmt(e,t,n){return t()}const Jmt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zmt=!Jmt,Qmt=Zmt?Xmt:Ymt,evt="useSyncExternalStore"in v4?(e=>e.useSyncExternalStore)(v4):Qmt,ffe=C.createContext(null),TN=C.createContext(null),dfe=C.createContext(null),DN=C.createContext(null),$C=C.createContext({outlet:null,matches:[]}),Oze=C.createContext(null);function oae(){return oae=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.pathnameBase)),a=C.useRef(!1);return C.useEffect(()=>{a.current=!0}),C.useCallback(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let u=Cze(s,JSON.parse(i),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:Hv([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,i,r])}function z2(){let{matches:e}=C.useContext($C),t=e[e.length-1];return t?t.params:{}}function tvt(e,t){l7()||Si(!1);let{navigator:n}=C.useContext(dfe),r=C.useContext(TN),{matches:i}=C.useContext($C),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=IN(),u;if(t){var c;let g=typeof t=="string"?om(t):t;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||Si(!1),u=g}else u=l;let f=u.pathname||"/",d=s==="/"?f:f.slice(s.length)||"/",h=Vk(e,{pathname:d}),p=avt(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:Hv([s,n.encodeLocation?n.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:Hv([s,n.encodeLocation?n.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,r||void 0);return t&&p?C.createElement(DN.Provider,{value:{location:oae({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ks.Pop}},p):p}function nvt(){let e=uvt(),t=Eze(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,a)}class rvt extends C.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?C.createElement($C.Provider,{value:this.props.routeContext},C.createElement(Oze.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ivt(e){let{routeContext:t,match:n,children:r}=e,i=C.useContext(ffe);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement($C.Provider,{value:t},r)}function avt(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n?.errors;if(i!=null){let a=r.findIndex(o=>o.route.id&&i?.[o.route.id]);a>=0||Si(!1),r=r.slice(0,Math.min(r.length,a+1))}return r.reduceRight((a,o,s)=>{let l=o.route.id?i?.[o.route.id]:null,u=null;n&&(o.route.ErrorBoundary?u=C.createElement(o.route.ErrorBoundary,null):o.route.errorElement?u=o.route.errorElement:u=C.createElement(nvt,null));let c=t.concat(r.slice(0,s+1)),f=()=>{let d=a;return l?d=u:o.route.Component?d=C.createElement(o.route.Component,null):o.route.element&&(d=o.route.element),C.createElement(ivt,{match:o,routeContext:{outlet:a,matches:c},children:d})};return n&&(o.route.ErrorBoundary||o.route.errorElement||s===0)?C.createElement(rvt,{location:n.location,component:u,error:l,children:f(),routeContext:{outlet:null,matches:c}}):f()},null)}var Pye;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(Pye||(Pye={}));var EL;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(EL||(EL={}));function ovt(e){let t=C.useContext(TN);return t||Si(!1),t}function svt(e){let t=C.useContext($C);return t||Si(!1),t}function lvt(e){let t=svt(),n=t.matches[t.matches.length-1];return n.route.id||Si(!1),n.route.id}function uvt(){var e;let t=C.useContext(Oze),n=ovt(EL.UseRouteError),r=lvt(EL.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function cvt(e){let{fallbackElement:t,router:n}=e,r=C.useCallback(()=>n.state,[n]),i=evt(n.subscribe,r,r),a=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:l=>n.navigate(l),push:(l,u,c)=>n.navigate(l,{state:u,preventScrollReset:c?.preventScrollReset}),replace:(l,u,c)=>n.navigate(l,{replace:!0,state:u,preventScrollReset:c?.preventScrollReset})}),[n]),o=n.basename||"/",s=C.useMemo(()=>({router:n,navigator:a,static:!1,basename:o}),[n,a,o]);return C.createElement(C.Fragment,null,C.createElement(ffe.Provider,{value:s},C.createElement(TN.Provider,{value:i},C.createElement(hvt,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:a},n.state.initialized?C.createElement(pvt,null):t))),null)}function fvt(e){let{to:t,replace:n,state:r,relative:i}=e;l7()||Si(!1);let a=C.useContext(TN),o=sm();return C.useEffect(()=>{a&&a.navigation.state!=="idle"||o(t,{replace:n,state:r,relative:i})}),null}function dvt(e){Si(!1)}function hvt(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ks.Pop,navigator:a,static:o=!1}=e;l7()&&Si(!1);let s=t.replace(/^\/*/,"/"),l=C.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=om(r));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:h="default"}=r,p=C.useMemo(()=>{let g=AN(u,s);return g==null?null:{location:{pathname:g,search:c,hash:f,state:d,key:h},navigationType:i}},[s,u,c,f,d,h,i]);return p==null?null:C.createElement(dfe.Provider,{value:l},C.createElement(DN.Provider,{children:n,value:p}))}function pvt(e){let{children:t,location:n}=e,r=C.useContext(ffe),i=r&&!t?r.router.routes:sae(t);return tvt(i,n)}var Fye;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Fye||(Fye={}));new Promise(()=>{});function sae(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(r,i)=>{if(!C.isValidElement(r))return;if(r.type===C.Fragment){n.push.apply(n,sae(r.props.children,t));return}r.type!==dvt&&Si(!1),!r.props.index||!r.props.children||Si(!1);let a=[...t,i],o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=sae(r.props.children,a)),n.push(o)}),n}function gvt(e){return!!e.ErrorBoundary||!!e.errorElement}/**
+ */function qmt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Wmt=typeof Object.is=="function"?Object.is:qmt,{useState:Gmt,useEffect:Vmt,useLayoutEffect:Kmt,useDebugValue:Ymt}=v4;function Xmt(e,t,n){const r=t(),[{inst:i},a]=Gmt({inst:{value:r,getSnapshot:t}});return Kmt(()=>{i.value=r,i.getSnapshot=t,rq(i)&&a({inst:i})},[e,r,t]),Vmt(()=>(rq(i)&&a({inst:i}),e(()=>{rq(i)&&a({inst:i})})),[e]),Ymt(r),r}function rq(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!Wmt(n,r)}catch{return!0}}function Jmt(e,t,n){return t()}const Zmt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Qmt=!Zmt,evt=Qmt?Jmt:Xmt,tvt="useSyncExternalStore"in v4?(e=>e.useSyncExternalStore)(v4):evt,ffe=C.createContext(null),TN=C.createContext(null),dfe=C.createContext(null),DN=C.createContext(null),$C=C.createContext({outlet:null,matches:[]}),Oze=C.createContext(null);function oae(){return oae=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.pathnameBase)),a=C.useRef(!1);return C.useEffect(()=>{a.current=!0}),C.useCallback(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let u=Cze(s,JSON.parse(i),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:Hv([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,i,r])}function z2(){let{matches:e}=C.useContext($C),t=e[e.length-1];return t?t.params:{}}function nvt(e,t){l7()||Si(!1);let{navigator:n}=C.useContext(dfe),r=C.useContext(TN),{matches:i}=C.useContext($C),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=IN(),u;if(t){var c;let g=typeof t=="string"?om(t):t;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||Si(!1),u=g}else u=l;let f=u.pathname||"/",d=s==="/"?f:f.slice(s.length)||"/",h=Vk(e,{pathname:d}),p=ovt(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:Hv([s,n.encodeLocation?n.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:Hv([s,n.encodeLocation?n.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,r||void 0);return t&&p?C.createElement(DN.Provider,{value:{location:oae({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ks.Pop}},p):p}function rvt(){let e=cvt(),t=Eze(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,a)}class ivt extends C.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?C.createElement($C.Provider,{value:this.props.routeContext},C.createElement(Oze.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function avt(e){let{routeContext:t,match:n,children:r}=e,i=C.useContext(ffe);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement($C.Provider,{value:t},r)}function ovt(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n?.errors;if(i!=null){let a=r.findIndex(o=>o.route.id&&i?.[o.route.id]);a>=0||Si(!1),r=r.slice(0,Math.min(r.length,a+1))}return r.reduceRight((a,o,s)=>{let l=o.route.id?i?.[o.route.id]:null,u=null;n&&(o.route.ErrorBoundary?u=C.createElement(o.route.ErrorBoundary,null):o.route.errorElement?u=o.route.errorElement:u=C.createElement(rvt,null));let c=t.concat(r.slice(0,s+1)),f=()=>{let d=a;return l?d=u:o.route.Component?d=C.createElement(o.route.Component,null):o.route.element&&(d=o.route.element),C.createElement(avt,{match:o,routeContext:{outlet:a,matches:c},children:d})};return n&&(o.route.ErrorBoundary||o.route.errorElement||s===0)?C.createElement(ivt,{location:n.location,component:u,error:l,children:f(),routeContext:{outlet:null,matches:c}}):f()},null)}var Pye;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(Pye||(Pye={}));var EL;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(EL||(EL={}));function svt(e){let t=C.useContext(TN);return t||Si(!1),t}function lvt(e){let t=C.useContext($C);return t||Si(!1),t}function uvt(e){let t=lvt(),n=t.matches[t.matches.length-1];return n.route.id||Si(!1),n.route.id}function cvt(){var e;let t=C.useContext(Oze),n=svt(EL.UseRouteError),r=uvt(EL.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function fvt(e){let{fallbackElement:t,router:n}=e,r=C.useCallback(()=>n.state,[n]),i=tvt(n.subscribe,r,r),a=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:l=>n.navigate(l),push:(l,u,c)=>n.navigate(l,{state:u,preventScrollReset:c?.preventScrollReset}),replace:(l,u,c)=>n.navigate(l,{replace:!0,state:u,preventScrollReset:c?.preventScrollReset})}),[n]),o=n.basename||"/",s=C.useMemo(()=>({router:n,navigator:a,static:!1,basename:o}),[n,a,o]);return C.createElement(C.Fragment,null,C.createElement(ffe.Provider,{value:s},C.createElement(TN.Provider,{value:i},C.createElement(pvt,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:a},n.state.initialized?C.createElement(gvt,null):t))),null)}function dvt(e){let{to:t,replace:n,state:r,relative:i}=e;l7()||Si(!1);let a=C.useContext(TN),o=sm();return C.useEffect(()=>{a&&a.navigation.state!=="idle"||o(t,{replace:n,state:r,relative:i})}),null}function hvt(e){Si(!1)}function pvt(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ks.Pop,navigator:a,static:o=!1}=e;l7()&&Si(!1);let s=t.replace(/^\/*/,"/"),l=C.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=om(r));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:h="default"}=r,p=C.useMemo(()=>{let g=AN(u,s);return g==null?null:{location:{pathname:g,search:c,hash:f,state:d,key:h},navigationType:i}},[s,u,c,f,d,h,i]);return p==null?null:C.createElement(dfe.Provider,{value:l},C.createElement(DN.Provider,{children:n,value:p}))}function gvt(e){let{children:t,location:n}=e,r=C.useContext(ffe),i=r&&!t?r.router.routes:sae(t);return nvt(i,n)}var Fye;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Fye||(Fye={}));new Promise(()=>{});function sae(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(r,i)=>{if(!C.isValidElement(r))return;if(r.type===C.Fragment){n.push.apply(n,sae(r.props.children,t));return}r.type!==hvt&&Si(!1),!r.props.index||!r.props.children||Si(!1);let a=[...t,i],o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=sae(r.props.children,a)),n.push(o)}),n}function mvt(e){return!!e.ErrorBoundary||!!e.errorElement}/**
* React Router DOM v6.9.0
*
* Copyright (c) Remix Software Inc.
@@ -97,28 +97,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
- */function lae(){return lae=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?so(d3,--qu):0,E4--,rs===10&&(E4=1,c7--),rs}function Dc(){return rs=qu2||x4(rs)>3?"":" "}function Uze(e){for(;Dc();)switch(x4(rs)){case 0:Av(vfe(qu-1),e);break;case 2:Av(g6(rs),e);break;default:Av(UC(rs),e)}return e}function jze(e,t){for(;--t&&Dc()&&!(rs<48||rs>102||rs>57&&rs<65||rs>70&&rs<97););return jC(e,yS()+(t<6&&E0()==32&&Dc()==32))}function xL(e){for(;Dc();)switch(rs){case e:return qu;case 34:case 39:e!==34&&e!==39&&xL(rs);break;case 40:e===41&&xL(e);break;case 92:Dc();break}return qu}function Hze(e,t){for(;Dc()&&e+rs!==47+10;)if(e+rs===42+42&&E0()===47)break;return"/*"+jC(t,qu-1)+"*"+UC(e===47?e:Dc())}function vfe(e){for(;!x4(E0());)Dc();return jC(e,qu)}function yfe(e){return LN(bS("",null,null,null,[""],e=ON(e),0,[0],e))}function bS(e,t,n,r,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,h=0,p=0,g=1,b=1,m=1,v=0,w="",k=i,E=a,S=r,T=w;b;)switch(p=v,v=Dc()){case 40:if(p!=108&&so(T,f-1)==58){r4(T+=pr(g6(v),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:T+=g6(v);break;case 9:case 10:case 13:case 32:T+=zze(p);break;case 92:T+=jze(yS()-1,7);continue;case 47:switch(E0()){case 42:case 47:Av(qze(Hze(Dc(),yS()),t,n),l);break;default:T+="/"}break;case 123*g:s[u++]=Gf(T)*m;case 125*g:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+c:h>0&&Gf(T)-f&&Av(h>32?cae(T+";",r,n,f-1):cae(pr(T," ","")+";",r,n,f-2),l);break;case 59:T+=";";default:if(Av(S=uae(T,t,n,u,c,i,s,w,k=[],E=[],f),a),v===123)if(c===0)bS(T,t,S,S,k,a,f,s,E);else switch(d===99&&so(T,3)===110?100:d){case 100:case 109:case 115:bS(e,S,S,r&&Av(uae(e,S,S,0,0,i,s,w,i,k=[],f),E),i,E,f,s,r?k:E);break;default:bS(T,S,S,S,[""],E,0,s,E)}}u=c=h=0,g=m=1,w=T="",f=o;break;case 58:f=1+Gf(T),h=p;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&Nze()==125)continue}switch(T+=UC(v),v*g){case 38:m=c>0?1:(T+="\f",-1);break;case 44:s[u++]=(Gf(T)-1)*m,m=1;break;case 64:E0()===45&&(T+=g6(Dc())),d=E0(),c=f=Gf(w=T+=vfe(yS())),v++;break;case 45:p===45&&Gf(T)==2&&(g=0)}}return a}function uae(e,t,n,r,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=J6(d),p=0,g=0,b=0;p0?d[m]+" "+v:pr(v,/&\f/g,d[m])))&&(l[b++]=w);return f7(e,t,n,i===0?zC:s,l,u,c)}function qze(e,t,n){return f7(e,t,n,hfe,UC(Fze()),jg(e,2,-2),0)}function cae(e,t,n,r){return f7(e,t,n,u7,jg(e,0,r),jg(e,r+1,-1),r)}function bfe(e,t,n){switch(pfe(e,t)){case 5103:return Rr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Rr+e+e;case 4789:return Vp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Rr+e+Vp+e+Ci+e+e;case 5936:switch(so(e,t+11)){case 114:return Rr+e+Ci+pr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rr+e+Ci+pr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rr+e+Ci+pr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Rr+e+Ci+e+e;case 6165:return Rr+e+Ci+"flex-"+e+e;case 5187:return Rr+e+pr(e,/(\w+).+(:[^]+)/,Rr+"box-$1$2"+Ci+"flex-$1$2")+e;case 5443:return Rr+e+Ci+"flex-item-"+pr(e,/flex-|-self/g,"")+(wp(e,/flex-|baseline/)?"":Ci+"grid-row-"+pr(e,/flex-|-self/g,""))+e;case 4675:return Rr+e+Ci+"flex-line-pack"+pr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Rr+e+Ci+pr(e,"shrink","negative")+e;case 5292:return Rr+e+Ci+pr(e,"basis","preferred-size")+e;case 6060:return Rr+"box-"+pr(e,"-grow","")+Rr+e+Ci+pr(e,"grow","positive")+e;case 4554:return Rr+pr(e,/([^-])(transform)/g,"$1"+Rr+"$2")+e;case 6187:return pr(pr(pr(e,/(zoom-|grab)/,Rr+"$1"),/(image-set)/,Rr+"$1"),e,"")+e;case 5495:case 3959:return pr(e,/(image-set\([^]*)/,Rr+"$1$`$1");case 4968:return pr(pr(e,/(.+:)(flex-)?(.*)/,Rr+"box-pack:$3"+Ci+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Rr+e+e;case 4200:if(!wp(e,/flex-|baseline/))return Ci+"grid-column-align"+jg(e,t)+e;break;case 2592:case 3360:return Ci+pr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,wp(r.props,/grid-\w+-end/)})?~r4(e+(n=n[t].value),"span")?e:Ci+pr(e,"-start","")+e+Ci+"grid-row-span:"+(~r4(n,"span")?wp(n,/\d+/):+wp(n,/\d+/)-+wp(e,/\d+/))+";":Ci+pr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return wp(r.props,/grid-\w+-start/)})?e:Ci+pr(pr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return pr(e,/(.+)-inline(.+)/,Rr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Gf(e)-1-t>6)switch(so(e,t+1)){case 109:if(so(e,t+4)!==45)break;case 102:return pr(e,/(.+:)(.+)-([^]+)/,"$1"+Rr+"$2-$3$1"+Vp+(so(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~r4(e,"stretch")?bfe(pr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return pr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,a,o,s,l,u){return Ci+i+":"+a+u+(o?Ci+i+"-span:"+(s?l:+l-+a)+u:"")+e});case 4949:if(so(e,t+6)===121)return pr(e,":",":"+Rr)+e;break;case 6444:switch(so(e,so(e,14)===45?18:11)){case 120:return pr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Rr+(so(e,14)===45?"inline-":"")+"box$3$1"+Rr+"$2$3$1"+Ci+"$2box$3")+e;case 100:return pr(e,":",":"+Ci)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return pr(e,"scroll-","scroll-snap-")+e}return e}function x0(e,t){for(var n="",r=J6(e),i=0;i-1&&!e.return)switch(e.type){case u7:e.return=bfe(e.value,e.length,n);return;case RN:return x0([c0(e,{value:pr(e.value,"@","@"+Rr)})],r);case zC:if(e.length)return MN(e.props,function(i){switch(wp(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return x0([c0(e,{props:[pr(i,/:(read-\w+)/,":"+Vp+"$1")]})],r);case"::placeholder":return x0([c0(e,{props:[pr(i,/:(plac\w+)/,":"+Rr+"input-$1")]}),c0(e,{props:[pr(i,/:(plac\w+)/,":"+Vp+"$1")]}),c0(e,{props:[pr(i,/:(plac\w+)/,Ci+"input-$1")]})],r)}return""})}}function Ovt(e){switch(e.type){case zC:e.props=e.props.map(function(t){return MN($ze(t),function(n,r,i){switch(so(n,0)){case 12:return jg(n,1,Gf(n));case 0:case 40:case 43:case 62:case 126:return n;case 58:i[++r]==="global"&&(i[r]="",i[++r]="\f"+jg(i[r],r=1,-1));case 32:return r===1?"":n;default:switch(r){case 0:return e=n,J6(i)>1?"":n;case(r=J6(i)-1):case 2:return r===2?n+e+e:n+e;default:return n}}})})}}const Lvt=Object.freeze(Object.defineProperty({__proto__:null,CHARSET:Evt,COMMENT:hfe,COUNTER_STYLE:Ivt,DECLARATION:u7,DOCUMENT:Avt,FONT_FACE:Dvt,FONT_FEATURE_VALUES:Rvt,IMPORT:Lze,KEYFRAMES:RN,MEDIA:Cvt,MOZ:Vp,MS:Ci,NAMESPACE:Tvt,PAGE:_vt,RULESET:zC,SUPPORTS:Svt,VIEWPORT:xvt,WEBKIT:Rr,abs:Bze,alloc:ON,append:Av,assign:Pze,caret:yS,char:Fze,get character(){return rs},get characters(){return d3},charat:so,get column(){return E4},combine:MN,comment:qze,commenter:Hze,compile:yfe,copy:c0,dealloc:LN,declaration:cae,delimit:g6,delimiter:xL,escaping:jze,from:UC,hash:pfe,identifier:vfe,indexof:r4,get length(){return mfe},get line(){return c7},match:wp,middleware:Wze,namespace:Ovt,next:Dc,node:f7,parse:bS,peek:E0,get position(){return qu},prefix:bfe,prefixer:Mvt,prev:Nze,replace:pr,ruleset:uae,rulesheet:Gze,serialize:x0,sizeof:J6,slice:jC,stringify:wfe,strlen:Gf,substr:jg,token:x4,tokenize:$ze,tokenizer:Uze,trim:gfe,whitespace:zze},Symbol.toStringTag,{value:"Module"}));function Vze(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Bvt=function(t,n,r){for(var i=0,a=0;i=a,a=E0(),i===38&&a===12&&(n[r]=1),!x4(a);)Dc();return jC(t,qu)},Pvt=function(t,n){var r=-1,i=44;do switch(x4(i)){case 0:i===38&&E0()===12&&(n[r]=1),t[r]+=Bvt(qu-1,n,r);break;case 2:t[r]+=g6(i);break;case 4:if(i===44){t[++r]=E0()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=UC(i)}while(i=Dc());return t},Fvt=function(t,n){return LN(Pvt(ON(t),n))},zye=new WeakMap,Nvt=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!zye.get(r))&&!i){zye.set(t,!0);for(var a=[],o=Fvt(n,a),s=r.props,l=0,u=0;l6)switch(so(e,t+1)){case 109:if(so(e,t+4)!==45)break;case 102:return pr(e,/(.+:)(.+)-([^]+)/,"$1"+Rr+"$2-$3$1"+Vp+(so(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~r4(e,"stretch")?Kze(pr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(so(e,t+1)!==115)break;case 6444:switch(so(e,Gf(e)-3-(~r4(e,"!important")&&10))){case 107:return pr(e,":",":"+Rr)+e;case 101:return pr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rr+(so(e,14)===45?"inline-":"")+"box$3$1"+Rr+"$2$3$1"+Ci+"$2box$3")+e}break;case 5936:switch(so(e,t+11)){case 114:return Rr+e+Ci+pr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rr+e+Ci+pr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rr+e+Ci+pr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rr+e+Ci+e+e}return e}var zvt=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case u7:t.return=Kze(t.value,t.length);break;case RN:return x0([c0(t,{value:pr(t.value,"@","@"+Rr)})],i);case zC:if(t.length)return MN(t.props,function(a){switch(wp(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return x0([c0(t,{props:[pr(a,/:(read-\w+)/,":"+Vp+"$1")]})],i);case"::placeholder":return x0([c0(t,{props:[pr(a,/:(plac\w+)/,":"+Rr+"input-$1")]}),c0(t,{props:[pr(a,/:(plac\w+)/,":"+Vp+"$1")]}),c0(t,{props:[pr(a,/:(plac\w+)/,Ci+"input-$1")]})],i)}return""})}},Uvt=[zvt],Yze=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||Uvt,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),m=1;m=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var qvt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wvt=/[A-Z]|^ms/g,Gvt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zze=function(t){return t.charCodeAt(1)===45},Uye=function(t){return t!=null&&typeof t!="boolean"},iq=Vze(function(e){return Zze(e)?e:e.replace(Wvt,"-$&").toLowerCase()}),jye=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Gvt,function(r,i,a){return Cp={name:i,styles:a,next:Cp},i})}return qvt[t]!==1&&!Zze(t)&&typeof n=="number"&&n!==0?n+"px":n};function TA(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Cp={name:n.name,styles:n.styles,next:Cp},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Cp={name:r.name,styles:r.styles,next:Cp},r=r.next;var i=n.styles+";";return i}return Vvt(e,t,n)}case"function":{if(e!==void 0){var a=Cp,o=n(e);return Cp=a,TA(e,t,o)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Vvt(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i1&&o+i.length*l+u.length>=f));)i.push(u),o+=u.length,n=n.parentNode;return i.reverse().join(s)}catch{return""}}function i2t(e,t){const n=e,r=[];let i,a,o,s,l;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&f2(i))for(a=i.split(/\s+/),l=0;l1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return oUe({host:a,pass:i,path:l,projectId:u,port:o,protocol:n,publicKey:r})}function oUe(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function c2t(e){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach(a=>{if(!e[a])throw new Nu(`Invalid Sentry Dsn: ${a} missing`)}),!n.match(/^\d+$/))throw new Nu(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!l2t(r))throw new Nu(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new Nu(`Invalid Sentry Dsn: Invalid port ${t}`);return!0}function f2t(e){const t=typeof e=="string"?u2t(e):oUe(e);return c2t(t),t}const d2t="Sentry Logger ",SL=["debug","info","warn","error","log","assert","trace"];function sUe(e){if(!("console"in sd))return e();const t=sd.console,n={};SL.forEach(r=>{const i=t[r]&&t[r].__sentry_original__;r in t&&i&&(n[r]=t[r],t[r]=i)});try{return e()}finally{Object.keys(n).forEach(r=>{t[r]=n[r]})}}function Gye(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?SL.forEach(n=>{t[n]=(...r)=>{e&&sUe(()=>{sd.console[n](`${d2t}[${n}]:`,...r)})}}):SL.forEach(n=>{t[n]=()=>{}}),t}let Vn;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Vn=Afe("logger",Gye):Vn=Gye();function wS(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Vye(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rh2t(e,r,n))}function zu(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);if(typeof i=="function")try{lUe(i,r)}catch{}e[t]=i}function Dfe(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function lUe(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,Dfe(e,"__sentry_original__",t)}function Ife(e){return e.__sentry_original__}function p2t(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function uUe(e){if(nUe(e))return{message:e.message,name:e.name,stack:e.stack,...Yye(e)};if(xfe(e)){const t={type:e.type,target:Kye(e.target),currentTarget:Kye(e.currentTarget),...Yye(e)};return typeof CustomEvent<"u"&&r1(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Kye(e){try{return e2t(e)?Q6(e):Object.prototype.toString.call(e)}catch{return""}}function Yye(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function g2t(e,t=40){const n=Object.keys(uUe(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return wS(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:wS(i,t)}return""}function qv(e){return fae(e,new Map)}function fae(e,t){if(Z6(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=fae(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(fae(i,t))}),r}return e}const m2t=50,Xye=/\(error: (.*)\)/;function cUe(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[];for(const a of n.split(`
-`).slice(r)){if(a.length>1024)continue;const o=Xye.test(a)?a.replace(Xye,"$1"):a;for(const s of t){const l=s(o);if(l){i.push(l);break}}}return y2t(i)}}function v2t(e){return Array.isArray(e)?cUe(...e):e}function y2t(e){if(!e.length)return[];let t=e;const n=t[0].function||"",r=t[t.length-1].function||"";return(n.indexOf("captureMessage")!==-1||n.indexOf("captureException")!==-1)&&(t=t.slice(1)),r.indexOf("sentryWrapped")!==-1&&(t=t.slice(0,-1)),t.slice(0,m2t).map(i=>({...i,filename:i.filename||t[0].filename,function:i.function||"?"})).reverse()}const aq="";function d2(e){try{return!e||typeof e!="function"?aq:e.name||aq}catch{return aq}}const Gb=PN();function fUe(){if(!("fetch"in Gb))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function dae(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function b2t(){if(!fUe())return!1;if(dae(Gb.fetch))return!0;let e=!1;const t=Gb.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=dae(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Vn.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function w2t(){const e=Gb.chrome,t=e&&e.app&&e.app.runtime,n="history"in Gb&&!!Gb.history.pushState&&!!Gb.history.replaceState;return!t&&n}const is=PN(),kS={},Jye={};function k2t(e){if(!Jye[e])switch(Jye[e]=!0,e){case"console":_2t();break;case"dom":R2t();break;case"xhr":S2t();break;case"fetch":C2t();break;case"history":A2t();break;case"error":M2t();break;case"unhandledrejection":O2t();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Vn.warn("unknown instrumentation type:",e);return}}function Yf(e,t){kS[e]=kS[e]||[],kS[e].push(t),k2t(e)}function S0(e,t){if(!(!e||!kS[e]))for(const n of kS[e]||[])try{n(t)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Vn.error(`Error while triggering instrumentation handler.
+ */function lae(){return lae=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?so(d3,--qu):0,E4--,rs===10&&(E4=1,c7--),rs}function Dc(){return rs=qu2||x4(rs)>3?"":" "}function Uze(e){for(;Dc();)switch(x4(rs)){case 0:Av(vfe(qu-1),e);break;case 2:Av(g6(rs),e);break;default:Av(UC(rs),e)}return e}function jze(e,t){for(;--t&&Dc()&&!(rs<48||rs>102||rs>57&&rs<65||rs>70&&rs<97););return jC(e,yS()+(t<6&&E0()==32&&Dc()==32))}function xL(e){for(;Dc();)switch(rs){case e:return qu;case 34:case 39:e!==34&&e!==39&&xL(rs);break;case 40:e===41&&xL(e);break;case 92:Dc();break}return qu}function Hze(e,t){for(;Dc()&&e+rs!==47+10;)if(e+rs===42+42&&E0()===47)break;return"/*"+jC(t,qu-1)+"*"+UC(e===47?e:Dc())}function vfe(e){for(;!x4(E0());)Dc();return jC(e,qu)}function yfe(e){return LN(bS("",null,null,null,[""],e=ON(e),0,[0],e))}function bS(e,t,n,r,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,h=0,p=0,g=1,b=1,m=1,v=0,w="",k=i,E=a,S=r,T=w;b;)switch(p=v,v=Dc()){case 40:if(p!=108&&so(T,f-1)==58){r4(T+=pr(g6(v),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:T+=g6(v);break;case 9:case 10:case 13:case 32:T+=zze(p);break;case 92:T+=jze(yS()-1,7);continue;case 47:switch(E0()){case 42:case 47:Av(qze(Hze(Dc(),yS()),t,n),l);break;default:T+="/"}break;case 123*g:s[u++]=Gf(T)*m;case 125*g:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+c:h>0&&Gf(T)-f&&Av(h>32?cae(T+";",r,n,f-1):cae(pr(T," ","")+";",r,n,f-2),l);break;case 59:T+=";";default:if(Av(S=uae(T,t,n,u,c,i,s,w,k=[],E=[],f),a),v===123)if(c===0)bS(T,t,S,S,k,a,f,s,E);else switch(d===99&&so(T,3)===110?100:d){case 100:case 109:case 115:bS(e,S,S,r&&Av(uae(e,S,S,0,0,i,s,w,i,k=[],f),E),i,E,f,s,r?k:E);break;default:bS(T,S,S,S,[""],E,0,s,E)}}u=c=h=0,g=m=1,w=T="",f=o;break;case 58:f=1+Gf(T),h=p;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&Nze()==125)continue}switch(T+=UC(v),v*g){case 38:m=c>0?1:(T+="\f",-1);break;case 44:s[u++]=(Gf(T)-1)*m,m=1;break;case 64:E0()===45&&(T+=g6(Dc())),d=E0(),c=f=Gf(w=T+=vfe(yS())),v++;break;case 45:p===45&&Gf(T)==2&&(g=0)}}return a}function uae(e,t,n,r,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=J6(d),p=0,g=0,b=0;p0?d[m]+" "+v:pr(v,/&\f/g,d[m])))&&(l[b++]=w);return f7(e,t,n,i===0?zC:s,l,u,c)}function qze(e,t,n){return f7(e,t,n,hfe,UC(Fze()),jg(e,2,-2),0)}function cae(e,t,n,r){return f7(e,t,n,u7,jg(e,0,r),jg(e,r+1,-1),r)}function bfe(e,t,n){switch(pfe(e,t)){case 5103:return Rr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Rr+e+e;case 4789:return Vp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Rr+e+Vp+e+Ci+e+e;case 5936:switch(so(e,t+11)){case 114:return Rr+e+Ci+pr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rr+e+Ci+pr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rr+e+Ci+pr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Rr+e+Ci+e+e;case 6165:return Rr+e+Ci+"flex-"+e+e;case 5187:return Rr+e+pr(e,/(\w+).+(:[^]+)/,Rr+"box-$1$2"+Ci+"flex-$1$2")+e;case 5443:return Rr+e+Ci+"flex-item-"+pr(e,/flex-|-self/g,"")+(wp(e,/flex-|baseline/)?"":Ci+"grid-row-"+pr(e,/flex-|-self/g,""))+e;case 4675:return Rr+e+Ci+"flex-line-pack"+pr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Rr+e+Ci+pr(e,"shrink","negative")+e;case 5292:return Rr+e+Ci+pr(e,"basis","preferred-size")+e;case 6060:return Rr+"box-"+pr(e,"-grow","")+Rr+e+Ci+pr(e,"grow","positive")+e;case 4554:return Rr+pr(e,/([^-])(transform)/g,"$1"+Rr+"$2")+e;case 6187:return pr(pr(pr(e,/(zoom-|grab)/,Rr+"$1"),/(image-set)/,Rr+"$1"),e,"")+e;case 5495:case 3959:return pr(e,/(image-set\([^]*)/,Rr+"$1$`$1");case 4968:return pr(pr(e,/(.+:)(flex-)?(.*)/,Rr+"box-pack:$3"+Ci+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Rr+e+e;case 4200:if(!wp(e,/flex-|baseline/))return Ci+"grid-column-align"+jg(e,t)+e;break;case 2592:case 3360:return Ci+pr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,wp(r.props,/grid-\w+-end/)})?~r4(e+(n=n[t].value),"span")?e:Ci+pr(e,"-start","")+e+Ci+"grid-row-span:"+(~r4(n,"span")?wp(n,/\d+/):+wp(n,/\d+/)-+wp(e,/\d+/))+";":Ci+pr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return wp(r.props,/grid-\w+-start/)})?e:Ci+pr(pr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return pr(e,/(.+)-inline(.+)/,Rr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Gf(e)-1-t>6)switch(so(e,t+1)){case 109:if(so(e,t+4)!==45)break;case 102:return pr(e,/(.+:)(.+)-([^]+)/,"$1"+Rr+"$2-$3$1"+Vp+(so(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~r4(e,"stretch")?bfe(pr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return pr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,a,o,s,l,u){return Ci+i+":"+a+u+(o?Ci+i+"-span:"+(s?l:+l-+a)+u:"")+e});case 4949:if(so(e,t+6)===121)return pr(e,":",":"+Rr)+e;break;case 6444:switch(so(e,so(e,14)===45?18:11)){case 120:return pr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Rr+(so(e,14)===45?"inline-":"")+"box$3$1"+Rr+"$2$3$1"+Ci+"$2box$3")+e;case 100:return pr(e,":",":"+Ci)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return pr(e,"scroll-","scroll-snap-")+e}return e}function x0(e,t){for(var n="",r=J6(e),i=0;i-1&&!e.return)switch(e.type){case u7:e.return=bfe(e.value,e.length,n);return;case RN:return x0([c0(e,{value:pr(e.value,"@","@"+Rr)})],r);case zC:if(e.length)return MN(e.props,function(i){switch(wp(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return x0([c0(e,{props:[pr(i,/:(read-\w+)/,":"+Vp+"$1")]})],r);case"::placeholder":return x0([c0(e,{props:[pr(i,/:(plac\w+)/,":"+Rr+"input-$1")]}),c0(e,{props:[pr(i,/:(plac\w+)/,":"+Vp+"$1")]}),c0(e,{props:[pr(i,/:(plac\w+)/,Ci+"input-$1")]})],r)}return""})}}function Lvt(e){switch(e.type){case zC:e.props=e.props.map(function(t){return MN($ze(t),function(n,r,i){switch(so(n,0)){case 12:return jg(n,1,Gf(n));case 0:case 40:case 43:case 62:case 126:return n;case 58:i[++r]==="global"&&(i[r]="",i[++r]="\f"+jg(i[r],r=1,-1));case 32:return r===1?"":n;default:switch(r){case 0:return e=n,J6(i)>1?"":n;case(r=J6(i)-1):case 2:return r===2?n+e+e:n+e;default:return n}}})})}}const Bvt=Object.freeze(Object.defineProperty({__proto__:null,CHARSET:xvt,COMMENT:hfe,COUNTER_STYLE:Rvt,DECLARATION:u7,DOCUMENT:Tvt,FONT_FACE:Ivt,FONT_FEATURE_VALUES:Mvt,IMPORT:Lze,KEYFRAMES:RN,MEDIA:Evt,MOZ:Vp,MS:Ci,NAMESPACE:Dvt,PAGE:Cvt,RULESET:zC,SUPPORTS:Avt,VIEWPORT:Svt,WEBKIT:Rr,abs:Bze,alloc:ON,append:Av,assign:Pze,caret:yS,char:Fze,get character(){return rs},get characters(){return d3},charat:so,get column(){return E4},combine:MN,comment:qze,commenter:Hze,compile:yfe,copy:c0,dealloc:LN,declaration:cae,delimit:g6,delimiter:xL,escaping:jze,from:UC,hash:pfe,identifier:vfe,indexof:r4,get length(){return mfe},get line(){return c7},match:wp,middleware:Wze,namespace:Lvt,next:Dc,node:f7,parse:bS,peek:E0,get position(){return qu},prefix:bfe,prefixer:Ovt,prev:Nze,replace:pr,ruleset:uae,rulesheet:Gze,serialize:x0,sizeof:J6,slice:jC,stringify:wfe,strlen:Gf,substr:jg,token:x4,tokenize:$ze,tokenizer:Uze,trim:gfe,whitespace:zze},Symbol.toStringTag,{value:"Module"}));function Vze(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Pvt=function(t,n,r){for(var i=0,a=0;i=a,a=E0(),i===38&&a===12&&(n[r]=1),!x4(a);)Dc();return jC(t,qu)},Fvt=function(t,n){var r=-1,i=44;do switch(x4(i)){case 0:i===38&&E0()===12&&(n[r]=1),t[r]+=Pvt(qu-1,n,r);break;case 2:t[r]+=g6(i);break;case 4:if(i===44){t[++r]=E0()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=UC(i)}while(i=Dc());return t},Nvt=function(t,n){return LN(Fvt(ON(t),n))},zye=new WeakMap,$vt=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!zye.get(r))&&!i){zye.set(t,!0);for(var a=[],o=Nvt(n,a),s=r.props,l=0,u=0;l6)switch(so(e,t+1)){case 109:if(so(e,t+4)!==45)break;case 102:return pr(e,/(.+:)(.+)-([^]+)/,"$1"+Rr+"$2-$3$1"+Vp+(so(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~r4(e,"stretch")?Kze(pr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(so(e,t+1)!==115)break;case 6444:switch(so(e,Gf(e)-3-(~r4(e,"!important")&&10))){case 107:return pr(e,":",":"+Rr)+e;case 101:return pr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rr+(so(e,14)===45?"inline-":"")+"box$3$1"+Rr+"$2$3$1"+Ci+"$2box$3")+e}break;case 5936:switch(so(e,t+11)){case 114:return Rr+e+Ci+pr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rr+e+Ci+pr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rr+e+Ci+pr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rr+e+Ci+e+e}return e}var Uvt=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case u7:t.return=Kze(t.value,t.length);break;case RN:return x0([c0(t,{value:pr(t.value,"@","@"+Rr)})],i);case zC:if(t.length)return MN(t.props,function(a){switch(wp(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return x0([c0(t,{props:[pr(a,/:(read-\w+)/,":"+Vp+"$1")]})],i);case"::placeholder":return x0([c0(t,{props:[pr(a,/:(plac\w+)/,":"+Rr+"input-$1")]}),c0(t,{props:[pr(a,/:(plac\w+)/,":"+Vp+"$1")]}),c0(t,{props:[pr(a,/:(plac\w+)/,Ci+"input-$1")]})],i)}return""})}},jvt=[Uvt],Yze=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||jvt,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),m=1;m=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Wvt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Gvt=/[A-Z]|^ms/g,Vvt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zze=function(t){return t.charCodeAt(1)===45},Uye=function(t){return t!=null&&typeof t!="boolean"},iq=Vze(function(e){return Zze(e)?e:e.replace(Gvt,"-$&").toLowerCase()}),jye=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Vvt,function(r,i,a){return Cp={name:i,styles:a,next:Cp},i})}return Wvt[t]!==1&&!Zze(t)&&typeof n=="number"&&n!==0?n+"px":n};function TA(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Cp={name:n.name,styles:n.styles,next:Cp},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Cp={name:r.name,styles:r.styles,next:Cp},r=r.next;var i=n.styles+";";return i}return Kvt(e,t,n)}case"function":{if(e!==void 0){var a=Cp,o=n(e);return Cp=a,TA(e,t,o)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Kvt(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i1&&o+i.length*l+u.length>=f));)i.push(u),o+=u.length,n=n.parentNode;return i.reverse().join(s)}catch{return""}}function a2t(e,t){const n=e,r=[];let i,a,o,s,l;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&f2(i))for(a=i.split(/\s+/),l=0;l1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return oUe({host:a,pass:i,path:l,projectId:u,port:o,protocol:n,publicKey:r})}function oUe(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function f2t(e){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach(a=>{if(!e[a])throw new Nu(`Invalid Sentry Dsn: ${a} missing`)}),!n.match(/^\d+$/))throw new Nu(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!u2t(r))throw new Nu(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new Nu(`Invalid Sentry Dsn: Invalid port ${t}`);return!0}function d2t(e){const t=typeof e=="string"?c2t(e):oUe(e);return f2t(t),t}const h2t="Sentry Logger ",SL=["debug","info","warn","error","log","assert","trace"];function sUe(e){if(!("console"in sd))return e();const t=sd.console,n={};SL.forEach(r=>{const i=t[r]&&t[r].__sentry_original__;r in t&&i&&(n[r]=t[r],t[r]=i)});try{return e()}finally{Object.keys(n).forEach(r=>{t[r]=n[r]})}}function Gye(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?SL.forEach(n=>{t[n]=(...r)=>{e&&sUe(()=>{sd.console[n](`${h2t}[${n}]:`,...r)})}}):SL.forEach(n=>{t[n]=()=>{}}),t}let Vn;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Vn=Afe("logger",Gye):Vn=Gye();function wS(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Vye(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r