PageSourceSearch

https://pay-way.com/assets/react-B8BH9zjJ.js

js pay-way.com collected 2026-10-06 07:10:53 UTC 51,358 bytes, 152 lines download raw bytes

vendor: 9,621 bytes, lines 1-17
1var ft=Object.defineProperty;var dt=(e,t,n)=>t in e?ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var q=(e,t,n)=>dt(e,typeof t!="symbol"?t+"":t,n);function ht(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const u=Object.getOwnPropertyDescriptor(r,o);u&&Object.defineProperty(e,o,u.get?u:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function mt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var he={exports:{}},R={};/**
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 ke;function pt(){if(ke)return R;ke=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),a=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),p=Symbol.iterator;function y(i){return i===null||typeof i!="object"?null:(i=p&&i[p]||i["@@iterator"],typeof i=="function"?i:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,v={};function w(i,h,C){this.props=i,this.context=h,this.refs=v,this.updater=C||S}w.prototype.isReactComponent={},w.prototype.setState=function(i,h){if(typeof i!="object"&&typeof i!="function"&&i!=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,i,h,"setState")},w.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};function T(){}T.prototype=w.prototype;function x(i,h,C){this.props=i,this.context=h,this.refs=v,this.updater=C||S}var $=x.prototype=new T;$.constructor=x,g($,w.prototype),$.isPureReactComponent=!0;var O=Array.isArray;function D(){}var _={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function W(i,h,C){var E=C.ref;return{$$typeof:e,type:i,key:h,ref:E!==void 0?E:null,props:C}}function Q(i,h){return W(i.type,h,i.props)}function Z(i){return typeof i=="object"&&i!==null&&i.$$typeof===e}function de(i){var h={"=":"=0",":":"=2"};return"$"+i.replace(/[=:]/g,function(C){return h[C]})}var ee=/\/+/g;function K(i,h){return typeof i=="object"&&i!==null&&i.key!=null?de(""+i.key):h.toString(36)}function U(i){switch(i.status){case"fulfilled":return i.value;case"rejected":throw i.reason;default:switch(typeof i.status=="string"?i.then(D,D):(i.status="pending",i.then(function(h){i.status==="pending"&&(i.status="fulfilled",i.value=h)},function(h){i.status==="pending"&&(i.status="rejected",i.reason=h)})),i.status){case"fulfilled":return i.value;case"rejected":throw i.reason}}throw i}function V(i,h,C,E,P){var b=typeof i;(b==="undefined"||b==="boolean")&&(i=null);var L=!1;if(i===null)L=!0;else switch(b){case"bigint":case"string":case"number":L=!0;break;case"object":switch(i.$$typeof){case e:case t:L=!0;break;case d:return L=i._init,V(L(i._payload),h,C,E,P)}}if(L)return P=P(i),L=E===""?"."+K(i,0):E,O(P)?(C="",L!=null&&(C=L.replace(ee,"$&/")+"/"),V(P,h,C,"",function(ct){return ct})):P!=null&&(Z(P)&&(P=Q(P,C+(P.key==null||i&&i.key===P.key?"":(""+P.key).replace(ee,"$&/")+"/")+L)),h.push(P)),1;L=0;var F=E===""?".":E+":";if(O(i))for(var N=0;N<i.length;N++)E=i[N],b=F+K(E,N),L+=V(E,h,C,b,P);else if(N=y(i),typeof N=="function")for(i=N.call(i),N=0;!(E=i.next()).done;)E=E.value,b=F+K(E,N++),L+=V(E,h,C,b,P);else if(b==="object"){if(typeof i.then=="function")return V(U(i),h,C,E,P);throw h=String(i),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.")}return L}function ae(i,h,C){if(i==null)return i;var E=[],P=0;return V(i,E,"","",function(b){return h.call(C,b,P++)}),E}function lt(i){if(i._status===-1){var h=i._result;h=h(),h.then(function(C){(i._status===0||i._status===-1)&&(i._status=1,i._result=C)},function(C){(i._status===0||i._status===-1)&&(i._status=2,i._result=C)}),i._status===-1&&(i._status=0,i._result=h)}if(i._status===1)return i._result.default;throw i._result}var Le=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var h=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(h))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},st={map:ae,forEach:function(i,h,C){ae(i,function(){h.apply(this,arguments)},C)},count:function(i){var h=0;return ae(i,function(){h++}),h},toArray:function(i){return ae(i,function(h){return h})||[]},only:function(i){if(!Z(i))throw Error("React.Children.only expected to receive a single React element child.");return i}};return R.Activity=m,R.Children=st,R.Component=w,R.Fragment=n,R.Profiler=o,R.PureComponent=x,R.StrictMode=r,R.Suspense=s,R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,R.__COMPILER_RUNTIME={__proto__:null,c:function(i){return _.H.useMemoCache(i)}},R.cache=function(i){return function(){return i.apply(null,arguments)}},R.cacheSignal=function(){return null},R.cloneElement=function(i,h,C){if(i==null)throw Error("The argument must be a React element, but you passed "+i+".");var E=g({},i.props),P=i.key;if(h!=null)for(b in h.key!==void 0&&(P=""+h.key),h)!j.call(h,b)||b==="key"||b==="__self"||b==="__source"||b==="ref"&&h.ref===void 0||(E[b]=h[b]);var b=arguments.length-2;if(b===1)E.children=C;else if(1<b){for(var L=Array(b),F=0;F<b;F++)L[F]=arguments[F+2];E.children=L}return W(i.type,P,E)},R.createContext=function(i){return i={$$typeof:l,_currentValue:i,_currentValue2:i,_threadCount:0,Provider:null,Consumer:null},i.Provider=i,i.Consumer={$$typeof:u,_context:i},i},R.createElement=function(i,h,C){var E,P={},b=null;if(h!=null)for(E in h.key!==void 0&&(b=""+h.key),h)j.call(h,E)&&E!=="key"&&E!=="__self"&&E!=="__source"&&(P[E]=h[E]);var L=arguments.length-2;if(L===1)P.children=C;else if(1<L){for(var F=Array(L),N=0;N<L;N++)F[N]=arguments[N+2];P.children=F}if(i&&i.defaultProps)for(E in L=i.defaultProps,L)P[E]===void 0&&(P[E]=L[E]);return W(i,b,P)},R.createRef=function(){return{current:null}},R.forwardRef=function(i){return{$$typeof:c,render:i}},R.isValidElement=Z,R.lazy=function(i){return{$$typeof:d,_payload:{_status:-1,_result:i},_init:lt}},R.memo=function(i,h){return{$$typeof:a,type:i,compare:h===void 0?null:h}},R.startTransition=function(i){var h=_.T,C={};_.T=C;try{var E=i(),P=_.S;P!==null&&P(C,E),typeof E=="object"&&E!==null&&typeof E.then=="function"&&E.then(D,Le)}catch(b){Le(b)}finally{h!==null&&C.types!==null&&(h.types=C.types),_.T=h}},R.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},R.use=function(i){return _.H.use(i)},R.useActionState=function(i,h,C){return _.H.useActionState(i,h,C)},R.useCallback=function(i,h){return _.H.useCallback(i,h)},R.useContext=function(i){return _.H.useContext(i)},R.useDebugValue=function(){},R.useDeferredValue=function(i,h){return _.H.useDeferredValue(i,h)},R.useEffect=function(i,h){return _.H.useEffect(i,h)},R.useEffectEvent=function(i){return _.H.useEffectEvent(i)},R.useId=function(){return _.H.useId()},R.useImperativeHandle=function(i,h,C){return _.H.useImperativeHandle(i,h,C)},R.useInsertionEffect=function(i,h){return _.H.useInsertionEffect(i,h)},R.useLayoutEffect=function(i,h){return _.H.useLayoutEffect(i,h)},R.useMemo=function(i,h){return _.H.useMemo(i,h)},R.useOptimistic=function(i,h){return _.H.useOptimistic(i,h)},R.useReducer=function(i,h,C){return _.H.useReducer(i,h,C)},R.useRef=function(i){return _.H.useRef(i)},R.useState=function(i){return _.H.useState(i)},R.useSyncExternalStore=function(i,h,C){return _.H.useSyncExternalStore(i,h,C)},R.useTransition=function(){return _.H.useTransition()},R.version="19.2.8",R}var Oe;function Be(){return Oe||(Oe=1,he.exports=pt()),he.exports}var f=Be();const yt=mt(f),nr=ht({__proto__:null,default:yt},[f]);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 gt(){if($e)return A;$e=1;var e=Be();function t(s){var a="https://react.dev/errors/"+s;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)a+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+s+"; visit "+a+" 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},o=Symbol.for("react.portal");function u(s,a,d){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:m==null?null:""+m,children:s,containerInfo:a,implementation:d}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(s,a){if(s==="font")return"";
17if(typeof a=="string")return a==="use-credentials"?a:""}return A.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,A.createPortal=function(s,a){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error(t(299));return u(s,a,null,d)},A.flushSync=function(s){var a=l.T,d=r.p;try{if(l.T=null,r.p=2,s)return s()}finally{l.T=a,r.p=d,r.d.f()}},A.preconnect=function(s,a){typeof s=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,r.d.C(s,a))},A.prefetchDNS=function(s){typeof s=="string"&&r.d.D(s)},A.preinit=function(s,a){if(typeof s=="string"&&a&&typeof a.as=="string"){var d=a.as,m=c(d,a.crossOrigin),p=typeof a.integrity=="string"?a.integrity:void 0,y=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;d==="style"?r.d.S(s,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:m,integrity:p,fetchPriority:y}):d==="script"&&r.d.X(s,{crossOrigin:m,integrity:p,fetchPriority:y,nonce:typeof a.nonce=="string"?a.nonce:void 0})}},A.preinitModule=function(s,a){if(typeof s=="string")if(typeof a=="object"&&a!==null){if(a.as==null||a.as==="script"){var d=c(a.as,a.crossOrigin);r.d.M(s,{crossOrigin:d,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0})}}else a==null&&r.d.M(s)},A.preload=function(s,a){if(typeof s=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){var d=a.as,m=c(d,a.crossOrigin);r.d.L(s,d,{crossOrigin:m,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}},A.preloadModule=function(s,a){if(typeof s=="string")if(a){var d=c(a.as,a.crossOrigin);r.d.m(s,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:d,integrity:typeof a.integrity=="string"?a.integrity:void 0})}else r.d.m(s)},A.requestFormReset=function(s){r.d.r(s)},A.unstable_batchedUpdates=function(s,a){return s(a)},A.useFormState=function(s,a,d){return l.H.useFormState(s,a,d)},A.useFormStatus=function(){return l.H.useHostTransitionStatus()},A.version="19.2.8",A}var Ae;function rr(){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=gt(),me.exports}/**
18 * react-router v8.3.0
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 */const Ce=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,je=/^[\\/]{2}/;function vt(e,t){return t+e.replace(/\\/g,"/")}/**
27 * react-router v8.3.0
28 *
29 * Copyright (c) Remix Software Inc.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE.md file in the root directory of this source tree.
33 *
34 * @license MIT
35 */const 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 Rt(e={}){function t(r,o){var a;let u=(a=o.state)==null?void 0:a.masked,{pathname:l,search:c,hash:s}=u||r.location;return Re("",{pathname:l,search:c,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default",u?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,o){return typeof o=="string"?o:ne(o)}return Ct(t,n,null,e)}function k(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Y(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Et(){return Math.random().toString(36).substring(2,10)}function Ie(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Re(e,t,n=null,r,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?G(t):t,state:n,key:t&&t.key||r||Et(),mask:o}}function ne({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 G(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 Ct(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:u=!1}=r,l=o.history,c="POP",s=null,a=d();a==null&&(a=0,l.replaceState({...l.state,idx:a},""));function d(){return(l.state||{idx:null}).idx}function m(){c="POP";let v=d(),w=v==null?null:v-a;a=v,s&&s({action:c,location:g.location,delta:w})}function p(v,w){c="PUSH";let T=Ne(v)?v:Re(g.location,v,w);a=d()+1;let x=Ie(T,a),$=g.createHref(T.mask||T);try{l.pushState(x,"",$)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;o.location.assign($)}u&&s&&s({action:c,location:g.location,delta:1})}function y(v,w){c="REPLACE";let T=Ne(v)?v:Re(g.location,v,w);a=d();let x=Ie(T,a),$=g.createHref(T.mask||T);l.replaceState(x,"",$),u&&s&&s({action:c,location:g.location,delta:0})}function S(v){return wt(o,v)}let g={get action(){return c},get location(){return e(o,l)},listen(v){if(s)throw new Error("A history only accepts one active listener");
vendor: 3,260 bytes, lines 35-44
35return o.addEventListener(De,m),s=v,()=>{o.removeEventListener(De,m),s=null}},createHref(v){return t(o,v)},createURL:S,encodeLocation(v){let w=S(v);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:p,replace:y,go(v){return l.go(v)}};return g}function wt(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),k(r,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:ne(t);return o=o.replace(/ $/,"%20"),!n&&je.test(o)&&(o=r+o),new URL(o,r)}/**
36 * react-router v8.3.0
37 *
38 * Copyright (c) Remix Software Inc.
39 *
40 * This source code is licensed under the MIT license found in the
41 * LICENSE.md file in the root directory of this source tree.
42 *
43 * @license MIT
44 */function We(e,t,n="/"){return St(e,t,n,!1)}function St(e,t,n,r,o){let u=z((typeof t=="string"?G(t):t).pathname||"/",n);if(u==null)return null;let l=_t(e),c=null,s=Mt(u);for(let a=0;c==null&&a<l.length;++a)c=It(l[a],s,r);return c}function _t(e){let t=Ye(e);return xt(t),t}function Ye(e,t=[],n=[],r="",o=!1){let u=(l,c,s=o,a)=>{let d={relativePath:a===void 0?l.path||"":a,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&s)return;k(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 m=M([r,d.relativePath]),p=n.concat(d);l.children&&l.children.length>0&&(k(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Ye(l.children,t,p,m,s)),!(l.path==null&&!l.index)&&t.push({path:m,score:Dt(m,l.index),routesMeta:p.map((y,S)=>{let[g,v]=Ke(y.relativePath,y.caseSensitive,S===p.length-1);return{...y,matcher:g,compiledParams:v}})})};return e.forEach((l,c)=>{var s;if(l.path===""||!((s=l.path)!=null&&s.includes("?")))u(l,c);else for(let a of ze(l.path))u(l,c,!0,a)}),t}function ze(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),u=n.replace(/\?$/,"");if(r.length===0)return o?[u,""]:[u];let l=ze(r.join("/")),c=[];return c.push(...l.map(s=>s===""?u:[u,s].join("/"))),o&&c.push(...l),c.map(s=>e.startsWith("/")&&s===""?"/":s)}function xt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Nt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Pt=/^:[\w-]+$/,Tt=/^:[\w-]+/,bt=3.5,Lt=3,kt=2,Ot=1,$t=10,At=-2,Me=e=>e==="*";function Dt(e,t){let n=e.split("/"),r=n.length;return n.some(Me)&&(r+=At),t&&(r+=kt),n.filter(o=>!Me(o)).reduce((o,u)=>o+(Pt.test(u)?Lt:Tt.test(u)?bt:u===""?Ot:$t),r)}function Nt(e,t){return e.length===t.length&&e.slice(0,-1).every((n,r)=>n===t[r])?e[e.length-1]-t[t.length-1]:0}function It(e,t,n=!1){let{routesMeta:r}=e,o={},u="/",l=[];for(let c=0;c<r.length;++c){let s=r[c],a=c===r.length-1,d=u==="/"?t:t.slice(u.length)||"/",m={path:s.relativePath,caseSensitive:s.caseSensitive,end:a},p=s.matcher&&s.compiledParams?qe(m,d,s.matcher,s.compiledParams):le(m,d),y=s.route;if(!p&&a&&n&&!r[r.length-1].route.index&&(p=le({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!p)return null;
44Object.assign(o,p.params),l.push({params:o,pathname:M([u,p.pathname]),pathnameBase:Ft(M([u,p.pathnameBase])),route:y}),p.pathnameBase!=="/"&&(u=M([u,p.pathnameBase]))}return l}function le(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ke(e.path,e.caseSensitive,e.end);return qe(e,t,n,r)}function qe(e,t,n,r){let o=t.match(n);if(!o)return null;let u=o[0],l=u.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce((s,{paramName:a,isOptional:d},m)=>{if(a==="*"){let y=c[m]||"";l=u.slice(0,u.length-y.length).replace(/(.)\/+$/,"$1")}const p=c[m];return d&&!p?s[a]=void 0:s[a]=(p||"").replace(/%2F/g,"/"),s},{}),pathname:u,pathnameBase:l,pattern:e}}function Ke(e,t=!1,n=!0){Y(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,l,c,s,a)=>{if(r.push({paramName:l,isOptional:c!=null}),c){let d=a.charAt(s+u.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,"(?:/$1)?");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Mt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Y(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function 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)||"/"}function Ht(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?G(e):e,u;return n?(n=Ve(n),n.startsWith("/")?u=He(n.substring(1),"/"):u=He(n,t)):u=t,{pathname:u,search:Bt(r),hash:jt(o)}}function He(e,t){let n=Ge(t).split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function pe(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 Ut(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function we(e){let t=Ut(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function se(e,t,n,r=!1){let o;typeof e=="string"?o=G(e):(o={...e},k(!o.pathname||!o.pathname.includes("?"),pe("?","pathname","search",o)),k(!o.pathname||!o.pathname.includes("#"),pe("#","pathname","hash",o)),k(!o.search||!o.search.includes("#"),pe("#","search","hash",o)));let u=e===""||o.pathname==="",l=u?"/":o.pathname,c;if(l==null)c=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),m-=1;o.pathname=p.join("/")}c=m>=0?t[m]:"/"}let s=Ht(o,c),a=l&&l!=="/"&&l.endsWith("/"),d=(u||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(a||d)&&(s.pathname+="/"),s}const Ve=e=>e.replace(/[\\/]{2,}/g,"/"),M=e=>Ve(e.join("/")),Ge=e=>e.replace(/\/+$/,""),Ft=e=>Ge(e).replace(/^\/*/,"/"),Bt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;var Wt=class{constructor(e,t,n,r=!1){q(this,"status");q(this,"statusText");q(this,"data");q(this,"error");q(this,"internal");this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Yt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function zt(e){return M(e.map(t=>t.route.path).filter(Boolean))||"/"}const Je=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Xe(e,t){let n=e;
44if(typeof n!="string"||!Ce.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(Je)try{let u=new URL(window.location.href),l=je.test(n)?new URL(vt(n,u.protocol)):new URL(n),c=z(l.pathname,t);l.origin===u.origin&&c!=null?n=c+l.search+l.hash:o=!0}catch{Y(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}/**
45 * react-router v8.3.0
46 *
47 * Copyright (c) Remix Software Inc.
48 *
49 * This source code is licensed under the MIT license found in the
50 * LICENSE.md file in the root directory of this source tree.
51 *
52 * @license MIT
53 */const Qe=["POST","PUT","PATCH","DELETE"];new Set(Qe);const qt=["GET",...Qe];new Set(qt);const Kt=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Vt(e){try{return Kt.includes(new URL(e).protocol)}catch{return!1}}/**
54 * react-router v8.3.0
55 *
56 * Copyright (c) Remix Software Inc.
57 *
58 * This source code is licensed under the MIT license found in the
59 * LICENSE.md file in the root directory of this source tree.
60 *
61 * @license MIT
62 */const J=f.createContext(null);J.displayName="DataRouter";const ce=f.createContext(null);ce.displayName="DataRouterState";const Ze=f.createContext(!1);function Gt(){return f.useContext(Ze)}const et=f.createContext({isTransitioning:!1});et.displayName="ViewTransition";const Jt=f.createContext(new Map);Jt.displayName="Fetchers";const Xt=f.createContext(null);Xt.displayName="Await";const I=f.createContext(null);I.displayName="Navigation";const re=f.createContext(null);re.displayName="Location";const H=f.createContext({outlet:null,matches:[],isDataRoute:!1});H.displayName="Route";const Se=f.createContext(null);Se.displayName="RouteError";/**
63 * react-router v8.3.0
64 *
65 * Copyright (c) Remix Software Inc.
66 *
67 * This source code is licensed under the MIT license found in the
68 * LICENSE.md file in the root directory of this source tree.
69 *
70 * @license MIT
71 */const tt="REACT_ROUTER_ERROR",Qt="REDIRECT",Zt="ROUTE_ERROR_RESPONSE";function en(e){if(e.startsWith(`${tt}:${Qt}:{`))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 tn(e){if(e.startsWith(`${tt}:${Zt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Wt(t.status,t.statusText,t.data)}catch{}}/**
72 * react-router v8.3.0
73 *
74 * Copyright (c) Remix Software Inc.
75 *
76 * This source code is licensed under the MIT license found in the
77 * LICENSE.md file in the root directory of this source tree.
78 *
79 * @license MIT
80 */function nn(e,{relative:t}={}){k(X(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=f.useContext(I),{hash:o,pathname:u,search:l}=oe(e,{relative:t}),c=u;return n!=="/"&&(c=u==="/"?n:M([n,u])),r.createHref({pathname:c,search:l,hash:o})}function X(){return f.useContext(re)!=null}function B(){return k(X(),"useLocation() may be used only in the context of a <Router> component."),f.useContext(re).location}const nt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function rt(){let{isDataRoute:e}=f.useContext(H);return e?gn():rn()}function rn(){k(X(),"useNavigate() may be used only in the context of a <Router> component.");let e=f.useContext(J),{basename:t,navigator:n}=f.useContext(I),{matches:r}=f.useContext(H),{pathname:o}=B(),u=JSON.stringify(we(r)),l=f.useRef(!1);return f.useLayoutEffect(()=>{l.current=!0}),f.useCallback((c,s={})=>{if(Y(l.current,nt),!l.current)return;if(typeof c=="number"){n.go(c);return}let a=se(c,JSON.parse(u),o,s.relative==="path");e==null&&t!=="/"&&(a.pathname=a.pathname==="/"?t:M([t,a.pathname])),(s.replace?n.replace:n.push)(a,s.state,s)},[t,n,u,o,e])}f.createContext(null);function or(){var t;let{matches:e}=f.useContext(H);return((t=e[e.length-1])==null?void 0:t.params)??{}}function oe(e,{relative:t}={}){let{matches:n}=f.useContext(H),{pathname:r}=B(),o=JSON.stringify(we(n));return f.useMemo(()=>se(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function on(e,t){return ot(e,t)}function ot(e,t,n){var S;k(X(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=f.useContext(I),{matches:o}=f.useContext(H),u=o[o.length-1],l=u?u.params:{};u&&u.pathname;let c=u?u.pathnameBase:"/";u&&u.route;let s=B(),a;if(t){let g=typeof t=="string"?G(t):t;
80k(c==="/"||((S=g.pathname)==null?void 0:S.startsWith(c)),`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 "${c}" but pathname "${g.pathname}" was given in the \`location\` prop.`),a=g}else a=s;let d=a.pathname||"/",m=d;if(c!=="/"){let g=c.replace(/^\//,"").split("/");m="/"+d.replace(/^\//,"").split("/").slice(g.length).join("/")}let p=n&&n.state.matches.length?n.state.matches.map(g=>Object.assign(g,{route:n.manifest[g.route.id]||g.route})):We(e,{pathname:m}),y=fn(p&&p.map(g=>Object.assign({},g,{params:Object.assign({},l,g.params),pathname:M([c,r.encodeLocation?r.encodeLocation(g.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?c:M([c,r.encodeLocation?r.encodeLocation(g.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathnameBase])})),o,n);return t&&y?f.createElement(re.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...a},navigationType:"POP"}},y):y}function an(){let e=yn(),t=Yt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},n):null,null)}const un=f.createElement(an,null);var ve,ln=(ve=class extends f.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=tn(e.digest);n&&(e=n)}let t=e!==void 0?f.createElement(H.Provider,{value:this.props.routeContext},f.createElement(Se.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?f.createElement(sn,{error:e},t):t}},q(ve,"contextType",Ze),ve);const ye=new WeakMap;function sn({children:e,error:t}){let{basename:n}=f.useContext(I);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=en(t.digest);if(r){let o=ye.get(t);if(o)throw o;let u=Xe(r.location,n),l=u.absoluteURL||u.to;if(Vt(l))throw new Error("Invalid redirect location");if(Je&&!ye.get(t))if(u.isExternal||r.reloadDocument)window.location.href=l;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:r.replace}));throw ye.set(t,c),c}return f.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return e}function cn({routeContext:e,match:t,children:n}){let r=f.useContext(J);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(H.Provider,{value:e},n)}function fn(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 o=e,u=r==null?void 0:r.errors;if(u!=null){let d=o.findIndex(m=>m.route.id&&(u==null?void 0:u[m.route.id])!==void 0);k(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,c=-1;if(n&&r){l=r.renderFallback;for(let d=0;d<o.length;d++){let m=o[d];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(c=d),m.route.id){let{loaderData:p,errors:y}
80=r,S=m.route.loader&&!p.hasOwnProperty(m.route.id)&&(!y||y[m.route.id]===void 0);if(m.route.lazy||S){n.isStatic&&(l=!0),c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}}let s=n==null?void 0:n.onError,a=r&&s?(d,m)=>{var p,y;s(d,{location:r.location,params:((y=(p=r.matches)==null?void 0:p[0])==null?void 0:y.params)??{},pattern:zt(r.matches),errorInfo:m})}:void 0;return o.reduceRight((d,m,p)=>{let y,S=!1,g=null,v=null;r&&(y=u&&m.route.id?u[m.route.id]:void 0,g=m.route.errorElement||un,l&&(c<0&&p===0?(vn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,v=null):c===p&&(S=!0,v=m.route.hydrateFallbackElement||null)));let w=t.concat(o.slice(0,p+1)),T=()=>{let x;return y?x=g:S?x=v:m.route.Component?x=f.createElement(m.route.Component,null):m.route.element?x=m.route.element:x=d,f.createElement(cn,{match:m,routeContext:{outlet:d,matches:w,isDataRoute:r!=null},children:x})};return r&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?f.createElement(ln,{location:r.location,revalidation:r.revalidation,component:g,error:y,children:T(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:a}):T()},null)}function _e(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function dn(e){let t=f.useContext(J);return k(t,_e(e)),t}function hn(e){let t=f.useContext(ce);return k(t,_e(e)),t}function mn(e){let t=f.useContext(H);return k(t,_e(e)),t}function xe(e){let t=mn(e),n=t.matches[t.matches.length-1];return k(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function pn(){return xe("useRouteId")}function yn(){var r;let e=f.useContext(Se),t=hn("useRouteError"),n=xe("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function gn(){let{router:e}=dn("useNavigate"),t=xe("useNavigate"),n=f.useRef(!1);return f.useLayoutEffect(()=>{n.current=!0}),f.useCallback(async(r,o={})=>{Y(n.current,nt),n.current&&(typeof r=="number"?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}const Ue={};
80function vn(e,t,n){Ue[e]||(Ue[e]=!0,Y(!1,n))}/**
81 * react-router v8.3.0
82 *
83 * Copyright (c) Remix Software Inc.
84 *
85 * This source code is licensed under the MIT license found in the
86 * LICENSE.md file in the root directory of this source tree.
87 *
88 * @license MIT
89 */f.memo(Rn);function Rn({routes:e,manifest:t,future:n,state:r,isStatic:o,onError:u}){return ot(e,void 0,{manifest:t,state:r,isStatic:o,onError:u})}function ar({to:e,replace:t,state:n,relative:r}){k(X(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=f.useContext(I);Y(!o,"<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:u}=f.useContext(H),{pathname:l}=B(),c=rt(),s=se(e,we(u),l,r==="path"),a=JSON.stringify(s);return f.useEffect(()=>{c(JSON.parse(a),{replace:t,state:n,relative:r})},[c,a,r,t,n]),null}function En(e){k(!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 Cn({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:u=!1,useTransitions:l}){k(!X(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),s=f.useMemo(()=>({basename:c,navigator:o,static:u,useTransitions:l,future:{}}),[c,o,u,l]);typeof n=="string"&&(n=G(n));let{pathname:a="/",search:d="",hash:m="",state:p=null,key:y="default",mask:S}=n,g=f.useMemo(()=>{let v=z(a,c);return v==null?null:{location:{pathname:v,search:d,hash:m,state:p,key:y,mask:S},navigationType:r}},[c,a,d,m,p,y,r,S]);return Y(g!=null,`<Router basename="${c}"> is not able to match the URL "${a}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:f.createElement(I.Provider,{value:s},f.createElement(re.Provider,{children:t,value:g}))}function ir({children:e,location:t}){return on(Ee(e),t)}function Ee(e,t=[]){let n=[];return f.Children.forEach(e,(r,o)=>{if(!f.isValidElement(r))return;let u=[...t,o];if(r.type===f.Fragment){n.push.apply(n,Ee(r.props.children,u));return}k(r.type===En,`[${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>`);let l=r.props;k(!l.index||!l.children,"An index route cannot have child routes.");let c={id:l.id||u.join("-"),caseSensitive:l.caseSensitive,element:l.element,Component:l.Component,index:l.index,path:l.path,middleware:l.middleware,loader:l.loader,action:l.action,hydrateFallbackElement:l.hydrateFallbackElement,HydrateFallback:l.HydrateFallback,errorElement:l.errorElement,ErrorBoundary:l.ErrorBoundary,shouldRevalidate:l.shouldRevalidate,handle:l.handle,lazy:l.lazy};l.children&&(c.children=Ee(l.children,u)),n.push(c)}),n}/**
90 * react-router v8.3.0
91 *
92 * Copyright (c) Remix Software Inc.
93 *
94 * This source code is licensed under the MIT license found in the
95 * LICENSE.md file in the root directory of this source tree.
96 *
97 * @license MIT
98 */const ue="application/x-www-form-urlencoded";function fe(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function wn(e){return fe(e)&&e.tagName.toLowerCase()==="button"}function Sn(e){return fe(e)&&e.tagName.toLowerCase()==="form"}function _n(e){return fe(e)&&e.tagName.toLowerCase()==="input"}function xn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Pn(e,t){return e.button===0&&(!t||t==="_self")&&!xn(e)}let ie=null;function Tn(){if(ie===null)try{new FormData(document.createElement("form"),0),ie=!1}catch{ie=!0}return ie}const bn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ge(e){return e!=null&&!bn.has(e)?(Y(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ue}"`),null):e}function Ln(e,t){let n,r,o,u,l;if(Sn(e)){let c=e.getAttribute("action");r=c?z(c,t):null,n=e.getAttribute("method")||"get",o=ge(e.getAttribute("enctype"))||ue,u=new FormData(e)}else if(wn(e)||_n(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||c.getAttribute("action");if(r=s?z(s,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||"get",o=ge(e.getAttribute("formenctype"))||ge(c.getAttribute("enctype"))||ue,u=new FormData(c,e),!Tn()){let{name:a,type:d,value:m}=e;if(d==="image"){let p=a?`${a}.`:"";u.append(`${p}x`,"0"),u.append(`${p}y`,"0")}else a&&u.append(a,m)}}else{if(fe(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n="get",r=null,o=ue,l=e}return u&&o==="text/plain"&&(l=u,u=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:u,body:l}}/**
99 * react-router v8.3.0
100 *
101 * Copyright (c) Remix Software Inc.
102 *
103 * This source code is licensed under the MIT license found in the
104 * LICENSE.md file in the root directory of this source tree.
105 *
106 * @license MIT
107 */function Pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}/**
108 * react-router v8.3.0
109 *
110 * Copyright (c) Remix Software Inc.
111 *
112 * This source code is licensed under the MIT license found in the
113 * LICENSE.md file in the root directory of this source tree.
114 *
115 * @license MIT
116 */function at(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname.endsWith("/")?n.pathname=`${n.pathname}_.${t}`:n.pathname=`${n.pathname}.${t}`,n}/**
117 * react-router v8.3.0
118 *
119 * Copyright (c) Remix Software Inc.
120 *
121 * This source code is licensed under the MIT license found in the
122 * LICENSE.md file in the root directory of this source tree.
123 *
124 * @license MIT
125 */async function kn(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.
vendor: 11,759 bytes, lines 125-152
125isSpaMode,window.location.reload(),new Promise(()=>{})}}/**
126 * react-router v8.3.0
127 *
128 * Copyright (c) Remix Software Inc.
129 *
130 * This source code is licensed under the MIT license found in the
131 * LICENSE.md file in the root directory of this source tree.
132 *
133 * @license MIT
134 */function On(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 $n(e,t,n){return In((await Promise.all(e.map(async r=>{let o=t.routes[r.route.id];if(o){let u=await kn(o,n);return u.links?u.links():[]}return[]}))).flat(1).filter(On).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function Fe(e,t,n,r,o,u){let l=(s,a)=>n[a]?s.route.id!==n[a].route.id:!0,c=(s,a)=>{var d;return n[a].pathname!==s.pathname||((d=n[a].route.path)==null?void 0:d.endsWith("*"))&&n[a].params["*"]!==s.params["*"]};return u==="assets"?t.filter((s,a)=>l(s,a)||c(s,a)):u==="data"?t.filter((s,a)=>{var m;let d=r.routes[s.route.id];if(!d||!d.hasLoader)return!1;if(l(s,a)||c(s,a))return!0;if(s.route.shouldRevalidate){let p=s.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function An(e,t,{includeHydrateFallback:n}={}){return Dn(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let u=[o.module];return o.clientActionModule&&(u=u.concat(o.clientActionModule)),o.clientLoaderModule&&(u=u.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(u=u.concat(o.hydrateFallbackModule)),o.imports&&(u=u.concat(o.imports)),u}).flat(1))}function Dn(e){return[...new Set(e)]}function Nn(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function In(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let u=JSON.stringify(Nn(o));return n.has(u)||(n.add(u),r.push({key:u,link:o})),r},[])}/**
135 * react-router v8.3.0
136 *
137 * Copyright (c) Remix Software Inc.
138 *
139 * This source code is licensed under the MIT license found in the
140 * LICENSE.md file in the root directory of this source tree.
141 *
142 * @license MIT
143 */function Mn(){let e=f.useContext(J);return Pe(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Hn(){let e=f.useContext(ce);return Pe(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}const Te=f.createContext(void 0);Te.displayName="FrameworkContext";function be(){let e=f.useContext(Te);return Pe(e,"You must render this element inside a <HydratedRouter> element"),e}function Un(e,t){let n=f.useContext(Te),[r,o]=f.useState(!1),[u,l]=f.useState(!1),{onFocus:c,onBlur:s,onMouseEnter:a,onMouseLeave:d,onTouchStart:m}=t,p=f.useRef(null);f.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let g=w=>{w.forEach(T=>{l(T.isIntersecting)})},v=new IntersectionObserver(g,{threshold:.5});return p.current&&v.observe(p.current),()=>{v.disconnect()}}},[e]),f.useEffect(()=>{if(r){let g=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(g)}}},[r]);let y=()=>{o(!0)},S=()=>{o(!1),l(!1)};return n?e!=="intent"?[u,p,{}]:[u,p,{onFocus:te(c,y),onBlur:te(s,S),onMouseEnter:te(a,y),onMouseLeave:te(d,S),onTouchStart:te(m,y)}]:[!1,p,{}]}function te(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Fn({page:e,...t}){let n=Gt(),{nonce:r}=be(),{router:o}=Mn(),u=f.useMemo(()=>We(o.routes,e,o.basename),[o.routes,e,o.basename]);return u?(t.nonce==null&&r&&(t={...t,nonce:r}),n?f.createElement(jn,{page:e,matches:u,...t}):f.createElement(Wn,{page:e,matches:u,...t})):null}function Bn(e){let{manifest:t,routeModules:n}=be(),[r,o]=f.useState([]);return f.useEffect(()=>{let u=!1;return $n(e,t,n).then(l=>{u||o(l)}),()=>{u=!0}},[e,t,n]),r}function jn({page:e,matches:t,...n}){let r=B(),o=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let u=at(e,"rsc"),l=!1,c=[];for(let s of t)typeof s.route.shouldRevalidate=="function"?l=!0:c.push(s.route.id);return l&&c.length>0&&u.searchParams.set("_routes",c.join(",")),[u.pathname+u.search]},[e,r,t]);return f.createElement(f.Fragment,null,o.map(u=>f.createElement("link",{key:u,rel:"prefetch",as:"fetch",href:u,...n})))}function Wn({page:e,matches:t,...n}){let r=B(),{manifest:o,routeModules:u}=be(),{loaderData:l,matches:c}=Hn(),s=f.useMemo(()=>Fe(e,t,c,o,r,"data"),[e,t,c,o,r]),a=f.useMemo(()=>Fe(e,t,c,o,r,"assets"),[e,t,c,o,r]),d=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,S=!1;if(t.forEach(v=>{var T;let w=o.routes[v.route.id];!w||!w.hasLoader||(!s.some(x=>x.route.id===v.route.id)&&v.route.id in l&&((T=u[v.route.id])!=null&&T.shouldRevalidate)||w.hasClientLoader?S=!0:y.add(v.route.id))}),y.size===0)return[];let g=at(e,"data");return S&&y.size>0&&g.searchParams.set("_routes",t.filter(v=>y.has(v.route.id)).map(v=>v.route.id).join(",")),[g.pathname+g.search]},[l,r,o,s,t,e,u]),m=f.useMemo(()=>An(a,o),[a,o]),p=Bn(a);return f.createElement(f.Fragment,null,d.map(y=>f.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),m.map(y=>f.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),p.map(({key:y,link:S})=>f.createElement("link",{key:y,nonce:n.nonce,...S,crossOrigin:S.crossOrigin??n.crossOrigin})))}function Yn(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}/**
144 * react-router v8.3.0
145 *
146 * Copyright (c) Remix Software Inc.
147 *
148 * This source code is licensed under the MIT license found in the
149 * LICENSE.md file in the root directory of this source tree.
150 *
151 * @license MIT
152 */const zn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zn&&(window.__reactRouterVersion="8.3.0")}catch{}function ur({basename:e,children:t,useTransitions:n,window:r}){let o=f.useRef(null);o.current==null&&(o.current=Rt({window:r,v5Compat:!0}));let u=o.current,[l,c]=f.useState({action:u.action,location:u.location}),s=f.useCallback(a=>{n===!1?c(a):f.startTransition(()=>c(a))},[n]);return f.useLayoutEffect(()=>u.listen(s),[u,s]),f.createElement(Cn,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:u,useTransitions:n})}const it=f.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:u,replace:l,mask:c,state:s,target:a,to:d,preventScrollReset:m,viewTransition:p,defaultShouldRevalidate:y,...S},g){let{basename:v,navigator:w,useTransitions:T}=f.useContext(I),x=typeof d=="string"&&Ce.test(d),$=Xe(d,v);d=$.to;let O=nn(d,{relative:o}),D=B(),_=null;if(c){let U=se(c,[],D.mask?D.mask.pathname:"/",!0);v!=="/"&&(U.pathname=U.pathname==="/"?v:M([v,U.pathname])),_=w.createHref(U)}let[j,W,Q]=Un(r,S),Z=Gn(d,{replace:l,mask:c,state:s,target:a,preventScrollReset:m,relative:o,viewTransition:p,defaultShouldRevalidate:y,useTransitions:T});function de(U){t&&t(U),U.defaultPrevented||Z(U)}let ee=!($.isExternal||u),K=f.createElement("a",{...S,...Q,href:(ee?_:void 0)||$.absoluteURL||O,onClick:ee?de:t,ref:Yn(g,W),target:a,"data-discover":!x&&n==="render"?"true":void 0});return j&&!x?f.createElement(f.Fragment,null,K,f.createElement(Fn,{page:O})):K});it.displayName="Link";const qn=f.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:u,to:l,viewTransition:c,children:s,...a},d){let m=oe(l,{relative:a.relative}),p=B(),y=f.useContext(ce),{navigator:S,basename:g}=f.useContext(I),v=y!=null&&er(m)&&c===!0,w=S.encodeLocation?S.encodeLocation(m).pathname:m.pathname,T=p.pathname,x=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(T=T.toLowerCase(),x=x?x.toLowerCase():null,w=w.toLowerCase()),x&&g&&(x=z(x,g)||x);const $=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let O=T===w||!o&&T.startsWith(w)&&T.charAt($)==="/",D=x!=null&&(x===w||!o&&x.startsWith(w)&&x.charAt($)==="/"),_={isActive:O,isPending:D,isTransitioning:v},j=O?t:void 0,W;typeof r=="function"?W=r(_):W=[r,O?"active":null,D?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let Q=typeof u=="function"?u(_):u;return f.createElement(it,{...a,"aria-current":j,className:W,ref:d,style:Q,to:l,viewTransition:c},typeof s=="function"?s(_):s)});qn.displayName="NavLink";const Kn=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:u,method:l="get",action:c,onSubmit:s,relative:a,preventScrollReset:d,viewTransition:m,defaultShouldRevalidate:p,...y},S)=>{let{useTransitions:g}=f.useContext(I),v=Qn(),w=Zn(c,{relative:a}),T=l.toLowerCase()==="get"?"get":"post",x=typeof c=="string"&&Ce.test(c),$=O=>{if(s&&s(O),O.defaultPrevented)return;O.preventDefault();let D=O.nativeEvent.submitter,_=(D==null?void 0:D.getAttribute("formmethod"))||l,j=()=>v(D||O.currentTarget,{fetcherKey:t,method:_,navigate:n,replace:o,state:u,relative:a,preventScrollReset:d,viewTransition:m,defaultShouldRevalidate:p});g&&n!==!1?f.startTransition(()=>j()):j()};return f.createElement("form",{ref:S,method:T,action:w,onSubmit:r?s:$,...y,"data-discover":!x&&e==="render"?"true":void 0})});Kn.displayName="Form";function Vn(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ut(e){let t=f.useContext(J);return k(t,Vn(e)),t}function Gn(e,{target:t,replace:n,mask:r,state:o,preventScrollReset:u,relative:l,viewTransition:c,defaultShouldRevalidate:s,useTransitions:a}={}){let d=rt(),m=B(),p=oe(e,{relative:l});return f.useCallback(y=>{if(Pn(y,t)){y.preventDefault();let S=n!==void 0?n:ne(m)===ne(p),g=()=>d(e,{replace:S,mask:r,state:o,preventScrollReset:u,relative:l,viewTransition:c,defaultShouldRevalidate:s});a?f.startTransition(()=>g()):g()}},[m,d,p,n,r,o,t,e,u,l,c,s,a])}let Jn=0,Xn=()=>`__${String(++Jn)}__`;function Qn(){let{router:e}=ut("useSubmit"),{basename:t}=f.useContext(I),n=pn(),r=e.fetch,o=e.navigate;return f.useCallback(async(u,l={})=>{let{action:c,method:s,encType:a,formData:d,body:m}=Ln(u,t);l.navigate===!1?await r(l.fetcherKey||Xn(),n,l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:d,body:m,formMethod:l.method||s,formEncType:l.encType||a,flushSync:l.flushSync}):await o(l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:d,body:m,formMethod:l.method||s,formEncType:l.encType||a,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,o,t,n])}function Zn(e,{relative:t}={}){let{basename:n}=f.useContext(I),r=f.useContext(H);k(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),u={...oe(e||".",{relative:t})},l=B();if(e==null){u.search=l.search;let c=new URLSearchParams(u.search),s=c.getAll("index");if(s.some(a=>a==="")){c.delete("index"),s.filter(d=>d).forEach(d=>c.append("index",d));let a=c.toString();u.search=a?`?${a}`:""}}return(!e||e===".")&&o.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(u.pathname=u.pathname==="/"?n:M([n,u.pathname])),ne(u)}function er(e,{relative:t}={}){let n=f.useContext(et);k(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ut("useViewTransitionState"),o=oe(e,{relative:t});if(!n.isTransitioning)return!1;let u=z(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=z(n.nextLocation.pathname,r)||n.nextLocation.pathname;return le(o.pathname,l)!=null||le(o.pathname,u)!=null}export{ur as B,it as L,ar as N,yt as R,Be as a,rr as b,ir as c,En as d,rt as e,nr as f,mt as g,or as h,f as r,B 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.