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