PageSourceSearch

https://ngrok.com/assets/icon-BT8FnkkJ-BXNRZ6YI.js

js ngrok.com collected 2026-10-01 07:18:14 UTC 162,944 bytes, 16 lines download raw bytes

vendor: 4,996 bytes, line 1
1var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ee=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function L(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;
1try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,ee)}catch(e){ee(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function te(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else L(te.bind(null,e))}var R={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=R,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=te,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;
1if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=L,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),d=o(((e,t)=>{t.exports=u()})),f=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,p=/^[\\/]{2}/;function m(e,t){return t+e.replace(/\\/g,`/`)}var h=`popstate`;function g(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function _(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return S(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:C(t)}return T(t,n,null,e)}function v(e,t){if(e===!1||e==null)throw Error(t)}function y(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function b(){return Math.random().toString(36).substring(2,10)}function x(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function S(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?w(t):t,state:n,key:t&&t.key||r||b(),mask:i}}function C({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function w(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function T(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:_.location,delta:t})}function f(e,t){s=`PUSH`;let r=g(e)?e:S(_.location,e,t);n&&n(r,e),l=u()+1;let d=x(r,l),f=_.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:_.location,delta:1})}function p(e,t){s=`REPLACE`;let r=g(e)?e:S(_.location,e,t);n&&n(r,e),l=u();let i=x(r,l),d=_.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:_.location,delta:0})}function m(e){return E(i,e)}let _={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(h,d),c=e,()=>{i.removeEventListener(h,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return _}function E(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),v(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:C(t);return i=i.replace(/ $/,`%20`),!n&&p.test(i)&&(i=r+i),new URL(i,r)}var D=l(d(),1),O=class{#e=new Map;constructor(e){if(e)for(let[t,n]of e)this.set(t,n)}get(e){if(this.#e.has(e))return this.#e.get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){this.#e.set(e,t)}},k=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`,`unstable_validateParams`]);function A(e){return k.has(e)}var j=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`,`unstable_validateParams`]);function M(e){return j.has(e)}function N(e){return e.index===!0}function P(e){let t={};return e.Component&&Object.assign(t,{element:D.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:D.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:D.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function F(e,t=P,n=[],r={},i=!1){return e.map((e,a)=>
1{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(v(e.index!==!0||!e.children,`Cannot specify children on an index route`),v(i||!r[s],`Found a route id collision on id "${s}".  Route id's must be globally unique within Data Router usages`),N(e)){let n={...e,id:s};return r[s]=I(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=I(n,t(n)),e.children&&(n.children=F(e.children,t,o,r,i)),n}})}function I(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function ee(e,t,n=`/`){return L(e,t,n,!1)}function L(e,t,n,r,i){let a=_e((typeof t==`string`?w(t):t).pathname||`/`,n);if(a==null)return null;let o=i??R(e),s=null,c=ge(a);for(let e=0;s==null&&e<o.length;++e)s=de(o[e],c,r);return s}function te(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,loaderData:t[n.id],handle:n.handle}}function R(e){let t=z(e);return ne(t),t}function z(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;v(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=G([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(v(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),z(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:le(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=W(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of B(e.path))a(e,t,!0,n)}),t}function B(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=B(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function ne(e){e.sort((e,t)=>e.score===t.score?ue(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var re=/^:[\w-]+$/,V=/^:[\w-]+/,H=3.5,ie=3,ae=2,oe=1,U=10,se=-2,ce=e=>e===`*`;function le(e,t){let n=e.split(`/`),r=n.length;return n.some(ce)&&(r+=se),t&&(r+=ae),n.filter(e=>!ce(e)).reduce((e,t)=>e+(re.test(t)?ie:V.test(t)?H:t===``?oe:U),r)}function ue(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function de(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?he(u,l,s.matcher,s.compiledParams):me(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=me({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;
1Object.assign(i,d.params),o.push({params:i,pathname:G([a,d.pathname]),pathnameBase:Oe(G([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=G([a,d.pathnameBase]))}return o}var fe={"%24":`$`,"%26":`&`,"%2B":`+`,"%2C":`,`,"%3A":`:`,"%3B":`;`,"%3D":`=`,"%40":`@`};function pe(e){return encodeURIComponent(e).replace(/%(?:24|26|2B|2C|3A|3B|3D|40)/g,e=>fe[e])}function me(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=W(e.path,e.caseSensitive,e.end);return he(e,t,n,r)}function he(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=De(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=De(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function W(e,t=!1,n=!0){y(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,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ge(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return y(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function _e(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 ve({basename:e,pathname:t}){return t===`/`?e:G([e,t])}var ye=e=>f.test(e);function be(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?w(e):e,a;return n?(n=Ee(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?xe(n.substring(1),`/`):xe(n,t)):a=t,{pathname:a,search:ke(r),hash:Ae(i)}}function xe(e,t){let n=De(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Se(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 <Link to="..."> and the router will parse it for you.`}function Ce(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function we(e){let t=Ce(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Te(e,t,n,r=!1){let i;typeof e==`string`?i=w(e):(i={...e},v(!i.pathname||!i.pathname.includes(`?`),Se(`?`,`pathname`,`search`,i)),v(!i.pathname||!i.pathname.includes(`#`),Se(`#`,`pathname`,`hash`,i)),v(!i.search||!i.search.includes(`#`),Se(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=be(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Ee=e=>e.replace(/[\\/]{2,}/g,`/`),G=e=>Ee(e.join(`/`));function De(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Oe=e=>De(e).replace(/^\/*/,`/`),ke=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Ae=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,je=class{type=`DataWithResponseInit`;data;init;constructor(e,t){this.data=e,this.init=t||null}};function Me(e,t){return new je(e,typeof t==`number`?{status:t}:t)}var Ne=(e,t=302)=>{let n=t;
1typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,{...n,headers:r})},Pe=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],Fe=class{status;statusText;data;error;internal;constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ie(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Le(e){return G(e.map(e=>e.route.path).filter(Boolean))||`/`}function Re(e,t){let n=new URL(typeof e==`string`||e instanceof URL?e:e.url),r=typeof t==`string`?w(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);let i=e.toString();n.search=i?`?${i}`:``}else n.search=``;return n.hash=r.hash||``,n}var ze=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Be(e,t){let n=e;if(typeof n!=`string`||!f.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(ze)try{let e=new URL(window.location.href),r=p.test(n)?new URL(m(n,e.protocol)):new URL(n),a=_e(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{y(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var Ve=Symbol(`Uninstrumented`),He=new WeakMap;function Ue(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){e.lazy!=null&&n.lazy.push(e.lazy),e[`lazy.loader`]!=null&&n[`lazy.loader`].push(e[`lazy.loader`]),e[`lazy.action`]!=null&&n[`lazy.action`].push(e[`lazy.action`]),e[`lazy.middleware`]!=null&&n[`lazy.middleware`].push(e[`lazy.middleware`]),e.middleware!=null&&n.middleware.push(e.middleware),e.loader!=null&&n.loader.push(e.loader),e.action!=null&&n.action.push(e.action)}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=t.lazy;r.lazy=async(...t)=>Ye(await K(n.lazy,void 0,()=>e(...t),Xe))}if(typeof t.lazy==`object`){let e=t.lazy;if(typeof e.middleware==`function`&&n[`lazy.middleware`].length>0){let t=e.middleware;r.lazy=Object.assign(r.lazy||{},{middleware:async(...e)=>Ye(await K(n[`lazy.middleware`],void 0,()=>t(...e),Xe))})}if(typeof e.loader==`function`&&n[`lazy.loader`].length>0){let t=e.loader;r.lazy=Object.assign(r.lazy||{},{loader:async(...e)=>Ye(await K(n[`lazy.loader`],void 0,()=>t(...e),Xe))})}if(typeof e.action==`function`&&n[`lazy.action`].length>0){let t=e.action;r.lazy=Object.assign(r.lazy||{},{action:async(...e)=>Ye(await K(n[`lazy.action`],void 0,()=>t(...e),Xe))})}}if(typeof t.loader==`function`&&n.loader.length>0){let e=Ge(t.loader),i=async(...t)=>Ye(await K(n.loader,Ze(t[0]),()=>e(...t),Xe));e.hydrate===!0&&(i.hydrate=!0),Ke(i,e),r.loader=i}if(typeof t.action==`function`&&n.action.length>0){let e=Ge(t.action),i=async(...t)=>Ye(await K(n.action,Ze(t[0]),()=>e(...t),Xe));Ke(i,e),r.action=i}return t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=Ge(e),r=async(...e)=>Ye(await K(n.middleware,Ze(e[0]),()=>t(...e),Xe));return Ke(r,t),r})),r}function We(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){e.navigate!=null&&n.navigate.push(e.navigate),e.fetch!=null&&n.fetch.push(e.fetch)}})),n.navigate.length>0){let t=Ge(e.navigate),r=async(...r)=>{let[i,a]=r,o,s={to:typeof i==`number`||typeof i==`string`?i:i?C(i):`.`,...Qe(e,a??{})};return Ye(await K(n.navigate,s,async()=>{if(typeof i==`number`)return await t(...r);let n=qe(e,e=>{o=e});try{return await t(...r)}finally{n()}},e=>({...Xe(e),meta:o})))};Ke(r,t),e.navigate=r}if(n.fetch.length>0){let t=Ge(e.fetch),r=async(...r)=>{let[i,a,o,s]=r,c;return Ye(await K(n.fetch,{href:o??`.`,fetcherKey:i,...Qe(e,s??{})},async()=>{let n=qe(e,e=>{c=e});try{return await t(...r)}finally{n()}},e=>({...Xe(e),meta:c})))};Ke(r,t),e.fetch=r}return e}function Ge(e){return e[Ve]??e}function Ke(e,t){e[Ve]=t}function qe(e,t){return He.set(e,t),()=>{He.get(e)===t&&He.delete(e)}}function Je(e){let t=He.get(e);return He.delete(e),t}function Ye(e){if(e.type===`error`)throw e.value;return e.value}async function K(e,t,n,r,i={result:null,innerResult:null},a=e.length-1){let o=e[a];if(o){let s,c=async()=>(s?console.error(`You cannot call instrumented handlers more than once`):s=K(e,t,n,r,i,a-1),await s,v(i.innerResult,`Expected an inner result`),i.innerResult);try{await o(c,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}s||await c(),await s}else{try{i.result={type:`success`,value:await n()}}catch(e){i.result={type:`error`,value:e}}i.innerResult=r(i.result,t)}return i.result?i.result:(i.result={type:`error`,value:Error(`No result assigned in instrumentation chain.`)},i.innerResult=r(i.result,t),i.result)}function Xe(e){return e.type===`error`&&e.value instanceof Error?{status:`error`,error:e.value}:{status:`success`,error:void 0}}function Ze(e){let{request:t,context:n,params:r}=e;return{...e,request:$e(t),params:{...r},context:et(n)}}function Qe(e,t){return{currentUrl:C(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function $e(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function et(e){return{get:t=>e.get(t)}}var tt=class{#e=[];#t=[];#n;constructor(e){this.#n=e}update(e){this.#e=e,this.#t=R(e)}match(e,t=!1){return L(this.#e,e,this.#n,t,this.#t)}},nt=new URL(`http://localhost`);function rt(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),nt)}catch{return nt}}function it(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function at(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function ot(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!it(i,n),s=!it(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!at(e,i)||!it(i,a)))throw Error(`External navigation is not allowed`)}var st=[`POST`,`PUT`,`PATCH`,`DELETE`],ct=new Set(st),lt=[`GET`,...st],ut=new Set(lt),dt=new Set([301,302,303,307,308]),ft=new Set([307,308]),pt={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},mt={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ht={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},gt=`remix-router-transitions`,_t=Symbol(`ResetLoaderData`);function vt(e,t){return e.unstable_routePatternMatching?(v(void 0,`You must call unstable_preloadRoutePattern() from "react-router/route-pattern" before enabling future.unstable_routePatternMatching.`),new(void 0)(t)):new tt(t)}var yt=class{#e;#t;#n;constructor(e,t){this.#e=e,this.#n=t,this.#n.update(e)}get stableRoutes(){return this.#e}get activeRoutes(){return this.#t??this.#e}get hasHMRRoutes(){return this.#t!=null}setRoutes(e){this.#e=e,this.#t||this.#n.update(e)}setHmrRoutes(e){this.#t=e,this.#n.update(e)}commitHmrRoutes(){this.#t&&(this.#e=this.#t,this.#t=void 0,this.#n.update(this.#e))}};function bt(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;v(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties,a=i||(()=>({}));if(e.instrumentations){let t=e.instrumentations;a=e=>({...i?.(e),...Ue(t.map(e=>
1e.route).filter(Boolean),e)})}let o={...e.future},s=e.basename||`/`;s.startsWith(`/`)||(s=`/${s}`);let c=vt(o,s),l={},u=new yt(F(e.routes,a,void 0,l),c),d=e.dataStrategy||Lt,f=null,m=new Set,h=null,g=null,_=null,b=null,x=e.hydrationData!=null,T=c.match(e.history.location),D=!1,k=null,A,j;if(T==null&&!e.patchRoutesOnNavigation){let t=cn(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=sn(u.activeRoutes);A=!0,j=!A,T=n,k={[r.id]:t}}else if(T&&!e.hydrationData&&et(T,e.history.location.pathname).active&&(T=null),!T){A=!1,j=!A,T=[];let t=et(null,e.history.location.pathname);t.active&&t.matches&&(D=!0,T=t.matches)}else if(T.some(e=>e.route.lazy))A=!1,j=!A;else if(!T.some(e=>Tt(e.route)))A=!0,j=!A;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=T;if(n){let e=T.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}j=!1,A=!0,r.forEach(e=>{let r=Et(e.route,t,n);j||=r.renderFallback,A&&=!r.shouldLoad})}let M,N={historyAction:e.history.action,location:e.history.location,matches:T,initialized:A,renderFallback:j,navigation:pt,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||k,fetchers:new Map,blockers:new Map},P=`POP`,I=null,ee=!1,L,R=!1,z=new Map,B=null,ne=!1,re=!1,V=new Set,H=new Map,ie=0,ae=-1,oe=new Map,U=new Set,se=new Map,ce=new Map,le=new Set,ue=new Map,de,fe=null;function pe(){if(f=e.history.listen(({action:t,location:n,delta:r})=>{if(de){de(),de=void 0;return}y(ue.size===0||r!=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 i=Ye({currentLocation:N.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{de=e});e.history.go(r*-1),qe(i,{state:`blocked`,location:n,proceed(){qe(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(N.blockers);e.set(i,ht),W({blockers:e})}}),I?.resolve(),I=null;return}return xe(t,n)}),n){jn(t,z);let e=()=>Mn(t,z);t.addEventListener(`pagehide`,e),B=()=>t.removeEventListener(`pagehide`,e)}return N.initialized||xe(`POP`,N.location,{initialHydration:!0}),M}function me(){f&&f(),B&&B(),m.clear(),L&&L.abort(),N.fetchers.forEach((e,t)=>Le(N.fetchers,t)),N.blockers.forEach((e,t)=>Ke(t))}function he(e){if(m.add(e),h){let{newErrors:t}=h;h=null,e(N,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>m.delete(e)}function W(e,t={}){e.matches&&=e.matches.map(e=>{let t=l[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),N={...N,...e};let n=[],r=[];N.fetchers.forEach((e,t)=>{e.state===`idle`&&(le.has(t)?n.push(t):r.push(t))}),le.forEach(e=>{!N.fetchers.has(e)&&!H.has(e)&&n.push(e)}),m.size===0&&(h={newErrors:e.errors??null}),[...m].forEach(r=>r(N,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Le(N.fetchers,e)),r.forEach(e=>N.fetchers.delete(e))}function ge(t,n,{flushSync:r}={}){let i=N.actionData!=null&&N.navigation.formMethod!=null&&J(N.navigation.formMethod)&&N.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?N.actionData:null;let o=n.loaderData?rn(N.loaderData,n.loaderData,n.matches||[],n.errors):N.loaderData,s=N.blockers;s.size>
10&&!ne&&(s=new Map(s),s.forEach((e,t)=>s.set(t,ht)));let c=!ne&&$e(t,n.matches||N.matches),l=ee===!0||N.navigation.formMethod!=null&&J(N.navigation.formMethod)&&t.state?._isRedirect!==!0;u.commitHmrRoutes(),ne||P===`POP`||(P===`PUSH`?e.history.push(t,t.state):P===`REPLACE`&&e.history.replace(t,t.state));let d;if(P===`POP`&&!ne&&t!==N.location){let e=z.get(N.location.pathname);e&&e.has(t.pathname)?d={currentLocation:N.location,nextLocation:t}:z.has(t.pathname)&&(d={currentLocation:t,nextLocation:N.location})}else if(R){let e=z.get(N.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),z.set(N.location.pathname,e)),d={currentLocation:N.location,nextLocation:t}}W({...n,actionData:a,loaderData:o,historyAction:P,location:t,initialized:!0,renderFallback:!1,navigation:pt,revalidation:`idle`,restoreScrollPosition:c,preventScrollReset:l,blockers:s},{viewTransitionOpts:d,flushSync:r===!0}),P=`POP`,ee=!1,R=!1,ne=!1,re=!1,I?.resolve(),I=null,fe?.resolve(),fe=null}async function ve(t,n){if(I?.resolve(),I=null,typeof t==`number`){I||=Nn();let n=I.promise;return e.history.go(t),n}let r=Je(M),{path:i,submission:a,error:o}=Ct(!1,St(N.location,N.matches,s,t,n?.fromRouteId,n?.relative),n),c;if(n?.mask){let t=typeof n.mask==`string`?w(n.mask):{...N.location.mask,...n.mask};if(c={pathname:t.pathname??``,search:t.search??``,hash:t.hash??``},p.test(c.pathname))throw Error(`External navigation is not allowed`);c.pathname.startsWith(`\\`)&&(c.pathname=c.pathname.replace(/^\\+/,`/`)),ot(typeof n.mask==`string`?n.mask:C(n.mask),C(c),e.history.createURL(`/`),`reject`)}let l=N.location,u=S(l,i,n&&n.state,void 0,c);u={...u,...e.history.encodeLocation(u)},ot(t==null?e.history.createHref(N.location):typeof t==`string`?t:C(t),e.history.createHref(u.mask||u),e.history.createURL(`/`),`reject`);let d=n&&n.replace!=null?n.replace:void 0,f=`PUSH`;d===!0?f=`REPLACE`:d===!1||a!=null&&J(a.formMethod)&&a.formAction===N.location.pathname+N.location.search&&(f=`REPLACE`);let m=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,h=(n&&n.flushSync)===!0,g=Ye({currentLocation:l,nextLocation:u,historyAction:f});if(g){qe(g,{state:`blocked`,location:u,proceed(){qe(g,{state:`proceeding`,proceed:void 0,reset:void 0,location:u}),ve(t,n)},reset(){let e=new Map(N.blockers);e.set(g,ht),W({blockers:e})}});return}await xe(f,u,{submission:a,pendingError:o,preventScrollReset:m,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:h,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate,instrumentationNavigateMetaReceiver:r})}function be(){fe||=Nn(),je(),W({revalidation:`loading`});let e=fe.promise;return N.navigation.state===`submitting`?e:N.navigation.state===`idle`?(xe(N.historyAction,N.location,{startUninterruptedRevalidation:!0}),e):(xe(P||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,enableViewTransition:R===!0}),e)}async function xe(t,n,r){L&&L.abort(),L=null,P=t,ne=(r&&r.startUninterruptedRevalidation)===!0,Qe(N.location,N.matches),ee=(r&&r.preventScrollReset)===!0,R=(r&&r.enableViewTransition)===!0;let i=r?.initialHydration&&N.matches&&N.matches.length>0&&!D?N.matches:c.match(n),a=(r&&r.flushSync)===!0;if(i&&N.initialized&&!re&&dn(N.location,n)&&!(r&&r.submission&&J(r.submission.formMethod))){ge(n,{matches:i},{flushSync:a});return}let o=et(i,n.pathname);if(o.active&&o.matches&&(i=o.matches),r?.instrumentationNavigateMetaReceiver){let t=wn(e.history,n,i);r.instrumentationNavigateMetaReceiver(t)}if(!i){let{error:e,notFoundMatches:t,route:r}=K(n.pathname);ge(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:a});return}let s=r&&r.overrideNavigation?{...r.overrideNavigation,matches:i,historyAction:t}:void 0;L=new AbortController;let l=Qt(e.history,n,L.signal,r&&r.submission),u=e.getContext?await e.getContext():new O,d;if(r&&r.pendingError)d=[on(i).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&J(r.submission.formMethod)){let c=await Se(l,n,r.submission,i,t,u,o.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:a});if(c.shortCircuited)return;if(c.pendingActionResult){let[e,t]=c.pendingActionResult;if(q(t)&&Ie(t.error)&&t.error.status===404){L=null,ge(n,{matches:c.matches,loaderData:{},errors:{[e]:t.error}});return}}i=c.matches||i,d=c.pendingActionResult,s=En(n,i,t,r.submission),a=!1,o.active=!1,l=Qt(e.history,l.url,l.signal)}let{shortCircuited:f,matches:p,loaderData:m,errors:h,workingFetchers:g}=await Ce(l,n,i,t,u,o.active,s,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,a,d,r&&r.callSiteDefaultShouldRevalidate);f||(L=null,ge(n,{matches:p||i,...an(d),loaderData:m,errors:h,...g?{fetchers:g}:{}}))}async function Se(t,n,i,o,c,d,f,p,m={}){if(je(),W({navigation:Dn(n,o,c,i)},{flushSync:m.flushSync===!0}),f){let e=await tt(o,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=sn(u.activeRoutes);
1return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=on(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)o=e.matches;else{let{notFoundMatches:e,error:t,route:r}=K(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=Cn(o,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:cn(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await ke(t,n,Ut(a,l,t,n,o,g,p?[]:r,d),d,null);if(h=e[g.route.id],!h){for(let t of o)if(e[t.route.id]){h=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(gn(h)){let n;return n=m&&m.replace!=null?m.replace:Zt(h.response.headers.get(`Location`),new URL(t.url),s,e.history)===N.location.pathname+N.location.search,await Oe(t,h,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(q(h)){let e=on(o,g.route.id);return(m&&m.replace)!==!0&&(P=`PUSH`),{matches:o,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:o,pendingActionResult:[g.route.id,h]}}async function Ce(t,n,i,o,s,d,f,p,m,h,g,_,v,y){let b=f||En(n,i,o,p),x=p||m||Tn(b),S=!ne&&!g;if(d){if(S){let e=we(v);W({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await tt(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=sn(u.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=on(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=K(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let{dsMatches:C,revalidatingFetchers:w}=wt(t,s,a,l,e.history,N,i,x,n,g?[]:r,g===!0,re,V,le,se,U,c,v,y);if(ae=++ie,!e.dataStrategy&&!C.some(e=>e.shouldLoad)&&!C.some(e=>e.route.middleware&&e.route.middleware.length>0)&&w.length===0){let e=new Map(N.fetchers),t=Ve(e);return ge(n,{matches:i,loaderData:{},errors:v&&q(v[1])?{[v[0]]:v[1].error}:null,...an(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=we(v);t!==void 0&&(e.actionData=t)}w.length>0&&(e.fetchers=Te(w)),W(e,{flushSync:_})}w.forEach(e=>{ze(e.key),e.controller&&H.set(e.key,e.controller)});let T=()=>w.forEach(e=>ze(e.key));L&&L.signal.addEventListener(`abort`,T);let{loaderResults:E,fetcherResults:D}=await Ae(C,w,t,n,s);if(t.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener(`abort`,T),w.forEach(e=>H.delete(e.key));let O=ln(E);if(O)return await Oe(t,O.result,!0,{replace:h}),{shortCircuited:!0};if(O=ln(D),O)return U.add(O.key),await Oe(t,O.result,!0,{replace:h}),{shortCircuited:!0};let k=new Map(N.fetchers),{loaderData:A,errors:j}=nn(N,i,E,v,w,D,k);g&&N.errors&&(j={...N.errors,...j});let M=Ve(k),P=He(ae,k),F=M||P||w.length>0;return{matches:i,loaderData:A,errors:j,...F?{workingFetchers:k}:{}}}function we(e){if(e&&!q(e[1]))return{[e[0]]:e[1].data};if(N.actionData)return Object.keys(N.actionData).length===0?null:N.actionData}function Te(e){let t=new Map(N.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=On(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function Ee(t,n,r,i){ze(t);let a=(i&&i.flushSync)===!0,o=Je(M),l=St(N.location,N.matches,s,r,n,i?.relative),u=c.match(l),d=et(u,l);if(d.active&&d.matches&&(u=d.matches),o&&o(wn(e.history,l,u)),!u){Ne(t,n,cn(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=Ct(!0,l,i);if(m){Ne(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new O,g=(i&&i.preventScrollReset)===!0;if(p&&J(p.formMethod)){await G(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate);return}let _={routeId:n,path:f,isDiscovering:d.active};se.set(t,_),await De(t,_,u,h,a,g,p)}async function G(t,n,i,o,s,u,d,f,p,m){je(),se.delete(t),Me(t,kn(p,N.fetchers.get(t)),{flushSync:d});let h=new AbortController,g=Qt(e.history,i,h.signal,p);if(u){let e=await tt(o,new URL(g.url).pathname,g.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){Ne(t,n,e.error,{flushSync:d});return}if(e.matches)o=e.matches;else{Ne(t,n,cn(404,{pathname:i}),{flushSync:d});return}}let _=Cn(o,i);if(!_.route.action&&!_.route.lazy){Ne(t,n,cn(405,{method:p.formMethod,pathname:i,routeId:n}),{flushSync:d});return}H.set(t,h);let y=ie,b=Ut(a,l,g,i,o,_,r,s),x=await ke(g,i,b,s,t),S=x[_.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(g.signal.aborted){H.get(t)===h&&H.delete(t);return}if(le.has(t)){if(gn(S)||q(S)){Me(t,An(void 0));return}}else{if(gn(S)){if(H.delete(t),ae>y){Me(t,An(void 0));return}return U.add(t),Me(t,On(p)),Oe(g,S,!1,{fetcherSubmission:p,preventScrollReset:f})}if(q(S)){Ne(t,n,S.error);return}}let C=N.navigation.location||N.location,w=Qt(e.history,C,h.signal),T=N.navigation.state===`idle`?N.matches:c.match(N.navigation.location);v(T,`Didn't find any matches after fetcher action`);let E=++ie;oe.set(t,E);let{dsMatches:D,revalidatingFetchers:O}=wt(w,s,a,l,e.history,N,T,p,C,r,!1,re,V,le,se,U,c,[_.route.id,S],m),k=On(p,S.data),A=new Map(N.fetchers);A.set(t,k),O.filter(e=>
1e.key!==t).forEach(e=>{let t=e.key,n=A.get(t),r=On(void 0,n?n.data:void 0);A.set(t,r),ze(t),e.controller&&H.set(t,e.controller)}),W({fetchers:A});let j=()=>O.forEach(e=>ze(e.key));h.signal.addEventListener(`abort`,j);let{loaderResults:M,fetcherResults:F}=await Ae(D,O,w,C,s);if(h.signal.aborted){oe.get(t)===E&&oe.delete(t);return}h.signal.removeEventListener(`abort`,j),oe.delete(t),H.delete(t),O.forEach(e=>H.delete(e.key));let I=N.fetchers.has(t),ee=e=>{if(!I)return e;let n=new Map(e.fetchers);return n.set(t,An(S.data)),{...e,fetchers:n}},te=ln(M);if(te)return N=ee(N),Oe(w,te.result,!1,{preventScrollReset:f});if(te=ln(F),te)return U.add(te.key),N=ee(N),Oe(w,te.result,!1,{preventScrollReset:f});let R=new Map(N.fetchers);I&&R.set(t,An(S.data));let{loaderData:z,errors:B}=nn(N,T,M,void 0,O,F,R);He(E,R),N.navigation.state===`loading`&&E>ae?(v(P,`Expected pending action`),L&&L.abort(),ge(N.navigation.location,{matches:T,loaderData:z,errors:B,fetchers:R})):(W({errors:B,loaderData:rn(N.loaderData,z,T,B),fetchers:R}),re=!1)}async function De(t,n,i,o,s,c,u){let{routeId:d,path:f}=n,p=N.fetchers.get(t);Me(t,On(u,p?p.data:void 0),{flushSync:s});let m=new AbortController,h=Qt(e.history,f,m.signal);if(n.isDiscovering){let e=await tt(i,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){Ne(t,d,e.error,{flushSync:s});return}if(e.matches)i=e.matches,n.isDiscovering=!1;else{Ne(t,d,cn(404,{pathname:f}),{flushSync:s});return}}let g=Cn(i,f);H.set(t,m);let _=ie,v=await ke(h,f,Ut(a,l,h,f,i,g,r,o),o,t),y=v[g.route.id];if(!y){for(let e of i)if(v[e.route.id]){y=v[e.route.id];break}}if(H.get(t)===m&&H.delete(t),!h.signal.aborted){if(le.has(t)){Me(t,An(void 0));return}if(gn(y)){if(ae>_){Me(t,An(void 0));return}U.add(t),await Oe(h,y,!1,{preventScrollReset:c});return}if(q(y)){Ne(t,d,y.error);return}Me(t,An(y.data))}}async function Oe(r,i,a,{submission:o,fetcherSubmission:c,preventScrollReset:l,replace:u}={}){a||(I?.resolve(),I=null),i.response.headers.has(`X-Remix-Revalidate`)&&(re=!0);let d=i.response.headers.get(`Location`);v(d,`Expected a Location header on the redirect Response`);let f=d,p=new URL(r.url);d=Zt(d,p,s,e.history),ot(f,d,p,`allow-explicit`);let m=S(N.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(ye(d)){let n=E(t,d,!0);e=n.origin!==t.location.origin||_e(n.pathname,s)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}L=null;let h=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:g,formAction:_,formEncType:y}=N.navigation;!o&&!c&&g&&_&&y&&(o=Tn(N.navigation));let b=o||c;ft.has(i.response.status)&&b&&J(b.formMethod)?await xe(h,m,{submission:{...b,formAction:d},preventScrollReset:l||ee,enableViewTransition:a?R:void 0}):await xe(h,m,{overrideNavigation:En(m,[],h,o),fetcherSubmission:c,preventScrollReset:l||ee,enableViewTransition:a?R:void 0})}async function ke(e,t,n,r,i){let a,o={};try{a=await Wt(d,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!J(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;!a.hasOwnProperty(e.route.id)&&!N.loaderData.hasOwnProperty(e.route.id)&&(!N.errors||!N.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(hn(r)){let i=r.result;o[t]={type:`redirect`,response:Jt(i,e,t,n,s)}}else o[t]=await qt(r);return o}async function Ae(e,t,n,r,i){let a=ke(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await ke(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:cn(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function je(){re=!0,se.forEach((e,t)=>{H.has(t)&&V.add(t),ze(t)})}function Me(e,t,n={}){let r=new Map(N.fetchers);r.set(e,t),W({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function Ne(e,t,n,r={}){let i=on(N.matches,t),a=new Map(N.fetchers);Le(a,e),W({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Pe(e){return ce.set(e,(ce.get(e)||0)+1),le.has(e)&&le.delete(e),N.fetchers.get(e)||mt}function Fe(e,t){ze(e,t?.reason),Me(e,An(null))}function Le(e,t){let n=N.fetchers.get(t);H.has(t)&&!(n&&n.state===`loading`&&oe.has(t))&&ze(t),se.delete(t),oe.delete(t),U.delete(t),le.delete(t),V.delete(t),e.delete(t)}function Re(e){let t=(ce.get(e)||0)-1;t<=0?(ce.delete(e),le.add(e)):ce.set(e,t),W({fetchers:new Map(N.fetchers)})}function ze(e,t){let n=H.get(e);n&&(n.abort(t),H.delete(e))}function Be(e,t){for(let n of e){let e=t.get(n);v(e,`Expected fetcher: ${n}`);let r=An(e.data);t.set(n,r)}}function Ve(e){let t=[],n=!1;for(let r of U){let i=e.get(r);v(i,`Expected fetcher: ${r}`),i.state===`loading`&&(U.delete(r),t.push(r),n=!0)}return Be(t,e),n}function He(e,t){let n=[];for(let[r,i]of oe)if(i<e){let e=t.get(r);v(e,`Expected fetcher: ${r}`),e.state===`loading`&&(ze(r),oe.delete(r),n.push(r))}return Be(n,t),n.length>0}function Ge(e,t){let n=N.blockers.get(e)||ht;return ue.get(e)!==t&&ue.set(e,t),n}function Ke(e){N.blockers.delete(e),ue.delete(e)}function qe(e,t){let n=N.blockers.get(e)||ht;v(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(N.blockers);r.set(e,t),W({blockers:r})}function Ye({currentLocation:e,nextLocation:t,historyAction:n}){if(ue.size===0)return;ue.size>1&&y(!1,`A router only supports one blocker at a time`);let r=Array.from(ue.entries()),[i,a]=r[r.length-1],o=N.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function K(e){let t=cn(404,{pathname:e}),n=u.activeRoutes,{matches:r,route:i}=sn(n);return{notFoundMatches:r,route:i,error:t}}function Xe(e,t,n){if(g=e,b=t,_=n||null,!x&&N.navigation===pt){x=!0;let e=$e(N.location,N.matches);e!=null&&W({restoreScrollPosition:e})}return()=>{g=null,b=null,_=null}}function Ze(e,t){return _&&_(e,t.map(e=>te(e,N.loaderData)))||e.key}function Qe(e,t){if(g&&b){let n=Ze(e,t);g[n]=b()}}function $e(e,t){if(g){let n=Ze(e,t),r=g[n];if(typeof r==`number`)return r}return null}function et(t,n){if(e.patchRoutesOnNavigation){if(!t)return{active:!0,matches:c.match(n,!0)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:c.match(n,!0)}}return{active:!1,matches:null}}async function tt(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let o=t;for(;;){let t=l;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:o,fetcherKey:i,patch:(e,n)=>{r.aborted||At(e,n,u,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:o}}if(r.aborted)return{type:`aborted`};let s=c.match(n),d=null;if(s&&(Object.keys(s[0].params).length===0||(d=c.match(n,!0),!(d&&o.length<d.length&&nt(o,d.slice(0,o.length))))))return{type:`success`,matches:s};if(d||=c.match(n,!0),!d||nt(o,d))return{type:`success`,matches:null};o=d}}function nt(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function rt(e){l={},u.setHmrRoutes(F(e,a,void 0,l))}function it(e,t,n=!1){At(e,t,u,l,a,n),u.hasHMRRoutes||W({})}return M={get basename(){return s},get future(){return o},get state(){return N},get routes(){return u.stableRoutes},match(e){return c.match(e)},get manifest(){return l},get window(){return t},initialize:pe,subscribe:he,enableScrollRestoration:Xe,navigate:ve,fetch:Ee,revalidate:be,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Pe,resetFetcher:Fe,deleteFetcher:Re,dispose:me,getBlocker:Ge,deleteBlocker:Ke,patchRoutes:it,_internalFetchControllers:H,_internalSetRoutes:rt,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){W(e)}},e.instrumentations&&(M=We(M,e.instrumentations.map(e=>
1e.router).filter(Boolean))),M}function xt(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function St(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=Te(r||`.`,we(o),_e(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Sn(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=ve({basename:n,pathname:c.pathname})),C(c)}function Ct(e,t,n){if(!n||!xt(n))return{path:t};if(n.formMethod&&!xn(n.formMethod))return{path:t,error:cn(405,{method:n.formMethod})};let r=()=>({path:t,error:cn(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=un(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!J(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}\n`,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if(n.formEncType===`application/json`){if(!J(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}v(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=$t(n.formData),s=n.formData;else if(n.body instanceof FormData)o=$t(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=en(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=en(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(J(c.formMethod))return{path:t,submission:c};let l=w(t);return e&&l.search&&Sn(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:C(l),submission:c}}function wt(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let y=_?q(_[1])?_[1].error:_[1].data:void 0,b=i.createURL(a.location),x=i.createURL(c),S;if(u&&a.errors){let e=Object.keys(a.errors)[0];S=o.findIndex(t=>t.route.id===e)}else if(_&&q(_[1])){let e=_[0];S=o.findIndex(t=>t.route.id===e)-1}let C=_?_[1].statusCode:void 0,w=C&&C>=400,T={currentUrl:b,currentParams:a.matches[0]?.params||{},nextUrl:x,nextParams:o[0].params,...s,actionResult:y,actionStatus:C},E=Le(o),D=o.map((i,o)=>{let{route:s}=i,f=null;if(S!=null&&o>S)f=!1;else if(s.lazy)f=!0;else if(!Tt(s))f=!1;else if(u){let{shouldLoad:e}=Et(s,a.loaderData,a.errors);f=e}else Dt(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return Ht(n,r,e,c,E,i,l,t,f);let p=!1;typeof v==`boolean`?p=v:w?p=!1:d||b.pathname+b.search===x.pathname+x.search?p=!0:b.search===x.search?Ot(a.matches[o],i)&&(p=!0):p=!0;let m={...T,defaultShouldRevalidate:p};return Ht(n,r,e,c,E,i,l,t,kt(i,m),m,v)}),O=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s)||e.isDiscovering)return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,_=g.match(e.path);if(!_){O.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let y=Cn(_,e.path),b=new AbortController,x=Qt(i,e.path,b.signal),S=null;if(f.has(s))f.delete(s),S=Ut(n,r,x,e.path,_,y,l,t);else if(m)d&&(S=Ut(n,r,x,e.path,_,y,l,t));else{let i;i=typeof v==`boolean`?v:!w&&d;let a={...T,defaultShouldRevalidate:i};kt(y,a)&&(S=Ut(n,r,x,e.path,_,y,l,t,a))}S&&O.push({key:s,routeId:e.routeId,path:e.path,matches:S,match:y,request:x,controller:b})}),{dsMatches:D,revalidatingFetchers:O}}function Tt(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Et(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Tt(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function Dt(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function Ot(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function kt(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function At(e,t,n,r,i,a){let o;if(e){let t=r[e];v(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];
1if(t.forEach(e=>{let t=o.find(t=>jt(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=F(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=F([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function jt(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index!==t.index||e.path!==t.path||e.caseSensitive!==t.caseSensitive?!1:(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>jt(e,t)))??!1}var Mt=new WeakMap,Nt=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(v(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=Mt.get(i);o||(o={},Mt.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=A(e),n=i[e]!==void 0;if(t)y(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)y(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},Pt=new WeakMap;function Ft(e,t,n,r,i){let a=n[e.id];if(v(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=Pt.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{v(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=M(e),o=a[e]!==void 0;i?y(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?y(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Pt.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=Nt({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function It(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function Lt(e){return e.matches.some(e=>e.route.middleware)?Rt(e,()=>It(e)):It(e)}function Rt(e,t){return zt(e,t,e=>{if(bn(e))throw e;return e},pn,n);async function n(t,n,r){if(r)return Object.assign(r.value,{[n]:{type:`error`,result:t}});{let{matches:r}=e,i=Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0)),a=r[i].route.id;for(let e of r.slice(0,i+1))try{await e._lazyPromises?.route}catch{a=e.route.id;break}return{[on(r,a).route.id]:{type:`error`,result:t}}}}}async function zt(e,t,n,r,i){let{matches:a,...o}=e;return await Bt(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function Bt(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await Bt(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function Vt(e,t,n,r,i){let a=Nt({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=Ft(r.route,J(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function Ht(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=Vt(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?kt(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?kt(a,{...l,defaultShouldRevalidate:e}):kt(a,l):c}
1,resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!J(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(J(n.method)||!p)?Gt({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Ut(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?Ht(e,t,n,r,Le(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Vt(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function Wt(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:Re(t,n),pattern:Le(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response.  You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return Rt(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function Gt({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=J(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:Re(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a){if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw cn(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}}else if(t)c=await f(t);else{let t=new URL(e.url);throw cn(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Kt(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function qt(e){let{result:t,type:n}=e;if(vn(t)){let e;try{e=await Kt(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new Fe(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?_n(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:fn(t),statusCode:Ie(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Ie(t)?t.status:void 0}:_n(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function Jt(e,t,n,r,i){let a=e.headers.get(`Location`);if(v(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!ye(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=St(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var Yt=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Xt(e){try{return Yt.includes(new URL(e).protocol)}catch{return!1}}function Zt(e,t,n,r){if(ye(e)){let r=e,i=p.test(r)?new URL(m(r,t.protocol)):new URL(r);if(Xt(i.toString()))throw Error(`Invalid redirect location`);let a=_e(i.pathname,n)!=null;if(i.origin===t.origin&&a)return Ee(i.pathname)+i.search+i.hash}try{if(Xt(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function Qt(e,t,n,r){let i=e.createURL(un(t)).toString(),a={signal:n};if(r&&J(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):a.body=t===`text/plain`?r.text:t===`application/x-www-form-urlencoded`&&r.formData?$t(r.formData):r.formData}
1return new Request(i,a)}function $t(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function en(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function tn(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&q(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(v(!gn(f),`Cannot handle redirect results in processLoaderData`),q(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=on(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=_t),c||(c=!0,s=Ie(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function nn(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=tn(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(v(s,`Did not find corresponding fetcher result`),q(s)){let t=
1on(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(gn(s))v(!1,`Unhandled fetcher revalidation redirect`);else{let e=An(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function rn(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==_t).reduce((e,[t,n])=>(e[t]=n,e),{}),a=0;for(let o of n){let n=o.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&o.route.loader&&(i[n]=e[n],a++),r&&r.hasOwnProperty(n))break}return Object.keys(t).length===0&&a===Object.keys(e).length?e:i}function an(e){return e?q(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function on(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.ErrorBoundary!=null||e.route.errorElement!=null)||e[0]}function sn(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function cn(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Fe(e||500,o,Error(s),!0)}function ln(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(gn(r))return{key:n,result:r}}}function un(e){return C({...typeof e==`string`?w(e):e,hash:``})}function dn(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function fn(e){return new Fe(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function pn(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&mn(t))}function mn(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function hn(e){return vn(e.result)&&dt.has(e.result.status)}function q(e){return e.type===`error`}function gn(e){return(e&&e.type)===`redirect`}function _n(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function vn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function yn(e){return dt.has(e)}function bn(e){return vn(e)&&yn(e.status)&&e.headers.has(`Location`)}function xn(e){return ut.has(e.toUpperCase())}function J(e){return ct.has(e.toUpperCase())}function Sn(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Cn(e,t){let n=typeof t==`string`?w(t).search:t.search;if(e[e.length-1].route.index&&Sn(n||``))return e[e.length-1];let r=Ce(e);return r[r.length-1]}function wn(e,t,n){return{url:Re(e.createURL(t),t),pattern:n?Le(n):``,params:n?.[0]?.params?{...n[0].params}:{}}}function Tn(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(t&&n&&r){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function En(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Dn(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function On(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function kn(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function An(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function jn(e,t){try{let n=e.sessionStorage.getItem(gt);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function Mn(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(gt,JSON.stringify(n))}catch(e){y(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function Nn(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Pn=D.createContext(null);Pn.displayName=`DataRouter`;var Fn=D.createContext(null);Fn.displayName=`DataRouterState`;var In=D.createContext(null);In.displayName=`DataRouterData`;var Ln=D.createContext(null);Ln.displayName=`DataRouterNavigation`;var Rn=D.createContext(!1);function zn(){return D.useContext(Rn)}var Bn=D.createContext({isTransitioning:!1});Bn.displayName=`ViewTransition`;var Vn=D.createContext(null);Vn.displayName=`Fetchers`;var Hn=D.createContext(null);Hn.displayName=`Await`;var Un=D.createContext(null);Un.displayName=`Navigation`;var Wn=D.createContext(null);Wn.displayName=`Location`;var Gn=D.createContext({outlet:null,matches:[],isDataRoute:!1});Gn.displayName=`Route`;var Kn=D.createContext(!1);Kn.displayName=`IsDataRoute`;var qn=D.createContext(void 0);qn.displayName=`RouteId`;var Jn=D.createContext(null);Jn.displayName=`RouteError`;var Yn=`REACT_ROUTER_ERROR`,Xn=`REDIRECT`,Zn=`ROUTE_ERROR_RESPONSE`;function Qn(e){if(e.startsWith(`${Yn}:${Xn}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function $n(e){if(e.startsWith(`${Yn}:${Zn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Fe(t.status,t.statusText,t.data)}catch{}}function er(e,{relative:t}={}){v(tr(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=D.useContext(Un),{hash:i,pathname:a,search:o}=cr(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:G([n,a])),r.createHref({pathname:s,search:o,hash:i})}function tr(){return D.useContext(Wn)!=null}function Y(){return v(tr(),`useLocation() may be used only in the context of a <Router> component.`),D.useContext(Wn).location}var nr=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function rr(){return D.useContext(Kn)?Ar():ir()}function ir(){v(tr(),`useNavigate() may be used only in the context of a <Router> component.`);let e=D.useContext(Pn),{basename:t,navigator:n}=D.useContext(Un),{matches:r}=D.useContext(Gn),{pathname:i}=Y(),a=JSON.stringify(we(r)),o=D.useRef(!1);return D.useLayoutEffect(()=>{o.current=!0}),D.useCallback((r,s={})=>
1{if(y(o.current,nr),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Te(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:G([t,c.pathname])),ot(typeof r==`string`?r:C(r),n.createHref(c),rt(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var ar=D.createContext(null);function or(e){let t=D.useContext(Gn).outlet;return D.useMemo(()=>t&&D.createElement(ar.Provider,{value:e},t),[t,e])}function sr(){let{matches:e}=D.useContext(Gn);return e[e.length-1]?.params??{}}function cr(e,{relative:t}={}){let{matches:n}=D.useContext(Gn),{pathname:r}=Y(),i=JSON.stringify(we(n));return D.useMemo(()=>Te(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function lr(e,t,n){v(tr(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=D.useContext(Un),{matches:i}=D.useContext(Gn),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=Y(),l;if(t){let e=typeof t==`string`?w(t):t;v(s===`/`||e.pathname?.startsWith(s),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),l=e}else l=c;let u=l.pathname||`/`,d=u;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);d=`/`+u.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let f;f=n?n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):n.router.match(n.state.location):ee(e,{pathname:d});let p=gr(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:G([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:G([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&p?D.createElement(Wn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...l},navigationType:`POP`}},p):p}function ur(){let e=kr(),t=Ie(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return D.createElement(D.Fragment,null,D.createElement(`h2`,null,`Unexpected Application Error!`),D.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?D.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var dr=D.createElement(ur,null),fr=class extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=Rn;static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=$n(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:D.createElement(Gn.Provider,{value:this.props.routeContext},D.createElement(Kn.Provider,{value:this.props.routeContext.isDataRoute},D.createElement(qn.Provider,{value:this.props.routeContext.matches[this.props.routeContext.matches.length-1]?.route.id},D.createElement(Jn.Provider,{value:e,children:this.props.component}))));return this.context?D.createElement(mr,{error:e},t):t}},pr=new WeakMap;function mr({children:e,error:t}){let{basename:n,navigator:r}=D.useContext(Un);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Qn(t.digest);if(e){let i=pr.get(t);if(i)throw i;let a=Be(e.location,n),o=a.absoluteURL||a.to;if(ot(e.location,o,rt(r),`allow-explicit`),Xt(o))throw Error(`Invalid redirect location`);if(ze&&!pr.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw pr.set(t,n),n}}return D.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function hr({routeContext:e,match:t,children:n}){let r=D.useContext(Pn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Gn.Provider,{value:e},D.createElement(Kn.Provider,{value:e.isDataRoute},D.createElement(qn.Provider,{value:t.route.id},n)))}function gr(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);v(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}
1=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Le(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||dr,o&&(s<0&&c===0?(Mr(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?D.createElement(n.route.Component,null):n.route.element?n.route.element:e,D.createElement(hr,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?D.createElement(fr,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function _r(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function vr(e){let t=D.useContext(Pn);return v(t,_r(e)),t}function yr(e){let t=D.useContext(Fn);return v(t,_r(e)),t}function br(e){let t=D.useContext(Vn);return v(t,_r(e)),t}function xr(e){let t=D.useContext(In);return v(t,_r(e)),t}function Sr(e){let t=D.useContext(Ln);return v(t,_r(e)),t}function Cr(e){let t=D.useContext(qn);return v(t,`${e} can only be used on routes that contain a unique "id"`),t}function wr(){let{navigation:e}=Sr(`useNavigation`);return D.useMemo(()=>{let{matches:t,historyAction:n,...r}=e;return r},[e])}function Tr(){let{matches:e}=yr(`useMatches`),{loaderData:t}=xr(`useMatches`);return D.useMemo(()=>e.map(e=>te(e,t)),[e,t])}function Er(){let e=xr(`useLoaderData`),t=Cr(`useLoaderData`);return e.loaderData[t]}function Dr(e){return xr(`useRouteLoaderData`).loaderData[e]}function Or(){let e=xr(`useActionData`),t=Cr(`useActionData`);return e.actionData?e.actionData[t]:void 0}function kr(){let e=D.useContext(Jn),t=xr(`useRouteError`),n=Cr(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Ar(){let{router:e}=vr(`useNavigate`),t=Cr(`useNavigate`),n=D.useRef(!1);return D.useLayoutEffect(()=>{n.current=!0}),D.useCallback(async(r,i={})=>{y(n.current,nr),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var jr={};function Mr(e,t,n){!t&&!jr[e]&&(jr[e]=!0,y(!1,n))}var Nr={};function Pr(e,t){!e&&!Nr[t]&&(Nr[t]=!0,console.warn(t))}var Fr=[`HydrateFallback`,`hydrateFallbackElement`],Ir=class{status=`pending`;promise;resolve;reject;
1constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Lr({router:e,flushSync:t,onError:n,useTransitions:r}){r=zn()||r;let[i,a]=D.useState(e.state),[o,s]=(0,D.useOptimistic)(i),[c,l]=D.useState(),[u,d]=D.useState({isTransitioning:!1}),[f,p]=D.useState(),[m,h]=D.useState(),[g,_]=D.useState(),v=D.useRef(new Map),y=D.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:Le(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&v.current.set(t,e.data)}),o.forEach(e=>v.current.delete(e)),Pr(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let y=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(Pr(g==null||y,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!y){t&&u?t(()=>a(i)):r===!1?a(i):D.startTransition(()=>{r===!0&&s(e=>Rr(e,i)),a(i)});return}if(t&&u){t(()=>{m&&(f?.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>h(n));return}m?(f?.resolve(),m.skipTransition(),_({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,m,f,r,s,n]);D.useLayoutEffect(()=>e.subscribe(y),[e,y]),D.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new Ir)},[u]),D.useEffect(()=>{if(f&&c&&e.window){let t=c,n=f.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):D.startTransition(()=>{r===!0&&s(e=>Rr(e,t)),a(t)}),await n});i.finished.finally(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})}),h(i)}},[c,f,e.window,r,s]),D.useEffect(()=>{f&&c&&o.location.key===c.location.key&&f.resolve()},[f,m,o.location,c]),D.useEffect(()=>{!u.isTransitioning&&g&&(l(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),_(void 0))},[u.isTransitioning,g]);let b=D.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),x=e.basename||`/`,S=D.useMemo(()=>({router:e,navigator:b,static:!1,basename:x,onError:n}),[e,b,x,n]),C=D.useMemo(()=>({historyAction:o.historyAction,location:o.location,matches:o.matches,initialized:o.initialized,renderFallback:o.renderFallback,restoreScrollPosition:o.restoreScrollPosition,preventScrollReset:o.preventScrollReset,blockers:o.blockers}),[o.historyAction,o.location,o.matches,o.initialized,o.renderFallback,o.restoreScrollPosition,o.preventScrollReset,o.blockers]),w=D.useMemo(()=>({navigation:o.navigation,revalidation:o.revalidation}),[o.navigation,o.revalidation]),T=D.useMemo(()=>({loaderData:o.loaderData,actionData:o.actionData,errors:o.errors}),[o.loaderData,o.actionData,o.errors]),E=D.useMemo(()=>({fetchers:o.fetchers,fetcherData:v.current}),[o.fetchers]);return D.createElement(D.Fragment,null,D.createElement(Pn.Provider,{value:S},D.createElement(Fn.Provider,{value:C},D.createElement(Ln.Provider,{value:w},D.createElement(In.Provider,{value:T},D.createElement(Vn.Provider,{value:E},D.createElement(Bn.Provider,{value:u},D.createElement(Hr,{basename:x,location:o.location,navigationType:o.historyAction,navigator:b,useTransitions:r},D.createElement(zr,{routes:e.routes,manifest:e.manifest,state:o,isStatic:!1,onError:n})))))))),null)}function Rr(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var zr=D.memo(Br);function Br({routes:e,manifest:t,state:n,isStatic:r,onError:i}){let a=D.useContext(Pn);return v(a,`You must render this element inside a <DataRouterContext.Provider> element`),lr(e,void 0,{router:a.router,manifest:t,state:n,isStatic:r,onError:i})}function Vr(e){return or(e.context)}function Hr({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){v(!tr(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=D.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=w(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=D.useMemo(()=>{let e=_e(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);
1return y(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:D.createElement(Un.Provider,{value:c},D.createElement(Wn.Provider,{children:t,value:h}))}D.Component;function Ur(){return{params:sr(),loaderData:Er(),actionData:Or(),matches:Tr()}}function Wr(e){return function(){let t=Ur();return D.createElement(e,t)}}function Gr(){return{params:sr(),loaderData:Er(),actionData:Or(),error:kr()}}function Kr(e){return function(){let t=Gr();return D.createElement(e,t)}}var qr=`application/x-www-form-urlencoded`;function Jr(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Yr(e){return Jr(e)&&e.tagName.toLowerCase()===`button`}function Xr(e){return Jr(e)&&e.tagName.toLowerCase()===`form`}function Zr(e){return Jr(e)&&e.tagName.toLowerCase()===`input`}function Qr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $r(e,t){return e.button===0&&(!t||t===`_self`)&&!Qr(e)}function ei(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function ti(e,t){let n=ei(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var ni=null;function ri(){if(ni===null)try{new FormData(document.createElement(`form`),0),ni=!1}catch{ni=!0}return ni}var ii=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function ai(e){return e!=null&&!ii.has(e)?(y(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${qr}"`),null):e}function oi(e,t){let n,r,i,a,o;if(Xr(e)){let o=e.getAttribute(`action`);r=o?_e(o,t):null,n=e.getAttribute(`method`)||`get`,i=ai(e.getAttribute(`enctype`))||qr,a=new FormData(e)}else if(Yr(e)||Zr(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?_e(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=ai(e.getAttribute(`formenctype`))||ai(o.getAttribute(`enctype`))||qr,a=new FormData(o,e),!ri()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Jr(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=qr,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function si(e,t){if(e===!1||e==null)throw Error(t)}var ci={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},li=/[&><\u2028\u2029]/g;function ui(e){return e.replace(li,e=>ci[e])}var di=class{promise;resolve;reject;
1constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function fi(){let e=new TextDecoder,t=``;return new TransformStream({transform(n,r){let i=e.decode(n,{stream:!0}),a=(t+i).split(`
2`);t=a.pop()||``;for(let e of a)r.enqueue(e)},flush(e){t&&e.enqueue(t)}})}var pi=typeof window<`u`?window:typeof globalThis<`u`?globalThis:void 0;function mi(e){let{hydrated:t,values:n}=this;if(typeof e==`number`)return hi.call(this,e);if(!Array.isArray(e)||!e.length)throw SyntaxError();let r=n.length;for(let t of e)n.push(t);return t.length=n.length,hi.call(this,r)}function hi(e){let{hydrated:t,values:n,deferred:r,plugins:i}=this,a,o=[[e,e=>{a=e}]],s=[];for(;o.length>0;){let[e,a]=o.pop();switch(e){case-7:a(void 0);continue;case-5:a(null);continue;case-2:a(NaN);continue;case-6:a(1/0);continue;case-3:a(-1/0);continue;case-4:a(-0);continue}if(t[e]){a(t[e]);continue}let c=n[e];if(!c||typeof c!=`object`){t[e]=c,a(c);continue}if(Array.isArray(c)){if(typeof c[0]==`string`){let[n,l,u]=c;switch(n){case`D`:a(t[e]=new Date(l));continue;case`U`:a(t[e]=new URL(l));continue;case`B`:a(t[e]=BigInt(l));continue;case`R`:a(t[e]=new RegExp(l,u));continue;case`Y`:a(t[e]=Symbol.for(l));continue;case`S`:let n=new Set;t[e]=n;for(let e=c.length-1;e>0;e--)o.push([c[e],e=>{n.add(e)}]);a(n);continue;case`M`:let d=new Map;t[e]=d;for(let e=c.length-2;e>0;e-=2){let t=[];o.push([c[e+1],e=>{t[1]=e}]),o.push([c[e],e=>{t[0]=e}]),s.push(()=>{d.set(t[0],t[1])})}a(d);continue;case`N`:let f=Object.create(null);t[e]=f;for(let e of Object.keys(l).reverse()){let t=[];o.push([l[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{f[t[0]]=t[1]})}a(f);continue;case`P`:if(t[l])a(t[e]=t[l]);else{let n=new di;r[l]=n,a(t[e]=n.promise)}continue;case`E`:let[,p,m]=c,h=m&&pi&&Pe.includes(m)&&m in pi&&typeof pi[m]==`function`?new pi[m](p):Error(p);t[e]=h,a(h);continue;case`Z`:a(t[e]=t[l]);continue;default:if(Array.isArray(i)){let n=[],r=c.slice(1);for(let e=0;e<r.length;e++){let t=r[e];o.push([t,t=>{n[e]=t}])}s.push(()=>{for(let r of i){let i=r(c[0],...n);if(i){a(t[e]=i.value);return}}throw SyntaxError()});continue}throw SyntaxError()}}else{let n=[];t[e]=n;for(let e=0;e<c.length;e++){let t=c[e];t!==-1&&o.push([t,t=>{n[e]=t}])}a(n);continue}}else{let n={};t[e]=n;for(let e of Object.keys(c).reverse()){let t=[];o.push([c[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{n[t[0]]=t[1]})}a(n);continue}}for(;s.length>0;)s.pop()();return a}async function gi(e,t){let{plugins:n}=t??{},r=new di,i=e.pipeThrough(fi()).getReader(),a={values:[],hydrated:[],deferred:{},plugins:n},o=await _i.call(a,i),s=r.promise;return o.done?r.resolve():s=vi.call(a,i).then(r.resolve).catch(e=>{for(let t of Object.values(a.deferred))t.reject(e);r.reject(e)}),{done:s.then(()=>i.closed),value:o.value}}async function _i(e){let t=await e.read();if(!t.value)throw SyntaxError();let n;try{n=JSON.parse(t.value)}catch{throw SyntaxError()}return{done:t.done,value:mi.call(this,n)}}async function vi(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;let n=t.value;switch(n[0]){case`P`:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=mi.call(this,a);r.resolve(o);break}case`E`:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=mi.call(this,a);r.reject(o);break}default:throw SyntaxError()}t=await e.read()}}async function yi(e){let t={signal:e.signal};if(e.method!==`GET`){t.method=e.method;let n=e.headers.get(`Content-Type`);n&&/\bapplication\/json\b/.test(n)?(t.headers={"Content-Type":n},t.body=JSON.stringify(await e.json())):n&&/\btext\/plain\b/.test(n)?(t.headers={"Content-Type":n},t.body=await e.text()):t.body=n&&/\bapplication\/x-www-form-urlencoded\b/.test(n)?new URLSearchParams(await e.text()):await e.formData()}return t}var bi=Symbol(`SingleFetchRedirect`),xi=class extends Error{},Si=new Set([100,101,204,205]);function Ci(e,t,n,r){let i=wi(e,e=>{let n=t.routes[e.route.id];return si(n,`Route not found in manifest`),{hasLoader:n.hasLoader,hasClientLoader:n.hasCl
2ientLoader}},Mi,r);return async e=>e.runClientMiddleware(i)}function wi(e,t,n,r,i=()=>!0){return async a=>{let{request:o,matches:s,fetcherKey:c}=a,l=e();if(o.method!==`GET`)return Ti(a,n);let u=s.some(e=>{let{hasLoader:n,hasClientLoader:r}=t(e);return e.shouldCallHandler()&&n&&!r});return!r&&!u?Ei(a,t,n):c?ki(a,n):Di(a,l,t,n,r,i)}}async function Ti(e,t){let n=e.matches.find(e=>e.shouldCallHandler());si(n,`No action match found`);let r,i=await n.resolve(async i=>await i(async()=>{let{data:i,status:a}=await t(e,[n.route.id]);return r=a,Pi(i,n.route.id)}));return vn(i.result)||Ie(i.result)||_n(i.result)?{[n.route.id]:i}:{[n.route.id]:{type:i.type,result:Me(i.result,r)}}}async function Ei(e,t,n){let r=e.matches.filter(e=>e.shouldCallHandler()),i={};return await Promise.all(r.map(async r=>{let a=r.route.id;i[a]=await r.resolve(async i=>{let{hasClientLoader:o}=t(r);return o?i(async()=>{let{data:t}=await n(e,[a]);return Pi(t,a)}):i()})})),i}async function Di(e,t,n,r,i,a=()=>!0){let o=new Set,s=!1,c=e.matches.map(()=>Fi()),l=Fi(),u={},d=Promise.all(e.matches.map(async(t,i)=>t.resolve(async d=>{c[i].resolve();let f=t.route.id,{hasLoader:p,hasClientLoader:m}=n(t),h=!t.shouldRevalidateArgs||t.shouldRevalidateArgs.actionStatus==null||t.shouldRevalidateArgs.actionStatus<400;if(!t.shouldCallHandler(h)){s||=t.shouldRevalidateArgs!=null&&p;return}if(a(t)&&m){p&&(s=!0);try{u[f]={type:`data`,result:await d(async()=>{let{data:t}=await r(e,[f]);return Pi(t,f)})}}catch(e){u[f]={type:`error`,result:e}}return}p&&o.add(f);try{u[f]={type:`data`,result:await d(async()=>Pi(await l.promise,f))}}catch(e){u[f]={type:`error`,result:e}}})));if(await Promise.all(c.map(e=>e.promise)),(!t.state.initialized&&t.state.navigation.state===`idle`||o.size===0)&&!window.__reactRouterHdrActive)l.resolve({routes:{}});else{let t=i&&s&&o.size>0?[...o.keys()]:void 0;try{let n=await r(e,t);l.resolve(n.data)}catch(e){l.reject(e)}}return await d,await Oi(l.promise,e.matches,o,u),u}async function Oi(e,t,n,r){try{let i,a=await e;if(`routes`in a){for(let e of t)if(e.route.id in a.routes){let t=a.routes[e.route.id];if(`error`in t){i=t.error,r[e.route.id]?.result??(r[e.route.id]={type:`error`,result:i});break}}}i!==void 0&&Array.from(n.values()).forEach(e=>{r[e].result instanceof xi&&(r[e].result=i)})}catch{}}async function ki(e,t){let n=e.matches.find(e=>e.shouldCallHandler());si(n,`No fetcher match found`);let r=n.route.id,i=await n.resolve(async n=>n(async()=>{let{data:n}=await t(e,[r]);return Pi(n,r)}));return{[n.route.id]:i}}function Ai(e){let t=e.searchParams.getAll(`index`);e.searchParams.delete(`index`);let n=[];for(let e of t)e&&n.push(e);for(let t of n)e.searchParams.append(`index`,t);return e}function ji(e,t){let n=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n.pathname=n.pathname.endsWith(`/`)?`${n.pathname}_.${t}`:`${n.pathname}.${t}`,n}async function Mi(e,t){let{request:n}=e,r=ji(n.url,`data`);n.method===`GET`&&(r=Ai(r),t&&r.searchParams.set(`_routes`,t.join(`,`)));let i=await fetch(r,await yi(n));if(i.status>=400&&!i.headers.has(`X-Remix-Response`))throw new Fe(i.status,i.statusText,await i.text());if(i.status===204&&i.headers.has(`X-Remix-Redirect`))return{status:202,data:{redirect:{redirect:i.headers.get(`X-Remix-Redirect`),status:Number(i.headers.get(`X-Remix-Status`)||`302`),revalidate:i.headers.get(`X-Remix-Revalidate`)===`true`,reload:i.headers.get(`X-Remix-Reload-Document`)===`true`,replace:i.headers.get(`X-Remix-Replace`)===`true`}}};if(Si.has(i.status)){let e={};return t&&n.method!==`GET`&&(e[t[0]]={data:void 0}),{status:i.status,data:{routes:e}}}si(i.body,`No response body to decode`);try{let e=await Ni(i.body,window),r;if(n.method===`GET`){let t=e.value;r=bi in t?{redirect:t[bi]}:{routes:t}}else{let n=e.value,i=t?.[0];si(i,`No routeId found for single fetch call decoding`),r=`redirect`in n?{redirect:n}:{routes:{[i]:n}}}return{status:i.status,data:r}}catch(e){throw Error(`Unable to decode turbo-stream response`,{cause:e})}}function Ni(e,t){return gi(e,{plugins:[(e,...n)=>{if(e===`SanitizedError`){let[e,r,i]=n,a=Error;e&&Pe.includes(e)&&e in t&&typeof t[e]==`function`&&(a=t[e]);let o=new a(r);return o.stack=i,{value:o}}if(e===`ErrorResponse`){let[e,t,r]=n;return{value:new Fe(t,r,e)}}if(e===`SingleFetchRedirect`)return{value:{[bi]:n[0]}};if(e===`SingleFetchClassInstance`)return{value:n[0]};if(e===`SingleFetchFallback`)return{value:void 0}}]})}function Pi(e,t){if(`redirect`in e){let{redirect:t,revalidate:n,reload:r,replace:i,status:a}=e.redirect;throw Ne(t,{status:a,headers:{...n?{"X-Remix-Revalidate":`yes`}:null,...r?{"X-Remix-Reload-Document":`yes`}:null,...i?{"X-Remix-Replace":`yes`}:null}})}let n=e.routes[t];if(n==null)throw new xi(`No result found for routeId "${t}"`);if(`error`in n)throw n.error;if(`data`in n)return n.data;throw Error(`Invalid response found for routeId "${t}"`)}function Fi(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Ii=`modulepreload`,Li=function(e){return`/`+e},Ri={},zi=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Li(t,n),t=s(t),t in Ri)return;Ri[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Ii,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n
2)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};async function Bi(e,t){if(e.id in t)return t[e.id];try{let n=await zi(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Vi(e,t,n){return $i(e.map(e=>{let r=t[e.route.id],i=n.routes[e.route.id];return[i&&i.css?i.css.map(e=>({rel:`stylesheet`,href:e})):[],r?.links?.()||[]]}).flat(2),Xi(e,n))}function Hi(e){return e.css?e.css.map(e=>({rel:`stylesheet`,href:e})):[]}async function Ui(e){if(!e.css)return;let t=Hi(e);await Promise.all(t.map(Gi))}async function Wi(e,t){if(!e.css&&!t.links||!ta())return;let n=[];if(e.css&&n.push(...Hi(e)),t.links&&n.push(...t.links()),n.length===0)return;let r=[];for(let e of n)!Ki(e)&&e.rel===`stylesheet`&&r.push({...e,rel:`preload`,as:`style`});await Promise.all(r.map(Gi))}async function Gi(e){return new Promise(t=>{if(e.media&&!window.matchMedia(e.media).matches||document.querySelector(`link[rel="stylesheet"][href="${e.href}"]`))return t();let n=document.createElement(`link`);Object.assign(n,e);function r(){document.head.contains(n)&&document.head.removeChild(n)}n.onload=()=>{r(),t()},n.onerror=()=>{r(),t()},document.head.appendChild(n)})}function Ki(e){return e!=null&&typeof e.page==`string`}function qi(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Ji(e,t,n){return $i((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Bi(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(qi).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Yi(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Xi(e,t,{includeHydrateFallback:n}={}){return Zi(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Zi(e){return[...new Set(e)]}function Qi(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function $i(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Ki(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Qi(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var ea;function ta(){if(ea!==void 0)return ea;let e=document.createElement(`link`);return ea=e.relList.supports(`preload`),e=null,ea}function na(){let{nonce:e}=ja();return D.createElement(Ya,{title:`Loading...`,renderScripts:!0},null)}function ra(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function ia(e,t,n){let r=fa(t),i=t.HydrateFallback&&(!n||e.id===`root`)?t.HydrateFallback:e.id===`root`?na:void 0,a=t.ErrorBoundary?t.ErrorBoundary:e.id===`root`?()=>D.createElement(Ja,{error:kr()}):void 0;return e.id===`root`&&t.Layout?{...r?{element:D.createElement(t.Layout,null,D.createElement(r,
2null))}:{Component:r},...a?{errorElement:D.createElement(t.Layout,null,D.createElement(a,null))}:{ErrorBoundary:a},...i?{hydrateFallbackElement:D.createElement(t.Layout,null,D.createElement(i,null))}:{HydrateFallback:i}}:{Component:r,ErrorBoundary:a,HydrateFallback:i}}function aa(e,t,n,r,i,a){return ca(t,n,r,i,a,``,ra(t),e)}function oa(e,t){if(e===`loader`&&!t.hasLoader||e===`action`&&!t.hasAction){let n=`You are trying to call ${e===`action`?`serverAction()`:`serverLoader()`} on a route that does not have a server ${e} (routeId: "${t.id}")`;throw console.error(n),new Fe(400,`Bad Request`,Error(n),!0)}}function sa(e,t){let n=e===`clientAction`?`a`:`an`,r=`Route "${t}" does not have ${n} ${e}, but you are trying to submit to it. To fix this, please add ${n} \`${e}\` function to the route`;throw console.error(r),new Fe(405,`Method Not Allowed`,Error(r),!0)}function ca(e,t,n,r,i,a=``,o=ra(e),s){return(o[a]||[]).map(a=>{let c=t[a.id];function l(e){return si(typeof e==`function`,`No single fetch function available for route handler`),e()}function u(e){return a.hasLoader?l(e):Promise.resolve(null)}function d(e){if(!a.hasAction)throw sa(`action`,a.id);return l(e)}function f(e){zi(()=>import(e),[])}function p(e){e.clientActionModule&&f(e.clientActionModule),e.clientLoaderModule&&f(e.clientLoaderModule)}async function m(e){let n=t[a.id],r=n?Wi(a,n):Promise.resolve();try{return e()}finally{await r}}let h={id:a.id,index:a.index,path:a.path};if(c){Object.assign(h,{...h,...ia(a,c,i),middleware:c.clientMiddleware,handle:c.handle,shouldRevalidate:la(h.path,c,a,r,s)});let e=n&&n.loaderData&&a.id in n.loaderData,t=e?n?.loaderData?.[a.id]:void 0,o=n&&n.errors&&a.id in n.errors,l=o?n?.errors?.[a.id]:void 0,f=s==null&&(c.clientLoader?.hydrate===!0||!a.hasLoader);h.loader=async({request:n,params:r,context:i,pattern:s,url:d},p)=>{let h=f;return f=!1,await m(async()=>(si(c,"No `routeModule` available for critical-route loader"),c.clientLoader?c.clientLoader({request:n,params:r,context:i,pattern:s,url:d,async serverLoader(){if
2(oa(`loader`,a),h){if(e)return t;if(o)throw l}return u(p)}}):u(p)))},h.loader.hydrate=pa(a.id,c.clientLoader,a.hasLoader,i),h.action=({request:e,params:t,context:n,pattern:r,url:o},s)=>m(async()=>{if(si(c,"No `routeModule` available for critical-route action"),!c.clientAction){if(i)throw sa(`clientAction`,a.id);return d(s)}return c.clientAction({request:e,params:t,context:n,pattern:r,url:o,async serverAction(){return oa(`action`,a),d(s)}})})}else{a.hasClientLoader||(h.loader=(e,t)=>m(()=>u(t))),a.hasClientAction||(h.action=(e,t)=>m(()=>{if(i)throw sa(`clientAction`,a.id);return d(t)}));let e;async function n(){return e||=(async()=>{(a.clientLoaderModule||a.clientActionModule)&&await new Promise(e=>setTimeout(e,0));let e=da(a,t);return p(a),await e})(),await e}h.lazy={loader:a.hasClientLoader?async()=>{let{clientLoader:e}=a.clientLoaderModule?await zi(()=>import(a.clientLoaderModule),[]):await n();return si(e,"No `clientLoader` export found"),(t,n)=>e({...t,async serverLoader(){return oa(`loader`,a),u(n)}})}:void 0,action:a.hasClientAction?async()=>{let e=a.clientActionModule?zi(()=>import(a.clientActionModule),[]):n();p(a);let{clientAction:t}=await e;return si(t,"No `clientAction` export found"),(e,n)=>t({...e,async serverAction(){return oa(`action`,a),d(n)}})}:void 0,middleware:a.hasClientMiddleware?async()=>{let{clientMiddleware:e}=a.clientMiddlewareModule?await zi(()=>import(a.clientMiddlewareModule),[]):await n();return si(e,"No `clientMiddleware` export found"),e}:void 0,shouldRevalidate:async()=>{let e=await n();return la(h.path,e,a,r,s)},handle:async()=>(await n()).handle,Component:async()=>(await n()).Component,ErrorBoundary:a.hasErrorBoundary?async()=>(await n()).ErrorBoundary:void 0}}let g=ca(e,t,n,r,i,a.id,o,s);return g.length>0&&(h.children=g),h})}function la(e,t,n,r,i){if(i)return ua(n.id,t.shouldRevalidate,i);if(!r&&n.hasLoader&&!n.hasClientLoader){let n=e?W(e)[1].map(e=>e.paramName):[],r=e=>n.some(t=>e.currentParams[t]!==e.nextParams[t]);if(t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:r(t)})}return e=>r(e)}return t.shouldRevalidate}function ua(e,t,n){let r=!1;return i=>r?t?t(i):i.defaultShouldRevalidate:(r=!0,n.has(e))}async function da(e,t){let n=Bi(e,t),r=Ui(e),i=await n;return await Promise.all([r,Wi(e,i)]),{Component:fa(i),ErrorBoundary:i.ErrorBoundary,clientMiddleware:i.clientMiddleware,clientAction:i.clientAction,clientLoader:i.clientLoader,handle:i.handle,links:i.links,meta:i.meta,shouldRevalidate:i.shouldRevalidate}}function fa(e){if(e.default!=null&&(typeof e.default!=`object`||Object.keys(e.default).length!==0))return e.default}function pa(e,t,n,r){return r&&e!==`root`||t!=null&&(t.hydrate===!0||n!==!0)}var ma=new Set,ha=1e3,ga=new Set;function _a(e){let t=new Set;return e.forEach(e=>{e.startsWith(`/`)||(e=`/${e}`);for(let n=1;n<e.length;n++)e[n]===`/`&&t.add(e.slice(0,n));t.add(e)}),Array.from(t)}function va(e,t){return e.mode===`lazy`&&t===!0}function ya({sri:e,...t},n){let r=new Set(n.state.matches.map(e=>e.route.id)),i=n.state.location.pathname.split(`/`).filter(Boolean),a=[`/`];for(i.pop();i.length>0;)a.push(`/${i.join(`/`)}`),i.pop();a.forEach(e=>{let t=n.match(e);t&&t.forEach(e=>r.add(e.route.id))});let o=[...r].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});return{...t,routes:o,sri:e?!0:void 0}}function ba(e,t,n,r,i,a,o){if(va(i,r))return async({path:s,patch:c,signal:l,fetcherKey:u})=>{if(ga.has(s))return;let{state:d}=e();await Da([s],u?window.location.href:C(d.navigation.location||d.location),t,n,r,a,o,i.manifestPath,c,l)}}function xa(e,t,n,r,i,a){D.useEffect(()=>{if(!va(i,r)||window.navigator?.connection?.saveData===!0)return;function o(e){let t=e.tagName===`FORM`?e.getAttribute(`action`):e.getAttribute(`href`);if(!t)return;let n=e.tagName===`A`?e.pathname:new URL(t,window.location.origin).pathname;ga.has(n)||ma.add(n)}async function s(){document.querySelectorAll(`a[data-discover], form[data-discover]`).forEach(o);let s=Array.from(ma.keys()).filter(e=>!ga.has(e)||(ma.delete(e),!1));if(s.length!==0)try{await Da(s,null,t,n,r,a,e.basename,i.manifestPath,e.patchRoutes)}catch(e){console.error(`Failed to fetch manifest patches`,e)}}let c=ka(s,100);s();let l=new MutationObserver(()=>c());return l.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-discover`,`href`,`action`]}),()=>l.disconnect()},[r,a,t,n,e,i])}function Sa(e,t){let n=e||`/__manifest`;return t==null?n:G([t,n])}var Ca=`react-router-manifest-version`,wa=5e3,Ta;async function Ea(e,t,n){if(Ta)return Ta;if(!e){try{sessionStorage.removeItem(Ca)}catch{}return!1}if(!n)return console.warn(`Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a 
2new document navigation to sync up with the latest manifest.`),!0;let r=!1;try{r=sessionStorage.getItem(Ca)===t,r||sessionStorage.setItem(Ca,t)}catch{}if(r)throw Error(`Unable to discover routes due to manifest version mismatch.`);let i,a=new Promise((e,t)=>{i=t});Ta=a;let o=()=>{clearTimeout(s),window.removeEventListener(`pageshow`,c),Ta=void 0,i(Error(`Unable to discover routes due to manifest version mismatch.`))},s=setTimeout(o,wa),c=e=>{e.persisted&&o()};window.addEventListener(`pageshow`,c);try{window.location.href=n,console.warn(`Detected manifest version mismatch, reloading...`)}catch{o()}return a}async function Da(e,t,n,r,i,a,o,s,c,l){e=_a(e);let u=new URLSearchParams;u.set(`paths`,e.sort().join(`,`)),u.set(`version`,n.version);let d=new URL(Sa(s,o),window.location.origin);if(d.search=u.toString(),d.toString().length>7680){ma.clear();return}let f;try{let e=await fetch(d,{signal:l});if(!e.ok)throw Error(`${e.status} ${e.statusText}`);if(await Ea(e.status===204&&e.headers.has(`X-Remix-Reload-Document`),n.version,t))return;f=await e.json()}catch(e){if(l?.aborted)return;throw e}if(l?.aborted)return;let p=new Set(Object.keys(n.routes)),m=Object.values(f).reduce((e,t)=>(t&&!p.has(t.id)&&(e[t.id]=t),e),{});Object.assign(n.routes,m),e.forEach(e=>Oa(e,ga));let h=new Set;Object.values(m).forEach(e=>{e&&(!e.parentId||!m[e.parentId])&&h.add(e.parentId)}),h.forEach(e=>c(e||null,ca(m,r,null,i,a,e)))}function Oa(e,t){if(t.size>=ha){let e=t.values().next().value;e!==void 0&&t.delete(e)}t.add(e)}function ka(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}var Aa=D.createContext(void 0);Aa.displayName=`FrameworkContext`;function ja(){let e=D.useContext(Aa);return si(e,`You must render this element inside a <HydratedRouter> element`),e}function Ma(e,t){let n=D.useContext(Aa),[r,i]=D.useState(!1),[a,o]=D.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=D.useRef(null);D.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),D.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Na(s,p),onBlur:Na(c,m),onMouseEnter:Na(l,p),onMouseLeave:Na(u,m),onTouchStart:Na(d,p)}]:[a,f,{}]:[!1,f,{}]}function Na(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Pa(e,t,n){if(n&&!Ua)return[e[0]];if(t){let n=e.findIndex(e=>t[e.route.id]!==void 0);return e.slice(0,n+1)}return e}var Fa=`data-react-router-critical-css`;function Ia({nonce:e,crossOrigin:t}){let{isSpaMode:n,manifest:r,routeModules:i,criticalCss:a,nonce:o}=ja(),{matches:s}=yr(`Links`),{errors:c}=xr(`Links`),l=Pa(s,c,n),u=D.useMemo(()=>Vi(l,i,r),[l,i,r]);return e==null&&o&&(e=o),D.createElement(D.Fragment,null,typeof a==`string`?D.createElement(`style`,{[Fa]:``,nonce:e,dangerouslySetInnerHTML:{__html:a}}):null,typeof a==`object`?D.createElement(`link`,{[Fa]:``,rel:`stylesheet`,href:a.href,nonce:e,crossOrigin:t}):null,u.map(({key:n,link:r})=>Ki(r)?D.createElement(La,{key:n,nonce:e,...r,crossOrigin:r.crossOrigin??t}):D.createElement(`link`,{key:n,nonce:e,...r,crossOrigin:r.crossOrigin??t})))}function La({page:e,...t}){let n=zn(),{nonce:r}=ja(),{router:i}=vr(`PrefetchPageLinks`),a=D.useMemo(()=>i.match(e),[i,i.routes,e]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?D.createElement(za,{page:e,matches:a,...t}):D.createElement(Ba,{page:e,matches:a,...t})):null}function Ra(e){let{manifest:t,routeModules:n}=ja(),[r,i]=D.useState([]);return D.useEffect(()=>{let r=!1;return Ji(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function za({page:e,matches:t,...n}){let r=Y(),i=D.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=ji(e,`rsc`),i=!1,a=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?i=!0:a.push(e.route.id);return i&&a.length>0&&n.searchParams.set(`_routes`,a.join(`,`)),[n.pathname+n.search]},[e,r,t]);return D.createElement(D.Fragment,null,i.map(e=>D.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Ba({page:e,matches:t,...n}){let r=Y(),{manifest:i,routeModules:a}=ja(),{matches:o}=yr(`PrefetchPageLinks`),{loaderData:s}=xr(`PrefetchPageLinks`),c=D.useMemo(()=>Yi(e,t,o,i,r,`data`),[e,t,o,i,r]),l=D.useMemo(()=>Yi(e,t,o,i,r,`assets`),[e,t,o,i,r]),u=D.useMemo(()=>
2{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!c.some(t=>t.route.id===e.route.id)&&e.route.id in s&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))}),n.size===0)return[];let l=ji(e,`data`);return o&&n.size>0&&l.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[l.pathname+l.search]},[s,r,i,c,t,e,a]),d=D.useMemo(()=>Xi(l,i),[l,i]),f=Ra(l);return D.createElement(D.Fragment,null,u.map(e=>D.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),d.map(e=>D.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),f.map(({key:e,link:t})=>D.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Va(){let{isSpaMode:e,routeModules:t}=ja(),{matches:n}=yr(`Meta`),{errors:r,loaderData:i}=xr(`Meta`),a=Y(),o=Pa(n,r,e),s=null;r&&(s=r[o[o.length-1].route.id]);let c=[],l=null,u=[];for(let e=0;e<o.length;e++){let n=o[e],r=n.route.id,d=i[r],f=n.params,p=t[r],m=[],h={id:r,loaderData:d,meta:[],params:n.params,pathname:n.pathname,handle:n.route.handle,error:s};if(u[e]=h,p?.meta?m=typeof p.meta==`function`?p.meta({loaderData:d,params:f,location:a,matches:u,error:s}):Array.isArray(p.meta)?[...p.meta]:p.meta:l&&(m=[...l]),m||=[],!Array.isArray(m))throw Error(`The route at `+n.route.path+` returns an invalid value. All route meta functions must return an array of meta objects.
3
4To reference the meta function API, see https://reactrouter.com/start/framework/route-module#meta`);h.meta=m,u[e]=h,c=[...m],l=c}return D.createElement(D.Fragment,null,c.flat().map(e=>{if(!e)return null;if(`tagName`in e){let{tagName:t,...n}=e;if(!Ha(t))return console.warn(`A meta object uses an invalid tagName: ${t}. Expected either 'link' or 'meta'`),null;let r=t;return D.createElement(r,{key:JSON.stringify(n),...n})}if(`title`in e)return D.createElement(`title`,{key:`title`},String(e.title));if(`charset`in e&&(e.charSet??=e.charset,delete e.charset),`charSet`in e&&e.charSet!=null)return typeof e.charSet==`string`?D.createElement(`meta`,{key:`charSet`,charSet:e.charSet}):null;if(`script:ld+json`in e)try{let t=JSON.stringify(e[`script:ld+json`]);return D.createElement(`script`,{key:`script:ld+json:${t}`,type:`application/ld+json`,dangerouslySetInnerHTML:{__html:ui(t)}})}catch{return null}return D.createElement(`meta`,{key:JSON.stringify(e),...e})}))}function Ha(e){return typeof e==`string`&&/^(meta|link)$/.test(e)}var Ua=!1;function Wa(){Ua=!0}function Ga(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:i,routeDiscovery:a,ssr:o,nonce:s}=ja(),{router:c,static:l,staticContext:u}=vr(`Scripts`),{matches:d}=yr(`Scripts`),f=zn(),p=va(a,o);e.nonce==null&&s&&(e={...e,nonce:s}),i&&(i.didRenderScripts=!0);let m=Pa(d,null,r);D.useEffect(()=>{Wa()},[]);let h=D.useMemo(()=>{if(f)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:` `,i=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:``}${p?``:`import ${JSON.stringify(t.url)}`};
5${m.map((e,n)=>{let r=`route${n}`,i=t.routes[e.route.id];si(i,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:o,clientMiddlewareModule:s,hydrateFallbackModule:c,module:l}=i,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...o?[{module:o,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...c?[{module:c,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return u.length===1?`import * as ${r} from ${JSON.stringify(l)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join(`
6`),`const ${r} = {${u.map(e=>`...${e.varName}`).join(`,`)}};`].join(`
7`)}).join(`
8`)}
9  ${p?`window.__reactRouterManifest = ${JSON.stringify(ya(t,c),null,2)};`:``}
10  window.__reactRouterRouteModules = {${m.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(`,`)}};
11
12import(${JSON.stringify(t.entry.module)});`:` `;return D.createElement(D.Fragment,null,D.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),D.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:`module`,async:!0}))},[]),g=Ua||f?[]:[...new Set(t.entry.imports.concat(Xi(m,t,{includeHydrateFallback:!0})))],_=typeof t.sri==`object`?t.sri:{};return Pr(!f,`The <Scripts /> element is a no-op when using RSC and can be safely removed.`),Ua||f?null:D.createElement(D.Fragment,null,typeof t.sri==`object`?D.createElement(`script`,{...e,"rr-importmap":``,type:`importmap`,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:_})}}):null,p?null:D.createElement(`link`,{rel:`modulepreload`,href:t.url,crossOrigin:e.crossOrigin,integrity:_[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),D.createElement(`link`,{rel:`modulepreload`,href:t.entry.module,crossOrigin:e.crossOrigin,integrity:_[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),g.map(t=>D.createElement(`link`,{key:t,rel:`modulepreload`,href:t,crossOrigin:e.crossOrigin,integrity:_[t],nonce:e.nonce,suppressHydrationWarning:!0})),h)}function Ka(...e){return t=>
12{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var qa=class extends D.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location===e.location?{error:e.error||t.error,location:t.location}:{error:e.error||null,location:e.location}}render(){return this.state.error?D.createElement(Ja,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function Ja({error:e,isOutsideRemixApp:t}){let{nonce:n}=ja();console.error(e);let r=D.createElement(`script`,{nonce:n,dangerouslySetInnerHTML:{__html:`
13        console.log(
14          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
15        );
16      `}});if(Ie(e))return D.createElement(Ya,{title:`Unhandled Thrown Response!`},D.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),null);let i;if(e instanceof Error)i=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);i=Error(t)}return D.createElement(Ya,{title:`Application Error!`,isOutsideRemixApp:t},D.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),D.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},i.stack),r)}function Ya({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=ja();return i.root?.Layout&&!n?r:D.createElement(`html`,{lang:`en`},D.createElement(`head`,null,D.createElement(`meta`,{charSet:`utf-8`}),D.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),D.createElement(`title`,null,e)),D.createElement(`body`,null,D.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},r,t?D.createElement(Ga,null):null)))}var Xa=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Xa&&(window.__reactRouterVersion=`8`)}catch{}var Za=D.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:p,...m},h){let{basename:g,navigator:_,useTransitions:v}=D.useContext(Un),y=typeof l==`string`&&f.test(l),b=Be(l,g);l=b.to;let x=er(l,{relative:r}),S=Y(),C=null;if(o){let e=Te(o,[],S.mask?S.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:G([g,e.pathname])),C=_.createHref(e)}let[w,T,E]=Ma(n,m),O=to(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:p,useTransitions:v});function k(t){e&&e(t),t.defaultPrevented||O(t)}let A=!(b.isExternal||i),j=D.createElement(`a`,{...m,...E,href:(A?C:void 0)||b.absoluteURL||x,onClick:A?k:e,ref:Ka(h,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?D.createElement(D.Fragment,null,j,D.createElement(La,{page:x})):j});Za.displayName=`Link`;var Qa=D.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=cr(a,{relative:c.relative}),d=Y(),f=D.useContext(Ln),{navigator:p,basename:m}=D.useContext(Un),h=f!=null&&ho(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f?.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=_e(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(y)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return D.createElement(Za,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});Qa.displayName=`NavLink`;var $a=D.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:p,...m},h)=>{let{useTransitions:g}=D.useContext(Un),_=ao(),v=oo(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&f.test(s);return D.createElement(`form`,{ref:h,method:y,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,f=()=>_(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:p});g&&n!==!1?D.startTransition(()=>f()):f()},...m,"data-discover":!b&&e===`render`?`true`:void 0})});$a.displayName=`Form`;function eo({getKey:e,storageKey:t,...n}){let r=D.useContext(Aa),{basename:i}=D.useContext(Un),a=Y(),o=Tr();fo({getKey:e,storageKey:t});let s=D.useMemo(()=>
16{if(!r||!e)return null;let t=uo(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),D.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${ui(JSON.stringify(t||co))}, ${ui(JSON.stringify(s))})`}})}eo.displayName=`ScrollRestoration`;function to(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=rr(),d=Y(),f=cr(e,{relative:o});return D.useCallback(p=>{if($r(p,t)){p.preventDefault();let t=n===void 0?C(d)===C(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?D.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function no(e){y(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=D.useRef(ei(e)),n=D.useRef(!1),r=Y(),i=D.useMemo(()=>ti(r.search,n.current?null:t.current),[r.search]),a=rr();return[i,D.useCallback((e,t)=>{let r=ei(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var ro=0,io=()=>`__${String(++ro)}__`;function ao(){let{router:e}=vr(`useSubmit`),{basename:t}=D.useContext(Un),n=Cr(`useSubmit`),r=e.fetch,i=e.navigate;return D.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=oi(e,t);a.navigate===!1?await r(a.fetcherKey||io(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function oo(e,{relative:t}={}){let{basename:n}=D.useContext(Un),r=D.useContext(Gn);v(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...cr(e||`.`,{relative:t})},o=Y();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:G([n,a.pathname])),C(a)}
16function so({key:e}={}){let{router:t}=vr(`useFetcher`),n=br(`useFetcher`),r=Cr(`useFetcher`),i=D.useId(),[a,o]=D.useState(e||i);e&&e!==a&&o(e);let{deleteFetcher:s,getFetcher:c,resetFetcher:l,fetch:u}=t;D.useEffect(()=>(c(a),()=>s(a)),[s,c,a]);let d=D.useCallback(async(e,t)=>{v(r,`No routeId available for fetcher.load()`),await u(a,r,e,t)},[a,r,u]),f=ao(),p=D.useCallback(async(e,t)=>{await f(e,{...t,navigate:!1,fetcherKey:a})},[a,f]),m=D.useCallback(e=>l(a,e),[l,a]),h=D.useMemo(()=>{let e=D.forwardRef((e,t)=>D.createElement($a,{...e,navigate:!1,fetcherKey:a,ref:t}));return e.displayName=`fetcher.Form`,e},[a]),g=n.fetchers.get(a)||mt,_=n.fetcherData.get(a);return D.useMemo(()=>({Form:h,submit:p,load:d,reset:m,...g,data:_}),[h,p,d,m,g,_])}var co=`react-router-scroll-positions`,lo={};function uo(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:_e(e.pathname,n)||e.pathname},t)),i??=e.key,i}function fo({getKey:e,storageKey:t}={}){let{router:n}=vr(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=yr(`useScrollRestoration`),{basename:a}=D.useContext(Un),o=Y(),s=Tr(),c=wr();D.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),mo(D.useCallback(e=>{e.persisted&&(window.history.scrollRestoration=`manual`)},[])),po(D.useCallback(()=>{if(c.state===`idle`){let t=uo(o,s,a,e);lo[t]=window.scrollY}try{sessionStorage.setItem(t||co,JSON.stringify(lo))}catch(e){y(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(D.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||co);e&&(lo=JSON.parse(e))}catch{}},[t]),D.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(lo,()=>window.scrollY,e?(t,n)=>uo(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),D.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{y(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function po(e,t){let{capture:n}=t||{};D.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function mo(e,t){let{capture:n}=t||{};D.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pageshow`,e,t),()=>{window.removeEventListener(`pageshow`,e,t)}},[e,n])}function ho(e,{relative:t}={}){let n=D.useContext(Bn);v(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=vr(`useViewTransitionState`),i=cr(e,{relative:t});if(!n.isTransitioning)return!1;let a=_e(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=_e(n.nextLocation.pathname,r)||n.nextLocation.pathname;return me(i.pathname,o)!=null||me(i.pathname,a)!=null}var go=Array.isArray,_o=e=>{if(!e)return``;if(typeof e==`string`)return e;if(typeof e==`number`)return``+e;let t=``;if(go(e)){let n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!n)continue;let i=typeof n==`string`?n:_o(n);i&&(t&&(t+=` `),t+=i)}return t}if(typeof e==`object`)for(let n in e)e[n]&&(t&&(t+=` `),t+=n);return t},vo=(...e)=>_o(e),yo=(e,t)=>{let n=e.length,r=t.length,i=Array(n+r);for(let t=0;t<n;t++)i[t]=e[t];for(let e=0;e<r;e++)i[n+e]=t[e];return i},bo=(e,t)=>({classGroupId:e,validator:t}),xo=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),So=[],Co=e=>{let t=Eo(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e[0]===`[`&&e[e.length-1]===`]`)return To(e);let n=e.split(`-`);return wo(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?yo(i,t):t:i||So}return n[e]||So}}},wo=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=wo(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(`-`):e.slice(t).join(`-`),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},To=e=>{let t=e.slice(1,-1),n=t.indexOf(`:`);
16if(n===-1)return;let r=t.slice(0,n);return r?`arbitrary..`+r:void 0},Eo=e=>{let{theme:t,classGroups:n}=e;return Do(n,t)},Do=(e,t)=>{let n=xo();for(let r in e){let i=e[r];Oo(i,n,r,t)}return n},Oo=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];ko(i,t,n,r)}},ko=(e,t,n,r)=>{if(typeof e==`string`){Ao(e,t,n);return}if(typeof e==`function`){jo(e,t,n,r);return}Mo(e,t,n,r)},Ao=(e,t,n)=>{let r=e===``?t:No(t,e);r.classGroupId=n},jo=(e,t,n,r)=>{if(Po(e)){Oo(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(bo(n,e))},Mo=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Oo(o,No(t,a),n,r)}},No=(e,t)=>{let n=e,r=t.split(`-`),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=xo(),n.nextPart.set(t,i)),n=i}return n},Po=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Fo=(e,t,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:void 0}),Io=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e.charCodeAt(s);if(n===0&&r===0){if(o===58){t.push(e.slice(i,s)),i=s+1;continue}if(o===47){a=s;continue}}o===91?n++:o===93?n--:o===40?r++:o===41&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1,u=s.length-1;s.charCodeAt(u)===33?(c=s.slice(0,-1),l=!0):s.charCodeAt(0)===33&&(c=s.slice(1),l=!0);let d=a&&a>i?a-i:void 0;return Fo(t,l,c,d)},Lo=e=>{let t=new Set(e.orderSensitiveModifiers);return e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);if(o||s){if(r.length>0){r.sort();for(let e=0;e<r.length;e++)n.push(r[e]);r=[]}n.push(a)}else r.push(a)}if(r.length>0){r.sort();for(let e=0;e<r.length;e++)n.push(r[e])}return n}},Ro={isExternal:!0,classId:-1,conflictIds:[]},zo=e=>{let t=Lo(e),n=Bo(e),{getClassGroupId:r,getConflictingClassGroupIds:i}=Co(e),a=Object.create(null),o=Object.create(null),s=0,c=new Int32Array(256),l=0,u=new Uint8Array(64),d=!1,f=e=>{let t=[],n=e.length,r=-1;d=!1;for(let i=0;i<n;i++){let n=e.charCodeAt(i);n===32?r!==-1&&(t.push(e.slice(r,i)),r=-1):n>=9&&n<=13?(d=!0,r!==-1&&(t.push(e.slice(r,i)),r=-1)):r===-1&&(r=i)}return r!==-1&&t.push(e.slice(r)),t},p=new Map,m=0,h=e=>{let t=p.get(e);if(t===void 0&&(t=m++,p.set(e,t),t>=c.length)){let e=new Int32Array(c.length*2);e.set(c),c=e}return t},g=e=>{let{isExternal:a,modifiers:o,hasImportantModifier:s,baseClassName:c,maybePostfixModifierPosition:l}=Io(e);if(a)return Ro;let u=!!l,d;if(u){let e=c.substring(0,l);d=r(e);let t=d&&n[d]?r(c):void 0;t&&t!==d&&(d=t,u=!1)}else d=r(c);if(!d){if(!u||(d=r(c),!d))return Ro;u=!1}let f=o.length===0?``:o.length===1?o[0]:t(o).join(`:`),p=s?f+`!`:f,m=i(d,u),g=[];for(let e=0;e<m.length;e++)g.push(h(p+m[e]));return{isExternal:!1,classId:h(p+d),conflictIds:g}},_=e=>{let t=a[e];return t===void 0?(t=o[e],t===void 0&&(t=g(e)),a[e]=t,++s>4096&&(s=0,o=a,a=Object.create(null)),t):t};return{parseClassName:Io,sortModifiers:t,postfixLookupClassGroupIds:n,getClassGroupId:r,getConflictingClassGroupIds:i,getClassDescriptor:_,mergeClassList:e=>{let t=f(e),n=t.length;if(n===1)return t[0];m>16384&&(p.clear(),m=0,a=Object.create(null),o=Object.create(null),s=0),l=l+1|0,l===0&&(l=1);let r=l;if(n>u.length){let e=u.length;for(;e<n;)e*=2;u=new Uint8Array(e)}let i=!1,h=0;for(let e=n-1;e>=0;--e){let n=t[e];h+=n.length;let a=_(n);if(a.isExternal){u[e]=1;continue}let o=a.classId;if(c[o]===r){u[e]=0,i=!0;continue}c[o]=r;let s=a.conflictIds;for(let e=0;e<s.length;e++)c[s[e]]=r;u[e]=1}if(!i&&!d&&e.length===h+n-1)return e;let g=``;for(let e=0;e<n;e++)u[e]===1&&(g&&(g+=` `),g+=t[e]);return g}}},Bo=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Vo=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Ho(n))&&(i&&(i+=` `),i+=r);return i},Ho=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Ho(e[r]))&&(n&&(n+=` `),n+=t);return n},Uo=e=>{let t,n,r=Object.create(null),i=Object.create(null),a=0,o=r=>(t=zo(e()),n=t.mergeClassList,c.mergeString=s,s(r)),s=e=>{let t=r[e];return t===void 0?(t=i[e],t===void 0&&(t=n(e)),r[e]=t,++a>500&&(a=0,i=r,r=Object.create(null)),t):t},c=(...e)=>c.mergeString(Vo(...e));return c.mergeString=o,c},Wo=[],X=e=>{let t=t=>t[e]||Wo;return t.isThemeGetter=!0,t},Go=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ko=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Jo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Zo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$o=Number,es=Number.isNaN,ts=Number.isInteger,ns=e=>qo.test(e),Z=e=>!!e&&!es($o(e)),rs=e=>!!e&&ts($o(e)),is=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),as=e=>Jo.test(e),os=()=>!0,ss=e=>Yo.test(e)&&!Xo.test(e),cs=()=>!1,ls=e=>Zo.test(e),us=e=>Qo.test(e),ds=e=>!Q(e)&&!$(e),fs=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),ps=e=>Os(e,Ms,cs),Q=e=>Go.test(e),ms=e=>Os(e,Ns,ss),hs=e=>Os(e,Ps,Z),gs=e=>Os(e,Is,os),_s=e=>Os(e,Fs,cs),vs=e=>Os(e,As,cs),ys=e=>Os(e,js,us),bs=e=>Os(e,Ls,ls),$=e=>Ko.test(e),xs=e=>ks(e,Ns),Ss=e=>ks(e,Fs),Cs=e=>ks(e,As),ws=e=>ks(e,Ms),Ts=e=>ks(e,js),Es=e=>ks(e,Ls,!0),Ds=e=>ks(e,Is,!0),Os=(e,t,n)=>{let r=Go.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ks=(e,t,n=!1)=>{let r=Ko.exec(e);return r?r[1]?t(r[1]):n:!1},As=e=>e===`position`||e===`percentage`,js=e=>e===`image`||e===`url`,Ms=e=>e===`length`||e===`size`||e===`bg-size`,Ns=e=>e===`length`,Ps=e=>e===`number`,Fs=e=>e===`family-name`,Is=e=>e===`number`||e===`weight`,Ls=e=>e===`shadow`,Rs=Uo(()=>{let e=X(`color`),t=X(`font`),n=X(`text`),r=X(`font-weight`),i=X(`tracking`),a=X(`leading`),o=X(`breakpoint`),s=X(`container`),c=X(`spacing`),l=X(`radius`),u=X(`shadow`),d=X(`inset-shadow`),f=X(`text-shadow`),p=X(`drop-shadow`),m=X(`blur`),h=X(`perspective`),g=X(`aspect`),_=X(`ease`),v=X(`animate`),y=()=>
vendor: 8,328 bytes, line 16
16[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[ns,`full`,`auto`,...w()],E=()=>[rs,`none`,`subgrid`,$,Q],D=()=>[`auto`,{span:[`full`,rs,$,Q]},rs,$,Q],O=()=>[rs,`auto`,$,Q],k=()=>[`auto`,`min`,`max`,`fr`,$,Q],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[ns,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[ns,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[ns,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,$,Q],ee=()=>[...b(),Cs,vs,{position:[$,Q]}],L=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],te=()=>[`auto`,`cover`,`contain`,ws,ps,{size:[$,Q]}],R=()=>[is,xs,ms],z=()=>[``,`none`,`full`,l,$,Q],B=()=>[``,Z,xs,ms],ne=()=>[`solid`,`dashed`,`dotted`,`double`],re=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],V=()=>[Z,is,Cs,vs],H=()=>[``,`none`,m,$,Q],ie=()=>[`none`,Z,$,Q],ae=()=>[`none`,Z,$,Q],oe=()=>[Z,$,Q],U=()=>[ns,`full`,...w()];return{theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[as],breakpoint:[as],color:[os],container:[as],"drop-shadow":[as],ease:[`in`,`out`,`in-out`],font:[ds],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[as],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[as],shadow:[as],spacing:[`px`,Z,`em`],text:[as],"text-shadow":[as],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ns,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[fs],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[rs,`auto`,$,Q]}],basis:[{basis:[ns,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,ns,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[rs,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,xs,ms]},`text-mono`,`text-size-inherit`],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Ds,gs]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,is,Q]}],"font-family":[{font:[Ss,_s,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,hs]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ne(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,ms]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[rs,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:te()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},rs,$,Q],radial:[``,$,Q],conic:[rs,$,Q]},Ts,ys]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:R()}
16],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-bs":[{"border-bs":B()}],"border-w-be":[{"border-be":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":B()}
vendor: 6,690 bytes, line 16
16],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ne(),`hidden`,`none`]}],"divide-style":[{divide:[...ne(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ne(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,xs,ms]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`none`,u,Es,bs]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,Es,bs]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:B()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Z,ms]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,Es,bs]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...re(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":re()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:H()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Es,bs]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":[`scale-3d`],skew:[{skew:oe()}],"skew-x":[{"skew-x":oe()}],"skew-y":[{"skew-y":oe()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:U()}],"translate-x":[{"translate-x":U()}],"translate-y":[{"translate-y":U()}],"translate-z":[{"translate-z":U()}],"translate-none":[`translate-none`],zoom:[{zoom:[rs,$,Q]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom
16-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}
16],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[Z,xs,ms,hs]}],stroke:[{stroke:[`none`,...I()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}}),zs=new WeakMap,Bs=(e,t)=>{let n=t.length,r=!0;for(let e=0;e<n;e++){let n=t[e];if(n&&typeof n!=`string`){r=!1;break}}if(r){let r=zs.get(e);if(r!==void 0)for(let e=0;e<r.length;e++){let i=r[e],a=i.values,o=!0;for(let e=0;e<n;e++)if(a[e]!==t[e]){o=!1;break}if(o)return i.result}}let i=e[0];for(let r=0;r<n;r++){let n=t[r];n&&(i+=typeof n==`string`?n:_o(n)),i+=e[r+1]}let a=Rs.mergeString(i);if(r){let n=zs.get(e);n===void 0&&(n=[],zs.set(e,n)),n.length>=8&&n.shift(),n.push({values:t,result:a})}return a},Vs=e=>Array.isArray(e)&&`raw`in e,Hs=(()=>{let e=Error();return!(`line`in e)&&!(`lineNumber`in e)})(),Us=new Map,Ws=new Map,Gs=0,Ks=e=>{let t=``,n=!1,r=0,i=!0;for(let a of e)if(a){if(typeof a!=`string`){i=!1;break}n||=(t=a,!0),r+=1}if(!i)return Rs.mergeString(_o(e));if(!n)return``;if(r===1)return Rs.mergeString(t);let a=Us.get(t)??Ws.get(t);if(a!=null)for(let t of a){if(t.rest.length!==r-1)continue;let n=0,i=!1,a=!0;for(let r of e)if(r){if(!i){i=!0;continue}if(r!==t.rest[n]){a=!1;break}n+=1}if(a)return t.result}let o=t,s=!1,c=[];for(let t of e)if(t&&typeof t==`string`){if(!s){s=!0;continue}o+=` `+t,c.push(t)}let l=Rs.mergeString(o),u=Us.get(t);return u??(u=[],Us.set(t,u)),u.length>=64&&u.shift(),u.push({rest:c,result:l}),Gs+=1,Gs>500&&(Gs=0,Ws=Us,Us=new Map),l},qs=(e,...t)=>{if(Vs(e))return Bs(e,t);if(t.length===0)return Rs.mergeString(_o(e));let n=[e,...t];return Hs?Ks(n):Rs.mergeString(_o(n))},Js=o((e=>{var t=d().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;e.c=function(e){return t.H.useMemoCache(e)}})),Ys=o(((e,t)=>{t.exports=Js()})),Xs=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Zs=o(((e,t)=>{t.exports=Xs()})),Qs=`Invariant failed`;function $s(e,t){if(!e)throw Error(Qs)}var ec=e=>e!=null&&D.Children.toArray(e).some(e=>(0,D.isValidElement)(e)&&e.type===`title`),tc=e=>e[`aria-label`]!=null||e[`aria-labelledby`]!=null||e[`aria-hidden`]!=null||e.role!=null||e.alt!=null||ec(e.children),nc=({className:e,style:t,svg:n,ref:r,...i})=>{$s((0,D.isValidElement)(n)&&D.Children.only(n),`SvgOnly must be passed a single SVG icon as a JSX tag.`);let a=!tc(i)&&!tc(n.props);return(0,D.cloneElement)(n,{"data-slot":`svg-only`,...a&&{"aria-hidden":!0},...i,className:qs(`shrink-0`,e,n.props.className),style:{...t,...n.props.style},ref:r})},rc=Ys(),ic=Zs(),ac=e=>{let t=(0,rc.c)(14),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:n,style:a,svg:o,ref:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s;t[6]===n?s=t[7]:(s=qs(`size-5`,n),t[6]=n,t[7]=s);let c;return t[8]!==r||t[9]!==i||t[10]!==a||t[11]!==o||t[12]!==s?(c=(0,ic.jsx)(nc,{ref:i,"data-slot":`icon`,className:s,style:a,svg:o,...r}),t[8]=r,t[9]=i,t[10]=a,t[11]=o,t[12]=s,t[13]=c):c=t[13],c};export{Wr as A,bt as B,pa as C,Vr as D,Ci as E,rr as F,v as G,pe as H,wr as I,s as J,d as K,kr as L,Or as M,Er as N,Lr as O,Y as P,Dr as R,aa as S,Ni as T,Ie as U,P as V,_ as W,l as Y,Va as _,Ys as a,xa as b,$a as c,eo as d,so as f,Ia as g,Aa as h,Zs as i,Kr as j,Fr as k,Za as l,qa as m,nc as n,qs as o,no as p,o as q,$s as r,vo as s,ac as t,Qa as u,Ga as v,zi as w,ca as x,ba as y,vt as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.