@vtj/utils 0.8.107 → 0.8.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.iife.js +20 -20
- package/dist/index.mjs +4 -4
- package/dist/index.umd.js +20 -20
- package/package.json +1 -1
- package/types/request.d.ts +3 -3
- package/types/version.d.ts +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/utils
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.8.
|
|
5
|
+
* @version 0.8.109
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
|
-
*/const on="0.8.
|
|
8
|
-
* @vue/shared v3.4.
|
|
7
|
+
*/const on="0.8.109";/**
|
|
8
|
+
* @vue/shared v3.4.38
|
|
9
9
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
10
10
|
* @license MIT
|
|
11
11
|
**//*! #__NO_SIDE_EFFECTS__ */function an(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const cn=Object.prototype.hasOwnProperty,ie=(e,t)=>cn.call(e,t),F=Array.isArray,ne=e=>ft(e)==="[object Map]",ln=e=>typeof e=="string",K=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",un=Object.prototype.toString,ft=e=>un.call(e),fn=e=>ft(e).slice(8,-1),Fe=e=>ln(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,H=(e,t)=>!Object.is(e,t);let dn;function hn(e,t=dn){t&&t.active&&t.effects.push(e)}let D;class pn{constructor(t,n,r,s){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,hn(this,s)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,pt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(mn(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),mt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=v,n=D;try{return v=!0,D=this,this._runnings++,We(this),this.fn()}finally{Ke(this),this._runnings--,D=n,v=t}}stop(){this.active&&(We(this),Ke(this),this.onStop&&this.onStop(),this.active=!1)}}function mn(e){return e.value}function We(e){e._trackId++,e._depsLength=0}function Ke(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)dt(e.deps[t],e);e.deps.length=e._depsLength}}function dt(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let v=!0,Ee=0;const ht=[];function pt(){ht.push(v),v=!1}function mt(){const e=ht.pop();v=e===void 0?!0:e}function De(){Ee++}function Ie(){for(Ee--;!Ee&&Re.length;)Re.shift()()}function gt(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&dt(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Re=[];function wt(e,t,n){De();for(const r of e.keys()){let s;r._dirtyLevel<t&&(s??(s=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(s??(s=e.get(r)===r._trackId))&&(r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&Re.push(r.scheduler)))}Ie()}const yt=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Se=new WeakMap,I=Symbol(""),Oe=Symbol("");function x(e,t,n){if(v&&D){let r=Se.get(e);r||Se.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=yt(()=>r.delete(n))),gt(D,s)}}function N(e,t,n,r,s,o){const i=Se.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&F(e)){const f=Number(r);i.forEach((d,u)=>{(u==="length"||!K(u)&&u>=f)&&a.push(d)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":F(e)?Fe(n)&&a.push(i.get("length")):(a.push(i.get(I)),ne(e)&&a.push(i.get(Oe)));break;case"delete":F(e)||(a.push(i.get(I)),ne(e)&&a.push(i.get(Oe)));break;case"set":ne(e)&&a.push(i.get(I));break}De();for(const f of a)f&&wt(f,4);Ie()}const gn=an("__proto__,__v_isRef,__isVue"),bt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(K)),$e=wn();function wn(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=w(this);for(let o=0,i=this.length;o<i;o++)x(r,"get",o+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(w)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){pt(),De();const r=w(this)[t].apply(this,n);return Ie(),mt(),r}}),e}function yn(e){K(e)||(e=String(e));const t=w(this);return x(t,"has",e),t.hasOwnProperty(e)}class _t{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?jn:St:o?Pn:Rt).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=F(t);if(!s){if(i&&ie($e,n))return Reflect.get($e,n,r);if(n==="hasOwnProperty")return yn}const a=Reflect.get(t,n,r);return(K(n)?bt.has(n):gn(n))||(s||x(t,"get",n),o)?a:ae(a)?i&&Fe(n)?a:a.value:ce(a)?s?Tt(a):Ot(a):a}}class bn extends _t{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const f=B(o);if(!ue(r)&&!B(r)&&(o=w(o),r=w(r)),!F(t)&&ae(o)&&!ae(r))return f?!1:(o.value=r,!0)}const i=F(t)&&Fe(n)?Number(n)<t.length:ie(t,n),a=Reflect.set(t,n,r,s);return t===w(s)&&(i?H(r,o)&&N(t,"set",n,r):N(t,"add",n,r)),a}deleteProperty(t,n){const r=ie(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&N(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!K(n)||!bt.has(n))&&x(t,"has",n),r}ownKeys(t){return x(t,"iterate",F(t)?"length":I),Reflect.ownKeys(t)}}class _n extends _t{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const En=new bn,Rn=new _n,Ue=e=>e,le=e=>Reflect.getPrototypeOf(e);function X(e,t,n=!1,r=!1){e=e.__v_raw;const s=w(e),o=w(t);n||(H(t,o)&&x(s,"get",t),x(s,"get",o));const{has:i}=le(s),a=r?Ue:n?Be:J;if(i.call(s,t))return a(e.get(t));if(i.call(s,o))return a(e.get(o));e!==s&&e.get(t)}function Q(e,t=!1){const n=this.__v_raw,r=w(n),s=w(e);return t||(H(e,s)&&x(r,"has",e),x(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Y(e,t=!1){return e=e.__v_raw,!t&&x(w(e),"iterate",I),Reflect.get(e,"size",e)}function Ve(e,t=!1){!t&&!ue(e)&&!B(e)&&(e=w(e));const n=w(this);return le(n).has.call(n,e)||(n.add(e),N(n,"add",e,e)),this}function Ge(e,t,n=!1){!n&&!ue(t)&&!B(t)&&(t=w(t));const r=w(this),{has:s,get:o}=le(r);let i=s.call(r,e);i||(e=w(e),i=s.call(r,e));const a=o.call(r,e);return r.set(e,t),i?H(t,a)&&N(r,"set",e,t):N(r,"add",e,t),this}function Xe(e){const t=w(this),{has:n,get:r}=le(t);let s=n.call(t,e);s||(e=w(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&N(t,"delete",e,void 0),o}function Qe(){const e=w(this),t=e.size!==0,n=e.clear();return t&&N(e,"clear",void 0,void 0),n}function Z(e,t){return function(r,s){const o=this,i=o.__v_raw,a=w(i),f=t?Ue:e?Be:J;return!e&&x(a,"iterate",I),i.forEach((d,u)=>r.call(s,f(d),f(u),o))}}function ee(e,t,n){return function(...r){const s=this.__v_raw,o=w(s),i=ne(o),a=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,d=s[e](...r),u=n?Ue:t?Be:J;return!t&&x(o,"iterate",f?Oe:I),{next(){const{value:l,done:g}=d.next();return g?{value:l,done:g}:{value:a?[u(l[0]),u(l[1])]:u(l),done:g}},[Symbol.iterator](){return this}}}}function P(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Sn(){const e={get(o){return X(this,o)},get size(){return Y(this)},has:Q,add:Ve,set:Ge,delete:Xe,clear:Qe,forEach:Z(!1,!1)},t={get(o){return X(this,o,!1,!0)},get size(){return Y(this)},has:Q,add(o){return Ve.call(this,o,!0)},set(o,i){return Ge.call(this,o,i,!0)},delete:Xe,clear:Qe,forEach:Z(!1,!0)},n={get(o){return X(this,o,!0)},get size(){return Y(this,!0)},has(o){return Q.call(this,o,!0)},add:P("add"),set:P("set"),delete:P("delete"),clear:P("clear"),forEach:Z(!0,!1)},r={get(o){return X(this,o,!0,!0)},get size(){return Y(this,!0)},has(o){return Q.call(this,o,!0)},add:P("add"),set:P("set"),delete:P("delete"),clear:P("clear"),forEach:Z(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=ee(o,!1,!1),n[o]=ee(o,!0,!1),t[o]=ee(o,!1,!0),r[o]=ee(o,!0,!0)}),[e,n,t,r]}const[On,Tn,An,xn]=Sn();function Et(e,t){const n=t?e?xn:An:e?Tn:On;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ie(n,s)&&s in r?n:r,s,o)}const Cn={get:Et(!1,!1)},Ln={get:Et(!0,!1)},Rt=new WeakMap,Pn=new WeakMap,St=new WeakMap,jn=new WeakMap;function vn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nn(e){return e.__v_skip||!Object.isExtensible(e)?0:vn(fn(e))}function Ot(e){return B(e)?e:At(e,!1,En,Cn,Rt)}function Tt(e){return At(e,!0,Rn,Ln,St)}function At(e,t,n,r,s){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Nn(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function B(e){return!!(e&&e.__v_isReadonly)}function ue(e){return!!(e&&e.__v_isShallow)}function w(e){const t=e&&e.__v_raw;return t?w(t):e}const J=e=>ce(e)?Ot(e):e,Be=e=>ce(e)?Tt(e):e;class Fn{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new pn(()=>t(this._value),()=>re(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=w(this);return(!t._cacheable||t.effect.dirty)&&H(t._value,t._value=t.effect.run())&&re(t,4),xt(t),t.effect._dirtyLevel>=2&&re(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function xt(e){var t;v&&D&&(e=w(e),gt(D,(t=e.dep)!=null?t:e.dep=yt(()=>e.dep=void 0,e instanceof Fn?e:void 0)))}function re(e,t=4,n,r){e=w(e);const s=e.dep;s&&wt(s,t)}function ae(e){return!!(e&&e.__v_isRef===!0)}function ge(e){return Dn(e,!1)}function Dn(e,t){return ae(e)?e:new In(e,t)}class In{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:w(t),this._value=n?t:J(t)}get value(){return xt(this),this._value}set value(t){const n=this.__v_isShallow||ue(t)||B(t);t=n?t:w(t),H(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:J(t),re(this,4))}}function Ct(e,t){return function(){return e.apply(t,arguments)}}const{toString:Un}=Object.prototype,{getPrototypeOf:Me}=Object,fe=(e=>t=>{const n=Un.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),L=e=>(e=e.toLowerCase(),t=>fe(t)===e),de=e=>t=>typeof t===e,{isArray:q}=Array,W=de("undefined");function Bn(e){return e!==null&&!W(e)&&e.constructor!==null&&!W(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Lt=L("ArrayBuffer");function Mn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Lt(e.buffer),t}const kn=de("string"),T=de("function"),Pt=de("number"),he=e=>e!==null&&typeof e=="object",Hn=e=>e===!0||e===!1,se=e=>{if(fe(e)!=="object")return!1;const t=Me(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qn=L("Date"),zn=L("File"),Jn=L("Blob"),Wn=L("FileList"),Kn=e=>he(e)&&T(e.pipe),$n=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||T(e.append)&&((t=fe(e))==="formdata"||t==="object"&&T(e.toString)&&e.toString()==="[object FormData]"))},Vn=L("URLSearchParams"),Gn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),q(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function jt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Nt=e=>!W(e)&&e!==vt;function Te(){const{caseless:e}=Nt(this)&&this||{},t={},n=(r,s)=>{const o=e&&jt(t,s)||s;se(t[o])&&se(r)?t[o]=Te(t[o],r):se(r)?t[o]=Te({},r):q(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&$(arguments[r],n);return t}const Xn=(e,t,n,{allOwnKeys:r}={})=>($(t,(s,o)=>{n&&T(s)?e[o]=Ct(s,n):e[o]=s},{allOwnKeys:r}),e),Qn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Yn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Zn=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Me(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},er=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},tr=e=>{if(!e)return null;if(q(e))return e;let t=e.length;if(!Pt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},nr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Me(Uint8Array)),rr=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},sr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},or=L("HTMLFormElement"),ir=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ye=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ar=L("RegExp"),Ft=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},cr=e=>{Ft(e,(t,n)=>{if(T(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(T(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},lr=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return q(e)?r(e):r(String(e).split(t)),n},ur=()=>{},fr=(e,t)=>(e=+e,Number.isFinite(e)?e:t),we="abcdefghijklmnopqrstuvwxyz",Ze="0123456789",Dt={DIGIT:Ze,ALPHA:we,ALPHA_DIGIT:we+we.toUpperCase()+Ze},dr=(e=16,t=Dt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function hr(e){return!!(e&&T(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const pr=e=>{const t=new Array(10),n=(r,s)=>{if(he(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=q(r)?[]:{};return $(r,(i,a)=>{const f=n(i,s+1);!W(f)&&(o[a]=f)}),t[s]=void 0,o}}return r};return n(e,0)},mr=L("AsyncFunction"),gr=e=>e&&(he(e)||T(e))&&T(e.then)&&T(e.catch),c={isArray:q,isArrayBuffer:Lt,isBuffer:Bn,isFormData:$n,isArrayBufferView:Mn,isString:kn,isNumber:Pt,isBoolean:Hn,isObject:he,isPlainObject:se,isUndefined:W,isDate:qn,isFile:zn,isBlob:Jn,isRegExp:ar,isFunction:T,isStream:Kn,isURLSearchParams:Vn,isTypedArray:nr,isFileList:Wn,forEach:$,merge:Te,extend:Xn,trim:Gn,stripBOM:Qn,inherits:Yn,toFlatObject:Zn,kindOf:fe,kindOfTest:L,endsWith:er,toArray:tr,forEachEntry:rr,matchAll:sr,isHTMLForm:or,hasOwnProperty:Ye,hasOwnProp:Ye,reduceDescriptors:Ft,freezeMethods:cr,toObjectSet:lr,toCamelCase:ir,noop:ur,toFiniteNumber:fr,findKey:jt,global:vt,isContextDefined:Nt,ALPHABET:Dt,generateString:dr,isSpecCompliantForm:hr,toJSONObject:pr,isAsyncFn:mr,isThenable:gr};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}c.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const It=m.prototype,Ut={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ut[e]={value:e}});Object.defineProperties(m,Ut);Object.defineProperty(It,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(It);return c.toFlatObject(e,i,function(f){return f!==Error.prototype},a=>a!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const wr=null;function Ae(e){return c.isPlainObject(e)||c.isArray(e)}function Bt(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function et(e,t,n){return e?e.concat(t).map(function(s,o){return s=Bt(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function yr(e){return c.isArray(e)&&!e.some(Ae)}const br=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function pe(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,E){return!c.isUndefined(E[p])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(c.isDate(h))return h.toISOString();if(!f&&c.isBlob(h))throw new m("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(h)||c.isTypedArray(h)?f&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,p,E){let b=h;if(h&&!E&&typeof h=="object"){if(c.endsWith(p,"{}"))p=r?p:p.slice(0,-2),h=JSON.stringify(h);else if(c.isArray(h)&&yr(h)||(c.isFileList(h)||c.endsWith(p,"[]"))&&(b=c.toArray(h)))return p=Bt(p),b.forEach(function(R,me){!(c.isUndefined(R)||R===null)&&t.append(i===!0?et([p],me,o):i===null?p:p+"[]",d(R))}),!1}return Ae(h)?!0:(t.append(et(E,p,o),d(h)),!1)}const l=[],g=Object.assign(br,{defaultVisitor:u,convertValue:d,isVisitable:Ae});function y(h,p){if(!c.isUndefined(h)){if(l.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(h),c.forEach(h,function(b,O){(!(c.isUndefined(b)||b===null)&&s.call(t,b,c.isString(O)?O.trim():O,p,g))===!0&&y(b,p?p.concat(O):[O])}),l.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return y(e),t}function tt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ke(e,t){this._pairs=[],e&&pe(e,this,t)}const Mt=ke.prototype;Mt.append=function(t,n){this._pairs.push([t,n])};Mt.toString=function(t){const n=t?function(r){return t.call(this,r,tt)}:tt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function _r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kt(e,t,n){if(!t)return e;const r=n&&n.encode||_r,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new ke(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class nt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ht={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Er=typeof URLSearchParams<"u"?URLSearchParams:ke,Rr=typeof FormData<"u"?FormData:null,Sr=typeof Blob<"u"?Blob:null,Or={isBrowser:!0,classes:{URLSearchParams:Er,FormData:Rr,Blob:Sr},protocols:["http","https","file","blob","url","data"]},qt=typeof window<"u"&&typeof document<"u",Tr=(e=>qt&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ar=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qt,hasStandardBrowserEnv:Tr,hasStandardBrowserWebWorkerEnv:Ar},Symbol.toStringTag,{value:"Module"})),C={...xr,...Or};function Cr(e,t){return pe(e,new C.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return C.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Lr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Pr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function zt(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),f=o>=n.length;return i=!i&&c.isArray(s)?s.length:i,f?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=Pr(s[i])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(Lr(r),s,n,0)}),n}return null}function jr(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const V={transitional:Ht,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(zt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Cr(t,this.formSerializer).toString();if((a=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return pe(a?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),jr(t)):t}],transformResponse:[function(t){const n=this.transitional||V.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?m.from(a,m.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{V.headers[e]={}});const vr=c.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"]),Nr=e=>{const t={};let n,r,s;return e&&e.split(`
|