file-viewer-demo/public/file-viewer3/assets/index-0fd2d185.js

9 lines
123 KiB
JavaScript
Raw Normal View History

2023-04-24 05:44:48 +00:00
var Il=Object.defineProperty;var Nl=(e,t,r)=>t in e?Il(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Jo=(e,t,r)=>(Nl(e,typeof t!="symbol"?t+"":t,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();function io(e,t){const r=Object.create(null),n=e.split(",");for(let o=0;o<n.length;o++)r[n[o]]=!0;return t?o=>!!r[o.toLowerCase()]:o=>!!r[o]}function so(e){if(M(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],o=Z(n)?Dl(n):so(n);if(o)for(const i in o)t[i]=o[i]}return t}else{if(Z(e))return e;if(V(e))return e}}const $l=/;(?![^(]*\))/g,Ml=/:([^]+)/,Bl=/\/\*.*?\*\//gs;function Dl(e){const t={};return e.replace(Bl,"").split($l).forEach(r=>{if(r){const n=r.split(Ml);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Jr(e){let t="";if(Z(e))t=e;else if(M(e))for(let r=0;r<e.length;r++){const n=Jr(e[r]);n&&(t+=n+" ")}else if(V(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const Ll="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ul=io(Ll);function ts(e){return!!e||e===""}const gt=e=>Z(e)?e:e==null?"":M(e)||V(e)&&(e.toString===is||!$(e.toString))?JSON.stringify(e,rs,2):String(e),rs=(e,t)=>t&&t.__v_isRef?rs(e,t.value):Tt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o])=>(r[`${n} =>`]=o,r),{})}:ns(t)?{[`Set(${t.size})`]:[...t.values()]}:V(t)&&!M(t)&&!ss(t)?String(t):t,K={},Rt=[],Pe=()=>{},jl=()=>!1,Hl=/^on[^a-z]/,Gr=e=>Hl.test(e),lo=e=>e.startsWith("onUpdate:"),fe=Object.assign,ao=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Wl=Object.prototype.hasOwnProperty,U=(e,t)=>Wl.call(e,t),M=Array.isArray,Tt=e=>Qr(e)==="[object Map]",ns=e=>Qr(e)==="[object Set]",$=e=>typeof e=="function",Z=e=>typeof e=="string",co=e=>typeof e=="symbol",V=e=>e!==null&&typeof e=="object",os=e=>V(e)&&$(e.then)&&$(e.catch),is=Object.prototype.toString,Qr=e=>is.call(e),kl=e=>Qr(e).slice(8,-1),ss=e=>Qr(e)==="[object Object]",uo=e=>Z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Cr=io(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xr=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},zl=/-(\w)/g,He=Xr(e=>e.replace(zl,(t,r)=>r?r.toUpperCase():"")),ql=/\B([A-Z])/g,Ht=Xr(e=>e.replace(ql,"-$1").toLowerCase()),Yr=Xr(e=>e.charAt(0).toUpperCase()+e.slice(1)),hn=Xr(e=>e?`on${Yr(e)}`:""),sr=(e,t)=>!Object.is(e,t),Fr=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Ur=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Mn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Go;const Kl=()=>Go||(Go=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Oe;class Vl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Oe,!t&&Oe&&(this.index=(Oe.scopes||(Oe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Oe;try{return Oe=this,t()}finally{Oe=r}}}on(){Oe=this}off(){Oe=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Jl(e,t=Oe){t&&t.a
`)>=0)return!1;return!0}function hf(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Le.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Le.call(Array(t+1),r)}}function Zn(e,t){if(e.length===0)return"";var r=`
`+t.prev+t.base;return r+Le.call(e,","+r)+`
`+t.prev}function Ar(e,t){var r=Yn(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Ze(e,o)?t(e[o],e):""}var i=typeof An=="function"?An(e):[],s;if(Lt){s={};for(var l=0;l<i.length;l++)s["$"+i[l]]=i[l]}for(var a in e)Ze(e,a)&&(r&&String(Number(a))===a&&a<e.length||Lt&&s["$"+a]instanceof Symbol||(Xs.call(/[^\w$]/,a)?n.push(t(a,e)+": "+t(e[a],e)):n.push(a+": "+t(e[a],e))));if(typeof An=="function")for(var c=0;c<i.length;c++)Ys.call(e,i[c])&&n.push("["+t(i[c])+"]: "+t(e[i[c]],e));return n}var Io=Ro,zt=Bu,yf=Gu,mf=Io("%TypeError%"),Pr=Io("%WeakMap%",!0),Rr=Io("%Map%",!0),gf=zt("WeakMap.prototype.get",!0),bf=zt("WeakMap.prototype.set",!0),vf=zt("WeakMap.prototype.has",!0),_f=zt("Map.prototype.get",!0),wf=zt("Map.prototype.set",!0),Ef=zt("Map.prototype.has",!0),No=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},Sf=function(e,t){var r=No(e,t);return r&&r.value},Of=function(e,t,r){var n=No(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},xf=function(e,t){return!!No(e,t)},Af=function(){var t,r,n,o={assert:function(i){if(!o.has(i))throw new mf("Side channel does not contain "+yf(i))},get:function(i){if(Pr&&i&&(typeof i=="object"||typeof i=="function")){if(t)return gf(t,i)}else if(Rr){if(r)return _f(r,i)}else if(n)return Sf(n,i)},has:function(i){if(Pr&&i&&(typeof i=="object"||typeof i=="function")){if(t)return vf(t,i)}else if(Rr){if(r)return Ef(r,i)}else if(n)return xf(n,i);return!1},set:function(i,s){Pr&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Pr),bf(t,i,s)):Rr?(r||(r=new Rr),wf(r,i,s)):(n||(n={key:{},next:null}),Of(n,i,s))}};return o},Pf=String.prototype.replace,Rf=/%20/g,Rn={RFC1738:"RFC1738",RFC3986:"RFC3986"},$o={default:Rn.RFC3986,formatters:{RFC1738:function(e){return Pf.call(e,Rf,"+")},RFC3986:function(e){return String(e)}},RFC1738:Rn.RFC1738,RFC3986:Rn.RFC3986},Tf=$o,Tn=Object.prototype.hasOwnProperty,yt=Array.isArray,$e=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Cf=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(yt(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},nl=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(n[o]=t[o]);return n},Ff=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(yt(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Tn.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var o=t;return yt(t)&&!yt(r)&&(o=nl(t,n)),yt(t)&&yt(r)?(r.forEach(function(i,s){if(Tn.call(t,s)){var l=t[s];l&&typeof l=="object"&&i&&typeof i=="object"?t[s]=e(l,i,n):t.push(i)}else t[s]=i}),t):Object.keys(r).reduce(function(i,s){var l=r[s];return Tn.call(i,s)?i[s]=e(i[s],l,n):i[s]=l,i},o)},If=function(t,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},t)},Nf=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},$f=function(t,r,n,o,i){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var l="",a=0;a<s.length;++a){var c=s.charCodeAt(a);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===Tf.RFC1738&&(c===40||c===41)){l+=s.charAt(a);continue}if(c<128){l=l+$e[c];continue}if(c<2048){l=l+($e[192|c>>6]+$e[128|c&63]);continue}if(c<55296||c>=57344){l=l+($e[224|c>>12]+$e[128|c>>6&63]+$e[128|c&63]);continue}a+=1,c=65536+((c&1023)<<10|s.charCodeAt(a)&1023),l+=$e[240|c>>18]+$e[128|c>>12&63]+$e[128|c>>6&63]+$e[128|c&63]}return l},Mf=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],s=i.obj[i.prop],l=Object.keys(s),a=0;a<l.length;++a){var c=l[a],u=s[c];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:s
`,1))}});const Bd=Mo(Md,[["__scopeId","data-v-3be501eb"]]);async function Dd(e,t){const r=await al(e),n=Et({render:()=>X(Bd,{value:r},null)});return n.mount(t),n}function Ld(e,t){const r=document.createElement("video");r.width=840,r.height=480,r.controls=!0;const n=document.createElement("source");n.src=URL.createObjectURL(new Blob([e])),r.appendChild(n),t.appendChild(r)}const Tr=e=>({$el:e,unmount(){}}),Ud=[{accepts:["docx"],handler:async(e,t)=>(await wd(e,t),window.dispatchEvent(new Event("resize")),Tr(t))},{accepts:["pptx"],handler:async(e,t)=>(await Sd(e,t),window.dispatchEvent(new Event("resize")),Tr(t))},{accepts:["xlsx"],handler:async(e,t)=>xd(e,t)},{accepts:["pdf"],handler:async(e,t)=>Pd(e,t)},{accepts:["gif","jpg","jpeg","bmp","tiff","tif","png","svg"],handler:async(e,t)=>Fd(e,t)},{accepts:["md","markdown"],handler:async(e,t)=>Nd(e,t)},{accepts:["txt","json","js","css","java","py","html","jsx","ts","tsx","xml","log"],handler:async(e,t)=>Dd(e,t)},{accepts:["mp4"],handler:async(e,t)=>(Ld(e,t),Tr(t))},{accepts:["error"],handler:async(e,t,r)=>(t.innerHTML=`<div style='text-align: center; margin-top: 80px'>不支持.${r}格式的在线预览请下载后预览或转换为支持的格式</div>
<div style='text-align: center'>支持docx, xlsx, pptx, pdf, 以及纯文本格式和各种图片格式的在线预览</div>`,Tr(t))}],cl=Ud.reduce((e,{accepts:t,handler:r})=>(t.forEach(n=>e.set(n,r)),e),new Map),zi=cl.get("error");function jd(e){const t=e.lastIndexOf(".");return e.substring(t+1)}async function Hd(e,t,r){const n=cl.get(t.toLowerCase());if(n)return n(e,r);if(zi)return zi(e,r,t)}function ul(e,t){return function(){return e.apply(t,arguments)}}const{toString:fl}=Object.prototype,{getPrototypeOf:Bo}=Object,Do=(e=>t=>{const r=fl.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Je=e=>(e=e.toLowerCase(),t=>Do(t)===e),an=e=>t=>typeof t===e,{isArray:Kt}=Array,fr=an("undefined");function Wd(e){return e!==null&&!fr(e)&&e.constructor!==null&&!fr(e.constructor)&&it(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dl=Je("ArrayBuffer");function kd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&dl(e.buffer),t}const zd=an("string"),it=an("function"),pl=an("number"),Lo=e=>e!==null&&typeof e=="object",qd=e=>e===!0||e===!1,Mr=e=>{if(Do(e)!=="object")return!1;const t=Bo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Kd=Je("Date"),Vd=Je("File"),Jd=Je("Blob"),Gd=Je("FileList"),Qd=e=>Lo(e)&&it(e.pipe),Xd=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||fl.call(e)===t||it(e.toString)&&e.toString()===t)},Yd=Je("URLSearchParams"),Zd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Kt(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let l;for(n=0;n<s;n++)l=i[n],t.call(null,e[l],l,e)}}function hl(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const yl=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ml=e=>!fr(e)&&e!==yl;function to(){const{caseless:e}=ml(this)&&this||{},t={},r=(n,o)=>{const i=e&&hl(t,o)||o;Mr(t[i])&&Mr(n)?t[i]=to(t[i],n):Mr(n)?t[i]=to({},n):Kt(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&mr(arguments[n],r);return t}const ep=(e,t,r,{allOwnKeys:n}={})=>(mr(t,(o,i)=>{r&&it(o)?e[i]=ul(o,r):e[i]=o},{allOwnKeys:n}),e),tp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rp=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},np=(e,t,r,n)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=r!==!1&&Bo(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},op=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},ip=e=>{if(!e)return null;if(Kt(e))return e;let t=e.length;if(!pl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},sp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bo(Uint8Array)),lp=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},ap=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},cp=Je("HTMLFormElement"),up=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),qi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),fp=Je("RegExp"),gl=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};mr(r,(o,i)=>{t(o,i,e)!==!1&&(n[i]=o)}),Object.defineProperties(e,n)},dp=e=>{gl(e,(t,r)=>{if(it(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(it(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},pp=
`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&$p[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Qi=Symbol("internals");function Xt(e){return e&&String(e).trim().toLowerCase()}function Br(e){return e===!1||e==null?e:g.isArray(e)?e.map(Br):String(e)}function Bp(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}function Dp(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function In(e,t,r,n,o){if(g.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!g.isString(t)){if(g.isString(n))return t.indexOf(n)!==-1;if(g.isRegExp(n))return n.test(t)}}function Lp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Up(e,t){const r=g.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}class fn{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(l,a,c){const u=Xt(a);if(!u)throw new Error("header name must be a non-empty string");const p=g.findKey(o,u);(!p||o[p]===void 0||c===!0||c===void 0&&o[p]!==!1)&&(o[p||a]=Br(l))}const s=(l,a)=>g.forEach(l,(c,u)=>i(c,u,a));return g.isPlainObject(t)||t instanceof this.constructor?s(t,r):g.isString(t)&&(t=t.trim())&&!Dp(t)?s(Mp(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=Xt(t),t){const n=g.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Bp(o);if(g.isFunction(r))return r.call(this,o,n);if(g.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Xt(t),t){const n=g.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||In(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=Xt(s),s){const l=g.findKey(n,s);l&&(!r||In(n,n[l],l,r))&&(delete n[l],o=!0)}}return g.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||In(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return g.forEach(this,(o,i)=>{const s=g.findKey(n,i);if(s){r[s]=Br(o),delete r[i];return}const l=t?Lp(i):String(i).trim();l!==i&&delete r[i],r[l]=Br(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return g.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&g.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Qi]=this[Qi]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=Xt(s);n[l]||(Up(o,s),n[l]=!0)}return g.isArray(t)?t.forEach(i):i(t),this}}fn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);g.freezeMethods(fn.prototype);g.freezeMethods(fn);const qe=fn;function Nn(e,t){const r=this||jo,n=t||r,o=qe.from(n.headers);let i=n.data;return g.forEach(e,function(l){i=l.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Al(e){return!!(e&&e.__CANCEL__)}function gr(e,t,r){j.call(this,e??"canceled",j.ERR_CANCELED,t,r),this.name="CanceledError"}g.inherits(gr,j,{__CANCEL__:!0});function jp(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new j("Request failed with status code "+r.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Hp=je.isStandardBrowserEnv?function(){return{write:function(r,n,o,i,s,l){const a=[];a.push(r+"="+encodeURIComponent(n)),g.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),g.isString(i)&&a.push("path="+i),g.isString(s)&&a.push("domain="+s),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Wp(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kp(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Pl(e,t){return e&&!Wp(t)?kp(e,t):t}const zp=je.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const l=g.isString(s)?o(s):s;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}();function qp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kp(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=n[i];s||(s=c),r[o]=a,n[o]=c;let p=i,h=0;for(;p!==o;)h+=r[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const b=u&&c-u;return b?Math.round(h*1e3/b):void 0}}function Xi(e,t){let r=0;const n=Kp(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-r,a=n(l),c=i<=s;r=i;const u={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&c?(s-i)/a:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const Vp=typeof XMLHttpRequest<"u",Jp=Vp&&function(e){return new Promise(function(r,n){let o=e.data;const i=qe.from(e.headers).normalize(),s=e.responseType;let l;function a(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}g.isFormData(o)&&(je.isStandardBrowserEnv||je.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const b=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(b+":"+y))}const u=Pl(e.baseURL,e.url);c.open(e.method.toUpperCase(),Sl(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function p(){if(!c)return;const b=qe.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:b,config:e,request:c};jp(function(A){r(A),a()},function(A){n(A),a()},E),c