UNPKG

@corgicoding/el-libs

Version:

element-plus的二次封装组件集合

6 lines 1.32 MB
(function(W,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","vue","vue-i18n"],r):(W=typeof globalThis<"u"?globalThis:W||self,r(W.ElLibs={},W.vue,W["vue-i18n"]))})(this,function(W,r,Le){"use strict";function lc(e){return typeof e=="function"?e():r.unref(e)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yC=()=>{};function gy(e,t=!1,n="Timeout"){return new Promise((o,a)=>{setTimeout(t?()=>a(n):o,e)})}function yy(e,t=!1){function n(d,{flush:h="sync",deep:p=!1,timeout:m,throwOnTimeout:b}={}){let y=null;const $=[new Promise(E=>{y=r.watch(e,g=>{d(g)!==t&&(y==null||y(),E(g))},{flush:h,deep:p,immediate:!0})})];return m!=null&&$.push(gy(m,b).then(()=>lc(e)).finally(()=>y==null?void 0:y())),Promise.race($)}function o(d,h){if(!r.isRef(d))return n(g=>g===d,h);const{flush:p="sync",deep:m=!1,timeout:b,throwOnTimeout:y}=h??{};let $=null;const E=[new Promise(g=>{$=r.watch([e,d],([S,_])=>{t!==(S===_)&&($==null||$(),g(S))},{flush:p,deep:m,immediate:!0})})];return b!=null&&E.push(gy(b,y).then(()=>lc(e)).finally(()=>($==null||$(),lc(e)))),Promise.race(E)}function a(d){return n(h=>!!h,d)}function i(d){return o(null,d)}function s(d){return o(void 0,d)}function l(d){return n(Number.isNaN,d)}function u(d,h){return n(p=>{const m=Array.from(p);return m.includes(d)||m.includes(lc(d))},h)}function c(d){return f(1,d)}function f(d=1,h){let p=-1;return n(()=>(p+=1,p>=d),h)}return Array.isArray(lc(e))?{toMatch:n,toContains:u,changed:c,changedTimes:f,get not(){return yy(e,!t)}}:{toMatch:n,toBe:o,toBeTruthy:a,toBeNull:i,toBeNaN:l,toBeUndefined:s,changed:c,changedTimes:f,get not(){return yy(e,!t)}}}function W9(e){return yy(e)}function J9(e,t,n){const{immediate:o=!0,delay:a=0,onError:i=yC,onSuccess:s=yC,resetOnExecute:l=!0,shallow:u=!0,throwError:c}=n??{},f=u?r.shallowRef(t):r.ref(t),d=r.ref(!1),h=r.ref(!1),p=r.shallowRef(void 0);async function m($=0,...E){l&&(f.value=t),p.value=void 0,d.value=!1,h.value=!0,$>0&&await gy($);const g=typeof e=="function"?e(...E):e;try{const S=await g;f.value=S,d.value=!0,s(S)}catch(S){if(p.value=S,i(S),c)throw S}finally{h.value=!1}return f.value}o&&m(a);const b={state:f,isReady:d,isLoading:h,error:p,execute:m};function y(){return new Promise(($,E)=>{W9(h).toBe(!1).then(()=>$(b)).catch(E)})}return{...b,then($,E){return y().then($,E)}}}function bC(e,t){return function(){return e.apply(t,arguments)}}const{toString:Y9}=Object.prototype,{getPrototypeOf:by}=Object,If=(e=>t=>{const n=Y9.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pn=e=>(e=e.toLowerCase(),t=>If(t)===e),Mf=e=>t=>typeof t===e,{isArray:ls}=Array,cc=Mf("undefined");function G9(e){return e!==null&&!cc(e)&&e.constructor!==null&&!cc(e.constructor)&&wn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wC=Pn("ArrayBuffer");function X9(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wC(e.buffer),t}const Z9=Mf("string"),wn=Mf("function"),$C=Mf("number"),zf=e=>e!==null&&typeof e=="object",Q9=e=>e===!0||e===!1,Uf=e=>{if(If(e)!=="object")return!1;const t=by(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},e7=Pn("Date"),t7=Pn("File"),n7=Pn("Blob"),o7=Pn("FileList"),r7=e=>zf(e)&&wn(e.pipe),a7=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||wn(e.append)&&((t=If(e))==="formdata"||t==="object"&&wn(e.toString)&&e.toString()==="[object FormData]"))},i7=Pn("URLSearchParams"),[s7,l7,c7,u7]=["ReadableStream","Request","Response","Headers"].map(Pn),d7=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function uc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,a;if(typeof e!="object"&&(e=[e]),ls(e))for(o=0,a=e.length;o<a;o++)t.call(null,e[o],o,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let l;for(o=0;o<s;o++)l=i[o],t.call(null,e[l],l,e)}}function EC(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,a;for(;o-- >0;)if(a=n[o],t===a.toLowerCase())return a;return null}const SC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_C=e=>!cc(e)&&e!==SC;function wy(){const{caseless:e}=_C(this)&&this||{},t={},n=(o,a)=>{const i=e&&EC(t,a)||a;Uf(t[i])&&Uf(o)?t[i]=wy(t[i],o):Uf(o)?t[i]=wy({},o):ls(o)?t[i]=o.slice():t[i]=o};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&uc(arguments[o],n);return t}const f7=(e,t,n,{allOwnKeys:o}={})=>(uc(t,(a,i)=>{n&&wn(a)?e[i]=bC(a,n):e[i]=a},{allOwnKeys:o}),e),p7=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),m7=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},h7=(e,t,n,o)=>{let a,i,s;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)s=a[i],(!o||o(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&by(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},g7=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},y7=e=>{if(!e)return null;if(ls(e))return e;let t=e.length;if(!$C(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},b7=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&by(Uint8Array)),w7=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},$7=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},E7=Pn("HTMLFormElement"),S7=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,o){return n.toUpperCase()+o}),CC=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_7=Pn("RegExp"),OC=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};uc(n,(a,i)=>{let s;(s=t(a,i,e))!==!1&&(o[i]=s||a)}),Object.defineProperties(e,o)},C7=e=>{OC(e,(t,n)=>{if(wn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(wn(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},O7=(e,t)=>{const n={},o=a=>{a.forEach(i=>{n[i]=!0})};return ls(e)?o(e):o(String(e).split(t)),n},x7=()=>{},k7=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,$y="abcdefghijklmnopqrstuvwxyz",xC="0123456789",kC={DIGIT:xC,ALPHA:$y,ALPHA_DIGIT:$y+$y.toUpperCase()+xC},v7=(e=16,t=kC.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function T7(e){return!!(e&&wn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const N7=e=>{const t=new Array(10),n=(o,a)=>{if(zf(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[a]=o;const i=ls(o)?[]:{};return uc(o,(s,l)=>{const u=n(s,a+1);!cc(u)&&(i[l]=u)}),t[a]=void 0,i}}return o};return n(e,0)},B7=Pn("AsyncFunction"),A7=e=>e&&(zf(e)||wn(e))&&wn(e.then)&&wn(e.catch),B={isArray:ls,isArrayBuffer:wC,isBuffer:G9,isFormData:a7,isArrayBufferView:X9,isString:Z9,isNumber:$C,isBoolean:Q9,isObject:zf,isPlainObject:Uf,isReadableStream:s7,isRequest:l7,isResponse:c7,isHeaders:u7,isUndefined:cc,isDate:e7,isFile:t7,isBlob:n7,isRegExp:_7,isFunction:wn,isStream:r7,isURLSearchParams:i7,isTypedArray:b7,isFileList:o7,forEach:uc,merge:wy,extend:f7,trim:d7,stripBOM:p7,inherits:m7,toFlatObject:h7,kindOf:If,kindOfTest:Pn,endsWith:g7,toArray:y7,forEachEntry:w7,matchAll:$7,isHTMLForm:E7,hasOwnProperty:CC,hasOwnProp:CC,reduceDescriptors:OC,freezeMethods:C7,toObjectSet:O7,toCamelCase:S7,noop:x7,toFiniteNumber:k7,findKey:EC,global:SC,isContextDefined:_C,ALPHABET:kC,generateString:v7,isSpecCompliantForm:T7,toJSONObject:N7,isAsyncFn:B7,isThenable:A7};function ce(e,t,n,o,a){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),o&&(this.request=o),a&&(this.response=a)}B.inherits(ce,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:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const vC=ce.prototype,TC={};["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=>{TC[e]={value:e}}),Object.defineProperties(ce,TC),Object.defineProperty(vC,"isAxiosError",{value:!0}),ce.from=(e,t,n,o,a,i)=>{const s=Object.create(vC);return B.toFlatObject(e,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),ce.call(s,e.message,t,n,o,a),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const j7=null;function Ey(e){return B.isPlainObject(e)||B.isArray(e)}function NC(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function BC(e,t,n){return e?e.concat(t).map(function(o,a){return o=NC(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function R7(e){return B.isArray(e)&&!e.some(Ey)}const P7=B.toFlatObject(B,{},null,function(e){return/^is[A-Z]/.test(e)});function Hf(e,t,n){if(!B.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!B.isUndefined(m[p])});const o=n.metaTokens,a=n.visitor||c,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(B.isDate(p))return p.toISOString();if(!l&&B.isBlob(p))throw new ce("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(p)||B.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,m,b){let y=p;if(p&&!b&&typeof p=="object"){if(B.endsWith(m,"{}"))m=o?m:m.slice(0,-2),p=JSON.stringify(p);else if(B.isArray(p)&&R7(p)||(B.isFileList(p)||B.endsWith(m,"[]"))&&(y=B.toArray(p)))return m=NC(m),y.forEach(function($,E){!(B.isUndefined($)||$===null)&&t.append(s===!0?BC([m],E,i):s===null?m:m+"[]",u($))}),!1}return Ey(p)?!0:(t.append(BC(b,m,i),u(p)),!1)}const f=[],d=Object.assign(P7,{defaultVisitor:c,convertValue:u,isVisitable:Ey});function h(p,m){if(!B.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(p),B.forEach(p,function(b,y){(!(B.isUndefined(b)||b===null)&&a.call(t,b,B.isString(y)?y.trim():y,m,d))===!0&&h(b,m?m.concat(y):[y])}),f.pop()}}if(!B.isObject(e))throw new TypeError("data must be an object");return h(e),t}function AC(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Sy(e,t){this._pairs=[],e&&Hf(e,this,t)}const jC=Sy.prototype;jC.append=function(e,t){this._pairs.push([e,t])},jC.toString=function(e){const t=e?function(n){return e.call(this,n,AC)}:AC;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function D7(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function RC(e,t,n){if(!t)return e;const o=n&&n.encode||D7,a=n&&n.serialize;let i;if(a?i=a(t,n):i=B.isURLSearchParams(t)?t.toString():new Sy(t,n).toString(o),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}let PC=class{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){B.forEach(this.handlers,function(n){n!==null&&t(n)})}};const DC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},F7=typeof URLSearchParams<"u"?URLSearchParams:Sy,L7=typeof FormData<"u"?FormData:null,V7=typeof Blob<"u"?Blob:null,I7={isBrowser:!0,classes:{URLSearchParams:F7,FormData:L7,Blob:V7},protocols:["http","https","file","blob","url","data"]},_y=typeof window<"u"&&typeof document<"u",M7=(e=>_y&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),z7=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",U7=_y&&window.location.href||"http://localhost",H7=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_y,hasStandardBrowserEnv:M7,hasStandardBrowserWebWorkerEnv:z7,origin:U7},Symbol.toStringTag,{value:"Module"})),Dn={...H7,...I7};function q7(e,t){return Hf(e,new Dn.classes.URLSearchParams,Object.assign({visitor:function(n,o,a,i){return Dn.isNode&&B.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function K7(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function W7(e){const t={},n=Object.keys(e);let o;const a=n.length;let i;for(o=0;o<a;o++)i=n[o],t[i]=e[i];return t}function FC(e){function t(n,o,a,i){let s=n[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),u=i>=n.length;return s=!s&&B.isArray(a)?a.length:s,u?(B.hasOwnProp(a,s)?a[s]=[a[s],o]:a[s]=o,!l):((!a[s]||!B.isObject(a[s]))&&(a[s]=[]),t(n,o,a[s],i)&&B.isArray(a[s])&&(a[s]=W7(a[s])),!l)}if(B.isFormData(e)&&B.isFunction(e.entries)){const n={};return B.forEachEntry(e,(o,a)=>{t(K7(o),a,n,0)}),n}return null}function J7(e,t,n){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(0,JSON.stringify)(e)}const dc={transitional:DC,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,a=B.isObject(e);if(a&&B.isHTMLForm(e)&&(e=new FormData(e)),B.isFormData(e))return o?JSON.stringify(FC(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e)||B.isReadableStream(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return q7(e,this.formSerializer).toString();if((i=B.isFileList(e))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Hf(i?{"files[]":e}:e,s&&new s,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),J7(e)):e}],transformResponse:[function(e){const t=this.transitional||dc.transitional,n=t&&t.forcedJSONParsing,o=this.responseType==="json";if(B.isResponse(e)||B.isReadableStream(e))return e;if(e&&B.isString(e)&&(n&&!this.responseType||o)){const a=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(i){if(a)throw i.name==="SyntaxError"?ce.from(i,ce.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Dn.classes.FormData,Blob:Dn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],e=>{dc.headers[e]={}});const Y7=B.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"]),G7=e=>{const t={};let n,o,a;return e&&e.split(` `).forEach(function(i){a=i.indexOf(":"),n=i.substring(0,a).trim().toLowerCase(),o=i.substring(a+1).trim(),!(!n||t[n]&&Y7[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},LC=Symbol("internals");function fc(e){return e&&String(e).trim().toLowerCase()}function qf(e){return e===!1||e==null?e:B.isArray(e)?e.map(qf):String(e)}function X7(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const Z7=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Cy(e,t,n,o,a){if(B.isFunction(o))return o.call(this,t,n);if(a&&(t=n),!!B.isString(t)){if(B.isString(o))return t.indexOf(o)!==-1;if(B.isRegExp(o))return o.test(t)}}function Q7(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function eH(e,t){const n=B.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(a,i,s){return this[o].call(this,t,a,i,s)},configurable:!0})})}let Wt=class{constructor(t){t&&this.set(t)}set(t,n,o){const a=this;function i(l,u,c){const f=fc(u);if(!f)throw new Error("header name must be a non-empty string");const d=B.findKey(a,f);(!d||a[d]===void 0||c===!0||c===void 0&&a[d]!==!1)&&(a[d||u]=qf(l))}const s=(l,u)=>B.forEach(l,(c,f)=>i(c,f,u));if(B.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(B.isString(t)&&(t=t.trim())&&!Z7(t))s(G7(t),n);else if(B.isHeaders(t))for(const[l,u]of t.entries())i(u,l,o);else t!=null&&i(n,t,o);return this}get(t,n){if(t=fc(t),t){const o=B.findKey(this,t);if(o){const a=this[o];if(!n)return a;if(n===!0)return X7(a);if(B.isFunction(n))return n.call(this,a,o);if(B.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=fc(t),t){const o=B.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Cy(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let a=!1;function i(s){if(s=fc(s),s){const l=B.findKey(o,s);l&&(!n||Cy(o,o[l],l,n))&&(delete o[l],a=!0)}}return B.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let o=n.length,a=!1;for(;o--;){const i=n[o];(!t||Cy(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,o={};return B.forEach(this,(a,i)=>{const s=B.findKey(o,i);if(s){n[s]=qf(a),delete n[i];return}const l=t?Q7(i):String(i).trim();l!==i&&delete n[i],n[l]=qf(a),o[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return B.forEach(this,(o,a)=>{o!=null&&o!==!1&&(n[a]=t&&B.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(a=>o.set(a)),o}static accessor(t){const n=(this[LC]=this[LC]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=fc(i);n[s]||(eH(o,i),n[s]=!0)}return B.isArray(t)?t.forEach(a):a(t),this}};Wt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(Wt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}}),B.freezeMethods(Wt);function Oy(e,t){const n=this||dc,o=t||n,a=Wt.from(o.headers);let i=o.data;return B.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function VC(e){return!!(e&&e.__CANCEL__)}function cs(e,t,n){ce.call(this,e??"canceled",ce.ERR_CANCELED,t,n),this.name="CanceledError"}B.inherits(cs,ce,{__CANCEL__:!0});function IC(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new ce("Request failed with status code "+n.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function tH(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function nH(e,t){e=e||10;const n=new Array(e),o=new Array(e);let a=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=o[i];s||(s=u),n[a]=l,o[a]=u;let f=i,d=0;for(;f!==a;)d+=n[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-s<t)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function oH(e,t){let n=0;const o=1e3/t;let a=null;return function(){const i=this===!0,s=Date.now();if(i||s-n>o)return a&&(clearTimeout(a),a=null),n=s,e.apply(null,arguments);a||(a=setTimeout(()=>(a=null,n=Date.now(),e.apply(null,arguments)),o-(s-n)))}}const Kf=(e,t,n=3)=>{let o=0;const a=nH(50,250);return oH(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,u=s-o,c=a(u),f=s<=l;o=s;const d={loaded:s,total:l,progress:l?s/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&f?(l-s)/c:void 0,event:i,lengthComputable:l!=null};d[t?"download":"upload"]=!0,e(d)},n)},rH=Dn.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function o(a){let i=a;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=o(window.location.href),function(a){const i=B.isString(a)?o(a):a;return i.protocol===n.protocol&&i.host===n.host}}():function(){return function(){return!0}}(),aH=Dn.hasStandardBrowserEnv?{write(e,t,n,o,a,i){const s=[e+"="+encodeURIComponent(t)];B.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),B.isString(o)&&s.push("path="+o),B.isString(a)&&s.push("domain="+a),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function iH(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sH(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function MC(e,t){return e&&!iH(t)?sH(e,t):t}const zC=e=>e instanceof Wt?{...e}:e;function Ca(e,t){t=t||{};const n={};function o(c,f,d){return B.isPlainObject(c)&&B.isPlainObject(f)?B.merge.call({caseless:d},c,f):B.isPlainObject(f)?B.merge({},f):B.isArray(f)?f.slice():f}function a(c,f,d){if(B.isUndefined(f)){if(!B.isUndefined(c))return o(void 0,c,d)}else return o(c,f,d)}function i(c,f){if(!B.isUndefined(f))return o(void 0,f)}function s(c,f){if(B.isUndefined(f)){if(!B.isUndefined(c))return o(void 0,c)}else return o(void 0,f)}function l(c,f,d){if(d in t)return o(c,f);if(d in e)return o(void 0,c)}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,f)=>a(zC(c),zC(f),!0)};return B.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=u[c]||a,d=f(e[c],t[c],c);B.isUndefined(d)&&f!==l||(n[c]=d)}),n}const UC=e=>{const t=Ca({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:l}=t;t.headers=s=Wt.from(s),t.url=RC(MC(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(B.isFormData(n)){if(Dn.hasStandardBrowserEnv||Dn.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[c,...f]=u?u.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...f].join("; "))}}if(Dn.hasStandardBrowserEnv&&(o&&B.isFunction(o)&&(o=o(t)),o||o!==!1&&rH(t.url))){const c=a&&i&&aH.read(i);c&&s.set(a,c)}return t},lH=typeof XMLHttpRequest<"u",cH=lH&&function(e){return new Promise(function(t,n){const o=UC(e);let a=o.data;const i=Wt.from(o.headers).normalize();let{responseType:s}=o,l;function u(){o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let c=new XMLHttpRequest;c.open(o.method.toUpperCase(),o.url,!0),c.timeout=o.timeout;function f(){if(!c)return;const h=Wt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),p={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:e,request:c};IC(function(m){t(m),u()},function(m){n(m),u()},p),c=null}"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(n(new ce("Request aborted",ce.ECONNABORTED,o,c)),c=null)},c.onerror=function(){n(new ce("Network Error",ce.ERR_NETWORK,o,c)),c=null},c.ontimeout=function(){let h=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const p=o.transitional||DC;o.timeoutErrorMessage&&(h=o.timeoutErrorMessage),n(new ce(h,p.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,o,c)),c=null},a===void 0&&i.setContentType(null),"setRequestHeader"in c&&B.forEach(i.toJSON(),function(h,p){c.setRequestHeader(p,h)}),B.isUndefined(o.withCredentials)||(c.withCredentials=!!o.withCredentials),s&&s!=="json"&&(c.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&c.addEventListener("progress",Kf(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Kf(o.onUploadProgress)),(o.cancelToken||o.signal)&&(l=h=>{c&&(n(!h||h.type?new cs(null,e,c):h),c.abort(),c=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const d=tH(o.url);if(d&&Dn.protocols.indexOf(d)===-1){n(new ce("Unsupported protocol "+d+":",ce.ERR_BAD_REQUEST,e));return}c.send(a||null)})},uH=(e,t)=>{let n=new AbortController,o;const a=function(u){if(!o){o=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof ce?c:new cs(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{a(new ce(`timeout ${t} of ms exceeded`,ce.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",a):u.unsubscribe(a))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=s,[l,()=>{i&&clearTimeout(i),i=null}]},dH=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0,a;for(;o<n;)a=o+t,yield e.slice(o,a),o=a},fH=async function*(e,t,n){for await(const o of e)yield*dH(ArrayBuffer.isView(o)?o:await n(String(o)),t)},HC=(e,t,n,o,a)=>{const i=fH(e,t,a);let s=0;return new ReadableStream({type:"bytes",async pull(l){const{done:u,value:c}=await i.next();if(u){l.close(),o();return}let f=c.byteLength;n&&n(s+=f),l.enqueue(new Uint8Array(c))},cancel(l){return o(l),i.return()}},{highWaterMark:2})},qC=(e,t)=>{const n=e!=null;return o=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:o}))},Wf=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",KC=Wf&&typeof ReadableStream=="function",xy=Wf&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),pH=KC&&(()=>{let e=!1;const t=new Request(Dn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),WC=64*1024,ky=KC&&!!(()=>{try{return B.isReadableStream(new Response("").body)}catch{}})(),Jf={stream:ky&&(e=>e.body)};Wf&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Jf[t]&&(Jf[t]=B.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new ce(`Response type '${t}' is not supported`,ce.ERR_NOT_SUPPORT,o)})})})(new Response);const mH=async e=>{if(e==null)return 0;if(B.isBlob(e))return e.size;if(B.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(B.isArrayBufferView(e))return e.byteLength;if(B.isURLSearchParams(e)&&(e=e+""),B.isString(e))return(await xy(e)).byteLength},hH=async(e,t)=>B.toFiniteNumber(e.getContentLength())??mH(t),gH=Wf&&(async e=>{let{url:t,method:n,data:o,signal:a,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:f,withCredentials:d="same-origin",fetchOptions:h}=UC(e);c=c?(c+"").toLowerCase():"text";let[p,m]=a||i||s?uH([a,i],s):[],b,y;const $=()=>{!b&&setTimeout(()=>{p&&p.unsubscribe()}),b=!0};let E;try{if(u&&pH&&n!=="get"&&n!=="head"&&(E=await hH(f,o))!==0){let C=new Request(t,{method:"POST",body:o,duplex:"half"}),w;B.isFormData(o)&&(w=C.headers.get("content-type"))&&f.setContentType(w),C.body&&(o=HC(C.body,WC,qC(E,Kf(u)),null,xy))}B.isString(d)||(d=d?"cors":"omit"),y=new Request(t,{...h,signal:p,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:o,duplex:"half",withCredentials:d});let g=await fetch(y);const S=ky&&(c==="stream"||c==="response");if(ky&&(l||S)){const C={};["status","statusText","headers"].forEach(k=>{C[k]=g[k]});const w=B.toFiniteNumber(g.headers.get("content-length"));g=new Response(HC(g.body,WC,l&&qC(w,Kf(l,!0)),S&&$,xy),C)}c=c||"text";let _=await Jf[B.findKey(Jf,c)||"text"](g,e);return!S&&$(),m&&m(),await new Promise((C,w)=>{IC(C,w,{data:_,headers:Wt.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:y})})}catch(g){throw $(),g&&g.name==="TypeError"&&/fetch/i.test(g.message)?Object.assign(new ce("Network Error",ce.ERR_NETWORK,e,y),{cause:g.cause||g}):ce.from(g,g&&g.code,e,y)}}),vy={http:j7,xhr:cH,fetch:gH};B.forEach(vy,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const JC=e=>`- ${e}`,yH=e=>B.isFunction(e)||e===null||e===!1,YC={getAdapter:e=>{e=B.isArray(e)?e:[e];const{length:t}=e;let n,o;const a={};for(let i=0;i<t;i++){n=e[i];let s;if(o=n,!yH(n)&&(o=vy[(s=String(n)).toLowerCase()],o===void 0))throw new ce(`Unknown adapter '${s}'`);if(o)break;a[s||"#"+i]=o}if(!o){const i=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : `+i.map(JC).join(` `):" "+JC(i[0]):"as no adapter specified";throw new ce("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o},adapters:vy};function Ty(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cs(null,e)}function GC(e){return Ty(e),e.headers=Wt.from(e.headers),e.data=Oy.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),YC.getAdapter(e.adapter||dc.adapter)(e).then(function(t){return Ty(e),t.data=Oy.call(e,e.transformResponse,t),t.headers=Wt.from(t.headers),t},function(t){return VC(t)||(Ty(e),t&&t.response&&(t.response.data=Oy.call(e,e.transformResponse,t.response),t.response.headers=Wt.from(t.response.headers))),Promise.reject(t)})}const XC="1.7.2",Ny={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ny[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ZC={};Ny.transitional=function(e,t,n){function o(a,i){return"[Axios v"+XC+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,s)=>{if(e===!1)throw new ce(o(i," has been removed"+(t?" in "+t:"")),ce.ERR_DEPRECATED);return t&&!ZC[i]&&(ZC[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,i,s):!0}};function bH(e,t,n){if(typeof e!="object")throw new ce("options must be an object",ce.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const i=o[a],s=t[i];if(s){const l=e[i],u=l===void 0||s(l,i,e);if(u!==!0)throw new ce("option "+i+" must be "+u,ce.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ce("Unknown option "+i,ce.ERR_BAD_OPTION)}}const By={assertOptions:bH,validators:Ny},Dr=By.validators;let Oa=class{constructor(t){this.defaults=t,this.interceptors={request:new PC,response:new PC}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=` `+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ca(this.defaults,n);const{transitional:o,paramsSerializer:a,headers:i}=n;o!==void 0&&By.assertOptions(o,{silentJSONParsing:Dr.transitional(Dr.boolean),forcedJSONParsing:Dr.transitional(Dr.boolean),clarifyTimeoutError:Dr.transitional(Dr.boolean)},!1),a!=null&&(B.isFunction(a)?n.paramsSerializer={serialize:a}:By.assertOptions(a,{encode:Dr.function,serialize:Dr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&B.merge(i.common,i[n.method]);i&&B.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Wt.concat(s,i);const l=[];let u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(u=u&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let f,d=0,h;if(!u){const m=[GC.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,c),h=m.length,f=Promise.resolve(n);d<h;)f=f.then(m[d++],m[d++]);return f}h=l.length;let p=n;for(d=0;d<h;){const m=l[d++],b=l[d++];try{p=m(p)}catch(y){b.call(this,y);break}}try{f=GC.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,h=c.length;d<h;)f=f.then(c[d++],c[d++]);return f}getUri(t){t=Ca(this.defaults,t);const n=MC(t.baseURL,t.url);return RC(n,t.params,t.paramsSerializer)}};B.forEach(["delete","get","head","options"],function(e){Oa.prototype[e]=function(t,n){return this.request(Ca(n||{},{method:e,url:t,data:(n||{}).data}))}}),B.forEach(["post","put","patch"],function(e){function t(n){return function(o,a,i){return this.request(Ca(i||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Oa.prototype[e]=t(),Oa.prototype[e+"Form"]=t(!0)});let wH=class R9{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const o=this;this.promise.then(a=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](a);o._listeners=null}),this.promise.then=a=>{let i;const s=new Promise(l=>{o.subscribe(l),i=l}).then(a);return s.cancel=function(){o.unsubscribe(i)},s},t(function(a,i,s){o.reason||(o.reason=new cs(a,i,s),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new R9(function(n){t=n}),cancel:t}}};function $H(e){return function(t){return e.apply(null,t)}}function EH(e){return B.isObject(e)&&e.isAxiosError===!0}const Ay={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};Object.entries(Ay).forEach(([e,t])=>{Ay[t]=e});function QC(e){const t=new Oa(e),n=bC(Oa.prototype.request,t);return B.extend(n,Oa.prototype,t,{allOwnKeys:!0}),B.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return QC(Ca(e,o))},n}const it=QC(dc);it.Axios=Oa,it.CanceledError=cs,it.CancelToken=wH,it.isCancel=VC,it.VERSION=XC,it.toFormData=Hf,it.AxiosError=ce,it.Cancel=it.CanceledError,it.all=function(e){return Promise.all(e)},it.spread=$H,it.isAxiosError=EH,it.mergeConfig=Ca,it.AxiosHeaders=Wt,it.formToJSON=e=>FC(B.isHTMLForm(e)?new FormData(e):e),it.getAdapter=YC.getAdapter,it.HttpStatusCode=Ay,it.default=it;const SH=()=>{const e=r.shallowRef(),t=r.inject("axios-instance");t&&(e.value=t);const n=r.getCurrentInstance();return n&&n.appContext.config.globalProperties.$http&&(e.value=n.appContext.config.globalProperties.$http),{axiosInstance:e.value?e.value:it}},_H={key:1,style:{"word-break":"break-all"},class:"elibs_remote-content-text"},CH=r.defineComponent({__name:"RemoteSelect",props:{modelValue:{},url:{},optionLabel:{},optionValue:{},isList:{type:Boolean},multiple:{type:Boolean},isString:{type:Boolean},query:{},textType:{type:Boolean},eventOptions:{},resultKey:{},strict:{type:Boolean},selectFirstOption:{type:Boolean}},emits:["update:modelValue","change","request-done"],setup(e,{expose:t,emit:n}){const o=e,a=n,{axiosInstance:i}=SH(),s=r.computed({get:()=>o.isString&&o.multiple?typeof o.modelValue=="string"&&o.modelValue?o.modelValue.split(","):[]:o.modelValue,set:d=>{o.isString&&o.multiple?a("update:modelValue",d instanceof Array?d.join(","):void 0):a("update:modelValue",d),o.multiple?a("change",l.value.filter(h=>d instanceof Array?d.includes(h[o.optionValue]):[])):a("change",l.value.filter(h=>h[o.optionValue]===d))}}),{state:l,isLoading:u,execute:c}=J9(async()=>{var d;const h=`${o.url}${o.isList?"?pageNo=1&pageSize=-1":""}`,p=await i.get(h+(o.query||""));return o.isList?((d=p.data.result)==null?void 0:d.records)||[]:o.resultKey?p.data.result[o.resultKey]||[]:p.data.result||[]},[],{shallow:!1,immediate:!0,resetOnExecute:!0,onSuccess(d){(o.selectFirstOption||o.strict)&&(o.selectFirstOption&&(s.value instanceof Array?s.value.length===0:!s.value)&&(s.value=o.multiple?[d[0][o.optionValue]]:d[0][o.optionValue]),o.strict&&(s.value instanceof Array?s.value=s.value.filter(h=>d.findIndex(p=>p[o.optionValue]===h)!==-1):d.findIndex(h=>h[o.optionValue]===s.value)===-1&&(s.value=void 0))),a("request-done",d)}}),f=r.computed(()=>{if(o.textType){if(o.isString&&typeof o.modelValue=="string"){const d=o.modelValue.split(",");return l.value.filter(h=>d.includes(h[o.optionValue])).map(h=>h[o.optionLabel]).join(", ")}else if(o.modelValue instanceof Array){const d=o.modelValue;return l.value.filter(h=>d.includes(h[o.optionValue])).map(h=>h[o.optionLabel]).join(", ")}}return o.modelValue});return t({loadOptions:c,remoteOptions:l}),(d,h)=>{const p=r.resolveComponent("el-option"),m=r.resolveComponent("el-select");return d.textType?(r.openBlock(),r.createElementBlock("span",_H,r.toDisplayString(f.value),1)):(r.openBlock(),r.createBlock(m,r.mergeProps({key:0,modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=b=>s.value=b),style:{width:"100%"},clearable:"",multiple:d.multiple,filterable:"","collapse-tags-tooltip":"","collapse-tags":"",loading:r.unref(u)},d.$attrs,r.toHandlers(d.eventOptions||{})),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),b=>(r.openBlock(),r.createBlock(p,{key:b[d.optionValue],label:b[d.optionLabel],value:d.isString&&typeof b[d.optionValue]!="string"?b[d.optionValue].toString():b[d.optionValue]},null,8,["label","value"]))),128))]),_:1},16,["modelValue","multiple","loading"]))}}}),OH=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n},xa=OH(CH,[["__scopeId","data-v-2e8ecd12"]]);xa.install=e=>{e.component(xa.__name,xa)};function xH(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Fr(e){return typeof e=="function"?e():r.unref(e)}const kH=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const vH=Object.prototype.toString,TH=e=>vH.call(e)==="[object Object]",jy=()=>{};function NH(e,t){function n(...o){return new Promise((a,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(a).catch(i)})}return n}const eO=e=>e();function BH(e=eO){const t=r.ref(!0);function n(){t.value=!1}function o(){t.value=!0}const a=(...i)=>{t.value&&e(...i)};return{isActive:r.readonly(t),pause:n,resume:o,eventFilter:a}}function Ry(e,t=!1,n="Timeout"){return new Promise((o,a)=>{setTimeout(t?()=>a(n):o,e)})}function AH(e){return r.getCurrentInstance()}function jH(e,t,n={}){const{eventFilter:o=eO,...a}=n;return r.watch(e,NH(o,t),a)}function RH(e,t,n={}){const{eventFilter:o,...a}=n,{eventFilter:i,pause:s,resume:l,isActive:u}=BH(o);return{stop:jH(e,t,{...a,eventFilter:i}),pause:s,resume:l,isActive:u}}function PH(e,t=!0,n){AH()?r.onMounted(e,n):t?e():r.nextTick(e)}function Py(e,t=!1){function n(d,{flush:h="sync",deep:p=!1,timeout:m,throwOnTimeout:b}={}){let y=null;const $=[new Promise(E=>{y=r.watch(e,g=>{d(g)!==t&&(y==null||y(),E(g))},{flush:h,deep:p,immediate:!0})})];return m!=null&&$.push(Ry(m,b).then(()=>Fr(e)).finally(()=>y==null?void 0:y())),Promise.race($)}function o(d,h){if(!r.isRef(d))return n(g=>g===d,h);const{flush:p="sync",deep:m=!1,timeout:b,throwOnTimeout:y}=h??{};let $=null;const E=[new Promise(g=>{$=r.watch([e,d],([S,_])=>{t!==(S===_)&&($==null||$(),g(S))},{flush:p,deep:m,immediate:!0})})];return b!=null&&E.push(Ry(b,y).then(()=>Fr(e)).finally(()=>($==null||$(),Fr(e)))),Promise.race(E)}function a(d){return n(h=>!!h,d)}function i(d){return o(null,d)}function s(d){return o(void 0,d)}function l(d){return n(Number.isNaN,d)}function u(d,h){return n(p=>{const m=Array.from(p);return m.includes(d)||m.includes(Fr(d))},h)}function c(d){return f(1,d)}function f(d=1,h){let p=-1;return n(()=>(p+=1,p>=d),h)}return Array.isArray(Fr(e))?{toMatch:n,toContains:u,changed:c,changedTimes:f,get not(){return Py(e,!t)}}:{toMatch:n,toBe:o,toBeTruthy:a,toBeNull:i,toBeNaN:l,toBeUndefined:s,changed:c,changedTimes:f,get not(){return Py(e,!t)}}}function DH(e){return Py(e)}function FH(e){var t;const n=Fr(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Dy=kH?window:void 0;function tO(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Dy):[t,n,o,a]=e,!t)return jy;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(f=>f()),i.length=0},l=(f,d,h,p)=>(f.addEventListener(d,h,p),()=>f.removeEventListener(d,h,p)),u=r.watch(()=>[FH(t),Fr(a)],([f,d])=>{if(s(),!f)return;const h=TH(d)?{...d}:d;i.push(...n.flatMap(p=>o.map(m=>l(f,p,m,h))))},{immediate:!0,flush:"post"}),c=()=>{u(),s()};return xH(c),c}function LH(e,t,n){const{immediate:o=!0,delay:a=0,onError:i=jy,onSuccess:s=jy,resetOnExecute:l=!0,shallow:u=!0,throwError:c}=n??{},f=u?r.shallowRef(t):r.ref(t),d=r.ref(!1),h=r.ref(!1),p=r.shallowRef(void 0);async function m($=0,...E){l&&(f.value=t),p.value=void 0,d.value=!1,h.value=!0,$>0&&await Ry($);const g=typeof e=="function"?e(...E):e;try{const S=await g;f.value=S,d.value=!0,s(S)}catch(S){if(p.value=S,i(S),c)throw S}finally{h.value=!1}return f.value}o&&m(a);const b={state:f,isReady:d,isLoading:h,error:p,execute:m};function y(){return new Promise(($,E)=>{DH(h).toBe(!1).then(()=>$(b)).catch(E)})}return{...b,then($,E){return y().then($,E)}}}const Yf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gf="__vueuse_ssr_handlers__",VH=IH();function IH(){return Gf in Yf||(Yf[Gf]=Yf[Gf]||{}),Yf[Gf]}function MH(e,t){return VH[e]||t}function zH(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const nO={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},oO="vueuse-storage";function UH(e,t,n,o={}){var a;const{flush:i="pre",deep:s=!0,listenToStorageChanges:l=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:f,window:d=Dy,eventFilter:h,onError:p=O=>{console.error(O)},initOnMounted:m}=o,b=(f?r.shallowRef:r.ref)(typeof t=="function"?t():t);if(!n)try{n=MH("getDefaultStorage",()=>{var O;return(O=Dy)==null?void 0:O.localStorage})()}catch(O){p(O)}if(!n)return b;const y=Fr(t),$=zH(y),E=(a=o.serializer)!=null?a:nO[$],{pause:g,resume:S}=RH(b,()=>C(b.value),{flush:i,deep:s,eventFilter:h});d&&l&&PH(()=>{tO(d,"storage",k),tO(d,oO,N),m&&k()}),m||k();function _(O,x){d&&d.dispatchEvent(new CustomEvent(oO,{detail:{key:e,oldValue:O,newValue:x,storageArea:n}}))}function C(O){try{const x=n.getItem(e);if(O==null)_(x,null),n.removeItem(e);else{const K=E.write(O);x!==K&&(n.setItem(e,K),_(x,K))}}catch(x){p(x)}}function w(O){const x=O?O.newValue:n.getItem(e);if(x==null)return u&&y!=null&&n.setItem(e,E.write(y)),y;if(!O&&c){const K=E.read(x);return typeof c=="function"?c(K,y):$==="object"&&!Array.isArray(K)?{...y,...K}:K}else return typeof x!="string"?x:E.read(x)}function k(O){if(!(O&&O.storageArea!==n)){if(O&&O.key==null){b.value=y;return}if(!(O&&O.key!==e)){g();try{(O==null?void 0:O.newValue)!==E.write(b.value)&&(b.value=w(O))}catch(x){p(x)}finally{O?r.nextTick(S):S()}}}}function N(O){k(O.detail)}return b}function rO(e,t){return function(){return e.apply(t,arguments)}}const{toString:HH}=Object.prototype,{getPrototypeOf:Fy}=Object,Xf=(e=>t=>{const n=HH.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fn=e=>(e=e.toLowerCase(),t=>Xf(t)===e),Zf=e=>t=>typeof t===e,{isArray:us}=Array,pc=Zf("undefined");function qH(e){return e!==null&&!pc(e)&&e.constructor!==null&&!pc(e.constructor)&&$n(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const aO=Fn("ArrayBuffer");function KH(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&aO(e.buffer),t}const WH=Zf("string"),$n=Zf("function"),iO=Zf("number"),Qf=e=>e!==null&&typeof e=="object",JH=e=>e===!0||e===!1,ep=e=>{if(Xf(e)!=="object")return!1;const t=Fy(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},YH=Fn("Date"),GH=Fn("File"),XH=Fn("Blob"),ZH=Fn("FileList"),QH=e=>Qf(e)&&$n(e.pipe),eq=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||$n(e.append)&&((t=Xf(e))==="formdata"||t==="object"&&$n(e.toString)&&e.toString()==="[object FormData]"))},tq=Fn("URLSearchParams"),[nq,oq,rq,aq]=["ReadableStream","Request","Response","Headers"].map(Fn),iq=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,a;if(typeof e!="object"&&(e=[e]),us(e))for(o=0,a=e.length;o<a;o++)t.call(null,e[o],o,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let l;for(o=0;o<s;o++)l=i[o],t.call(null,e[l],l,e)}}function sO(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,a;for(;o-- >0;)if(a=n[o],t===a.toLowerCase())return a;return null}const lO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cO=e=>!pc(e)&&e!==lO;function Ly(){const{caseless:e}=cO(this)&&this||{},t={},n=(o,a)=>{const i=e&&sO(t,a)||a;ep(t[i])&&ep(o)?t[i]=Ly(t[i],o):ep(o)?t[i]=Ly({},o):us(o)?t[i]=o.slice():t[i]=o};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&mc(arguments[o],n);return t}const sq=(e,t,n,{allOwnKeys:o}={})=>(mc(t,(a,i)=>{n&&$n(a)?e[i]=rO(a,n):e[i]=a},{allOwnKeys:o}),e),lq=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cq=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},uq=(e,t,n,o)=>{let a,i,s;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)s=a[i],(!o||o(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Fy(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},dq=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},fq=e=>{if(!e)return null;if(us(e))return e;let t=e.length;if(!iO(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},pq=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Fy(Uint8Array)),mq=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},hq=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},gq=Fn("HTMLFormElement"),yq=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,o){return n.toUpperCase()+o}),uO=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),bq=Fn("RegExp"),dO=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};mc(n,(a,i)=>{let s;(s=t(a,i,e))!==!1&&(o[i]=s||a)}),Object.defineProperties(e,o)},wq=e=>{dO(e,(t,n)=>{if($n(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if($n(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},$q=(e,t)=>{const n={},o=a=>{a.forEach(i=>{n[i]=!0})};return us(e)?o(e):o(String(e).split(t)),n},Eq=()=>{},Sq=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Vy="abcdefghijklmnopqrstuvwxyz",fO="0123456789",pO={DIGIT:fO,ALPHA:Vy,ALPHA_DIGIT:Vy+Vy.toUpperCase()+fO},_q=(e=16,t=pO.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function Cq(e){return!!(e&&$n(e.append)&&e[Symbol.toStringTag]==="FormData"&