PageSourceSearch

https://tradepilot-app.netlify.app/assets/vendor-C6ETJJh-.js

js tradepilot-app.netlify.app collected 2026-10-03 11:31:34 UTC 49,915 bytes, 28 lines download raw bytes

vendor: 5,383 bytes, lines 1-9
1function dt(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pe={exports:{}},E={};/**
2 * @license React
3 * react.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Oe;function ht(){if(Oe)return E;Oe=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),o=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),y=Symbol.iterator;function R(u){return u===null||typeof u!="object"?null:(u=y&&u[y]||u["@@iterator"],typeof u=="function"?u:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function m(u,p,S){this.props=u,this.context=p,this.refs=g,this.updater=S||C}m.prototype.isReactComponent={},m.prototype.setState=function(u,p){if(typeof u!="object"&&typeof u!="function"&&u!=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,u,p,"setState")},m.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function _(){}_.prototype=m.prototype;function x(u,p,S){this.props=u,this.context=p,this.refs=g,this.updater=S||C}var $=x.prototype=new _;$.constructor=x,v($,m.prototype),$.isPureReactComponent=!0;var k=Array.isArray;function D(){}var b={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function Y(u,p,S){var w=S.ref;return{$$typeof:e,type:u,key:p,ref:w!==void 0?w:null,props:S}}function X(u,p){return Y(u.type,p,u.props)}function Q(u){return typeof u=="object"&&u!==null&&u.$$typeof===e}function he(u){var p={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function(S){return p[S]})}var Z=/\/+/g;function q(u,p){return typeof u=="object"&&u!==null&&u.key!=null?he(""+u.key):p.toString(36)}function F(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(D,D):(u.status="pending",u.then(function(p){u.status==="pending"&&(u.status="fulfilled",u.value=p)},function(p){u.status==="pending"&&(u.status="rejected",u.reason=p)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function G(u,p,S,w,P){var T=typeof u;(T==="undefined"||T==="boolean")&&(u=null);var L=!1;if(u===null)L=!0;else switch(T){case"bigint":case"string":case"number":L=!0;break;case"object":switch(u.$$typeof){case e:case t:L=!0;break;case d:return L=u._init,G(L(u._payload),p,S,w,P)}}if(L)return P=P(u),L=w===""?"."+q(u,0):w,k(P)?(S="",L!=null&&(S=L.replace(Z,"$&/")+"/"),G(P,p,S,"",function(ft){return ft})):P!=null&&(Q(P)&&(P=X(P,S+(P.key==null||u&&u.key===P.key?"":(""+P.key).replace(Z,"$&/")+"/")+L)),p.push(P)),1;L=0;var B=w===""?".":w+":";if(k(u))for(var N=0;N<u.length;N++)w=u[N],T=B+q(w,N),L+=G(w,p,S,T,P);else if(N=R(u),typeof N=="function")for(u=N.call(u),N=0;!(w=u.next()).done;)w=w.value,T=B+q(w,N++),L+=G(w,p,S,T,P);else if(T==="object"){if(typeof u.then=="function")return G(F(u),p,S,w,P);throw p=String(u),Error("Objects are not valid as a React child (found: "+(p==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":p)+"). If you meant to render a collection of children, use an array instead.")}return L}function ae(u,p,S){if(u==null)return u;var w=[],P=0;return G(u,w,"","",function(T){return p.call(S,T,P++)}),w}function st(u){if(u._status===-1){var p=u._result;p=p(),p.then(function(S){(u._status===0||u._status===-1)&&(u._status=1,u._result=S)},function(S){(u._status===0||u._status===-1)&&(u._status=2,u._result=S)}),u._status===-1&&(u._status=0,u._result=p)}if(u._status===1)return u._result.default;throw u._result}var Le=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(p))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)},ct={map:ae,forEach:function(u,p,S){ae(u,function(){p.apply(this,arguments)},S)},count:function(u){var p=0;return ae(u,function(){p++}),p},toArray:function(u){return ae(u,function(p){return p})||[]},only:function(u){if(!Q(u))throw Error("React.Children.only expected to receive a single React element child.");return u}};return E.Activity=h,E.Children=ct,E.Component=m,E.Fragment=n,E.Profiler=a,E.PureC
vendor: 4,181 bytes, lines 9-17
9omponent=x,E.StrictMode=r,E.Suspense=l,E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,E.__COMPILER_RUNTIME={__proto__:null,c:function(u){return b.H.useMemoCache(u)}},E.cache=function(u){return function(){return u.apply(null,arguments)}},E.cacheSignal=function(){return null},E.cloneElement=function(u,p,S){if(u==null)throw Error("The argument must be a React element, but you passed "+u+".");var w=v({},u.props),P=u.key;if(p!=null)for(T in p.key!==void 0&&(P=""+p.key),p)!W.call(p,T)||T==="key"||T==="__self"||T==="__source"||T==="ref"&&p.ref===void 0||(w[T]=p[T]);var T=arguments.length-2;if(T===1)w.children=S;else if(1<T){for(var L=Array(T),B=0;B<T;B++)L[B]=arguments[B+2];w.children=L}return Y(u.type,P,w)},E.createContext=function(u){return u={$$typeof:s,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null},u.Provider=u,u.Consumer={$$typeof:i,_context:u},u},E.createElement=function(u,p,S){var w,P={},T=null;if(p!=null)for(w in p.key!==void 0&&(T=""+p.key),p)W.call(p,w)&&w!=="key"&&w!=="__self"&&w!=="__source"&&(P[w]=p[w]);var L=arguments.length-2;if(L===1)P.children=S;else if(1<L){for(var B=Array(L),N=0;N<L;N++)B[N]=arguments[N+2];P.children=B}if(u&&u.defaultProps)for(w in L=u.defaultProps,L)P[w]===void 0&&(P[w]=L[w]);return Y(u,T,P)},E.createRef=function(){return{current:null}},E.forwardRef=function(u){return{$$typeof:f,render:u}},E.isValidElement=Q,E.lazy=function(u){return{$$typeof:d,_payload:{_status:-1,_result:u},_init:st}},E.memo=function(u,p){return{$$typeof:o,type:u,compare:p===void 0?null:p}},E.startTransition=function(u){var p=b.T,S={};b.T=S;try{var w=u(),P=b.S;P!==null&&P(S,w),typeof w=="object"&&w!==null&&typeof w.then=="function"&&w.then(D,Le)}catch(T){Le(T)}finally{p!==null&&S.types!==null&&(p.types=S.types),b.T=p}},E.unstable_useCacheRefresh=function(){return b.H.useCacheRefresh()},E.use=function(u){return b.H.use(u)},E.useActionState=function(u,p,S){return b.H.useActionState(u,p,S)},E.useCallback=function(u,p){return b.H.useCallback(u,p)},E.useContext=function(u){return b.H.useContext(u)},E.useDebugValue=function(){},E.useDeferredValue=function(u,p){return b.H.useDeferredValue(u,p)},E.useEffect=function(u,p){return b.H.useEffect(u,p)},E.useEffectEvent=function(u){return b.H.useEffectEvent(u)},E.useId=function(){return b.H.useId()},E.useImperativeHandle=function(u,p,S){return b.H.useImperativeHandle(u,p,S)},E.useInsertionEffect=function(u,p){return b.H.useInsertionEffect(u,p)},E.useLayoutEffect=function(u,p){return b.H.useLayoutEffect(u,p)},E.useMemo=function(u,p){return b.H.useMemo(u,p)},E.useOptimistic=function(u,p){return b.H.useOptimistic(u,p)},E.useReducer=function(u,p,S){return b.H.useReducer(u,p,S)},E.useRef=function(u){return b.H.useRef(u)},E.useState=function(u){return b.H.useState(u)},E.useSyncExternalStore=function(u,p,S){return b.H.useSyncExternalStore(u,p,S)},E.useTransition=function(){return b.H.useTransition()},E.version="19.2.5",E}var ke;function je(){return ke||(ke=1,pe.exports=ht()),pe.exports}var c=je();const pt=Be(c),Jr=dt({__proto__:null,default:pt},[c]);var me={exports:{}},A={};/**
10 * @license React
11 * react-dom.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var $e;function mt(){if($e)return A;$e=1;var e=je();function t(l){var o="https://react.dev/errors/"+l;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)o+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+l+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(l,o,d){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:h==null?null:""+h,children:l,containerInfo:o,implementation:d}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(l,o){if(l==="font")return"";
17if(typeof o=="string")return o==="use-credentials"?o:""}return A.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,A.createPortal=function(l,o){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)throw Error(t(299));return i(l,o,null,d)},A.flushSync=function(l){var o=s.T,d=r.p;try{if(s.T=null,r.p=2,l)return l()}finally{s.T=o,r.p=d,r.d.f()}},A.preconnect=function(l,o){typeof l=="string"&&(o?(o=o.crossOrigin,o=typeof o=="string"?o==="use-credentials"?o:"":void 0):o=null,r.d.C(l,o))},A.prefetchDNS=function(l){typeof l=="string"&&r.d.D(l)},A.preinit=function(l,o){if(typeof l=="string"&&o&&typeof o.as=="string"){var d=o.as,h=f(d,o.crossOrigin),y=typeof o.integrity=="string"?o.integrity:void 0,R=typeof o.fetchPriority=="string"?o.fetchPriority:void 0;d==="style"?r.d.S(l,typeof o.precedence=="string"?o.precedence:void 0,{crossOrigin:h,integrity:y,fetchPriority:R}):d==="script"&&r.d.X(l,{crossOrigin:h,integrity:y,fetchPriority:R,nonce:typeof o.nonce=="string"?o.nonce:void 0})}},A.preinitModule=function(l,o){if(typeof l=="string")if(typeof o=="object"&&o!==null){if(o.as==null||o.as==="script"){var d=f(o.as,o.crossOrigin);r.d.M(l,{crossOrigin:d,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0})}}else o==null&&r.d.M(l)},A.preload=function(l,o){if(typeof l=="string"&&typeof o=="object"&&o!==null&&typeof o.as=="string"){var d=o.as,h=f(d,o.crossOrigin);r.d.L(l,d,{crossOrigin:h,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0,type:typeof o.type=="string"?o.type:void 0,fetchPriority:typeof o.fetchPriority=="string"?o.fetchPriority:void 0,referrerPolicy:typeof o.referrerPolicy=="string"?o.referrerPolicy:void 0,imageSrcSet:typeof o.imageSrcSet=="string"?o.imageSrcSet:void 0,imageSizes:typeof o.imageSizes=="string"?o.imageSizes:void 0,media:typeof o.media=="string"?o.media:void 0})}},A.preloadModule=function(l,o){if(typeof l=="string")if(o){var d=f(o.as,o.crossOrigin);r.d.m(l,{as:typeof o.as=="string"&&o.as!=="script"?o.as:void 0,crossOrigin:d,integrity:typeof o.integrity=="string"?o.integrity:void 0})}else r.d.m(l)},A.requestFormReset=function(l){r.d.r(l)},A.unstable_batchedUpdates=function(l,o){return l(o)},A.useFormState=function(l,o,d){return s.H.useFormState(l,o,d)},A.useFormStatus=function(){return s.H.useHostTransitionStatus()},A.version="19.2.5",A}var Ae;function yt(){if(Ae)return me.exports;Ae=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),me.exports=mt(),me.exports}/**
18 * react-router v7.14.2
19 *
20 * Copyright (c) Remix Software Inc.
21 *
22 * This source code is licensed under the MIT license found in the
23 * LICENSE.md file in the root directory of this source tree.
24 *
25 * @license MIT
26 */var De="popstate";function Ne(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function gt(e={}){function t(r,a){var o;let i=(o=a.state)==null?void 0:o.masked,{pathname:s,search:f,hash:l}=i||r.location;return Re("",{pathname:s,search:f,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:te(a)}return Rt(t,n,null,e)}function O(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function U(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function vt(){return Math.random().toString(36).substring(2,10)}function Ie(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Re(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?K(t):t,state:n,key:t&&t.key||r||vt(),unstable_mask:a}}function te({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 K(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 Rt(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,f="POP",l=null,o=d();o==null&&(o=0,s.replaceState({...s.state,idx:o},""));function d(){return(s.state||{idx:null}).idx}function h(){f="POP";let g=d(),m=g==null?null:g-o;o=g,l&&l({action:f,location:v.location,delta:m})}function y(g,m){f="PUSH";let _=Ne(g)?g:Re(v.location,g,m);o=d()+1;let x=Ie(_,o),$=v.createHref(_.unstable_mask||_);try{s.pushState(x,"",$)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;a.location.assign($)}i&&l&&l({action:f,location:v.location,delta:1})}function R(g,m){f="REPLACE";let _=Ne(g)?g:Re(v.location,g,m);o=d();let x=Ie(_,o),$=v.createHref(_.unstable_mask||_);s.replaceState(x,"",$),i&&l&&l({action:f,location:v.location,delta:0})}function C(g){return Et(g)}let v={get action(){return f},get location(){return e(a,s)},listen(g){if(l)throw new Error("A history only accepts one active listener");
26return a.addEventListener(De,h),l=g,()=>{a.removeEventListener(De,h),l=null}},createHref(g){return t(a,g)},createURL:C,encodeLocation(g){let m=C(g);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:y,replace:R,go(g){return s.go(g)}};return v}function Et(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),O(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:te(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function We(e,t,n="/"){return wt(e,t,n,!1)}function wt(e,t,n,r){let a=typeof t=="string"?K(t):t,i=z(a.pathname||"/",n);if(i==null)return null;let s=Ye(e);Ct(s);let f=null;for(let l=0;f==null&&l<s.length;++l){let o=At(i);f=kt(s[l],o,r)}return f}function Ye(e,t=[],n=[],r="",a=!1){let i=(s,f,l=a,o)=>{let d={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:f,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&l)return;O(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let h=H([r,d.relativePath]),y=n.concat(d);s.children&&s.children.length>0&&(O(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Ye(s.children,t,y,h,l)),!(s.path==null&&!s.index)&&t.push({path:h,score:Lt(h,s.index),routesMeta:y})};return e.forEach((s,f)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,f);else for(let o of ze(s.path))i(s,f,!0,o)}),t}function ze(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let s=ze(r.join("/")),f=[];return f.push(...s.map(l=>l===""?i:[i,l].join("/"))),a&&f.push(...s),f.map(l=>e.startsWith("/")&&l===""?"/":l)}function Ct(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ot(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var St=/^:[\w-]+$/,_t=3,xt=2,bt=1,Pt=10,Tt=-2,Me=e=>e==="*";function Lt(e,t){let n=e.split("/"),r=n.length;return n.some(Me)&&(r+=Tt),t&&(r+=xt),n.filter(a=>!Me(a)).reduce((a,i)=>a+(St.test(i)?_t:i===""?bt:Pt),r)}function Ot(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function kt(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",s=[];for(let f=0;f<r.length;++f){let l=r[f],o=f===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",h=le({path:l.relativePath,caseSensitive:l.caseSensitive,end:o},d),y=l.route;if(!h&&o&&n&&!r[r.length-1].route.index&&(h=le({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;
26Object.assign(a,h.params),s.push({params:a,pathname:H([i,h.pathname]),pathnameBase:Mt(H([i,h.pathnameBase])),route:y}),h.pathnameBase!=="/"&&(i=H([i,h.pathnameBase]))}return s}function le(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=$t(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],s=i.replace(/(.)\/+$/,"$1"),f=a.slice(1);return{params:r.reduce((o,{paramName:d,isOptional:h},y)=>{if(d==="*"){let C=f[y]||"";s=i.slice(0,i.length-C.length).replace(/(.)\/+$/,"$1")}const R=f[y];return h&&!R?o[d]=void 0:o[d]=(R||"").replace(/%2F/g,"/"),o},{}),pathname:i,pathnameBase:s,pattern:e}}function $t(e,t=!1,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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,f,l,o,d)=>{if(r.push({paramName:f,isOptional:l!=null}),l){let h=d.charAt(o+s.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function At(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return U(!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 z(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 Dt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Nt(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?K(e):e,i;return n?(n=qe(n),n.startsWith("/")?i=He(n.substring(1),"/"):i=He(n,t)):i=t,{pathname:i,search:Ht(r),hash:Ut(a)}}function He(e,t){let n=se(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function ye(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 It(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function we(e){let t=It(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function ce(e,t,n,r=!1){let a;typeof e=="string"?a=K(e):(a={...e},O(!a.pathname||!a.pathname.includes("?"),ye("?","pathname","search",a)),O(!a.pathname||!a.pathname.includes("#"),ye("#","pathname","hash",a)),O(!a.search||!a.search.includes("#"),ye("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,f;if(s==null)f=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),h-=1;a.pathname=y.join("/")}f=h>=0?t[h]:"/"}let l=Nt(a,f),o=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(o||d)&&(l.pathname+="/"),l}var qe=e=>e.replace(/\/\/+/g,"/"),H=e=>qe(e.join("/")),se=e=>e.replace(/\/+$/,""),Mt=e=>se(e).replace(/^\/*/,"/"),Ht=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ut=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Ft=class{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 Bt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function jt(e){let t=e.map(n=>n.route.path).filter(Boolean);return H(t)||"/"}var Ge=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ke(e,t){let n=e;if(typeof n!="string"||!Dt.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(Ge)try{let i=new URL(window.location.href),s=n.startsWith("//")?new URL(i.protocol+n):new URL(n),f=z(s.pathname,t);s.origin===i.origin&&f!=null?n=f+s.search+s.hash:a=!0}catch{U(!1,`<Link to="${n}">
26 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ve=["POST","PUT","PATCH","DELETE"];new Set(Ve);var Wt=["GET",...Ve];new Set(Wt);var V=c.createContext(null);V.displayName="DataRouter";var fe=c.createContext(null);fe.displayName="DataRouterState";var Je=c.createContext(!1);function Yt(){return c.useContext(Je)}var Xe=c.createContext({isTransitioning:!1});Xe.displayName="ViewTransition";var zt=c.createContext(new Map);zt.displayName="Fetchers";var qt=c.createContext(null);qt.displayName="Await";var I=c.createContext(null);I.displayName="Navigation";var re=c.createContext(null);re.displayName="Location";var M=c.createContext({outlet:null,matches:[],isDataRoute:!1});M.displayName="Route";var Ce=c.createContext(null);Ce.displayName="RouteError";var Qe="REACT_ROUTER_ERROR",Gt="REDIRECT",Kt="ROUTE_ERROR_RESPONSE";function Vt(e){if(e.startsWith(`${Qe}:${Gt}:{`))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 Jt(e){if(e.startsWith(`${Qe}:${Kt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Ft(t.status,t.statusText,t.data)}catch{}}function Xt(e,{relative:t}={}){O(J(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=c.useContext(I),{hash:a,pathname:i,search:s}=ne(e,{relative:t}),f=i;return n!=="/"&&(f=i==="/"?n:H([n,i])),r.createHref({pathname:f,search:s,hash:a})}function J(){return c.useContext(re)!=null}function j(){return O(J(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(re).location}var Ze="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function et(e){c.useContext(I).static||c.useLayoutEffect(e)}function tt(){let{isDataRoute:e}=c.useContext(M);return e?dr():Qt()}function Qt(){O(J(),"useNavigate() may be used only in the context of a <Router> component.");let e=c.useContext(V),{basename:t,navigator:n}=c.useContext(I),{matches:r}=c.useContext(M),{pathname:a}=j(),i=JSON.stringify(we(r)),s=c.useRef(!1);return et(()=>{s.current=!0}),c.useCallback((l,o={})=>{if(U(s.current,Ze),!s.current)return;if(typeof l=="number"){n.go(l);return}let d=ce(l,JSON.parse(i),a,o.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:H([t,d.pathname])),(o.replace?n.replace:n.push)(d,o.state,o)},[t,n,i,a,e])}var Zt=c.createContext(null);function er(e){let t=c.useContext(M).outlet;return c.useMemo(()=>t&&c.createElement(Zt.Provider,{value:e},t),[t,e])}function Xr(){let{matches:e}=c.useContext(M),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function ne(e,{relative:t}={}){let{matches:n}=c.useContext(M),{pathname:r}=j(),a=JSON.stringify(we(n));return c.useMemo(()=>ce(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function tr(e,t){return rt(e,t)}function rt(e,t,n){var g;O(J(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=c.useContext(I),{matches:a}=c.useContext(M),i=a[a.length-1],s=i?i.params:{},f=i?i.pathname:"/",l=i?i.pathnameBase:"/",o=i&&i.route;{let m=o&&o.path||"";at(f,!o||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
27
28Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let d=j(),h;if(t){let m=typeof t=="string"?K(t):t;O(l==="/"||((g=m.pathname)==null?void 0:g.startsWith(l)),`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 "${l}" but pathname "${m.pathname}" was given in the \`location\` prop.`),h=m}else h=d;let y=h.pathname||"/",R=y;if(l!=="/"){let m=l.replace(/^\//,"").split("/");R="/"+y.replace(/^\//,"").split("/").slice(m.length).join("/")}let C=We(e,{pathname:R});U(o||C!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),U(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=ir(C&&C.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:H([l,r.encodeLocation?r.encodeLocation(m.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:H([l,r.encodeLocation?r.encodeLocation(m.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),a,n);return t&&v?c.createElement(re.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...h},navigationType:"POP"}},v):v}function rr(){let e=fr(),t=Bt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=c.createElement(c.Fragment,null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:i},"ErrorBoundary")," or"," ",c.createElement("code",{style:i},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application 
28Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:a},n):null,s)}var nr=c.createElement(rr,null),nt=class extends c.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?e.error:t.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"){const n=Jt(e.digest);n&&(e=n)}let t=e!==void 0?c.createElement(M.Provider,{value:this.props.routeContext},c.createElement(Ce.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?c.createElement(ar,{error:e},t):t}};nt.contextType=Je;var ge=new WeakMap;function ar({children:e,error:t}){let{basename:n}=c.useContext(I);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Vt(t.digest);if(r){let a=ge.get(t);if(a)throw a;let i=Ke(r.location,n);if(Ge&&!ge.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw ge.set(t,s),s}return c.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function or({routeContext:e,match:t,children:n}){let r=c.useContext(V);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),c.createElement(M.Provider,{value:e},n)}function ir(e,t=[],n){let r=n==null?void 0: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 a=e,i=r==null?void 0:r.errors;if(i!=null){let d=a.findIndex(h=>h.route.id&&(i==null?void 0:i[h.route.id])!==void 0);O(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let s=!1,f=-1;if(n&&r){s=r.renderFallback;for(let d=0;d<a.length;d++){let h=a[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(f=d),h.route.id){let{loaderData:y,errors:R}=r,C=h.route.loader&&!y.hasOwnProperty(h.route.id)&&(!R||R[h.route.id]===void 0);if(h.route.lazy||C){n.isStatic&&(s=!0),f>=0?a=a.slice(0,f+1):a=[a[0]];break}}}}let l=n==null?void 0:n.onError,o=r&&l?(d,h)=>{var y,R;l(d,{location:r.location,params:((R=(y=r.matches)==null?void 0:y[0])==null?void 0:R.params)??{},unstable_pattern:jt(r.matches),errorInfo:h})}:void 0;return a.reduceRight((d,h,y)=>{let R,C=!1,v=null,g=null;r&&(R=i&&h.route.id?i[h.route.id]:void 0,v=h.route.errorElement||nr,s&&(f<0&&y===0?(at("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,g=null):f===y&&(C=!0,g=h.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,y+1)),_=()=>{let x;return R?x=v:C?x=g:h.route.Component?x=c.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=d,c.createElement(or,{match:h,routeContext:{outlet:d,matches:m,isDataRoute:r!=null},children:x})};return r&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?c.createElement(nt,{location:r.location,revalidation:r.revalidation,component:v,error:R,children:_(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:o}):_()},null)}function Se(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ur(e){let t=c.useContext(V);return O(t,Se(e)),t}function lr(e){let t=c.useContext(fe);return O(t,Se(e)),t}function sr(e){let t=c.useContext(M);return O(t,Se(e)),t}function _e(e){let t=sr(e),n=t.matches[t.matches.length-1];return O(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function cr(){return _e("useRouteId")}function fr(){var r;let e=c.useContext(Ce),t=lr("useRouteError"),n=_e("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function dr(){let{router:e}=ur("useNavigate"),t=_e("useNavigate"),n=c.useRef(!1);return et(()=>{n.current=!0}),c.useCallback(async(a,i={})=>{U(n.current,Ze),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var Ue={};function at(e,t,n){!t&&!Ue[e]&&(Ue[e]=!0,U(!1,n))}c.memo(hr);function hr({routes:e,future:t,state:n,isStatic:r,onError:a}){return rt(e,void 0,{state:n,isStatic:r,onError:a})}function Qr({to:e,replace:t,state:n,relative:r}){O(J(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=c.useContext(I);U(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=c.useContext(M),{pathname:s}=j(),f=tt(),l=ce(e,we(i),s,r==="path"),o=JSON.stringify(l);return c.useEffect(()=>{f(JSON.parse(o),{replace:t,state:n,relative:r})},[f,o,r,t,n]),null}function Zr(e){return er(e.context)}function pr(e){O(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function mr({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,unstable_useTransitions:s}){O(!J(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),l=c.useMemo(()=>({basename:f,navigator:a,static:i,unstable_useTransitions:s,future:{}}),[f,a,i,s]);typeof n=="string"&&(n=K(n));let{pathname:o="/",search:d="",hash:h="",state:y=null,key:R="default",unstable_mask:C}=n,v=c.useMemo(()=>{let g=z(o,f);return g==null?null:{location:{pathname:g,search:d,hash:h,state:y,key:R,unstable_mask:C},navigationType:r}},[f,o,d,h,y,R,r,C]);
28return U(v!=null,`<Router basename="${f}"> is not able to match the URL "${o}${d}${h}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:c.createElement(I.Provider,{value:l},c.createElement(re.Provider,{children:t,value:v}))}function en({children:e,location:t}){return tr(Ee(e),t)}function Ee(e,t=[]){let n=[];return c.Children.forEach(e,(r,a)=>{if(!c.isValidElement(r))return;let i=[...t,a];if(r.type===c.Fragment){n.push.apply(n,Ee(r.props.children,i));return}O(r.type===pr,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),O(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Ee(r.props.children,i)),n.push(s)}),n}var ie="get",ue="application/x-www-form-urlencoded";function de(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function yr(e){return de(e)&&e.tagName.toLowerCase()==="button"}function gr(e){return de(e)&&e.tagName.toLowerCase()==="form"}function vr(e){return de(e)&&e.tagName.toLowerCase()==="input"}function Rr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Er(e,t){return e.button===0&&(!t||t==="_self")&&!Rr(e)}var oe=null;function wr(){if(oe===null)try{new FormData(document.createElement("form"),0),oe=!1}catch{oe=!0}return oe}var Cr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ve(e){return e!=null&&!Cr.has(e)?(U(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ue}"`),null):e}function Sr(e,t){let n,r,a,i,s;if(gr(e)){let f=e.getAttribute("action");r=f?z(f,t):null,n=e.getAttribute("method")||ie,a=ve(e.getAttribute("enctype"))||ue,i=new FormData(e)}else if(yr(e)||vr(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||f.getAttribute("action");if(r=l?z(l,t):null,n=e.getAttribute("formmethod")||f.getAttribute("method")||ie,a=ve(e.getAttribute("formenctype"))||ve(f.getAttribute("enctype"))||ue,i=new FormData(f,e),!wr()){let{name:o,type:d,value:h}=e;if(d==="image"){let y=o?`${o}.`:"";i.append(`${y}x`,"0"),i.append(`${y}y`,"0")}else o&&i.append(o,h)}}else{if(de(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ie,r=null,a=ue,s=e}return i&&a==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function xe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ot(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&z(a.pathname,t)==="/"?a.pathname=`${se(t)}/_root.${r}`:a.pathname=`${se(a.pathname)}.${r}`,a}async function _r(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function xr(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 br(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let s=await _r(i,n);return s.links?s.links():[]}return[]}));return Or(r.flat(1).filter(xr).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Fe(e,t,n,r,a,i){let s=(l,o)=>n[o]?l.route.id!==n[o].route.id:!0,f=(l,o)=>{var d;return n[o].pathname!==l.pathname||((d=n[o].route.path)==null?void 0:d.endsWith("*"))&&n[o].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,o)=>s(l,o)||f(l,o)):i==="data"?t.filter((l,o)=>{var h;let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(s(l,o)||f(l,o))return!0;
28if(l.route.shouldRevalidate){let y=l.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((h=n[0])==null?void 0:h.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function Pr(e,t,{includeHydrateFallback:n}={}){return Tr(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function Tr(e){return[...new Set(e)]}function Lr(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Or(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(Lr(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function be(){let e=c.useContext(V);return xe(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function kr(){let e=c.useContext(fe);return xe(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Pe=c.createContext(void 0);Pe.displayName="FrameworkContext";function Te(){let e=c.useContext(Pe);return xe(e,"You must render this element inside a <HydratedRouter> element"),e}function $r(e,t){let n=c.useContext(Pe),[r,a]=c.useState(!1),[i,s]=c.useState(!1),{onFocus:f,onBlur:l,onMouseEnter:o,onMouseLeave:d,onTouchStart:h}=t,y=c.useRef(null);c.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let v=m=>{m.forEach(_=>{s(_.isIntersecting)})},g=new IntersectionObserver(v,{threshold:.5});return y.current&&g.observe(y.current),()=>{g.disconnect()}}},[e]),c.useEffect(()=>{if(r){let v=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(v)}}},[r]);let R=()=>{a(!0)},C=()=>{a(!1),s(!1)};return n?e!=="intent"?[i,y,{}]:[i,y,{onFocus:ee(f,R),onBlur:ee(l,C),onMouseEnter:ee(o,R),onMouseLeave:ee(d,C),onTouchStart:ee(h,R)}]:[!1,y,{}]}function ee(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ar({page:e,...t}){let n=Yt(),{router:r}=be(),a=c.useMemo(()=>We(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?c.createElement(Nr,{page:e,matches:a,...t}):c.createElement(Ir,{page:e,matches:a,...t}):null}function Dr(e){let{manifest:t,routeModules:n}=Te(),[r,a]=c.useState([]);return c.useEffect(()=>{let i=!1;return br(e,t,n).then(s=>{i||a(s)}),()=>{i=!0}},[e,t,n]),r}function Nr({page:e,matches:t,...n}){let r=j(),{future:a}=Te(),{basename:i}=be(),s=c.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let f=ot(e,i,a.unstable_trailingSlashAwareDataRequests,"rsc"),l=!1,o=[];for(let d of t)typeof d.route.shouldRevalidate=="function"?l=!0:o.push(d.route.id);return l&&o.length>0&&f.searchParams.set("_routes",o.join(",")),[f.pathname+f.search]},[i,a.unstable_trailingSlashAwareDataRequests,e,r,t]);return c.createElement(c.Fragment,null,s.map(f=>c.createElement("link",{key:f,rel:"prefetch",as:"fetch",href:f,...n})))}function Ir({page:e,matches:t,...n}){let r=j(),{future:a,manifest:i,routeModules:s}=Te(),{basename:f}=be(),{loaderData:l,matches:o}=kr(),d=c.useMemo(()=>Fe(e,t,o,i,r,"data"),[e,t,o,i,r]),h=c.useMemo(()=>Fe(e,t,o,i,r,"assets"),[e,t,o,i,r]),y=c.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,g=!1;if(t.forEach(_=>{var $;let x=i.routes[_.route.id];!x||!x.hasLoader||(!d.some(k=>k.route.id===_.route.id)&&_.route.id in l&&(($=s[_.route.id])!=null&&$.shouldRevalidate)||x.hasClientLoader?g=!0:v.add(_.route.id))}),v.size===0)return[];let m=ot(e,f,a.unstable_trailingSlashAwareDataRequests,"data");return g&&v.size>0&&m.searchParams.set("_routes",t.filter(_=>v.has(_.route.id)).map(_=>_.route.id).join(",")),[m.pathname+m.search]},[f,a.unstable_trailingSlashAwareDataRequests,l,r,i,d,t,e,s]),R=c.useMemo(()=>Pr(h,i),[h,i]),C=Dr(h);return c.createElement(c.Fragment,null,y.map(v=>c.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),R.map(v=>c.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),C.map(({key:v,link:g})=>c.createElement("link",{key:v,nonce:n.nonce,...g,crossOrigin:g.crossOrigin??n.crossOrigin})))}function Mr(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Hr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Hr&&(window.__reactRouterVersion="7.14.2")}catch{}function tn({basename:e,children:t,unstable_useTransitions:n,window:r}){let a=c.useRef();a.current==null&&(a.current=gt({window:r,v5Compat:!0}));let i=a.current,[s,f]=c.useState({action:i.action,location:i.location}),l=c.useCallback(o=>{n===!1?f(o):c.startTransition(()=>f(o))},[n]);return c.useLayoutEffect(()=>i.listen(l),[i,l]),c.createElement(mr,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,unstable_useTransitions:n})}var it=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ut=c.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:s,unstable_mask:f,state:l,target:o,to:d,preventScrollReset:h,viewTransition:y,unstable_defaultShouldRevalidate:R,...C},v){let{basename:g,navigator:m,unstable_useTransitions:_}
vendor: 4,514 bytes, line 28
28=c.useContext(I),x=typeof d=="string"&&it.test(d),$=Ke(d,g);d=$.to;let k=Xt(d,{relative:a}),D=j(),b=null;if(f){let F=ce(f,[],D.unstable_mask?D.unstable_mask.pathname:"/",!0);g!=="/"&&(F.pathname=F.pathname==="/"?g:H([g,F.pathname])),b=m.createHref(F)}let[W,Y,X]=$r(r,C),Q=jr(d,{replace:s,unstable_mask:f,state:l,target:o,preventScrollReset:h,relative:a,viewTransition:y,unstable_defaultShouldRevalidate:R,unstable_useTransitions:_});function he(F){t&&t(F),F.defaultPrevented||Q(F)}let Z=!($.isExternal||i),q=c.createElement("a",{...C,...X,href:(Z?b:void 0)||$.absoluteURL||k,onClick:Z?he:t,ref:Mr(v,Y),target:o,"data-discover":!x&&n==="render"?"true":void 0});return W&&!x?c.createElement(c.Fragment,null,q,c.createElement(Ar,{page:k})):q});ut.displayName="Link";var Ur=c.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:s,viewTransition:f,children:l,...o},d){let h=ne(s,{relative:o.relative}),y=j(),R=c.useContext(fe),{navigator:C,basename:v}=c.useContext(I),g=R!=null&&Gr(h)&&f===!0,m=C.encodeLocation?C.encodeLocation(h).pathname:h.pathname,_=y.pathname,x=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;n||(_=_.toLowerCase(),x=x?x.toLowerCase():null,m=m.toLowerCase()),x&&v&&(x=z(x,v)||x);const $=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let k=_===m||!a&&_.startsWith(m)&&_.charAt($)==="/",D=x!=null&&(x===m||!a&&x.startsWith(m)&&x.charAt(m.length)==="/"),b={isActive:k,isPending:D,isTransitioning:g},W=k?t:void 0,Y;typeof r=="function"?Y=r(b):Y=[r,k?"active":null,D?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let X=typeof i=="function"?i(b):i;return c.createElement(ut,{...o,"aria-current":W,className:Y,ref:d,style:X,to:s,viewTransition:f},typeof l=="function"?l(b):l)});Ur.displayName="NavLink";var Fr=c.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:s=ie,action:f,onSubmit:l,relative:o,preventScrollReset:d,viewTransition:h,unstable_defaultShouldRevalidate:y,...R},C)=>{let{unstable_useTransitions:v}=c.useContext(I),g=zr(),m=qr(f,{relative:o}),_=s.toLowerCase()==="get"?"get":"post",x=typeof f=="string"&&it.test(f),$=k=>{if(l&&l(k),k.defaultPrevented)return;k.preventDefault();let D=k.nativeEvent.submitter,b=(D==null?void 0:D.getAttribute("formmethod"))||s,W=()=>g(D||k.currentTarget,{fetcherKey:t,method:b,navigate:n,replace:a,state:i,relative:o,preventScrollReset:d,viewTransition:h,unstable_defaultShouldRevalidate:y});v&&n!==!1?c.startTransition(()=>W()):W()};return c.createElement("form",{ref:C,method:_,action:m,onSubmit:r?l:$,...R,"data-discover":!x&&e==="render"?"true":void 0})});Fr.displayName="Form";function Br(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function lt(e){let t=c.useContext(V);return O(t,Br(e)),t}function jr(e,{target:t,replace:n,unstable_mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:f,unstable_defaultShouldRevalidate:l,unstable_useTransitions:o}={}){let d=tt(),h=j(),y=ne(e,{relative:s});return c.useCallback(R=>{if(Er(R,t)){R.preventDefault();let C=n!==void 0?n:te(h)===te(y),v=()=>d(e,{replace:C,unstable_mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:f,unstable_defaultShouldRevalidate:l});o?c.startTransition(()=>v()):v()}},[h,d,y,n,r,a,t,e,i,s,f,l,o])}var Wr=0,Yr=()=>`__${String(++Wr)}__`;function zr(){let{router:e}=lt("useSubmit"),{basename:t}=c.useContext(I),n=cr(),r=e.fetch,a=e.navigate;return c.useCallback(async(i,s={})=>{let{action:f,method:l,encType:o,formData:d,body:h}=Sr(i,t);if(s.navigate===!1){let y=s.fetcherKey||Yr();await r(y,n,s.action||f,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:d,body:h,formMethod:s.method||l,formEncType:s.encType||o,flushSync:s.flushSync})}else await a(s.action||f,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:d,body:h,formMethod:s.method||l,formEncType:s.encType||o,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,a,t,n])}function qr(e,{relative:t}={}){let{basename:n}=c.useContext(I),r=c.useContext(M);O(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...ne(e||".",{relative:t})},s=j();if(e==null){i.search=s.search;let f=new URLSearchParams(i.search),l=f.getAll("index");if(l.some(d=>d==="")){f.delete("index"),l.filter(h=>
28h).forEach(h=>f.append("index",h));let d=f.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:H([n,i.pathname])),te(i)}function Gr(e,{relative:t}={}){let n=c.useContext(Xe);O(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=lt("useViewTransitionState"),a=ne(e,{relative:t});if(!n.isTransitioning)return!1;let i=z(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=z(n.nextLocation.pathname,r)||n.nextLocation.pathname;return le(a.pathname,s)!=null||le(a.pathname,i)!=null}var Kr=yt();const rn=Be(Kr);export{tn as B,ut as L,Ur as N,Zr as O,pt as R,je as a,yt as b,Vr as c,j as d,Kr as e,Jr as f,Be as g,rn as h,Qr as i,Xr as j,en as k,pr as l,c as r,tt as u};

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.