Files
pyMC_Repeater/repeater/web/html/assets/api-CbM6k1ZB.js
T
2026-04-21 14:47:18 +01:00

7 lines
48 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Setup-DvdSE7ue.js","assets/_plugin-vue_export-helper-B7aGp3iI.js","assets/index-BFltqMtv.js","assets/runtime-core.esm-bundler-HnidnMFy.js","assets/vue-router-Cr0wB7EX.js","assets/useTheme-DMOVV09x.js","assets/packets-C-dzvp0W.js","assets/system-BH4r-ii6.js","assets/websocket-nXR7EYbj.js","assets/index-Crl6CjFg.css","assets/Setup-DiRq9fgD.css","assets/Login-Yx7HUvzW.js","assets/Login-CRioMgum.css","assets/Dashboard-ClL05x7j.js","assets/chart-B1uYMRrx.js","assets/useSignalQuality-BfZWbBxN.js","assets/preferences-Bv8i60GL.js","assets/Dashboard-BLK8l9Tc.css","assets/Neighbors-CQcUQfDG.js","assets/chunk-DECur_0Z.js","assets/leaflet-src-PYB8oVmQ.js","assets/Neighbors-Cfo189NY.css","assets/leaflet-vh-t_kPv.css","assets/Statistics-S4HgWYku.js","assets/chartjs-adapter-date-fns.esm-DnBoPdP1.js","assets/chartjs-adapter-date-fns-BqJ94ASW.css","assets/plotly.min-Dl7ekyci.js","assets/Statistics-CsAO5q_U.css","assets/SystemStats-4wDqjB6x.js","assets/SystemStats-Dnc1_s5j.css","assets/Configuration-BoG9PyTQ.js","assets/ConfirmDialog-PLW-eI8u.js","assets/Configuration-zQuuYGWe.css","assets/CADCalibration-CK9zSc8M.js","assets/CADCalibration-gZQwotT3.css","assets/Sessions-DhR0b50N.js","assets/RoomServers-Cngso7KV.js","assets/MessageDialog-CEzYMZ-3.js","assets/Companions-Cm95T8nb.js","assets/Logs-DiVYCMnG.js","assets/Terminal-Dpu_GlNL.js","assets/Terminal-tmed9q5z.css","assets/Help-CaIFoQMt.js","assets/websocket-NnYyxr--.js","assets/packets-B_GG5R7y.js","assets/system-Cl32lKH8.js"])))=>i.map(i=>d[i]);
import{n as e}from"./chunk-DECur_0Z.js";import{o as t,z as n}from"./runtime-core.esm-bundler-HnidnMFy.js";import{n as r,o as i,t as a}from"./vue-router-Cr0wB7EX.js";function o(e,t){return function(){return e.apply(t,arguments)}}var{toString:s}=Object.prototype,{getPrototypeOf:c}=Object,{iterator:l,toStringTag:u}=Symbol,d=(e=>t=>{let n=s.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),f=e=>(e=e.toLowerCase(),t=>d(t)===e),p=e=>t=>typeof t===e,{isArray:m}=Array,h=p(`undefined`);function g(e){return e!==null&&!h(e)&&e.constructor!==null&&!h(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var _=f(`ArrayBuffer`);function v(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&_(e.buffer),t}var y=p(`string`),b=p(`function`),x=p(`number`),S=e=>typeof e==`object`&&!!e,C=e=>e===!0||e===!1,w=e=>{if(d(e)!==`object`)return!1;let t=c(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(u in e)&&!(l in e)},ee=e=>{if(!S(e)||g(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},te=f(`Date`),ne=f(`File`),re=e=>!!(e&&e.uri!==void 0),ie=e=>e&&e.getParts!==void 0,ae=f(`Blob`),oe=f(`FileList`),se=e=>S(e)&&b(e.pipe);function ce(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var le=ce(),ue=le.FormData===void 0?void 0:le.FormData,de=e=>{let t;return e&&(ue&&e instanceof ue||b(e.append)&&((t=d(e))===`formdata`||t===`object`&&b(e.toString)&&e.toString()===`[object FormData]`))},fe=f(`URLSearchParams`),[pe,me,he,ge]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(f),_e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function T(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),m(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(g(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function ve(e,t){if(g(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var E=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,ye=e=>!h(e)&&e!==E;function be(){let{caseless:e,skipUndefined:t}=ye(this)&&this||{},n={},r=(r,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=e&&ve(n,i)||i;w(n[a])&&w(r)?n[a]=be(n[a],r):w(r)?n[a]=be({},r):m(r)?n[a]=r.slice():(!t||!h(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&T(arguments[e],r);return n}var xe=(e,t,n,{allOwnKeys:r}={})=>(T(t,(t,r)=>{n&&b(t)?Object.defineProperty(e,r,{value:o(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Se=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ce=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},we=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&c(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Te=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Ee=e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!x(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},De=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&c(Uint8Array)),Oe=(e,t)=>{let n=(e&&e[l]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},ke=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ae=f(`HTMLFormElement`),je=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),Me=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ne=f(`RegExp`),Pe=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};T(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Fe=e=>{Pe(e,(t,n)=>{if(b(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(b(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Ie=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return m(e)?r(e):r(String(e).split(t)),n},Le=()=>{},Re=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ze(e){return!!(e&&b(e.append)&&e[u]===`FormData`&&e[l])}var Be=e=>{let t=Array(10),n=(e,r)=>{if(S(e)){if(t.indexOf(e)>=0)return;if(g(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=m(e)?[]:{};return T(e,(e,t)=>{let a=n(e,r+1);!h(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},Ve=f(`AsyncFunction`),He=e=>e&&(S(e)||b(e))&&b(e.then)&&b(e.catch),Ue=((e,t)=>e?setImmediate:t?((e,t)=>(E.addEventListener(`message`,({source:n,data:r})=>{n===E&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),E.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,b(E.postMessage)),D={isArray:m,isArrayBuffer:_,isBuffer:g,isFormData:de,isArrayBufferView:v,isString:y,isNumber:x,isBoolean:C,isObject:S,isPlainObject:w,isEmptyObject:ee,isReadableStream:pe,isRequest:me,isResponse:he,isHeaders:ge,isUndefined:h,isDate:te,isFile:ne,isReactNativeBlob:re,isReactNative:ie,isBlob:ae,isRegExp:Ne,isFunction:b,isStream:se,isURLSearchParams:fe,isTypedArray:De,isFileList:oe,forEach:T,merge:be,extend:xe,trim:_e,stripBOM:Se,inherits:Ce,toFlatObject:we,kindOf:d,kindOfTest:f,endsWith:Te,toArray:Ee,forEachEntry:Oe,matchAll:ke,isHTMLForm:Ae,hasOwnProperty:Me,hasOwnProp:Me,reduceDescriptors:Pe,freezeMethods:Fe,toObjectSet:Ie,toCamelCase:je,noop:Le,toFiniteNumber:Re,findKey:ve,global:E,isContextDefined:ye,isSpecCompliantForm:ze,toJSONObject:Be,isAsyncFn:Ve,isThenable:He,setImmediate:Ue,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(E):typeof process<`u`&&process.nextTick||Ue,isIterable:e=>e!=null&&b(e[l])},O=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,`message`,{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){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:D.toJSONObject(this.config),code:this.code,status:this.status}}};O.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,O.ERR_BAD_OPTION=`ERR_BAD_OPTION`,O.ECONNABORTED=`ECONNABORTED`,O.ETIMEDOUT=`ETIMEDOUT`,O.ERR_NETWORK=`ERR_NETWORK`,O.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,O.ERR_DEPRECATED=`ERR_DEPRECATED`,O.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,O.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,O.ERR_CANCELED=`ERR_CANCELED`,O.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,O.ERR_INVALID_URL=`ERR_INVALID_URL`;function k(e){return D.isPlainObject(e)||D.isArray(e)}function We(e){return D.endsWith(e,`[]`)?e.slice(0,-2):e}function A(e,t,n){return e?e.concat(t).map(function(e,t){return e=We(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Ge(e){return D.isArray(e)&&!e.some(k)}var Ke=D.toFlatObject(D,{},null,function(e){return/^is[A-Z]/.test(e)});function j(e,t,n){if(!D.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!D.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(D.isDate(e))return e.toISOString();if(D.isBoolean(e))return e.toString();if(!s&&D.isBlob(e))throw new O(`Blob is not supported. Use a Buffer instead.`);return D.isArrayBuffer(e)||D.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(D.isReactNative(t)&&D.isReactNativeBlob(e))return t.append(A(i,n,a),c(e)),!1;if(e&&!i&&typeof e==`object`){if(D.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(D.isArray(e)&&Ge(e)||(D.isFileList(e)||D.endsWith(n,`[]`))&&(s=D.toArray(e)))return n=We(n),s.forEach(function(e,r){!(D.isUndefined(e)||e===null)&&t.append(o===!0?A([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return k(e)?!0:(t.append(A(i,n,a),c(e)),!1)}let u=[],d=Object.assign(Ke,{defaultVisitor:l,convertValue:c,isVisitable:k});function f(e,n){if(!D.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),D.forEach(e,function(e,r){(!(D.isUndefined(e)||e===null)&&i.call(t,e,D.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!D.isObject(e))throw TypeError(`data must be an object`);return f(e),t}function qe(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Je(e,t){this._pairs=[],e&&j(e,this,t)}var Ye=Je.prototype;Ye.append=function(e,t){this._pairs.push([e,t])},Ye.toString=function(e){let t=e?function(t){return e.call(this,t,qe)}:qe;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Xe(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Ze(e,t,n){if(!t)return e;let r=n&&n.encode||Xe,i=D.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):D.isURLSearchParams(t)?t.toString():new Je(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var Qe=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){D.forEach(this.handlers,function(t){t!==null&&e(t)})}},$e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},et={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Je,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},tt=e({hasBrowserEnv:()=>nt,hasStandardBrowserEnv:()=>it,hasStandardBrowserWebWorkerEnv:()=>at,navigator:()=>rt,origin:()=>ot}),nt=typeof window<`u`&&typeof document<`u`,rt=typeof navigator==`object`&&navigator||void 0,it=nt&&(!rt||[`ReactNative`,`NativeScript`,`NS`].indexOf(rt.product)<0),at=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,ot=nt&&window.location.href||`http://localhost`,M={...tt,...et};function st(e,t){return j(e,new M.classes.URLSearchParams,{visitor:function(e,t,n,r){return M.isNode&&D.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function ct(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function lt(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function ut(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&D.isArray(r)?r.length:a,s?(D.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!D.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&D.isArray(r[a])&&(r[a]=lt(r[a])),!o)}if(D.isFormData(e)&&D.isFunction(e.entries)){let n={};return D.forEachEntry(e,(e,r)=>{t(ct(e),r,n,0)}),n}return null}function dt(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var N={transitional:$e,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=D.isObject(e);if(i&&D.isHTMLForm(e)&&(e=new FormData(e)),D.isFormData(e))return r?JSON.stringify(ut(e)):e;if(D.isArrayBuffer(e)||D.isBuffer(e)||D.isStream(e)||D.isFile(e)||D.isBlob(e)||D.isReadableStream(e))return e;if(D.isArrayBufferView(e))return e.buffer;if(D.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return st(e,this.formSerializer).toString();if((a=D.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return j(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),dt(e)):e}],transformResponse:[function(e){let t=this.transitional||N.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(D.isResponse(e)||D.isReadableStream(e))return e;if(e&&D.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?O.from(e,O.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:M.classes.FormData,Blob:M.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};D.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{N.headers[e]={}});var ft=D.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`]),pt=e=>{let t={},n,r,i;return e&&e.split(`
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&ft[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},mt=Symbol(`internals`);function P(e){return e&&String(e).trim().toLowerCase()}function F(e){return e===!1||e==null?e:D.isArray(e)?e.map(F):String(e).replace(/[\r\n]+$/,``)}function ht(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var gt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function _t(e,t,n,r,i){if(D.isFunction(r))return r.call(this,t,n);if(i&&(t=n),D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function vt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function yt(e,t){let n=D.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var I=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=P(t);if(!i)throw Error(`header name must be a non-empty string`);let a=D.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=F(e))}let a=(e,t)=>D.forEach(e,(e,n)=>i(e,n,t));if(D.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(D.isString(e)&&(e=e.trim())&&!gt(e))a(pt(e),t);else if(D.isObject(e)&&D.isIterable(e)){let n={},r,i;for(let t of e){if(!D.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?D.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=P(e),e){let n=D.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return ht(e);if(D.isFunction(t))return t.call(this,e,n);if(D.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=P(e),e){let n=D.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||_t(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=P(e),e){let i=D.findKey(n,e);i&&(!t||_t(n,n[i],i,t))&&(delete n[i],r=!0)}}return D.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||_t(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return D.forEach(this,(r,i)=>{let a=D.findKey(n,i);if(a){t[a]=F(r),delete t[i];return}let o=e?vt(i):String(i).trim();o!==i&&delete t[i],t[o]=F(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return D.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&D.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[mt]=this[mt]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=P(e);t[r]||(yt(n,e),t[r]=!0)}return D.isArray(e)?e.forEach(r):r(e),this}};I.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),D.reduceDescriptors(I.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),D.freezeMethods(I);function L(e,t){let n=this||N,r=t||n,i=I.from(r.headers),a=r.data;return D.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function bt(e){return!!(e&&e.__CANCEL__)}var R=class extends O{constructor(e,t,n){super(e??`canceled`,O.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function xt(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new O(`Request failed with status code `+n.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function St(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}function Ct(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function wt(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var z=(e,t,n=3)=>{let r=0,i=Ct(50,250);return wt(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,c=i(s),l=a<=o;r=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Tt=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Et=e=>(...t)=>D.asap(()=>e(...t)),Dt=M.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,M.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(M.origin),M.navigator&&/(msie|trident)/i.test(M.navigator.userAgent)):()=>!0,Ot=M.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];D.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),D.isString(r)&&s.push(`path=${r}`),D.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),D.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function kt(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function At(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function jt(e,t,n){let r=!kt(t);return e&&(r||n==0)?At(e,t):t}var Mt=e=>e instanceof I?{...e}:e;function B(e,t){t||={};let n={};function r(e,t,n,r){return D.isPlainObject(e)&&D.isPlainObject(t)?D.merge.call({caseless:r},e,t):D.isPlainObject(t)?D.merge({},t):D.isArray(t)?t.slice():t}function i(e,t,n,i){if(!D.isUndefined(t))return r(e,t,n,i);if(!D.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!D.isUndefined(t))return r(void 0,t)}function o(e,t){if(!D.isUndefined(t))return r(void 0,t);if(!D.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(a in t)return r(n,i);if(a in e)return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(Mt(e),Mt(t),n,!0)};return D.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=D.hasOwnProp(c,r)?c[r]:i,o=a(e[r],t[r],r);D.isUndefined(o)&&a!==s||(n[r]=o)}),n}var Nt=e=>{let t=B({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=I.from(o),t.url=Ze(jt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set(`Authorization`,`Basic `+btoa((s.username||``)+`:`+(s.password?unescape(encodeURIComponent(s.password)):``))),D.isFormData(n)){if(M.hasStandardBrowserEnv||M.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(D.isFunction(n.getHeaders)){let e=n.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(M.hasStandardBrowserEnv&&(r&&D.isFunction(r)&&(r=r(t)),r||r!==!1&&Dt(t.url))){let e=i&&a&&Ot.read(a);e&&o.set(i,e)}return t},Pt=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Nt(e),i=r.data,a=I.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=I.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());xt(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf(`file:`)===0)||setTimeout(g)},h.onabort=function(){h&&=(n(new O(`Request aborted`,O.ECONNABORTED,e,h)),null)},h.onerror=function(t){let r=new O(t&&t.message?t.message:`Network Error`,O.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||$e;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new O(t,i.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&D.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),D.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=z(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=z(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new R(null,e,h):t),h.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=St(r.url);if(_&&M.protocols.indexOf(_)===-1){n(new O(`Unsupported protocol `+_+`:`,O.ERR_BAD_REQUEST,e));return}h.send(i||null)})},Ft=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof O?t:new R(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new O(`timeout of ${t}ms exceeded`,O.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>D.asap(o),s}},It=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Lt=async function*(e,t){for await(let n of Rt(e))yield*It(n,t)},Rt=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},zt=(e,t,n,r)=>{let i=Lt(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Bt=64*1024,{isFunction:V}=D,Vt=(({Request:e,Response:t})=>({Request:e,Response:t}))(D.global),{ReadableStream:Ht,TextEncoder:Ut}=D.global,Wt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Gt=e=>{e=D.merge.call({skipUndefined:!0},Vt,e);let{fetch:t,Request:n,Response:r}=e,i=t?V(t):typeof fetch==`function`,a=V(n),o=V(r);if(!i)return!1;let s=i&&V(Ht),c=i&&(typeof Ut==`function`?(e=>t=>e.encode(t))(new Ut):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&Wt(()=>{let e=!1,t=new Ht,r=new n(M.origin,{body:t,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`);return t.cancel(),e&&!r}),u=o&&s&&Wt(()=>D.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new O(`Response type '${e}' is not supported`,O.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(D.isBlob(e))return e.size;if(D.isSpecCompliantForm(e))return(await new n(M.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(D.isArrayBufferView(e)||D.isArrayBuffer(e))return e.byteLength;if(D.isURLSearchParams(e)&&(e+=``),D.isString(e))return(await c(e)).byteLength},p=async(e,t)=>D.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:_,headers:v,withCredentials:y=`same-origin`,fetchOptions:b}=Nt(e),x=t||fetch;_=_?(_+``).toLowerCase():`text`;let S=Ft([c,f&&f.toAbortSignal()],m),C=null,w=S&&S.unsubscribe&&(()=>{S.unsubscribe()}),ee;try{if(g&&l&&o!==`get`&&o!==`head`&&(ee=await p(v,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(D.isFormData(s)&&(t=e.headers.get(`content-type`))&&v.setContentType(t),e.body){let[t,n]=Tt(ee,z(Et(g)));s=zt(e.body,Bt,t,n)}}D.isString(y)||(y=y?`include`:`omit`);let t=a&&`credentials`in n.prototype,c={...b,signal:S,method:o.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:`half`,credentials:t?y:void 0};C=a&&new n(i,c);let f=await(a?x(C,b):x(i,c)),m=u&&(_===`stream`||_===`response`);if(u&&(h||m&&w)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=D.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=h&&Tt(t,z(Et(h),!0))||[];f=new r(zt(f.body,Bt,n,()=>{i&&i(),w&&w()}),e)}_||=`text`;let te=await d[D.findKey(d,_)||`text`](f,e);return!m&&w&&w(),await new Promise((t,n)=>{xt(t,n,{data:te,headers:I.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:C})})}catch(t){throw w&&w(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new O(`Network Error`,O.ERR_NETWORK,e,C,t&&t.response),{cause:t.cause||t}):O.from(t,t&&t.code,e,C,t&&t.response)}}},Kt=new Map,qt=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Kt;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Gt(t)),l=c;return c};qt();var Jt={http:null,xhr:Pt,fetch:{get:qt}};D.forEach(Jt,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});var Yt=e=>`- ${e}`,Xt=e=>D.isFunction(e)||e===null||e===!1;function Zt(e,t){e=D.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!Xt(r)&&(i=Jt[(n=String(r)).toLowerCase()],i===void 0))throw new O(`Unknown adapter '${n}'`);if(i&&(D.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new O(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
`+e.map(Yt).join(`
`):` `+Yt(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var Qt={getAdapter:Zt,adapters:Jt};function $t(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new R(null,e)}function en(e){return $t(e),e.headers=I.from(e.headers),e.data=L.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),Qt.getAdapter(e.adapter||N.adapter,e)(e).then(function(t){return $t(e),t.data=L.call(e,e.transformResponse,t),t.headers=I.from(t.headers),t},function(t){return bt(t)||($t(e),t&&t.response&&(t.response.data=L.call(e,e.transformResponse,t.response),t.response.headers=I.from(t.response.headers))),Promise.reject(t)})}var tn=`1.14.0`,H={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{H[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var nn={};H.transitional=function(e,t,n){function r(e,t){return`[Axios v`+tn+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new O(r(i,` has been removed`+(t?` in `+t:``)),O.ERR_DEPRECATED);return t&&!nn[i]&&(nn[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},H.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function rn(e,t,n){if(typeof e!=`object`)throw new O(`options must be an object`,O.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=t[a];if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new O(`option `+a+` must be `+n,O.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new O(`Unknown option `+a,O.ERR_BAD_OPTION)}}var U={assertOptions:rn,validators:H},W=U.validators,G=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Qe,response:new Qe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,``):``;try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,``))&&(e.stack+=`
`+n):e.stack=n}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=B(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&U.assertOptions(n,{silentJSONParsing:W.transitional(W.boolean),forcedJSONParsing:W.transitional(W.boolean),clarifyTimeoutError:W.transitional(W.boolean),legacyInterceptorReqResOrdering:W.transitional(W.boolean)},!1),r!=null&&(D.isFunction(r)?t.paramsSerializer={serialize:r}:U.assertOptions(r,{encode:W.function,serialize:W.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),U.assertOptions(t,{baseUrl:W.spelling(`baseURL`),withXsrfToken:W.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&D.merge(i.common,i[t.method]);i&&D.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=I.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||$e;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[en.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=en.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=B(this.defaults,e),Ze(jt(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};D.forEach([`delete`,`get`,`head`,`options`],function(e){G.prototype[e]=function(t,n){return this.request(B(n||{},{method:e,url:t,data:(n||{}).data}))}}),D.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(B(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}G.prototype[e]=t(),G.prototype[e+`Form`]=t(!0)});var an=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new R(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function on(e){return function(t){return e.apply(null,t)}}function sn(e){return D.isObject(e)&&e.isAxiosError===!0}var cn={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,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(cn).forEach(([e,t])=>{cn[t]=e});function ln(e){let t=new G(e),n=o(G.prototype.request,t);return D.extend(n,G.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return ln(B(e,t))},n}var K=ln(N);K.Axios=G,K.CanceledError=R,K.CancelToken=an,K.isCancel=bt,K.VERSION=tn,K.toFormData=j,K.AxiosError=O,K.Cancel=K.CanceledError,K.all=function(e){return Promise.all(e)},K.spread=on,K.isAxiosError=sn,K.mergeConfig=B,K.AxiosHeaders=I,K.formToJSON=e=>ut(D.isHTMLForm(e)?new FormData(e):e),K.getAdapter=Qt.getAdapter,K.HttpStatusCode=cn,K.default=K;var un=`pymc_jwt_token`,dn=`pymc_client_id`;function fn(){let e=localStorage.getItem(dn);return e||(e=`${Date.now()}-${Math.random().toString(36).substring(2,15)}`,localStorage.setItem(dn,e)),e}function q(){return localStorage.getItem(un)}function pn(e){localStorage.setItem(un,e)}function mn(){localStorage.removeItem(un)}function hn(){return q()!==null}function gn(e){try{let t=e.split(`.`)[1].replace(/-/g,`+`).replace(/_/g,`/`),n=decodeURIComponent(atob(t).split(``).map(e=>`%`+(`00`+e.charCodeAt(0).toString(16)).slice(-2)).join(``));return JSON.parse(n)}catch{return null}}function J(){let e=q();if(!e)return!0;let t=gn(e);return!t||!t.exp?!0:Date.now()>=t.exp*1e3-3e4}function _n(){let e=q();if(!e)return!1;let t=gn(e);if(!t||!t.exp)return!1;let n=t.exp*1e3-Date.now();return n>0&&n<3e5}function vn(){let e=q();if(!e)return null;let t=gn(e);return!t||!t.sub?null:t.sub}var yn=`modulepreload`,bn=function(e){return`/`+e},xn={},Y=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=bn(t,n),t in xn)return;xn[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:yn,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},X=a({history:r(`/`),routes:[{path:`/setup`,name:`setup`,component:()=>Y(()=>import(`./Setup-DvdSE7ue.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),meta:{requiresAuth:!1,requiresSetup:!1}},{path:`/login`,name:`login`,component:()=>Y(()=>import(`./Login-Yx7HUvzW.js`),__vite__mapDeps([11,1,2,3,4,5,6,7,8,9,12])),meta:{requiresAuth:!1}},{path:`/`,name:`dashboard`,component:()=>Y(()=>import(`./Dashboard-ClL05x7j.js`),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,14,15,16,17])),meta:{requiresAuth:!0}},{path:`/neighbors`,name:`neighbors`,component:()=>Y(()=>import(`./Neighbors-CQcUQfDG.js`),__vite__mapDeps([18,1,19,2,3,4,5,6,7,8,9,20,15,16,21,22])),meta:{requiresAuth:!0}},{path:`/statistics`,name:`statistics`,component:()=>Y(()=>import(`./Statistics-S4HgWYku.js`),__vite__mapDeps([23,1,19,2,3,4,5,6,7,8,9,14,24,25,26,16,27])),meta:{requiresAuth:!0}},{path:`/system-stats`,name:`system-stats`,component:()=>Y(()=>import(`./SystemStats-4wDqjB6x.js`),__vite__mapDeps([28,1,19,14,3,24,25,29])),meta:{requiresAuth:!0}},{path:`/configuration`,name:`configuration`,component:()=>Y(()=>import(`./Configuration-BoG9PyTQ.js`),__vite__mapDeps([30,1,19,2,3,4,5,6,7,8,9,31,16,32,22])),meta:{requiresAuth:!0}},{path:`/cad-calibration`,name:`cad-calibration`,component:()=>Y(()=>import(`./CADCalibration-CK9zSc8M.js`),__vite__mapDeps([33,1,19,3,26,7,4,34])),meta:{requiresAuth:!0}},{path:`/sessions`,name:`sessions`,component:()=>Y(()=>import(`./Sessions-DhR0b50N.js`),__vite__mapDeps([35,2,1,3,4,5,6,7,8,9])),meta:{requiresAuth:!0}},{path:`/room-servers`,name:`room-servers`,component:()=>Y(()=>import(`./RoomServers-Cngso7KV.js`),__vite__mapDeps([36,2,1,3,4,5,6,7,8,9,31,37,16])),meta:{requiresAuth:!0}},{path:`/companions`,name:`companions`,component:()=>Y(()=>import(`./Companions-Cm95T8nb.js`),__vite__mapDeps([38,2,1,3,4,5,6,7,8,9,31,37])),meta:{requiresAuth:!0}},{path:`/logs`,name:`logs`,component:()=>Y(()=>import(`./Logs-DiVYCMnG.js`),__vite__mapDeps([39,3])),meta:{requiresAuth:!0}},{path:`/terminal`,name:`terminal`,component:()=>Y(()=>import(`./Terminal-Dpu_GlNL.js`),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,41])),meta:{requiresAuth:!0}},{path:`/help`,name:`help`,component:()=>Y(()=>import(`./Help-CaIFoQMt.js`),__vite__mapDeps([42,3])),meta:{requiresAuth:!0}}]});async function Sn(){try{let e=await fetch(`/api/needs_setup`,{headers:{Accept:`application/json`}});return e.ok?(await e.json()).needs_setup===!0:(console.error(`Setup check failed:`,e.status),!1)}catch(e){return console.error(`Error checking setup status:`,e),!1}}X.beforeEach(async(e,t,n)=>{let r=e.meta.requiresAuth!==!1,i=hn();if(e.path!==`/setup`&&await Sn()){n(`/setup`);return}if(e.path===`/setup`&&!await Sn()){n(`/login`);return}r&&!i?n(`/login`):e.path===`/login`&&i?n(`/`):n()});var Z=i(`appRuntime`,()=>{let e=n(typeof navigator>`u`?!0:navigator.onLine),r=n(typeof document>`u`?!0:document.visibilityState===`visible`),i=n(!1),a=n(null),o=n(!1),s=t(()=>e.value&&r.value&&i.value&&!o.value);function c(){i.value=!!q()&&!J(),i.value||(a.value=a.value??`expired`)}function l(){i.value=!0,a.value=null,o.value=!1}function u(t){e.value=t}function d(e){r.value=e}async function f(e){if(o.value)return;o.value=!0,a.value=e,i.value=!1;let{useWebSocketStore:t}=await Y(async()=>{let{useWebSocketStore:e}=await import(`./websocket-NnYyxr--.js`);return{useWebSocketStore:e}},__vite__mapDeps([43,8,3,4,6,7])),{usePacketStore:n}=await Y(async()=>{let{usePacketStore:e}=await import(`./packets-B_GG5R7y.js`);return{usePacketStore:e}},__vite__mapDeps([44,6,3,4])),{useSystemStore:r}=await Y(async()=>{let{useSystemStore:e}=await import(`./system-Cl32lKH8.js`);return{useSystemStore:e}},__vite__mapDeps([45,7,3,4])),s=t(),c=n(),l=r();s.disconnect({preventReconnect:!0,silent:e!==`logout`}),c.reset(),l.reset(),mn(),X.currentRoute.value.path!==`/login`&&await X.push(`/login`),o.value=!1}async function p(e){await f(e)}return{isOnline:e,isDocumentVisible:r,isAuthenticated:i,authFailureReason:a,canMaintainConnections:s,syncAuthState:c,markAuthenticated:l,setOnline:u,setDocumentVisible:d,stopSession:f,handleAuthFailure:p}}),Cn=`/api`,wn=!1,Q=null;async function Tn(){return wn&&Q?Q:(wn=!0,Q=(async()=>{try{let e=q();if(!e)throw Error(`No token to refresh`);let t=fn(),n=await K.post(`/auth/refresh`,{client_id:t},{headers:{Authorization:`Bearer ${e}`,"Content-Type":`application/json`}});if(n.data.success&&n.data.token){let e=n.data.token;return pn(e),e}else throw Error(`Token refresh failed`)}catch(e){throw console.error(`Token refresh error:`,e),await Z().handleAuthFailure(`expired`),e}finally{wn=!1,Q=null}})(),Q)}var $=K.create({baseURL:Cn,timeout:5e3,headers:{"Content-Type":`application/json`}}),En=K.create({baseURL:``,timeout:5e3,headers:{"Content-Type":`application/json`}});En.interceptors.request.use(async e=>{if(e.url?.includes(`/auth/login`)||e.url?.includes(`/auth/refresh`))return e;let t=q();if(t){if(_n())try{let t=await Tn();return e.headers.Authorization=`Bearer ${t}`,e}catch(e){return Promise.reject(e)}if(J())return Z().handleAuthFailure(`expired`),Promise.reject(Error(`Token expired`));e.headers.Authorization=`Bearer ${t}`}return e},e=>(console.error(`Auth API Request Error:`,e),Promise.reject(e))),En.interceptors.response.use(e=>e,e=>((e.response?.status===401||e.response?.status===403)&&Z().handleAuthFailure(e.response?.status===403?`forbidden`:`unauthorized`),console.error(`Auth API Response Error:`,e.response?.data||e.message),Promise.reject(e))),$.interceptors.request.use(async e=>{if(e.url?.includes(`/auth/login`))return e;let t=q();if(t){if(_n())try{let t=await Tn();return e.headers.Authorization=`Bearer ${t}`,e}catch(e){return Promise.reject(e)}if(J())return Z().handleAuthFailure(`expired`),Promise.reject(Error(`Token expired`));e.headers.Authorization=`Bearer ${t}`}return e},e=>(console.error(`API Request Error:`,e),Promise.reject(e))),$.interceptors.response.use(e=>e,e=>((e.response?.status===401||e.response?.status===403)&&Z().handleAuthFailure(e.response?.status===403?`forbidden`:`unauthorized`),console.error(`API Response Error:`,e.response?.data||e.message),Promise.reject(e)));var Dn=class{static async get(e,t){try{return(await $.get(e,{params:t})).data}catch(e){throw this.handleError(e)}}static async post(e,t,n){try{return(await $.post(e,t,n)).data}catch(e){throw this.handleError(e)}}static async put(e,t,n){try{return(await $.put(e,t,n)).data}catch(e){throw this.handleError(e)}}static async delete(e,t){try{return(await $.delete(e,t)).data}catch(e){throw this.handleError(e)}}static async getTransportKeys(){return this.get(`transport_keys`)}static async sendAdvert(){return this.post(`send_advert`,{},{headers:{"Content-Type":`application/json`}})}static async createTransportKey(e,t,n,r,i){let a={name:e,flood_policy:t,parent_id:r,last_used:i};return n!==void 0&&(a.transport_key=n),this.post(`transport_keys`,a)}static async getTransportKey(e){return this.get(`transport_key/${e}`)}static async updateTransportKey(e,t,n,r,i,a){return this.put(`transport_key/${e}`,{name:t,flood_policy:n,transport_key:r,parent_id:i,last_used:a})}static async deleteTransportKey(e){return this.delete(`transport_key/${e}`)}static async updateUnscopedFloodPolicy(e){return this.post(`unscoped_flood_policy`,{unscoped_flood_allow:e})}static async getLogs(){try{return(await $.get(`logs`)).data}catch(e){throw this.handleError(e)}}static async deleteAdvert(e){return this.delete(`advert/${e}`)}static async pingNeighbor(e,t=10){return this.post(`ping_neighbor`,{target_id:e,timeout:t})}static async getIdentities(){return this.get(`identities`)}static async getIdentity(e){return this.get(`identity`,{name:e})}static async createIdentity(e){return this.post(`create_identity`,e)}static async updateIdentity(e){return this.put(`update_identity`,e)}static async deleteIdentity(e,t=`room_server`){let n=new URLSearchParams({name:e});return t===`companion`&&n.set(`type`,`companion`),this.delete(`delete_identity?${n.toString()}`)}static async sendRoomServerAdvert(e){return this.post(`send_room_server_advert`,{name:e})}static async importRepeaterContacts(e){return this.post(`companion/import_repeater_contacts`,e)}static async getACLInfo(){return this.get(`acl_info`)}static async getACLClients(e){return this.get(`acl_clients`,e)}static async removeACLClient(e){return this.post(`acl_remove_client`,e)}static async getACLStats(){return this.get(`acl_stats`)}static async getRoomMessages(e){return this.get(`room_messages`,e)}static async postRoomMessage(e){return this.post(`room_post_message`,e)}static async deleteRoomMessage(e){return this.delete(`room_message?room_name=${encodeURIComponent(e.room_name)}&message_id=${e.message_id}`)}static async clearRoomMessages(e){return this.delete(`room_messages?room_name=${encodeURIComponent(e)}`)}static async getRoomStats(e){return this.get(`room_stats`,e?{room_name:e}:void 0)}static async getRoomClients(e){return this.get(`room_clients`,{room_name:e})}static async exportConfig(e=!1){let t=e?`config_export?include_secrets=true`:`config_export`;return this.get(t)}static async importConfig(e){return this.post(`config_import`,{config:e})}static async exportIdentityKey(){return this.get(`identity_export`)}static async generateVanityKey(e,t=!1){return this.post(`generate_vanity_key`,{prefix:e,apply:t})}static async getDbStats(){return this.get(`db_stats`)}static async purgeTable(e){return this.post(`db_purge`,{tables:e})}static async vacuumDb(){return this.post(`db_vacuum`,{})}static handleError(e){if(K.isAxiosError(e)){if(e.response){let t=e.response.data?.error||e.response.data?.message||`HTTP ${e.response.status}`;return Error(t)}else if(e.request)return Error(`Network error - no response received`)}return Error(e instanceof Error?e.message:`Unknown error occurred`)}};export{Y as a,q as c,J as d,pn as f,X as i,vn as l,En as n,mn as o,Z as r,fn as s,Dn as t,hn as u};