sumor 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,39 +1 @@
1
- {
2
- "name": "sumor",
3
- "version": "1.0.2",
4
- "description": "Sumor Cloud Application",
5
- "homepage": "https://www.sumor.com",
6
- "author": "Sumor Cloud (https://www.sumor.com)",
7
- "license": "MIT",
8
- "bin": {
9
- "sumor": "cli.js"
10
- },
11
- "dependencies": {
12
- "@alicloud/sms-sdk": "^1.1.6",
13
- "ali-oss": "6.1.1",
14
- "axios": "^1.3.2",
15
- "better-sqlite3": "^8.0.1",
16
- "body-parser": "^1.20.1",
17
- "compression": "^1.7.4",
18
- "cookie-parser": "^1.4.6",
19
- "express": "^4.18.2",
20
- "fs-extra": "^11.1.0",
21
- "knex": "^2.1.0",
22
- "chalk": "^4.1.2",
23
- "multer": "^1.4.2",
24
- "mysql2": "^3.1.0",
25
- "redis": "^4.6.4",
26
- "serve-static": "^1.14.1",
27
- "spdy": "^4.0.2",
28
- "uuid": "^3.3.2",
29
- "glob": "^7.1.2",
30
- "archiver": "^2.1.1",
31
- "commander": "^9.4.0",
32
- "extract-zip": "^1.6.6",
33
- "node-ssh": "^6.0.0",
34
- "os-utils": "0.0.14",
35
- "dayjs": "^1.11.1",
36
- "vue": "^3.2.37",
37
- "jsrsasign": "^10.8.6"
38
- }
39
- }
1
+ {"name":"sumor","description":"Sumor Cloud Application","homepage":"https://www.sumor.com","author":"Sumor Cloud (https://www.sumor.com)","license":"MIT","bin":{"sumor":"cli.js"},"dependencies":{"@alicloud/sms-sdk":"^1.1.6","ali-oss":"6.1.1","axios":"^1.3.2","body-parser":"^1.20.1","compression":"^1.7.4","cookie-parser":"^1.4.6","express":"^4.18.2","fs-extra":"^11.1.0","knex":"^2.1.0","chalk":"^4.1.2","multer":"^1.4.2","mysql2":"^3.1.0","serve-static":"^1.14.1","spdy":"^4.0.2","uuid":"^3.3.2","glob":"^7.1.2","archiver":"^2.1.1","commander":"^9.4.0","extract-zip":"^1.6.6","node-ssh":"^6.0.0","os-utils":"0.0.14","dayjs":"^1.11.1","vue":"^3.2.37","jsrsasign":"^10.8.6"},"version":"1.0.3"}
@@ -0,0 +1 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();function An(e,t){const n=Object.create(null),o=e.split(",");for(let s=0;s<o.length;s++)n[o[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const D={},Ze=[],_e=()=>{},Fo=()=>!1,Mo=/^on[^a-z]/,$t=e=>Mo.test(e),Fn=e=>e.startsWith("onUpdate:"),X=Object.assign,Mn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ko=Object.prototype.hasOwnProperty,N=(e,t)=>ko.call(e,t),T=Array.isArray,Qe=e=>Wt(e)==="[object Map]",Ls=e=>Wt(e)==="[object Set]",P=e=>typeof e=="function",V=e=>typeof e=="string",kn=e=>typeof e=="symbol",K=e=>e!==null&&typeof e=="object",js=e=>K(e)&&P(e.then)&&P(e.catch),Bs=Object.prototype.toString,Wt=e=>Bs.call(e),Ro=e=>Wt(e).slice(8,-1),Us=e=>Wt(e)==="[object Object]",Rn=e=>V(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kt=An(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},No=/-(\w)/g,Ce=zt(e=>e.replace(No,(t,n)=>n?n.toUpperCase():"")),So=/\B([A-Z])/g,st=zt(e=>e.replace(So,"-$1").toLowerCase()),qt=zt(e=>e.charAt(0).toUpperCase()+e.slice(1)),ln=zt(e=>e?`on${qt(e)}`:""),jt=(e,t)=>!Object.is(e,t),Rt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Bt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},pn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ts;const gn=()=>ts||(ts=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Nn(e){if(T(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=V(o)?Uo(o):Nn(o);if(s)for(const r in s)t[r]=s[r]}return t}else{if(V(e))return e;if(K(e))return e}}const Lo=/;(?![^(]*\))/g,jo=/:([^]+)/,Bo=/\/\*[^]*?\*\//g;function Uo(e){const t={};return e.replace(Bo,"").split(Lo).forEach(n=>{if(n){const o=n.split(jo);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ue(e){let t="";if(V(e))t=e;else if(T(e))for(let n=0;n<e.length;n++){const o=ue(e[n]);o&&(t+=o+" ")}else if(K(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ho="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Do=An(Ho);function Hs(e){return!!e||e===""}const te=e=>V(e)?e:e==null?"":T(e)||K(e)&&(e.toString===Bs||!P(e.toString))?JSON.stringify(e,Ds,2):String(e),Ds=(e,t)=>t&&t.__v_isRef?Ds(e,t.value):Qe(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s])=>(n[`${o} =>`]=s,n),{})}:Ls(t)?{[`Set(${t.size})`]:[...t.values()]}:K(t)&&!T(t)&&!Us(t)?String(t):t;let he;class Ko{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=he,!t&&he&&(this.index=(he.scopes||(he.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=he;try{return he=this,t()}finally{he=n}}}on(){he=this}off(){he=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function $o(e,t=he){t&&t.active&&t.effects.push(e)}function Wo(){return he}const Sn=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ks=e=>(e.w&Re)>0,$s=e=>(e.n&Re)>0,zo=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Re},qo=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const s=t[o];Ks(s)&&!$s(s)?s.delete(e):t[n++]=s,s.w&=~Re,s.n&=~Re}t.length=n}},_n=new WeakMap;let ut=0,Re=1;const mn=30;let pe;const We=Symbol(""),bn=Symbol("");class Ln{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,$o(this,o)}run(){if(!this.active)return this.fn();let t=pe,n=Me;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=pe,pe=this,Me=!0,Re=1<<++ut,ut<=mn?zo(this):ns(this),this.fn()}finally{ut<=mn&&qo(this),Re=1<<--ut,pe=this.parent,Me=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){pe===this?this.deferStop=!0:this.active&&(ns(this),this.onStop&&this.onStop(),this.active=!1)}}function ns(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Me=!0;const Ws=[];function ot(){Ws.push(Me),Me=!1}function rt(){const e=Ws.pop();Me=e===void 0?!0:e}function ce(e,t,n){if(Me&&pe){let o=_n.get(e);o||_n.set(e,o=new Map);let s=o.get(n);s||o.set(n,s=Sn()),zs(s)}}function zs(e,t){let n=!1;ut<=mn?$s(e)||(e.n|=Re,n=!Ks(e)):n=!e.has(pe),n&&(e.add(pe),pe.deps.push(e))}function Te(e,t,n,o,s,r){const i=_n.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&T(e)){const f=Number(o);i.forEach((a,_)=>{(_==="length"||_>=f)&&l.push(a)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":T(e)?Rn(n)&&l.push(i.get("length")):(l.push(i.get(We)),Qe(e)&&l.push(i.get(bn)));break;case"delete":T(e)||(l.push(i.get(We)),Qe(e)&&l.push(i.get(bn)));break;case"set":Qe(e)&&l.push(i.get(We));break}if(l.length===1)l[0]&&xn(l[0]);else{const f=[];for(const a of l)a&&f.push(...a);xn(Sn(f))}}function xn(e,t){const n=T(e)?e:[...e];for(const o of n)o.computed&&ss(o);for(const o of n)o.computed||ss(o)}function ss(e,t){(e!==pe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Vo=An("__proto__,__v_isRef,__isVue"),qs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kn)),Jo=jn(),Yo=jn(!1,!0),Xo=jn(!0),os=Zo();function Zo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=L(this);for(let r=0,i=this.length;r<i;r++)ce(o,"get",r+"");const s=o[t](...n);return s===-1||s===!1?o[t](...n.map(L)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){ot();const o=L(this)[t].apply(this,n);return rt(),o}}),e}function Qo(e){const t=L(this);return ce(t,"has",e),t.hasOwnProperty(e)}function jn(e=!1,t=!1){return function(o,s,r){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&r===(e?t?pr:Zs:t?Xs:Ys).get(o))return o;const i=T(o);if(!e){if(i&&N(os,s))return Reflect.get(os,s,r);if(s==="hasOwnProperty")return Qo}const l=Reflect.get(o,s,r);return(kn(s)?qs.has(s):Vo(s))||(e||ce(o,"get",s),t)?l:ie(l)?i&&Rn(s)?l:l.value:K(l)?e?Qs(l):Jt(l):l}}const Go=Vs(),er=Vs(!0);function Vs(e=!1){return function(n,o,s,r){let i=n[o];if(gt(i)&&ie(i)&&!ie(s))return!1;if(!e&&(!yn(s)&&!gt(s)&&(i=L(i),s=L(s)),!T(n)&&ie(i)&&!ie(s)))return i.value=s,!0;const l=T(n)&&Rn(o)?Number(o)<n.length:N(n,o),f=Reflect.set(n,o,s,r);return n===L(r)&&(l?jt(s,i)&&Te(n,"set",o,s):Te(n,"add",o,s)),f}}function tr(e,t){const n=N(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&Te(e,"delete",t,void 0),o}function nr(e,t){const n=Reflect.has(e,t);return(!kn(t)||!qs.has(t))&&ce(e,"has",t),n}function sr(e){return ce(e,"iterate",T(e)?"length":We),Reflect.ownKeys(e)}const Js={get:Jo,set:Go,deleteProperty:tr,has:nr,ownKeys:sr},or={get:Xo,set(e,t){return!0},deleteProperty(e,t){return!0}},rr=X({},Js,{get:Yo,set:er}),Bn=e=>e,Vt=e=>Reflect.getPrototypeOf(e);function Tt(e,t,n=!1,o=!1){e=e.__v_raw;const s=L(e),r=L(t);n||(t!==r&&ce(s,"get",t),ce(s,"get",r));const{has:i}=Vt(s),l=o?Bn:n?Kn:Dn;if(i.call(s,t))return l(e.get(t));if(i.call(s,r))return l(e.get(r));e!==s&&e.get(t)}function It(e,t=!1){const n=this.__v_raw,o=L(n),s=L(e);return t||(e!==s&&ce(o,"has",e),ce(o,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Pt(e,t=!1){return e=e.__v_raw,!t&&ce(L(e),"iterate",We),Reflect.get(e,"size",e)}function rs(e){e=L(e);const t=L(this);return Vt(t).has.call(t,e)||(t.add(e),Te(t,"add",e,e)),this}function is(e,t){t=L(t);const n=L(this),{has:o,get:s}=Vt(n);let r=o.call(n,e);r||(e=L(e),r=o.call(n,e));const i=s.call(n,e);return n.set(e,t),r?jt(t,i)&&Te(n,"set",e,t):Te(n,"add",e,t),this}function ls(e){const t=L(this),{has:n,get:o}=Vt(t);let s=n.call(t,e);s||(e=L(e),s=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return s&&Te(t,"delete",e,void 0),r}function cs(){const e=L(this),t=e.size!==0,n=e.clear();return t&&Te(e,"clear",void 0,void 0),n}function At(e,t){return function(o,s){const r=this,i=r.__v_raw,l=L(i),f=t?Bn:e?Kn:Dn;return!e&&ce(l,"iterate",We),i.forEach((a,_)=>o.call(s,f(a),f(_),r))}}function Ft(e,t,n){return function(...o){const s=this.__v_raw,r=L(s),i=Qe(r),l=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,a=s[e](...o),_=n?Bn:t?Kn:Dn;return!t&&ce(r,"iterate",f?bn:We),{next(){const{value:v,done:C}=a.next();return C?{value:v,done:C}:{value:l?[_(v[0]),_(v[1])]:_(v),done:C}},[Symbol.iterator](){return this}}}}function Ae(e){return function(...t){return e==="delete"?!1:this}}function ir(){const e={get(r){return Tt(this,r)},get size(){return Pt(this)},has:It,add:rs,set:is,delete:ls,clear:cs,forEach:At(!1,!1)},t={get(r){return Tt(this,r,!1,!0)},get size(){return Pt(this)},has:It,add:rs,set:is,delete:ls,clear:cs,forEach:At(!1,!0)},n={get(r){return Tt(this,r,!0)},get size(){return Pt(this,!0)},has(r){return It.call(this,r,!0)},add:Ae("add"),set:Ae("set"),delete:Ae("delete"),clear:Ae("clear"),forEach:At(!0,!1)},o={get(r){return Tt(this,r,!0,!0)},get size(){return Pt(this,!0)},has(r){return It.call(this,r,!0)},add:Ae("add"),set:Ae("set"),delete:Ae("delete"),clear:Ae("clear"),forEach:At(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Ft(r,!1,!1),n[r]=Ft(r,!0,!1),t[r]=Ft(r,!1,!0),o[r]=Ft(r,!0,!0)}),[e,n,t,o]}const[lr,cr,fr,ur]=ir();function Un(e,t){const n=t?e?ur:fr:e?cr:lr;return(o,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(N(n,s)&&s in o?n:o,s,r)}const ar={get:Un(!1,!1)},dr={get:Un(!1,!0)},hr={get:Un(!0,!1)},Ys=new WeakMap,Xs=new WeakMap,Zs=new WeakMap,pr=new WeakMap;function gr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _r(e){return e.__v_skip||!Object.isExtensible(e)?0:gr(Ro(e))}function Jt(e){return gt(e)?e:Hn(e,!1,Js,ar,Ys)}function mr(e){return Hn(e,!1,rr,dr,Xs)}function Qs(e){return Hn(e,!0,or,hr,Zs)}function Hn(e,t,n,o,s){if(!K(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=s.get(e);if(r)return r;const i=_r(e);if(i===0)return e;const l=new Proxy(e,i===2?o:n);return s.set(e,l),l}function Ge(e){return gt(e)?Ge(e.__v_raw):!!(e&&e.__v_isReactive)}function gt(e){return!!(e&&e.__v_isReadonly)}function yn(e){return!!(e&&e.__v_isShallow)}function Gs(e){return Ge(e)||gt(e)}function L(e){const t=e&&e.__v_raw;return t?L(t):e}function eo(e){return Bt(e,"__v_skip",!0),e}const Dn=e=>K(e)?Jt(e):e,Kn=e=>K(e)?Qs(e):e;function br(e){Me&&pe&&(e=L(e),zs(e.dep||(e.dep=Sn())))}function xr(e,t){e=L(e);const n=e.dep;n&&xn(n)}function ie(e){return!!(e&&e.__v_isRef===!0)}function yr(e){return ie(e)?e.value:e}const vr={get:(e,t,n)=>yr(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return ie(s)&&!ie(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function to(e){return Ge(e)?e:new Proxy(e,vr)}class wr{constructor(t,n,o,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ln(t,()=>{this._dirty||(this._dirty=!0,xr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const t=L(this);return br(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Cr(e,t,n=!1){let o,s;const r=P(e);return r?(o=e,s=_e):(o=e.get,s=e.set),new wr(o,s,r||!s,n)}function ke(e,t,n,o){let s;try{s=o?e(...o):e()}catch(r){Yt(r,t,n)}return s}function me(e,t,n,o){if(P(e)){const r=ke(e,t,n,o);return r&&js(r)&&r.catch(i=>{Yt(i,t,n)}),r}const s=[];for(let r=0;r<e.length;r++)s.push(me(e[r],t,n,o));return s}function Yt(e,t,n,o=!0){const s=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,l=n;for(;r;){const a=r.ec;if(a){for(let _=0;_<a.length;_++)if(a[_](e,i,l)===!1)return}r=r.parent}const f=t.appContext.config.errorHandler;if(f){ke(f,null,10,[e,i,l]);return}}Er(e,n,s,o)}function Er(e,t,n,o=!0){console.error(e)}let _t=!1,vn=!1;const ne=[];let we=0;const et=[];let Oe=null,He=0;const no=Promise.resolve();let $n=null;function Or(e){const t=$n||no;return e?t.then(this?e.bind(this):e):t}function Tr(e){let t=we+1,n=ne.length;for(;t<n;){const o=t+n>>>1;mt(ne[o])<e?t=o+1:n=o}return t}function Wn(e){(!ne.length||!ne.includes(e,_t&&e.allowRecurse?we+1:we))&&(e.id==null?ne.push(e):ne.splice(Tr(e.id),0,e),so())}function so(){!_t&&!vn&&(vn=!0,$n=no.then(ro))}function Ir(e){const t=ne.indexOf(e);t>we&&ne.splice(t,1)}function Pr(e){T(e)?et.push(...e):(!Oe||!Oe.includes(e,e.allowRecurse?He+1:He))&&et.push(e),so()}function fs(e,t=_t?we+1:0){for(;t<ne.length;t++){const n=ne[t];n&&n.pre&&(ne.splice(t,1),t--,n())}}function oo(e){if(et.length){const t=[...new Set(et)];if(et.length=0,Oe){Oe.push(...t);return}for(Oe=t,Oe.sort((n,o)=>mt(n)-mt(o)),He=0;He<Oe.length;He++)Oe[He]();Oe=null,He=0}}const mt=e=>e.id==null?1/0:e.id,Ar=(e,t)=>{const n=mt(e)-mt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ro(e){vn=!1,_t=!0,ne.sort(Ar);const t=_e;try{for(we=0;we<ne.length;we++){const n=ne[we];n&&n.active!==!1&&ke(n,null,14)}}finally{we=0,ne.length=0,oo(),_t=!1,$n=null,(ne.length||et.length)&&ro()}}function Fr(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||D;let s=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in o){const _=`${i==="modelValue"?"model":i}Modifiers`,{number:v,trim:C}=o[_]||D;C&&(s=n.map(A=>V(A)?A.trim():A)),v&&(s=n.map(pn))}let l,f=o[l=ln(t)]||o[l=ln(Ce(t))];!f&&r&&(f=o[l=ln(st(t))]),f&&me(f,e,6,s);const a=o[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,me(a,e,6,s)}}function io(e,t,n=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const r=e.emits;let i={},l=!1;if(!P(e)){const f=a=>{const _=io(a,t,!0);_&&(l=!0,X(i,_))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!r&&!l?(K(e)&&o.set(e,null),null):(T(r)?r.forEach(f=>i[f]=null):X(i,r),K(e)&&o.set(e,i),i)}function Xt(e,t){return!e||!$t(t)?!1:(t=t.slice(2).replace(/Once$/,""),N(e,t[0].toLowerCase()+t.slice(1))||N(e,st(t))||N(e,t))}let ae=null,lo=null;function Ut(e){const t=ae;return ae=e,lo=e&&e.type.__scopeId||null,t}function Mr(e,t=ae,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&vs(-1);const r=Ut(t);let i;try{i=e(...s)}finally{Ut(r),o._d&&vs(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function cn(e){const{type:t,vnode:n,proxy:o,withProxy:s,props:r,propsOptions:[i],slots:l,attrs:f,emit:a,render:_,renderCache:v,data:C,setupState:A,ctx:W,inheritAttrs:R}=e;let J,Z;const Q=Ut(e);try{if(n.shapeFlag&4){const M=s||o;J=ve(_.call(M,M,v,r,A,C,W)),Z=f}else{const M=t;J=ve(M.length>1?M(r,{attrs:f,slots:l,emit:a}):M(r,null)),Z=t.props?f:kr(f)}}catch(M){pt.length=0,Yt(M,e,1),J=q(qe)}let G=J;if(Z&&R!==!1){const M=Object.keys(Z),{shapeFlag:Pe}=G;M.length&&Pe&7&&(i&&M.some(Fn)&&(Z=Rr(Z,i)),G=tt(G,Z))}return n.dirs&&(G=tt(G),G.dirs=G.dirs?G.dirs.concat(n.dirs):n.dirs),n.transition&&(G.transition=n.transition),J=G,Ut(Q),J}const kr=e=>{let t;for(const n in e)(n==="class"||n==="style"||$t(n))&&((t||(t={}))[n]=e[n]);return t},Rr=(e,t)=>{const n={};for(const o in e)(!Fn(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Nr(e,t,n){const{props:o,children:s,component:r}=e,{props:i,children:l,patchFlag:f}=t,a=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return o?us(o,i,a):!!i;if(f&8){const _=t.dynamicProps;for(let v=0;v<_.length;v++){const C=_[v];if(i[C]!==o[C]&&!Xt(a,C))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?us(o,i,a):!0:!!i;return!1}function us(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const r=o[s];if(t[r]!==e[r]&&!Xt(n,r))return!0}return!1}function Sr({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Lr=e=>e.__isSuspense;function jr(e,t){t&&t.pendingBranch?T(e)?t.effects.push(...e):t.effects.push(e):Pr(e)}const Mt={};function fn(e,t,n){return co(e,t,n)}function co(e,t,{immediate:n,deep:o,flush:s,onTrack:r,onTrigger:i}=D){var l;const f=Wo()===((l=Y)==null?void 0:l.scope)?Y:null;let a,_=!1,v=!1;if(ie(e)?(a=()=>e.value,_=yn(e)):Ge(e)?(a=()=>e,o=!0):T(e)?(v=!0,_=e.some(M=>Ge(M)||yn(M)),a=()=>e.map(M=>{if(ie(M))return M.value;if(Ge(M))return Ke(M);if(P(M))return ke(M,f,2)})):P(e)?t?a=()=>ke(e,f,2):a=()=>{if(!(f&&f.isUnmounted))return C&&C(),me(e,f,3,[A])}:a=_e,t&&o){const M=a;a=()=>Ke(M())}let C,A=M=>{C=Q.onStop=()=>{ke(M,f,4)}},W;if(xt)if(A=_e,t?n&&me(t,f,3,[a(),v?[]:void 0,A]):a(),s==="sync"){const M=Ri();W=M.__watcherHandles||(M.__watcherHandles=[])}else return _e;let R=v?new Array(e.length).fill(Mt):Mt;const J=()=>{if(Q.active)if(t){const M=Q.run();(o||_||(v?M.some((Pe,it)=>jt(Pe,R[it])):jt(M,R)))&&(C&&C(),me(t,f,3,[M,R===Mt?void 0:v&&R[0]===Mt?[]:R,A]),R=M)}else Q.run()};J.allowRecurse=!!t;let Z;s==="sync"?Z=J:s==="post"?Z=()=>le(J,f&&f.suspense):(J.pre=!0,f&&(J.id=f.uid),Z=()=>Wn(J));const Q=new Ln(a,Z);t?n?J():R=Q.run():s==="post"?le(Q.run.bind(Q),f&&f.suspense):Q.run();const G=()=>{Q.stop(),f&&f.scope&&Mn(f.scope.effects,Q)};return W&&W.push(G),G}function Br(e,t,n){const o=this.proxy,s=V(e)?e.includes(".")?fo(o,e):()=>o[e]:e.bind(o,o);let r;P(t)?r=t:(r=t.handler,n=t);const i=Y;nt(this);const l=co(s,r.bind(o),n);return i?nt(i):ze(),l}function fo(e,t){const n=t.split(".");return()=>{let o=e;for(let s=0;s<n.length&&o;s++)o=o[n[s]];return o}}function Ke(e,t){if(!K(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ie(e))Ke(e.value,t);else if(T(e))for(let n=0;n<e.length;n++)Ke(e[n],t);else if(Ls(e)||Qe(e))e.forEach(n=>{Ke(n,t)});else if(Us(e))for(const n in e)Ke(e[n],t);return e}function as(e,t){const n=ae;if(n===null)return e;const o=en(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,l,f,a=D]=t[r];i&&(P(i)&&(i={mounted:i,updated:i}),i.deep&&Ke(l),s.push({dir:i,instance:o,value:l,oldValue:void 0,arg:f,modifiers:a}))}return e}function Be(e,t,n,o){const s=e.dirs,r=t&&t.dirs;for(let i=0;i<s.length;i++){const l=s[i];r&&(l.oldValue=r[i].value);let f=l.dir[o];f&&(ot(),me(f,n,8,[e.el,l,e,t]),rt())}}const Nt=e=>!!e.type.__asyncLoader,uo=e=>e.type.__isKeepAlive;function Ur(e,t){ao(e,"a",t)}function Hr(e,t){ao(e,"da",t)}function ao(e,t,n=Y){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Zt(t,o,n),n){let s=n.parent;for(;s&&s.parent;)uo(s.parent.vnode)&&Dr(o,t,n,s),s=s.parent}}function Dr(e,t,n,o){const s=Zt(t,e,o,!0);ho(()=>{Mn(o[t],s)},n)}function Zt(e,t,n=Y,o=!1){if(n){const s=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;ot(),nt(n);const l=me(t,n,e,i);return ze(),rt(),l});return o?s.unshift(r):s.push(r),r}}const Ie=e=>(t,n=Y)=>(!xt||e==="sp")&&Zt(e,(...o)=>t(...o),n),Kr=Ie("bm"),$r=Ie("m"),Wr=Ie("bu"),zr=Ie("u"),qr=Ie("bum"),ho=Ie("um"),Vr=Ie("sp"),Jr=Ie("rtg"),Yr=Ie("rtc");function Xr(e,t=Y){Zt("ec",e,t)}const po="components";function $e(e,t){return Qr(po,e,!0,t)||e}const Zr=Symbol.for("v-ndc");function Qr(e,t,n=!0,o=!1){const s=ae||Y;if(s){const r=s.type;if(e===po){const l=Ai(r,!1);if(l&&(l===t||l===Ce(t)||l===qt(Ce(t))))return r}const i=ds(s[e]||r[e],t)||ds(s.appContext[e],t);return!i&&o?r:i}}function ds(e,t){return e&&(e[t]||e[Ce(t)]||e[qt(Ce(t))])}function wn(e,t,n,o){let s;const r=n&&n[o];if(T(e)||V(e)){s=new Array(e.length);for(let i=0,l=e.length;i<l;i++)s[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,r&&r[i])}else if(K(e))if(e[Symbol.iterator])s=Array.from(e,(i,l)=>t(i,l,void 0,r&&r[l]));else{const i=Object.keys(e);s=new Array(i.length);for(let l=0,f=i.length;l<f;l++){const a=i[l];s[l]=t(e[a],a,l,r&&r[l])}}else s=[];return n&&(n[o]=s),s}const Cn=e=>e?Oo(e)?en(e)||e.proxy:Cn(e.parent):null,ht=X(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Cn(e.parent),$root:e=>Cn(e.root),$emit:e=>e.emit,$options:e=>zn(e),$forceUpdate:e=>e.f||(e.f=()=>Wn(e.update)),$nextTick:e=>e.n||(e.n=Or.bind(e.proxy)),$watch:e=>Br.bind(e)}),un=(e,t)=>e!==D&&!e.__isScriptSetup&&N(e,t),Gr={get({_:e},t){const{ctx:n,setupState:o,data:s,props:r,accessCache:i,type:l,appContext:f}=e;let a;if(t[0]!=="$"){const A=i[t];if(A!==void 0)switch(A){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return r[t]}else{if(un(o,t))return i[t]=1,o[t];if(s!==D&&N(s,t))return i[t]=2,s[t];if((a=e.propsOptions[0])&&N(a,t))return i[t]=3,r[t];if(n!==D&&N(n,t))return i[t]=4,n[t];En&&(i[t]=0)}}const _=ht[t];let v,C;if(_)return t==="$attrs"&&ce(e,"get",t),_(e);if((v=l.__cssModules)&&(v=v[t]))return v;if(n!==D&&N(n,t))return i[t]=4,n[t];if(C=f.config.globalProperties,N(C,t))return C[t]},set({_:e},t,n){const{data:o,setupState:s,ctx:r}=e;return un(s,t)?(s[t]=n,!0):o!==D&&N(o,t)?(o[t]=n,!0):N(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,propsOptions:r}},i){let l;return!!n[i]||e!==D&&N(e,i)||un(t,i)||(l=r[0])&&N(l,i)||N(o,i)||N(ht,i)||N(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:N(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hs(e){return T(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let En=!0;function ei(e){const t=zn(e),n=e.proxy,o=e.ctx;En=!1,t.beforeCreate&&ps(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:i,watch:l,provide:f,inject:a,created:_,beforeMount:v,mounted:C,beforeUpdate:A,updated:W,activated:R,deactivated:J,beforeDestroy:Z,beforeUnmount:Q,destroyed:G,unmounted:M,render:Pe,renderTracked:it,renderTriggered:vt,errorCaptured:Ne,serverPrefetch:nn,expose:Se,inheritAttrs:lt,components:wt,directives:Ct,filters:sn}=t;if(a&&ti(a,o,null),i)for(const $ in i){const B=i[$];P(B)&&(o[$]=B.bind(n))}if(s){const $=s.call(n,n);K($)&&(e.data=Jt($))}if(En=!0,r)for(const $ in r){const B=r[$],Le=P(B)?B.bind(n,n):P(B.get)?B.get.bind(n,n):_e,Et=!P(B)&&P(B.set)?B.set.bind(n):_e,je=Mi({get:Le,set:Et});Object.defineProperty(o,$,{enumerable:!0,configurable:!0,get:()=>je.value,set:be=>je.value=be})}if(l)for(const $ in l)go(l[$],o,n,$);if(f){const $=P(f)?f.call(n):f;Reflect.ownKeys($).forEach(B=>{li(B,$[B])})}_&&ps(_,e,"c");function se($,B){T(B)?B.forEach(Le=>$(Le.bind(n))):B&&$(B.bind(n))}if(se(Kr,v),se($r,C),se(Wr,A),se(zr,W),se(Ur,R),se(Hr,J),se(Xr,Ne),se(Yr,it),se(Jr,vt),se(qr,Q),se(ho,M),se(Vr,nn),T(Se))if(Se.length){const $=e.exposed||(e.exposed={});Se.forEach(B=>{Object.defineProperty($,B,{get:()=>n[B],set:Le=>n[B]=Le})})}else e.exposed||(e.exposed={});Pe&&e.render===_e&&(e.render=Pe),lt!=null&&(e.inheritAttrs=lt),wt&&(e.components=wt),Ct&&(e.directives=Ct)}function ti(e,t,n=_e){T(e)&&(e=On(e));for(const o in e){const s=e[o];let r;K(s)?"default"in s?r=St(s.from||o,s.default,!0):r=St(s.from||o):r=St(s),ie(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[o]=r}}function ps(e,t,n){me(T(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function go(e,t,n,o){const s=o.includes(".")?fo(n,o):()=>n[o];if(V(e)){const r=t[e];P(r)&&fn(s,r)}else if(P(e))fn(s,e.bind(n));else if(K(e))if(T(e))e.forEach(r=>go(r,t,n,o));else{const r=P(e.handler)?e.handler.bind(n):t[e.handler];P(r)&&fn(s,r,e)}}function zn(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let f;return l?f=l:!s.length&&!n&&!o?f=t:(f={},s.length&&s.forEach(a=>Ht(f,a,i,!0)),Ht(f,t,i)),K(t)&&r.set(t,f),f}function Ht(e,t,n,o=!1){const{mixins:s,extends:r}=t;r&&Ht(e,r,n,!0),s&&s.forEach(i=>Ht(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const l=ni[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const ni={data:gs,props:_s,emits:_s,methods:at,computed:at,beforeCreate:oe,created:oe,beforeMount:oe,mounted:oe,beforeUpdate:oe,updated:oe,beforeDestroy:oe,beforeUnmount:oe,destroyed:oe,unmounted:oe,activated:oe,deactivated:oe,errorCaptured:oe,serverPrefetch:oe,components:at,directives:at,watch:oi,provide:gs,inject:si};function gs(e,t){return t?e?function(){return X(P(e)?e.call(this,this):e,P(t)?t.call(this,this):t)}:t:e}function si(e,t){return at(On(e),On(t))}function On(e){if(T(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function oe(e,t){return e?[...new Set([].concat(e,t))]:t}function at(e,t){return e?X(Object.create(null),e,t):t}function _s(e,t){return e?T(e)&&T(t)?[...new Set([...e,...t])]:X(Object.create(null),hs(e),hs(t??{})):t}function oi(e,t){if(!e)return t;if(!t)return e;const n=X(Object.create(null),e);for(const o in t)n[o]=oe(e[o],t[o]);return n}function _o(){return{app:null,config:{isNativeTag:Fo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ri=0;function ii(e,t){return function(o,s=null){P(o)||(o=X({},o)),s!=null&&!K(s)&&(s=null);const r=_o(),i=new Set;let l=!1;const f=r.app={_uid:ri++,_component:o,_props:s,_container:null,_context:r,_instance:null,version:Ni,get config(){return r.config},set config(a){},use(a,..._){return i.has(a)||(a&&P(a.install)?(i.add(a),a.install(f,..._)):P(a)&&(i.add(a),a(f,..._))),f},mixin(a){return r.mixins.includes(a)||r.mixins.push(a),f},component(a,_){return _?(r.components[a]=_,f):r.components[a]},directive(a,_){return _?(r.directives[a]=_,f):r.directives[a]},mount(a,_,v){if(!l){const C=q(o,s);return C.appContext=r,_&&t?t(C,a):e(C,a,v),l=!0,f._container=a,a.__vue_app__=f,en(C.component)||C.component.proxy}},unmount(){l&&(e(null,f._container),delete f._container.__vue_app__)},provide(a,_){return r.provides[a]=_,f},runWithContext(a){Dt=f;try{return a()}finally{Dt=null}}};return f}}let Dt=null;function li(e,t){if(Y){let n=Y.provides;const o=Y.parent&&Y.parent.provides;o===n&&(n=Y.provides=Object.create(o)),n[e]=t}}function St(e,t,n=!1){const o=Y||ae;if(o||Dt){const s=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Dt._context.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&P(t)?t.call(o&&o.proxy):t}}function ci(e,t,n,o=!1){const s={},r={};Bt(r,Gt,1),e.propsDefaults=Object.create(null),mo(e,t,s,r);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=o?s:mr(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function fi(e,t,n,o){const{props:s,attrs:r,vnode:{patchFlag:i}}=e,l=L(s),[f]=e.propsOptions;let a=!1;if((o||i>0)&&!(i&16)){if(i&8){const _=e.vnode.dynamicProps;for(let v=0;v<_.length;v++){let C=_[v];if(Xt(e.emitsOptions,C))continue;const A=t[C];if(f)if(N(r,C))A!==r[C]&&(r[C]=A,a=!0);else{const W=Ce(C);s[W]=Tn(f,l,W,A,e,!1)}else A!==r[C]&&(r[C]=A,a=!0)}}}else{mo(e,t,s,r)&&(a=!0);let _;for(const v in l)(!t||!N(t,v)&&((_=st(v))===v||!N(t,_)))&&(f?n&&(n[v]!==void 0||n[_]!==void 0)&&(s[v]=Tn(f,l,v,void 0,e,!0)):delete s[v]);if(r!==l)for(const v in r)(!t||!N(t,v))&&(delete r[v],a=!0)}a&&Te(e,"set","$attrs")}function mo(e,t,n,o){const[s,r]=e.propsOptions;let i=!1,l;if(t)for(let f in t){if(kt(f))continue;const a=t[f];let _;s&&N(s,_=Ce(f))?!r||!r.includes(_)?n[_]=a:(l||(l={}))[_]=a:Xt(e.emitsOptions,f)||(!(f in o)||a!==o[f])&&(o[f]=a,i=!0)}if(r){const f=L(n),a=l||D;for(let _=0;_<r.length;_++){const v=r[_];n[v]=Tn(s,f,v,a[v],e,!N(a,v))}}return i}function Tn(e,t,n,o,s,r){const i=e[n];if(i!=null){const l=N(i,"default");if(l&&o===void 0){const f=i.default;if(i.type!==Function&&!i.skipFactory&&P(f)){const{propsDefaults:a}=s;n in a?o=a[n]:(nt(s),o=a[n]=f.call(null,t),ze())}else o=f}i[0]&&(r&&!l?o=!1:i[1]&&(o===""||o===st(n))&&(o=!0))}return o}function bo(e,t,n=!1){const o=t.propsCache,s=o.get(e);if(s)return s;const r=e.props,i={},l=[];let f=!1;if(!P(e)){const _=v=>{f=!0;const[C,A]=bo(v,t,!0);X(i,C),A&&l.push(...A)};!n&&t.mixins.length&&t.mixins.forEach(_),e.extends&&_(e.extends),e.mixins&&e.mixins.forEach(_)}if(!r&&!f)return K(e)&&o.set(e,Ze),Ze;if(T(r))for(let _=0;_<r.length;_++){const v=Ce(r[_]);ms(v)&&(i[v]=D)}else if(r)for(const _ in r){const v=Ce(_);if(ms(v)){const C=r[_],A=i[v]=T(C)||P(C)?{type:C}:X({},C);if(A){const W=ys(Boolean,A.type),R=ys(String,A.type);A[0]=W>-1,A[1]=R<0||W<R,(W>-1||N(A,"default"))&&l.push(v)}}}const a=[i,l];return K(e)&&o.set(e,a),a}function ms(e){return e[0]!=="$"}function bs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function xs(e,t){return bs(e)===bs(t)}function ys(e,t){return T(t)?t.findIndex(n=>xs(n,e)):P(t)&&xs(t,e)?0:-1}const xo=e=>e[0]==="_"||e==="$stable",qn=e=>T(e)?e.map(ve):[ve(e)],ui=(e,t,n)=>{if(t._n)return t;const o=Mr((...s)=>qn(t(...s)),n);return o._c=!1,o},yo=(e,t,n)=>{const o=e._ctx;for(const s in e){if(xo(s))continue;const r=e[s];if(P(r))t[s]=ui(s,r,o);else if(r!=null){const i=qn(r);t[s]=()=>i}}},vo=(e,t)=>{const n=qn(t);e.slots.default=()=>n},ai=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=L(t),Bt(t,"_",n)):yo(t,e.slots={})}else e.slots={},t&&vo(e,t);Bt(e.slots,Gt,1)},di=(e,t,n)=>{const{vnode:o,slots:s}=e;let r=!0,i=D;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(X(s,t),!n&&l===1&&delete s._):(r=!t.$stable,yo(t,s)),i=t}else t&&(vo(e,t),i={default:1});if(r)for(const l in s)!xo(l)&&!(l in i)&&delete s[l]};function In(e,t,n,o,s=!1){if(T(e)){e.forEach((C,A)=>In(C,t&&(T(t)?t[A]:t),n,o,s));return}if(Nt(o)&&!s)return;const r=o.shapeFlag&4?en(o.component)||o.component.proxy:o.el,i=s?null:r,{i:l,r:f}=e,a=t&&t.r,_=l.refs===D?l.refs={}:l.refs,v=l.setupState;if(a!=null&&a!==f&&(V(a)?(_[a]=null,N(v,a)&&(v[a]=null)):ie(a)&&(a.value=null)),P(f))ke(f,l,12,[i,_]);else{const C=V(f),A=ie(f);if(C||A){const W=()=>{if(e.f){const R=C?N(v,f)?v[f]:_[f]:f.value;s?T(R)&&Mn(R,r):T(R)?R.includes(r)||R.push(r):C?(_[f]=[r],N(v,f)&&(v[f]=_[f])):(f.value=[r],e.k&&(_[e.k]=f.value))}else C?(_[f]=i,N(v,f)&&(v[f]=i)):A&&(f.value=i,e.k&&(_[e.k]=i))};i?(W.id=-1,le(W,n)):W()}}}const le=jr;function hi(e){return pi(e)}function pi(e,t){const n=gn();n.__VUE__=!0;const{insert:o,remove:s,patchProp:r,createElement:i,createText:l,createComment:f,setText:a,setElementText:_,parentNode:v,nextSibling:C,setScopeId:A=_e,insertStaticContent:W}=e,R=(c,u,d,p=null,h=null,b=null,y=!1,m=null,x=!!u.dynamicChildren)=>{if(c===u)return;c&&!ft(c,u)&&(p=Ot(c),be(c,h,b,!0),c=null),u.patchFlag===-2&&(x=!1,u.dynamicChildren=null);const{type:g,ref:E,shapeFlag:w}=u;switch(g){case Qt:J(c,u,d,p);break;case qe:Z(c,u,d,p);break;case an:c==null&&Q(u,d,p,y);break;case re:wt(c,u,d,p,h,b,y,m,x);break;default:w&1?Pe(c,u,d,p,h,b,y,m,x):w&6?Ct(c,u,d,p,h,b,y,m,x):(w&64||w&128)&&g.process(c,u,d,p,h,b,y,m,x,Ve)}E!=null&&h&&In(E,c&&c.ref,b,u||c,!u)},J=(c,u,d,p)=>{if(c==null)o(u.el=l(u.children),d,p);else{const h=u.el=c.el;u.children!==c.children&&a(h,u.children)}},Z=(c,u,d,p)=>{c==null?o(u.el=f(u.children||""),d,p):u.el=c.el},Q=(c,u,d,p)=>{[c.el,c.anchor]=W(c.children,u,d,p,c.el,c.anchor)},G=({el:c,anchor:u},d,p)=>{let h;for(;c&&c!==u;)h=C(c),o(c,d,p),c=h;o(u,d,p)},M=({el:c,anchor:u})=>{let d;for(;c&&c!==u;)d=C(c),s(c),c=d;s(u)},Pe=(c,u,d,p,h,b,y,m,x)=>{y=y||u.type==="svg",c==null?it(u,d,p,h,b,y,m,x):nn(c,u,h,b,y,m,x)},it=(c,u,d,p,h,b,y,m)=>{let x,g;const{type:E,props:w,shapeFlag:O,transition:I,dirs:k}=c;if(x=c.el=i(c.type,b,w&&w.is,w),O&8?_(x,c.children):O&16&&Ne(c.children,x,null,p,h,b&&E!=="foreignObject",y,m),k&&Be(c,null,p,"created"),vt(x,c,c.scopeId,y,p),w){for(const j in w)j!=="value"&&!kt(j)&&r(x,j,null,w[j],b,c.children,p,h,Ee);"value"in w&&r(x,"value",null,w.value),(g=w.onVnodeBeforeMount)&&ye(g,p,c)}k&&Be(c,null,p,"beforeMount");const U=(!h||h&&!h.pendingBranch)&&I&&!I.persisted;U&&I.beforeEnter(x),o(x,u,d),((g=w&&w.onVnodeMounted)||U||k)&&le(()=>{g&&ye(g,p,c),U&&I.enter(x),k&&Be(c,null,p,"mounted")},h)},vt=(c,u,d,p,h)=>{if(d&&A(c,d),p)for(let b=0;b<p.length;b++)A(c,p[b]);if(h){let b=h.subTree;if(u===b){const y=h.vnode;vt(c,y,y.scopeId,y.slotScopeIds,h.parent)}}},Ne=(c,u,d,p,h,b,y,m,x=0)=>{for(let g=x;g<c.length;g++){const E=c[g]=m?Fe(c[g]):ve(c[g]);R(null,E,u,d,p,h,b,y,m)}},nn=(c,u,d,p,h,b,y)=>{const m=u.el=c.el;let{patchFlag:x,dynamicChildren:g,dirs:E}=u;x|=c.patchFlag&16;const w=c.props||D,O=u.props||D;let I;d&&Ue(d,!1),(I=O.onVnodeBeforeUpdate)&&ye(I,d,u,c),E&&Be(u,c,d,"beforeUpdate"),d&&Ue(d,!0);const k=h&&u.type!=="foreignObject";if(g?Se(c.dynamicChildren,g,m,d,p,k,b):y||B(c,u,m,null,d,p,k,b,!1),x>0){if(x&16)lt(m,u,w,O,d,p,h);else if(x&2&&w.class!==O.class&&r(m,"class",null,O.class,h),x&4&&r(m,"style",w.style,O.style,h),x&8){const U=u.dynamicProps;for(let j=0;j<U.length;j++){const z=U[j],de=w[z],Je=O[z];(Je!==de||z==="value")&&r(m,z,de,Je,h,c.children,d,p,Ee)}}x&1&&c.children!==u.children&&_(m,u.children)}else!y&&g==null&&lt(m,u,w,O,d,p,h);((I=O.onVnodeUpdated)||E)&&le(()=>{I&&ye(I,d,u,c),E&&Be(u,c,d,"updated")},p)},Se=(c,u,d,p,h,b,y)=>{for(let m=0;m<u.length;m++){const x=c[m],g=u[m],E=x.el&&(x.type===re||!ft(x,g)||x.shapeFlag&70)?v(x.el):d;R(x,g,E,null,p,h,b,y,!0)}},lt=(c,u,d,p,h,b,y)=>{if(d!==p){if(d!==D)for(const m in d)!kt(m)&&!(m in p)&&r(c,m,d[m],null,y,u.children,h,b,Ee);for(const m in p){if(kt(m))continue;const x=p[m],g=d[m];x!==g&&m!=="value"&&r(c,m,g,x,y,u.children,h,b,Ee)}"value"in p&&r(c,"value",d.value,p.value)}},wt=(c,u,d,p,h,b,y,m,x)=>{const g=u.el=c?c.el:l(""),E=u.anchor=c?c.anchor:l("");let{patchFlag:w,dynamicChildren:O,slotScopeIds:I}=u;I&&(m=m?m.concat(I):I),c==null?(o(g,d,p),o(E,d,p),Ne(u.children,d,E,h,b,y,m,x)):w>0&&w&64&&O&&c.dynamicChildren?(Se(c.dynamicChildren,O,d,h,b,y,m),(u.key!=null||h&&u===h.subTree)&&wo(c,u,!0)):B(c,u,d,E,h,b,y,m,x)},Ct=(c,u,d,p,h,b,y,m,x)=>{u.slotScopeIds=m,c==null?u.shapeFlag&512?h.ctx.activate(u,d,p,y,x):sn(u,d,p,h,b,y,x):Yn(c,u,x)},sn=(c,u,d,p,h,b,y)=>{const m=c.component=Ei(c,p,h);if(uo(c)&&(m.ctx.renderer=Ve),Oi(m),m.asyncDep){if(h&&h.registerDep(m,se),!c.el){const x=m.subTree=q(qe);Z(null,x,u,d)}return}se(m,c,u,d,h,b,y)},Yn=(c,u,d)=>{const p=u.component=c.component;if(Nr(c,u,d))if(p.asyncDep&&!p.asyncResolved){$(p,u,d);return}else p.next=u,Ir(p.update),p.update();else u.el=c.el,p.vnode=u},se=(c,u,d,p,h,b,y)=>{const m=()=>{if(c.isMounted){let{next:E,bu:w,u:O,parent:I,vnode:k}=c,U=E,j;Ue(c,!1),E?(E.el=k.el,$(c,E,y)):E=k,w&&Rt(w),(j=E.props&&E.props.onVnodeBeforeUpdate)&&ye(j,I,E,k),Ue(c,!0);const z=cn(c),de=c.subTree;c.subTree=z,R(de,z,v(de.el),Ot(de),c,h,b),E.el=z.el,U===null&&Sr(c,z.el),O&&le(O,h),(j=E.props&&E.props.onVnodeUpdated)&&le(()=>ye(j,I,E,k),h)}else{let E;const{el:w,props:O}=u,{bm:I,m:k,parent:U}=c,j=Nt(u);if(Ue(c,!1),I&&Rt(I),!j&&(E=O&&O.onVnodeBeforeMount)&&ye(E,U,u),Ue(c,!0),w&&rn){const z=()=>{c.subTree=cn(c),rn(w,c.subTree,c,h,null)};j?u.type.__asyncLoader().then(()=>!c.isUnmounted&&z()):z()}else{const z=c.subTree=cn(c);R(null,z,d,p,c,h,b),u.el=z.el}if(k&&le(k,h),!j&&(E=O&&O.onVnodeMounted)){const z=u;le(()=>ye(E,U,z),h)}(u.shapeFlag&256||U&&Nt(U.vnode)&&U.vnode.shapeFlag&256)&&c.a&&le(c.a,h),c.isMounted=!0,u=d=p=null}},x=c.effect=new Ln(m,()=>Wn(g),c.scope),g=c.update=()=>x.run();g.id=c.uid,Ue(c,!0),g()},$=(c,u,d)=>{u.component=c;const p=c.vnode.props;c.vnode=u,c.next=null,fi(c,u.props,p,d),di(c,u.children,d),ot(),fs(),rt()},B=(c,u,d,p,h,b,y,m,x=!1)=>{const g=c&&c.children,E=c?c.shapeFlag:0,w=u.children,{patchFlag:O,shapeFlag:I}=u;if(O>0){if(O&128){Et(g,w,d,p,h,b,y,m,x);return}else if(O&256){Le(g,w,d,p,h,b,y,m,x);return}}I&8?(E&16&&Ee(g,h,b),w!==g&&_(d,w)):E&16?I&16?Et(g,w,d,p,h,b,y,m,x):Ee(g,h,b,!0):(E&8&&_(d,""),I&16&&Ne(w,d,p,h,b,y,m,x))},Le=(c,u,d,p,h,b,y,m,x)=>{c=c||Ze,u=u||Ze;const g=c.length,E=u.length,w=Math.min(g,E);let O;for(O=0;O<w;O++){const I=u[O]=x?Fe(u[O]):ve(u[O]);R(c[O],I,d,null,h,b,y,m,x)}g>E?Ee(c,h,b,!0,!1,w):Ne(u,d,p,h,b,y,m,x,w)},Et=(c,u,d,p,h,b,y,m,x)=>{let g=0;const E=u.length;let w=c.length-1,O=E-1;for(;g<=w&&g<=O;){const I=c[g],k=u[g]=x?Fe(u[g]):ve(u[g]);if(ft(I,k))R(I,k,d,null,h,b,y,m,x);else break;g++}for(;g<=w&&g<=O;){const I=c[w],k=u[O]=x?Fe(u[O]):ve(u[O]);if(ft(I,k))R(I,k,d,null,h,b,y,m,x);else break;w--,O--}if(g>w){if(g<=O){const I=O+1,k=I<E?u[I].el:p;for(;g<=O;)R(null,u[g]=x?Fe(u[g]):ve(u[g]),d,k,h,b,y,m,x),g++}}else if(g>O)for(;g<=w;)be(c[g],h,b,!0),g++;else{const I=g,k=g,U=new Map;for(g=k;g<=O;g++){const fe=u[g]=x?Fe(u[g]):ve(u[g]);fe.key!=null&&U.set(fe.key,g)}let j,z=0;const de=O-k+1;let Je=!1,Qn=0;const ct=new Array(de);for(g=0;g<de;g++)ct[g]=0;for(g=I;g<=w;g++){const fe=c[g];if(z>=de){be(fe,h,b,!0);continue}let xe;if(fe.key!=null)xe=U.get(fe.key);else for(j=k;j<=O;j++)if(ct[j-k]===0&&ft(fe,u[j])){xe=j;break}xe===void 0?be(fe,h,b,!0):(ct[xe-k]=g+1,xe>=Qn?Qn=xe:Je=!0,R(fe,u[xe],d,null,h,b,y,m,x),z++)}const Gn=Je?gi(ct):Ze;for(j=Gn.length-1,g=de-1;g>=0;g--){const fe=k+g,xe=u[fe],es=fe+1<E?u[fe+1].el:p;ct[g]===0?R(null,xe,d,es,h,b,y,m,x):Je&&(j<0||g!==Gn[j]?je(xe,d,es,2):j--)}}},je=(c,u,d,p,h=null)=>{const{el:b,type:y,transition:m,children:x,shapeFlag:g}=c;if(g&6){je(c.component.subTree,u,d,p);return}if(g&128){c.suspense.move(u,d,p);return}if(g&64){y.move(c,u,d,Ve);return}if(y===re){o(b,u,d);for(let w=0;w<x.length;w++)je(x[w],u,d,p);o(c.anchor,u,d);return}if(y===an){G(c,u,d);return}if(p!==2&&g&1&&m)if(p===0)m.beforeEnter(b),o(b,u,d),le(()=>m.enter(b),h);else{const{leave:w,delayLeave:O,afterLeave:I}=m,k=()=>o(b,u,d),U=()=>{w(b,()=>{k(),I&&I()})};O?O(b,k,U):U()}else o(b,u,d)},be=(c,u,d,p=!1,h=!1)=>{const{type:b,props:y,ref:m,children:x,dynamicChildren:g,shapeFlag:E,patchFlag:w,dirs:O}=c;if(m!=null&&In(m,null,d,c,!0),E&256){u.ctx.deactivate(c);return}const I=E&1&&O,k=!Nt(c);let U;if(k&&(U=y&&y.onVnodeBeforeUnmount)&&ye(U,u,c),E&6)Ao(c.component,d,p);else{if(E&128){c.suspense.unmount(d,p);return}I&&Be(c,null,u,"beforeUnmount"),E&64?c.type.remove(c,u,d,h,Ve,p):g&&(b!==re||w>0&&w&64)?Ee(g,u,d,!1,!0):(b===re&&w&384||!h&&E&16)&&Ee(x,u,d),p&&Xn(c)}(k&&(U=y&&y.onVnodeUnmounted)||I)&&le(()=>{U&&ye(U,u,c),I&&Be(c,null,u,"unmounted")},d)},Xn=c=>{const{type:u,el:d,anchor:p,transition:h}=c;if(u===re){Po(d,p);return}if(u===an){M(c);return}const b=()=>{s(d),h&&!h.persisted&&h.afterLeave&&h.afterLeave()};if(c.shapeFlag&1&&h&&!h.persisted){const{leave:y,delayLeave:m}=h,x=()=>y(d,b);m?m(c.el,b,x):x()}else b()},Po=(c,u)=>{let d;for(;c!==u;)d=C(c),s(c),c=d;s(u)},Ao=(c,u,d)=>{const{bum:p,scope:h,update:b,subTree:y,um:m}=c;p&&Rt(p),h.stop(),b&&(b.active=!1,be(y,c,u,d)),m&&le(m,u),le(()=>{c.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Ee=(c,u,d,p=!1,h=!1,b=0)=>{for(let y=b;y<c.length;y++)be(c[y],u,d,p,h)},Ot=c=>c.shapeFlag&6?Ot(c.component.subTree):c.shapeFlag&128?c.suspense.next():C(c.anchor||c.el),Zn=(c,u,d)=>{c==null?u._vnode&&be(u._vnode,null,null,!0):R(u._vnode||null,c,u,null,null,null,d),fs(),oo(),u._vnode=c},Ve={p:R,um:be,m:je,r:Xn,mt:sn,mc:Ne,pc:B,pbc:Se,n:Ot,o:e};let on,rn;return t&&([on,rn]=t(Ve)),{render:Zn,hydrate:on,createApp:ii(Zn,on)}}function Ue({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function wo(e,t,n=!1){const o=e.children,s=t.children;if(T(o)&&T(s))for(let r=0;r<o.length;r++){const i=o[r];let l=s[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[r]=Fe(s[r]),l.el=i.el),n||wo(i,l)),l.type===Qt&&(l.el=i.el)}}function gi(e){const t=e.slice(),n=[0];let o,s,r,i,l;const f=e.length;for(o=0;o<f;o++){const a=e[o];if(a!==0){if(s=n[n.length-1],e[s]<a){t[o]=s,n.push(o);continue}for(r=0,i=n.length-1;r<i;)l=r+i>>1,e[n[l]]<a?r=l+1:i=l;a<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}const _i=e=>e.__isTeleport,re=Symbol.for("v-fgt"),Qt=Symbol.for("v-txt"),qe=Symbol.for("v-cmt"),an=Symbol.for("v-stc"),pt=[];let ge=null;function S(e=!1){pt.push(ge=e?null:[])}function mi(){pt.pop(),ge=pt[pt.length-1]||null}let bt=1;function vs(e){bt+=e}function Co(e){return e.dynamicChildren=bt>0?ge||Ze:null,mi(),bt>0&&ge&&ge.push(e),e}function H(e,t,n,o,s,r){return Co(F(e,t,n,o,s,r,!0))}function dt(e,t,n,o,s){return Co(q(e,t,n,o,s,!0))}function bi(e){return e?e.__v_isVNode===!0:!1}function ft(e,t){return e.type===t.type&&e.key===t.key}const Gt="__vInternal",Eo=({key:e})=>e??null,Lt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?V(e)||ie(e)||P(e)?{i:ae,r:e,k:t,f:!!n}:e:null);function F(e,t=null,n=null,o=0,s=null,r=e===re?0:1,i=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Eo(t),ref:t&&Lt(t),scopeId:lo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ae};return l?(Vn(f,n),r&128&&e.normalize(f)):n&&(f.shapeFlag|=V(n)?8:16),bt>0&&!i&&ge&&(f.patchFlag>0||r&6)&&f.patchFlag!==32&&ge.push(f),f}const q=xi;function xi(e,t=null,n=null,o=0,s=null,r=!1){if((!e||e===Zr)&&(e=qe),bi(e)){const l=tt(e,t,!0);return n&&Vn(l,n),bt>0&&!r&&ge&&(l.shapeFlag&6?ge[ge.indexOf(e)]=l:ge.push(l)),l.patchFlag|=-2,l}if(Fi(e)&&(e=e.__vccOpts),t){t=yi(t);let{class:l,style:f}=t;l&&!V(l)&&(t.class=ue(l)),K(f)&&(Gs(f)&&!T(f)&&(f=X({},f)),t.style=Nn(f))}const i=V(e)?1:Lr(e)?128:_i(e)?64:K(e)?4:P(e)?2:0;return F(e,t,n,o,s,i,r,!0)}function yi(e){return e?Gs(e)||Gt in e?X({},e):e:null}function tt(e,t,n=!1){const{props:o,ref:s,patchFlag:r,children:i}=e,l=t?vi(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Eo(l),ref:t&&t.ref?n&&s?T(s)?s.concat(Lt(t)):[s,Lt(t)]:Lt(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==re?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&tt(e.ssContent),ssFallback:e.ssFallback&&tt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Kt(e=" ",t=0){return q(Qt,null,e,t)}function ee(e="",t=!1){return t?(S(),dt(qe,null,e)):q(qe,null,e)}function ve(e){return e==null||typeof e=="boolean"?q(qe):T(e)?q(re,null,e.slice()):typeof e=="object"?Fe(e):q(Qt,null,String(e))}function Fe(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:tt(e)}function Vn(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(T(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Vn(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Gt in t)?t._ctx=ae:s===3&&ae&&(ae.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else P(t)?(t={default:t,_ctx:ae},n=32):(t=String(t),o&64?(n=16,t=[Kt(t)]):n=8);e.children=t,e.shapeFlag|=n}function vi(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=ue([t.class,o.class]));else if(s==="style")t.style=Nn([t.style,o.style]);else if($t(s)){const r=t[s],i=o[s];i&&r!==i&&!(T(r)&&r.includes(i))&&(t[s]=r?[].concat(r,i):i)}else s!==""&&(t[s]=o[s])}return t}function ye(e,t,n,o=null){me(e,t,7,[n,o])}const wi=_o();let Ci=0;function Ei(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||wi,r={uid:Ci++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ko(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bo(o,s),emitsOptions:io(o,s),emit:null,emitted:null,propsDefaults:D,inheritAttrs:o.inheritAttrs,ctx:D,data:D,props:D,attrs:D,slots:D,refs:D,setupState:D,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Fr.bind(null,r),e.ce&&e.ce(r),r}let Y=null,Jn,Ye,ws="__VUE_INSTANCE_SETTERS__";(Ye=gn()[ws])||(Ye=gn()[ws]=[]),Ye.push(e=>Y=e),Jn=e=>{Ye.length>1?Ye.forEach(t=>t(e)):Ye[0](e)};const nt=e=>{Jn(e),e.scope.on()},ze=()=>{Y&&Y.scope.off(),Jn(null)};function Oo(e){return e.vnode.shapeFlag&4}let xt=!1;function Oi(e,t=!1){xt=t;const{props:n,children:o}=e.vnode,s=Oo(e);ci(e,n,s,t),ai(e,o);const r=s?Ti(e,t):void 0;return xt=!1,r}function Ti(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=eo(new Proxy(e.ctx,Gr));const{setup:o}=n;if(o){const s=e.setupContext=o.length>1?Pi(e):null;nt(e),ot();const r=ke(o,e,0,[e.props,s]);if(rt(),ze(),js(r)){if(r.then(ze,ze),t)return r.then(i=>{Cs(e,i,t)}).catch(i=>{Yt(i,e,0)});e.asyncDep=r}else Cs(e,r,t)}else To(e,t)}function Cs(e,t,n){P(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:K(t)&&(e.setupState=to(t)),To(e,n)}let Es;function To(e,t,n){const o=e.type;if(!e.render){if(!t&&Es&&!o.render){const s=o.template||zn(e).template;if(s){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:f}=o,a=X(X({isCustomElement:r,delimiters:l},i),f);o.render=Es(s,a)}}e.render=o.render||_e}nt(e),ot(),ei(e),rt(),ze()}function Ii(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ce(e,"get","$attrs"),t[n]}}))}function Pi(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ii(e)},slots:e.slots,emit:e.emit,expose:t}}function en(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(to(eo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ht)return ht[n](e)},has(t,n){return n in t||n in ht}}))}function Ai(e,t=!0){return P(e)?e.displayName||e.name:e.name||t&&e.__name}function Fi(e){return P(e)&&"__vccOpts"in e}const Mi=(e,t)=>Cr(e,t,xt),ki=Symbol.for("v-scx"),Ri=()=>St(ki),Ni="3.3.4",Si="http://www.w3.org/2000/svg",De=typeof document<"u"?document:null,Os=De&&De.createElement("template"),Li={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s=t?De.createElementNS(Si,e):De.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>De.createTextNode(e),createComment:e=>De.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>De.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,r){const i=n?n.previousSibling:t.lastChild;if(s&&(s===r||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===r||!(s=s.nextSibling)););else{Os.innerHTML=o?`<svg>${e}</svg>`:e;const l=Os.content;if(o){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function ji(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Bi(e,t,n){const o=e.style,s=V(n);if(n&&!s){if(t&&!V(t))for(const r in t)n[r]==null&&Pn(o,r,"");for(const r in n)Pn(o,r,n[r])}else{const r=o.display;s?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=r)}}const Ts=/\s*!important$/;function Pn(e,t,n){if(T(n))n.forEach(o=>Pn(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Ui(e,t);Ts.test(n)?e.setProperty(st(o),n.replace(Ts,""),"important"):e[o]=n}}const Is=["Webkit","Moz","ms"],dn={};function Ui(e,t){const n=dn[t];if(n)return n;let o=Ce(t);if(o!=="filter"&&o in e)return dn[t]=o;o=qt(o);for(let s=0;s<Is.length;s++){const r=Is[s]+o;if(r in e)return dn[t]=r}return t}const Ps="http://www.w3.org/1999/xlink";function Hi(e,t,n,o,s){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ps,t.slice(6,t.length)):e.setAttributeNS(Ps,t,n);else{const r=Do(t);n==null||r&&!Hs(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Di(e,t,n,o,s,r,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,s,r),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const a=l==="OPTION"?e.getAttribute("value"):e.value,_=n??"";a!==_&&(e.value=_),n==null&&e.removeAttribute(t);return}let f=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Hs(n):n==null&&a==="string"?(n="",f=!0):a==="number"&&(n=0,f=!0)}try{e[t]=n}catch{}f&&e.removeAttribute(t)}function Xe(e,t,n,o){e.addEventListener(t,n,o)}function Ki(e,t,n,o){e.removeEventListener(t,n,o)}function $i(e,t,n,o,s=null){const r=e._vei||(e._vei={}),i=r[t];if(o&&i)i.value=o;else{const[l,f]=Wi(t);if(o){const a=r[t]=Vi(o,s);Xe(e,l,a,f)}else i&&(Ki(e,l,i,f),r[t]=void 0)}}const As=/(?:Once|Passive|Capture)$/;function Wi(e){let t;if(As.test(e)){t={};let o;for(;o=e.match(As);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):st(e.slice(2)),t]}let hn=0;const zi=Promise.resolve(),qi=()=>hn||(zi.then(()=>hn=0),hn=Date.now());function Vi(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;me(Ji(o,n.value),t,5,[o])};return n.value=e,n.attached=qi(),n}function Ji(e,t){if(T(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Fs=/^on[a-z]/,Yi=(e,t,n,o,s=!1,r,i,l,f)=>{t==="class"?ji(e,o,s):t==="style"?Bi(e,n,o):$t(t)?Fn(t)||$i(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Xi(e,t,o,s))?Di(e,t,o,r,i,l,f):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Hi(e,t,o,s))};function Xi(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Fs.test(t)&&P(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Fs.test(t)&&V(n)?!1:t in e}const Ms=e=>{const t=e.props["onUpdate:modelValue"]||!1;return T(t)?n=>Rt(t,n):t};function Zi(e){e.target.composing=!0}function ks(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rs={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e._assign=Ms(s);const r=o||s.props&&s.props.type==="number";Xe(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=pn(l)),e._assign(l)}),n&&Xe(e,"change",()=>{e.value=e.value.trim()}),t||(Xe(e,"compositionstart",Zi),Xe(e,"compositionend",ks),Xe(e,"change",ks))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:s}},r){if(e._assign=Ms(r),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(s||e.type==="number")&&pn(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Qi=X({patchProp:Yi},Li);let Ns;function Gi(){return Ns||(Ns=hi(Qi))}const el=(...e)=>{const t=Gi().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=tl(o);if(!s)return;const r=t._component;!P(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.innerHTML="";const i=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t};function tl(e){return V(e)?document.querySelector(e):e}const yt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Ss={},nl=function(e){if(!Ss[e]){Ss[e]=!0;const t=document.getElementsByTagName("head")[0],n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)}},sl={props:["name"],data(){return{l_group:"",l_name:""}},mounted(){this.init()},beforeUpdate(){this.init()},watch:{name(){this.init()}},methods:{init(){if(this.name&&this.name!==""){const e=this.name.split("@");e.length>1&&(this.l_group=e[1],this.l_name=e[0]),this.l_group&&this.loadCss()}},loadCss(){let e=self.iconFont||"https://icon.sumor.com/group";nl(`${e}/${this.l_group}/style.css`)}}};function ol(e,t,n,o,s,r){return S(),H("i",{class:ue("si-"+s.l_group+"-"+s.l_name)},null,2)}const tn=yt(sl,[["render",ol]]);const rl={components:{Icon:tn},props:["api"],data(){return{called:!1,activeStatus:{},showResponse:{},data:{},response:{},token:{}}},async mounted(){this.init()},watch:{api(){this.init()}},methods:{init(){},open(e){for(let t in this.activeStatus)t!==e&&(this.activeStatus[t]=!1);this.activeStatus[e]=!this.activeStatus[e],this.data={}},async uploadFile(e){const t=await sumor.upload();this.data[e]=t[0]},async submit(e){const t=this.api.filter(o=>o.path===e)[0].parameters;for(let o of t)o.type==="number"&&this.data[o.key]&&(this.data[o.key]=parseFloat(this.data[o.key]),isNaN(this.data[o.key])&&(this.data[o.key]=null));const n=await this.callApi(e,this.data);this.response[e]=n,n.code==="OK"&&(n.message="调用成功"),this.showResponse[e]=!0},async callApi(e,t){const n=await sumor.call(e,t);return e.indexOf("login")>=0&&await sumor.update("token"),n},onTextareaInput(e){e.target.style.height="auto",e.target.style.height=e.target.scrollHeight+"px"}}},il=["onClick"],ll={class:"left"},cl={class:"path"},fl={class:"name"},ul={class:"collect"},al={key:0,class:"detail"},dl={class:"item desc"},hl={class:"tabs"},pl=["onClick"],gl=["onClick"],_l={key:0,class:"tabContent"},ml={key:0,class:"item"},bl={class:"item"},xl={class:"label"},yl={key:0,class:"required"},vl={key:1,class:"help"},wl={class:"popup"},Cl={key:0,class:"input"},El=["onUpdate:modelValue"],Ol=["onUpdate:modelValue"],Tl={key:1,class:"uploaderText"},Il=["onClick"],Pl={class:"item"},Al=["onClick"],Fl={key:1,class:"tabContent"},Ml={key:0,class:"item"},kl={class:"item"},Rl={class:"icon"},Nl={class:"text"},Sl={class:"text"},Ll={key:0,class:"response"};function jl(e,t,n,o,s,r){const i=$e("Icon");return S(!0),H(re,null,wn(n.api,l=>(S(),H("div",{class:ue(["card",{active:!!s.activeStatus[l.path]}])},[F("div",{class:"title",onClick:f=>r.open(l.path)},[F("div",ll,[F("div",cl,te(l.path),1),F("div",fl,te(l.name),1)]),F("div",ul,[q(i,{name:"angle-down@themify"})])],8,il),s.activeStatus[l.path]?(S(),H("div",al,[F("div",dl,te(l.desc),1),F("div",hl,[F("div",{class:ue(["tab",{active:!s.showResponse[l.path]}]),onClick:f=>s.showResponse[l.path]=!1},"调用",10,pl),F("div",{class:ue(["tab",{active:!!s.showResponse[l.path]}]),onClick:f=>s.showResponse[l.path]=!0},"结果",10,gl)]),s.showResponse[l.path]?ee("",!0):(S(),H("div",_l,[s.called?ee("",!0):(S(),H(re,{key:0},[l.parameters.length===0?(S(),H("div",ml,"该接口无参数,请直接点击调用")):(S(!0),H(re,{key:1},wn(l.parameters,f=>(S(),H("div",bl,[F("div",xl,[F("div",null,te(f.key)+" "+te(f.name),1),f.required?(S(),H("div",yl,"*")):ee("",!0),f.desc?(S(),H("div",vl,[q(i,{name:"question-circle-o@font_awesome"}),F("div",wl,te(f.desc),1)])):ee("",!0)]),f.type!=="file"?(S(),H("div",Cl,[f.length&&f.length>100?as((S(),H("textarea",{key:0,"onUpdate:modelValue":a=>s.data[f.key]=a,onInput:t[0]||(t[0]=(...a)=>r.onTextareaInput&&r.onTextareaInput(...a))},null,40,El)),[[Rs,s.data[f.key]]]):as((S(),H("input",{key:1,"onUpdate:modelValue":a=>s.data[f.key]=a},null,8,Ol)),[[Rs,s.data[f.key]]])])):ee("",!0),f.type==="file"?(S(),H("div",Tl,[F("div",{onClick:a=>r.uploadFile(f.key)},te(s.data[f.key]?s.data[f.key].name:"点击上传"),9,Il)])):ee("",!0)]))),256)),F("div",Pl,[F("div",{class:"button",onClick:f=>r.submit(l.path)},"调用接口",8,Al)])],64))])),s.showResponse[l.path]?(S(),H("div",Fl,[s.response[l.path]?ee("",!0):(S(),H("div",Ml,"暂无结果,请重新尝试调用接口")),s.response[l.path]?(S(),H(re,{key:1},[F("div",kl,[F("div",{class:ue(["alert",{error:s.response[l.path].error}])},[F("div",Rl,[q(i,{name:s.response[l.path].error?"close-outline@zondicons":"checkmark-outline@zondicons"},null,8,["name"])]),F("div",Nl,te(s.response[l.path].code),1),F("div",Sl,te(s.response[l.path].message),1)],2)]),s.response[l.path].data?(S(),H("pre",Ll,te(s.response[l.path].data),1)):ee("",!0)],64)):ee("",!0)])):ee("",!0)])):ee("",!0)],2))),256)}const Bl=yt(rl,[["render",jl],["__scopeId","data-v-2dc841e6"]]);const Ul={components:{Icon:tn},data(){return{visible:!1,list:[]}},async mounted(){this.list=await sumor.range("sumor.language")},computed:{language(){return sumor.store.sumor.language},languageText(){const e=sumor.store.sumor.language,t=this.list.filter(n=>n.key===e)[0];return t?t.text1||t.text:e}},methods:{select(e){this.visible=!1,sumor.set("sumor.language",e)}}},Hl={class:"icon"},Dl={class:"text"},Kl={class:"title"},$l={class:"popupContent"},Wl=["onClick"];function zl(e,t,n,o,s,r){const i=$e("Icon");return S(),H(re,null,[F("div",{class:ue(["selector",{active:s.visible===!0}]),onClick:t[0]||(t[0]=l=>s.visible=!0)},[F("div",Hl,[q(i,{name:"globe@zondicons"})]),F("div",Dl,te(r.languageText),1)],2),s.visible?(S(),H("div",{key:0,class:"popup",onClick:t[3]||(t[3]=l=>s.visible=!1)},[F("div",{class:"inner",onClick:t[2]||(t[2]=l=>l.stopPropagation())},[F("div",Kl,[Kt("选择语言地区"),F("span",{onClick:t[1]||(t[1]=l=>s.visible=!1)},[q(i,{name:"close@themify"})])]),F("div",$l,[(S(!0),H(re,null,wn(s.list,l=>(S(),H("div",{class:"item",onClick:f=>r.select(l.key)},[Kt(te(l.key)+" "+te(l.text)+" "+te(l.text1),1),q(i,{name:"angle-right@themify"})],8,Wl))),256))])])])):ee("",!0)],64)}const ql=yt(Ul,[["render",zl],["__scopeId","data-v-78b95bd1"]]);const Vl={components:{Icon:tn},props:[],data(){return{dark:!1}},mounted(){setInterval(()=>{this.dark=sumor.store.sumor.dark},100)},methods:{change(){sumor.set("sumor.dark",!sumor.store.sumor.dark)}}},Jl={class:"SumorDarkButton"};function Yl(e,t,n,o,s,r){const i=$e("Icon");return S(),H("div",Jl,[F("div",{class:"inner",onClick:t[0]||(t[0]=(...l)=>r.change&&r.change(...l))},[F("div",{class:ue(["box",{active:!s.dark}])},[s.dark?(S(),dt(i,{key:0,name:"sun@meteocons"})):ee("",!0),s.dark?ee("",!0):(S(),dt(i,{key:1,name:"sun2@meteocons"}))],2),F("div",{class:ue(["box",{active:s.dark}])},[s.dark?ee("",!0):(S(),dt(i,{key:0,name:"moon@meteocons"})),s.dark?(S(),dt(i,{key:1,name:"moon1@meteocons"})):ee("",!0)],2)])])}const Xl=yt(Vl,[["render",Yl],["__scopeId","data-v-f259a7a2"]]);const Zl={components:{DarkButton:Xl,Icon:tn,LanguageSelector:ql,List:Bl},data(){return{title:"",api:[]}},async mounted(){this.init(),await sumor.update("meta"),this.init(),await sumor.update("token")},computed:{user(){return sumor.store.sumor.token.nickname||sumor.store.sumor.token.user}},methods:{init(){const e=sumor.store.sumor.meta,t=e.api||{},n=[];for(let o in t){const s=t[o],r=[];if(s.parameters)for(let i in s.parameters)r.push({key:i,...s.parameters[i]});n.push({path:o,name:s.name,desc:s.desc,parameters:r})}this.api=n,this.title=`${e.name||"轻呈云应用"}接口 (${this.api.length})`,document.title=this.title},async clickLoginButton(){this.user&&await sumor.logout()}}},Ql={class:"frame"},Gl={class:"bar"},ec={class:"title"},tc={class:"more"},nc={class:"icon"},sc={class:"content"};function oc(e,t,n,o,s,r){const i=$e("DarkButton"),l=$e("LanguageSelector"),f=$e("Icon"),a=$e("List");return S(),H("div",Ql,[F("div",Gl,[F("div",ec,te(s.title),1),F("div",tc,[q(i),q(l),F("div",{class:ue(["button",{success:r.user}]),onClick:t[0]||(t[0]=(..._)=>r.clickLoginButton&&r.clickLoginButton(..._))},[F("span",nc,[q(f,{name:r.user?"unlocked@icomoon":"lock@icomoon"},null,8,["name"])]),Kt(te(r.user?r.user+" 已登录":"未登录"),1)],2)])]),F("div",sc,[q(a,{api:s.api},null,8,["api"])])])}const rc=yt(Zl,[["render",oc],["__scopeId","data-v-7d2f5257"]]);sumor.init({reactive:Jt});const Io=el(rc);Io.config.globalProperties.sumor=sumor;Io.mount("#app");
@@ -10,7 +10,7 @@
10
10
  <link rel="icon" type="image/png" sizes="16x16" href="https://s.sumor.com/icons/favicon-16x16.png">
11
11
  <link rel="icon" type="image/png" sizes="32x32" href="https://s.sumor.com/icons/favicon-32x32.png">
12
12
  <link rel="icon" type="image/png" sizes="48x48" href="https://s.sumor.com/icons/favicon-48x48.png">
13
- <script type="module" crossorigin src="./assets/index-e3932acc.js"></script>
13
+ <script type="module" crossorigin src="./assets/index-fa6a5ee3.js"></script>
14
14
  <link rel="stylesheet" href="./assets/index-72ae93fe.css">
15
15
  </head>
16
16
  <body>
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.sumor=e():t.sumor=e()}("undefined"!=typeof self?self:this,(()=>(()=>{var t={693:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,n="millisecond",r="second",o="minute",i="hour",s="day",a="week",u="month",c="quarter",l="year",f="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},y=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(r,u),i=n-o<0,s=e.clone().add(r+(i?-1:1),u);return+(-(r+(n-o)/(i?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:l,w:a,d:s,D:f,h:i,m:o,s:r,ms:n,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",b={};b[w]=p;var v=function(t){return t instanceof $},O=function t(e,n,r){var o;if(!e)return w;if("string"==typeof e){var i=e.toLowerCase();b[i]&&(o=i),n&&(b[i]=n,o=i);var s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var a=e.name;b[a]=e,o=a}return!r&&o&&(w=o),o||!r&&w},S=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new $(n)},E=g;E.l=O,E.i=v,E.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var $=function(){function p(t){this.$L=O(t.locale,null,!0),this.parse(t)}var y=p.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var n=S(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return S(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<S(t)},y.$g=function(t,e,n){return E.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,c=!!E.u(e)||e,d=E.p(t),h=function(t,e){var r=E.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return c?r:r.endOf(s)},m=function(t,e){return E.w(n.toDate()[t].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,y=this.$M,g=this.$D,w="set"+(this.$u?"UTC":"");switch(d){case l:return c?h(1,0):h(31,11);case u:return c?h(1,y):h(0,y+1);case a:var b=this.$locale().weekStart||0,v=(p<b?p+7:p)-b;return h(c?g-v:g+(6-v),y);case s:case f:return m(w+"Hours",0);case i:return m(w+"Minutes",1);case o:return m(w+"Seconds",2);case r:return m(w+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var a,c=E.p(t),d="set"+(this.$u?"UTC":""),h=(a={},a[s]=d+"Date",a[f]=d+"Date",a[u]=d+"Month",a[l]=d+"FullYear",a[i]=d+"Hours",a[o]=d+"Minutes",a[r]=d+"Seconds",a[n]=d+"Milliseconds",a)[c],m=c===s?this.$D+(e-this.$W):e;if(c===u||c===l){var p=this.clone().set(f,1);p.$d[h](m),p.init(),this.$d=p.set(f,Math.min(this.$D,p.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[E.p(t)]()},y.add=function(n,c){var f,d=this;n=Number(n);var h=E.p(c),m=function(t){var e=S(d);return E.w(e.date(e.date()+Math.round(t*n)),d)};if(h===u)return this.set(u,this.$M+n);if(h===l)return this.set(l,this.$y+n);if(h===s)return m(1);if(h===a)return m(7);var p=(f={},f[o]=t,f[i]=e,f[r]=1e3,f)[h]||1,y=this.$d.getTime()+n*p;return E.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,s=this.$m,a=this.$M,u=n.weekdays,c=n.months,l=function(t,n,o,i){return t&&(t[n]||t(e,r))||o[n].slice(0,i)},f=function(t){return E.s(i%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:E.s(a+1,2,"0"),MMM:l(n.monthsShort,a,c,3),MMMM:l(c,a),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,u,2),ddd:l(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:E.s(i,2,"0"),h:f(1),hh:f(2),a:h(i,s,!0),A:h(i,s,!1),m:String(s),mm:E.s(s,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:o};return r.replace(m,(function(t,e){return e||p[t]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,d){var h,m=E.p(f),p=S(n),y=(p.utcOffset()-this.utcOffset())*t,g=this-p,w=E.m(this,p);return w=(h={},h[l]=w/12,h[u]=w,h[c]=w/3,h[a]=(g-y)/6048e5,h[s]=(g-y)/864e5,h[i]=g/e,h[o]=g/t,h[r]=g/1e3,h)[m]||g,d?w:E.a(w)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return b[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=O(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return E.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},p}(),T=$.prototype;return S.prototype=T,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",s],["$M",u],["$y",l],["$D",f]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),S.extend=function(t,e){return t.$i||(t(e,$,S),t.$i=!0),S},S.locale=O,S.isDayjs=v,S.unix=function(t){return S(1e3*t)},S.en=b[w],S.Ls=b,S.p={},S}()},866:function(t,e,n){t.exports=function(t){"use strict";var e=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(t),n={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,e){return"W"===e?t+"周":t+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(t,e){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return e.default.locale(n,null,!0),n}(n(693))},634:function(t){t.exports=function(){"use strict";return function(t,e,n){e.prototype.dayOfYear=function(t){var e=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"day")}}}()},311:function(t){t.exports=function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(e,n,r){var o=n.prototype,i=o.format;r.en.formats=t,o.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(e,n){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,r,o){var i=o&&o.toUpperCase();return r||n[o]||t[o]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))}(e,void 0===n?{}:n);return i.call(this,r)}}}()},266:function(t){t.exports=function(){"use strict";var t="month",e="quarter";return function(n,r){var o=r.prototype;o.quarter=function(t){return this.$utils().u(t)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(t-1))};var i=o.add;o.add=function(n,r){return n=Number(n),this.$utils().p(r)===e?this.add(3*n,t):i.bind(this)(n,r)};var s=o.startOf;o.startOf=function(n,r){var o=this.$utils(),i=!!o.u(r)||r;if(o.p(n)===e){var a=this.quarter()-1;return i?this.month(3*a).startOf(t).startOf("day"):this.month(3*a+2).endOf(t).endOf("day")}return s.bind(this)(n,r)}}}()},815:function(t){t.exports=function(){"use strict";return function(t,e,n){t=t||{};var r=e.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(t,e,n,o){return r.fromToBase(t,e,n,o)}n.en.relativeTime=o,r.fromToBase=function(e,r,i,s,a){for(var u,c,l,f=i.$locale().relativeTime||o,d=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=d.length,m=0;m<h;m+=1){var p=d[m];p.d&&(u=s?n(e).diff(i,p.d,!0):i.diff(e,p.d,!0));var y=(t.rounding||Math.round)(Math.abs(u));if(l=u>0,y<=p.r||!p.r){y<=1&&m>0&&(p=d[m-1]);var g=f[p.l];a&&(y=a(""+y)),c="string"==typeof g?g.replace("%d",y):g(y,r,p.l,l);break}}if(r)return c;var w=l?f.future:f.past;return"function"==typeof w?w(c):w.replace("%s",c)},r.to=function(t,e){return i(t,e,this,!0)},r.from=function(t,e){return i(t,e,this)};var s=function(t){return t.$u?n.utc():n()};r.toNow=function(t){return this.to(s(this),t)},r.fromNow=function(t){return this.from(s(this),t)}}}()},197:function(t){t.exports=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,r,o){var i,s=function(t,n,r){void 0===r&&(r={});var o=new Date(t),i=function(t,n){void 0===n&&(n={});var r=n.timeZoneName||"short",o=t+"|"+r,i=e[o];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),e[o]=i),i}(n,r);return i.formatToParts(o)},a=function(e,n){for(var r=s(e,n),i=[],a=0;a<r.length;a+=1){var u=r[a],c=u.type,l=u.value,f=t[c];f>=0&&(i[f]=parseInt(l,10))}var d=i[3],h=24===d?0:d,m=i[0]+"-"+i[1]+"-"+i[2]+" "+h+":"+i[4]+":"+i[5]+":000",p=+e;return(o.utc(m).valueOf()-(p-=p%1e3))/6e4},u=r.prototype;u.tz=function(t,e){void 0===t&&(t=i);var n=this.utcOffset(),r=this.toDate(),s=r.toLocaleString("en-US",{timeZone:t}),a=Math.round((r-new Date(s))/1e3/60),u=o(s).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-a,!0);if(e){var c=u.utcOffset();u=u.add(n-c,"minute")}return u.$x.$timezone=t,u},u.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=s(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var c=u.startOf;u.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var r=n&&e,s=n||e||i,u=a(+o(),s);if("string"!=typeof t)return o(t).tz(s);var c=function(t,e,n){var r=t-60*e*1e3,o=a(r,n);if(e===o)return[r,e];var i=a(r-=60*(o-e)*1e3,n);return o===i?[r,o]:[t-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(t,r).valueOf(),u,s),l=c[0],f=c[1],d=o(l).utcOffset(f);return d.$x.$timezone=s,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){i=t}}}()},600:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var s=o.prototype;i.utc=function(t){return new o({date:t,utc:!0,args:arguments})},s.utc=function(e){var n=i(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},s.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var u=s.init;s.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else u.call(this)};var c=s.utcOffset;s.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(t){void 0===t&&(t="");var r=t.match(e);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],s=60*+o[1]+ +o[2];return 0===s?0:"+"===i?s:-s}(r),null===r))return this;var s=Math.abs(r)<=16?60*r:r,a=this;if(o)return a.$offset=s,a.$u=0===r,a;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+u,t)).$offset=s,a.$x.$localOffset=u}else a=this.utc();return a};var l=s.format;s.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},s.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var f=s.toDate;s.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=s.diff;s.diff=function(t,e,n){if(t&&this.$u===t.$u)return d.call(this,t,e,n);var r=this.local(),o=i(t).local();return d.call(r,o,e,n)}}}()},502:function(t){t.exports=function(){"use strict";var t="week",e="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(e).add(1,e).date(r),s=o(this).endOf(t);if(i.isBefore(s))return 1}var a=o(this).startOf(e).date(r).startOf(t).subtract(1,"millisecond"),u=this.diff(a,t,!0);return u<0?o(this).startOf("week").week():Math.ceil(u)},i.weeks=function(t){return void 0===t&&(t=null),this.week(t)}}}()}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{"use strict";n.d(r,{default:()=>Te});const t={},e={};let o=!1,i=t=>{let e=t.getAttribute("class")||"";return e=e.split(" "),e};const s=(t,e)=>{let n=i(t);n=n.filter((t=>t!==e&&""!==t)),n.push(e),t.setAttribute("class",n.join(" "))},a=(t,e)=>{let n=i(t);n=n.filter((t=>t!==e&&""!==t)),t.setAttribute("class",n.join(" "))},u=document.documentElement;e["sumor.language"]=t=>{const e=t.split("-");if(["ar","arc","dv","fa","ha","he","khw","ks","ku","ps","ur","yi"].indexOf(e[0])>=0){if(!o){o=!0;const t=".SumorRTL{direction: rtl;}";var n=document.createElement("style");n.type="text/css",n.innerHTML=t,document.getElementsByTagName("HEAD").item(0).appendChild(n)}s(u,"SumorRTL")}else a(u,"SumorRTL");return u.setAttribute("lang",t),t},e["sumor.dark"]=t=>(t?s(u,"SumorDark"):a(u,"SumorDark"),t);const c=e;let l={reactive:t=>t};const f={get:()=>l,set(t){Object.assign(l,t)}},d=(t,e)=>{const n=c[t];return n?n(e):e},h=(e,n)=>{if(e.indexOf(".")<0){n=d(e,n);for(let t in n){const r=`${e}.${t}`;n[t]=d(r,n[t])}((e,n)=>{const{reactive:r}=f.get();t[e]=r(n)})(e,n)}else{n=d(e,n);let r=t;const o=e.split(".");for(let t=0;t<o.length;t++){const e=o[t];t===o.length-1?r[e]=n:(r[e]=r[e]||{},r=r[e])}}};var m=n(693),p=n.n(m),y=n(311),g=n.n(y),w=n(600),b=n.n(w),v=n(197),O=n.n(v),S=(n(866),n(815)),E=n.n(S),$=n(634),T=n.n($),x=n(502),D=n.n(x),M=n(266),_=n.n(M);p().extend(g()),p().extend(b()),p().extend(O()),p().extend(E()),p().extend(T()),p().extend(D()),p().extend(_());const A=p(),R=A.tz.guess();let L,k;"undefined"!=typeof navigator&&(L=navigator.language||navigator.browserLanguage),L=L||"zh-CN",k=R||"Asia/Shanghai",h("sumor",{width:0,height:0,language:L,timezone:k,dark:!1,iconFont:"https://icon.sumor.com/group",device:{overflow:!1},meta:{name:null,api:{},text:{},instance:{}},token:{id:null,user:null,time:null,permission:{},data:{}}}),h("internal",{messageId:0,messages:[]});try{const t=window.matchMedia("(prefers-color-scheme: dark)").matches;h("sumor.dark",t),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(t=>{t.matches?h("sumor.dark",!0):h("sumor.dark",!1)}))}catch(t){console.log("浏览器不支持暗黑模式")}const j=t,C={set:h,store:j};function N(t,e){return function(){return t.apply(e,arguments)}}const{toString:P}=Object.prototype,{getPrototypeOf:U}=Object,Y=(t=>e=>{const n=P.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=t=>(t=t.toLowerCase(),e=>Y(e)===t),B=t=>e=>typeof e===t,{isArray:z}=Array,H=B("undefined"),I=F("ArrayBuffer"),q=B("string"),J=B("function"),W=B("number"),V=t=>null!==t&&"object"==typeof t,X=t=>{if("object"!==Y(t))return!1;const e=U(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},K=F("Date"),Z=F("File"),G=F("Blob"),Q=F("FileList"),tt=F("URLSearchParams");function et(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),z(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let s;for(r=0;r<i;r++)s=o[r],e.call(null,t[s],s,t)}}function nt(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,o=n.length;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const rt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ot=t=>!H(t)&&t!==rt,it=(st="undefined"!=typeof Uint8Array&&U(Uint8Array),t=>st&&t instanceof st);var st;const at=F("HTMLFormElement"),ut=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ct=F("RegExp"),lt=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};et(n,((n,o)=>{!1!==e(n,o,t)&&(r[o]=n)})),Object.defineProperties(t,r)},ft="abcdefghijklmnopqrstuvwxyz",dt="0123456789",ht={DIGIT:dt,ALPHA:ft,ALPHA_DIGIT:ft+ft.toUpperCase()+dt},mt={isArray:z,isArrayBuffer:I,isBuffer:function(t){return null!==t&&!H(t)&&null!==t.constructor&&!H(t.constructor)&&J(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||P.call(t)===e||J(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&I(t.buffer),e},isString:q,isNumber:W,isBoolean:t=>!0===t||!1===t,isObject:V,isPlainObject:X,isUndefined:H,isDate:K,isFile:Z,isBlob:G,isRegExp:ct,isFunction:J,isStream:t=>V(t)&&J(t.pipe),isURLSearchParams:tt,isTypedArray:it,isFileList:Q,forEach:et,merge:function t(){const{caseless:e}=ot(this)&&this||{},n={},r=(r,o)=>{const i=e&&nt(n,o)||o;X(n[i])&&X(r)?n[i]=t(n[i],r):X(r)?n[i]=t({},r):z(r)?n[i]=r.slice():n[i]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&et(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(et(e,((e,r)=>{n&&J(e)?t[r]=N(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,s;const a={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],r&&!r(s,t,e)||a[s]||(e[s]=t[s],a[s]=!0);t=!1!==n&&U(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:Y,kindOfTest:F,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(z(t))return t;let e=t.length;if(!W(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:at,hasOwnProperty:ut,hasOwnProp:ut,reduceDescriptors:lt,freezeMethods:t=>{lt(t,((e,n)=>{if(J(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];J(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return z(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:nt,global:rt,isContextDefined:ot,ALPHABET:ht,generateString:(t=16,e=ht.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&J(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(V(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const o=z(t)?[]:{};return et(t,((t,e)=>{const i=n(t,r+1);!H(i)&&(o[e]=i)})),e[r]=void 0,o}}return t};return n(t,0)}};function pt(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}mt.inherits(pt,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:mt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const yt=pt.prototype,gt={};["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((t=>{gt[t]={value:t}})),Object.defineProperties(pt,gt),Object.defineProperty(yt,"isAxiosError",{value:!0}),pt.from=(t,e,n,r,o,i)=>{const s=Object.create(yt);return mt.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),pt.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const wt=pt;function bt(t){return mt.isPlainObject(t)||mt.isArray(t)}function vt(t){return mt.endsWith(t,"[]")?t.slice(0,-2):t}function Ot(t,e,n){return t?t.concat(e).map((function(t,e){return t=vt(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const St=mt.toFlatObject(mt,{},null,(function(t){return/^is[A-Z]/.test(t)})),Et=function(t,e,n){if(!mt.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=mt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!mt.isUndefined(e[t])}))).metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&mt.isSpecCompliantForm(e);if(!mt.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(mt.isDate(t))return t.toISOString();if(!a&&mt.isBlob(t))throw new wt("Blob is not supported. Use a Buffer instead.");return mt.isArrayBuffer(t)||mt.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,n,o){let a=t;if(t&&!o&&"object"==typeof t)if(mt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(mt.isArray(t)&&function(t){return mt.isArray(t)&&!t.some(bt)}(t)||(mt.isFileList(t)||mt.endsWith(n,"[]"))&&(a=mt.toArray(t)))return n=vt(n),a.forEach((function(t,r){!mt.isUndefined(t)&&null!==t&&e.append(!0===s?Ot([n],r,i):null===s?n:n+"[]",u(t))})),!1;return!!bt(t)||(e.append(Ot(o,n,i),u(t)),!1)}const l=[],f=Object.assign(St,{defaultVisitor:c,convertValue:u,isVisitable:bt});if(!mt.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!mt.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),mt.forEach(n,(function(n,i){!0===(!(mt.isUndefined(n)||null===n)&&o.call(e,n,mt.isString(i)?i.trim():i,r,f))&&t(n,r?r.concat(i):[i])})),l.pop()}}(t),e};function $t(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Tt(t,e){this._pairs=[],t&&Et(t,this,e)}const xt=Tt.prototype;xt.append=function(t,e){this._pairs.push([t,e])},xt.toString=function(t){const e=t?function(e){return t.call(this,e,$t)}:$t;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const Dt=Tt;function Mt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _t(t,e,n){if(!e)return t;const r=n&&n.encode||Mt,o=n&&n.serialize;let i;if(i=o?o(e,n):mt.isURLSearchParams(e)?e.toString():new Dt(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}const At=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){mt.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},Rt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Dt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},kt=function(t){function e(t,n,r,o){let i=t[o++];const s=Number.isFinite(+i),a=o>=t.length;return i=!i&&mt.isArray(r)?r.length:i,a?(mt.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&mt.isObject(r[i])||(r[i]=[]),e(t,n,r[i],o)&&mt.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}(r[i])),!s)}if(mt.isFormData(t)&&mt.isFunction(t.entries)){const n={};return mt.forEachEntry(t,((t,r)=>{e(function(t){return mt.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null},jt={"Content-Type":void 0},Ct={transitional:Rt,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=mt.isObject(t);if(o&&mt.isHTMLForm(t)&&(t=new FormData(t)),mt.isFormData(t))return r&&r?JSON.stringify(kt(t)):t;if(mt.isArrayBuffer(t)||mt.isBuffer(t)||mt.isStream(t)||mt.isFile(t)||mt.isBlob(t))return t;if(mt.isArrayBufferView(t))return t.buffer;if(mt.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Et(t,new Lt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return Lt.isNode&&mt.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=mt.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Et(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(mt.isString(t))try{return(0,JSON.parse)(t),mt.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Ct.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&mt.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw wt.from(t,wt.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};mt.forEach(["delete","get","head"],(function(t){Ct.headers[t]={}})),mt.forEach(["post","put","patch"],(function(t){Ct.headers[t]=mt.merge(jt)}));const Nt=Ct,Pt=mt.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"]),Ut=Symbol("internals");function Yt(t){return t&&String(t).trim().toLowerCase()}function Ft(t){return!1===t||null==t?t:mt.isArray(t)?t.map(Ft):String(t)}function Bt(t,e,n,r,o){return mt.isFunction(r)?r.call(this,e,n):(o&&(e=n),mt.isString(e)?mt.isString(r)?-1!==e.indexOf(r):mt.isRegExp(r)?r.test(e):void 0:void 0)}class zt{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=Yt(e);if(!o)throw new Error("header name must be a non-empty string");const i=mt.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=Ft(t))}const i=(t,e)=>mt.forEach(t,((t,n)=>o(t,n,e)));return mt.isPlainObject(t)||t instanceof this.constructor?i(t,e):mt.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z]+$/.test(t.trim())?i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&Pt[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&o(e,t,n),this}get(t,e){if(t=Yt(t)){const n=mt.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(mt.isFunction(e))return e.call(this,t,n);if(mt.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Yt(t)){const n=mt.findKey(this,t);return!(!n||void 0===this[n]||e&&!Bt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=Yt(t)){const o=mt.findKey(n,t);!o||e&&!Bt(0,n[o],o,e)||(delete n[o],r=!0)}}return mt.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!Bt(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return mt.forEach(this,((r,o)=>{const i=mt.findKey(n,o);if(i)return e[i]=Ft(r),void delete e[o];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete e[o],e[s]=Ft(r),n[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return mt.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&mt.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[Ut]=this[Ut]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=Yt(t);e[r]||(function(t,e){const n=mt.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})}))}(n,t),e[r]=!0)}return mt.isArray(t)?t.forEach(r):r(t),this}}zt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),mt.freezeMethods(zt.prototype),mt.freezeMethods(zt);const Ht=zt;function It(t,e){const n=this||Nt,r=e||n,o=Ht.from(r.headers);let i=r.data;return mt.forEach(t,(function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function qt(t){return!(!t||!t.__CANCEL__)}function Jt(t,e,n){wt.call(this,null==t?"canceled":t,wt.ERR_CANCELED,e,n),this.name="CanceledError"}mt.inherits(Jt,wt,{__CANCEL__:!0});const Wt=Jt,Vt=Lt.isStandardBrowserEnv?{write:function(t,e,n,r,o,i){const s=[];s.push(t+"="+encodeURIComponent(e)),mt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),mt.isString(r)&&s.push("path="+r),mt.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Xt(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Kt=Lt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=mt.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0},Zt=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,s=0;return e=void 0!==e?e:1e3,function(a){const u=Date.now(),c=r[s];o||(o=u),n[i]=a,r[i]=u;let l=s,f=0;for(;l!==i;)f+=n[l++],l%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),u-o<e)return;const d=c&&u-c;return d?Math.round(1e3*f/d):void 0}};function Gt(t,e){let n=0;const r=Zt(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,u=r(a);n=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&i<=s?(s-i)/u:void 0,event:o};c[e?"download":"upload"]=!0,t(c)}}const Qt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const o=Ht.from(t.headers).normalize(),i=t.responseType;let s;function a(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}mt.isFormData(r)&&(Lt.isStandardBrowserEnv||Lt.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let u=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+n))}const c=Xt(t.baseURL,t.url);function l(){if(!u)return;const r=Ht.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new wt("Request failed with status code "+n.status,[wt.ERR_BAD_REQUEST,wt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),a()}),(function(t){n(t),a()}),{data:i&&"text"!==i&&"json"!==i?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:t,request:u}),u=null}if(u.open(t.method.toUpperCase(),_t(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n(new wt("Request aborted",wt.ECONNABORTED,t,u)),u=null)},u.onerror=function(){n(new wt("Network Error",wt.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||Rt;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new wt(e,r.clarifyTimeoutError?wt.ETIMEDOUT:wt.ECONNABORTED,t,u)),u=null},Lt.isStandardBrowserEnv){const e=(t.withCredentials||Kt(c))&&t.xsrfCookieName&&Vt.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&mt.forEach(o.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),mt.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),i&&"json"!==i&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",Gt(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Gt(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=e=>{u&&(n(!e||e.type?new Wt(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(c);f&&-1===Lt.protocols.indexOf(f)?n(new wt("Unsupported protocol "+f+":",wt.ERR_BAD_REQUEST,t)):u.send(r||null)}))}};mt.forEach(Qt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const te={getAdapter:t=>{t=mt.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let o=0;o<e&&(n=t[o],!(r=mt.isString(n)?Qt[n.toLowerCase()]:n));o++);if(!r){if(!1===r)throw new wt(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(mt.hasOwnProp(Qt,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!mt.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Qt};function ee(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Wt(null,t)}function ne(t){return ee(t),t.headers=Ht.from(t.headers),t.data=It.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),te.getAdapter(t.adapter||Nt.adapter)(t).then((function(e){return ee(t),e.data=It.call(t,t.transformResponse,e),e.headers=Ht.from(e.headers),e}),(function(e){return qt(e)||(ee(t),e&&e.response&&(e.response.data=It.call(t,t.transformResponse,e.response),e.response.headers=Ht.from(e.response.headers))),Promise.reject(e)}))}const re=t=>t instanceof Ht?t.toJSON():t;function oe(t,e){e=e||{};const n={};function r(t,e,n){return mt.isPlainObject(t)&&mt.isPlainObject(e)?mt.merge.call({caseless:n},t,e):mt.isPlainObject(e)?mt.merge({},e):mt.isArray(e)?e.slice():e}function o(t,e,n){return mt.isUndefined(e)?mt.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function i(t,e){if(!mt.isUndefined(e))return r(void 0,e)}function s(t,e){return mt.isUndefined(e)?mt.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function a(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials: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:a,headers:(t,e)=>o(re(t),re(e),!0)};return mt.forEach(Object.keys(t).concat(Object.keys(e)),(function(r){const i=u[r]||o,s=i(t[r],e[r],r);mt.isUndefined(s)&&i!==a||(n[r]=s)})),n}const ie={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{ie[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const se={};ie.transitional=function(t,e,n){function r(t,e){return"[Axios v1.3.4] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new wt(r(o," has been removed"+(e?" in "+e:"")),wt.ERR_DEPRECATED);return e&&!se[o]&&(se[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}};const ae={assertOptions:function(t,e,n){if("object"!=typeof t)throw new wt("options must be an object",wt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const e=t[i],n=void 0===e||s(e,i,t);if(!0!==n)throw new wt("option "+i+" must be "+n,wt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new wt("Unknown option "+i,wt.ERR_BAD_OPTION)}},validators:ie},ue=ae.validators;class ce{constructor(t){this.defaults=t,this.interceptors={request:new At,response:new At}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=oe(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;let i;void 0!==n&&ae.assertOptions(n,{silentJSONParsing:ue.transitional(ue.boolean),forcedJSONParsing:ue.transitional(ue.boolean),clarifyTimeoutError:ue.transitional(ue.boolean)},!1),void 0!==r&&ae.assertOptions(r,{encode:ue.function,serialize:ue.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase(),i=o&&mt.merge(o.common,o[e.method]),i&&mt.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=Ht.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)}));let l,f=0;if(!a){const t=[ne.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,u),l=t.length,c=Promise.resolve(e);f<l;)c=c.then(t[f++],t[f++]);return c}l=s.length;let d=e;for(f=0;f<l;){const t=s[f++],e=s[f++];try{d=t(d)}catch(t){e.call(this,t);break}}try{c=ne.call(this,d)}catch(t){return Promise.reject(t)}for(f=0,l=u.length;f<l;)c=c.then(u[f++],u[f++]);return c}getUri(t){return _t(Xt((t=oe(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}mt.forEach(["delete","get","head","options"],(function(t){ce.prototype[t]=function(e,n){return this.request(oe(n||{},{method:t,url:e,data:(n||{}).data}))}})),mt.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,o){return this.request(oe(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ce.prototype[t]=e(),ce.prototype[t+"Form"]=e(!0)}));const le=ce;class fe{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,o){n.reason||(n.reason=new Wt(t,r,o),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new fe((function(e){t=e})),cancel:t}}}const de=fe,he={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(he).forEach((([t,e])=>{he[e]=t}));const me=he,pe=function t(e){const n=new le(e),r=N(le.prototype.request,n);return mt.extend(r,le.prototype,n,{allOwnKeys:!0}),mt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(oe(e,n))},r}(Nt);pe.Axios=le,pe.CanceledError=Wt,pe.CancelToken=de,pe.isCancel=qt,pe.VERSION="1.3.4",pe.toFormData=Et,pe.AxiosError=wt,pe.Cancel=pe.CanceledError,pe.all=function(t){return Promise.all(t)},pe.spread=function(t){return function(e){return t.apply(null,e)}},pe.isAxiosError=function(t){return mt.isObject(t)&&!0===t.isAxiosError},pe.mergeConfig=oe,pe.AxiosHeaders=Ht,pe.formToJSON=t=>kt(mt.isHTMLForm(t)?new FormData(t):t),pe.HttpStatusCode=me,pe.default=pe;const ye=pe,ge=async(t,e,n)=>{n=n||{};let r,o=!1;for(let t in e)e[t]instanceof File&&(o=!0);if(o){r=new FormData;for(let t in e)"object"!=typeof e[t]||e[t]instanceof File||(e[t]=JSON.stringify(e[t])),r.append(t,e[t])}else r=e;try{return(await ye({method:"POST",url:t,data:r,headers:{"Content-Type":o?"multipart/form-data":"application/json;charset=utf-8","Accept-Language":n.language?n.language:void 0,"sumor-timezone":n.timezone?n.timezone:void 0}})).data}catch(t){return{error:!0,...t.response.data}}},we=async(t,e)=>{let n;const r=async(t,e)=>{const n={};return n.language=j.sumor.language,n.timezone=j.sumor.timezone,await ge(t,e,n)};switch(t){case"meta":j.sumor.meta.name&&!e||(n=await r("/sumor/meta"),Object.assign(j.sumor.meta,n.data));break;case"token":n=await r("/sumor/token"),Object.assign(j.sumor.token,n.data),j.sumor.token.id=n.data.id||null,j.sumor.token.user=n.data.user||null,j.sumor.token.time=n.data.time||null,j.sumor.token.permission=n.data.permission||{},j.sumor.token.data=n.data.data||{}}},be=async(t,e)=>{await we("meta");const n={};return n.language=j.sumor.language,n.timezone=j.sumor.timezone,await ge(t,e,n)},ve=async(t,e)=>{await we("meta");const{origin:n,path:r}=(t=>{let e="",n=t;if(0===t.indexOf("http")){const r=t.split("/");e=r.slice(0,3).join("/"),n=r.slice(3,r.length).join("/")}return 0!==n.indexOf("/")&&(n="/"+n),{origin:e,path:n}})(e),o=j.sumor.meta.api,i=[];for(let t in o)if(0===t.indexOf(r)){const e=t.replace(r,"").split("/");if(2===e.length){const r=e[1];i.push({path:t,key:r,meta:o[t],action:async e=>await be(n+t,e)})}}((t,e,n)=>{n=n||{};let r=C.set(`${t}Model`,{data:[],selected:[],count:0,currentPage:0,maxPage:0,busy:{}});const o={action:{},meta:{}};sumor.model[t]=o;const i={};let s,a,u={};for(let t of e)r.busy[t.key]=!1,o.meta[t.key]=t.meta,i[t.key]=async e=>{r.busy[t.key]=!0;const n=await t.action(e);if(r.busy[t.key]=!1,n.error)throw n;return n.data},"query"===t.key?s=i[t.key]:"read"===t.key?a=i[t.key]:u[t.key]=i[t.key];let c={},l="",f=n.top||100,d=n.skip||0;const h=()=>Math.floor(d/f)+1;o.select=t=>{for(let e of r.data)r.selected=r.selected.filter((t=>t.id!==e.id)),t.indexOf(e.id)>=0&&r.selected.push(e)},o.refresh=async t=>{t&&t.top&&(f=t.top,delete t.top),t&&JSON.stringify(t)!==JSON.stringify(c)&&(c=t,d=0,r.selected=[]);const e=await s({...c,top:f,skip:d,sort:l});r.count=e.count,r.maxPage=Math.floor(r.count/f)+1,r.currentPage=Math.floor(d/f)+1,r.data=e.data,(()=>{const t=r.selected.map((t=>t.id));for(let e of r.data)r.selected=r.selected.filter((t=>t.id!==e.id)),t.indexOf(e.id)>=0&&r.selected.push(e)})()},o.sort=async t=>{l=t,await o.refresh()},o.goto=async t=>{t>0&&t<=r.maxPage&&(d=(t-1)*f,await o.refresh())},o.previous=async()=>{const t=h()-1;await o.goto(t)},o.next=async()=>{const t=h()+1;await o.goto(t)};for(let t in u)o.action[t]=async e=>{const n=await u[t](e);return await o.refresh(),n};o.read=async t=>{const e=await a(t),n=r.data.filter((e=>e.id===t.id))[0];return n&&Object.assign(n,e),e},o.resize=async t=>{f=t,await o.refresh()}})(t,i)},Oe={now:()=>Date.now(),timezone:R,parse:t=>{const e=A(t);return{year:e.year(),month:e.month()+1,date:e.date(),hour:e.hour(),minute:e.minute(),second:e.second(),weekday:e.day()+1,yearday:e.dayOfYear(),week:e.week(),quarter:e.quarter()}},format:(t,e,n)=>A(t).tz(n||j.sumor.timezone).locale(j.sumor.language.toLowerCase()).format(e),timeTo:(t,e)=>(e=e||Date.now(),A(e).locale(j.sumor.language.toLowerCase()).to(A(t)))},Se={css(t){const e=document.head.children;let n=!1;for(const r in e)"LINK"===e[r].tagName&&e[r].href===t&&(n=!0);if(!n){const e=document.getElementsByTagName("head")[0],n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=t,e.appendChild(n)}},async js(t){const e=document.head.children;let n=!1;for(const r in e)"SCRIPT"===e[r].tagName&&e[r].src===t&&(n=!0);n||await new Promise((e=>{const n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.src=t,r.type="text/javascript",r.addEventListener?r.addEventListener("load",(function(){e()}),!1):r.attachEvent&&r.attachEvent("onreadystatechange",(function(){"loaded"===window.event.srcElement.readyState&&e()})),n.appendChild(r)}))}};let Ee,$e="https://library.sumor.com/xlsx/0.16.0/xlsx.full.min.js";const Te={model:{},form:t=>new class{constructor(){this.pending=!1,this.data={}}async call(e){e=Object.assign({},this.data,e),this.pending=!0;const n=await be(t,e);if(this.pending=!1,n.error)throw n;return n.data}},call:be,init:async t=>{await we("meta"),f.set(t);for(let t in C.store)C.set(t,C.store[t])},update:we,registerModel:async t=>{if(t)for(let e in t)await ve(e,t[e])},logout:async()=>{await be("/sumor/logout"),await we("token")},range:async t=>{const e=await be("/sumor/range",{name:t});if(e.error)throw e;{const t=e.data;let n=[];if("string"==typeof t){const e=t.split("\n");for(let t of e){const e=t.split("=");if(e.length>1){const t=e[1].split("|");n.push({key:e[0],text:t[0],text1:t[1],text2:t[2]})}}}else n=t;return n.sort(((t,e)=>t.key>e.key?1:-1)),n}},time:Oe,table:{async import(t){await Se.js($e);let e=await new Promise((e=>{const n=new FileReader;n.readAsArrayBuffer(t),n.onload=()=>{const t=window.XLSX.read(n.result,{type:"array"});e(t)}}));const n=e.Props.SheetNames[0],r=e.Sheets[n];return window.XLSX.utils.sheet_to_json(r)},async export({name:t,type:e,data:n}){await Se.js($e);let r=window.XLSX.utils.aoa_to_sheet(n),o=window.XLSX.utils.book_new();window.XLSX.utils.book_append_sheet(o,r,"default");let i=`${t=t||"export"}.${e=e||"xlsx"}`;return window.XLSX.writeFile(o,i)}},qrcode:async t=>(await Se.js("https://library.sumor.com/qrcode/qrcode.min.js"),await new Promise((e=>{window.QRCode.toDataURL(t,((t,n)=>{e(n)}))}))),copy:async t=>{await Se.js("https://library.sumor.com/clipboard/2.0.11/clipboard.min.js"),Ee||(Ee=document.createElement("button"),Ee.id="SumorCopyPlaceholder",Ee.style.display="none",document.body.appendChild(Ee)),document.getElementById(Ee.id).click(),setTimeout((()=>{document.getElementById(Ee.id).click()}),100),await new Promise(((e,n)=>{try{const r=new window.ClipboardJS("#"+Ee.id,{text:()=>t});r.on("success",(t=>{r.off("error"),r.off("success"),r.destroy(),e()})),r.on("error",(t=>{console.log("复制到粘贴板失败"),console.log(t),r.off("error"),r.off("success"),r.destroy(),n()})),r.onClick(Ee)}catch(t){}}))},upload:async function(t){return await new Promise((e=>{const n=document.createElement("input");n.type="file",n.name="file",t&&(n.multiple="multiple"),n.addEventListener("change",(function(n){e(t?n.target.files:n.target.files[0])})),n.value="",n.click()}))},load:Se,...C}})(),r.default})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.sumor=e():t.sumor=e()}("undefined"!=typeof self?self:this,(()=>(()=>{var t={693:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,n="millisecond",r="second",o="minute",i="hour",s="day",a="week",u="month",c="quarter",l="year",f="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},y=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(r,u),i=n-o<0,s=e.clone().add(r+(i?-1:1),u);return+(-(r+(n-o)/(i?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:l,w:a,d:s,D:f,h:i,m:o,s:r,ms:n,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",v={};v[w]=p;var b=function(t){return t instanceof $},O=function t(e,n,r){var o;if(!e)return w;if("string"==typeof e){var i=e.toLowerCase();v[i]&&(o=i),n&&(v[i]=n,o=i);var s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var a=e.name;v[a]=e,o=a}return!r&&o&&(w=o),o||!r&&w},S=function(t,e){if(b(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new $(n)},E=g;E.l=O,E.i=b,E.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var $=function(){function p(t){this.$L=O(t.locale,null,!0),this.parse(t)}var y=p.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var n=S(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return S(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<S(t)},y.$g=function(t,e,n){return E.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,c=!!E.u(e)||e,d=E.p(t),h=function(t,e){var r=E.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return c?r:r.endOf(s)},m=function(t,e){return E.w(n.toDate()[t].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,y=this.$M,g=this.$D,w="set"+(this.$u?"UTC":"");switch(d){case l:return c?h(1,0):h(31,11);case u:return c?h(1,y):h(0,y+1);case a:var v=this.$locale().weekStart||0,b=(p<v?p+7:p)-v;return h(c?g-b:g+(6-b),y);case s:case f:return m(w+"Hours",0);case i:return m(w+"Minutes",1);case o:return m(w+"Seconds",2);case r:return m(w+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var a,c=E.p(t),d="set"+(this.$u?"UTC":""),h=(a={},a[s]=d+"Date",a[f]=d+"Date",a[u]=d+"Month",a[l]=d+"FullYear",a[i]=d+"Hours",a[o]=d+"Minutes",a[r]=d+"Seconds",a[n]=d+"Milliseconds",a)[c],m=c===s?this.$D+(e-this.$W):e;if(c===u||c===l){var p=this.clone().set(f,1);p.$d[h](m),p.init(),this.$d=p.set(f,Math.min(this.$D,p.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[E.p(t)]()},y.add=function(n,c){var f,d=this;n=Number(n);var h=E.p(c),m=function(t){var e=S(d);return E.w(e.date(e.date()+Math.round(t*n)),d)};if(h===u)return this.set(u,this.$M+n);if(h===l)return this.set(l,this.$y+n);if(h===s)return m(1);if(h===a)return m(7);var p=(f={},f[o]=t,f[i]=e,f[r]=1e3,f)[h]||1,y=this.$d.getTime()+n*p;return E.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,s=this.$m,a=this.$M,u=n.weekdays,c=n.months,l=function(t,n,o,i){return t&&(t[n]||t(e,r))||o[n].slice(0,i)},f=function(t){return E.s(i%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:E.s(this.$y,4,"0"),M:a+1,MM:E.s(a+1,2,"0"),MMM:l(n.monthsShort,a,c,3),MMMM:l(c,a),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,u,2),ddd:l(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:E.s(i,2,"0"),h:f(1),hh:f(2),a:h(i,s,!0),A:h(i,s,!1),m:String(s),mm:E.s(s,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:o};return r.replace(m,(function(t,e){return e||p[t]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,d){var h,m=E.p(f),p=S(n),y=(p.utcOffset()-this.utcOffset())*t,g=this-p,w=E.m(this,p);return w=(h={},h[l]=w/12,h[u]=w,h[c]=w/3,h[a]=(g-y)/6048e5,h[s]=(g-y)/864e5,h[i]=g/e,h[o]=g/t,h[r]=g/1e3,h)[m]||g,d?w:E.a(w)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return v[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=O(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return E.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},p}(),x=$.prototype;return S.prototype=x,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",s],["$M",u],["$y",l],["$D",f]].forEach((function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),S.extend=function(t,e){return t.$i||(t(e,$,S),t.$i=!0),S},S.locale=O,S.isDayjs=b,S.unix=function(t){return S(1e3*t)},S.en=v[w],S.Ls=v,S.p={},S}()},866:function(t,e,n){t.exports=function(t){"use strict";var e=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(t),n={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,e){return"W"===e?t+"周":t+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(t,e){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return e.default.locale(n,null,!0),n}(n(693))},634:function(t){t.exports=function(){"use strict";return function(t,e,n){e.prototype.dayOfYear=function(t){var e=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"day")}}}()},311:function(t){t.exports=function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(e,n,r){var o=n.prototype,i=o.format;r.en.formats=t,o.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(e,n){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,r,o){var i=o&&o.toUpperCase();return r||n[o]||t[o]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))}(e,void 0===n?{}:n);return i.call(this,r)}}}()},266:function(t){t.exports=function(){"use strict";var t="month",e="quarter";return function(n,r){var o=r.prototype;o.quarter=function(t){return this.$utils().u(t)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(t-1))};var i=o.add;o.add=function(n,r){return n=Number(n),this.$utils().p(r)===e?this.add(3*n,t):i.bind(this)(n,r)};var s=o.startOf;o.startOf=function(n,r){var o=this.$utils(),i=!!o.u(r)||r;if(o.p(n)===e){var a=this.quarter()-1;return i?this.month(3*a).startOf(t).startOf("day"):this.month(3*a+2).endOf(t).endOf("day")}return s.bind(this)(n,r)}}}()},815:function(t){t.exports=function(){"use strict";return function(t,e,n){t=t||{};var r=e.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(t,e,n,o){return r.fromToBase(t,e,n,o)}n.en.relativeTime=o,r.fromToBase=function(e,r,i,s,a){for(var u,c,l,f=i.$locale().relativeTime||o,d=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=d.length,m=0;m<h;m+=1){var p=d[m];p.d&&(u=s?n(e).diff(i,p.d,!0):i.diff(e,p.d,!0));var y=(t.rounding||Math.round)(Math.abs(u));if(l=u>0,y<=p.r||!p.r){y<=1&&m>0&&(p=d[m-1]);var g=f[p.l];a&&(y=a(""+y)),c="string"==typeof g?g.replace("%d",y):g(y,r,p.l,l);break}}if(r)return c;var w=l?f.future:f.past;return"function"==typeof w?w(c):w.replace("%s",c)},r.to=function(t,e){return i(t,e,this,!0)},r.from=function(t,e){return i(t,e,this)};var s=function(t){return t.$u?n.utc():n()};r.toNow=function(t){return this.to(s(this),t)},r.fromNow=function(t){return this.from(s(this),t)}}}()},197:function(t){t.exports=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,r,o){var i,s=function(t,n,r){void 0===r&&(r={});var o=new Date(t),i=function(t,n){void 0===n&&(n={});var r=n.timeZoneName||"short",o=t+"|"+r,i=e[o];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),e[o]=i),i}(n,r);return i.formatToParts(o)},a=function(e,n){for(var r=s(e,n),i=[],a=0;a<r.length;a+=1){var u=r[a],c=u.type,l=u.value,f=t[c];f>=0&&(i[f]=parseInt(l,10))}var d=i[3],h=24===d?0:d,m=i[0]+"-"+i[1]+"-"+i[2]+" "+h+":"+i[4]+":"+i[5]+":000",p=+e;return(o.utc(m).valueOf()-(p-=p%1e3))/6e4},u=r.prototype;u.tz=function(t,e){void 0===t&&(t=i);var n=this.utcOffset(),r=this.toDate(),s=r.toLocaleString("en-US",{timeZone:t}),a=Math.round((r-new Date(s))/1e3/60),u=o(s).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-a,!0);if(e){var c=u.utcOffset();u=u.add(n-c,"minute")}return u.$x.$timezone=t,u},u.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=s(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var c=u.startOf;u.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var r=n&&e,s=n||e||i,u=a(+o(),s);if("string"!=typeof t)return o(t).tz(s);var c=function(t,e,n){var r=t-60*e*1e3,o=a(r,n);if(e===o)return[r,e];var i=a(r-=60*(o-e)*1e3,n);return o===i?[r,o]:[t-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(t,r).valueOf(),u,s),l=c[0],f=c[1],d=o(l).utcOffset(f);return d.$x.$timezone=s,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){i=t}}}()},600:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var s=o.prototype;i.utc=function(t){return new o({date:t,utc:!0,args:arguments})},s.utc=function(e){var n=i(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},s.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var u=s.init;s.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else u.call(this)};var c=s.utcOffset;s.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(t){void 0===t&&(t="");var r=t.match(e);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],s=60*+o[1]+ +o[2];return 0===s?0:"+"===i?s:-s}(r),null===r))return this;var s=Math.abs(r)<=16?60*r:r,a=this;if(o)return a.$offset=s,a.$u=0===r,a;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+u,t)).$offset=s,a.$x.$localOffset=u}else a=this.utc();return a};var l=s.format;s.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},s.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var f=s.toDate;s.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=s.diff;s.diff=function(t,e,n){if(t&&this.$u===t.$u)return d.call(this,t,e,n);var r=this.local(),o=i(t).local();return d.call(r,o,e,n)}}}()},502:function(t){t.exports=function(){"use strict";var t="week",e="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(e).add(1,e).date(r),s=o(this).endOf(t);if(i.isBefore(s))return 1}var a=o(this).startOf(e).date(r).startOf(t).subtract(1,"millisecond"),u=this.diff(a,t,!0);return u<0?o(this).startOf("week").week():Math.ceil(u)},i.weeks=function(t){return void 0===t&&(t=null),this.week(t)}}}()}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{"use strict";n.d(r,{default:()=>Ee});const t={},e={};let o=!1,i=t=>{let e=t.getAttribute("class")||"";return e=e.split(" "),e};const s=(t,e)=>{let n=i(t);n=n.filter((t=>t!==e&&""!==t)),n.push(e),t.setAttribute("class",n.join(" "))},a=(t,e)=>{let n=i(t);n=n.filter((t=>t!==e&&""!==t)),t.setAttribute("class",n.join(" "))},u=document.documentElement;e["sumor.language"]=t=>{const e=t.split("-");if(["ar","arc","dv","fa","ha","he","khw","ks","ku","ps","ur","yi"].indexOf(e[0])>=0){if(!o){o=!0;const t=".SumorRTL{direction: rtl;}";var n=document.createElement("style");n.type="text/css",n.innerHTML=t,document.getElementsByTagName("HEAD").item(0).appendChild(n)}s(u,"SumorRTL")}else a(u,"SumorRTL");return u.setAttribute("lang",t),t},e["sumor.dark"]=t=>(t?s(u,"SumorDark"):a(u,"SumorDark"),t);const c=e;let l={reactive:t=>t};const f={get:()=>l,set(t){Object.assign(l,t)}},d=(t,e)=>{const n=c[t];return n?n(e):e},h=(e,n)=>{if(e.indexOf(".")<0){n=d(e,n);for(let t in n){const r=`${e}.${t}`;n[t]=d(r,n[t])}((e,n)=>{const{reactive:r}=f.get();t[e]=r(n)})(e,n)}else{n=d(e,n);let r=t;const o=e.split(".");for(let t=0;t<o.length;t++){const e=o[t];t===o.length-1?r[e]=n:(r[e]=r[e]||{},r=r[e])}}};var m=n(693),p=n.n(m),y=n(311),g=n.n(y),w=n(600),v=n.n(w),b=n(197),O=n.n(b),S=(n(866),n(815)),E=n.n(S),$=n(634),x=n.n($),T=n(502),D=n.n(T),M=n(266),_=n.n(M);p().extend(g()),p().extend(v()),p().extend(O()),p().extend(E()),p().extend(x()),p().extend(D()),p().extend(_());const A=p(),R=A.tz.guess();let L,C;"undefined"!=typeof navigator&&(L=navigator.language||navigator.browserLanguage),L=L||"zh-CN",C=R||"Asia/Shanghai",h("sumor",{width:0,height:0,language:L,timezone:C,dark:!1,iconFont:"https://icon.sumor.com/group",device:{overflow:!1},meta:{name:null,api:{},text:{},instance:{}},token:{id:null,user:null,time:null,permission:{},data:{}}}),h("internal",{messageId:0,messages:[]});try{const t=window.matchMedia("(prefers-color-scheme: dark)").matches;h("sumor.dark",t),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(t=>{t.matches?h("sumor.dark",!0):h("sumor.dark",!1)}))}catch(t){console.log("浏览器不支持暗黑模式")}const j=t,k={set:h,store:j};function N(t,e){return function(){return t.apply(e,arguments)}}const{toString:P}=Object.prototype,{getPrototypeOf:U}=Object,Y=(t=>e=>{const n=P.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=t=>(t=t.toLowerCase(),e=>Y(e)===t),B=t=>e=>typeof e===t,{isArray:z}=Array,H=B("undefined"),I=F("ArrayBuffer"),q=B("string"),J=B("function"),W=B("number"),V=t=>null!==t&&"object"==typeof t,X=t=>{if("object"!==Y(t))return!1;const e=U(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},K=F("Date"),Z=F("File"),G=F("Blob"),Q=F("FileList"),tt=F("URLSearchParams");function et(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),z(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let s;for(r=0;r<i;r++)s=o[r],e.call(null,t[s],s,t)}}function nt(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,o=n.length;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const rt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ot=t=>!H(t)&&t!==rt,it=(st="undefined"!=typeof Uint8Array&&U(Uint8Array),t=>st&&t instanceof st);var st;const at=F("HTMLFormElement"),ut=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ct=F("RegExp"),lt=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};et(n,((n,o)=>{!1!==e(n,o,t)&&(r[o]=n)})),Object.defineProperties(t,r)},ft="abcdefghijklmnopqrstuvwxyz",dt="0123456789",ht={DIGIT:dt,ALPHA:ft,ALPHA_DIGIT:ft+ft.toUpperCase()+dt},mt=F("AsyncFunction"),pt={isArray:z,isArrayBuffer:I,isBuffer:function(t){return null!==t&&!H(t)&&null!==t.constructor&&!H(t.constructor)&&J(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||J(t.append)&&("formdata"===(e=Y(t))||"object"===e&&J(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&I(t.buffer),e},isString:q,isNumber:W,isBoolean:t=>!0===t||!1===t,isObject:V,isPlainObject:X,isUndefined:H,isDate:K,isFile:Z,isBlob:G,isRegExp:ct,isFunction:J,isStream:t=>V(t)&&J(t.pipe),isURLSearchParams:tt,isTypedArray:it,isFileList:Q,forEach:et,merge:function t(){const{caseless:e}=ot(this)&&this||{},n={},r=(r,o)=>{const i=e&&nt(n,o)||o;X(n[i])&&X(r)?n[i]=t(n[i],r):X(r)?n[i]=t({},r):z(r)?n[i]=r.slice():n[i]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&et(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(et(e,((e,r)=>{n&&J(e)?t[r]=N(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,s;const a={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],r&&!r(s,t,e)||a[s]||(e[s]=t[s],a[s]=!0);t=!1!==n&&U(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:Y,kindOfTest:F,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(z(t))return t;let e=t.length;if(!W(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:at,hasOwnProperty:ut,hasOwnProp:ut,reduceDescriptors:lt,freezeMethods:t=>{lt(t,((e,n)=>{if(J(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];J(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return z(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:nt,global:rt,isContextDefined:ot,ALPHABET:ht,generateString:(t=16,e=ht.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&J(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(V(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const o=z(t)?[]:{};return et(t,((t,e)=>{const i=n(t,r+1);!H(i)&&(o[e]=i)})),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:mt,isThenable:t=>t&&(V(t)||J(t))&&J(t.then)&&J(t.catch)};function yt(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}pt.inherits(yt,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:pt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gt=yt.prototype,wt={};["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((t=>{wt[t]={value:t}})),Object.defineProperties(yt,wt),Object.defineProperty(gt,"isAxiosError",{value:!0}),yt.from=(t,e,n,r,o,i)=>{const s=Object.create(gt);return pt.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),yt.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const vt=yt;function bt(t){return pt.isPlainObject(t)||pt.isArray(t)}function Ot(t){return pt.endsWith(t,"[]")?t.slice(0,-2):t}function St(t,e,n){return t?t.concat(e).map((function(t,e){return t=Ot(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const Et=pt.toFlatObject(pt,{},null,(function(t){return/^is[A-Z]/.test(t)})),$t=function(t,e,n){if(!pt.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=pt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!pt.isUndefined(e[t])}))).metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&pt.isSpecCompliantForm(e);if(!pt.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(pt.isDate(t))return t.toISOString();if(!a&&pt.isBlob(t))throw new vt("Blob is not supported. Use a Buffer instead.");return pt.isArrayBuffer(t)||pt.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,n,o){let a=t;if(t&&!o&&"object"==typeof t)if(pt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(pt.isArray(t)&&function(t){return pt.isArray(t)&&!t.some(bt)}(t)||(pt.isFileList(t)||pt.endsWith(n,"[]"))&&(a=pt.toArray(t)))return n=Ot(n),a.forEach((function(t,r){!pt.isUndefined(t)&&null!==t&&e.append(!0===s?St([n],r,i):null===s?n:n+"[]",u(t))})),!1;return!!bt(t)||(e.append(St(o,n,i),u(t)),!1)}const l=[],f=Object.assign(Et,{defaultVisitor:c,convertValue:u,isVisitable:bt});if(!pt.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!pt.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),pt.forEach(n,(function(n,i){!0===(!(pt.isUndefined(n)||null===n)&&o.call(e,n,pt.isString(i)?i.trim():i,r,f))&&t(n,r?r.concat(i):[i])})),l.pop()}}(t),e};function xt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Tt(t,e){this._pairs=[],t&&$t(t,this,e)}const Dt=Tt.prototype;Dt.append=function(t,e){this._pairs.push([t,e])},Dt.toString=function(t){const e=t?function(e){return t.call(this,e,xt)}:xt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const Mt=Tt;function _t(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function At(t,e,n){if(!e)return t;const r=n&&n.encode||_t,o=n&&n.serialize;let i;if(i=o?o(e,n):pt.isURLSearchParams(e)?e.toString():new Mt(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}const Rt=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){pt.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},Lt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ct={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Mt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},jt=function(t){function e(t,n,r,o){let i=t[o++];const s=Number.isFinite(+i),a=o>=t.length;return i=!i&&pt.isArray(r)?r.length:i,a?(pt.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&pt.isObject(r[i])||(r[i]=[]),e(t,n,r[i],o)&&pt.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}(r[i])),!s)}if(pt.isFormData(t)&&pt.isFunction(t.entries)){const n={};return pt.forEachEntry(t,((t,r)=>{e(function(t){return pt.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null},kt={"Content-Type":void 0},Nt={transitional:Lt,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=pt.isObject(t);if(o&&pt.isHTMLForm(t)&&(t=new FormData(t)),pt.isFormData(t))return r&&r?JSON.stringify(jt(t)):t;if(pt.isArrayBuffer(t)||pt.isBuffer(t)||pt.isStream(t)||pt.isFile(t)||pt.isBlob(t))return t;if(pt.isArrayBufferView(t))return t.buffer;if(pt.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return $t(t,new Ct.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return Ct.isNode&&pt.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=pt.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return $t(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(pt.isString(t))try{return(0,JSON.parse)(t),pt.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Nt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&pt.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw vt.from(t,vt.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ct.classes.FormData,Blob:Ct.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};pt.forEach(["delete","get","head"],(function(t){Nt.headers[t]={}})),pt.forEach(["post","put","patch"],(function(t){Nt.headers[t]=pt.merge(kt)}));const Pt=Nt,Ut=pt.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"]),Yt=Symbol("internals");function Ft(t){return t&&String(t).trim().toLowerCase()}function Bt(t){return!1===t||null==t?t:pt.isArray(t)?t.map(Bt):String(t)}function zt(t,e,n,r,o){return pt.isFunction(r)?r.call(this,e,n):(o&&(e=n),pt.isString(e)?pt.isString(r)?-1!==e.indexOf(r):pt.isRegExp(r)?r.test(e):void 0:void 0)}class Ht{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=Ft(e);if(!o)throw new Error("header name must be a non-empty string");const i=pt.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=Bt(t))}const i=(t,e)=>pt.forEach(t,((t,n)=>o(t,n,e)));return pt.isPlainObject(t)||t instanceof this.constructor?i(t,e):pt.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&Ut[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&o(e,t,n),this}get(t,e){if(t=Ft(t)){const n=pt.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(pt.isFunction(e))return e.call(this,t,n);if(pt.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Ft(t)){const n=pt.findKey(this,t);return!(!n||void 0===this[n]||e&&!zt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=Ft(t)){const o=pt.findKey(n,t);!o||e&&!zt(0,n[o],o,e)||(delete n[o],r=!0)}}return pt.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!zt(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return pt.forEach(this,((r,o)=>{const i=pt.findKey(n,o);if(i)return e[i]=Bt(r),void delete e[o];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete e[o],e[s]=Bt(r),n[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return pt.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&pt.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[Yt]=this[Yt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=Ft(t);e[r]||(function(t,e){const n=pt.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})}))}(n,t),e[r]=!0)}return pt.isArray(t)?t.forEach(r):r(t),this}}Ht.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pt.freezeMethods(Ht.prototype),pt.freezeMethods(Ht);const It=Ht;function qt(t,e){const n=this||Pt,r=e||n,o=It.from(r.headers);let i=r.data;return pt.forEach(t,(function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function Jt(t){return!(!t||!t.__CANCEL__)}function Wt(t,e,n){vt.call(this,null==t?"canceled":t,vt.ERR_CANCELED,e,n),this.name="CanceledError"}pt.inherits(Wt,vt,{__CANCEL__:!0});const Vt=Wt,Xt=Ct.isStandardBrowserEnv?{write:function(t,e,n,r,o,i){const s=[];s.push(t+"="+encodeURIComponent(e)),pt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),pt.isString(r)&&s.push("path="+r),pt.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Kt(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Zt=Ct.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=pt.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function Gt(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,s=0;return e=void 0!==e?e:1e3,function(a){const u=Date.now(),c=r[s];o||(o=u),n[i]=a,r[i]=u;let l=s,f=0;for(;l!==i;)f+=n[l++],l%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),u-o<e)return;const d=c&&u-c;return d?Math.round(1e3*f/d):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,u=r(a);n=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&i<=s?(s-i)/u:void 0,event:o};c[e?"download":"upload"]=!0,t(c)}}const Qt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const o=It.from(t.headers).normalize(),i=t.responseType;let s;function a(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}pt.isFormData(r)&&(Ct.isStandardBrowserEnv||Ct.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+n))}const c=Kt(t.baseURL,t.url);function l(){if(!u)return;const r=It.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new vt("Request failed with status code "+n.status,[vt.ERR_BAD_REQUEST,vt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),a()}),(function(t){n(t),a()}),{data:i&&"text"!==i&&"json"!==i?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:t,request:u}),u=null}if(u.open(t.method.toUpperCase(),At(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n(new vt("Request aborted",vt.ECONNABORTED,t,u)),u=null)},u.onerror=function(){n(new vt("Network Error",vt.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||Lt;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new vt(e,r.clarifyTimeoutError?vt.ETIMEDOUT:vt.ECONNABORTED,t,u)),u=null},Ct.isStandardBrowserEnv){const e=(t.withCredentials||Zt(c))&&t.xsrfCookieName&&Xt.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&pt.forEach(o.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),pt.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),i&&"json"!==i&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",Gt(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Gt(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=e=>{u&&(n(!e||e.type?new Vt(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(c);f&&-1===Ct.protocols.indexOf(f)?n(new vt("Unsupported protocol "+f+":",vt.ERR_BAD_REQUEST,t)):u.send(r||null)}))}};pt.forEach(Qt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));function te(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Vt(null,t)}function ee(t){return te(t),t.headers=It.from(t.headers),t.data=qt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),(t=>{t=pt.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let o=0;o<e&&(n=t[o],!(r=pt.isString(n)?Qt[n.toLowerCase()]:n));o++);if(!r){if(!1===r)throw new vt(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(pt.hasOwnProp(Qt,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!pt.isFunction(r))throw new TypeError("adapter is not a function");return r})(t.adapter||Pt.adapter)(t).then((function(e){return te(t),e.data=qt.call(t,t.transformResponse,e),e.headers=It.from(e.headers),e}),(function(e){return Jt(e)||(te(t),e&&e.response&&(e.response.data=qt.call(t,t.transformResponse,e.response),e.response.headers=It.from(e.response.headers))),Promise.reject(e)}))}const ne=t=>t instanceof It?t.toJSON():t;function re(t,e){e=e||{};const n={};function r(t,e,n){return pt.isPlainObject(t)&&pt.isPlainObject(e)?pt.merge.call({caseless:n},t,e):pt.isPlainObject(e)?pt.merge({},e):pt.isArray(e)?e.slice():e}function o(t,e,n){return pt.isUndefined(e)?pt.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function i(t,e){if(!pt.isUndefined(e))return r(void 0,e)}function s(t,e){return pt.isUndefined(e)?pt.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function a(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials: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:a,headers:(t,e)=>o(ne(t),ne(e),!0)};return pt.forEach(Object.keys(Object.assign({},t,e)),(function(r){const i=u[r]||o,s=i(t[r],e[r],r);pt.isUndefined(s)&&i!==a||(n[r]=s)})),n}const oe={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{oe[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const ie={};oe.transitional=function(t,e,n){function r(t,e){return"[Axios v1.4.0] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new vt(r(o," has been removed"+(e?" in "+e:"")),vt.ERR_DEPRECATED);return e&&!ie[o]&&(ie[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}};const se={assertOptions:function(t,e,n){if("object"!=typeof t)throw new vt("options must be an object",vt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const e=t[i],n=void 0===e||s(e,i,t);if(!0!==n)throw new vt("option "+i+" must be "+n,vt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new vt("Unknown option "+i,vt.ERR_BAD_OPTION)}},validators:oe},ae=se.validators;class ue{constructor(t){this.defaults=t,this.interceptors={request:new Rt,response:new Rt}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=re(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;let i;void 0!==n&&se.assertOptions(n,{silentJSONParsing:ae.transitional(ae.boolean),forcedJSONParsing:ae.transitional(ae.boolean),clarifyTimeoutError:ae.transitional(ae.boolean)},!1),null!=r&&(pt.isFunction(r)?e.paramsSerializer={serialize:r}:se.assertOptions(r,{encode:ae.function,serialize:ae.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase(),i=o&&pt.merge(o.common,o[e.method]),i&&pt.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=It.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)}));let l,f=0;if(!a){const t=[ee.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,u),l=t.length,c=Promise.resolve(e);f<l;)c=c.then(t[f++],t[f++]);return c}l=s.length;let d=e;for(f=0;f<l;){const t=s[f++],e=s[f++];try{d=t(d)}catch(t){e.call(this,t);break}}try{c=ee.call(this,d)}catch(t){return Promise.reject(t)}for(f=0,l=u.length;f<l;)c=c.then(u[f++],u[f++]);return c}getUri(t){return At(Kt((t=re(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}pt.forEach(["delete","get","head","options"],(function(t){ue.prototype[t]=function(e,n){return this.request(re(n||{},{method:t,url:e,data:(n||{}).data}))}})),pt.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,o){return this.request(re(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ue.prototype[t]=e(),ue.prototype[t+"Form"]=e(!0)}));const ce=ue;class le{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,o){n.reason||(n.reason=new Vt(t,r,o),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new le((function(e){t=e})),cancel:t}}}const fe=le,de={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(de).forEach((([t,e])=>{de[e]=t}));const he=de,me=function t(e){const n=new ce(e),r=N(ce.prototype.request,n);return pt.extend(r,ce.prototype,n,{allOwnKeys:!0}),pt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(re(e,n))},r}(Pt);me.Axios=ce,me.CanceledError=Vt,me.CancelToken=fe,me.isCancel=Jt,me.VERSION="1.4.0",me.toFormData=$t,me.AxiosError=vt,me.Cancel=me.CanceledError,me.all=function(t){return Promise.all(t)},me.spread=function(t){return function(e){return t.apply(null,e)}},me.isAxiosError=function(t){return pt.isObject(t)&&!0===t.isAxiosError},me.mergeConfig=re,me.AxiosHeaders=It,me.formToJSON=t=>jt(pt.isHTMLForm(t)?new FormData(t):t),me.HttpStatusCode=he,me.default=me;const pe=me,ye=async(t,e,n)=>{n=n||{};let r,o=!1;for(let t in e)e[t]instanceof File&&(o=!0);if(o){r=new FormData;for(let t in e)"object"!=typeof e[t]||e[t]instanceof File||(e[t]=JSON.stringify(e[t])),r.append(t,e[t])}else r=e;try{return(await pe({method:"POST",url:t,data:r,headers:{"Content-Type":o?"multipart/form-data":"application/json;charset=utf-8","Accept-Language":n.language?n.language:void 0,"sumor-timezone":n.timezone?n.timezone:void 0}})).data}catch(t){return{error:!0,...t.response.data}}},ge=async(t,e)=>{let n;const r=async(t,e)=>{const n={};return n.language=j.sumor.language,n.timezone=j.sumor.timezone,await ye(t,e,n)};switch(t){case"meta":j.sumor.meta.name&&!e||(n=await r("/sumor/meta"),Object.assign(j.sumor.meta,n.data));break;case"token":n=await r("/sumor/token"),Object.assign(j.sumor.token,n.data),j.sumor.token.id=n.data.id||null,j.sumor.token.user=n.data.user||null,j.sumor.token.time=n.data.time||null,j.sumor.token.permission=n.data.permission||{},j.sumor.token.data=n.data.data||{}}},we=async(t,e)=>{await ge("meta");const n={};return n.language=j.sumor.language,n.timezone=j.sumor.timezone,await ye(t,e,n)},ve=async(t,e)=>{await ge("meta");const{origin:n,path:r}=(t=>{let e="",n=t;if(0===t.indexOf("http")){const r=t.split("/");e=r.slice(0,3).join("/"),n=r.slice(3,r.length).join("/")}return 0!==n.indexOf("/")&&(n="/"+n),{origin:e,path:n}})(e),o=j.sumor.meta.api,i=[];for(let t in o)if(0===t.indexOf(r)){const e=t.replace(r,"").split("/");if(2===e.length){const r=e[1];i.push({path:t,key:r,meta:o[t],action:async e=>await we(n+t,e)})}}((t,e,n)=>{n=n||{};let r=k.set(`${t}Model`,{data:[],selected:[],count:0,currentPage:0,maxPage:0,busy:{}});const o={action:{},meta:{}};sumor.model[t]=o;const i={};let s,a,u={};for(let t of e)r.busy[t.key]=!1,o.meta[t.key]=t.meta,i[t.key]=async e=>{r.busy[t.key]=!0;const n=await t.action(e);if(r.busy[t.key]=!1,n.error)throw n;return n.data},"query"===t.key?s=i[t.key]:"read"===t.key?a=i[t.key]:u[t.key]=i[t.key];let c={},l="",f=n.top||100,d=n.skip||0;const h=()=>Math.floor(d/f)+1;o.select=t=>{for(let e of r.data)r.selected=r.selected.filter((t=>t.id!==e.id)),t.indexOf(e.id)>=0&&r.selected.push(e)},o.refresh=async t=>{t&&t.top&&(f=t.top,delete t.top),t&&JSON.stringify(t)!==JSON.stringify(c)&&(c=t,d=0,r.selected=[]);const e=await s({...c,top:f,skip:d,sort:l});r.count=e.count,r.maxPage=Math.floor(r.count/f)+1,r.currentPage=Math.floor(d/f)+1,r.data=e.data,(()=>{const t=r.selected.map((t=>t.id));for(let e of r.data)r.selected=r.selected.filter((t=>t.id!==e.id)),t.indexOf(e.id)>=0&&r.selected.push(e)})()},o.sort=async t=>{l=t,await o.refresh()},o.goto=async t=>{t>0&&t<=r.maxPage&&(d=(t-1)*f,await o.refresh())},o.previous=async()=>{const t=h()-1;await o.goto(t)},o.next=async()=>{const t=h()+1;await o.goto(t)};for(let t in u)o.action[t]=async e=>{const n=await u[t](e);return await o.refresh(),n};o.read=async t=>{const e=await a(t),n=r.data.filter((e=>e.id===t.id))[0];return n&&Object.assign(n,e),e},o.resize=async t=>{f=t,await o.refresh()}})(t,i)},be={now:()=>Date.now(),timezone:R,parse:t=>{const e=A(t);return{year:e.year(),month:e.month()+1,date:e.date(),hour:e.hour(),minute:e.minute(),second:e.second(),weekday:e.day()+1,yearday:e.dayOfYear(),week:e.week(),quarter:e.quarter()}},format:(t,e,n)=>A(t).tz(n||j.sumor.timezone).locale(j.sumor.language.toLowerCase()).format(e),timeTo:(t,e)=>(e=e||Date.now(),A(e).locale(j.sumor.language.toLowerCase()).to(A(t)))},Oe={css(t){const e=document.head.children;let n=!1;for(const r in e)"LINK"===e[r].tagName&&e[r].href===t&&(n=!0);if(!n){const e=document.getElementsByTagName("head")[0],n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=t,e.appendChild(n)}},async js(t){const e=document.head.children;let n=!1;for(const r in e)"SCRIPT"===e[r].tagName&&e[r].src===t&&(n=!0);n||await new Promise((e=>{const n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.src=t,r.type="text/javascript",r.addEventListener?r.addEventListener("load",(function(){e()}),!1):r.attachEvent&&r.attachEvent("onreadystatechange",(function(){"loaded"===window.event.srcElement.readyState&&e()})),n.appendChild(r)}))}};let Se="https://library.sumor.com/xlsx/0.16.0/xlsx.full.min.js";const Ee={model:{},form:t=>new class{constructor(){this.pending=!1,this.data={}}async call(e){e=Object.assign({},this.data,e),this.pending=!0;const n=await we(t,e);if(this.pending=!1,n.error)throw n;return n.data}},call:we,init:async t=>{await ge("meta"),f.set(t);for(let t in k.store)k.set(t,k.store[t])},update:ge,registerModel:async t=>{if(t)for(let e in t)await ve(e,t[e])},logout:async()=>{await we("/sumor/logout"),await ge("token")},range:async t=>{const e=await we("/sumor/range",{name:t});if(e.error)throw e;{const t=e.data;let n=[];if("string"==typeof t){const e=t.split("\n");for(let t of e){const e=t.split("=");if(e.length>1){const t=e[1].split("|");n.push({key:e[0],text:t[0],text1:t[1],text2:t[2]})}}}else n=t;return n.sort(((t,e)=>t.key>e.key?1:-1)),n}},time:be,table:{async import(t){await Oe.js(Se);let e=await new Promise((e=>{const n=new FileReader;n.readAsArrayBuffer(t),n.onload=()=>{const t=window.XLSX.read(n.result,{type:"array"});e(t)}}));const n=e.Props.SheetNames[0],r=e.Sheets[n];return window.XLSX.utils.sheet_to_json(r)},async export({name:t,type:e,data:n}){await Oe.js(Se);let r=window.XLSX.utils.aoa_to_sheet(n),o=window.XLSX.utils.book_new();window.XLSX.utils.book_append_sheet(o,r,"default");let i=`${t=t||"export"}.${e=e||"xlsx"}`;return window.XLSX.writeFile(o,i)}},qrcode:async t=>(await Oe.js("https://library.sumor.com/qrcode/qrcode.min.js"),await new Promise((e=>{window.QRCode.toDataURL(t,((t,n)=>{e(n)}))}))),copy:async t=>{if(navigator.clipboard&&navigator.permissions)await navigator.clipboard.writeText(t);else{const e=document.createElement("textArea");e.value=t,e.style.width=0,e.style.position="fixed",e.style.left="-999px",e.style.top="10px",e.setAttribute("readonly","readonly"),document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}},upload:async function(t){return await new Promise((e=>{const n=document.createElement("input");n.type="file",n.name="file",t&&(n.multiple="multiple"),n.addEventListener("change",(function(n){e(t?n.target.files:n.target.files[0])})),n.value="",n.click()}))},load:Oe,...k}})(),r.default})()));