Files
calypso/dist/airgap/calypso-appliance-1.0.0-airgap/frontend/assets/react-vendor-Dvs2KPqW.js
2026-01-21 12:31:24 +00:00

3 lines
32 KiB
JavaScript

function ze(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(o,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Z={exports:{}},m={};var pe;function Fe(){if(pe)return m;pe=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),i=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),E=Symbol.iterator;function T(r){return r===null||typeof r!="object"?null:(r=E&&r[E]||r["@@iterator"],typeof r=="function"?r:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,v={};function S(r,c,y){this.props=r,this.context=c,this.refs=v,this.updater=y||x}S.prototype.isReactComponent={},S.prototype.setState=function(r,c){if(typeof r!="object"&&typeof r!="function"&&r!=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,r,c,"setState")},S.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function L(){}L.prototype=S.prototype;function w(r,c,y){this.props=r,this.context=c,this.refs=v,this.updater=y||x}var A=w.prototype=new L;A.constructor=w,C(A,S.prototype),A.isPureReactComponent=!0;var $=Array.isArray;function V(){}var P={H:null,A:null,T:null,S:null},ce=Object.prototype.hasOwnProperty;function J(r,c,y){var g=y.ref;return{$$typeof:e,type:r,key:c,ref:g!==void 0?g:null,props:y}}function Me(r,c){return J(r.type,c,r.props)}function X(r){return typeof r=="object"&&r!==null&&r.$$typeof===e}function ke(r){var c={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(y){return c[y]})}var fe=/\/+/g;function Q(r,c){return typeof r=="object"&&r!==null&&r.key!=null?ke(""+r.key):c.toString(36)}function Be(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(V,V):(r.status="pending",r.then(function(c){r.status==="pending"&&(r.status="fulfilled",r.value=c)},function(c){r.status==="pending"&&(r.status="rejected",r.reason=c)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function D(r,c,y,g,_){var R=typeof r;(R==="undefined"||R==="boolean")&&(r=null);var O=!1;if(r===null)O=!0;else switch(R){case"bigint":case"string":case"number":O=!0;break;case"object":switch(r.$$typeof){case e:case t:O=!0;break;case f:return O=r._init,D(O(r._payload),c,y,g,_)}}if(O)return _=_(r),O=g===""?"."+Q(r,0):g,$(_)?(y="",O!=null&&(y=O.replace(fe,"$&/")+"/"),D(_,c,y,"",function(We){return We})):_!=null&&(X(_)&&(_=Me(_,y+(_.key==null||r&&r.key===_.key?"":(""+_.key).replace(fe,"$&/")+"/")+O)),c.push(_)),1;O=0;var j=g===""?".":g+":";if($(r))for(var U=0;U<r.length;U++)g=r[U],R=j+Q(g,U),O+=D(g,c,y,R,_);else if(U=T(r),typeof U=="function")for(r=U.call(r),U=0;!(g=r.next()).done;)g=g.value,R=j+Q(g,U++),O+=D(g,c,y,R,_);else if(R==="object"){if(typeof r.then=="function")return D(Be(r),c,y,g,_);throw c=String(r),Error("Objects are not valid as a React child (found: "+(c==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":c)+"). If you meant to render a collection of children, use an array instead.")}return O}function q(r,c,y){if(r==null)return r;var g=[],_=0;return D(r,g,"","",function(R){return c.call(y,R,_++)}),g}function De(r){if(r._status===-1){var c=r._result;c=c(),c.then(function(y){(r._status===0||r._status===-1)&&(r._status=1,r._result=y)},function(y){(r._status===0||r._status===-1)&&(r._status=2,r._result=y)}),r._status===-1&&(r._status=0,r._result=c)}if(r._status===1)return r._result.default;throw r._result}var de=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},He={map:q,forEach:function(r,c,y){q(r,function(){c.apply(this,arguments)},y)},count:function(r){var c=0;return q(r,function(){c++}),c},toArray:function(r){return q(r,function(c){return c})||[]},only:function(r){if(!X(r))throw Error("React.Children.only expected to receive a single React element child.");return r}};return m.Activity=d,m.Children=He,m.Component=S,m.Fragment=n,m.Profiler=a,m.PureComponent=w,m.StrictMode=o,m.Suspense=l,m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,m.__COMPILER_RUNTIME={__proto__:null,c:function(r){return P.H.useMemoCache(r)}},m.cache=function(r){return function(){return r.apply(null,arguments)}},m.cacheSignal=function(){return null},m.cloneElement=function(r,c,y){if(r==null)throw Error("The argument must be a React element, but you passed "+r+".");var g=C({},r.props),_=r.key;if(c!=null)for(R in c.key!==void 0&&(_=""+c.key),c)!ce.call(c,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&c.ref===void 0||(g[R]=c[R]);var R=arguments.length-2;if(R===1)g.children=y;else if(1<R){for(var O=Array(R),j=0;j<R;j++)O[j]=arguments[j+2];g.children=O}return J(r.type,_,g)},m.createContext=function(r){return r={$$typeof:u,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null},r.Provider=r,r.Consumer={$$typeof:s,_context:r},r},m.createElement=function(r,c,y){var g,_={},R=null;if(c!=null)for(g in c.key!==void 0&&(R=""+c.key),c)ce.call(c,g)&&g!=="key"&&g!=="__self"&&g!=="__source"&&(_[g]=c[g]);var O=arguments.length-2;if(O===1)_.children=y;else if(1<O){for(var j=Array(O),U=0;U<O;U++)j[U]=arguments[U+2];_.children=j}if(r&&r.defaultProps)for(g in O=r.defaultProps,O)_[g]===void 0&&(_[g]=O[g]);return J(r,R,_)},m.createRef=function(){return{current:null}},m.forwardRef=function(r){return{$$typeof:p,render:r}},m.isValidElement=X,m.lazy=function(r){return{$$typeof:f,_payload:{_status:-1,_result:r},_init:De}},m.memo=function(r,c){return{$$typeof:i,type:r,compare:c===void 0?null:c}},m.startTransition=function(r){var c=P.T,y={};P.T=y;try{var g=r(),_=P.S;_!==null&&_(y,g),typeof g=="object"&&g!==null&&typeof g.then=="function"&&g.then(V,de)}catch(R){de(R)}finally{c!==null&&y.types!==null&&(c.types=y.types),P.T=c}},m.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},m.use=function(r){return P.H.use(r)},m.useActionState=function(r,c,y){return P.H.useActionState(r,c,y)},m.useCallback=function(r,c){return P.H.useCallback(r,c)},m.useContext=function(r){return P.H.useContext(r)},m.useDebugValue=function(){},m.useDeferredValue=function(r,c){return P.H.useDeferredValue(r,c)},m.useEffect=function(r,c){return P.H.useEffect(r,c)},m.useEffectEvent=function(r){return P.H.useEffectEvent(r)},m.useId=function(){return P.H.useId()},m.useImperativeHandle=function(r,c,y){return P.H.useImperativeHandle(r,c,y)},m.useInsertionEffect=function(r,c){return P.H.useInsertionEffect(r,c)},m.useLayoutEffect=function(r,c){return P.H.useLayoutEffect(r,c)},m.useMemo=function(r,c){return P.H.useMemo(r,c)},m.useOptimistic=function(r,c){return P.H.useOptimistic(r,c)},m.useReducer=function(r,c,y){return P.H.useReducer(r,c,y)},m.useRef=function(r){return P.H.useRef(r)},m.useState=function(r){return P.H.useState(r)},m.useSyncExternalStore=function(r,c,y){return P.H.useSyncExternalStore(r,c,y)},m.useTransition=function(){return P.H.useTransition()},m.version="19.2.3",m}var he;function Te(){return he||(he=1,Z.exports=Fe()),Z.exports}var h=Te();const qe=Ye(h),Ge=ze({__proto__:null,default:qe},[h]);var ee={exports:{}},N={};var ve;function Ke(){if(ve)return N;ve=1;var e=Te();function t(l){var i="https://react.dev/errors/"+l;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)i+="&args[]="+encodeURIComponent(arguments[f])}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 n(){}var o={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(l,i,f){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:d==null?null:""+d,children:l,containerInfo:i,implementation:f}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(l,i){if(l==="font")return"";if(typeof i=="string")return i==="use-credentials"?i:""}return N.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,N.createPortal=function(l,i){var f=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 s(l,i,null,f)},N.flushSync=function(l){var i=u.T,f=o.p;try{if(u.T=null,o.p=2,l)return l()}finally{u.T=i,o.p=f,o.d.f()}},N.preconnect=function(l,i){typeof l=="string"&&(i?(i=i.crossOrigin,i=typeof i=="string"?i==="use-credentials"?i:"":void 0):i=null,o.d.C(l,i))},N.prefetchDNS=function(l){typeof l=="string"&&o.d.D(l)},N.preinit=function(l,i){if(typeof l=="string"&&i&&typeof i.as=="string"){var f=i.as,d=p(f,i.crossOrigin),E=typeof i.integrity=="string"?i.integrity:void 0,T=typeof i.fetchPriority=="string"?i.fetchPriority:void 0;f==="style"?o.d.S(l,typeof i.precedence=="string"?i.precedence:void 0,{crossOrigin:d,integrity:E,fetchPriority:T}):f==="script"&&o.d.X(l,{crossOrigin:d,integrity:E,fetchPriority:T,nonce:typeof i.nonce=="string"?i.nonce:void 0})}},N.preinitModule=function(l,i){if(typeof l=="string")if(typeof i=="object"&&i!==null){if(i.as==null||i.as==="script"){var f=p(i.as,i.crossOrigin);o.d.M(l,{crossOrigin:f,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0})}}else i==null&&o.d.M(l)},N.preload=function(l,i){if(typeof l=="string"&&typeof i=="object"&&i!==null&&typeof i.as=="string"){var f=i.as,d=p(f,i.crossOrigin);o.d.L(l,f,{crossOrigin:d,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})}},N.preloadModule=function(l,i){if(typeof l=="string")if(i){var f=p(i.as,i.crossOrigin);o.d.m(l,{as:typeof i.as=="string"&&i.as!=="script"?i.as:void 0,crossOrigin:f,integrity:typeof i.integrity=="string"?i.integrity:void 0})}else o.d.m(l)},N.requestFormReset=function(l){o.d.r(l)},N.unstable_batchedUpdates=function(l,i){return l(i)},N.useFormState=function(l,i,f){return u.H.useFormState(l,i,f)},N.useFormStatus=function(){return u.H.useHostTransitionStatus()},N.version="19.2.3",N}var me;function Ve(){if(me)return ee.exports;me=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(),ee.exports=Ke(),ee.exports}Ve();function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},z.apply(this,arguments)}var M;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(M||(M={}));const ge="popstate";function Je(e){e===void 0&&(e={});function t(o,a){let{pathname:s,search:u,hash:p}=o.location;return re("",{pathname:s,search:u,hash:p},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(o,a){return typeof a=="string"?a:G(a)}return Qe(t,n,null,e)}function b(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ie(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Xe(){return Math.random().toString(36).substr(2,8)}function ye(e,t){return{usr:e.state,key:e.key,idx:t}}function re(e,t,n,o){return n===void 0&&(n=null),z({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?H(t):t,{state:n,key:t&&t.key||o||Xe()})}function G(e){let{pathname:t="/",search:n="",hash:o=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),o&&o!=="#"&&(t+=o.charAt(0)==="#"?o:"#"+o),t}function H(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}function Qe(e,t,n,o){o===void 0&&(o={});let{window:a=document.defaultView,v5Compat:s=!1}=o,u=a.history,p=M.Pop,l=null,i=f();i==null&&(i=0,u.replaceState(z({},u.state,{idx:i}),""));function f(){return(u.state||{idx:null}).idx}function d(){p=M.Pop;let v=f(),S=v==null?null:v-i;i=v,l&&l({action:p,location:C.location,delta:S})}function E(v,S){p=M.Push;let L=re(C.location,v,S);i=f()+1;let w=ye(L,i),A=C.createHref(L);try{u.pushState(w,"",A)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;a.location.assign(A)}s&&l&&l({action:p,location:C.location,delta:1})}function T(v,S){p=M.Replace;let L=re(C.location,v,S);i=f();let w=ye(L,i),A=C.createHref(L);u.replaceState(w,"",A),s&&l&&l({action:p,location:C.location,delta:0})}function x(v){let S=a.location.origin!=="null"?a.location.origin:a.location.href,L=typeof v=="string"?v:G(v);return L=L.replace(/ $/,"%20"),b(S,"No window.location.(origin|href) available to create URL for href: "+L),new URL(L,S)}let C={get action(){return p},get location(){return e(a,u)},listen(v){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(ge,d),l=v,()=>{a.removeEventListener(ge,d),l=null}},createHref(v){return t(a,v)},createURL:x,encodeLocation(v){let S=x(v);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:E,replace:T,go(v){return u.go(v)}};return C}var Ee;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ee||(Ee={}));function Ze(e,t,n){return n===void 0&&(n="/"),et(e,t,n)}function et(e,t,n,o){let a=typeof t=="string"?H(t):t,s=ae(a.pathname||"/",n);if(s==null)return null;let u=xe(e);tt(u);let p=null;for(let l=0;p==null&&l<u.length;++l){let i=pt(s);p=ct(u[l],i)}return p}function xe(e,t,n,o){t===void 0&&(t=[]),n===void 0&&(n=[]),o===void 0&&(o="");let a=(s,u,p)=>{let l={relativePath:p===void 0?s.path||"":p,caseSensitive:s.caseSensitive===!0,childrenIndex:u,route:s};l.relativePath.startsWith("/")&&(b(l.relativePath.startsWith(o),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(o.length));let i=k([o,l.relativePath]),f=n.concat(l);s.children&&s.children.length>0&&(b(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+i+'".')),xe(s.children,t,f,i)),!(s.path==null&&!s.index)&&t.push({path:i,score:st(i,s.index),routesMeta:f})};return e.forEach((s,u)=>{var p;if(s.path===""||!((p=s.path)!=null&&p.includes("?")))a(s,u);else for(let l of we(s.path))a(s,u,l)}),t}function we(e){let t=e.split("/");if(t.length===0)return[];let[n,...o]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(o.length===0)return a?[s,""]:[s];let u=we(o.join("/")),p=[];return p.push(...u.map(l=>l===""?s:[s,l].join("/"))),a&&p.push(...u),p.map(l=>e.startsWith("/")&&l===""?"/":l)}function tt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ut(t.routesMeta.map(o=>o.childrenIndex),n.routesMeta.map(o=>o.childrenIndex)))}const rt=/^:[\w-]+$/,nt=3,ot=2,it=1,at=10,lt=-2,_e=e=>e==="*";function st(e,t){let n=e.split("/"),o=n.length;return n.some(_e)&&(o+=lt),t&&(o+=ot),n.filter(a=>!_e(a)).reduce((a,s)=>a+(rt.test(s)?nt:s===""?it:at),o)}function ut(e,t){return e.length===t.length&&e.slice(0,-1).every((o,a)=>o===t[a])?e[e.length-1]-t[t.length-1]:0}function ct(e,t,n){let{routesMeta:o}=e,a={},s="/",u=[];for(let p=0;p<o.length;++p){let l=o[p],i=p===o.length-1,f=s==="/"?t:t.slice(s.length)||"/",d=ft({path:l.relativePath,caseSensitive:l.caseSensitive,end:i},f),E=l.route;if(!d)return null;Object.assign(a,d.params),u.push({params:a,pathname:k([s,d.pathname]),pathnameBase:yt(k([s,d.pathnameBase])),route:E}),d.pathnameBase!=="/"&&(s=k([s,d.pathnameBase]))}return u}function ft(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,o]=dt(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],u=s.replace(/(.)\/+$/,"$1"),p=a.slice(1);return{params:o.reduce((i,f,d)=>{let{paramName:E,isOptional:T}=f;if(E==="*"){let C=p[d]||"";u=s.slice(0,s.length-C.length).replace(/(.)\/+$/,"$1")}const x=p[d];return T&&!x?i[E]=void 0:i[E]=(x||"").replace(/%2F/g,"/"),i},{}),pathname:s,pathnameBase:u,pattern:e}}function dt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ie(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 o=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,p,l)=>(o.push({paramName:p,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),o]}function pt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ie(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ae(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&o!=="/"?null:e.slice(n)||"/"}const ht=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vt=e=>ht.test(e);function mt(e,t){t===void 0&&(t="/");let{pathname:n,search:o="",hash:a=""}=typeof e=="string"?H(e):e,s;if(n)if(vt(n))s=n;else{if(n.includes("//")){let u=n;n=n.replace(/\/\/+/g,"/"),ie(!1,"Pathnames cannot have embedded double slashes - normalizing "+(u+" -> "+n))}n.startsWith("/")?s=Re(n.substring(1),"/"):s=Re(n,t)}else s=t;return{pathname:s,search:Et(o),hash:_t(a)}}function Re(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function te(e,t,n,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function gt(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function le(e,t){let n=gt(e);return t?n.map((o,a)=>a===n.length-1?o.pathname:o.pathnameBase):n.map(o=>o.pathnameBase)}function se(e,t,n,o){o===void 0&&(o=!1);let a;typeof e=="string"?a=H(e):(a=z({},e),b(!a.pathname||!a.pathname.includes("?"),te("?","pathname","search",a)),b(!a.pathname||!a.pathname.includes("#"),te("#","pathname","hash",a)),b(!a.search||!a.search.includes("#"),te("#","search","hash",a)));let s=e===""||a.pathname==="",u=s?"/":a.pathname,p;if(u==null)p=n;else{let d=t.length-1;if(!o&&u.startsWith("..")){let E=u.split("/");for(;E[0]==="..";)E.shift(),d-=1;a.pathname=E.join("/")}p=d>=0?t[d]:"/"}let l=mt(a,p),i=u&&u!=="/"&&u.endsWith("/"),f=(s||u===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(i||f)&&(l.pathname+="/"),l}const k=e=>e.join("/").replace(/\/\/+/g,"/"),yt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Et=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_t=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Rt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const be=["post","put","patch","delete"];new Set(be);const Ct=["get",...be];new Set(Ct);function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Y.apply(this,arguments)}const ue=h.createContext(null),St=h.createContext(null),B=h.createContext(null),K=h.createContext(null),I=h.createContext({outlet:null,matches:[],isDataRoute:!1}),Le=h.createContext(null);function Pt(e,t){let{relative:n}=t===void 0?{}:t;W()||b(!1);let{basename:o,navigator:a}=h.useContext(B),{hash:s,pathname:u,search:p}=Ae(e,{relative:n}),l=u;return o!=="/"&&(l=u==="/"?o:k([o,u])),a.createHref({pathname:l,search:p,hash:s})}function W(){return h.useContext(K)!=null}function F(){return W()||b(!1),h.useContext(K).location}function Ne(e){h.useContext(B).static||h.useLayoutEffect(e)}function Ue(){let{isDataRoute:e}=h.useContext(I);return e?Bt():Ot()}function Ot(){W()||b(!1);let e=h.useContext(ue),{basename:t,future:n,navigator:o}=h.useContext(B),{matches:a}=h.useContext(I),{pathname:s}=F(),u=JSON.stringify(le(a,n.v7_relativeSplatPath)),p=h.useRef(!1);return Ne(()=>{p.current=!0}),h.useCallback(function(i,f){if(f===void 0&&(f={}),!p.current)return;if(typeof i=="number"){o.go(i);return}let d=se(i,JSON.parse(u),s,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:k([t,d.pathname])),(f.replace?o.replace:o.push)(d,f.state,f)},[t,o,u,s,e])}const Tt=h.createContext(null);function xt(e){let t=h.useContext(I).outlet;return t&&h.createElement(Tt.Provider,{value:e},t)}function er(){let{matches:e}=h.useContext(I),t=e[e.length-1];return t?t.params:{}}function Ae(e,t){let{relative:n}=t===void 0?{}:t,{future:o}=h.useContext(B),{matches:a}=h.useContext(I),{pathname:s}=F(),u=JSON.stringify(le(a,o.v7_relativeSplatPath));return h.useMemo(()=>se(e,JSON.parse(u),s,n==="path"),[e,u,s,n])}function wt(e,t){return bt(e,t)}function bt(e,t,n,o){W()||b(!1);let{navigator:a}=h.useContext(B),{matches:s}=h.useContext(I),u=s[s.length-1],p=u?u.params:{};u&&u.pathname;let l=u?u.pathnameBase:"/";u&&u.route;let i=F(),f;if(t){var d;let v=typeof t=="string"?H(t):t;l==="/"||(d=v.pathname)!=null&&d.startsWith(l)||b(!1),f=v}else f=i;let E=f.pathname||"/",T=E;if(l!=="/"){let v=l.replace(/^\//,"").split("/");T="/"+E.replace(/^\//,"").split("/").slice(v.length).join("/")}let x=Ze(e,{pathname:T}),C=jt(x&&x.map(v=>Object.assign({},v,{params:Object.assign({},p,v.params),pathname:k([l,a.encodeLocation?a.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:k([l,a.encodeLocation?a.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),s,n,o);return t&&C?h.createElement(K.Provider,{value:{location:Y({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:M.Pop}},C):C}function Lt(){let e=kt(),t=Rt(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:a},n):null,null)}const Nt=h.createElement(Lt,null);class Ut extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(I.Provider,{value:this.props.routeContext},h.createElement(Le.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function At(e){let{routeContext:t,match:n,children:o}=e,a=h.useContext(ue);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(I.Provider,{value:t},o)}function jt(e,t,n,o){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),o===void 0&&(o=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=o)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let u=e,p=(a=n)==null?void 0:a.errors;if(p!=null){let f=u.findIndex(d=>d.route.id&&p?.[d.route.id]!==void 0);f>=0||b(!1),u=u.slice(0,Math.min(u.length,f+1))}let l=!1,i=-1;if(n&&o&&o.v7_partialHydration)for(let f=0;f<u.length;f++){let d=u[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(i=f),d.route.id){let{loaderData:E,errors:T}=n,x=d.route.loader&&E[d.route.id]===void 0&&(!T||T[d.route.id]===void 0);if(d.route.lazy||x){l=!0,i>=0?u=u.slice(0,i+1):u=[u[0]];break}}}return u.reduceRight((f,d,E)=>{let T,x=!1,C=null,v=null;n&&(T=p&&d.route.id?p[d.route.id]:void 0,C=d.route.errorElement||Nt,l&&(i<0&&E===0?(Dt("route-fallback"),x=!0,v=null):i===E&&(x=!0,v=d.route.hydrateFallbackElement||null)));let S=t.concat(u.slice(0,E+1)),L=()=>{let w;return T?w=C:x?w=v:d.route.Component?w=h.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=f,h.createElement(At,{match:d,routeContext:{outlet:f,matches:S,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||E===0)?h.createElement(Ut,{location:n.location,revalidation:n.revalidation,component:C,error:T,children:L(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):L()},null)}var je=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(je||{}),Ie=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Ie||{});function It(e){let t=h.useContext(ue);return t||b(!1),t}function $t(e){let t=h.useContext(St);return t||b(!1),t}function Mt(e){let t=h.useContext(I);return t||b(!1),t}function $e(e){let t=Mt(),n=t.matches[t.matches.length-1];return n.route.id||b(!1),n.route.id}function kt(){var e;let t=h.useContext(Le),n=$t(),o=$e();return t!==void 0?t:(e=n.errors)==null?void 0:e[o]}function Bt(){let{router:e}=It(je.UseNavigateStable),t=$e(Ie.UseNavigateStable),n=h.useRef(!1);return Ne(()=>{n.current=!0}),h.useCallback(function(a,s){s===void 0&&(s={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Y({fromRouteId:t},s)))},[e,t])}const Ce={};function Dt(e,t,n){Ce[e]||(Ce[e]=!0)}function Ht(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function tr(e){let{to:t,replace:n,state:o,relative:a}=e;W()||b(!1);let{future:s,static:u}=h.useContext(B),{matches:p}=h.useContext(I),{pathname:l}=F(),i=Ue(),f=se(t,le(p,s.v7_relativeSplatPath),l,a==="path"),d=JSON.stringify(f);return h.useEffect(()=>i(JSON.parse(d),{replace:n,state:o,relative:a}),[i,d,a,n,o]),null}function rr(e){return xt(e.context)}function Wt(e){b(!1)}function zt(e){let{basename:t="/",children:n=null,location:o,navigationType:a=M.Pop,navigator:s,static:u=!1,future:p}=e;W()&&b(!1);let l=t.replace(/^\/*/,"/"),i=h.useMemo(()=>({basename:l,navigator:s,static:u,future:Y({v7_relativeSplatPath:!1},p)}),[l,p,s,u]);typeof o=="string"&&(o=H(o));let{pathname:f="/",search:d="",hash:E="",state:T=null,key:x="default"}=o,C=h.useMemo(()=>{let v=ae(f,l);return v==null?null:{location:{pathname:v,search:d,hash:E,state:T,key:x},navigationType:a}},[l,f,d,E,T,x,a]);return C==null?null:h.createElement(B.Provider,{value:i},h.createElement(K.Provider,{children:n,value:C}))}function nr(e){let{children:t,location:n}=e;return wt(ne(t),n)}new Promise(()=>{});function ne(e,t){t===void 0&&(t=[]);let n=[];return h.Children.forEach(e,(o,a)=>{if(!h.isValidElement(o))return;let s=[...t,a];if(o.type===h.Fragment){n.push.apply(n,ne(o.props.children,s));return}o.type!==Wt&&b(!1),!o.props.index||!o.props.children||b(!1);let u={id:o.props.id||s.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(u.children=ne(o.props.children,s)),n.push(u)}),n}function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},oe.apply(this,arguments)}function Yt(e,t){if(e==null)return{};var n={},o=Object.keys(e),a,s;for(s=0;s<o.length;s++)a=o[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Ft(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function qt(e,t){return e.button===0&&(!t||t==="_self")&&!Ft(e)}const Gt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Kt="6";try{window.__reactRouterVersion=Kt}catch{}const Vt="startTransition",Se=Ge[Vt];function or(e){let{basename:t,children:n,future:o,window:a}=e,s=h.useRef();s.current==null&&(s.current=Je({window:a,v5Compat:!0}));let u=s.current,[p,l]=h.useState({action:u.action,location:u.location}),{v7_startTransition:i}=o||{},f=h.useCallback(d=>{i&&Se?Se(()=>l(d)):l(d)},[l,i]);return h.useLayoutEffect(()=>u.listen(f),[u,f]),h.useEffect(()=>Ht(o),[o]),h.createElement(zt,{basename:t,children:n,location:p.location,navigationType:p.action,navigator:u,future:o})}const Jt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ir=h.forwardRef(function(t,n){let{onClick:o,relative:a,reloadDocument:s,replace:u,state:p,target:l,to:i,preventScrollReset:f,viewTransition:d}=t,E=Yt(t,Gt),{basename:T}=h.useContext(B),x,C=!1;if(typeof i=="string"&&Xt.test(i)&&(x=i,Jt))try{let w=new URL(window.location.href),A=i.startsWith("//")?new URL(w.protocol+i):new URL(i),$=ae(A.pathname,T);A.origin===w.origin&&$!=null?i=$+A.search+A.hash:C=!0}catch{}let v=Pt(i,{relative:a}),S=Qt(i,{replace:u,state:p,target:l,preventScrollReset:f,relative:a,viewTransition:d});function L(w){o&&o(w),w.defaultPrevented||S(w)}return h.createElement("a",oe({},E,{href:x||v,onClick:C||s?o:L,ref:n,target:l}))});var Pe;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Pe||(Pe={}));var Oe;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Oe||(Oe={}));function Qt(e,t){let{target:n,replace:o,state:a,preventScrollReset:s,relative:u,viewTransition:p}=t===void 0?{}:t,l=Ue(),i=F(),f=Ae(e,{relative:u});return h.useCallback(d=>{if(qt(d,n)){d.preventDefault();let E=o!==void 0?o:G(i)===G(f);l(e,{replace:E,state:a,preventScrollReset:s,relative:u,viewTransition:p})}},[i,l,f,o,a,n,e,s,u,p])}export{or as B,ir as L,tr as N,rr as O,qe as R,Te as a,Ve as b,Zt as c,er as d,F as e,nr as f,Ye as g,Wt as h,h as r,Ue as u};
//# sourceMappingURL=react-vendor-Dvs2KPqW.js.map