PageSourceSearch

https://www.aifire.co/assets/dist-CAHjj65Z.js

js aifire.co collected 2026-10-04 00:13:17 UTC 69,686 bytes, 6 lines download raw bytes

vendor: 7,781 bytes, lines 1-3
1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8385475d-0cb9-5ad0-a918-8a49898e7407")}catch(e){}}();
3import{a as e,n as t}from"./jsx-runtime-CMgEUHpv.js";var n=t((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.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return E(e.type,t,e.props)}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function te(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ne=/\/+/g;function O(e,t){return typeof e==`object`&&e&&e.key!=null?te(``+e.key):t.toString(36)}function k(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(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 A(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,A(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+O(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(ne,`$&/`)+`/`),A(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ne,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+O(a,u),c+=A(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+O(a,u++),c+=A(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return A(k(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 j(e,t,n){if(e==null)return e;var r=[],i=0;return A(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function M(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var N=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)},P={map:j,forEach:function(e,t,n){j(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return j(e,function(){t++}),t},toArray:function(e){return j(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=P,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},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=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.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 E(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)T.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 E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:M}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,N)}catch(e){N(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()}
3,e.version=`19.2.4`})),r=t(((e,t)=>{t.exports=n()})),i=e(r());function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}var o;(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})(o||={});var s=`popstate`;function c(e){e===void 0&&(e={});function t(e,t){let{pathname:n,search:r,hash:i}=e.location;return p(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){return typeof t==`string`?t:m(t)}return g(t,n,null,e)}function l(e,t){if(e===!1||e==null)throw Error(t)}function u(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function d(){return Math.random().toString(36).substr(2,8)}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n,r){return n===void 0&&(n=null),a({pathname:typeof e==`string`?e:e.pathname,search:``,hash:``},typeof t==`string`?h(t):t,{state:n,key:t&&t.key||r||d()})}function m(e){let{pathname:t=`/`,search:n=``,hash:r=``}=e;return n&&n!==`?`&&(t+=n.charAt(0)===`?`?n:`?`+n),r&&r!==`#`&&(t+=r.charAt(0)===`#`?r:`#`+r),t}function h(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function g(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:c=!1}=r,u=i.history,d=o.Pop,h=null,g=_();g??(g=0,u.replaceState(a({},u.state,{idx:g}),``));function _(){return(u.state||{idx:null}).idx}function v(){d=o.Pop;let e=_(),t=e==null?null:e-g;g=e,h&&h({action:d,location:S.location,delta:t})}function y(e,t){d=o.Push;let r=p(S.location,e,t);n&&n(r,e),g=_()+1;let a=f(r,g),s=S.createHref(r);try{u.pushState(a,``,s)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(s)}c&&h&&h({action:d,location:S.location,delta:1})}function b(e,t){d=o.Replace;let r=p(S.location,e,t);n&&n(r,e),g=_();let i=f(r,g),a=S.createHref(r);u.replaceState(i,``,a),c&&h&&h({action:d,location:S.location,delta:0})}function x(e){let t=i.location.origin===`null`?i.location.href:i.location.origin,n=typeof e==`string`?e:m(e);return n=n.replace(/ $/,`%20`),l(t,`No window.location.(origin|href) available to create URL for href: `+n),new URL(n,t)}let S={get action(){return d},get location(){return e(i,u)},listen(e){if(h)throw Error(`A history only accepts one active listener`);return i.addEventListener(s,v),h=e,()=>{i.removeEventListener(s,v),h=null}},createHref(e){return t(i,e)},createURL:x,encodeLocation(e){let t=x(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:y,replace:b,go(e){return u.go(e)}};return S}var _;(function(e){e.data=`data`,e.deferred=`deferred`,e.redirect=`redirect`,e.error=`error`})(_||={});var v=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function y(e){return e.index===!0}function b(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((e,i)=>{let o=[...n,String(i)],s=typeof e.id==`string`?e.id:o.join(`-`);if(l(e.index!==!0||!e.children,`Cannot specify children on an index route`),l(!r[s],`Found a route id collision on i
3d "`+s+`".  Route id's must be globally unique within Data Router usages`),y(e)){let n=a({},e,t(e),{id:s});return r[s]=n,n}else{let n=a({},e,t(e),{id:s,children:void 0});return r[s]=n,e.children&&(n.children=b(e.children,t,o,r)),n}})}function x(e,t,n){return n===void 0&&(n=`/`),S(e,t,n,!1)}function S(e,t,n,r){let i=ae((typeof t==`string`?h(t):t).pathname||`/`,n);if(i==null)return null;let a=w(e);E(a);let o=null,s=ie(i);for(let e=0;o==null&&e<a.length;++e)o=N(a[e],s,r);return o}function C(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function w(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=``);let i=(e,i,a)=>{let o={relativePath:a===void 0?e.path||``:a,caseSensitive:e.caseSensitive===!0,childrenIndex:i,route:e};o.relativePath.startsWith(`/`)&&(l(o.relativePath.startsWith(r),`Absolute route path "`+o.relativePath+`" nested under path `+(`"`+r+`" is not valid. An absolute child route path `)+`must start with the combined path of all its parent routes.`),o.relativePath=o.relativePath.slice(r.length));let s=z([r,o.relativePath]),c=n.concat(o);e.children&&e.children.length>0&&(l(e.index!==!0,`Index routes must not have child routes. Please remove `+(`all child routes from route path "`+s+`".`)),w(e.children,t,c,s)),!(e.path==null&&!e.index)&&t.push({path:s,score:j(s,e.index),routesMeta:c})};return e.forEach((e,t)=>{var n;if(e.path===``||!((n=e.path)!=null&&n.includes(`?`)))i(e,t);else for(let n of T(e.path))i(e,t,n)}),t}function T(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=T(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 E(e){e.sort((e,t)=>e.score===t.score?M(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ee=/^:[\w-]+$/,D=3,te=2,ne=1,O=10,k=-2,A=e=>e===`*`;function j(e,t){let n=e.split(`/`),r=n.length;return n.some(A)&&(r+=k),t&&(r+=te),n.filter(e=>!A(e)).reduce((e,t)=>e+(ee.test(t)?D:t===``?ne:O),r)}function M(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 N(e,t,n){n===void 0&&(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=P({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=P({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;
3Object.assign(i,u.params),o.push({params:i,pathname:z([a,u.pathname]),pathnameBase:de(z([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=z([a,u.pathnameBase]))}return o}function P(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=re(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:i}=t;if(r===`*`){let e=s[n]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let c=s[n];return i&&!c?e[r]=void 0:e[r]=(c||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function re(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),u(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)=>(r.push({paramName:t,isOptional:n!=null}),n?`/?([^\\/]+)?`:`/([^\\/]+)`));return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ie(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return u(!1,`The URL path "`+e+`" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent `+(`encoding (`+t+`).`)),e}}function ae(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)||`/`}var oe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,se=e=>oe.test(e);function ce(e,t){t===void 0&&(t=`/`);let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?h(e):e,a;if(n)if(se(n))a=n;else{if(n.includes(`//`)){let e=n;n=R(n),u(!1,`Pathnames cannot have embedded double slashes - normalizing `+(e+` -> `+n))}a=n.startsWith(`/`)?le(n.substring(1),`/`):le(n,t)}else a=t;return{pathname:a,search:B(r),hash:fe(i)}}function le(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function F(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 ue(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function I(e,t){let n=ue(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function L(e,t,n,r){r===void 0&&(r=!1);let i;typeof e==`string`?i=h(e):(i=a({},e),l(!i.pathname||!i.pathname.includes(`?`),F(`?`,`pathname`,`search`,i)),l(!i.pathname||!i.pathname.includes(`#`),F(`#`,`pathname`,`hash`,i)),l(!i.search||!i.search.includes(`#`),F(`#`,`search`,`hash`,i)));let o=e===``||i.pathname===``,s=o?`/`:i.pathname,c;if(s==null)c=n;else{let e=t.length-1;if(!r&&s.startsWith(`..`)){let t=s.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}c=e>=0?t[e]:`/`}let u=ce(i,c),d=s&&s!==`/`&&s.endsWith(`/`),f=(o||s===`.`)&&n.endsWith(`/`);return!u.pathname.endsWith(`/`)&&(d||f)&&(u.pathname+=`/`),u}var R=e=>e.replace(/\/\/+/g,`/`),z=e=>R(e.join(`/`)),de=e=>e.replace(/\/+$/,``).replace(/^\/*/,`/`),B=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,fe=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,pe=class{constructor(e,t){this.type=`DataWithResponseInit`,this.data=e,this.init=t||null}};function me(e,t){return new pe(e,typeof t==`number`?{status:t}:t)}var he=class extends Error{},ge=class{constructor(e,t){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],l(e&&typeof e==`object`&&!Array.isArray(e),`defer() only accepts plain objects`);let n;this.abortPromise=new Promise((e,t)=>
3n=t),this.controller=new AbortController;let r=()=>n(new he(`Deferred data aborted`));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener(`abort`,r),this.controller.signal.addEventListener(`abort`,r),this.data=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:this.trackPromise(n,r)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let n=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(n,e,void 0,t),t=>this.onSettle(n,e,t));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(e,t,n,r){if(this.controller.signal.aborted&&n instanceof he)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),n===void 0&&r===void 0){let n=Error(`Deferred data for key "`+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>n}),this.emit(!1,t),Promise.reject(n)}return r===void 0?(Object.defineProperty(e,"_error",{get:()=>n}),this.emit(!1,t),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:()=>r}),this.emit(!1,t),r)}emit(e,t){this.subscribers.forEach(n=>n(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let n=()=>this.cancel();e.addEventListener(`abort`,n),t=await new Promise(t=>{this.subscribe(r=>{e.removeEventListener(`abort`,n),(r||this.done)&&t(r)})})}return t}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return l(this.data!==null&&this.done,`Can only unwrap data on initialized and settled deferreds`),Object.entries(this.data).reduce((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:V(r)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}};function _e(e){return e instanceof Promise&&e._tracked===!0}function V(e){if(!_e(e))return e;if(e._error)throw e._error;return e._data}var ve=function(e,t){t===void 0&&(t=302);let n=t;typeof 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,a({},n,{headers:r}))},ye=class{constructor(e,t,n,r){r===void 0&&(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 be(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}var xe=[`post`,`put`,`patch`,`delete`],Se=new Set(xe),Ce=[`get`,...xe],we=new Set(Ce),Te=new Set([301,302,303,307,308]),Ee=new Set([307,308]),De={state:`idle`,location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Oe={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ke={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},Ae=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,je=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Me=`remix-router-transitions`;function Ne(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,r=!n;l(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;i=e=>({hasErrorBoundary:t(e)})}else i=je;let s={},c=b(e.routes,i,void 0,s),d,f=e.basename||`/`,m=e.dataStrategy||We,h=e.patchRoutesOnNavigation,g=a({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),v=null,y=new Set,w=null,T=null,E=null,ee=e.hydrationData!=null,D=x(c,e.history.location,f),te=!1,ne=null;if(D==null&&!h){let t=G(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=rt(c);D=n,ne={[r.id]:t}}D&&!e.hydrationData&&Mt(D,c,e.history.location.pathname).active&&(D=null);let O;
vendor: 10,359 bytes, line 3
3if(!D){if(O=!1,D=[],g.v7_partialHydration){let t=Mt(null,c,e.history.location.pathname);t.active&&t.matches&&(te=!0,D=t.matches)}}else if(D.some(e=>e.route.lazy))O=!1;else if(!D.some(e=>e.route.loader))O=!0;else if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=D.findIndex(e=>n[e.route.id]!==void 0);O=D.slice(0,e+1).every(e=>!ze(e.route,t,n))}else O=D.every(e=>!ze(e.route,t,n))}else O=e.hydrationData!=null;let k,A={historyAction:e.history.action,location:e.history.location,matches:D,initialized:O,navigation:De,restoreScrollPosition:e.hydrationData==null?null:!1,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||ne,fetchers:new Map,blockers:new Map},j=o.Pop,M=!1,N,P=!1,re=new Map,ie=null,oe=!1,se=!1,ce=[],le=new Set,F=new Map,ue=0,I=-1,L=new Map,R=new Set,z=new Map,de=new Map,B=new Set,fe=new Map,pe=new Map,me;function he(){if(v=e.history.listen(t=>{let{action:n,location:r,delta:i}=t;if(me){me(),me=void 0;return}u(pe.size===0||i!=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 a=Et({currentLocation:A.location,nextLocation:r,historyAction:n});if(a&&i!=null){let t=new Promise(e=>{me=e});e.history.go(i*-1),Y(a,{state:`blocked`,location:r,proceed(){Y(a,{state:`proceeding`,proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(i))},reset(){let e=new Map(A.blockers);e.set(a,ke),V({blockers:e})}});return}return Se(n,r)}),n){wt(t,re);let e=()=>Tt(t,re);t.addEventListener(`pagehide`,e),ie=()=>t.removeEventListener(`pagehide`,e)}return A.initialized||Se(o.Pop,A.location,{initialHydration:!0}),k}function ge(){v&&v(),ie&&ie(),y.clear(),N&&N.abort(),A.fetchers.forEach((e,t)=>Ze(t)),A.blockers.forEach((e,t)=>gt(t))}function _e(e){return y.add(e),()=>y.delete(e)}function V(e,t){t===void 0&&(t={}),A=a({},A,e);let n=[],r=[];g.v7_fetcherPersist&&A.fetchers.forEach((e,t)=>{e.state===`idle`&&(B.has(t)?r.push(t):n.push(t))}),B.forEach(e=>{!A.fetchers.has(e)&&!F.has(e)&&r.push(e)}),[...y].forEach(e=>e(A,{deletedFetchers:r,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),g.v7_fetcherPersist?(n.forEach(e=>A.fetchers.delete(e)),r.forEach(e=>Ze(e))):r.forEach(e=>B.delete(e))}function ve(t,n,r){let{flushSync:i}=r===void 0?{}:r,s=A.actionData!=null&&A.navigation.formMethod!=null&&J(A.navigation.formMethod)&&A.navigation.state===`loading`&&t.state?._isRedirect!==!0,l;l=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:s?A.actionData:null;let u=n.loaderData?et(A.loaderData,n.loaderData,n.matches||[],n.errors):A.loaderData,f=A.blockers;f.size>0&&(f=new Map(f),f.forEach((e,t)=>f.set(t,ke)));let p=M===!0||A.navigation.formMethod!=null&&J(A.navigation.formMethod)&&t.state?._isRedirect!==!0;d&&=(c=d,void 0),oe||j===o.Pop||(j===o.Push?e.history.push(t,t.state):j===o.Replace&&e.history.replace(t,t.state));let m;if(j===o.Pop){let e=re.get(A.location.pathname);e&&e.has(t.pathname)?m={currentLocation:A.location,nextLocation:t}:re.has(t.pathname)&&(m={currentLocation:t,nextLocation:A.location})}else if(P){let e=re.get(A.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),re.set(A.location.pathname,e)),m={currentLocation:A.location,nextLocation:t}}V(a({},n,{actionData:l,loaderData:u,historyAction:j,location:t,initialized:!0,navigation:De,revalidation:`idle`,restoreScrollPosition:jt(t,n.matches||A.matches),preventScrollReset:p,blockers:f}),{viewTransitionOpts:m,flushSync:i===!0}),j=o.Pop,M=!1,P=!1,oe=!1,se=!1,ce=[]}async function ye(t,n){if(typeof t==`number`){e.history.go(t);return}let r=Fe(A.location,A.matches,f,g.v7_prependBasename,t,g.v7_relativeSplatPath,n?.fromRouteId,n?.relative),{path:i,submission:s,error:c}=Ie(g.v7_normalizeFormMethod,!1,r,n),l=A.location,u=p(A.location,i,n&&n.state);u=a({},u,e.history.encodeLocation(u));let d=n&&n.replace!=null?n.replace:void 0,m=o.Push;d===!0?m=o.Replace:d===!1||s!=null&&J(s.formMethod)&&s.formAction===A.location.pathname+A.location.search&&(m=o.Replace);let h=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,_=(n&&n.flushSync)===!0,v=Et({currentLocation:l,nextLocation:u,historyAction:m});if(v){Y(v,{state:`blocked`,location:u,proceed(){Y(v,{state:`proceeding`,proceed:void 0,reset:void 0,location:u}),ye(t,n)},reset(){let e=new Map(A.blockers);e.set(v,ke),V({blockers:e})}});return}return await Se(m,u,{submission:s,pendingError:c,preventScrollReset:h,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:_})}function xe(){if(Ue(),V({revalidation:`loading`}),A.navigation.state!==`submitting`){if(A.navigation.state===`idle`){Se(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}Se(j||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:P===!0})}}async function Se(t,n,r){N&&N.abort(),N=null,j=t,oe=(r&&r.startUninterruptedRevalidation)===!0,X(A.location,A.matches),M=(r&&r.preventScrollReset)===!0,P=(r&&r.enableViewTransition)===!0;let i=d||c,o=r&&r.overrideNavigation,s=r!=null&&r.initialHydration&&A.matches&&A.matches.length>0&&!te?A.matches:x(i,n,f),l=(r&&r.flushSync)===!0;if(s&&A.initialized&&!se&&at(A.location,n)&&!(r&&r.submission&&J(r.submission.formMethod))){ve(n,{matches:s},{flushSync:l});return}let u=Mt(s,i,n.pathname);if(u.active&&u.matches&&(s=u.matches),!s){let{error:e,notFoundMatches:t,route:r}=Dt(n.pathname);ve(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l});return}N=new AbortController;let p=Ye(e.history,n,N.signal,r&&r.submission),m;if(r&&r.pendingError)m=[nt(s).route.id,{type:_.error,error:r.pendingError}];else if(r&&r.submission&&J(r.submission.formMethod)){let t=await Ce(p,n,r.submission,s,u.active,{replace:r.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(q(r)&&be(r.error)&&r.error.status===404){N=null,ve(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}s=t.matches||s,m=t.pendingActionResult,o=yt(n,r.submission),l=!1,u.active=!1,p=Ye(e.history,p.url,p.signal)}let{shortCircuited:h,matches:g,loaderData:v,errors:y}=await we(p,n,s,u.active,o,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,l,m);h||(N=null,ve(n,a({matches:g||s},tt(m),{loaderData:v,errors:y})))}async function Ce(t,n,r,i,a,s){if(s===void 0&&(s={}),Ue(),V({navigation:bt(n,r)},{flushSync:s.flushSync===!0}),a){let e=await Z(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){let t=nt(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:_.error,error:e.error}]}}else if(e.matches)i=e.matches;else{let{notFoundMatches:e,error:t,route:r}=Dt(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:_.error,error:t}]}}}let c,l=_t(i,n);if(!l.route.action&&!l.route.lazy)c={type:_.error,error:G(405,{method:t.method,pathname:n.pathname,routeId:l.route.id})};else if(c=(await Be(`action`,A,t,[l],i,null))[l.route.id],t.signal.aborted)return{shortCircuited:!0};if(ct(c)){let n;return n=s&&s.replace!=null?s.replace:Je(c.response.headers.get(`Location`),new URL(t.url),f,e.history)===A.location.pathname+A.location.search,await H(t,c,!0,{submission:r,replace:n}),{shortCircuited:!0}}if(st(c))throw G(400,{type:`defer-action`});if(q(c)){let e=nt(i,l.route.id);return(s&&s.replace)!==!0&&(j=o.Push),{matches:i,pendingActionResult:[e.route.id,c]}}return{matches:i,pendingActionResult:[l.route.id,c]}}async function we(t,n,r,i,o,s,l,u,p,m,h){let _=o||yt(n,s),v=s||l||vt(_),y=!oe&&(!g.v7_partialHydration||!p);if(i){if(y){let e=Te(h);V(a({navigation:_},e===void 0?{}:{actionData:e}),{flushSync:m})}let e=await Z(r,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){let t=nt(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)r=e.matches;else{let{error:e,notFoundMatches:t,route:r}=Dt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let b=d||c,[x,S]=Re(e.history,A,r,v,n,g.v7_partialHydration&&p===!0,g.v7_skipActionErrorRevalidation,se,ce,le,B,z,R,b,f,h);if(Ot(e=>!(r&&r.some(t=>t.route.id===e))||x&&x.some(t=>t.route.id===e)),I=++ue,x.length===0&&S.length===0){let e=ut();return ve(n,a({matches:r,loaderData:{},errors:h&&q(h[1])?{[h[0]]:h[1].error}:null},tt(h),e?{fetchers:new Map(A.fetchers)}:{}),{flushSync:m}),{shortCircuited:!0}}if(y){let e={};if(!i){e.navigation=_;let t=Te(h);t!==void 0&&(e.actionData=t)}S.length>0&&(e.fetchers=Me(S)),V(e,{flushSync:m})}S.forEach(e=>{K(e.key),e.controller&&F.set(e.key,e.controller)});let C=()=>S.forEach(e=>K(e.key));N&&N.signal.addEventListener(`abort`,C);let{loaderResults:w,fetcherResults:T}=await Ve(A,r,x,S,t);if(t.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener(`abort`,C),S.forEach(e=>F.delete(e.key));let E=it(w);if(E)return await H(t,E.result,!0,{replace:u}),{shortCircuited:!0};if(E=it(T),E)return R.add(E.key),await H(t,E.result,!0,{replace:u}),{shortCircuited:!0};let{loaderData:ee,errors:D}=$e(A,r,w,h,S,T,fe);fe.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&fe.delete(t)})}),g.v7_partialHydration&&p&&A.errors&&(D=a({},A.errors,D));let te=ut(),ne=dt(I),O=te||ne||S.length>0;return a({matches:r,loaderData:ee,errors:D},O?{fetchers:new Map(A.fetchers)}:{})}function Te(e){if(e&&!q(e[1]))return{[e[0]]:e[1].data};if(A.actionData)return Object.keys(A.actionData).length===0?null:A.actionData}function Me(e){return e.forEach(e=>{let t=A.fetchers.get(e.key),n=xt(void 0,t?t.data:void 0);A.fetchers.set(e.key,n)}),new Map(A.fetchers)}function Ne(e,t,n,i){if(r)throw Error(`router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.`);K(e);let a=(i&&i.flushSync)===!0,o=d||c,s=Fe(A.location,A.matches,f,g.v7_prepe
3ndBasename,n,g.v7_relativeSplatPath,t,i?.relative),l=x(o,s,f),u=Mt(l,o,s);if(u.active&&u.matches&&(l=u.matches),!l){W(e,t,G(404,{pathname:s}),{flushSync:a});return}let{path:p,submission:m,error:h}=Ie(g.v7_normalizeFormMethod,!0,s,i);if(h){W(e,t,h,{flushSync:a});return}let _=_t(l,p),v=(i&&i.preventScrollReset)===!0;if(m&&J(m.formMethod)){Pe(e,t,p,_,l,u.active,a,v,m);return}z.set(e,{routeId:t,path:p}),Le(e,t,p,_,l,u.active,a,v,m)}async function Pe(t,n,r,i,a,o,s,u,p){Ue(),z.delete(t);function m(e){return!e.route.action&&!e.route.lazy?(W(t,n,G(405,{method:p.formMethod,pathname:r,routeId:n}),{flushSync:s}),!0):!1}if(!o&&m(i))return;U(t,St(p,A.fetchers.get(t)),{flushSync:s});let h=new AbortController,_=Ye(e.history,r,h.signal,p);if(o){let e=await Z(a,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){W(t,n,e.error,{flushSync:s});return}else if(!e.matches){W(t,n,G(404,{pathname:r}),{flushSync:s});return}else if(a=e.matches,i=_t(a,r),m(i))return}F.set(t,h);let v=ue,y=(await Be(`action`,A,_,[i],a,t))[i.route.id];if(_.signal.aborted){F.get(t)===h&&F.delete(t);return}if(g.v7_fetcherPersist&&B.has(t)){if(ct(y)||q(y)){U(t,Ct(void 0));return}}else{if(ct(y))if(F.delete(t),I>v){U(t,Ct(void 0));return}else return R.add(t),U(t,xt(p)),H(_,y,!1,{fetcherSubmission:p,preventScrollReset:u});if(q(y)){W(t,n,y.error);return}}if(st(y))throw G(400,{type:`defer-action`});let b=A.navigation.location||A.location,S=Ye(e.history,b,h.signal),C=d||c,w=A.navigation.state===`idle`?A.matches:x(C,A.navigation.location,f);l(w,`Didn't find any matches after fetcher action`);let T=++ue;L.set(t,T);let E=xt(p,y.data);A.fetchers.set(t,E);let[ee,D]=Re(e.history,A,w,p,b,!1,g.v7_skipActionErrorRevalidation,se,ce,le,B,z,R,C,f,[i.route.id,y]);D.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=A.fetchers.get(t),r=xt(void 0,n?n.data:void 0);A.fetchers.set(t,r),K(t),e.controller&&F.set(t,e.controller)}),V({fetchers:new Map(A.fetchers)});let te=()=>D.forEach(e=>K(e.key));h.signal.addEventListener(`abort`,te);let{loaderResults:ne,fetcherResults:O}=await Ve(A,w,ee,D,S);if(h.signal.aborted)return;h.signal.removeEventListener(`abort`,te),L.delete(t),F.delete(t),D.forEach(e=>F.delete(e.key));let k=it(ne);if(k)return H(S,k.result,!1,{preventScrollReset:u});if(k=it(O),k)return R.add(k.key),H(S,k.result,!1,{preventScrollReset:u});let{loaderData:M,errors:P}=$e(A,w,ne,void 0,D,O,fe);if(A.fetchers.has(t)){let e=Ct(y.data);A.fetchers.set(t,e)}dt(T),A.navigation.state===`loading`&&T>I?(l(j,`Expected pending action`),N&&N.abort(),ve(A.navigation.location,{matches:w,loaderData:M,errors:P,fetchers:new Map(A.fetchers)})):(V({errors:P,loaderData:et(A.loaderData,M,w,P),fetchers:new Map(A.fetchers)}),se=!1)}async function Le(t,n,r,i,a,o,s,c,u){let d=A.fetchers.get(t);U(t,xt(u,d?d.data:void 0),{flushSync:s});let f=new AbortController,p=Ye(e.history,r,f.signal);if(o){let e=await Z(a,new URL(p.url).pathname,p.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){W(t,n,e.error,{flushSync:s});return}else if(e.matches)a=e.matches,i=_t(a,r);else{W(t,n,G(404,{pathname:r}),{flushSync:s});return}}F.set(t,f);let m=ue,h=(await Be(`loader`,A,p,[i],a,t))[i.route.id];if(st(h)&&(h=await ht(h,p.signal,!0)||h),F.get(t)===f&&F.delete(t),!p.signal.aborted){if(B.has(t)){U(t,Ct(void 0));return}if(ct(h))if(I>m){U(t,Ct(void 0));return}else{R.add(t),await H(p,h,!1,{preventScrollReset:c});return}if(q(h)){W(t,n,h.error);return}l(!st(h),`Unhandled fetcher deferred data`),U(t,Ct(h.data))}}async function H(r,i,s,c){let{submission:u,fetcherSubmission:d,preventScrollReset:m,replace:h}=c===void 0?{}:c;i.response.headers.has(`X-Remix-Revalidate`)&&(se=!0);let g=i.response.headers.get(`Location`);l(g,`Expected a Location header on the redirect Response`),g=Je(g,new URL(r.url),f,e.history);let _=p(A.location,g,{_isRedirect:!0});if(n){let n=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))n=!0;else if(Ae.test(g)){let r=e.history.createURL(g);n=r.origin!==t.location.origin||ae(r.pathname,f)==null}if(n){h?t.location.replace(g):t.location.assign(g);return}}N=null;let v=h===!0||i.response.headers.has(`X-Remix-Replace`)?o.Replace:o.Push,{formMethod:y,formAction:b,formEncType:x}=A.navigation;!u&&!d&&y&&b&&x&&(u=vt(A.navigation));let S=u||d;Ee.has(i.response.status)&&S&&J(S.formMethod)?await Se(v,_,{submission:a({},S,{formAction:g}),preventScrollReset:m||M,enableViewTransition:s?P:void 0}):await Se(v,_,{overrideNavigation:yt(_,u),fetcherSubmission:d,preventScrollReset:m||M,enableViewTransition:s?P:void 0})}async function Be(e,t,n,r,a,o){let c,l={};try{c=await Ge(m,e,t,n,r,a,o,s,i)}catch(e){return r.forEach(t=>{l[t.route.id]={type:_.error,error:e}}),l}for(let[e,t]of Object.entries(c))if(ot(t)){let r=t.result;
vendor: 10,485 bytes, lines 3-4
3l[e]={type:_.redirect,response:qe(r,n,e,a,f,g.v7_relativeSplatPath)}}else l[e]=await Ke(t);return l}async function Ve(t,n,r,i,a){let o=t.matches,s=Be(`loader`,t,a,r,n,null),c=Promise.all(i.map(async n=>{if(n.matches&&n.match&&n.controller){let r=(await Be(`loader`,t,Ye(e.history,n.path,n.controller.signal),[n.match],n.matches,n.key))[n.match.route.id];return{[n.key]:r}}else return Promise.resolve({[n.key]:{type:_.error,error:G(404,{pathname:n.path})}})})),l=await s,u=(await c).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([pt(n,l,a.signal,o,t.loaderData),mt(n,u,i)]),{loaderResults:l,fetcherResults:u}}function Ue(){se=!0,ce.push(...Ot()),z.forEach((e,t)=>{F.has(t)&&le.add(t),K(t)})}function U(e,t,n){n===void 0&&(n={}),A.fetchers.set(e,t),V({fetchers:new Map(A.fetchers)},{flushSync:(n&&n.flushSync)===!0})}function W(e,t,n,r){r===void 0&&(r={});let i=nt(A.matches,t);Ze(e),V({errors:{[i.route.id]:n},fetchers:new Map(A.fetchers)},{flushSync:(r&&r.flushSync)===!0})}function Xe(e){return de.set(e,(de.get(e)||0)+1),B.has(e)&&B.delete(e),A.fetchers.get(e)||Oe}function Ze(e){let t=A.fetchers.get(e);F.has(e)&&!(t&&t.state===`loading`&&L.has(e))&&K(e),z.delete(e),L.delete(e),R.delete(e),g.v7_fetcherPersist&&B.delete(e),le.delete(e),A.fetchers.delete(e)}function Qe(e){let t=(de.get(e)||0)-1;t<=0?(de.delete(e),B.add(e),g.v7_fetcherPersist||Ze(e)):de.set(e,t),V({fetchers:new Map(A.fetchers)})}function K(e){let t=F.get(e);t&&(t.abort(),F.delete(e))}function lt(e){for(let t of e){let e=Ct(Xe(t).data);A.fetchers.set(t,e)}}function ut(){let e=[],t=!1;for(let n of R){let r=A.fetchers.get(n);l(r,`Expected fetcher: `+n),r.state===`loading`&&(R.delete(n),e.push(n),t=!0)}return lt(e),t}function dt(e){let t=[];for(let[n,r]of L)if(r<e){let e=A.fetchers.get(n);l(e,`Expected fetcher: `+n),e.state===`loading`&&(K(n),L.delete(n),t.push(n))}return lt(t),t.length>0}function ft(e,t){let n=A.blockers.get(e)||ke;return pe.get(e)!==t&&pe.set(e,t),n}function gt(e){A.blockers.delete(e),pe.delete(e)}function Y(e,t){let n=A.blockers.get(e)||ke;l(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(A.blockers);r.set(e,t),V({blockers:r})}function Et(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(pe.size===0)return;pe.size>1&&u(!1,`A router only supports one blocker at a time`);let i=Array.from(pe.entries()),[a,o]=i[i.length-1],s=A.blockers.get(a);if(!(s&&s.state===`proceeding`)&&o({currentLocation:t,nextLocation:n,historyAction:r}))return a}function Dt(e){let t=G(404,{pathname:e}),{matches:n,route:r}=rt(d||c);return Ot(),{notFoundMatches:n,route:r,error:t}}function Ot(e){let t=[];return fe.forEach((n,r)=>{(!e||e(r))&&(n.cancel(),t.push(r),fe.delete(r))}),t}function kt(e,t,n){if(w=e,E=t,T=n||null,!ee&&A.navigation===De){ee=!0;let e=jt(A.location,A.matches);e!=null&&V({restoreScrollPosition:e})}return()=>{w=null,E=null,T=null}}function At(e,t){return T&&T(e,t.map(e=>C(e,A.loaderData)))||e.key}function X(e,t){if(w&&E){let n=At(e,t);w[n]=E()}}function jt(e,t){if(w){let n=At(e,t),r=w[n];if(typeof r==`number`)return r}return null}function Mt(e,t,n){if(h){if(!e)return{active:!0,matches:S(t,n,f,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:S(t,n,f,!0)}}return{active:!1,matches:null}}async function Z(e,t,n,r){if(!h)return{type:`success`,matches:e};let a=e;for(;;){let e=d==null,o=d||c,l=s;try{await h({signal:n,path:t,matches:a,fetcherKey:r,patch:(e,t)=>{n.aborted||He(e,t,o,l,i)}})}catch(e){return{type:`error`,error:e,partialMatches:a}}finally{e&&!n.aborted&&(c=[...c])}if(n.aborted)return{type:`aborted`};let u=x(o,t,f);if(u)return{type:`success`,matches:u};let p=S(o,t,f,!0);if(!p||a.length===p.length&&a.every((e,t)=>e.route.id===p[t].route.id))return{type:`success`,matches:null};a=p}}function Nt(e){s={},d=b(e,i,void 0,s)}function Pt(e,t){let n=d==null;He(e,t,d||c,s,i),n&&(c=[...c],V({}))}return k={get basename(){return f},get future(){return g},get state(){return A},get routes(){return c},get window(){return t},initialize:he,subscribe:_e,enableScrollRestoration:kt,navigate:ye,fetch:Ne,revalidate:xe,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Xe,deleteFetcher:Qe,dispose:ge,getBlocker:ft,deleteBlocker:gt,patchRoutes:Pt,_internalFetchControllers:F,_internalActiveDeferreds:fe,_internalSetRoutes:Nt},k}function Pe(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Fe(e,t,n,r,i,a,o,s){let c,l;if(o){c=[];for(let e of t)if(c.push(e),e.route.id===o){l=e;break}}else c=t,l=t[t.length-1];let u=L(i||`.`,I(c,a),ae(e.pathname,n)||e.pathname,s===`path`);if(i??(u.search=e.search,u.hash=e.hash),(i==null||i===``||i===`.`)&&l){let e=gt(u.search);if(l.route.index&&!e)u.search=u.search?u.search.replace(/^\?/,`?index&`):`?index`;else if(!l.route.index&&e){let e=new URLSearchParams(u.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();u.search=n?`?`+n:``}}return r&&n!==`/`&&(u.pathname=u.pathname===`/`?n:z([n,u.pathname])),m(u)}function Ie(e,t,n,r){if(!r||!Pe(r))return{path:n};if(r.formMethod&&!ft(r.formMethod))return{path:n,error:G(405,{method:r.formMethod})};let i=()=>({path:n,error:G(400,{type:`invalid-body`})}),a=r.formMethod||`get`,o=e?a.toUpperCase():a.toLowerCase(),s=K(n);if(r.body!==void 0){if(r.formEncType===`text/plain`){if(!J(o))return i();let e=typeof r.body==`string`?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return``+e+n+`=`+r+`
4`},``):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}else if(r.formEncType===`application/json`){if(!J(o))return i();try{let e=typeof r.body==`string`?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch{return i()}}}l(typeof FormData==`function`,`FormData is not available in this environment`);let c,u;if(r.formData)c=Xe(r.formData),u=r.formData;else if(r.body instanceof FormData)c=Xe(r.body),u=r.body;else if(r.body instanceof URLSearchParams)c=r.body,u=Ze(c);else if(r.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(r.body),u=Ze(c)}catch{return i()}let d={formMethod:o,formAction:s,formEncType:r&&r.formEncType||`application/x-www-form-urlencoded`,formData:u,json:void 0,text:void 0};if(J(d.formMethod))return{path:n,submission:d};let f=h(n);return t&&f.search&&gt(f.search)&&c.append(`index`,``),f.search=`?`+c,{path:m(f),submission:d}}function Le(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(e=>e.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function Re(e,t,n,r,i,o,s,c,l,u,d,f,p,m,h,g){let _=g?q(g[1])?g[1].error:g[1].data:void 0,v=e.createURL(t.location),y=e.createURL(i),b=n;o&&t.errors?b=Le(n,Object.keys(t.errors)[0],!0):g&&q(g[1])&&(b=Le(n,g[0]));let S=g?g[1].statusCode:void 0,C=s&&S&&S>=400,w=b.filter((e,n)=>{let{route:i}=e;if(i.lazy)return!0;if(i.loader==null)return!1;if(o)return ze(i,t.loaderData,t.errors);if(H(t.loaderData,t.matches[n],e)||l.some(t=>t===e.route.id))return!0;let s=t.matches[n],u=e;return Ve(e,a({currentUrl:v,currentParams:s.params,nextUrl:y,nextParams:u.params},r,{actionResult:_,actionStatus:S,defaultShouldRevalidate:C?!1:c||v.pathname+v.search===y.pathname+y.search||v.search!==y.search||Be(s,u)}))}),T=[];return f.forEach((e,i)=>{if(o||!n.some(t=>t.route.id===e.routeId)||d.has(i))return;let s=x(m,e.path,h);if(!s){T.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let l=t.fetchers.get(i),f=_t(s,e.path),g=!1;p.has(i)?g=!1:u.has(i)?(u.delete(i),g=!0):g=l&&l.state!==`idle`&&l.data===void 0?c:Ve(f,a({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:_,actionStatus:S,defaultShouldRevalidate:C?!1:c})),g&&T.push({key:i,routeId:e.routeId,path:e.path,matches:s,match:f,controller:new AbortController})}),[w,T]}function ze(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader==`function`&&e.loader.hydrate===!0?!0:!r&&!i}function H(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Be(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function Ve(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function He(e,t,n,r,i){let a;if(e){let t=r[e];l(t,`No route found to patch children into: routeId = `+e),t.children||=[],a=t.children}else a=n;let o=b(t.filter(e=>!a.some(t=>Ue(e,t))),i,[e||`_`,`patch`,String(a?.length||`0`)],r);a.push(...o)}function Ue(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?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((e,n)=>t.children?.some(t=>Ue(e,t))):!1}async function U(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];l(i,`No route found in manifest`);let o={};for(let e in r){let t=i[e]!==void 0&&e!==`hasErrorBoundary`;u(!t,`Route "`+i.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.`)),!t&&!v.has(e)&&(o[e]=r[e])}Object.assign(i,o),Object.assign(i,a({},t(i),{lazy:void 0}))}async function We(e){let{matches:t}=e,n=t.filter(e=>e.shouldLoad);return(await Promise.all(n.map(e=>e.resolve()))).reduce((e,t,r)=>Object.assign(e,{[n[r].route.id]:t}),{})}async function Ge(e,t,n,r,i,o,s,c,l,u){let d=o.map(e=>e.route.lazy?U(e.route,l,c):void 0),f=await e({matches:o.map((e,n)=>{let o=d[n],s=i.some(t=>t.route.id===e.route.id);return a({},e,{shouldLoad:s,resolve:async n=>(n&&r.method===`GET`&&(e.route.lazy||e.route.loader)&&(s=!0),s?W(t,r,e,o,n,u):Promise.resolve({type:_.data,result:void 0}))})}),request:r,params:o[0].params,fetcherKey:s,context:u});try{await Promise.all(d)}catch{}return f}async function W(e,t,n,r,i,a){let o,s,c=r=>{let o,c=new Promise((e,t)=>
4o=t);s=()=>o(),t.signal.addEventListener(`abort`,s);let l=i=>typeof r==`function`?r({request:t,params:n.params,context:a},...i===void 0?[]:[i]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean `+(`"`+e+`" [routeId: `+n.route.id+`]`))),u=(async()=>{try{return{type:`data`,result:await(i?i(e=>l(e)):l())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([u,c])};try{let i=n.route[e];if(r)if(i){let e,[t]=await Promise.all([c(i).catch(t=>{e=t}),r]);if(e!==void 0)throw e;o=t}else if(await r,i=n.route[e],i)o=await c(i);else if(e===`action`){let e=new URL(t.url),r=e.pathname+e.search;throw G(405,{method:t.method,pathname:r,routeId:n.route.id})}else return{type:_.data,result:void 0};else if(i)o=await c(i);else{let e=new URL(t.url);throw G(404,{pathname:e.pathname+e.search})}l(o.result!==void 0,`You defined `+(e===`action`?`an action`:`a loader`)+` for route `+(`"`+n.route.id+`" but didn't return anything from your \``+e+"` ")+"function. Please return a value or `null`.")}catch(e){return{type:_.error,result:e}}finally{s&&t.signal.removeEventListener(`abort`,s)}return o}async function Ke(e){let{result:t,type:n}=e;if(dt(t)){let e;try{let n=t.headers.get(`Content-Type`);e=n&&/\bapplication\/json\b/.test(n)?t.body==null?null:await t.json():await t.text()}catch(e){return{type:_.error,error:e}}return n===_.error?{type:_.error,error:new ye(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:_.data,data:e,statusCode:t.status,headers:t.headers}}if(n===_.error){if(lt(t)){var r;if(t.data instanceof Error){var i;return{type:_.error,error:t.data,statusCode:t.init?.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:_.error,error:new ye(t.init?.status||500,void 0,t.data),statusCode:be(t)?t.status:void 0,headers:(r=t.init)!=null&&r.headers?new Headers(t.init.headers):void 0}}return{type:_.error,error:t,statusCode:be(t)?t.status:void 0}}if(ut(t))return{type:_.deferred,deferredData:t,statusCode:t.init?.status,headers:t.init?.headers&&new Headers(t.init.headers)};if(lt(t)){var a;return{type:_.data,data:t.data,statusCode:t.init?.status,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:_.data,data:t}}function qe(e,t,n,r,i,a){let o=e.headers.get(`Location`);if(l(o,`Redirects returned/thrown from loaders/actions must have a Location header`),!Ae.test(o)){let s=r.slice(0,r.findIndex(e=>e.route.id===n)+1);o=Fe(new URL(t.url),s,i,!0,o,a),e.headers.set(`Location`,o)}return e}function Je(e,t,n,r){let i=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];if(Ae.test(e)){let r=e,a=r.startsWith(`//`)?new URL(t.protocol+r):new URL(r);if(i.includes(a.protocol))throw Error(`Invalid redirect location`);let o=ae(a.pathname,n)!=null;if(a.origin===t.origin&&o)return R(a.pathname)+a.search+a.hash}try{let t=r.createURL(e);if(i.includes(t.protocol))throw Error(`Invalid redirect location`)}catch{}return e}function Ye(e,t,n,r){let i=e.createURL(K(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)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=Xe(r.formData):a.body=r.formData}return new Request(i,a)}function Xe(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function Ze(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Qe(e,t,n,r,i){let a={},o=null,s,c=!1,u={},d=n&&q(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let f=n.route.id,p=t[f];if(l(!ct(p),`Cannot handle redirect results in processLoaderData`),q(p)){let t=p.error;if(d!==void 0&&(t=d,d=void 0),o||={},i)o[f]=t;else{let n=nt(e,f);o[n.route.id]??(o[n.route.id]=t)}a[f]=void 0,c||(c=!0,s=be(p.error)?p.error.status:500),p.headers&&(u[f]=p.headers)}else st(p)?(r.set(f,p.deferredData),a[f]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!c&&(s=p.statusCode),p.headers&&(u[f]=p.headers)):(a[f]=p.data,p.statusCode&&p.statusCode!==200&&!c&&(s=p.statusCode),p.headers&&(u[f]=p.headers))}),d!==void 0&&n&&(o={[n[0]]:d},a[n[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:u}}function $e(e,t,n,r,i,o,s){let{loaderData:c,errors:u}=Qe(t,n,r,s,!1);
vendor: 6,636 bytes, line 4
4return i.forEach(t=>{let{key:n,match:r,controller:i}=t,s=o[n];if(l(s,`Did not find corresponding fetcher result`),!(i&&i.signal.aborted))if(q(s)){let t=nt(e.matches,r?.route.id);u&&u[t.route.id]||(u=a({},u,{[t.route.id]:s.error})),e.fetchers.delete(n)}else if(ct(s))l(!1,`Unhandled fetcher revalidation redirect`);else if(st(s))l(!1,`Unhandled fetcher deferred data`);else{let t=Ct(s.data);e.fetchers.set(n,t)}}),{loaderData:c,errors:u}}function et(e,t,n,r){let i=a({},t);for(let a of n){let n=a.route.id;if(t.hasOwnProperty(n)?t[n]!==void 0&&(i[n]=t[n]):e[n]!==void 0&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function tt(e){return e?q(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function nt(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function rt(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 G(e,t){let{pathname:n,routeId:r,method:i,type:a,message:o}=t===void 0?{}:t,s=`Unknown Server Error`,c=`Unknown @remix-run/router error`;return e===400?(s=`Bad Request`,i&&n&&r?c=`You made a `+i+` request to "`+n+`" but `+('did not provide a `loader` for route "'+r+`", `)+`so there is no way to handle the request.`:a===`defer-action`?c=`defer() is not supported in actions`:a===`invalid-body`&&(c=`Unable to encode submission body`)):e===403?(s=`Forbidden`,c=`Route "`+r+`" does not match URL "`+n+`"`):e===404?(s=`Not Found`,c=`No route matches URL "`+n+`"`):e===405&&(s=`Method Not Allowed`,i&&n&&r?c=`You made a `+i.toUpperCase()+` request to "`+n+`" but `+('did not provide an `action` for route "'+r+`", `)+`so there is no way to handle the request.`:i&&(c=`Invalid request method "`+i.toUpperCase()+`"`)),new ye(e||500,s,Error(c),!0)}function it(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(ct(r))return{key:n,result:r}}}function K(e){let t=typeof e==`string`?h(e):e;return m(a({},t,{hash:``}))}function at(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash?!0:t.hash!==``}function ot(e){return dt(e.result)&&Te.has(e.result.status)}function st(e){return e.type===_.deferred}function q(e){return e.type===_.error}function ct(e){return(e&&e.type)===_.redirect}function lt(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function ut(e){let t=e;return t&&typeof t==`object`&&typeof t.data==`object`&&typeof t.subscribe==`function`&&typeof t.cancel==`function`&&typeof t.resolveData==`function`}function dt(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function ft(e){return we.has(e.toLowerCase())}function J(e){return Se.has(e.toLowerCase())}async function pt(e,t,n,r,i){let a=Object.entries(t);for(let o=0;o<a.length;o++){let[s,c]=a[o],l=e.find(e=>e?.route.id===s);if(!l)continue;let u=r.find(e=>e.route.id===l.route.id),d=u!=null&&!Be(u,l)&&(i&&i[l.route.id])!==void 0;st(c)&&d&&await ht(c,n,!1).then(e=>{e&&(t[s]=e)})}}async function mt(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:a,controller:o}=n[r],s=t[i];e.find(e=>e?.route.id===a)&&st(s)&&(l(o,`Expected an AbortController for revalidating fetcher deferred result`),await ht(s,o.signal,!0).then(e=>{e&&(t[i]=e)}))}}async function ht(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:_.data,data:e.deferredData.unwrappedData}}catch(e){return{type:_.error,error:e}}return{type:_.data,data:e.deferredData.data}}}function gt(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function _t(e,t){let n=typeof t==`string`?h(t).search:t.search;if(e[e.length-1].route.index&&gt(n||``))return e[e.length-1];let r=ue(e);return r[r.length-1]}function vt(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 yt(e,t){return t?{state:`loading`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:`loading`,location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function bt(e,t){return{state:`submitting`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function xt(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 St(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 Ct(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 wt(e,t){try{let n=e.sessionStorage.getItem(Me);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 Tt(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Me,JSON.stringify(n))}catch(e){u(!1,`Failed to save applied view transitions in sessionStorage (`+e+`).`)}}}function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(null,arguments)}var Et=i.createContext(null),Dt=i.createContext(null),Ot=i.createContext(null),kt=i.createContext(null),At=i.createContext(null),X=i.createContext({outlet:null,matches:[],isDataRoute:!1}),jt=i.createContext(null);function Mt(e,t){let{relative:n}=t===void 0?{}:t;!Z()&&l(!1);let{basename:r,navigator:a}=i.useContext(kt),{hash:o,pathname:s,search:c}=Vt(e,{relative:n}),u=s;return r!==`/`&&(u=s===`/`?r:z([r,s])),a.createHref({pathname:u,search:c,hash:o})}function Z(){return i.useContext(At)!=null}function Nt(){return!Z()&&l(!1),i.useContext(At).location}function Pt(e){i.useContext(kt).static||i.useLayoutEffect(e)}function Ft(){let{isDataRoute:e}=i.useContext(X);
4return e?ln():It()}function It(){!Z()&&l(!1);let e=i.useContext(Et),{basename:t,future:n,navigator:r}=i.useContext(kt),{matches:a}=i.useContext(X),{pathname:o}=Nt(),s=JSON.stringify(I(a,n.v7_relativeSplatPath)),c=i.useRef(!1);return Pt(()=>{c.current=!0}),i.useCallback(function(n,i){if(i===void 0&&(i={}),!c.current)return;if(typeof n==`number`){r.go(n);return}let a=L(n,JSON.parse(s),o,i.relative===`path`);e==null&&t!==`/`&&(a.pathname=a.pathname===`/`?t:z([t,a.pathname])),(i.replace?r.replace:r.push)(a,i.state,i)},[t,r,s,o,e])}var Lt=i.createContext(null);function Rt(){return i.useContext(Lt)}function zt(e){let t=i.useContext(X).outlet;return t&&i.createElement(Lt.Provider,{value:e},t)}function Bt(){let{matches:e}=i.useContext(X),t=e[e.length-1];return t?t.params:{}}function Vt(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=i.useContext(kt),{matches:a}=i.useContext(X),{pathname:o}=Nt(),s=JSON.stringify(I(a,r.v7_relativeSplatPath));return i.useMemo(()=>L(e,JSON.parse(s),o,n===`path`),[e,s,o,n])}function Ht(e,t,n,r){!Z()&&l(!1);let{navigator:a}=i.useContext(kt),{matches:s}=i.useContext(X),c=s[s.length-1],u=c?c.params:{};c&&c.pathname;let d=c?c.pathnameBase:`/`;c&&c.route;let f=Nt(),p;if(t){let e=typeof t==`string`?h(t):t;!(d===`/`||e.pathname?.startsWith(d))&&l(!1),p=e}else p=f;let m=p.pathname||`/`,g=m;if(d!==`/`){let e=d.replace(/^\//,``).split(`/`);g=`/`+m.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let _=x(e,{pathname:g}),v=qt(_&&_.map(e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:z([d,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?d:z([d,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),s,n,r);return t&&v?i.createElement(At.Provider,{value:{location:Y({pathname:`/`,search:``,hash:``,state:null,key:`default`},p),navigationType:o.Pop}},v):v}function Ut(){let e=on(),t=be(e)?e.status+` `+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return i.createElement(i.Fragment,null,i.createElement(`h2`,null,`Unexpected Application Error!`),i.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?i.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var Wt=i.createElement(Ut,null),Gt=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}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){console.error(`React Router caught the following error during render`,e,t)}render(){return this.state.error===void 0?this.props.children:i.createElement(X.Provider,{value:this.props.routeContext},i.createElement(jt.Provider,{value:this.state.error,children:this.props.component}))}};function Kt(e){let{routeContext:t,match:n,children:r}=e,a=i.useContext(Et);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(X.Provider,{value:t},r)}function qt(e,t,n,r){if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=n?.errors;if(s!=null){let e=o.findIndex(e=>e.route.id&&s?.[e.route.id]!==void 0);!(e>=0)&&l(!1),o=o.slice(0,Math.min(o.length,e+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&e[t.route.id]===void 0&&(!r||r[t.route.id]===void 0);if(t.route.lazy||i){c=!0,o=u>=0?o.slice(0,u+1):[o[0]];break}}}return o.reduceRight((e,r,a)=>{let l,d=!1,f=null,p=null;n&&(l=s&&r.route.id?s[r.route.id]:void 0,f=r.route.errorElement||Wt,c&&(u<0&&a===0?(dn(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):u===a&&(d=!0,p=r.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,a+1)),h=()=>{let t;return t=l?f:d?p:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(Kt,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:n!=null},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||a===0)?i.createElement(Gt,{location:n.location,revalidation:n.revalidation,component:f,error:l,children:h(),routeC
4ontext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var Jt=function(e){return e.UseBlocker=`useBlocker`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e}(Jt||{}),Q=function(e){return e.UseBlocker=`useBlocker`,e.UseLoaderData=`useLoaderData`,e.UseActionData=`useActionData`,e.UseRouteError=`useRouteError`,e.UseNavigation=`useNavigation`,e.UseRouteLoaderData=`useRouteLoaderData`,e.UseMatches=`useMatches`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e.UseRouteId=`useRouteId`,e}(Q||{});function Yt(e){let t=i.useContext(Et);return!t&&l(!1),t}function Xt(e){let t=i.useContext(Dt);return!t&&l(!1),t}function Zt(e){let t=i.useContext(X);return!t&&l(!1),t}function Qt(e){let t=Zt(e),n=t.matches[t.matches.length-1];return!n.route.id&&l(!1),n.route.id}function $t(){return Qt(Q.UseRouteId)}function en(){return Xt(Q.UseNavigation).navigation}function tn(){let{matches:e,loaderData:t}=Xt(Q.UseMatches);return i.useMemo(()=>e.map(e=>C(e,t)),[e,t])}function nn(){let e=Xt(Q.UseLoaderData),t=Qt(Q.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+`)`);return}return e.loaderData[t]}function rn(e){return Xt(Q.UseRouteLoaderData).loaderData[e]}function an(){let e=Xt(Q.UseActionData),t=Qt(Q.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function on(){let e=i.useContext(jt),t=Xt(Q.UseRouteError),n=Qt(Q.UseRouteError);return e===void 0?t.errors?.[n]:e}function sn(){return i.useContext(Ot)?._data}function cn(){return i.useContext(Ot)?._error}function ln(){let{router:e}=Yt(Jt.UseNavigateStable),t=Qt(Q.UseNavigateStable),n=i.useRef(!1);return Pt(()=>{n.current=!0}),i.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r==`number`?e.navigate(r):e.navigate(r,Y({fromRouteId:t},i)))},[e,t])}var un={};function dn(e,t,n){!t&&!un[e]&&(un[e]=!0)}var fn=(e,t,n)=>(``+t+("You can use the `"+e+"` future flag to opt-in early. ")+(`For more information, see `+n+`.`),void 0);function pn(e,t){e?.v7_startTransition===void 0&&fn(`v7_startTransition`,"React Router will begin wrapping state updates in `React.startTransition` in v7",`https://reactrouter.com/v6/upgrading/future#v7_starttransition`),e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath===void 0)&&fn(`v7_relativeSplatPath`,`Relative route resolution within Splat routes is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath`),t&&(t.v7_fetcherPersist===void 0&&fn(`v7_fetcherPersist`,`The persistence behavior of fetchers is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist`),t.v7_normalizeFormMethod===void 0&&fn(`v7_normalizeFormMethod`,"Casing of `formMethod` fields is being normalized to uppercase in v7",`https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod`),t.v7_partialHydration===void 0&&fn(`v7_partialHydration`,"`RouterProvider` hydration behavior is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_partialhydration`),t.v7_skipActionErrorRevalidation===void 0&&fn(`v7_skipActionErrorRevalidation`,"The revalidation behavior after 4xx/5xx `action` responses is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation`))}function mn(e){return zt(e.context)}function hn(e){let{basename:t=`/`,children:n=null,location:r,navigationType:a=o.Pop,navigator:s,static:c=!1,future:u}=e;Z()&&l(!1);let d=t.replace(/^\/*/,`/`),f=i.useMemo(()=>({basename:d,navigator:s,static:c,future:Y({v7_relativeSplatPath:!1},u)}),[d,u,s,c]);typeof r==`string`&&(r=h(r));let{pathname:p=`/`,search:m=``,hash:g=``,state:_=null,key:v=`default`}=r,y=i.useMemo(()=>{let e=ae(p,d);return e==null?null:{location:{pathname:e,search:m,hash:g,state:_,key:v},navigationType:a}},[d,p,m,g,_,v,a]);return y==null?null:i.createElement(kt.Provider,{value:f},i.createElement(At.Provider,{children:n,value:y}))}function gn(e){let{children:t,errorElement:n,resolve:r}=e;return i.createElement(vn,{resolve:r,errorElement:n},i.createElement(yn,null,t))}var $=function(e){return e[e.pending=0]=`pending`,e[e.success=1]=`success`,e[e.error=2]=`error`,e}($||{}),_n=new Promise(()=>{}),vn=class extends i.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error(`<Await> caught the following error during render`,e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,a=$.pending;if(!(n instanceof Promise))a=$.success,r=Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>n});else if(this.state.error){a=$.error;let e=this.state.error;r=Promise.reject().catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>e})}else n._tracked?(r=n,a=`_error`in r?$.error:`_data`in r?$.success:$.pending):(a=$.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),r=n.then(e=>Object.defineProperty(n,"_data",{get:()=>e}),e=>Object.defineProperty(n,"_error",{get:()=>e})));if(a===$.error&&r._error instanceof he)throw _n;if(a===$.error&&!t)throw r._error;if(a===$.error)return i.createElement(Ot.Provider,{value:r,children:t});if(a===$.success)return i.createElement(Ot.Provider,{value:r,children:e});throw r}};function yn(e){let{children:t}=e,n=sn(),r=typeof t==`function`?t(n):t;return i.createElement(i.Fragment,null,r)}function bn(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:i.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:i.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}export{m as A,ae as B,rn as C,ye as D,ge as E,z as F,P as I,x as L,me as M,l as N,Oe as O,be as P,h as R,$t as S,he as T,r as V,en as _,mn as a,Vt as b,pn as c,cn as d,Mt as f,Ft as g,tn as h,kt as i,Ne as j,c as k,bn as l,Nt as m,Et as n,X as o,nn as p,Dt as r,hn as s,gn as t,an as u,Rt as v,Ht as w,on as x,Bt as y,ve as z};
5//# sourceMappingURL=dist-CAHjj65Z.js.map
6//# debugId=8385475d-0cb9-5ad0-a918-8a49898e7407

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.