PageSourceSearch

https://domato.ai/assets/vendor-DjAiemuv.js

js domato.ai collected 2026-10-05 15:20:58 UTC 47,085 bytes, 3 lines download raw bytes

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