forked from MarSeventh/CloudFlare-ImgBed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
366.97cb300b.js
2 lines (2 loc) · 38.7 KB
/
366.97cb300b.js
1
2
"use strict";(self["webpackChunksanyue_imghub"]=self["webpackChunksanyue_imghub"]||[]).push([[366],{5970:function(e,t,n){n.r(t),n.d(t,{default:function(){return Dn}});var r={};n.r(r),n.d(r,{hasBrowserEnv:function(){return et},hasStandardBrowserEnv:function(){return tt},hasStandardBrowserWebWorkerEnv:function(){return nt},origin:function(){return rt}});var o=n(6768),s=n.p+"img/logo.08a1b5de.png";const i=e=>((0,o.Qi)("data-v-4cd9f01c"),e=e(),(0,o.jt)(),e),a={class:"upload-home"},c=i((()=>(0,o.Lk)("div",{class:"header"},[(0,o.Lk)("a",{href:"https://sanyue.site"},[(0,o.Lk)("img",{class:"logo",alt:"Vue logo",src:s})]),(0,o.Lk)("h1",null,"Sanyue ImgHub")],-1)));function l(e,t,n,r,s,i){const l=(0,o.g2)("UploadForm");return(0,o.uX)(),(0,o.CE)("div",a,[c,(0,o.bF)(l,{class:"upload"})])}var u=n(4232);const d=e=>((0,o.Qi)("data-v-5df5e935"),e=e(),(0,o.jt)(),e),f={class:"upload-form"},p=d((()=>(0,o.Lk)("div",{class:"el-upload__text"},[(0,o.eW)("拖拽 或 "),(0,o.Lk)("em",null,"点击上传")],-1))),h=d((()=>(0,o.Lk)("div",{class:"el-upload__tip"},"支持多文件上传(每次最多10个),支持图片和视频,文件大小不超过5MB",-1))),m={class:"upload-list-container"},g=["src"],y={class:"upload-list-item-content"},b={class:"upload-list-item-name"},w={class:"upload-list-item-url"},E={class:"upload-list-item-action"};function R(e,t,n,r,s,i){const a=(0,o.g2)("CameraFilled"),c=(0,o.g2)("el-icon"),l=(0,o.g2)("el-upload"),d=(0,o.g2)("el-text"),R=(0,o.g2)("el-link"),O=(0,o.g2)("Link"),S=(0,o.g2)("el-button"),v=(0,o.g2)("Delete"),T=(0,o.g2)("el-scrollbar"),A=(0,o.g2)("el-card");return(0,o.uX)(),(0,o.CE)("div",f,[(0,o.bF)(l,{class:(0,u.C4)(["upload-card",{"is-uploading":s.uploading}]),drag:"","http-request":i.uploadFile,multiple:"",onSuccess:i.handleSuccess,"on-exceed":i.handleExceed,"on-error":i.handleError,"before-upload":i.beforeUpload,"file-list":s.fileList,"show-file-list":!1,limit:10,accept:"image/*, video/*"},{tip:(0,o.k6)((()=>[h])),default:(0,o.k6)((()=>[(0,o.bF)(c,{class:"el-icon--upload"},{default:(0,o.k6)((()=>[(0,o.bF)(a)])),_:1}),p])),_:1},8,["class","http-request","onSuccess","on-exceed","on-error","before-upload","file-list"]),s.fileList.length?((0,o.uX)(),(0,o.Wv)(A,{key:0,class:"upload-list-card"},{default:(0,o.k6)((()=>[(0,o.Lk)("div",m,[(0,o.bF)(T,null,{default:(0,o.k6)((()=>[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(s.fileList,(e=>((0,o.uX)(),(0,o.CE)("div",{class:"upload-list-item",key:e.name,span:8},[(0,o.Lk)("img",{style:{width:"10vw","border-radius":"12px"},src:e.url},null,8,g),(0,o.Lk)("div",y,[(0,o.Lk)("div",b,(0,u.v_)(e.name),1),(0,o.Lk)("div",w,[(0,o.bF)(R,{underline:!1,href:e.url,target:"_blank"},{default:(0,o.k6)((()=>[(0,o.bF)(d,{class:"upload-list-item-url-text",truncated:""},{default:(0,o.k6)((()=>[(0,o.eW)((0,u.v_)(e.url),1)])),_:2},1024)])),_:2},1032,["href"])])]),(0,o.Lk)("div",E,[(0,o.bF)(S,{type:"primary",round:"",size:"small",class:"upload-list-item-action-button",onClick:t=>i.handleCopy(e)},{default:(0,o.k6)((()=>[(0,o.bF)(c,null,{default:(0,o.k6)((()=>[(0,o.bF)(O)])),_:1})])),_:2},1032,["onClick"]),(0,o.bF)(S,{type:"danger",round:"",size:"small",class:"upload-list-item-action-button",onClick:t=>i.handleRemove(e)},{default:(0,o.k6)((()=>[(0,o.bF)(c,null,{default:(0,o.k6)((()=>[(0,o.bF)(v)])),_:1})])),_:2},1032,["onClick"])])])))),128))])),_:1})])])),_:1})):(0,o.Q3)("",!0)])}n(4114),n(6573),n(8100),n(7936),n(7467),n(4732),n(9577);function O(e,t){return function(){return e.apply(t,arguments)}}const{toString:S}=Object.prototype,{getPrototypeOf:v}=Object,T=(e=>t=>{const n=S.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),A=e=>(e=e.toLowerCase(),t=>T(t)===e),C=e=>t=>typeof t===e,{isArray:x}=Array,_=C("undefined");function k(e){return null!==e&&!_(e)&&null!==e.constructor&&!_(e.constructor)&&N(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const L=A("ArrayBuffer");function F(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&L(e.buffer),t}const j=C("string"),N=C("function"),P=C("number"),U=e=>null!==e&&"object"===typeof e,B=e=>!0===e||!1===e,D=e=>{if("object"!==T(e))return!1;const t=v(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},q=A("Date"),I=A("File"),z=A("Blob"),M=A("FileList"),H=e=>U(e)&&N(e.pipe),W=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||N(e.append)&&("formdata"===(t=T(e))||"object"===t&&N(e.toString)&&"[object FormData]"===e.toString()))},J=A("URLSearchParams"),[$,K,V,X]=["ReadableStream","Request","Response","Headers"].map(A),G=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Q(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,o;if("object"!==typeof e&&(e=[e]),x(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function Z(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;while(o-- >0)if(r=n[o],t===r.toLowerCase())return r;return null}const Y=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),ee=e=>!_(e)&&e!==Y;function te(){const{caseless:e}=ee(this)&&this||{},t={},n=(n,r)=>{const o=e&&Z(t,r)||r;D(t[o])&&D(n)?t[o]=te(t[o],n):D(n)?t[o]=te({},n):x(n)?t[o]=n.slice():t[o]=n};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Q(arguments[r],n);return t}const ne=(e,t,n,{allOwnKeys:r}={})=>(Q(t,((t,r)=>{n&&N(t)?e[r]=O(t,n):e[r]=t}),{allOwnKeys:r}),e),re=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),oe=(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)},se=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{o=Object.getOwnPropertyNames(e),s=o.length;while(s-- >0)i=o[s],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&v(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ie=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},ae=e=>{if(!e)return null;if(x(e))return e;let t=e.length;if(!P(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},ce=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&v(Uint8Array)),le=(e,t)=>{const n=e&&e[Symbol.iterator],r=n.call(e);let o;while((o=r.next())&&!o.done){const n=o.value;t.call(e,n[0],n[1])}},ue=(e,t)=>{let n;const r=[];while(null!==(n=e.exec(t)))r.push(n);return r},de=A("HTMLFormElement"),fe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),pe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),he=A("RegExp"),me=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Q(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},ge=e=>{me(e,((t,n)=>{if(N(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];N(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},ye=(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return x(e)?r(e):r(String(e).split(t)),n},be=()=>{},we=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,Ee="abcdefghijklmnopqrstuvwxyz",Re="0123456789",Oe={DIGIT:Re,ALPHA:Ee,ALPHA_DIGIT:Ee+Ee.toUpperCase()+Re},Se=(e=16,t=Oe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;while(e--)n+=t[Math.random()*r|0];return n};function ve(e){return!!(e&&N(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const Te=e=>{const t=new Array(10),n=(e,r)=>{if(U(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=x(e)?[]:{};return Q(e,((e,t)=>{const s=n(e,r+1);!_(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},Ae=A("AsyncFunction"),Ce=e=>e&&(U(e)||N(e))&&N(e.then)&&N(e.catch);var xe={isArray:x,isArrayBuffer:L,isBuffer:k,isFormData:W,isArrayBufferView:F,isString:j,isNumber:P,isBoolean:B,isObject:U,isPlainObject:D,isReadableStream:$,isRequest:K,isResponse:V,isHeaders:X,isUndefined:_,isDate:q,isFile:I,isBlob:z,isRegExp:he,isFunction:N,isStream:H,isURLSearchParams:J,isTypedArray:ce,isFileList:M,forEach:Q,merge:te,extend:ne,trim:G,stripBOM:re,inherits:oe,toFlatObject:se,kindOf:T,kindOfTest:A,endsWith:ie,toArray:ae,forEachEntry:le,matchAll:ue,isHTMLForm:de,hasOwnProperty:pe,hasOwnProp:pe,reduceDescriptors:me,freezeMethods:ge,toObjectSet:ye,toCamelCase:fe,noop:be,toFiniteNumber:we,findKey:Z,global:Y,isContextDefined:ee,ALPHABET:Oe,generateString:Se,isSpecCompliantForm:ve,toJSONObject:Te,isAsyncFn:Ae,isThenable:Ce};function _e(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}xe.inherits(_e,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:xe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ke=_e.prototype,Le={};["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=>{Le[e]={value:e}})),Object.defineProperties(_e,Le),Object.defineProperty(ke,"isAxiosError",{value:!0}),_e.from=(e,t,n,r,o,s)=>{const i=Object.create(ke);return xe.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),_e.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};var Fe=_e,je=null;function Ne(e){return xe.isPlainObject(e)||xe.isArray(e)}function Pe(e){return xe.endsWith(e,"[]")?e.slice(0,-2):e}function Ue(e,t,n){return e?e.concat(t).map((function(e,t){return e=Pe(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function Be(e){return xe.isArray(e)&&!e.some(Ne)}const De=xe.toFlatObject(xe,{},null,(function(e){return/^is[A-Z]/.test(e)}));function qe(e,t,n){if(!xe.isObject(e))throw new TypeError("target must be an object");t=t||new(je||FormData),n=xe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!xe.isUndefined(t[e])}));const r=n.metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,a=n.Blob||"undefined"!==typeof Blob&&Blob,c=a&&xe.isSpecCompliantForm(t);if(!xe.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(xe.isDate(e))return e.toISOString();if(!c&&xe.isBlob(e))throw new Fe("Blob is not supported. Use a Buffer instead.");return xe.isArrayBuffer(e)||xe.isTypedArray(e)?c&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"===typeof e)if(xe.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(xe.isArray(e)&&Be(e)||(xe.isFileList(e)||xe.endsWith(n,"[]"))&&(a=xe.toArray(e)))return n=Pe(n),a.forEach((function(e,r){!xe.isUndefined(e)&&null!==e&&t.append(!0===i?Ue([n],r,s):null===i?n:n+"[]",l(e))})),!1;return!!Ne(e)||(t.append(Ue(o,n,s),l(e)),!1)}const d=[],f=Object.assign(De,{defaultVisitor:u,convertValue:l,isVisitable:Ne});function p(e,n){if(!xe.isUndefined(e)){if(-1!==d.indexOf(e))throw Error("Circular reference detected in "+n.join("."));d.push(e),xe.forEach(e,(function(e,r){const s=!(xe.isUndefined(e)||null===e)&&o.call(t,e,xe.isString(r)?r.trim():r,n,f);!0===s&&p(e,n?n.concat(r):[r])})),d.pop()}}if(!xe.isObject(e))throw new TypeError("data must be an object");return p(e),t}var Ie=qe;function ze(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Me(e,t){this._pairs=[],e&&Ie(e,this,t)}const He=Me.prototype;He.append=function(e,t){this._pairs.push([e,t])},He.toString=function(e){const t=e?function(t){return e.call(this,t,ze)}:ze;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var We=Me;function Je(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $e(e,t,n){if(!t)return e;const r=n&&n.encode||Je,o=n&&n.serialize;let s;if(s=o?o(t,n):xe.isURLSearchParams(t)?t.toString():new We(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}class Ke{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){xe.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Ve=Ke,Xe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ge=(n(4603),n(7566),n(8721),"undefined"!==typeof URLSearchParams?URLSearchParams:We),Qe="undefined"!==typeof FormData?FormData:null,Ze="undefined"!==typeof Blob?Blob:null,Ye={isBrowser:!0,classes:{URLSearchParams:Ge,FormData:Qe,Blob:Ze},protocols:["http","https","file","blob","url","data"]};const et="undefined"!==typeof window&&"undefined"!==typeof document,tt=(e=>et&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!==typeof navigator&&navigator.product),nt=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),rt=et&&window.location.href||"http://localhost";var ot={...r,...Ye};function st(e,t){return Ie(e,new ot.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ot.isNode&&xe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function it(e){return xe.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function at(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function ct(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&xe.isArray(r)?r.length:s,a)return xe.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&xe.isObject(r[s])||(r[s]=[]);const c=t(e,n,r[s],o);return c&&xe.isArray(r[s])&&(r[s]=at(r[s])),!i}if(xe.isFormData(e)&&xe.isFunction(e.entries)){const n={};return xe.forEachEntry(e,((e,r)=>{t(it(e),r,n,0)})),n}return null}var lt=ct;function ut(e,t,n){if(xe.isString(e))try{return(t||JSON.parse)(e),xe.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}const dt={transitional:Xe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=xe.isObject(e);o&&xe.isHTMLForm(e)&&(e=new FormData(e));const s=xe.isFormData(e);if(s)return r?JSON.stringify(lt(e)):e;if(xe.isArrayBuffer(e)||xe.isBuffer(e)||xe.isStream(e)||xe.isFile(e)||xe.isBlob(e)||xe.isReadableStream(e))return e;if(xe.isArrayBufferView(e))return e.buffer;if(xe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return st(e,this.formSerializer).toString();if((i=xe.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ie(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),ut(e)):e}],transformResponse:[function(e){const t=this.transitional||dt.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(xe.isResponse(e)||xe.isReadableStream(e))return e;if(e&&xe.isString(e)&&(n&&!this.responseType||r)){const n=t&&t.silentJSONParsing,s=!n&&r;try{return JSON.parse(e)}catch(o){if(s){if("SyntaxError"===o.name)throw Fe.from(o,Fe.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ot.classes.FormData,Blob:ot.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};xe.forEach(["delete","get","head","post","put","patch"],(e=>{dt.headers[e]={}}));var ft=dt;const pt=xe.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"]);var ht=e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&pt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t};const mt=Symbol("internals");function gt(e){return e&&String(e).trim().toLowerCase()}function yt(e){return!1===e||null==e?e:xe.isArray(e)?e.map(yt):String(e)}function bt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(e))t[r[1]]=r[2];return t}const wt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Et(e,t,n,r,o){return xe.isFunction(r)?r.call(this,t,n):(o&&(t=n),xe.isString(t)?xe.isString(r)?-1!==t.indexOf(r):xe.isRegExp(r)?r.test(t):void 0:void 0)}function Rt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function Ot(e,t){const n=xe.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}class St{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=gt(t);if(!o)throw new Error("header name must be a non-empty string");const s=xe.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=yt(e))}const s=(e,t)=>xe.forEach(e,((e,n)=>o(e,n,t)));if(xe.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(xe.isString(e)&&(e=e.trim())&&!wt(e))s(ht(e),t);else if(xe.isHeaders(e))for(const[i,a]of e.entries())o(a,i,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=gt(e),e){const n=xe.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return bt(e);if(xe.isFunction(t))return t.call(this,e,n);if(xe.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gt(e),e){const n=xe.findKey(this,e);return!(!n||void 0===this[n]||t&&!Et(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=gt(e),e){const o=xe.findKey(n,e);!o||t&&!Et(n,n[o],o,t)||(delete n[o],r=!0)}}return xe.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;while(n--){const o=t[n];e&&!Et(this,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return xe.forEach(this,((r,o)=>{const s=xe.findKey(n,o);if(s)return t[s]=yt(r),void delete t[o];const i=e?Rt(o):String(o).trim();i!==o&&delete t[o],t[i]=yt(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return xe.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&xe.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=this[mt]=this[mt]={accessors:{}},n=t.accessors,r=this.prototype;function o(e){const t=gt(e);n[t]||(Ot(r,e),n[t]=!0)}return xe.isArray(e)?e.forEach(o):o(e),this}}St.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),xe.reduceDescriptors(St.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),xe.freezeMethods(St);var vt=St;function Tt(e,t){const n=this||ft,r=t||n,o=vt.from(r.headers);let s=r.data;return xe.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function At(e){return!(!e||!e.__CANCEL__)}function Ct(e,t,n){Fe.call(this,null==e?"canceled":e,Fe.ERR_CANCELED,t,n),this.name="CanceledError"}xe.inherits(Ct,Fe,{__CANCEL__:!0});var xt=Ct;function _t(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Fe("Request failed with status code "+n.status,[Fe.ERR_BAD_REQUEST,Fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function kt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Lt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,d=0;while(u!==s)d+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const f=l&&c-l;return f?Math.round(1e3*d/f):void 0}}var Ft=Lt;function jt(e,t){let n=0;const r=1e3/t;let o=null;return function(){const t=!0===this,s=Date.now();if(t||s-n>r)return o&&(clearTimeout(o),o=null),n=s,e.apply(null,arguments);o||(o=setTimeout((()=>(o=null,n=Date.now(),e.apply(null,arguments))),r-(s-n)))}}var Nt=jt,Pt=(e,t,n=3)=>{let r=0;const o=Ft(50,250);return Nt((n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a),l=s<=i;r=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&l?(i-s)/c:void 0,event:n,lengthComputable:null!=i};u[t?"download":"upload"]=!0,e(u)}),n)},Ut=(n(4979),ot.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{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=r(window.location.href),function(e){const t=xe.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}()),Bt=ot.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];xe.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),xe.isString(r)&&i.push("path="+r),xe.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.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 Dt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function qt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function It(e,t){return e&&!Dt(t)?qt(e,t):t}const zt=e=>e instanceof vt?{...e}:e;function Mt(e,t){t=t||{};const n={};function r(e,t,n){return xe.isPlainObject(e)&&xe.isPlainObject(t)?xe.merge.call({caseless:n},e,t):xe.isPlainObject(t)?xe.merge({},t):xe.isArray(t)?t.slice():t}function o(e,t,n){return xe.isUndefined(t)?xe.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!xe.isUndefined(t))return r(void 0,t)}function i(e,t){return xe.isUndefined(t)?xe.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(zt(e),zt(t),!0)};return xe.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);xe.isUndefined(i)&&s!==a||(n[r]=i)})),n}var Ht=e=>{const t=Mt({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:c}=t;if(t.headers=a=vt.from(a),t.url=$e(It(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),xe.isFormData(r))if(ot.hasStandardBrowserEnv||ot.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(ot.hasStandardBrowserEnv&&(o&&xe.isFunction(o)&&(o=o(t)),o||!1!==o&&Ut(t.url))){const e=s&&i&&Bt.read(i);e&&a.set(s,e)}return t};const Wt="undefined"!==typeof XMLHttpRequest;var Jt=Wt&&function(e){return new Promise((function(t,n){const r=Ht(e);let o=r.data;const s=vt.from(r.headers).normalize();let i,{responseType:a}=r;function c(){r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let l=new XMLHttpRequest;function u(){if(!l)return;const r=vt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),o=a&&"text"!==a&&"json"!==a?l.response:l.responseText,s={data:o,status:l.status,statusText:l.statusText,headers:r,config:e,request:l};_t((function(e){t(e),c()}),(function(e){n(e),c()}),s),l=null}l.open(r.method.toUpperCase(),r.url,!0),l.timeout=r.timeout,"onloadend"in l?l.onloadend=u:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(u)},l.onabort=function(){l&&(n(new Fe("Request aborted",Fe.ECONNABORTED,r,l)),l=null)},l.onerror=function(){n(new Fe("Network Error",Fe.ERR_NETWORK,r,l)),l=null},l.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const t=r.transitional||Xe;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new Fe(e,t.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,r,l)),l=null},void 0===o&&s.setContentType(null),"setRequestHeader"in l&&xe.forEach(s.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),xe.isUndefined(r.withCredentials)||(l.withCredentials=!!r.withCredentials),a&&"json"!==a&&(l.responseType=r.responseType),"function"===typeof r.onDownloadProgress&&l.addEventListener("progress",Pt(r.onDownloadProgress,!0)),"function"===typeof r.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Pt(r.onUploadProgress)),(r.cancelToken||r.signal)&&(i=t=>{l&&(n(!t||t.type?new xt(null,e,l):t),l.abort(),l=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const d=kt(r.url);d&&-1===ot.protocols.indexOf(d)?n(new Fe("Unsupported protocol "+d+":",Fe.ERR_BAD_REQUEST,e)):l.send(o||null)}))};const $t=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Fe?t:new xt(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{o(new Fe(`timeout ${t} of ms exceeded`,Fe.ETIMEDOUT))}),t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=i,[a,()=>{s&&clearTimeout(s),s=null}]};var Kt=$t;const Vt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;while(o<n)r=o+t,yield e.slice(o,r),o=r},Xt=async function*(e,t,n){for await(const r of e)yield*Vt(ArrayBuffer.isView(r)?r:await n(String(r)),t)},Gt=(e,t,n,r,o)=>{const s=Xt(e,t,o);let i=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:o}=await s.next();if(t)return e.close(),void r();let a=o.byteLength;n&&n(i+=a),e.enqueue(new Uint8Array(o))},cancel(e){return r(e),s.return()}},{highWaterMark:2})},Qt=(e,t)=>{const n=null!=e;return r=>setTimeout((()=>t({lengthComputable:n,total:e,loaded:r})))},Zt="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Yt=Zt&&"function"===typeof ReadableStream,en=Zt&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),tn=Yt&&(()=>{let e=!1;const t=new Request(ot.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),nn=65536,rn=Yt&&!!(()=>{try{return xe.isReadableStream(new Response("").body)}catch(e){}})(),on={stream:rn&&(e=>e.body)};Zt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!on[t]&&(on[t]=xe.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new Fe(`Response type '${t}' is not supported`,Fe.ERR_NOT_SUPPORT,n)})}))})(new Response);const sn=async e=>null==e?0:xe.isBlob(e)?e.size:xe.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:xe.isArrayBufferView(e)?e.byteLength:(xe.isURLSearchParams(e)&&(e+=""),xe.isString(e)?(await en(e)).byteLength:void 0),an=async(e,t)=>{const n=xe.toFiniteNumber(e.getContentLength());return null==n?sn(t):n};var cn=Zt&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Ht(e);l=l?(l+"").toLowerCase():"text";let p,h,[m,g]=o||s||i?Kt([o,s],i):[];const y=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let b;try{if(c&&tn&&"get"!==n&&"head"!==n&&0!==(b=await an(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});xe.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body&&(r=Gt(n.body,nn,Qt(b,Pt(c)),null,en))}xe.isString(d)||(d=d?"cors":"omit"),h=new Request(t,{...f,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let o=await fetch(h);const s=rn&&("stream"===l||"response"===l);if(rn&&(a||s)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=xe.toFiniteNumber(o.headers.get("content-length"));o=new Response(Gt(o.body,nn,a&&Qt(t,Pt(a,!0)),s&&y,en),e)}l=l||"text";let i=await on[xe.findKey(on,l)||"text"](o,e);return!s&&y(),g&&g(),await new Promise(((t,n)=>{_t(t,n,{data:i,headers:vt.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})}))}catch(w){if(y(),w&&"TypeError"===w.name&&/fetch/i.test(w.message))throw Object.assign(new Fe("Network Error",Fe.ERR_NETWORK,e,h),{cause:w.cause||w});throw Fe.from(w,w&&w.code,e,h)}});const ln={http:je,xhr:Jt,fetch:cn};xe.forEach(ln,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const un=e=>`- ${e}`,dn=e=>xe.isFunction(e)||null===e||!1===e;var fn={getAdapter:e=>{e=xe.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){let t;if(n=e[s],r=n,!dn(n)&&(r=ln[(t=String(n)).toLowerCase()],void 0===r))throw new Fe(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+s]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(un).join("\n"):" "+un(e[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r},adapters:ln};function pn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xt(null,e)}function hn(e){pn(e),e.headers=vt.from(e.headers),e.data=Tt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=fn.getAdapter(e.adapter||ft.adapter);return t(e).then((function(t){return pn(e),t.data=Tt.call(e,e.transformResponse,t),t.headers=vt.from(t.headers),t}),(function(t){return At(t)||(pn(e),t&&t.response&&(t.response.data=Tt.call(e,e.transformResponse,t.response),t.response.headers=vt.from(t.response.headers))),Promise.reject(t)}))}const mn="1.7.2",gn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{gn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const yn={};function bn(e,t,n){if("object"!==typeof e)throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;while(o-- >0){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new Fe("option "+s+" must be "+n,Fe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Fe("Unknown option "+s,Fe.ERR_BAD_OPTION)}}gn.transitional=function(e,t,n){function r(e,t){return"[Axios v"+mn+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new Fe(r(o," has been removed"+(t?" in "+t:"")),Fe.ERR_DEPRECATED);return t&&!yn[o]&&(yn[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}};var wn={assertOptions:bn,validators:gn};const En=wn.validators;class Rn{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(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Mt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&wn.assertOptions(n,{silentJSONParsing:En.transitional(En.boolean),forcedJSONParsing:En.transitional(En.boolean),clarifyTimeoutError:En.transitional(En.boolean)},!1),null!=r&&(xe.isFunction(r)?t.paramsSerializer={serialize:r}:wn.assertOptions(r,{encode:En.function,serialize:En.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&xe.merge(o.common,o[t.method]);o&&xe.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=vt.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[hn.bind(this),void 0];e.unshift.apply(e,i),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);while(d<u)l=l.then(e[d++],e[d++]);return l}u=i.length;let f=t;d=0;while(d<u){const e=i[d++],t=i[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{l=hn.call(this,f)}catch(p){return Promise.reject(p)}d=0,u=c.length;while(d<u)l=l.then(c[d++],c[d++]);return l}getUri(e){e=Mt(this.defaults,e);const t=It(e.baseURL,e.url);return $e(t,e.params,e.paramsSerializer)}}xe.forEach(["delete","get","head","options"],(function(e){Rn.prototype[e]=function(t,n){return this.request(Mt(n||{},{method:e,url:t,data:(n||{}).data}))}})),xe.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Mt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Rn.prototype[e]=t(),Rn.prototype[e+"Form"]=t(!0)}));var On=Rn;class Sn{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new xt(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Sn((function(t){e=t}));return{token:t,cancel:e}}}var vn=Sn;function Tn(e){return function(t){return e.apply(null,t)}}function An(e){return xe.isObject(e)&&!0===e.isAxiosError}const Cn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Cn).forEach((([e,t])=>{Cn[t]=e}));var xn=Cn;function _n(e){const t=new On(e),n=O(On.prototype.request,t);return xe.extend(n,On.prototype,t,{allOwnKeys:!0}),xe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return _n(Mt(e,t))},n}const kn=_n(ft);kn.Axios=On,kn.CanceledError=xt,kn.CancelToken=vn,kn.isCancel=At,kn.VERSION=mn,kn.toFormData=Ie,kn.AxiosError=Fe,kn.Cancel=kn.CanceledError,kn.all=function(e){return Promise.all(e)},kn.spread=Tn,kn.isAxiosError=An,kn.mergeConfig=Mt,kn.AxiosHeaders=vt,kn.formToJSON=e=>lt(xe.isHTMLForm(e)?new FormData(e):e),kn.getAdapter=fn.getAdapter,kn.HttpStatusCode=xn,kn.default=kn;var Ln=kn,Fn={name:"UploadForm",data(){return{fileList:[{uid:1,name:"image.png",url:"https://imgbed.sanyue.site/file/0dbd5add3605a0b2e8994.jpg"},{uid:2,name:"video.mp4",url:"https://imgbed.sanyue.site/file/0dbd5add3605a0b2e8994.jpg"}],uploading:!1,file:null}},methods:{uploadFile(e){const t=new FormData;return t.append("file",e.file),Ln.post("/upload",t)},handlePreview(e){window.open(e.url,"_blank")},handleRemove(e){this.fileList=this.fileList.filter((t=>t.uid!==e.uid)),this.$message({type:"info",message:e.name+"已删除"})},handleSuccess(e,t){try{this.fileList.push({uid:t.uid,name:t.name,url:"https://imgbed.sanyue.site"+e.data[0].src}),this.$message({type:"success",message:t.name+"上传成功"})}catch(n){this.$message.error(t.name+"上传失败"),this.fileList=this.fileList.filter((e=>e.uid!==t.uid))}finally{this.uploading=!1}},handleExceed(e){this.$message.warning(`当前限制选择 10 个文件,本次选择了 ${e.length} 个文件`)},handleError(e){this.$message.error(this.file.name+"上传失败"),this.uploading=!1},handleCopy(e){navigator.clipboard.writeText(e.url),this.$message({type:"success",message:"复制成功"})},beforeUpload(e){const t=e.size/1024/1024<5;return t?(this.uploading=!0,this.file=e):this.$message.error("上传文件大小不能超过 5MB!"),t}}},jn=n(1241);const Nn=(0,jn.A)(Fn,[["render",R],["__scopeId","data-v-5df5e935"]]);var Pn=Nn,Un={name:"UploadHome",components:{UploadForm:Pn}};const Bn=(0,jn.A)(Un,[["render",l],["__scopeId","data-v-4cd9f01c"]]);var Dn=Bn}}]);
//# sourceMappingURL=366.97cb300b.js.map