UNPKG

@wandelbots/wandelbots-js-react-components

Version:

React UI toolkit for building applications on top of the Wandelbots platform

28 lines 53.9 kB
"use strict";const Ct=require("react"),xt=require("react-i18next"),_t=require("i18next"),kt=require("i18next-browser-languagedetector");var fe={exports:{}},te={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var De;function Bt(){if(De)return te;De=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var l in o)l!=="key"&&(s[l]=o[l])}else s=o;return o=s.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:s}}return te.Fragment=t,te.jsx=r,te.jsxs=r,te}var re={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var je;function Nt(){return je||(je=1,process.env.NODE_ENV!=="production"&&(function(){function e(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===ce?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case m:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case j:return"Suspense";case k:return"SuspenseList";case le:return"Activity"}if(typeof c=="object")switch(typeof c.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),c.$$typeof){case b:return"Portal";case C:return c.displayName||"Context";case A:return(c._context.displayName||"Context")+".Consumer";case v:var g=c.render;return c=c.displayName,c||(c=g.displayName||g.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case Z:return g=c.displayName||null,g!==null?g:e(c.type)||"Memo";case L:g=c._payload,c=c._init;try{return e(c(g))}catch{}}return null}function t(c){return""+c}function r(c){try{t(c);var g=!1}catch{g=!0}if(g){g=console;var R=g.error,E=typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object";return R.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",E),t(c)}}function n(c){if(c===m)return"<>";if(typeof c=="object"&&c!==null&&c.$$typeof===L)return"<...>";try{var g=e(c);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function o(){var c=J.A;return c===null?null:c.getOwner()}function s(){return Error("react-stack-top-frame")}function i(c){if(q.call(c,"key")){var g=Object.getOwnPropertyDescriptor(c,"key").get;if(g&&g.isReactWarning)return!1}return c.key!==void 0}function l(c,g){function R(){F||(F=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}R.isReactWarning=!0,Object.defineProperty(c,"key",{get:R,configurable:!0})}function p(){var c=e(this.type);return Q[c]||(Q[c]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),c=this.props.ref,c!==void 0?c:null}function d(c,g,R,E,$,Te){var P=R.ref;return c={$$typeof:f,type:c,key:g,props:R,_owner:E},(P!==void 0?P:null)!==null?Object.defineProperty(c,"ref",{enumerable:!1,get:p}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(c,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.defineProperty(c,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Te}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function u(c,g,R,E,$,Te){var P=g.children;if(P!==void 0)if(E)if(U(P)){for(E=0;E<P.length;E++)h(P[E]);Object.freeze&&Object.freeze(P)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(P);if(q.call(g,"key")){P=e(c);var G=Object.keys(g).filter(function(Pt){return Pt!=="key"});E=0<G.length?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}",ue[P+E]||(G=0<G.length?"{"+G.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,E,P,G,P),ue[P+E]=!0)}if(P=null,R!==void 0&&(r(R),P=""+R),i(g)&&(r(g.key),P=""+g.key),"key"in g){R={};for(var Oe in g)Oe!=="key"&&(R[Oe]=g[Oe])}else R=g;return P&&l(R,typeof c=="function"?c.displayName||c.name||"Unknown":c),d(c,P,R,o(),$,Te)}function h(c){S(c)?c._store&&(c._store.validated=1):typeof c=="object"&&c!==null&&c.$$typeof===L&&(c._payload.status==="fulfilled"?S(c._payload.value)&&c._payload.value._store&&(c._payload.value._store.validated=1):c._store&&(c._store.validated=1))}function S(c){return typeof c=="object"&&c!==null&&c.$$typeof===f}var w=Ct,f=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),C=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),ce=Symbol.for("react.client.reference"),J=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(c){return c()}};var F,Q={},I=w.react_stack_bottom_frame.bind(w,s)(),ee=W(n(s)),ue={};re.Fragment=m,re.jsx=function(c,g,R){var E=1e4>J.recentlyCreatedOwnerStacks++;return u(c,g,R,!1,E?Error("react-stack-top-frame"):I,E?W(n(c)):ee)},re.jsxs=function(c,g,R){var E=1e4>J.recentlyCreatedOwnerStacks++;return u(c,g,R,!0,E?Error("react-stack-top-frame"):I,E?W(n(c)):ee)}})()),re}var Ue;function vt(){return Ue||(Ue=1,process.env.NODE_ENV==="production"?fe.exports=Bt():fe.exports=Nt()),fe.exports}var be=vt();const Ft={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Blocked.ti":"Verbindung blockiert","Jogging.Blocked.lb":"Ein anderer Client kontrolliert das Jogging.","Jogging.Blocked.Reenable.bt":"Neu verbinden","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.JointLimitsReached.lb":"Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Roboterbasis","Jogging.Orientation.tool":"Werkzeug","SafetyBar.ActivationToggle.Activate.bt":"Aktivieren","SafetyBar.ActivationToggle.Activated.bt":"Aktiviert","SafetyBar.ActivationToggle.Activating.bt":"Wird aktiviert…","SafetyBar.ActivationToggle.Deactivating.bt":"Wird deaktiviert…","SafetyBar.ControllerType.Physical.lb":"Physisch","SafetyBar.ControllerType.Virtual.lb":"Virtuell","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.","SafetyBar.OperationMode.Automatic.ti":"Automatisch","SafetyBar.OperationMode.Error.Explanation.lb":"Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.","SafetyBar.OperationMode.Error.lb":"Fehler","SafetyBar.OperationMode.Manual.Explanation.lb":`Die Robotersteuerung befindet sich im manuellen Betriebsmodus. Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":"Manuell","SafetyBar.OperationMode.ti":"Betriebsmodus","SafetyBar.SafetyState.Error.Explanation.lb":"Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.","SafetyBar.SafetyState.Error.lb":"Fehler","SafetyBar.SafetyState.Estop.lb":"NOT-AUS","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.","SafetyBar.SafetyState.ManualActionRequired.lb":"Aktion erforderlich","SafetyBar.SafetyState.Normal.Explanation.lb":"Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.","SafetyBar.SafetyState.Normal.lb":"Sicher","SafetyBar.SafetyState.Stop.Explanation.lb":"Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.","SafetyBar.SafetyState.Stop.lb":"Stopp","SafetyBar.SafetyState.ti":"Sicherheitszustand","SafetyBar.StopState.Estop.Explanation.lb":"NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.","Jogging.Increment.hlb":"Schrittgröße","Jogging.CoordinateSystem.hlb":"Koordinatensystem","Jogging.Cartesian.bt":"Kartesisch","Jogging.Joints.bt":"Gelenke","Jogging.Velocity.bt":"Geschwindigkeit","CycleTimer.RemainingTime.lb":"Verbleibende Zeit","CycleTimer.OfTime.lb":"von {{time}}","CycleTimer.Time.lb":"{{time}}","CycleTimer.Error.lb":"Fehler","CycleTimer.WaitingForCycle.lb":"Warten auf Programmzyklus","CycleTimer.CycleTime.lb":"Zykluszeit","CycleTimer.Measuring.lb":"wird gemessen...","CycleTimer.Determined.lb":"bestimmt","Timer.error":"Fehler","ProgramControl.Start.bt":"Start","ProgramControl.Resume.bt":"Weiter","ProgramControl.Retry.bt":"Wiederholen","ProgramControl.Pause.bt":"Pause","ProgramControl.Stop.bt":"Stopp","ProgramStateIndicator.Preparing.lb":"Vorbereitung","ProgramStateIndicator.Starting.lb":"Startet","ProgramStateIndicator.Running.lb":"In Betrieb","ProgramStateIndicator.Pausing.lb":"Pausiert","ProgramStateIndicator.Stopping.lb":"Stoppt","ProgramStateIndicator.Completed.lb":"Abgeschlossen","ProgramStateIndicator.Failed.lb":"Fehlgeschlagen","ProgramStateIndicator.Error.lb":"Fehler","ProgramStateIndicator.EStop.lb":"Not-Aus","ProgramStateIndicator.Idle.lb":"Leerlauf","ProgramStateIndicator.Paused.lb":"Pausiert","ProgramStateIndicator.Ready.lb":"Bereit","ProgramStateIndicator.Stopped.lb":"Gestoppt","ProgramStateIndicator.Auto.lb":"Auto","ProgramStateIndicator.Manual.lb":"Manuell","ProgramStateIndicator.ManualT1.lb":"Manuell T1","ProgramStateIndicator.ManualT2.lb":"Manuell T2","RobotSetupReadinessIndicator.Ready.lb":"Bereit","RobotSetupReadinessIndicator.RobotDisconnected.lb":"Roboter getrennt","RobotSetupReadinessIndicator.CellOpen.lb":"Zelle offen","RobotSetupReadinessIndicator.EStop.lb":"Not-Stopp","RobotSetupReadinessIndicator.ManualMode.lb":"Manueller Modus","RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb":"Voraussetzung nicht erfüllt","RobotCard.Runtime.lb":"Laufzeit","RobotCard.DriveToHome.bt":"Zur Home-Position fahren"},It={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Blocked.ti":"Connection blocked","Jogging.Blocked.lb":"Another client is currently controlling the jogging.","Jogging.Blocked.Reenable.bt":"Reconnect","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Robot base","Jogging.Orientation.tool":"Tool","SafetyBar.ActivationToggle.Activate.bt":"Activate","SafetyBar.ActivationToggle.Activated.bt":"Activated","SafetyBar.ActivationToggle.Activating.bt":"Activating","SafetyBar.ActivationToggle.Deactivating.bt":"Deactivating","SafetyBar.ControllerType.Physical.lb":"Physical","SafetyBar.ControllerType.Virtual.lb":"Virtual","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatic operation mode active. Automated movement without manual confirmation enabled.","SafetyBar.OperationMode.Automatic.ti":"Automatic","SafetyBar.OperationMode.Error.Explanation.lb":"Failed to get operation mode. Use the original control panel to resolve the error.","SafetyBar.OperationMode.Error.lb":"Error","SafetyBar.OperationMode.Manual.Explanation.lb":"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.","SafetyBar.OperationMode.Manual.lb":"Manual","SafetyBar.OperationMode.ti":"Operation mode","SafetyBar.SafetyState.Error.Explanation.lb":"The robot controller has entered an unexpected safety state.","SafetyBar.SafetyState.Error.lb":"Error","SafetyBar.SafetyState.Estop.lb":"E-Stop","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"The robot controller has entered a safety state requiring manual action to resolve.","SafetyBar.SafetyState.ManualActionRequired.lb":"Action required","SafetyBar.SafetyState.Normal.Explanation.lb":"The robot controller is in a safe state. Robot movement is enabled.","SafetyBar.SafetyState.Normal.lb":"Safe","SafetyBar.SafetyState.Stop.Explanation.lb":"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.","SafetyBar.SafetyState.Stop.lb":"Stop","SafetyBar.SafetyState.ti":"Safety state","SafetyBar.StopState.Estop.Explanation.lb":"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.","Jogging.Increment.hlb":"Increment","Jogging.CoordinateSystem.hlb":"Coordinate system","Jogging.Cartesian.bt":"Cartesian","Jogging.Joints.bt":"Joints","Jogging.Velocity.bt":"Velocity","CycleTimer.RemainingTime.lb":"Time remaining","CycleTimer.OfTime.lb":"of {{time}}","CycleTimer.Time.lb":"{{time}}","CycleTimer.Error.lb":"Error","CycleTimer.WaitingForCycle.lb":"Waiting for program cycle","CycleTimer.CycleTime.lb":"Cycle Time","CycleTimer.Measuring.lb":"measuring...","CycleTimer.Determined.lb":"determined","Timer.error":"Error","ProgramControl.Start.bt":"Start","ProgramControl.Resume.bt":"Resume","ProgramControl.Retry.bt":"Retry","ProgramControl.Pause.bt":"Pause","ProgramControl.Stop.bt":"Stop","ProgramStateIndicator.Preparing.lb":"Preparing","ProgramStateIndicator.Starting.lb":"Starting","ProgramStateIndicator.Running.lb":"Running","ProgramStateIndicator.Pausing.lb":"Pausing","ProgramStateIndicator.Stopping.lb":"Stopping","ProgramStateIndicator.Completed.lb":"Completed","ProgramStateIndicator.Failed.lb":"Failed","ProgramStateIndicator.Error.lb":"Error","ProgramStateIndicator.EStop.lb":"E-Stop","ProgramStateIndicator.Idle.lb":"Idle","ProgramStateIndicator.Paused.lb":"Paused","ProgramStateIndicator.Ready.lb":"Ready","ProgramStateIndicator.Stopped.lb":"Stopped","ProgramStateIndicator.Auto.lb":"Auto","ProgramStateIndicator.Manual.lb":"Manual","ProgramStateIndicator.ManualT1.lb":"Manual T1","ProgramStateIndicator.ManualT2.lb":"Manual T2","RobotSetupReadinessIndicator.Ready.lb":"Ready","RobotSetupReadinessIndicator.RobotDisconnected.lb":"Robot disconnected","RobotSetupReadinessIndicator.CellOpen.lb":"Cell open","RobotSetupReadinessIndicator.EStop.lb":"E-Stop","RobotSetupReadinessIndicator.ManualMode.lb":"Manual mode","RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb":"Precondition not fulfilled","RobotCard.Runtime.lb":"Runtime","RobotCard.DriveToHome.bt":"Drive to Home"},Ne=_t.createInstance();Ne.use(kt).init({supportedLngs:["en","de"],resources:{en:{translations:It},de:{translations:Ft}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function Mt(e){return(r=>be.jsx(Dt,{children:be.jsx(e,{...r})}))}const Dt=({children:e})=>be.jsx(xt.I18nextProvider,{i18n:Ne,children:e});function rt(e,t){return function(){return e.apply(t,arguments)}}const{toString:jt}=Object.prototype,{getPrototypeOf:ve}=Object,{iterator:ye,toStringTag:nt}=Symbol,Se=(e=>t=>{const r=jt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),M=e=>(e=e.toLowerCase(),t=>Se(t)===e),Re=e=>t=>typeof t===e,{isArray:K}=Array,Y=Re("undefined");function oe(e){return e!==null&&!Y(e)&&e.constructor!==null&&!Y(e.constructor)&&B(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ot=M("ArrayBuffer");function Ut(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ot(e.buffer),t}const Lt=Re("string"),B=Re("function"),it=Re("number"),ie=e=>e!==null&&typeof e=="object",Jt=e=>e===!0||e===!1,pe=e=>{if(Se(e)!=="object")return!1;const t=ve(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(nt in e)&&!(ye in e)},qt=e=>{if(!ie(e)||oe(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},$t=M("Date"),zt=M("File"),Ht=M("Blob"),Vt=M("FileList"),Wt=e=>ie(e)&&B(e.pipe),Gt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||B(e.append)&&((t=Se(e))==="formdata"||t==="object"&&B(e.toString)&&e.toString()==="[object FormData]"))},Yt=M("URLSearchParams"),[Kt,Xt,Zt,Qt]=["ReadableStream","Request","Response","Headers"].map(M),er=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function se(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),K(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(oe(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let l;for(n=0;n<i;n++)l=s[n],t.call(null,e[l],l,e)}}function st(e,t){if(oe(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const z=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,at=e=>!Y(e)&&e!==z;function xe(){const{caseless:e,skipUndefined:t}=at(this)&&this||{},r={},n=(o,s)=>{const i=e&&st(r,s)||s;pe(r[i])&&pe(o)?r[i]=xe(r[i],o):pe(o)?r[i]=xe({},o):K(o)?r[i]=o.slice():(!t||!Y(o))&&(r[i]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&se(arguments[o],n);return r}const tr=(e,t,r,{allOwnKeys:n}={})=>(se(t,(o,s)=>{r&&B(o)?e[s]=rt(o,r):e[s]=o},{allOwnKeys:n}),e),rr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nr=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},or=(e,t,r,n)=>{let o,s,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&ve(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},ir=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},sr=e=>{if(!e)return null;if(K(e))return e;let t=e.length;if(!it(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},ar=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ve(Uint8Array)),lr=(e,t)=>{const n=(e&&e[ye]).call(e);let o;for(;(o=n.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},cr=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ur=M("HTMLFormElement"),fr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Le=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),dr=M("RegExp"),lt=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};se(r,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(n[s]=i||o)}),Object.defineProperties(e,n)},pr=e=>{lt(e,(t,r)=>{if(B(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(B(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},mr=(e,t)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return K(e)?n(e):n(String(e).split(t)),r},hr=()=>{},br=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function gr(e){return!!(e&&B(e.append)&&e[nt]==="FormData"&&e[ye])}const yr=e=>{const t=new Array(10),r=(n,o)=>{if(ie(n)){if(t.indexOf(n)>=0)return;if(oe(n))return n;if(!("toJSON"in n)){t[o]=n;const s=K(n)?[]:{};return se(n,(i,l)=>{const p=r(i,o+1);!Y(p)&&(s[l]=p)}),t[o]=void 0,s}}return n};return r(e,0)},Sr=M("AsyncFunction"),Rr=e=>e&&(ie(e)||B(e))&&B(e.then)&&B(e.catch),ct=((e,t)=>e?setImmediate:t?((r,n)=>(z.addEventListener("message",({source:o,data:s})=>{o===z&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),z.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",B(z.postMessage)),Er=typeof queueMicrotask<"u"?queueMicrotask.bind(z):typeof process<"u"&&process.nextTick||ct,wr=e=>e!=null&&B(e[ye]),a={isArray:K,isArrayBuffer:ot,isBuffer:oe,isFormData:Gt,isArrayBufferView:Ut,isString:Lt,isNumber:it,isBoolean:Jt,isObject:ie,isPlainObject:pe,isEmptyObject:qt,isReadableStream:Kt,isRequest:Xt,isResponse:Zt,isHeaders:Qt,isUndefined:Y,isDate:$t,isFile:zt,isBlob:Ht,isRegExp:dr,isFunction:B,isStream:Wt,isURLSearchParams:Yt,isTypedArray:ar,isFileList:Vt,forEach:se,merge:xe,extend:tr,trim:er,stripBOM:rr,inherits:nr,toFlatObject:or,kindOf:Se,kindOfTest:M,endsWith:ir,toArray:sr,forEachEntry:lr,matchAll:cr,isHTMLForm:ur,hasOwnProperty:Le,hasOwnProp:Le,reduceDescriptors:lt,freezeMethods:pr,toObjectSet:mr,toCamelCase:fr,noop:hr,toFiniteNumber:br,findKey:st,global:z,isContextDefined:at,isSpecCompliantForm:gr,toJSONObject:yr,isAsyncFn:Sr,isThenable:Rr,setImmediate:ct,asap:Er,isIterable:wr};function y(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}a.inherits(y,Error,{toJSON:function(){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:a.toJSONObject(this.config),code:this.code,status:this.status}}});const ut=y.prototype,ft={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ft[e]={value:e}});Object.defineProperties(y,ft);Object.defineProperty(ut,"isAxiosError",{value:!0});y.from=(e,t,r,n,o,s)=>{const i=Object.create(ut);a.toFlatObject(e,i,function(u){return u!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",p=t==null&&e?e.code:t;return y.call(i,l,p,r,n,o),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};const Tr=null;function _e(e){return a.isPlainObject(e)||a.isArray(e)}function dt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Je(e,t,r){return e?e.concat(t).map(function(o,s){return o=dt(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function Or(e){return a.isArray(e)&&!e.some(_e)}const Ar=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function Ee(e,t,r){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=a.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,m){return!a.isUndefined(m[b])});const n=r.metaTokens,o=r.visitor||u,s=r.dots,i=r.indexes,p=(r.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function d(f){if(f===null)return"";if(a.isDate(f))return f.toISOString();if(a.isBoolean(f))return f.toString();if(!p&&a.isBlob(f))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(f)||a.isTypedArray(f)?p&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,b,m){let T=f;if(f&&!m&&typeof f=="object"){if(a.endsWith(b,"{}"))b=n?b:b.slice(0,-2),f=JSON.stringify(f);else if(a.isArray(f)&&Or(f)||(a.isFileList(f)||a.endsWith(b,"[]"))&&(T=a.toArray(f)))return b=dt(b),T.forEach(function(A,C){!(a.isUndefined(A)||A===null)&&t.append(i===!0?Je([b],C,s):i===null?b:b+"[]",d(A))}),!1}return _e(f)?!0:(t.append(Je(m,b,s),d(f)),!1)}const h=[],S=Object.assign(Ar,{defaultVisitor:u,convertValue:d,isVisitable:_e});function w(f,b){if(!a.isUndefined(f)){if(h.indexOf(f)!==-1)throw Error("Circular reference detected in "+b.join("."));h.push(f),a.forEach(f,function(T,_){(!(a.isUndefined(T)||T===null)&&o.call(t,T,a.isString(_)?_.trim():_,b,S))===!0&&w(T,b?b.concat(_):[_])}),h.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Fe(e,t){this._pairs=[],e&&Ee(e,this,t)}const pt=Fe.prototype;pt.append=function(t,r){this._pairs.push([t,r])};pt.toString=function(t){const r=t?function(n){return t.call(this,n,qe)}:qe;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Pr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function mt(e,t,r){if(!t)return e;const n=r&&r.encode||Pr;a.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let s;if(o?s=o(t,r):s=a.isURLSearchParams(t)?t.toString():new Fe(t,r).toString(n),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class $e{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(n){n!==null&&t(n)})}}const ht={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cr=typeof URLSearchParams<"u"?URLSearchParams:Fe,xr=typeof FormData<"u"?FormData:null,_r=typeof Blob<"u"?Blob:null,kr={isBrowser:!0,classes:{URLSearchParams:Cr,FormData:xr,Blob:_r},protocols:["http","https","file","blob","url","data"]},Ie=typeof window<"u"&&typeof document<"u",ke=typeof navigator=="object"&&navigator||void 0,Br=Ie&&(!ke||["ReactNative","NativeScript","NS"].indexOf(ke.product)<0),Nr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vr=Ie&&window.location.href||"http://localhost",Fr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ie,hasStandardBrowserEnv:Br,hasStandardBrowserWebWorkerEnv:Nr,navigator:ke,origin:vr},Symbol.toStringTag,{value:"Module"})),x={...Fr,...kr};function Ir(e,t){return Ee(e,new x.classes.URLSearchParams,{visitor:function(r,n,o,s){return x.isNode&&a.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function Mr(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Dr(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function bt(e){function t(r,n,o,s){let i=r[s++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),p=s>=r.length;return i=!i&&a.isArray(o)?o.length:i,p?(a.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!l):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],s)&&a.isArray(o[i])&&(o[i]=Dr(o[i])),!l)}if(a.isFormData(e)&&a.isFunction(e.entries)){const r={};return a.forEachEntry(e,(n,o)=>{t(Mr(n),o,r,0)}),r}return null}function jr(e,t,r){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ae={transitional:ht,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(bt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ir(t,this.formSerializer).toString();if((l=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Ee(l?{"files[]":t}:t,p&&new p,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),jr(t)):t}],transformResponse:[function(t){const r=this.transitional||ae.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?y.from(l,y.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:x.classes.FormData,Blob:x.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{ae.headers[e]={}});const Ur=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Lr=e=>{const t={};let r,n,o;return e&&e.split(` `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&Ur[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},ze=Symbol("internals");function ne(e){return e&&String(e).trim().toLowerCase()}function me(e){return e===!1||e==null?e:a.isArray(e)?e.map(me):String(e)}function Jr(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const qr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ae(e,t,r,n,o){if(a.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!a.isString(t)){if(a.isString(n))return t.indexOf(n)!==-1;if(a.isRegExp(n))return n.test(t)}}function $r(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function zr(e,t){const r=a.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,s,i){return this[n].call(this,t,o,s,i)},configurable:!0})})}let N=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function s(l,p,d){const u=ne(p);if(!u)throw new Error("header name must be a non-empty string");const h=a.findKey(o,u);(!h||o[h]===void 0||d===!0||d===void 0&&o[h]!==!1)&&(o[h||p]=me(l))}const i=(l,p)=>a.forEach(l,(d,u)=>s(d,u,p));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(a.isString(t)&&(t=t.trim())&&!qr(t))i(Lr(t),r);else if(a.isObject(t)&&a.isIterable(t)){let l={},p,d;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[d=u[0]]=(p=l[d])?a.isArray(p)?[...p,u[1]]:[p,u[1]]:u[1]}i(l,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=ne(t),t){const n=a.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Jr(o);if(a.isFunction(r))return r.call(this,o,n);if(a.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ne(t),t){const n=a.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Ae(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function s(i){if(i=ne(i),i){const l=a.findKey(n,i);l&&(!r||Ae(n,n[l],l,r))&&(delete n[l],o=!0)}}return a.isArray(t)?t.forEach(s):s(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const s=r[n];(!t||Ae(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const r=this,n={};return a.forEach(this,(o,s)=>{const i=a.findKey(n,s);if(i){r[i]=me(o),delete r[s];return}const l=t?$r(s):String(s).trim();l!==s&&delete r[s],r[l]=me(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return a.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&a.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).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,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[ze]=this[ze]={accessors:{}}).accessors,o=this.prototype;function s(i){const l=ne(i);n[l]||(zr(o,i),n[l]=!0)}return a.isArray(t)?t.forEach(s):s(t),this}};N.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(N.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});a.freezeMethods(N);function Pe(e,t){const r=this||ae,n=t||r,o=N.from(n.headers);let s=n.data;return a.forEach(e,function(l){s=l.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function gt(e){return!!(e&&e.__CANCEL__)}function X(e,t,r){y.call(this,e??"canceled",y.ERR_CANCELED,t,r),this.name="CanceledError"}a.inherits(X,y,{__CANCEL__:!0});function yt(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new y("Request failed with status code "+r.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Hr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Vr(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(p){const d=Date.now(),u=n[s];i||(i=d),r[o]=p,n[o]=d;let h=s,S=0;for(;h!==o;)S+=r[h++],h=h%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-i<t)return;const w=u&&d-u;return w?Math.round(S*1e3/w):void 0}}function Wr(e,t){let r=0,n=1e3/t,o,s;const i=(d,u=Date.now())=>{r=u,o=null,s&&(clearTimeout(s),s=null),e(...d)};return[(...d)=>{const u=Date.now(),h=u-r;h>=n?i(d,u):(o=d,s||(s=setTimeout(()=>{s=null,i(o)},n-h)))},()=>o&&i(o)]}const ge=(e,t,r=3)=>{let n=0;const o=Vr(50,250);return Wr(s=>{const i=s.loaded,l=s.lengthComputable?s.total:void 0,p=i-n,d=o(p),u=i<=l;n=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:p,rate:d||void 0,estimated:d&&l&&u?(l-i)/d:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},r)},He=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ve=e=>(...t)=>a.asap(()=>e(...t)),Gr=x.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,x.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(x.origin),x.navigator&&/(msie|trident)/i.test(x.navigator.userAgent)):()=>!0,Yr=x.hasStandardBrowserEnv?{write(e,t,r,n,o,s,i){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];a.isNumber(r)&&l.push(`expires=${new Date(r).toUTCString()}`),a.isString(n)&&l.push(`path=${n}`),a.isString(o)&&l.push(`domain=${o}`),s===!0&&l.push("secure"),a.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Kr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function St(e,t,r){let n=!Kr(t);return e&&(n||r==!1)?Xr(e,t):t}const We=e=>e instanceof N?{...e}:e;function V(e,t){t=t||{};const r={};function n(d,u,h,S){return a.isPlainObject(d)&&a.isPlainObject(u)?a.merge.call({caseless:S},d,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function o(d,u,h,S){if(a.isUndefined(u)){if(!a.isUndefined(d))return n(void 0,d,h,S)}else return n(d,u,h,S)}function s(d,u){if(!a.isUndefined(u))return n(void 0,u)}function i(d,u){if(a.isUndefined(u)){if(!a.isUndefined(d))return n(void 0,d)}else return n(void 0,u)}function l(d,u,h){if(h in t)return n(d,u);if(h in e)return n(void 0,d)}const p={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(d,u,h)=>o(We(d),We(u),h,!0)};return a.forEach(Object.keys({...e,...t}),function(u){const h=p[u]||o,S=h(e[u],t[u],u);a.isUndefined(S)&&h!==l||(r[u]=S)}),r}const Rt=e=>{const t=V({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:l}=t;if(t.headers=i=N.from(i),t.url=mt(St(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),a.isFormData(r)){if(x.hasStandardBrowserEnv||x.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(a.isFunction(r.getHeaders)){const p=r.getHeaders(),d=["content-type","content-length"];Object.entries(p).forEach(([u,h])=>{d.includes(u.toLowerCase())&&i.set(u,h)})}}if(x.hasStandardBrowserEnv&&(n&&a.isFunction(n)&&(n=n(t)),n||n!==!1&&Gr(t.url))){const p=o&&s&&Yr.read(s);p&&i.set(o,p)}return t},Zr=typeof XMLHttpRequest<"u",Qr=Zr&&function(e){return new Promise(function(r,n){const o=Rt(e);let s=o.data;const i=N.from(o.headers).normalize();let{responseType:l,onUploadProgress:p,onDownloadProgress:d}=o,u,h,S,w,f;function b(){w&&w(),f&&f(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function T(){if(!m)return;const A=N.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),v={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:A,config:e,request:m};yt(function(k){r(k),b()},function(k){n(k),b()},v),m=null}"onloadend"in m?m.onloadend=T:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(T)},m.onabort=function(){m&&(n(new y("Request aborted",y.ECONNABORTED,e,m)),m=null)},m.onerror=function(C){const v=C&&C.message?C.message:"Network Error",j=new y(v,y.ERR_NETWORK,e,m);j.event=C||null,n(j),m=null},m.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||ht;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),n(new y(C,v.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,m)),m=null},s===void 0&&i.setContentType(null),"setRequestHeader"in m&&a.forEach(i.toJSON(),function(C,v){m.setRequestHeader(v,C)}),a.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),l&&l!=="json"&&(m.responseType=o.responseType),d&&([S,f]=ge(d,!0),m.addEventListener("progress",S)),p&&m.upload&&([h,w]=ge(p),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(u=A=>{m&&(n(!A||A.type?new X(null,e,m):A),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const _=Hr(o.url);if(_&&x.protocols.indexOf(_)===-1){n(new y("Unsupported protocol "+_+":",y.ERR_BAD_REQUEST,e));return}m.send(s||null)})},en=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const s=function(d){if(!o){o=!0,l();const u=d instanceof Error?d:this.reason;n.abort(u instanceof y?u:new X(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,s(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:p}=n;return p.unsubscribe=()=>a.asap(l),p}},tn=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},rn=async function*(e,t){for await(const r of nn(e))yield*tn(r,t)},nn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Ge=(e,t,r,n)=>{const o=rn(e,t);let s=0,i,l=p=>{i||(i=!0,n&&n(p))};return new ReadableStream({async pull(p){try{const{done:d,value:u}=await o.next();if(d){l(),p.close();return}let h=u.byteLength;if(r){let S=s+=h;r(S)}p.enqueue(new Uint8Array(u))}catch(d){throw l(d),d}},cancel(p){return l(p),o.return()}},{highWaterMark:2})},Ye=64*1024,{isFunction:de}=a,on=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:Ke,TextEncoder:Xe}=a.global,Ze=(e,...t)=>{try{return!!e(...t)}catch{return!1}},sn=e=>{e=a.merge.call({skipUndefined:!0},on,e);const{fetch:t,Request:r,Response:n}=e,o=t?de(t):typeof fetch=="function",s=de(r),i=de(n);if(!o)return!1;const l=o&&de(Ke),p=o&&(typeof Xe=="function"?(f=>b=>f.encode(b))(new Xe):async f=>new Uint8Array(await new r(f).arrayBuffer())),d=s&&l&&Ze(()=>{let f=!1;const b=new r(x.origin,{body:new Ke,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!b}),u=i&&l&&Ze(()=>a.isReadableStream(new n("").body)),h={stream:u&&(f=>f.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!h[f]&&(h[f]=(b,m)=>{let T=b&&b[f];if(T)return T.call(b);throw new y(`Response type '${f}' is not supported`,y.ERR_NOT_SUPPORT,m)})});const S=async f=>{if(f==null)return 0;if(a.isBlob(f))return f.size;if(a.isSpecCompliantForm(f))return(await new r(x.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(a.isArrayBufferView(f)||a.isArrayBuffer(f))return f.byteLength;if(a.isURLSearchParams(f)&&(f=f+""),a.isString(f))return(await p(f)).byteLength},w=async(f,b)=>{const m=a.toFiniteNumber(f.getContentLength());return m??S(b)};return async f=>{let{url:b,method:m,data:T,signal:_,cancelToken:A,timeout:C,onDownloadProgress:v,onUploadProgress:j,responseType:k,headers:Z,withCredentials:L="same-origin",fetchOptions:le}=Rt(f),ce=t||fetch;k=k?(k+"").toLowerCase():"text";let J=en([_,A&&A.toAbortSignal()],C),q=null;const U=J&&J.unsubscribe&&(()=>{J.unsubscribe()});let W;try{if(j&&d&&m!=="get"&&m!=="head"&&(W=await w(Z,T))!==0){let c=new r(b,{method:"POST",body:T,duplex:"half"}),g;if(a.isFormData(T)&&(g=c.headers.get("content-type"))&&Z.setContentType(g),c.body){const[R,E]=He(W,ge(Ve(j)));T=Ge(c.body,Ye,R,E)}}a.isString(L)||(L=L?"include":"omit");const F=s&&"credentials"in r.prototype,Q={...le,signal:J,method:m.toUpperCase(),headers:Z.normalize().toJSON(),body:T,duplex:"half",credentials:F?L:void 0};q=s&&new r(b,Q);let I=await(s?ce(q,le):ce(b,Q));const ee=u&&(k==="stream"||k==="response");if(u&&(v||ee&&U)){const c={};["status","statusText","headers"].forEach($=>{c[$]=I[$]});const g=a.toFiniteNumber(I.headers.get("content-length")),[R,E]=v&&He(g,ge(Ve(v),!0))||[];I=new n(Ge(I.body,Ye,R,()=>{E&&E(),U&&U()}),c)}k=k||"text";let ue=await h[a.findKey(h,k)||"text"](I,f);return!ee&&U&&U(),await new Promise((c,g)=>{yt(c,g,{data:ue,headers:N.from(I.headers),status:I.status,statusText:I.statusText,config:f,request:q})})}catch(F){throw U&&U(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,f,q),{cause:F.cause||F}):y.from(F,F&&F.code,f,q)}}},an=new Map,Et=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,s=[n,o,r];let i=s.length,l=i,p,d,u=an;for(;l--;)p=s[l],d=u.get(p),d===void 0&&u.set(p,d=l?new Map:sn(t)),u=d;return d};Et();const Me={http:Tr,xhr:Qr,fetch:{get:Et}};a.forEach(Me,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qe=e=>`- ${e}`,ln=e=>a.isFunction(e)||e===null||e===!1;function cn(e,t){e=a.isArray(e)?e:[e];const{length:r}=e;let n,o;const s={};for(let i=0;i<r;i++){n=e[i];let l;if(o=n,!ln(n)&&(o=Me[(l=String(n)).toLowerCase()],o===void 0))throw new y(`Unknown adapter '${l}'`);if(o&&(a.isFunction(o)||(o=o.get(t))))break;s[l||"#"+i]=o}if(!o){const i=Object.entries(s).map(([p,d])=>`adapter ${p} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=r?i.length>1?`since : `+i.map(Qe).join(` `):" "+Qe(i[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const wt={getAdapter:cn,adapters:Me};function Ce(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new X(null,e)}function et(e){return Ce(e),e.headers=N.from(e.headers),e.data=Pe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wt.getAdapter(e.adapter||ae.adapter,e)(e).then(function(n){return Ce(e),n.data=Pe.call(e,e.transformResponse,n),n.headers=N.from(n.headers),n},function(n){return gt(n)||(Ce(e),n&&n.response&&(n.response.data=Pe.call(e,e.transformResponse,n.response),n.response.headers=N.from(n.response.headers))),Promise.reject(n)})}const Tt="1.13.2",we={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{we[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const tt={};we.transitional=function(t,r,n){function o(s,i){return"[Axios v"+Tt+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return(s,i,l)=>{if(t===!1)throw new y(o(i," has been removed"+(r?" in "+r:"")),y.ERR_DEPRECATED);return r&&!tt[i]&&(tt[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,l):!0}};we.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function un(e,t,r){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const l=e[s],p=l===void 0||i(l,s,e);if(p!==!0)throw new y("option "+s+" must be "+p,y.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new y("Unknown option "+s,y.ERR_BAD_OPTION)}}const he={assertOptions:un,validators:we},D=he.validators;let H=class{constructor(t){this.defaults=t||{},this.interceptors={request:new $e,response:new $e}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=` `+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=V(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&he.assertOptions(n,{silentJSONParsing:D.transitional(D.boolean),forcedJSONParsing:D.transitional(D.boolean),clarifyTimeoutError:D.transitional(D.boolean)},!1),o!=null&&(a.isFunction(o)?r.paramsSerializer={serialize:o}:he.assertOptions(o,{encode:D.function,serialize:D.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),he.assertOptions(r,{baseUrl:D.spelling("baseURL"),withXsrfToken:D.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&a.merge(s.common,s[r.method]);s&&a.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),r.headers=N.concat(i,s);const l=[];let p=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(p=p&&b.synchronous,l.unshift(b.fulfilled,b.rejected))});const d=[];this.interceptors.response.forEach(function(b){d.push(b.fulfilled,b.rejected)});let u,h=0,S;if(!p){const f=[et.bind(this),void 0];for(f.unshift(...l),f.push(...d),S=f.length,u=Promise.resolve(r);h<S;)u=u.then(f[h++],f[h++]);return u}S=l.length;let w=r;for(;h<S;){const f=l[h++],b=l[h++];try{w=f(w)}catch(m){b.call(this,m);break}}try{u=et.call(this,w)}catch(f){return Promise.reject(f)}for(h=0,S=d.length;h<S;)u=u.then(d[h++],d[h++]);return u}getUri(t){t=V(this.defaults,t);const r=St