142 lines
277 KiB
JavaScript
142 lines
277 KiB
JavaScript
|
|
function Wh(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mc={exports:{}},Oo={},Uc={exports:{}},z={};/**
|
||
|
|
* @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 Jr=Symbol.for("react.element"),Kh=Symbol.for("react.portal"),Xh=Symbol.for("react.fragment"),Jh=Symbol.for("react.strict_mode"),Gh=Symbol.for("react.profiler"),Yh=Symbol.for("react.provider"),Zh=Symbol.for("react.context"),ep=Symbol.for("react.forward_ref"),tp=Symbol.for("react.suspense"),np=Symbol.for("react.memo"),rp=Symbol.for("react.lazy"),$u=Symbol.iterator;function ip(e){return e===null||typeof e!="object"?null:(e=$u&&e[$u]||e["@@iterator"],typeof e=="function"?e:null)}var zc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bc=Object.assign,Bc={};function Jn(e,t,n){this.props=e,this.context=t,this.refs=Bc,this.updater=n||zc}Jn.prototype.isReactComponent={};Jn.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")};Jn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $c(){}$c.prototype=Jn.prototype;function Al(e,t,n){this.props=e,this.context=t,this.refs=Bc,this.updater=n||zc}var Dl=Al.prototype=new $c;Dl.constructor=Al;bc(Dl,Jn.prototype);Dl.isPureReactComponent=!0;var Qu=Array.isArray,Qc=Object.prototype.hasOwnProperty,Il={current:null},Hc={key:!0,ref:!0,__self:!0,__source:!0};function qc(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Qc.call(t,r)&&!Hc.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var u=Array(l),a=0;a<l;a++)u[a]=arguments[a+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Jr,type:e,key:o,ref:s,props:i,_owner:Il.current}}function op(e,t){return{$$typeof:Jr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ml(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jr}function sp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Hu=/\/+/g;function Go(e,t){return typeof e=="object"&&e!==null&&e.key!=null?sp(""+e.key):t.toString(36)}function Oi(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Jr:case Kh:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Go(s,0):r,Qu(i)?(n="",e!=null&&(n=e.replace(Hu,"$&/")+"/"),Oi(i,t,n,"",function(a){return a})):i!=null&&(Ml(i)&&(i=op(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Hu,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Qu(e))for(var l=0;l<e.length;l++){o=e[l];var u=r+Go(o,l);s+=Oi(o,t,n,u,i)}else if(u=ip(e),typeof u=="function")for(e=u.call(e),l=0;!(o=e.next()).done;)o=o.value,u=r+Go(o,l++),s+=Oi(o,t,n,u,i);else if(o==="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 s}function ai(e,t,n){if(e==null)return e;var r=[],i=0;return Oi(e,r,"","",function(o){return t.call(n,o,i++)}),r}function lp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Oe={current:null},Pi={transition:null},up={ReactCurrentDispatcher:Oe,ReactCurrentBatchConfig:Pi,ReactCurrentOwner:Il};function Vc(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:ai,forEach:function(e,t,n){ai(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ai(e,function(){t++}),t},toArray:function(e){return ai(e,function(t){return t})||[]},only:function(e){if(!Ml(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 cp=O,fp=Symbol.for("react.element"),dp=Symbol.for("react.fragment"),hp=Object.prototype.hasOwnProperty,pp=cp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mp={key:!0,ref:!0,__self:!0,__source:!0};function Wc(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)hp.call(t,r)&&!mp.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:fp,type:e,key:o,ref:s,props:i,_owner:pp.current}}Oo.Fragment=dp;Oo.jsx=Wc;Oo.jsxs=Wc;Mc.exports=Oo;var p=Mc.exports,Ps={},Kc={exports:{}},Qe={},Xc={exports:{}},Jc={};/**
|
||
|
|
* @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(j,F){var A=j.length;j.push(F);e:for(;0<A;){var I=A-1>>>1,H=j[I];if(0<i(H,F))j[I]=F,j[A]=H,A=I;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var F=j[0],A=j.pop();if(A!==F){j[0]=A;e:for(var I=0,H=j.length,Ge=H>>>1;I<Ge;){var Me=2*(I+1)-1,wn=j[Me],b=Me+1,de=j[b];if(0>i(wn,A))b<H&&0>i(de,wn)?(j[I]=de,j[b]=A,I=b):(j[I]=wn,j[Me]=A,I=Me);else if(b<H&&0>i(de,A))j[I]=de,j[b]=A,I=b;else break e}}return F}function i(j,F){var A=j.sortIndex-F.sortIndex;return A!==0?A:j.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],a=[],c=1,f=null,v=3,g=!1,x=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(j){for(var F=n(a);F!==null;){if(F.callback===null)r(a);else if(F.startTime<=j)r(a),F.sortIndex=F.expirationTime,t(u,F);else break;F=n(a)}}function S(j){if(y=!1,m(j),!x)if(n(u)!==null)x=!0,oe(k);else{var F=n(a);F!==null&&Ie(S,F.startTime-j)}}function k(j,F){x=!1,y&&(y=!1,d(P),P=-1),g=!0;var A=v;try{for(m(F),f=n(u);f!==null&&(!(f.expirationTime>F)||j&&!q());){var I=f.callback;if(typeof I=="function"){f.callback=null,v=f.priorityLevel;var H=I(f.expirationTime<=F);F=e.unstable_now(),typeof H=="function"?f.callback=H:f===n(u)&&r(u),m(F)}else r(u);f=n(u)}if(f!==null)var Ge=!0;else{var Me=n(a);Me!==null&&Ie(S,Me.startTime-F),Ge=!1}return Ge}finally{f=null,v=A,g=!1}}var E=!1,R=null,P=-1,D=5,L=-1;function q(){return!(e.unstable_now()-L<D)}function ae(){if(R!==null){var j=e.unstable_now();L=j;var F=!0;try{F=R(!0,j)}finally{F?ge():(E=!1,R=null)}}else E=!1}var ge;if(typeof h=="function")ge=function(){h(ae)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,De=ee.port2;ee.port1.onmessage=ae,ge=function(){De.postMessage(null)}}else ge=function(){C(ae,0)};function oe(j){R=j,E||(E=!0,ge())}function Ie(j,F){P=C(function(){j(e.unstable_now())},F)}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(j){j.callback=null},e.unstable_continueExecution=function(){x||g||(x=!0,oe(k))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(j){switch(v){case 1:case 2:case 3:var F=3;break;default:F=v}var A=v;v=F;try{return j()}finally{v=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,F){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var A=v;v=j;try{return F()}finally{v=A}},e.unstable_scheduleCallback=function(j,F,A){var I=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?I+A:I):A=I,j){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=A+H,j={id:c++,callback:F,priorityLevel:j,startTime:A,expirationTime:H,sortIndex:-1},A>I?(j.sortIndex=A,t(a,j),n(u)===null&&j===n(a)&&(y?(d(P),P=-1):y=!0,Ie(S,A-I))):(j.sortIndex=H,t(u,j),x||g||(x=!0,oe(k))),j},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(j){var F=v;return function(){var A=v;v=F;try{return j.apply(this,arguments)}finally{v=A}}}})(Jc);Xc.exports=Jc;var vp=Xc.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 yp=O,$e=vp;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 Gc=new Set,Nr={};function vn(e,t){bn(e,t),bn(e+"Capture",t)}function bn(e,t){for(Nr[e]=t,e=0;e<t.length;e++)Gc.add(t[e])}var xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),js=Object.prototype.hasOwnProperty,gp=/^[: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]*$/,qu={},Vu={};function wp(e){return js.call(Vu,e)?!0:js.call(qu,e)?!1:gp.test(e)?Vu[e]=!0:(qu[e]=!0,!1)}function xp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Sp(e,t,n,r){if(t===null||typeof t>"u"||xp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 Pe(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ye[e]=new Pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ye[t]=new Pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ye[e]=new Pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ye[e]=new Pe(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){ye[e]=new Pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ye[e]=new Pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ye[e]=new Pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ye[e]=new Pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ye[e]=new Pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ul=/[\-:]([a-z])/g;function zl(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-
|
||
|
|
`+Yo+e}var Zo=!1;function es(e,t){if(!e||Zo)return"";Zo=!0;var n=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(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split(`
|
||
|
|
`),o=r.stack.split(`
|
||
|
|
`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var u=`
|
||
|
|
`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Zo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function Ep(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=es(e.type,!1),e;case 11:return e=es(e.type.render,!1),e;case 1:return e=es(e.type,!0),e;default:return""}}function Fs(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 Cn:return"Fragment";case En:return"Portal";case Ns:return"Profiler";case Bl:return"StrictMode";case Ts:return"Suspense";case Ls:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zc:return(e.displayName||"Context")+".Consumer";case Yc:return(e._context.displayName||"Context")+".Provider";case $l:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ql:return t=e.displayName||null,t!==null?t:Fs(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return Fs(e(t))}catch{}}return null}function Cp(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 Fs(t);case 8:return t===Bl?"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 Ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kp(e){var t=tf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fi(e){e._valueTracker||(e._valueTracker=kp(e))}function nf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function qi(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 As(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ku(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ht(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rf(e,t){t=t.checked,t!=null&&bl(e,"checked",t,!1)}function Ds(e,t){rf(e,t);var n=Ht(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Is(e,t.type,n):t.hasOwnProperty("defaultValue")&&Is(e,t.type,Ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xu(e,t,n){if(t.hasOwnProperty("valu
|
||
|
|
`).replace(Am,"")}function wi(e,t,n){if(t=ga(t),ga(e)!==t&&n)throw Error(_(425))}function Zi(){}var Js=null,Gs=null;function Ys(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 Zs=typeof setTimeout=="function"?setTimeout:void 0,Dm=typeof clearTimeout=="function"?clearTimeout:void 0,wa=typeof Promise=="function"?Promise:void 0,Im=typeof queueMicrotask=="function"?queueMicrotask:typeof wa<"u"?function(e){return wa.resolve(null).then(e).catch(Mm)}:Zs;function Mm(e){setTimeout(function(){throw e})}function hs(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Dr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Dr(t)}function Ut(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 xa(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Yn=Math.random().toString(36).slice(2),ct="__reactFiber$"+Yn,br="__reactProps$"+Yn,St="__reactContainer$"+Yn,el="__reactEvents$"+Yn,Um="__reactListeners$"+Yn,zm="__reactHandles$"+Yn;function en(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[St]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xa(e);e!==null;){if(n=e[ct])return n;e=xa(e)}return t}e=n,n=e.parentNode}return null}function Zr(e){return e=e[ct]||e[St],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function On(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function Lo(e){return e[br]||null}var tl=[],Pn=-1;function Wt(e){return{current:e}}function K(e){0>Pn||(e.current=tl[Pn],tl[Pn]=null,Pn--)}function V(e,t){Pn++,tl[Pn]=e.current,e.current=t}var qt={},ke=Wt(qt),Te=Wt(!1),an=qt;function Bn(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Le(e){return e=e.childContextTypes,e!=null}function eo(){K(Te),K(ke)}function Sa(e,t,n){if(ke.current!==qt)throw Error(_(168));V(ke,t),V(Te,n)}function Vf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(_(108,Cp(e)||"Unknown",i));return Z({},n,r)}function to(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,an=ke.current,V(ke,e),V(Te,Te.current),!0}function Ea(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Vf(e,t,an),r.__reactInternalMemoizedMergedChildContext=e,K(Te),K(ke),V(ke,e)):K(Te),V(Te,n)}var vt=null,Fo=!1,ps=!1;function Wf(e){vt===null?vt=[e]:vt.push(e)}function bm(e){Fo=!0,Wf(e)}function Kt(){if(!ps&&vt!==null){ps=!0;var e=0,t=Q;try{var n=vt;for(Q=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}vt=null,Fo=!1}catch(i){throw vt!==null&&(vt=vt.slice(e+1)),gf(ql,Kt),i}finally{Q=t,ps=!1}}return null}var jn=[],Nn=0,no=null,ro=0,qe=[],Ve=0,cn=null,yt=1,gt="";function Gt(e,t){jn[Nn++]=ro,jn[Nn++]=no,no=e,ro=t}function Kf(e,t,n){qe[Ve++]=yt,qe[Ve++]=gt,qe[Ve++]=cn,cn=e;var r=yt;e=gt;var i=32-nt(r)-1;r&=~(1<<i),n+=1;var o=32-nt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,yt=1<<32-nt(t)+i|n<<i|r,gt=o+e}else yt=1<<o|n<<i|r,gt=e}function eu(e){e.return!==null&&(Gt(e,1),Kf(e,1,0))}function tu(e){for(;e===no;)no=jn[--Nn],jn[Nn]=null,ro=jn[--Nn],jn[Nn]=null;for(;e===cn;)cn=qe[--Ve],qe[Ve]=null,gt=qe[--Ve],qe[Ve]=null,yt=qe[--Ve],qe[Ve]=null}var Be=null,be=null,J=!1,tt=null;function Xf(e,t){var n=We(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.del
|
||
|
|
Error generating stack: `+o.message+`
|
||
|
|
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function ws(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ll(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Xm=typeof WeakMap=="function"?WeakMap:Map;function Ed(e,t,n){n=wt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fo||(fo=!0,yl=r),ll(e,t)},n}function Cd(e,t,n){n=wt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ll(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ll(e,t),typeof r!="function"&&(bt===null?bt=new Set([this]):bt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function La(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xm;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=av.bind(null,e,t,n),t.then(e,e))}function Fa(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 Aa(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=wt(-1,1),t.tag=2,zt(n,t,1))),n.lanes|=1),e)}var Jm=kt.ReactCurrentOwner,Ne=!1;function Re(e,t,n,r){t.child=e===null?Yf(t,null,n,r):Qn(t,e.child,n,r)}function Da(e,t,n,r,i){n=n.render;var o=t.ref;return Un(t,i),r=du(e,t,n,r,o,i),n=hu(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ct(e,t,i)):(J&&n&&eu(t),t.flags|=1,Re(e,t,r,i),t.child)}function Ia(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Cu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,kd(e,t,o,r,i)):(e=Ui(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Mr,n(s,r)&&e.ref===t.ref)return Ct(e,t,i)}return t.flags|=1,e=$t(o,r),e.ref=t.ref,e.return=t,t.child=e}function kd(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Mr(o,r)&&e.ref===t.ref)if(Ne=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ne=!0);else return t.lanes=e.lanes,Ct(e,t,i)}return ul(e,t,n,r,i)}function Rd(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},V(Fn,ze),ze|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,V(Fn,ze),ze|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,V(Fn,ze),ze|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,V(Fn,ze),ze|=r;return Re(e,t,i,n),t.child}function _d(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ul(e,t,n,r,i){var o=Le(n)?an:ke.current;return o=Bn(t,o),Un(t,i),n=du(e,t,n,r,o,i),r=hu(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ct(e,t,i)):(J&&r&&eu(t),t.flags|=1,Re(e,t,n,i),t.child)}function Ma(e,t,n,r,i){if(Le(n)){var o=!0;to(t)}else o=!1;if(Un(t,i),t.stateNode===null)Di(e,t),Sd(t,n,r),sl(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,a=n.contextType;typeof a=="object"&&a!==null?a=Xe(a):(a=Le(n)?an:ke.current,a=Bn(t,a));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==a)&&Ta(t,s,r,a),Pt=!1;var v=t.memoizedState;s.state=v,so(t,r,s,i),u=t.memoizedState,l!==r||v!==u||Te.current||Pt?(typeof c=="function"&&(ol(t,n,c,r),u=t.memoizedState),(l=Pt||Na(t,n,l,r,v,u,a))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.compon
|
||
|
|
* @remix-run/router v1.23.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 Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wr.apply(null,arguments)}var At;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(At||(At={}));const oc="popstate";function Jv(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:l}=r.location;return _l("",{pathname:o,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Eo(i)}return Yv(t,n,null,e)}function ne(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Gv(){return Math.random().toString(36).substr(2,8)}function sc(e,t){return{usr:e.state,key:e.key,idx:t}}function _l(e,t,n,r){return n===void 0&&(n=null),Wr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?tr(t):t,{state:n,key:t&&t.key||r||Gv()})}function Eo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function tr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Yv(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=At.Pop,u=null,a=c();a==null&&(a=0,s.replaceState(Wr({},s.state,{idx:a}),""));function c(){return(s.state||{idx:null}).idx}function f(){l=At.Pop;let C=c(),d=C==null?null:C-a;a=C,u&&u({action:l,location:y.location,delta:d})}function v(C,d){l=At.Push;let h=_l(y.location,C,d);a=c()+1;let m=sc(h,a),S=y.createHref(h);try{s.pushState(m,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(S)}o&&u&&u({action:l,location:y.location,delta:1})}function g(C,d){l=At.Replace;let h=_l(y.location,C,d);a=c();let m=sc(h,a),S=y.createHref(h);s.replaceState(m,"",S),o&&u&&u({action:l,location:y.location,delta:0})}function x(C){let d=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof C=="string"?C:Eo(C);return h=h.replace(/ $/,"%20"),ne(d,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,d)}let y={get action(){return l},get location(){return e(i,s)},listen(C){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(oc,f),u=C,()=>{i.removeEventListener(oc,f),u=null}},createHref(C){return t(i,C)},createURL:x,encodeLocation(C){let d=x(C);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:v,replace:g,go(C){return s.go(C)}};return y}var lc;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lc||(lc={}));function Zv(e,t,n){return n===void 0&&(n="/"),ey(e,t,n)}function ey(e,t,n,r){let i=typeof t=="string"?tr(t):t,o=Wn(i.pathname||"/",n);if(o==null)return null;let s=lh(e);ty(s);let l=null,u=dy(o);for(let a=0;l==null&&a<s.length;++a)l=cy(s[a],u);return l}function lh(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,l)=>{let u={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};u.relativePath.startsWith("/")&&(ne(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let a=Qt([r,u.relativePath]),c=n.concat(u);o.children&&o.children.length>0&&(ne(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),lh(o.children,t,c,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:uy(a,o.index),routesMeta:c})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let u of uh(o.path))i(o,s,u)}),t}function uh(e){let t=e.split("/");if(t.length===0)return[];let[
|
||
|
|
* React Router v6.30.4
|
||
|
|
*
|
||
|
|
* 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 Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kr.apply(null,arguments)}const Ho=O.createContext(null),hh=O.createContext(null),Xt=O.createContext(null),qo=O.createContext(null),gn=O.createContext({outlet:null,matches:[],isDataRoute:!1}),ph=O.createContext(null);function Ey(e,t){let{relative:n}=t===void 0?{}:t;ni()||ne(!1);let{basename:r,navigator:i}=O.useContext(Xt),{hash:o,pathname:s,search:l}=Vo(e,{relative:n}),u=s;return r!=="/"&&(u=s==="/"?r:Qt([r,s])),i.createHref({pathname:u,search:l,hash:o})}function ni(){return O.useContext(qo)!=null}function ri(){return ni()||ne(!1),O.useContext(qo).location}function mh(e){O.useContext(Xt).static||O.useLayoutEffect(e)}function Cy(){let{isDataRoute:e}=O.useContext(gn);return e?Iy():ky()}function ky(){ni()||ne(!1);let e=O.useContext(Ho),{basename:t,future:n,navigator:r}=O.useContext(Xt),{matches:i}=O.useContext(gn),{pathname:o}=ri(),s=JSON.stringify(ah(i,n.v7_relativeSplatPath)),l=O.useRef(!1);return mh(()=>{l.current=!0}),O.useCallback(function(a,c){if(c===void 0&&(c={}),!l.current)return;if(typeof a=="number"){r.go(a);return}let f=ch(a,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Qt([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,s,o,e])}function Vo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(Xt),{matches:i}=O.useContext(gn),{pathname:o}=ri(),s=JSON.stringify(ah(i,r.v7_relativeSplatPath));return O.useMemo(()=>ch(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function Ry(e,t){return _y(e,t)}function _y(e,t,n,r){ni()||ne(!1);let{navigator:i}=O.useContext(Xt),{matches:o}=O.useContext(gn),s=o[o.length-1],l=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let a=ri(),c;if(t){var f;let C=typeof t=="string"?tr(t):t;u==="/"||(f=C.pathname)!=null&&f.startsWith(u)||ne(!1),c=C}else c=a;let v=c.pathname||"/",g=v;if(u!=="/"){let C=u.replace(/^\//,"").split("/");g="/"+v.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=Zv(e,{pathname:g}),y=Ty(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:Qt([u,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Qt([u,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&y?O.createElement(qo.Provider,{value:{location:Kr({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:At.Pop}},y):y}function Oy(){let e=Dy(),t=xy(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:i},n):null,null)}const Py=O.createElement(Oy,null);class jy extends O.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?O.createElement(gn.Provider,{value:this.props.routeContext},O.createElement(ph.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ny(e){let{routeContext:t,match:n,children:r}=e,i=O.useContext(Ho);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(gn.Provider,{value:t},r)}function Ty(e,t,n,r){var i;if(t===void 0&&(t=[]),n==
|
||
|
|
* React Router DOM v6.30.4
|
||
|
|
*
|
||
|
|
* 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 Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Co.apply(null,arguments)}function wh(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function By(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $y(e,t){return e.button===0&&(!t||t==="_self")&&!By(e)}const Qy=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Hy=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],qy="6";try{window.__reactRouterVersion=qy}catch{}const Vy=O.createContext({isTransitioning:!1}),Wy="startTransition",fc=ap[Wy];function Ky(e){let{basename:t,children:n,future:r,window:i}=e,o=O.useRef();o.current==null&&(o.current=Jv({window:i,v5Compat:!0}));let s=o.current,[l,u]=O.useState({action:s.action,location:s.location}),{v7_startTransition:a}=r||{},c=O.useCallback(f=>{a&&fc?fc(()=>u(f)):u(f)},[u,a]);return O.useLayoutEffect(()=>s.listen(c),[s,c]),O.useEffect(()=>Uy(r),[r]),O.createElement(zy,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const Xy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Jy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gy=O.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:l,target:u,to:a,preventScrollReset:c,viewTransition:f}=t,v=wh(t,Qy),{basename:g}=O.useContext(Xt),x,y=!1;if(typeof a=="string"&&Jy.test(a)&&(x=a,Xy))try{let m=new URL(window.location.href),S=a.startsWith("//")?new URL(m.protocol+a):new URL(a),k=Wn(S.pathname,g);S.origin===m.origin&&k!=null?a=k+S.search+S.hash:y=!0}catch{}let C=Ey(a,{relative:i}),d=Zy(a,{replace:s,state:l,target:u,preventScrollReset:c,relative:i,viewTransition:f});function h(m){r&&r(m),m.defaultPrevented||d(m)}return O.createElement("a",Co({},v,{href:x||C,onClick:y||o?r:h,ref:n,target:u}))}),dc=O.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:l,to:u,viewTransition:a,children:c}=t,f=wh(t,Hy),v=Vo(u,{relative:f.relative}),g=ri(),x=O.useContext(hh),{navigator:y,basename:C}=O.useContext(Xt),d=x!=null&&eg(v)&&a===!0,h=y.encodeLocation?y.encodeLocation(v).pathname:v.pathname,m=g.pathname,S=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(m=m.toLowerCase(),S=S?S.toLowerCase():null,h=h.toLowerCase()),S&&C&&(S=Wn(S,C)||S);const k=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let E=m===h||!s&&m.startsWith(h)&&m.charAt(k)==="/",R=S!=null&&(S===h||!s&&S.startsWith(h)&&S.charAt(h.length)==="/"),P={isActive:E,isPending:R,isTransitioning:d},D=E?r:void 0,L;typeof o=="function"?L=o(P):L=[o,E?"active":null,R?"pending":null,d?"transitioning":null].filter(Boolean).join(" ");let q=typeof l=="function"?l(P):l;return O.createElement(Gy,Co({},f,{"aria-current":D,className:L,ref:n,style:q,to:u,viewTransition:a}),typeof c=="function"?c(P):c)});var jl;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(jl||(jl={}));var hc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(hc||(hc={}));function Yy(e){let t=O.useContext(Ho);return t||ne(!1),t}function Zy(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:l}=t===void 0?{}:t,u=Cy(),a=ri(),c=Vo(e,{relative:s});return O.useCallback(f=>{if($y(f,n)){f.preventDefault();let v=r!==void 0?r:Eo(a)===Eo(c);u(e,{replace:v,state:i,preventScrollReset:o,relative:s,viewTransition:l})}},[a,u,c,r,i,n,e,o,s,l])}function eg(e,t){t===void 0&&(t={});let n=O.useContext(Vy);n==null&&ne(!1);let{basename:r}=Yy(jl.useViewTransitionState),i=Vo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Wn(n.currentLocation.pathname,r)||n.curre
|
||
|
|
* @license lucide-react v0.294.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/var tg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
|
|
* @license lucide-react v0.294.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const ng=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),st=(e,t)=>{const n=O.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:l="",children:u,...a},c)=>O.createElement("svg",{ref:c,...tg,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:["lucide",`lucide-${ng(e)}`,l].join(" "),...a},[...t.map(([f,v])=>O.createElement(f,v)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/**
|
||
|
|
* @license lucide-react v0.294.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const pc=st("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
||
|
|
* @license lucide-react v0.294.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const rg=st("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
|
||
|
|
* @license lucide-react v0.294.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const ig=st("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||
|
|
* @license lucide-react v0.294.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const og=st("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/**
|
||
|
|
* @license lucide-react v0.294.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const sg=st("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
||
|
|
* @license lucide-react v0.294.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const lg=st("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/**
|
||
|
|
* @license lucide-react v0.294.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const ug=st("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
||
|
|
* @license lucide-react v0.294.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const ag=st("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
||
|
|
* @license lucide-react v0.294.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const cg=st("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
|
||
|
|
* @license lucide-react v0.294.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const fg=st("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
||
|
|
* @license lucide-react v0.294.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const dg=st("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function hg({children:e}){const[t,n]=O.useState(!1),r=[{to:"/",icon:ug,label:"Översikt"},{to:"/finance",icon:lg,label:"Ekonomi"},{to:"/quixzoom",icon:rg,label:"quiXzoom"},{to:"/support",icon:og,label:"Support"},{to:"/apis",icon:cg,label:"API:er"},{to:"/systems",icon:fg,label:"System"}];return p.jsxs("div",{style:{minHeight:"100vh",display:"flex",flexDirection:"column"},children:[p.jsxs("header",{style:{background:"var(--navy)",color:"white",padding:"16px 20px",position:"sticky",top:0,zIndex:100,display:"flex",alignItems:"center",gap:12},children:[p.jsx("div",{style:{width:36,height:36,borderRadius:10,background:"var(--amber)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:18},children:"🔁"}),p.jsx("h1",{style:{fontSize:"1.1rem",fontWeight:700,flex:1,margin:0},children:"AAMOS Command Center"}),p.jsx("button",{onClick:()=>n(!t),style:{background:"none",border:"none",color:"white",cursor:"pointer"},children:t?p.jsx(dg,{size:24}):p.jsx(ag,{size:24})})]}),p.jsx("nav",{style:{display:"flex",gap:8,padding:"12px 16px",overflowX:"auto",background:"white",borderBottom:"1px solid var(--border)",WebkitOverflowScrolling:"touch"},children:r.map(i=>p.jsxs(dc,{to:i.to,style:({isActive:o})=>({whiteSpace:"nowrap",padding:"8px 16px",borderRadius:20,border:"1px solid var(--border)",background:o?"var(--navy)":"white",color:o?"white":"var(--navy)",fontSize:"0.88rem",fontWeight:500,textDecoration:"none",display:"flex",alignItems:"center",gap:6}),children:[p.jsx(i.icon,{size:16}),i.label]},i.to))}),p.jsx("main",{style:{flex:1,padding:16,paddingBottom:80},children:e}),p.jsx("nav",{style:{position:"fixed",bottom:0,left:0,right:0,background:"white",borderTop:"1px solid var(--border)",display:"flex",justifyContent:"space-around",padding:"8px 0",zIndex:100},children:r.slice(0,4).map(i=>p.jsxs(dc,{to:i.to,style:({isActive:o})=>({background:"none",border:"none",fontSize:"0.7rem",color:o?"var(--navy)":"var(--muted)",display:"flex",flexDirection:"column",alignItems:"center",gap:3,textDecoration:"none",padding:"4px 12px"}),children:[p.jsx(i.icon,{size:20}),i.label]},i.to))})]})}function xh(e,t){return function(){return e.apply(t,arguments)}}const{toString:pg}=Object.prototype,{getPrototypeOf:Kn}=Object,{iterator:ii,toStringTag:Sh}=Symbol,ko=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xr=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),ko(n,t))return!0;n=Kn(n)}return!1},mg=(e,t)=>e!=null&&Xr(e,t)?e[t]:void 0,Tu=(e=>t=>{const n=pg.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>Tu(t)===e),Wo=e=>t=>typeof t===e,{isArray:pn}=Array,Xn=Wo("undefined");function nr(e){return e!==null&&!Xn(e)&&e.constructor!==null&&!Xn(e.constructor)&&Ae(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Eh=lt("ArrayBuffer");function vg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Eh(e.buffer),t}const yg=Wo("string"),Ae=Wo("function"),Ch=Wo("number"),rr=e=>e!==null&&typeof e=="object",gg=e=>e===!0||e===!1,$i=e=>{if(!rr(e))return!1;const t=Kn(e);return(t===null||t===Object.prototype||Kn(t)===null)&&!Xr(e,Sh)&&!Xr(e,ii)},wg=e=>{if(!rr(e)||nr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},xg=lt("Date"),Sg=lt("File"),Eg=e=>!!(e&&typeof e.uri<"u"),Cg=e=>e&&typeof e.getParts<"u",kg=lt("Blob"),Rg=lt("FileList"),_g=e=>rr(e)&&Ae(e.pipe);function Og(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const mc=Og(),vc=typeof mc.FormData<"u"?mc.FormData:void 0,Pg=e=>{if(!e)return!1;if(vc&&e instanceof vc)return!0;const t=Kn(e);if(!t||t===Object.prototype||!Ae(e.append))return!1;const n=Tu(e);return n==="formdata"||n==="object"&&Ae(e.toString)&&e.toString()==="[object FormData]"},jg=lt("URLSearchParams"),[Ng,Tg,Lg,Fg]=["ReadableStream","Request","Response
|
||
|
|
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&i0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function s0(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const l0=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),u0=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Lu(e,t){return w.isArray(e)?e.map(n=>Lu(n,t)):s0(String(e).replace(t,""))}const a0=e=>Lu(e,l0),c0=e=>Lu(e,u0);function jh(e){const t=Object.create(null);return w.forEach(e.toJSON(),(n,r)=>{t[r]=c0(n)}),t}const yc=Symbol("internals");function hr(e){return e&&String(e).trim().toLowerCase()}function Qi(e){return e===!1||e==null?e:w.isArray(e)?e.map(Qi):a0(String(e))}function f0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const d0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ks(e,t,n,r,i){if(w.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function h0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function p0(e,t){const n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}let Ce=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(l,u,a){const c=hr(u);if(!c)return;const f=w.findKey(i,c);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||u]=Qi(l))}const s=(l,u)=>w.forEach(l,(a,c)=>o(a,c,u));if(w.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(w.isString(t)&&(t=t.trim())&&!d0(t))s(o0(t),n);else if(w.isObject(t)&&w.isSafeIterable(t)){let l=Object.create(null),u,a;for(const c of t){if(!w.isArray(c))throw new TypeError("Object iterator must return a key-value pair");a=c[0],w.hasOwnProp(l,a)?(u=l[a],l[a]=w.isArray(u)?[...u,c[1]]:[u,c[1]]):l[a]=c[1]}s(l,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=hr(t),t){const r=w.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return f0(i);if(w.isFunction(n))return n.call(this,i,r);if(w.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=hr(t),t){const r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ks(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=hr(s),s){const l=w.findKey(r,s);l&&(!n||ks(r,r[l],l,n))&&(delete r[l],i=!0)}}return w.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||ks(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return w.forEach(this,(i,o)=>{const s=w.findKey(r,o);if(s){n[s]=Qi(i),delete n[o];return}const l=t?h0(o):String(o).trim();l!==o&&delete n[o],n[l]=Qi(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return w.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[yc]=this[yc]={accessors:{}}).accessors,i=this.prototype;function o(s){const l=hr(s);r[l]||(p0(i,s),r[l]=!0)}return w.isArray(t)?t.forEach(o):o(t),this}};Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(Ce.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});w.freezeMethods(Ce);const m0="[REDACTED ****]";function v0(e){if(w.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(w.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function y0(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],i=o=>{if(o===null||typeof o!="object"||w.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof Ce&&(o=o.toJSON()),r.push(o);let s;if(w.isArray(o))s=[],o.forEach((l,u)=>{const a=i(l);w.isUndefined(a)||(s[u]=a)});else{if(!w.isPlainObject(o)&&v0(o))return r.pop(),o;s=Object.create(null);for(const[l,u]of Object.entries(o)){const a=n.has(l.toLowerCase())?m0:i(u);w.isUndefined(a)||(s[l]=a)}}return r.pop(),s};return i(e)}let N=class Nh extends Error{static from(t,n,r,i,o,s){const l=new Nh(t.message,n||t.code,r,i,o);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),s&&Object.assign(l,s),l}constructor(t,n,r,i,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&w.hasOwnProp(t,"redact")?t.redact:void 0,r=w.isArray(n)&&n.length>0?y0(t,n):w.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};N.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";N.ERR_BAD_OPTION="ERR_BAD_OPTION";N.ECONNABORTED="ECONNABORTED";N.ETIMEDOUT="ETIMEDOUT";N.ECONNREFUSED="ECONNREFUSED";N.ERR_NETWORK="ERR_NETWORK";N.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";N.ERR_DEPRECATED="ERR_DEPRECATED";N.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";N.ERR_BAD_REQUEST="ERR_BAD_REQUEST";N.ERR_CANCELED="ERR_CANCELED";N.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";N.ERR_INVALID_URL="ERR_INVALID_URL";N.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const g0=null,Th=100;function Tl(e){return w.isPlainObject(e)||w.isArray(e)}function Lh(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function Rs(e,t,n){return e?e.concat(t).map(function(i,o){return i=Lh(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function w0(e){return w.isArray(e)&&!e.some(Tl)}const x0=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function Ko(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,m){return!w.isUndefined(m[h])});const r=n.metaTokens,i=n.visitor||x,o=n.dots,s=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,u=n.maxDepth===void 0?Th:n.maxDepth,a=l&&w.isSpecCompliantForm(t),c=[];if(!w.isFunction(i))throw new TypeError("visitor must be a function");function f(d){if(d===null)return"";if(w.isDate(d))return d.toISOString();if(w.isBoolean(d))return d.toString();if(!a&&w.isBlob(d))throw new N("Blob is not supported. Use a Buffer instead.");if(w.isArrayBuffer(d)||w.isTypedArray(d)){if(a&&typeof l=="function")return new l([d]);if(typeof Buffer<"u")return Buffer.from(d);throw new N("Blob is not supported. Use a Buffer instead.",N.ERR_NOT_SUPPORT)}return d}function v(d){if(d>u)throw new N("Object is too deeply nested ("
|
||
|
|
`+s.map(jc).join(`
|
||
|
|
`):" "+jc(s[0]):"as no adapter specified";throw new N("There is no suitable adapter to dispatch the request "+l,N.ERR_NOT_SUPPORT)}return i}const $h={getAdapter:l1,adapters:Mu};function Os(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new li(null,e)}function Nc(e){return Os(e),e.headers=Ce.from(e.headers),e.data=_s.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$h.getAdapter(e.adapter||si.adapter,e)(e).then(function(r){Os(e),e.response=r;try{r.data=_s.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Ce.from(r.headers),r},function(r){if(!Mh(r)&&(Os(e),r&&r.response)){e.response=r.response;try{r.response.data=_s.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Ce.from(r.response.headers)}return Promise.reject(r)})}const Xo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Tc={};Xo.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Iu+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,l)=>{if(t===!1)throw new N(i(s," has been removed"+(n?" in "+n:"")),N.ERR_DEPRECATED);return n&&!Tc[s]&&(Tc[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,l):!0}};Xo.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function u1(e,t,n){if(typeof e!="object"||e===null)throw new N("options must be an object",N.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(s){const l=e[o],u=l===void 0||s(l,o,e);if(u!==!0)throw new N("option "+o+" must be "+u,N.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new N("Unknown option "+o,N.ERR_BAD_OPTION)}}const Hi={assertOptions:u1,validators:Xo},Se=Hi.validators;let un=class{constructor(t){this.defaults=t||{},this.interceptors={request:new wc,response:new wc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=(()=>{if(!i.stack)return"";const s=i.stack.indexOf(`
|
||
|
|
`);return s===-1?"":i.stack.slice(s+1)})();try{if(!r.stack)r.stack=o;else if(o){const s=o.indexOf(`
|
||
|
|
`),l=s===-1?-1:o.indexOf(`
|
||
|
|
`,s+1),u=l===-1?"":o.slice(l+1);String(r.stack).endsWith(u)||(r.stack+=`
|
||
|
|
`+o)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=mn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Hi.assertOptions(r,{silentJSONParsing:Se.transitional(Se.boolean),forcedJSONParsing:Se.transitional(Se.boolean),clarifyTimeoutError:Se.transitional(Se.boolean),legacyInterceptorReqResOrdering:Se.transitional(Se.boolean),advertiseZstdAcceptEncoding:Se.transitional(Se.boolean),validateStatusUndefinedResolves:Se.transitional(Se.boolean)},!1),i!=null&&(w.isFunction(i)?n.paramsSerializer={serialize:i}:Hi.assertOptions(i,{encode:Se.function,serialize:Se.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Hi.assertOptions(n,{baseUrl:Se.spelling("baseURL"),withXsrfToken:Se.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&w.merge(o.common,o[n.method]);o&&w.forEach(["delete","get","head","post","put","patch","query","common"],x=>{delete o[x]}),n.headers=Ce.concat(s,o);const l=[];let u=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(n)===!1)return;u=u&&y.synchronous;const C=n.transitional||Au;C&&C.legacyInterceptorReqResOrdering?l.unshift(y.fulfilled,y.rejected):l.push(y.fulfilled,y.rejected)});const a=[];this.interceptors.response.forEach(function(y){a.push(y.fulfilled,y.rejected)});let c,f=0,v;if(!u){const x=[Nc.bind(this),void 0];for(x.unshift(...l),x.push(...a),v=x.length,c=Promise.resolve(n);f<v;)c=c.then(x[f++],x[f++]);return c}v=l.length;let g=n;for(;f<v;){const x=l[f++],y=l[f++];try{g=x(g)}catch(C){y.call(this,C);break}}try{c=Nc.call(this,g)}catch(x){return Promise.reject(x)}for(f=0,v=a.length;f<v;)c=c.then(a[f++],a[f++]);return c}getUri(t){t=mn(this.defaults,t);const n=zh(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Ah(n,t.params,t.paramsSerializer)}};w.forEach(["delete","get","head","options"],function(t){un.prototype[t]=function(n,r){return this.request(mn(r||{},{method:t,url:n,data:r&&w.hasOwnProp(r,"data")?r.data:void 0}))}});w.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,s,l){return this.request(mn(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}un.prototype[t]=n(),t!=="query"&&(un.prototype[t+"Form"]=n(!0))});let a1=class Qh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(l=>{r.subscribe(l),o=l}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,l){r.reason||(r.reason=new li(o,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Qh(function(i){t=i}),cancel:t}}};function c1(e){return function(n){return e.apply(null,n)}}function f1(e){return w.isObject(e)&&e.isAxiosError===!0}const Fl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,Precon
|
||
|
|
//# sourceMappingURL=index-dtAml4Xa.js.map
|