Files
Atomcms-edit/public/build/assets/axios-BgauIbGG.js
T
root 943d5bfc38 feat: install and configure Inertia.js with React
- Install inertia-laravel, @inertiajs/react, react, @vitejs/plugin-react
- Add HandleInertiaRequests middleware registered in web group
- Create Inertia root template (resources/views/app.blade.php)
- Add React entry point and page components (resources/js/)
- Add Inertia demo route (/inertia-test)
- HomeController reverted to Blade (index page stays original)
- Remove inertia-test2 test route
2026-05-25 15:15:14 +02:00

10 lines
41 KiB
JavaScript

import{n as At}from"./chunk-BqhQeaEc.js";function et(e,t){return function(){return e.apply(t,arguments)}}var{toString:vt}=Object.prototype,{getPrototypeOf:ce}=Object,{iterator:fe,toStringTag:tt}=Symbol,de=(e=>t=>{const r=vt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),D=e=>(e=e.toLowerCase(),t=>de(t)===e),pe=e=>t=>typeof t===e,{isArray:$}=Array,J=pe("undefined");function Q(e){return e!==null&&!J(e)&&e.constructor!==null&&!J(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var rt=D("ArrayBuffer");function Tt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rt(e.buffer),t}var Ct=pe("string"),x=pe("function"),nt=pe("number"),Y=e=>e!==null&&typeof e=="object",xt=e=>e===!0||e===!1,ie=e=>{if(de(e)!=="object")return!1;const t=ce(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(tt in e)&&!(fe in e)},Nt=e=>{if(!Y(e)||Q(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Pt=D("Date"),Dt=D("File"),Lt=e=>!!(e&&typeof e.uri<"u"),Ut=e=>e&&typeof e.getParts<"u",Ft=D("Blob"),Bt=D("FileList"),kt=e=>Y(e)&&x(e.pipe);function jt(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var qe=jt(),He=typeof qe.FormData<"u"?qe.FormData:void 0,It=e=>{if(!e)return!1;if(He&&e instanceof He)return!0;const t=ce(e);if(!t||t===Object.prototype||!x(e.append))return!1;const r=de(e);return r==="formdata"||r==="object"&&x(e.toString)&&e.toString()==="[object FormData]"},qt=D("URLSearchParams"),[Ht,Mt,zt,Vt]=["ReadableStream","Request","Response","Headers"].map(D),Wt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Z(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),$(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{if(Q(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(n=0;n<i;n++)l=o[n],t.call(null,e[l],l,e)}}function st(e,t){if(Q(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}var H=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ot=e=>!J(e)&&e!==H;function Se(...e){const{caseless:t,skipUndefined:r}=ot(this)&&this||{},n={},s=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const l=t&&st(n,i)||i,u=_e(n,l)?n[l]:void 0;ie(u)&&ie(o)?n[l]=Se(u,o):ie(o)?n[l]=Se({},o):$(o)?n[l]=o.slice():(!r||!J(o))&&(n[l]=o)};for(let o=0,i=e.length;o<i;o++)e[o]&&Z(e[o],s);return n}var Jt=(e,t,r,{allOwnKeys:n}={})=>(Z(t,(s,o)=>{r&&x(s)?Object.defineProperty(e,o,{__proto__:null,value:et(s,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),$t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Kt=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},Xt=(e,t,r,n)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&ce(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Gt=(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},Qt=e=>{if(!e)return null;if($(e))return e;let t=e.length;if(!nt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Yt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ce(Uint8Array)),Zt=(e,t)=>{const r=(e&&e[fe]).call(e);let n;for(;(n=r.next())&&!n.done;){const s=n.value;t.call(e,s[0],s[1])}},er=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},tr=D("HTMLFormElement"),rr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),_e=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),nr=D("RegExp"),it=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Z(r,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(n[o]=i||s)}),Object.defineProperties(e,n)},sr=e=>{it(e,(t,r)=>{if(x(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];if(x(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+"'")})}})},or=(e,t)=>{const r={},n=s=>{s.forEach(o=>{r[o]=!0})};return $(e)?n(e):n(String(e).split(t)),r},ir=()=>{},ar=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function lr(e){return!!(e&&x(e.append)&&e[tt]==="FormData"&&e[fe])}var ur=e=>{const t=new WeakSet,r=n=>{if(Y(n)){if(t.has(n))return;if(Q(n))return n;if(!("toJSON"in n)){t.add(n);const s=$(n)?[]:{};return Z(n,(o,i)=>{const l=r(o);!J(l)&&(s[i]=l)}),t.delete(n),s}}return n};return r(e)},cr=D("AsyncFunction"),fr=e=>e&&(Y(e)||x(e))&&x(e.then)&&x(e.catch),at=((e,t)=>e?setImmediate:t?((r,n)=>(H.addEventListener("message",({source:s,data:o})=>{s===H&&o===r&&n.length&&n.shift()()},!1),s=>{n.push(s),H.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",x(H.postMessage)),dr=typeof queueMicrotask<"u"?queueMicrotask.bind(H):typeof process<"u"&&process.nextTick||at,pr=e=>e!=null&&x(e[fe]),a={isArray:$,isArrayBuffer:rt,isBuffer:Q,isFormData:It,isArrayBufferView:Tt,isString:Ct,isNumber:nt,isBoolean:xt,isObject:Y,isPlainObject:ie,isEmptyObject:Nt,isReadableStream:Ht,isRequest:Mt,isResponse:zt,isHeaders:Vt,isUndefined:J,isDate:Pt,isFile:Dt,isReactNativeBlob:Lt,isReactNative:Ut,isBlob:Ft,isRegExp:nr,isFunction:x,isStream:kt,isURLSearchParams:qt,isTypedArray:Yt,isFileList:Bt,forEach:Z,merge:Se,extend:Jt,trim:Wt,stripBOM:$t,inherits:Kt,toFlatObject:Xt,kindOf:de,kindOfTest:D,endsWith:Gt,toArray:Qt,forEachEntry:Zt,matchAll:er,isHTMLForm:tr,hasOwnProperty:_e,hasOwnProp:_e,reduceDescriptors:it,freezeMethods:sr,toObjectSet:or,toCamelCase:rr,noop:ir,toFiniteNumber:ar,findKey:st,global:H,isContextDefined:ot,isSpecCompliantForm:lr,toJSONObject:ur,isAsyncFn:cr,isThenable:fr,setImmediate:at,asap:dr,isIterable:pr},hr=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"]),mr=e=>{const t={};let r,n,s;return e&&e.split(`
`).forEach(function(i){s=i.indexOf(":"),r=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!r||t[r]&&hr[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};function yr(e){let t=0,r=e.length;for(;t<r;){const n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){const n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}var br=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),wr=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ce(e,t){return a.isArray(e)?e.map(r=>Ce(r,t)):yr(String(e).replace(t,""))}var Er=e=>Ce(e,br),Rr=e=>Ce(e,wr);function lt(e){const t=Object.create(null);return a.forEach(e.toJSON(),(r,n)=>{t[n]=Rr(r)}),t}var Me=Symbol("internals");function G(e){return e&&String(e).trim().toLowerCase()}function ae(e){return e===!1||e==null?e:a.isArray(e)?e.map(ae):Er(String(e))}function gr(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}var Or=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ee(e,t,r,n,s){if(a.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!a.isString(t)){if(a.isString(n))return t.indexOf(n)!==-1;if(a.isRegExp(n))return n.test(t)}}function Sr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function _r(e,t){const r=a.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(s,o,i){return this[n].call(this,t,s,o,i)},configurable:!0})})}var T=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function s(i,l,u){const c=G(l);if(!c)throw new Error("header name must be a non-empty string");const f=a.findKey(n,c);(!f||n[f]===void 0||u===!0||u===void 0&&n[f]!==!1)&&(n[f||l]=ae(i))}const o=(i,l)=>a.forEach(i,(u,c)=>s(u,c,l));if(a.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(a.isString(e)&&(e=e.trim())&&!Or(e))o(mr(e),t);else if(a.isObject(e)&&a.isIterable(e)){let i={},l,u;for(const c of e){if(!a.isArray(c))throw TypeError("Object iterator must return a key-value pair");i[u=c[0]]=(l=i[u])?a.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(i,t)}else e!=null&&s(t,e,r);return this}get(e,t){if(e=G(e),e){const r=a.findKey(this,e);if(r){const n=this[r];if(!t)return n;if(t===!0)return gr(n);if(a.isFunction(t))return t.call(this,n,r);if(a.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=G(e),e){const r=a.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||Ee(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let n=!1;function s(o){if(o=G(o),o){const i=a.findKey(r,o);i&&(!t||Ee(r,r[i],i,t))&&(delete r[i],n=!0)}}return a.isArray(e)?e.forEach(s):s(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const s=t[r];(!e||Ee(this,this[s],s,e,!0))&&(delete this[s],n=!0)}return n}normalize(e){const t=this,r={};return a.forEach(this,(n,s)=>{const o=a.findKey(r,s);if(o){t[o]=ae(n),delete t[s];return}const i=e?Sr(s):String(s).trim();i!==s&&delete t[s],t[i]=ae(n),r[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return a.forEach(this,(r,n)=>{r!=null&&r!==!1&&(t[n]=e&&a.isArray(r)?r.join(", "):r)}),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){const r=new this(e);return t.forEach(n=>r.set(n)),r}static accessor(e){const t=(this[Me]=this[Me]={accessors:{}}).accessors,r=this.prototype;function n(s){const o=G(s);t[o]||(_r(r,s),t[o]=!0)}return a.isArray(e)?e.forEach(n):n(e),this}};T.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(T.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});a.freezeMethods(T);var Ar="[REDACTED ****]";function vr(e){if(a.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(a.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Tr(e,t){const r=new Set(t.map(o=>String(o).toLowerCase())),n=[],s=o=>{if(o===null||typeof o!="object"||a.isBuffer(o))return o;if(n.indexOf(o)!==-1)return;o instanceof T&&(o=o.toJSON()),n.push(o);let i;if(a.isArray(o))i=[],o.forEach((l,u)=>{const c=s(l);a.isUndefined(c)||(i[u]=c)});else{if(!a.isPlainObject(o)&&vr(o))return n.pop(),o;i=Object.create(null);for(const[l,u]of Object.entries(o)){const c=r.has(l.toLowerCase())?Ar:s(u);a.isUndefined(c)||(i[l]=c)}}return n.pop(),i};return s(e)}var p=class ut extends Error{static from(t,r,n,s,o,i){const l=new ut(t.message,r||t.code,n,s,o);return l.cause=t,l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),i&&Object.assign(l,i),l}constructor(t,r,n,s,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,r=t&&a.hasOwnProp(t,"redact")?t.redact:void 0,n=a.isArray(r)&&r.length>0?Tr(t,r):a.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};p.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";p.ERR_BAD_OPTION="ERR_BAD_OPTION";p.ECONNABORTED="ECONNABORTED";p.ETIMEDOUT="ETIMEDOUT";p.ECONNREFUSED="ECONNREFUSED";p.ERR_NETWORK="ERR_NETWORK";p.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";p.ERR_DEPRECATED="ERR_DEPRECATED";p.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";p.ERR_BAD_REQUEST="ERR_BAD_REQUEST";p.ERR_CANCELED="ERR_CANCELED";p.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";p.ERR_INVALID_URL="ERR_INVALID_URL";p.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function Ae(e){return a.isPlainObject(e)||a.isArray(e)}function ct(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Re(e,t,r){return e?e.concat(t).map(function(s,o){return s=ct(s),!r&&o?"["+s+"]":s}).join(r?".":""):t}function Cr(e){return a.isArray(e)&&!e.some(Ae)}var xr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function he(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(d,h){return!a.isUndefined(h[d])});const n=r.metaTokens,s=r.visitor||m,o=r.dots,i=r.indexes,l=r.Blob||typeof Blob<"u"&&Blob,u=r.maxDepth===void 0?100:r.maxDepth,c=l&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(a.isDate(y))return y.toISOString();if(a.isBoolean(y))return y.toString();if(!c&&a.isBlob(y))throw new p("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(y)||a.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function m(y,d,h){let g=y;if(a.isReactNative(t)&&a.isReactNativeBlob(y))return t.append(Re(h,d,o),f(y)),!1;if(y&&!h&&typeof y=="object"){if(a.endsWith(d,"{}"))d=n?d:d.slice(0,-2),y=JSON.stringify(y);else if(a.isArray(y)&&Cr(y)||(a.isFileList(y)||a.endsWith(d,"[]"))&&(g=a.toArray(y)))return d=ct(d),g.forEach(function(E,C){!(a.isUndefined(E)||E===null)&&t.append(i===!0?Re([d],C,o):i===null?d:d+"[]",f(E))}),!1}return Ae(y)?!0:(t.append(Re(h,d,o),f(y)),!1)}const b=[],w=Object.assign(xr,{defaultVisitor:m,convertValue:f,isVisitable:Ae});function S(y,d,h=0){if(!a.isUndefined(y)){if(h>u)throw new p("Object is too deeply nested ("+h+" levels). Max depth: "+u,p.ERR_FORM_DATA_DEPTH_EXCEEDED);if(b.indexOf(y)!==-1)throw Error("Circular reference detected in "+d.join("."));b.push(y),a.forEach(y,function(R,E){(!(a.isUndefined(R)||R===null)&&s.call(t,R,a.isString(E)?E.trim():E,d,w))===!0&&S(R,d?d.concat(E):[E],h+1)}),b.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function ze(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(n){return t[n]})}function xe(e,t){this._pairs=[],e&&he(e,this,t)}var ft=xe.prototype;ft.append=function(t,r){this._pairs.push([t,r])};ft.toString=function(t){const r=t?function(n){return t.call(this,n,ze)}:ze;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function Nr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dt(e,t,r){if(!t)return e;const n=r&&r.encode||Nr,s=a.isFunction(r)?{serialize:r}:r,o=s&&s.serialize;let i;if(o?i=o(t,s):i=a.isURLSearchParams(t)?t.toString():new xe(t,s).toString(n),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}var Ve=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(r){r!==null&&e(r)})}},Ne={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Pr=typeof URLSearchParams<"u"?URLSearchParams:xe,Dr=typeof FormData<"u"?FormData:null,Lr=typeof Blob<"u"?Blob:null,Ur={isBrowser:!0,classes:{URLSearchParams:Pr,FormData:Dr,Blob:Lr},protocols:["http","https","file","blob","url","data"]},Fr=At({hasBrowserEnv:()=>Pe,hasStandardBrowserEnv:()=>Br,hasStandardBrowserWebWorkerEnv:()=>kr,navigator:()=>ve,origin:()=>jr}),Pe=typeof window<"u"&&typeof document<"u",ve=typeof navigator=="object"&&navigator||void 0,Br=Pe&&(!ve||["ReactNative","NativeScript","NS"].indexOf(ve.product)<0),kr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jr=Pe&&window.location.href||"http://localhost",v={...Fr,...Ur};function Ir(e,t){return he(e,new v.classes.URLSearchParams,{visitor:function(r,n,s,o){return v.isNode&&a.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function qr(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Hr(e){const t={},r=Object.keys(e);let n;const s=r.length;let o;for(n=0;n<s;n++)o=r[n],t[o]=e[o];return t}function pt(e){function t(r,n,s,o){let i=r[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),u=o>=r.length;return i=!i&&a.isArray(s)?s.length:i,u?(a.hasOwnProp(s,i)?s[i]=a.isArray(s[i])?s[i].concat(n):[s[i],n]:s[i]=n,!l):((!a.hasOwnProp(s,i)||!a.isObject(s[i]))&&(s[i]=[]),t(r,n,s[i],o)&&a.isArray(s[i])&&(s[i]=Hr(s[i])),!l)}if(a.isFormData(e)&&a.isFunction(e.entries)){const r={};return a.forEachEntry(e,(n,s)=>{t(qr(n),s,r,0)}),r}return null}var W=(e,t)=>e!=null&&a.hasOwnProp(e,t)?e[t]:void 0;function Mr(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)}var ee={transitional:Ne,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(pt(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 i;if(o){const l=W(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ir(t,l).toString();if((i=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=W(this,"env"),c=u&&u.FormData;return he(i?{"files[]":t}:t,c&&new c,l)}}return o||s?(r.setContentType("application/json",!1),Mr(t)):t}],transformResponse:[function(t){const r=W(this,"transitional")||ee.transitional,n=r&&r.forcedJSONParsing,s=W(this,"responseType"),o=s==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!s||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,W(this,"parseReviver"))}catch(l){if(i)throw l.name==="SyntaxError"?p.from(l,p.ERR_BAD_RESPONSE,this,null,W(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:v.classes.FormData,Blob:v.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","query"],e=>{ee.headers[e]={}});function ge(e,t){const r=this||ee,n=t||r,s=T.from(n.headers);let o=n.data;return a.forEach(e,function(l){o=l.call(r,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function ht(e){return!!(e&&e.__CANCEL__)}var te=class extends p{constructor(e,t,r){super(e??"canceled",p.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function mt(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new p("Request failed with status code "+r.status,r.status>=400&&r.status<500?p.ERR_BAD_REQUEST:p.ERR_BAD_RESPONSE,r.config,r.request,r))}function zr(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 s=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),f=n[o];i||(i=c),r[s]=u,n[s]=c;let m=o,b=0;for(;m!==s;)b+=r[m++],m=m%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const w=f&&c-f;return w?Math.round(b*1e3/w):void 0}}function Wr(e,t){let r=0,n=1e3/t,s,o;const i=(c,f=Date.now())=>{r=f,s=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const f=Date.now(),m=f-r;m>=n?i(c,f):(s=c,o||(o=setTimeout(()=>{o=null,i(s)},n-m)))},()=>s&&i(s)]}var ue=(e,t,r=3)=>{let n=0;const s=Vr(50,250);return Wr(o=>{if(!o||typeof o.loaded!="number")return;const i=o.loaded,l=o.lengthComputable?o.total:void 0,u=l!=null?Math.min(i,l):i,c=Math.max(0,u-n),f=s(c);n=Math.max(n,u),e({loaded:u,total:l,progress:l?u/l:void 0,bytes:c,rate:f||void 0,estimated:f&&l?(l-u)/f:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0})},r)},We=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Je=e=>(...t)=>a.asap(()=>e(...t)),Jr=v.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,v.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(v.origin),v.navigator&&/(msie|trident)/i.test(v.navigator.userAgent)):()=>!0,$r=v.hasStandardBrowserEnv?{write(e,t,r,n,s,o,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(s)&&l.push(`domain=${s}`),o===!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.split(";");for(let r=0;r<t.length;r++){const n=t[r].replace(/^\s+/,""),s=n.indexOf("=");if(s!==-1&&n.slice(0,s)===e)return decodeURIComponent(n.slice(s+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Kr(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yt(e,t,r){let n=!Kr(t);return e&&(n||r===!1)?Xr(e,t):t}var $e=e=>e instanceof T?{...e}:e;function z(e,t){t=t||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(c,f,m,b){return a.isPlainObject(c)&&a.isPlainObject(f)?a.merge.call({caseless:b},c,f):a.isPlainObject(f)?a.merge({},f):a.isArray(f)?f.slice():f}function s(c,f,m,b){if(a.isUndefined(f)){if(!a.isUndefined(c))return n(void 0,c,m,b)}else return n(c,f,m,b)}function o(c,f){if(!a.isUndefined(f))return n(void 0,f)}function i(c,f){if(a.isUndefined(f)){if(!a.isUndefined(c))return n(void 0,c)}else return n(void 0,f)}function l(c,f,m){if(a.hasOwnProp(t,m))return n(c,f);if(a.hasOwnProp(e,m))return n(void 0,c)}const u={url:o,method:o,data:o,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,allowedSocketPaths:i,responseEncoding:i,validateStatus:l,headers:(c,f,m)=>s($e(c),$e(f),m,!0)};return a.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const m=a.hasOwnProp(u,f)?u[f]:s,b=m(a.hasOwnProp(e,f)?e[f]:void 0,a.hasOwnProp(t,f)?t[f]:void 0,f);a.isUndefined(b)&&m!==l||(r[f]=b)}),r}var Gr=["content-type","content-length"];function Qr(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([n,s])=>{Gr.includes(n.toLowerCase())&&e.set(n,s)})}var Yr=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),bt=e=>{const t=z({},e),r=b=>a.hasOwnProp(t,b)?t[b]:void 0,n=r("data");let s=r("withXSRFToken");const o=r("xsrfHeaderName"),i=r("xsrfCookieName");let l=r("headers");const u=r("auth"),c=r("baseURL"),f=r("allowAbsoluteUrls"),m=r("url");if(t.headers=l=T.from(l),t.url=dt(yt(c,m,f),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?Yr(u.password):""))),a.isFormData(n)&&(v.hasStandardBrowserEnv||v.hasStandardBrowserWebWorkerEnv?l.setContentType(void 0):a.isFunction(n.getHeaders)&&Qr(l,n.getHeaders(),r("formDataHeaderPolicy"))),v.hasStandardBrowserEnv&&(a.isFunction(s)&&(s=s(t)),s===!0||s==null&&Jr(t.url))){const b=o&&i&&$r.read(i);b&&l.set(o,b)}return t},Zr=typeof XMLHttpRequest<"u",en=Zr&&function(e){return new Promise(function(r,n){const s=bt(e);let o=s.data;const i=T.from(s.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=s,f,m,b,w,S;function y(){w&&w(),S&&S(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let d=new XMLHttpRequest;d.open(s.method.toUpperCase(),s.url,!0),d.timeout=s.timeout;function h(){if(!d)return;const R=T.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders());mt(function(C){r(C),y()},function(C){n(C),y()},{data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:R,config:e,request:d}),d=null}"onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.startsWith("file:"))||setTimeout(h)},d.onabort=function(){d&&(n(new p("Request aborted",p.ECONNABORTED,e,d)),y(),d=null)},d.onerror=function(E){const C=new p(E&&E.message?E.message:"Network Error",p.ERR_NETWORK,e,d);C.event=E||null,n(C),y(),d=null},d.ontimeout=function(){let E=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const C=s.transitional||Ne;s.timeoutErrorMessage&&(E=s.timeoutErrorMessage),n(new p(E,C.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,e,d)),y(),d=null},o===void 0&&i.setContentType(null),"setRequestHeader"in d&&a.forEach(lt(i),function(E,C){d.setRequestHeader(C,E)}),a.isUndefined(s.withCredentials)||(d.withCredentials=!!s.withCredentials),l&&l!=="json"&&(d.responseType=s.responseType),c&&([b,S]=ue(c,!0),d.addEventListener("progress",b)),u&&d.upload&&([m,w]=ue(u),d.upload.addEventListener("progress",m),d.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(f=R=>{d&&(n(!R||R.type?new te(null,e,d):R),d.abort(),y(),d=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const g=zr(s.url);if(g&&!v.protocols.includes(g)){n(new p("Unsupported protocol "+g+":",p.ERR_BAD_REQUEST,e));return}d.send(o||null)})},tn=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const s=function(u){if(!n){n=!0,i();const c=u instanceof Error?u:this.reason;r.abort(c instanceof p?c:new te(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,s(new p(`timeout of ${t}ms exceeded`,p.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>a.asap(i),l},rn=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},nn=async function*(e,t){for await(const r of sn(e))yield*rn(r,t)},sn=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()}},Ke=(e,t,r,n)=>{const s=nn(e,t);let o=0,i,l=u=>{i||(i=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:c,value:f}=await s.next();if(c){l(),u.close();return}let m=f.byteLength;r&&r(o+=m),u.enqueue(new Uint8Array(f))}catch(c){throw l(c),c}},cancel(u){return l(u),s.return()}},{highWaterMark:2})};function on(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let o=n.length;const i=n.length;for(let m=0;m<i;m++)if(n.charCodeAt(m)===37&&m+2<i){const b=n.charCodeAt(m+1),w=n.charCodeAt(m+2);(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102)&&(w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102)&&(o-=2,m+=2)}let l=0,u=i-1;const c=m=>m>=2&&n.charCodeAt(m-2)===37&&n.charCodeAt(m-1)===51&&(n.charCodeAt(m)===68||n.charCodeAt(m)===100);u>=0&&(n.charCodeAt(u)===61?(l++,u--):c(u)&&(l++,u-=3)),l===1&&u>=0&&(n.charCodeAt(u)===61||c(u))&&l++;const f=Math.floor(o/4)*3-(l||0);return f>0?f:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let s=0;for(let o=0,i=n.length;o<i;o++){const l=n.charCodeAt(o);if(l<128)s+=1;else if(l<2048)s+=2;else if(l>=55296&&l<=56319&&o+1<i){const u=n.charCodeAt(o+1);u>=56320&&u<=57343?(s+=4,o++):s+=3}else s+=3}return s}var De="1.16.1",Xe=64*1024,{isFunction:oe}=a,Ge=(e,...t)=>{try{return!!e(...t)}catch{return!1}},an=e=>{const t=a.global!==void 0&&a.global!==null?a.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=a.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:s,Request:o,Response:i}=e,l=s?oe(s):typeof fetch=="function",u=oe(o),c=oe(i);if(!l)return!1;const f=l&&oe(r),m=l&&(typeof n=="function"?(h=>g=>h.encode(g))(new n):async h=>new Uint8Array(await new o(h).arrayBuffer())),b=u&&f&&Ge(()=>{let h=!1;const g=new o(v.origin,{body:new r,method:"POST",get duplex(){return h=!0,"half"}}),R=g.headers.has("Content-Type");return g.body!=null&&g.body.cancel(),h&&!R}),w=c&&f&&Ge(()=>a.isReadableStream(new i("").body)),S={stream:w&&(h=>h.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!S[h]&&(S[h]=(g,R)=>{let E=g&&g[h];if(E)return E.call(g);throw new p(`Response type '${h}' is not supported`,p.ERR_NOT_SUPPORT,R)})});const y=async h=>{if(h==null)return 0;if(a.isBlob(h))return h.size;if(a.isSpecCompliantForm(h))return(await new o(v.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(a.isArrayBufferView(h)||a.isArrayBuffer(h))return h.byteLength;if(a.isURLSearchParams(h)&&(h=h+""),a.isString(h))return(await m(h)).byteLength},d=async(h,g)=>{const R=a.toFiniteNumber(h.getContentLength());return R??y(g)};return async h=>{let{url:g,method:R,data:E,signal:C,cancelToken:Ue,timeout:Ot,onDownloadProgress:ye,onUploadProgress:Fe,responseType:B,headers:I,withCredentials:re="same-origin",fetchOptions:Be,maxContentLength:L,maxBodyLength:be}=bt(h);const K=a.isNumber(L)&&L>-1,St=a.isNumber(be)&&be>-1;let ke=s||fetch;B=B?(B+"").toLowerCase():"text";let k=tn([C,Ue&&Ue.toAbortSignal()],Ot),N=null;const q=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let je;try{if(K&&typeof g=="string"&&g.startsWith("data:")&&on(g)>L)throw new p("maxContentLength size of "+L+" exceeded",p.ERR_BAD_RESPONSE,h,N);if(St&&R!=="get"&&R!=="head"){const O=await d(I,E);if(typeof O=="number"&&isFinite(O)&&O>be)throw new p("Request body larger than maxBodyLength limit",p.ERR_BAD_REQUEST,h,N)}if(Fe&&b&&R!=="get"&&R!=="head"&&(je=await d(I,E))!==0){let O=new o(g,{method:"POST",body:E,duplex:"half"}),V;if(a.isFormData(E)&&(V=O.headers.get("content-type"))&&I.setContentType(V),O.body){const[ne,se]=We(je,ue(Je(Fe)));E=Ke(O.body,Xe,ne,se)}}a.isString(re)||(re=re?"include":"omit");const A=u&&"credentials"in o.prototype;if(a.isFormData(E)){const O=I.getContentType();O&&/^multipart\/form-data/i.test(O)&&!/boundary=/i.test(O)&&I.delete("content-type")}I.set("User-Agent","axios/"+De,!1);const j={...Be,signal:k,method:R.toUpperCase(),headers:lt(I.normalize()),body:E,duplex:"half",credentials:A?re:void 0};N=u&&new o(g,j);let U=await(u?ke(N,Be):ke(g,j));if(K){const O=a.toFiniteNumber(U.headers.get("content-length"));if(O!=null&&O>L)throw new p("maxContentLength size of "+L+" exceeded",p.ERR_BAD_RESPONSE,h,N)}const we=w&&(B==="stream"||B==="response");if(w&&U.body&&(ye||K||we&&q)){const O={};["status","statusText","headers"].forEach(X=>{O[X]=U[X]});const V=a.toFiniteNumber(U.headers.get("content-length")),[ne,se]=ye&&We(V,ue(Je(ye),!0))||[];let Ie=0;const _t=X=>{if(K&&(Ie=X,Ie>L))throw new p("maxContentLength size of "+L+" exceeded",p.ERR_BAD_RESPONSE,h,N);ne&&ne(X)};U=new i(Ke(U.body,Xe,_t,()=>{se&&se(),q&&q()}),O)}B=B||"text";let F=await S[a.findKey(S,B)||"text"](U,h);if(K&&!w&&!we){let O;if(F!=null&&(typeof F.byteLength=="number"?O=F.byteLength:typeof F.size=="number"?O=F.size:typeof F=="string"&&(O=typeof n=="function"?new n().encode(F).byteLength:F.length)),typeof O=="number"&&O>L)throw new p("maxContentLength size of "+L+" exceeded",p.ERR_BAD_RESPONSE,h,N)}return!we&&q&&q(),await new Promise((O,V)=>{mt(O,V,{data:F,headers:T.from(U.headers),status:U.status,statusText:U.statusText,config:h,request:N})})}catch(A){if(q&&q(),k&&k.aborted&&k.reason instanceof p){const j=k.reason;throw j.config=h,N&&(j.request=N),A!==j&&(j.cause=A),j}throw A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new p("Network Error",p.ERR_NETWORK,h,N,A&&A.response),{cause:A.cause||A}):p.from(A,A&&A.code,h,N,A&&A.response)}}},ln=new Map,wt=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:s}=t,o=[n,s,r];let i=o.length,l,u,c=ln;for(;i--;)l=o[i],u=c.get(l),u===void 0&&c.set(l,u=i?new Map:an(t)),c=u;return u},yn=wt(),Le={http:null,xhr:en,fetch:{get:wt}};a.forEach(Le,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Qe=e=>`- ${e}`,un=e=>a.isFunction(e)||e===null||e===!1;function cn(e,t){e=a.isArray(e)?e:[e];const{length:r}=e;let n,s;const o={};for(let i=0;i<r;i++){n=e[i];let l;if(s=n,!un(n)&&(s=Le[(l=String(n)).toLowerCase()],s===void 0))throw new p(`Unknown adapter '${l}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;o[l||"#"+i]=s}if(!s){const i=Object.entries(o).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));throw new p("There is no suitable adapter to dispatch the request "+(r?i.length>1?`since :
`+i.map(Qe).join(`
`):" "+Qe(i[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return s}var Et={getAdapter:cn,adapters:Le};function Oe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new te(null,e)}function Ye(e){return Oe(e),e.headers=T.from(e.headers),e.data=ge.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Et.getAdapter(e.adapter||ee.adapter,e)(e).then(function(r){Oe(e),e.response=r;try{r.data=ge.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=T.from(r.headers),r},function(r){if(!ht(r)&&(Oe(e),r&&r.response)){e.response=r.response;try{r.response.data=ge.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=T.from(r.response.headers)}return Promise.reject(r)})}var me={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{me[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Ze={};me.transitional=function(t,r,n){function s(o,i){return"[Axios v"+De+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,l)=>{if(t===!1)throw new p(s(i," has been removed"+(r?" in "+r:"")),p.ERR_DEPRECATED);return r&&!Ze[i]&&(Ze[i]=!0,console.warn(s(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,i,l):!0}};me.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function fn(e,t,r){if(typeof e!="object")throw new p("options must be an object",p.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const o=n[s],i=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(i){const l=e[o],u=l===void 0||i(l,o,e);if(u!==!0)throw new p("option "+o+" must be "+u,p.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new p("Unknown option "+o,p.ERR_BAD_OPTION)}}var le={assertOptions:fn,validators:me},P=le.validators,M=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ve,response:new Ve}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const s=(()=>{if(!n.stack)return"";const o=n.stack.indexOf(`
`);return o===-1?"":n.stack.slice(o+1)})();try{if(!r.stack)r.stack=s;else if(s){const o=s.indexOf(`
`),i=o===-1?-1:s.indexOf(`
`,o+1),l=i===-1?"":s.slice(i+1);String(r.stack).endsWith(l)||(r.stack+=`
`+s)}}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=z(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:s}=t;r!==void 0&&le.assertOptions(r,{silentJSONParsing:P.transitional(P.boolean),forcedJSONParsing:P.transitional(P.boolean),clarifyTimeoutError:P.transitional(P.boolean),legacyInterceptorReqResOrdering:P.transitional(P.boolean)},!1),n!=null&&(a.isFunction(n)?t.paramsSerializer={serialize:n}:le.assertOptions(n,{encode:P.function,serialize:P.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),le.assertOptions(t,{baseUrl:P.spelling("baseURL"),withXsrfToken:P.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&a.merge(s.common,s[t.method]);s&&a.forEach(["delete","get","head","post","put","patch","query","common"],w=>{delete s[w]}),t.headers=T.concat(o,s);const i=[];let l=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen=="function"&&S.runWhen(t)===!1)return;l=l&&S.synchronous;const y=t.transitional||Ne;y&&y.legacyInterceptorReqResOrdering?i.unshift(S.fulfilled,S.rejected):i.push(S.fulfilled,S.rejected)});const u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let c,f=0,m;if(!l){const w=[Ye.bind(this),void 0];for(w.unshift(...i),w.push(...u),m=w.length,c=Promise.resolve(t);f<m;)c=c.then(w[f++],w[f++]);return c}m=i.length;let b=t;for(;f<m;){const w=i[f++],S=i[f++];try{b=w(b)}catch(y){S.call(this,y);break}}try{c=Ye.call(this,b)}catch(w){return Promise.reject(w)}for(f=0,m=u.length;f<m;)c=c.then(u[f++],u[f++]);return c}getUri(e){return e=z(this.defaults,e),dt(yt(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){M.prototype[t]=function(r,n){return this.request(z(n||{},{method:t,url:r,data:(n||{}).data}))}});a.forEach(["post","put","patch","query"],function(t){function r(n){return function(o,i,l){return this.request(z(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}M.prototype[t]=r(),t!=="query"&&(M.prototype[t+"Form"]=r(!0))});var dn=class Rt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(s=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](s);n._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{n.subscribe(l),o=l}).then(s);return i.cancel=function(){n.unsubscribe(o)},i},t(function(o,i,l){n.reason||(n.reason=new te(o,i,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Rt(function(n){t=n}),cancel:t}}};function pn(e){return function(r){return e.apply(null,r)}}function hn(e){return a.isObject(e)&&e.isAxiosError===!0}var Te={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(Te).forEach(([e,t])=>{Te[t]=e});function gt(e){const t=new M(e),r=et(M.prototype.request,t);return a.extend(r,M.prototype,t,{allOwnKeys:!0}),a.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return gt(z(e,s))},r}var _=gt(ee);_.Axios=M;_.CanceledError=te;_.CancelToken=dn;_.isCancel=ht;_.VERSION=De;_.toFormData=he;_.AxiosError=p;_.Cancel=_.CanceledError;_.all=function(t){return Promise.all(t)};_.spread=pn;_.isAxiosError=hn;_.mergeConfig=z;_.AxiosHeaders=T;_.formToJSON=e=>pt(a.isHTMLForm(e)?new FormData(e):e);_.getAdapter=Et.getAdapter;_.HttpStatusCode=Te;_.default=_;export{_ as t};