69 lines
250 KiB
JavaScript
69 lines
250 KiB
JavaScript
|
|
function Rd(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const l in n)if(l!=="default"&&!(l in e)){const i=Object.getOwnPropertyDescriptor(n,l);i&&Object.defineProperty(e,l,i.get?i:{enumerable:!0,get:()=>n[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(l){if(l.ep)return;l.ep=!0;const i=r(l);fetch(l.href,i)}})();function Pd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _d={exports:{}},Di={},Td={exports:{}},Y={};/**
|
||
|
|
* @license React
|
||
|
|
* react.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var ml=Symbol.for("react.element"),Sp=Symbol.for("react.portal"),kp=Symbol.for("react.fragment"),Cp=Symbol.for("react.strict_mode"),Ep=Symbol.for("react.profiler"),jp=Symbol.for("react.provider"),Rp=Symbol.for("react.context"),Pp=Symbol.for("react.forward_ref"),_p=Symbol.for("react.suspense"),Tp=Symbol.for("react.memo"),Lp=Symbol.for("react.lazy"),Vs=Symbol.iterator;function zp(e){return e===null||typeof e!="object"?null:(e=Vs&&e[Vs]||e["@@iterator"],typeof e=="function"?e:null)}var Ld={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zd=Object.assign,Md={};function pn(e,t,r){this.props=e,this.context=t,this.refs=Md,this.updater=r||Ld}pn.prototype.isReactComponent={};pn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Nd(){}Nd.prototype=pn.prototype;function Ma(e,t,r){this.props=e,this.context=t,this.refs=Md,this.updater=r||Ld}var Na=Ma.prototype=new Nd;Na.constructor=Ma;zd(Na,pn.prototype);Na.isPureReactComponent=!0;var $s=Array.isArray,Dd=Object.prototype.hasOwnProperty,Da={current:null},Id={key:!0,ref:!0,__self:!0,__source:!0};function Od(e,t,r){var n,l={},i=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Dd.call(t,n)&&!Id.hasOwnProperty(n)&&(l[n]=t[n]);var a=arguments.length-2;if(a===1)l.children=r;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];l.children=s}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)l[n]===void 0&&(l[n]=a[n]);return{$$typeof:ml,type:e,key:i,ref:o,props:l,_owner:Da.current}}function Mp(e,t){return{$$typeof:ml,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ia(e){return typeof e=="object"&&e!==null&&e.$$typeof===ml}function Np(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Qs=/\/+/g;function io(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Np(""+e.key):t.toString(36)}function Kl(e,t,r,n,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ml:case Sp:o=!0}}if(o)return o=e,l=l(o),e=n===""?"."+io(o,0):n,$s(l)?(r="",e!=null&&(r=e.replace(Qs,"$&/")+"/"),Kl(l,t,r,"",function(u){return u})):l!=null&&(Ia(l)&&(l=Mp(l,r+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(Qs,"$&/")+"/")+e)),t.push(l)),1;if(o=0,n=n===""?".":n+":",$s(e))for(var a=0;a<e.length;a++){i=e[a];var s=n+io(i,a);o+=Kl(i,t,r,s,l)}else if(s=zp(e),typeof s=="function")for(e=s.call(e),a=0;!(i=e.next()).done;)i=i.value,s=n+io(i,a++),o+=Kl(i,t,r,s,l);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function _l(e,t,r){if(e==null)return e;var n=[],l=0;return Kl(e,n,"","",function(i){return t.call(r,i,l++)}),n}function Dp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ue={current:null},Yl={transition:null},Ip={ReactCurrentDispatcher:Ue,ReactCurrentBatchConfig:Yl,ReactCurrentOwner:Da};function Fd(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:_l,forEach:function(e,t,r){_l(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return _l(e,function(){t++}),t},toArray:function(e){return _l(e,function(t){return t})||[]},only:function(e){if(!Ia(e))throw Error("React.Children.only expected to receive a sing
|
||
|
|
* @license React
|
||
|
|
* react-jsx-runtime.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var Fp=R,Ap=Symbol.for("react.element"),bp=Symbol.for("react.fragment"),Up=Object.prototype.hasOwnProperty,Wp=Fp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Bp={key:!0,ref:!0,__self:!0,__source:!0};function bd(e,t,r){var n,l={},i=null,o=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)Up.call(t,n)&&!Bp.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)l[n]===void 0&&(l[n]=t[n]);return{$$typeof:Ap,type:e,key:i,ref:o,props:l,_owner:Wp.current}}Di.Fragment=bp;Di.jsx=bd;Di.jsxs=bd;_d.exports=Di;var d=_d.exports,Oo={},Ud={exports:{}},et={},Wd={exports:{}},Bd={};/**
|
||
|
|
* @license React
|
||
|
|
* scheduler.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/(function(e){function t(z,B){var $=z.length;z.push(B);e:for(;0<$;){var le=$-1>>>1,ie=z[le];if(0<l(ie,B))z[le]=B,z[$]=ie,$=le;else break e}}function r(z){return z.length===0?null:z[0]}function n(z){if(z.length===0)return null;var B=z[0],$=z.pop();if($!==B){z[0]=$;e:for(var le=0,ie=z.length,ut=ie>>>1;le<ut;){var Ye=2*(le+1)-1,Ie=z[Ye],Oe=Ye+1,rt=z[Oe];if(0>l(Ie,$))Oe<ie&&0>l(rt,Ie)?(z[le]=rt,z[Oe]=$,le=Oe):(z[le]=Ie,z[Ye]=$,le=Ye);else if(Oe<ie&&0>l(rt,$))z[le]=rt,z[Oe]=$,le=Oe;else break e}}return B}function l(z,B){var $=z.sortIndex-B.sortIndex;return $!==0?$:z.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var s=[],u=[],h=1,c=null,p=3,w=!1,k=!1,S=!1,L=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(z){for(var B=r(u);B!==null;){if(B.callback===null)n(u);else if(B.startTime<=z)n(u),B.sortIndex=B.expirationTime,t(s,B);else break;B=r(u)}}function E(z){if(S=!1,v(z),!k)if(r(s)!==null)k=!0,Ft(j);else{var B=r(u);B!==null&&At(E,B.startTime-z)}}function j(z,B){k=!1,S&&(S=!1,m(P),P=-1),w=!0;var $=p;try{for(v(B),c=r(s);c!==null&&(!(c.expirationTime>B)||z&&!V());){var le=c.callback;if(typeof le=="function"){c.callback=null,p=c.priorityLevel;var ie=le(c.expirationTime<=B);B=e.unstable_now(),typeof ie=="function"?c.callback=ie:c===r(s)&&n(s),v(B)}else n(s);c=r(s)}if(c!==null)var ut=!0;else{var Ye=r(u);Ye!==null&&At(E,Ye.startTime-B),ut=!1}return ut}finally{c=null,p=$,w=!1}}var M=!1,y=null,P=-1,W=5,N=-1;function V(){return!(e.unstable_now()-N<W)}function J(){if(y!==null){var z=e.unstable_now();N=z;var B=!0;try{B=y(!0,z)}finally{B?Z():(M=!1,y=null)}}else M=!1}var Z;if(typeof f=="function")Z=function(){f(J)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,Le=te.port2;te.port1.onmessage=J,Z=function(){Le.postMessage(null)}}else Z=function(){L(J,0)};function Ft(z){y=z,M||(M=!0,Z())}function At(z,B){P=L(function(){z(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){k||w||(k=!0,Ft(j))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(s)},e.unstable_next=function(z){switch(p){case 1:case 2:case 3:var B=3;break;default:B=p}var $=p;p=B;try{return z()}finally{p=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,B){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var $=p;p=z;try{return B()}finally{p=$}},e.unstable_scheduleCallback=function(z,B,$){var le=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?le+$:le):$=le,z){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=$+ie,z={id:h++,callback:B,priorityLevel:z,startTime:$,expirationTime:ie,sortIndex:-1},$>le?(z.sortIndex=$,t(u,z),r(s)===null&&z===r(u)&&(S?(m(P),P=-1):S=!0,At(E,$-le))):(z.sortIndex=ie,t(s,z),k||w||(k=!0,Ft(j))),z},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(z){var B=p;return function(){var $=p;p=B;try{return z.apply(this,arguments)}finally{p=$}}}})(Bd);Wd.exports=Bd;var Hp=Wd.exports;/**
|
||
|
|
* @license React
|
||
|
|
* react-dom.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var Vp=R,qe=Hp;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Hd=new Set,Xn={};function Mr(e,t){on(e,t),on(e+"Capture",t)}function on(e,t){for(Xn[e]=t,e=0;e<t.length;e++)Hd.add(t[e])}var Mt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fo=Object.prototype.hasOwnProperty,$p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ks={},Ys={};function Qp(e){return Fo.call(Ys,e)?!0:Fo.call(Ks,e)?!1:$p.test(e)?Ys[e]=!0:(Ks[e]=!0,!1)}function Kp(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Yp(e,t,r,n){if(t===null||typeof t>"u"||Kp(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function We(e,t,r,n,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=l,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Te[e]=new We(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Te[t]=new We(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Te[e]=new We(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Te[e]=new We(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Te[e]=new We(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Te[e]=new We(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Te[e]=new We(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Te[e]=new We(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Te[e]=new We(e,5,!1,e.toLowerCase(),null,!1,!1)});var Oa=/[\-:]([a-z])/g;function Fa(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-
|
||
|
|
`+oo+e}var ao=!1;function so(e,t){if(!e||ao)return"";ao=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var l=u.stack.split(`
|
||
|
|
`),i=n.stack.split(`
|
||
|
|
`),o=l.length-1,a=i.length-1;1<=o&&0<=a&&l[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(l[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||l[o]!==i[a]){var s=`
|
||
|
|
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=a);break}}}finally{ao=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?In(e):""}function Xp(e){switch(e.tag){case 5:return In(e.type);case 16:return In("Lazy");case 13:return In("Suspense");case 19:return In("SuspenseList");case 0:case 2:case 15:return e=so(e.type,!1),e;case 11:return e=so(e.type.render,!1),e;case 1:return e=so(e.type,!0),e;default:return""}}function Wo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Br:return"Fragment";case Wr:return"Portal";case Ao:return"Profiler";case ba:return"StrictMode";case bo:return"Suspense";case Uo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $d:return(e.displayName||"Context")+".Consumer";case Vd:return(e._context.displayName||"Context")+".Provider";case Ua:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wa:return t=e.displayName||null,t!==null?t:Wo(e.type)||"Memo";case Ht:t=e._payload,e=e._init;try{return Wo(e(t))}catch{}}return null}function Gp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Wo(t);case 8:return t===ba?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jp(e){var t=Kd(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var l=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ll(e){e._valueTracker||(e._valueTracker=Jp(e))}function Yd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Kd(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ai(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Bo(e,t){var r=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Gs(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=lr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xd(e,t){t=t.checked,t!=null&&Aa(e,"checked",t,!1)}function Ho(e,t){Xd(e,t);var r=lr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Vo(e,t.type,r):t.hasOwnProperty("defaultValue")&&Vo(e,t.type,lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Js(e,t,r){if(t.hasOwnProperty("val
|
||
|
|
`).replace(am,"")}function Al(e,t,r){if(t=wu(t),wu(e)!==t&&r)throw Error(T(425))}function mi(){}var la=null,ia=null;function oa(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var aa=typeof setTimeout=="function"?setTimeout:void 0,sm=typeof clearTimeout=="function"?clearTimeout:void 0,Su=typeof Promise=="function"?Promise:void 0,um=typeof queueMicrotask=="function"?queueMicrotask:typeof Su<"u"?function(e){return Su.resolve(null).then(e).catch(dm)}:aa;function dm(e){setTimeout(function(){throw e})}function ko(e,t){var r=t,n=0;do{var l=r.nextSibling;if(e.removeChild(r),l&&l.nodeType===8)if(r=l.data,r==="/$"){if(n===0){e.removeChild(l),el(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=l}while(r);el(t)}function qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ku(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var mn=Math.random().toString(36).slice(2),St="__reactFiber$"+mn,il="__reactProps$"+mn,Nt="__reactContainer$"+mn,sa="__reactEvents$"+mn,cm="__reactListeners$"+mn,fm="__reactHandles$"+mn;function xr(e){var t=e[St];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Nt]||r[St]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=ku(e);e!==null;){if(r=e[St])return r;e=ku(e)}return t}e=r,r=e.parentNode}return null}function yl(e){return e=e[St]||e[Nt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function bi(e){return e[il]||null}var ua=[],Kr=-1;function ar(e){return{current:e}}function ue(e){0>Kr||(e.current=ua[Kr],ua[Kr]=null,Kr--)}function ae(e,t){Kr++,ua[Kr]=e.current,e.current=t}var ir={},De=ar(ir),$e=ar(!1),jr=ir;function an(e,t){var r=e.type.contextTypes;if(!r)return ir;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in r)l[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Qe(e){return e=e.childContextTypes,e!=null}function gi(){ue($e),ue(De)}function Cu(e,t,r){if(De.current!==ir)throw Error(T(168));ae(De,t),ae($e,r)}function Fc(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var l in n)if(!(l in t))throw Error(T(108,Gp(e)||"Unknown",l));return he({},r,n)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ir,jr=De.current,ae(De,e),ae($e,$e.current),!0}function Eu(e,t,r){var n=e.stateNode;if(!n)throw Error(T(169));r?(e=Fc(e,t,jr),n.__reactInternalMemoizedMergedChildContext=e,ue($e),ue(De),ae(De,e)):ue($e),ae($e,r)}var Pt=null,Ui=!1,Co=!1;function Ac(e){Pt===null?Pt=[e]:Pt.push(e)}function pm(e){Ui=!0,Ac(e)}function sr(){if(!Co&&Pt!==null){Co=!0;var e=0,t=ne;try{var r=Pt;for(ne=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Pt=null,Ui=!1}catch(l){throw Pt!==null&&(Pt=Pt.slice(e+1)),uc(Ha,sr),l}finally{ne=t,Co=!1}}return null}var Yr=[],Xr=0,yi=null,xi=0,nt=[],lt=0,Rr=null,_t=1,Tt="";function mr(e,t){Yr[Xr++]=xi,Yr[Xr++]=yi,yi=e,xi=t}function bc(e,t,r){nt[lt++]=_t,nt[lt++]=Tt,nt[lt++]=Rr,Rr=e;var n=_t;e=Tt;var l=32-mt(n)-1;n&=~(1<<l),r+=1;var i=32-mt(t)+l;if(30<i){var o=l-l%5;i=(n&(1<<o)-1).toString(32),n>>=o,l-=o,_t=1<<32-mt(t)+l|r<<l|n,Tt=i+e}else _t=1<<i|r<<l|n,Tt=e}function Za(e){e.return!==null&&(mr(e,1),bc(e,1,0))}function qa(e){for(;e===yi;)yi=Yr[--Xr],Yr[Xr]=null,xi=Yr[--Xr],Yr[Xr]=null;for(;e===Rr;)Rr=nt[--lt],nt[lt]=null,Tt=nt[--lt],nt[lt]=null,_t=nt[--lt],nt[lt]=null}var Ze=null,Je=null,ce=!1,ht=null;function Uc(e,t){var r=it(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletio
|
||
|
|
Error generating stack: `+i.message+`
|
||
|
|
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function _o(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ma(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var km=typeof WeakMap=="function"?WeakMap:Map;function hf(e,t,r){r=Lt(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Pi||(Pi=!0,ja=n),ma(e,t)},r}function mf(e,t,r){r=Lt(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var l=t.value;r.payload=function(){return n(l)},r.callback=function(){ma(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){ma(e,t),typeof n!="function"&&(tr===null?tr=new Set([this]):tr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Du(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new km;var l=new Set;n.set(t,l)}else l=n.get(t),l===void 0&&(l=new Set,n.set(t,l));l.has(r)||(l.add(r),e=Om.bind(null,e,t,r),t.then(e,e))}function Iu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ou(e,t,r,n,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Lt(-1,1),t.tag=2,er(r,t,1))),r.lanes|=1),e)}var Cm=Ot.ReactCurrentOwner,Ve=!1;function Ae(e,t,r,n){t.child=e===null?Hc(t,null,r,n):un(t,e.child,r,n)}function Fu(e,t,r,n,l){r=r.render;var i=t.ref;return nn(t,l),n=ds(e,t,r,n,i,l),r=cs(),e!==null&&!Ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,It(e,t,l)):(ce&&r&&Za(t),t.flags|=1,Ae(e,t,n,l),t.child)}function Au(e,t,r,n,l){if(e===null){var i=r.type;return typeof i=="function"&&!Ss(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,gf(e,t,i,n,l)):(e=li(r.type,null,n,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:rl,r(o,n)&&e.ref===t.ref)return It(e,t,l)}return t.flags|=1,e=nr(i,n),e.ref=t.ref,e.return=t,t.child=e}function gf(e,t,r,n,l){if(e!==null){var i=e.memoizedProps;if(rl(i,n)&&e.ref===t.ref)if(Ve=!1,t.pendingProps=n=i,(e.lanes&l)!==0)e.flags&131072&&(Ve=!0);else return t.lanes=e.lanes,It(e,t,l)}return ga(e,t,r,n,l)}function vf(e,t,r){var n=t.pendingProps,l=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(Zr,Xe),Xe|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ae(Zr,Xe),Xe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,ae(Zr,Xe),Xe|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,ae(Zr,Xe),Xe|=n;return Ae(e,t,l,r),t.child}function yf(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function ga(e,t,r,n,l){var i=Qe(r)?jr:De.current;return i=an(t,i),nn(t,l),r=ds(e,t,r,n,i,l),n=cs(),e!==null&&!Ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,It(e,t,l)):(ce&&n&&Za(t),t.flags|=1,Ae(e,t,r,l),t.child)}function bu(e,t,r,n,l){if(Qe(r)){var i=!0;vi(t)}else i=!1;if(nn(t,l),t.stateNode===null)ti(e,t),pf(t,r,n),ha(t,r,n,l),n=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var s=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=at(u):(u=Qe(r)?jr:De.current,u=an(t,u));var h=r.getDerivedStateFromProps,c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||s!==u)&&Nu(t,o,n,u),Vt=!1;var p=t.memoizedState;o.state=p,ki(t,n,o,l),s=t.memoizedState,a!==n||p!==s||$e.current||Vt?(typeof h=="function"&&(pa(t,r,h,n),s=t.memoizedState),(a=Vt||Mu(t,r,a,n,p,s,u))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.
|
||
|
|
* @remix-run/router v1.23.2
|
||
|
|
*
|
||
|
|
* Copyright (c) Remix Software Inc.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*/function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},de.apply(this,arguments)}var we;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(we||(we={}));const qu="popstate";function Xm(e){e===void 0&&(e={});function t(n,l){let{pathname:i,search:o,hash:a}=n.location;return fl("",{pathname:i,search:o,hash:a},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(n,l){return typeof l=="string"?l:zr(l)}return Jm(t,r,null,e)}function K(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Lr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Gm(){return Math.random().toString(36).substr(2,8)}function ed(e,t){return{usr:e.state,key:e.key,idx:t}}function fl(e,t,r,n){return r===void 0&&(r=null),de({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ur(t):t,{state:r,key:t&&t.key||n||Gm()})}function zr(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function ur(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Jm(e,t,r,n){n===void 0&&(n={});let{window:l=document.defaultView,v5Compat:i=!1}=n,o=l.history,a=we.Pop,s=null,u=h();u==null&&(u=0,o.replaceState(de({},o.state,{idx:u}),""));function h(){return(o.state||{idx:null}).idx}function c(){a=we.Pop;let L=h(),m=L==null?null:L-u;u=L,s&&s({action:a,location:S.location,delta:m})}function p(L,m){a=we.Push;let f=fl(S.location,L,m);u=h()+1;let v=ed(f,u),E=S.createHref(f);try{o.pushState(v,"",E)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;l.location.assign(E)}i&&s&&s({action:a,location:S.location,delta:1})}function w(L,m){a=we.Replace;let f=fl(S.location,L,m);u=h();let v=ed(f,u),E=S.createHref(f);o.replaceState(v,"",E),i&&s&&s({action:a,location:S.location,delta:0})}function k(L){let m=l.location.origin!=="null"?l.location.origin:l.location.href,f=typeof L=="string"?L:zr(L);return f=f.replace(/ $/,"%20"),K(m,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,m)}let S={get action(){return a},get location(){return e(l,o)},listen(L){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(qu,c),s=L,()=>{l.removeEventListener(qu,c),s=null}},createHref(L){return t(l,L)},createURL:k,encodeLocation(L){let m=k(L);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:p,replace:w,go(L){return o.go(L)}};return S}var re;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(re||(re={}));const Zm=new Set(["lazy","caseSensitive","path","id","index","children"]);function qm(e){return e.index===!0}function zi(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((l,i)=>{let o=[...r,String(i)],a=typeof l.id=="string"?l.id:o.join("-");if(K(l.index!==!0||!l.children,"Cannot specify children on an index route"),K(!n[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),qm(l)){let s=de({},l,t(l),{id:a});return n[a]=s,s}else{let s=de({},l,t(l),{id:a,children:void 0});return n[a]=s,l.children&&(s.children=zi(l.children,t,o,n)),s}})}function vr(e,t,r){return r===void 0&&(r="/"),ii(e,t,r,!1)}function ii(e,t,r,n){let l=typeof t=="string"?ur(t):t,i=gn(l.pathname||"/",r);if(i==null)return null;let o=Bf(e);tg(o);let a=null;for(let s=0;a==null&&s<o.length;++s){let u=fg(i);a=dg(o[s],u,n)}return a}function eg(e,t){let{route:r,pathname:n,params:l}=e;return{id:r.id,pathname:n,params:l,data:t[r.id],handle:r.handle}}function Bf(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let l=(i,o,a)=>{let s={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};s.relativePath.startsWith("/")&&(K(s.relati
|
||
|
|
`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!pt(o))return l();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return l()}}}K(typeof FormData=="function","FormData is not available in this environment");let s,u;if(n.formData)s=za(n.formData),u=n.formData;else if(n.body instanceof FormData)s=za(n.body),u=n.body;else if(n.body instanceof URLSearchParams)s=n.body,u=dd(s);else if(n.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(n.body),u=dd(s)}catch{return l()}let h={formMethod:o,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(pt(h.formMethod))return{path:r,submission:h};let c=ur(r);return t&&c.search&&Ts(c.search)&&s.append("index",""),c.search="?"+s,{path:zr(c),submission:h}}function id(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(l=>l.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function od(e,t,r,n,l,i,o,a,s,u,h,c,p,w,k,S){let L=S?Ge(S[1])?S[1].error:S[1].data:void 0,m=e.createURL(t.location),f=e.createURL(l),v=r;i&&t.errors?v=id(r,Object.keys(t.errors)[0],!0):S&&Ge(S[1])&&(v=id(r,S[0]));let E=S?S[1].statusCode:void 0,j=o&&E&&E>=400,M=v.filter((P,W)=>{let{route:N}=P;if(N.lazy)return!0;if(N.loader==null)return!1;if(i)return La(N,t.loaderData,t.errors);if(_g(t.loaderData,t.matches[W],P)||s.some(Z=>Z===P.route.id))return!0;let V=t.matches[W],J=P;return ad(P,de({currentUrl:m,currentParams:V.params,nextUrl:f,nextParams:J.params},n,{actionResult:L,actionStatus:E,defaultShouldRevalidate:j?!1:a||m.pathname+m.search===f.pathname+f.search||m.search!==f.search||Kf(V,J)}))}),y=[];return c.forEach((P,W)=>{if(i||!r.some(te=>te.route.id===P.routeId)||h.has(W))return;let N=vr(w,P.path,k);if(!N){y.push({key:W,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let V=t.fetchers.get(W),J=bn(N,P.path),Z=!1;p.has(W)?Z=!1:u.has(W)?(u.delete(W),Z=!0):V&&V.state!=="idle"&&V.data===void 0?Z=a:Z=ad(J,de({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:f,nextParams:r[r.length-1].params},n,{actionResult:L,actionStatus:E,defaultShouldRevalidate:j?!1:a})),Z&&y.push({key:W,routeId:P.routeId,path:P.path,matches:N,match:J,controller:new AbortController})}),[M,y]}function La(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,l=r!=null&&r[e.id]!==void 0;return!n&&l?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!l}function _g(e,t,r){let n=!t||r.route.id!==t.route.id,l=e[r.route.id]===void 0;return n||l}function Kf(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ad(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function sd(e,t,r,n,l){var i;let o;if(e){let u=n[e];K(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),o=u.children}else o=r;let a=t.filter(u=>!o.some(h=>Yf(u,h))),s=zi(a,l,[e||"_","patch",String(((i=o)==null?void 0:i.length)||"0")],n);o.push(...s)}function Yf(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var l;return(l=t.children)==null?void 0:l.some(i=>Yf(r,i))}):!1}async function Tg(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let l=r[e.id];K(l,"No route found in manifest");let i={};for(let o in n){let s=l[o]!==void 0&&o!=="hasErrorBoundary";Lr(!s,'Route "'+l.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!s&&!Zm.has(o)&&(i[o]=n[o])}Object.assign(l,i),Object.assign(l,de({},t(l),{lazy:void
|
||
|
|
* React Router v6.30.3
|
||
|
|
*
|
||
|
|
* Copyright (c) Remix Software Inc.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*/function Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ni.apply(this,arguments)}const Zi=R.createContext(null),Jf=R.createContext(null),dr=R.createContext(null),Ls=R.createContext(null),cr=R.createContext({outlet:null,matches:[],isDataRoute:!1}),Zf=R.createContext(null);function Qg(e,t){let{relative:r}=t===void 0?{}:t;vn()||K(!1);let{basename:n,navigator:l}=R.useContext(dr),{hash:i,pathname:o,search:a}=ep(e,{relative:r}),s=o;return n!=="/"&&(s=o==="/"?n:zt([n,o])),l.createHref({pathname:s,search:a,hash:i})}function vn(){return R.useContext(Ls)!=null}function wl(){return vn()||K(!1),R.useContext(Ls).location}function qf(e){R.useContext(dr).static||R.useLayoutEffect(e)}function Dr(){let{isDataRoute:e}=R.useContext(cr);return e?lv():Kg()}function Kg(){vn()||K(!1);let e=R.useContext(Zi),{basename:t,future:r,navigator:n}=R.useContext(dr),{matches:l}=R.useContext(cr),{pathname:i}=wl(),o=JSON.stringify(Gi(l,r.v7_relativeSplatPath)),a=R.useRef(!1);return qf(()=>{a.current=!0}),R.useCallback(function(u,h){if(h===void 0&&(h={}),!a.current)return;if(typeof u=="number"){n.go(u);return}let c=Ji(u,JSON.parse(o),i,h.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:zt([t,c.pathname])),(h.replace?n.replace:n.push)(c,h.state,h)},[t,n,o,i,e])}function ep(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=R.useContext(dr),{matches:l}=R.useContext(cr),{pathname:i}=wl(),o=JSON.stringify(Gi(l,n.v7_relativeSplatPath));return R.useMemo(()=>Ji(e,JSON.parse(o),i,r==="path"),[e,o,i,r])}function Yg(e,t,r,n){vn()||K(!1);let{navigator:l}=R.useContext(dr),{matches:i}=R.useContext(cr),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let u=wl(),h;h=u;let c=h.pathname||"/",p=c;if(s!=="/"){let S=s.replace(/^\//,"").split("/");p="/"+c.replace(/^\//,"").split("/").slice(S.length).join("/")}let w=vr(e,{pathname:p});return qg(w&&w.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:zt([s,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?s:zt([s,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,r,n)}function Xg(){let e=nv(),t=pl(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),r?R.createElement("pre",{style:l},r):null,null)}const Gg=R.createElement(Xg,null);class Jg extends R.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?R.createElement(cr.Provider,{value:this.props.routeContext},R.createElement(Zf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Zg(e){let{routeContext:t,match:r,children:n}=e,l=R.useContext(Zi);return l&&l.static&&l.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=r.route.id),R.createElement(cr.Provider,{value:t},n)}function qg(e,t,r,n){var l;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,a=(l=r)==null?void 0:l.errors;if(a!=null){let h=o.fi
|
||
|
|
* React Router DOM v6.30.3
|
||
|
|
*
|
||
|
|
* Copyright (c) Remix Software Inc.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*/function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hl.apply(this,arguments)}function dv(e,t){if(e==null)return{};var r={},n=Object.keys(e),l,i;for(i=0;i<n.length;i++)l=n[i],!(t.indexOf(l)>=0)&&(r[l]=e[l]);return r}function cv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fv(e,t){return e.button===0&&(!t||t==="_self")&&!cv(e)}const pv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],hv="6";try{window.__reactRouterVersion=hv}catch{}function mv(e,t){return Rg({basename:void 0,future:hl({},void 0,{v7_prependBasename:!0}),history:Xm({window:void 0}),hydrationData:gv(),routes:e,mapRouteProperties:uv,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function gv(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=hl({},t,{errors:vv(t.errors)})),t}function vv(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,l]of t)if(l&&l.__type==="RouteErrorResponse")r[n]=new Mi(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let i=window[l.__subType];if(typeof i=="function")try{let o=new i(l.message);o.stack="",r[n]=o}catch{}}if(r[n]==null){let i=new Error(l.message);i.stack="",r[n]=i}}else r[n]=l;return r}const yv=R.createContext({isTransitioning:!1}),xv=R.createContext(new Map),wv="startTransition",yd=Op[wv],Sv="flushSync",xd=Ym[Sv];function kv(e){yd?yd(e):e()}function Mn(e){xd?xd(e):e()}class Cv{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function Ev(e){let{fallbackElement:t,router:r,future:n}=e,[l,i]=R.useState(r.state),[o,a]=R.useState(),[s,u]=R.useState({isTransitioning:!1}),[h,c]=R.useState(),[p,w]=R.useState(),[k,S]=R.useState(),L=R.useRef(new Map),{v7_startTransition:m}=n||{},f=R.useCallback(P=>{m?kv(P):P()},[m]),v=R.useCallback((P,W)=>{let{deletedFetchers:N,flushSync:V,viewTransitionOpts:J}=W;P.fetchers.forEach((te,Le)=>{te.data!==void 0&&L.current.set(Le,te.data)}),N.forEach(te=>L.current.delete(te));let Z=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!J||Z){V?Mn(()=>i(P)):f(()=>i(P));return}if(V){Mn(()=>{p&&(h&&h.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:J.currentLocation,nextLocation:J.nextLocation})});let te=r.window.document.startViewTransition(()=>{Mn(()=>i(P))});te.finished.finally(()=>{Mn(()=>{c(void 0),w(void 0),a(void 0),u({isTransitioning:!1})})}),Mn(()=>w(te));return}p?(h&&h.resolve(),p.skipTransition(),S({state:P,currentLocation:J.currentLocation,nextLocation:J.nextLocation})):(a(P),u({isTransitioning:!0,flushSync:!1,currentLocation:J.currentLocation,nextLocation:J.nextLocation}))},[r.window,p,h,L,f]);R.useLayoutEffect(()=>r.subscribe(v),[r,v]),R.useEffect(()=>{s.isTransitioning&&!s.flushSync&&c(new Cv)},[s]),R.useEffect(()=>{if(h&&o&&r.window){let P=o,W=h.promise,N=r.window.document.startViewTransition(async()=>{f(()=>i(P)),await W});N.finished.finally(()=>{c(void 0),w(void 0),a(void 0),u({isTransitioning:!1})}),w(N)}},[f,o,h,r.window]),R.useEffect(()=>{h&&o&&l.location.key===o.location.key&&h.resolve()},[h,p,l.location,o]),R.useEffect(()=>{!s.isTransitioning&&k&&(a(k.state),u({isTransitioning:!0,flushSync:!1,currentLocation:k.currentLocation,nextLocation:k.nextLocation}),S(void 0))},[s.isTransitioning,k]),R.useEffect(()=>{},[]);let E=R.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:P=>r.navigate(P),push:(P,W,N)=>r.navigate(P,{state:W,preventScrollReset:N==null?void 0:N.preventScrollReset}),replace:(P,W,N)=>r.navigate(P,{replace:!0,state:W,preventScrollReset:N==null?void 0:N.preventScrollReset})}),[r]),j=r.basename||"/",M=R.useMemo(()=>({router:r,navigator:E,static:!1,basename
|