8 lines
245 KiB
JavaScript
Raw Normal View History

2025-02-06 12:20:22 +08:00
function Zr(e,t){const n=Object.create(null),s=e.split(",");for(let o=0;o<s.length;o++)n[s[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const Re={},xn=[],pt=()=>{},Lf=()=>!1,Pf=/^on[^a-z]/,ys=e=>Pf.test(e),$r=e=>e.startsWith("onUpdate:"),Ue=Object.assign,ei=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Mf=Object.prototype.hasOwnProperty,ye=(e,t)=>Mf.call(e,t),le=Array.isArray,Sn=e=>ho(e)==="[object Map]",Ba=e=>ho(e)==="[object Set]",ce=e=>typeof e=="function",Be=e=>typeof e=="string",Ao=e=>typeof e=="symbol",Se=e=>e!==null&&typeof e=="object",Ia=e=>(Se(e)||ce(e))&&ce(e.then)&&ce(e.catch),Oa=Object.prototype.toString,ho=e=>Oa.call(e),Nf=e=>ho(e).slice(8,-1),La=e=>ho(e)==="[object Object]",ti=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rs=Zr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),po=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hf=/-(\w)/g,Et=po(e=>e.replace(Hf,(t,n)=>n?n.toUpperCase():"")),Uf=/\B([A-Z])/g,vn=po(e=>e.replace(Uf,"-$1").toLowerCase()),go=po(e=>e.charAt(0).toUpperCase()+e.slice(1)),sr=po(e=>e?`on${go(e)}`:""),mn=(e,t)=>!Object.is(e,t),Qs=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Gs=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Cr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Pa=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let al;const _r=()=>al||(al=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function it(e){if(le(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=Be(s)?Qf(s):it(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(Be(e)||Se(e))return e}const Df=/;(?![^(]*\))/g,Ff=/:([^]+)/,jf=/\/\*[^]*?\*\//g;function Qf(e){const t={};return e.replace(jf,"").split(Df).forEach(n=>{if(n){const s=n.split(Ff);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Oe(e){let t="";if(Be(e))t=e;else if(le(e))for(let n=0;n<e.length;n++){const s=Oe(e[n]);s&&(t+=s+" ")}else if(Se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function qf(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Be(t)&&(e.class=Oe(t)),n&&(e.style=it(n)),e}const Kf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Yf=Zr(Kf);function Ma(e){return!!e||e===""}const Z=e=>Be(e)?e:e==null?"":le(e)||Se(e)&&(e.toString===Oa||!ce(e.toString))?JSON.stringify(e,Na,2):String(e),Na=(e,t)=>t&&t.__v_isRef?Na(e,t.value):Sn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:Ba(t)?{[`Set(${t.size})`]:[...t.values()]}:Se(t)&&!le(t)&&!La(t)?String(t):t;let At;class Ha{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=At,!t&&At&&(this.index=(At.scopes||(At.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=At;try{return At=this,t()}finally{At=n}}}on(){At=this}off(){At=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Jf(e){return new Ha(e)}function Wf(e,t=At){t&&t.active&&t.effects.push(e)}function zf(){return At}const ni=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ua=e=>(e.w&Vt)>0,Da=e=>(e.n&Vt)>0,Vf=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Vt},Gf=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const o=t[s];Ua(o)&&!Da(o)?o.delete(e):t[n++]=o,o.w&=~Vt,o.n&=~Vt}t.length=n}},Xs=new WeakMap;let ss=0,Vt=1;const Er=30;let ht;const pn=Symbol(""),kr=Symbol("");class si{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Wf(this,s)}run(){if(!this.active)return this.fn();let t=ht,n=Wt;for(;t;){if(t===this)return;t=t.parent}try{return
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),s=i.substring(o+1).trim(),!(!n||t[n]&&$v[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},wa=Symbol("internals");function ns(e){return e&&String(e).trim().toLowerCase()}function zs(e){return e===!1||e==null?e:S.isArray(e)?e.map(zs):String(e)}function t0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const n0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function vr(e,t,n,s,o){if(S.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!S.isString(t)){if(S.isString(s))return t.indexOf(s)!==-1;if(S.isRegExp(s))return s.test(t)}}function s0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function o0(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(o,r,i){return this[s].call(this,t,o,r,i)},configurable:!0})})}class Io{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function r(a,c,f){const u=ns(c);if(!u)throw new Error("header name must be a non-empty string");const l=S.findKey(o,u);(!l||o[l]===void 0||f===!0||f===void 0&&o[l]!==!1)&&(o[l||c]=zs(a))}const i=(a,c)=>S.forEach(a,(f,u)=>r(f,u,c));return S.isPlainObject(t)||t instanceof this.constructor?i(t,n):S.isString(t)&&(t=t.trim())&&!n0(t)?i(e0(t),n):t!=null&&r(n,t,s),this}get(t,n){if(t=ns(t),t){const s=S.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return t0(o);if(S.isFunction(n))return n.call(this,o,s);if(S.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ns(t),t){const s=S.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||vr(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function r(i){if(i=ns(i),i){const a=S.findKey(s,i);a&&(!n||vr(s,s[a],a,n))&&(delete s[a],o=!0)}}return S.isArray(t)?t.forEach(r):r(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const r=n[s];(!t||vr(this,this[r],r,t,!0))&&(delete this[r],o=!0)}return o}normalize(t){const n=this,s={};return S.forEach(this,(o,r)=>{const i=S.findKey(s,r);if(i){n[i]=zs(o),delete n[r];return}const a=t?s0(r):String(r).trim();a!==r&&delete n[r],n[a]=zs(o),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&S.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[wa]=this[wa]={accessors:{}}).accessors,o=this.prototype;function r(i){const a=ns(i);s[a]||(o0(o,i),s[a]=!0)}return S.isArray(t)?t.forEach(r):r(t),this}}Io.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Io.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});S.freezeMethods(Io);const Lt=Io;function wr(e,t){const n=this||Mi,s=t||n,o=Lt.from(s.headers);let r=s.data;return S.forEach(e,function(a){r=a.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function Uu(e){return!!(e&&e.__CANCEL__)}function _s(e,t,n){ge.call(this,e??"canceled",ge.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(_s,ge,{__CANCEL__:!0});function r0(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ge("Request failed with status code "+n.status,[ge.ERR_BAD_REQUEST,ge.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const i0=_t.hasStandardBrowserEnv?{write(e,t,n,s,o,r){const i=[e+"="+encodeURIComponent(t)];S.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),S.isString(s)&&i.push("path="+s),S.isString(o)&&i.push("domain="+o),r===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function l0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function a0(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Du(e,t){return e&&!l0(t)?a0(e,t):t}const c0=_t.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function o(r){let i=r;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=o(window.location.href),function(i){const a=S.isString(i)?o(i):i;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function u0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function f0(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,r=0,i;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),u=s[r];i||(i=f),n[o]=c,s[o]=f;let l=r,p=0;for(;l!==o;)p+=n[l++],l=l%e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),f-i<t)return;const y=u&&f-u;return y?Math.round(p*1e3/y):void 0}}function ba(e,t){let n=0;const s=f0(50,250);return o=>{const r=o.loaded,i=o.lengthComputable?o.total:void 0,a=r-n,c=s(a),f=r<=i;n=r;const u={loaded:r,total:i,progress:i?r/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&f?(i-r)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const d0=typeof XMLHttpRequest<"u",A0=d0&&function(e){return new Promise(function(n,s){let o=e.data;const r=Lt.from(e.headers).normalize();let{responseType:i,withXSRFToken:a}=e,c;function f(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let u;if(S.isFormData(o)){if(_t.hasStandardBrowserEnv||_t.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((u=r.getContentType())!==!1){const[C,...E]=u?u.split(";").map(ee=>ee.trim()).filter(Boolean):[];r.setContentType([C||"multipart/form-data",...E].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const C=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(C+":"+E))}const p=Du(e.baseURL,e.url);l.open(e.method.toUpperCase(),Pu(p,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function y(){if(!l)return;const C=Lt.from("getAllResponseHeaders"in l&&l.getAllResponseH
`+r.map(Ca).join(`
`):" "+Ca(r[0]):"as no adapter specified";throw new ge("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:Vr};function br(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _s(null,e)}function _a(e){return br(e),e.headers=Lt.from(e.headers),e.data=wr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Fu.getAdapter(e.adapter||Mi.adapter)(e).then(function(s){return br(e),s.data=wr.call(e,e.transformResponse,s),s.headers=Lt.from(s.headers),s},function(s){return Uu(s)||(br(e),s&&s.response&&(s.response.data=wr.call(e,e.transformResponse,s.response),s.response.headers=Lt.from(s.response.headers))),Promise.reject(s)})}const Ea=e=>e instanceof Lt?e.toJSON():e;function Fn(e,t){t=t||{};const n={};function s(f,u,l){return S.isPlainObject(f)&&S.isPlainObject(u)?S.merge.call({caseless:l},f,u):S.isPlainObject(u)?S.merge({},u):S.isArray(u)?u.slice():u}function o(f,u,l){if(S.isUndefined(u)){if(!S.isUndefined(f))return s(void 0,f,l)}else return s(f,u,l)}function r(f,u){if(!S.isUndefined(u))return s(void 0,u)}function i(f,u){if(S.isUndefined(u)){if(!S.isUndefined(f))return s(void 0,f)}else return s(void 0,u)}function a(f,u,l){if(l in t)return s(f,u);if(l in e)return s(void 0,f)}const c={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(f,u)=>o(Ea(f),Ea(u),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(u){const l=c[u]||o,p=l(e[u],t[u],u);S.isUndefined(p)&&l!==a||(n[u]=p)}),n}const ju="1.6.2",Ni={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ni[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ka={};Ni.transitional=function(t,n,s){function o(r,i){return"[Axios v"+ju+"] Transitional option '"+r+"'"+i+(s?". "+s:"")}return(r,i,a)=>{if(t===!1)throw new ge(o(i," has been removed"+(n?" in "+n:"")),ge.ERR_DEPRECATED);return n&&!ka[i]&&(ka[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,i,a):!0}};function p0(e,t,n){if(typeof e!="object")throw new ge("options must be an object",ge.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const r=s[o],i=t[r];if(i){const a=e[r],c=a===void 0||i(a,r,e);if(c!==!0)throw new ge("option "+r+" must be "+c,ge.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ge("Unknown option "+r,ge.ERR_BAD_OPTION)}}const Gr={assertOptions:p0,validators:Ni},qt=Gr.validators;class fo{constructor(t){this.defaults=t,this.interceptors={request:new va,response:new va}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fn(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:r}=n;s!==void 0&&Gr.assertOptions(s,{silentJSONParsing:qt.transitional(qt.boolean),forcedJSONParsing:qt.transitional(qt.boolean),clarifyTimeoutError:qt.transitional(qt.boolean)},!1),o!=null&&(S.isFunction(o)?n.paramsSerializer={serialize:o}:Gr.assertOptions(o,{encode:qt.function,serialize:qt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=r&&S.merge(r.common,r[n.method]);r&&S.forEach(["delete","get","head","post","put","patch","common"],w=>{delete r[w]}),n.headers=Lt.concat(i,r);const a=[];let c=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(n)===!1||(c=c&&C.synchronous,a.unshift(C.fulfilled,C.rejected))});const f=[];this.interceptors.response.forEach(function(C){f.push(C.fulfilled,C.rejected)});let u,l=0,p;if(!c){const w=[_a.bind(this),void 0];for(w.unshift.apply(w,a),w.push.apply(w,f),p=w.length,u=Promise.resolve(n);l<p;)u=u.then(w[l++],w[l++]);return u}p=a.length;let y=n;for(l=0;l<p;
`).splice(1).map(l=>({text:l.replace("webpack:/","").replace(".vue",".js").trim(),internal:l.includes("node_modules")&&!l.includes(".cache")||l.includes("internal")||l.includes("new Promise")})).map(l=>`<span class="stack${l.internal?" internal":""}">${l.text}</span>`).join(`
`);const s=Number(n.statusCode||500),o=s===404,r=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,u=o?Cl(()=>na(()=>import("./error-404.ca0054a0.js"),["./error-404.ca0054a0.js","./error-404.7fc72018.css"],import.meta.url).then(l=>l.default||l)):Cl(()=>na(()=>import("./error-500.8af0f07c.js"),["./error-500.8af0f07c.js","./error-500.c5df6088.css"],import.meta.url).then(l=>l.default||l));return(l,p)=>(T(),Jt(de(u),qf(Lc({statusCode:de(s),statusMessage:de(r),description:de(i),stack:de(a)})),null,16))}},AC=dC,hC={__name:"nuxt-root",setup(e){const t=()=>null,n=De(),s=n.deferHydration(),o=!1;Ve(du,Si()),n.hooks.callHookWith(a=>a.map(c=>c()),"vue:setup");const r=xi();yc((a,c,f)=>{if(n.hooks.callHook("vue:error",a,c,f).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),wg(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>yg(a)),!1});const i=!1;return(a,c)=>(T(),Jt(Md,{onResolve:de(s)},{default:kn(()=>[de(r)?(T(),Jt(de(AC),{key:0,error:de(r)},null,8,["error"])):de(i)?(T(),Jt(de(t),{key:1,context:de(i)},null,8,["context"])):de(o)?(T(),Jt(Od(de(o)),{key:2})):(T(),Jt(de(fC),{key:3}))]),_:1},8,["onResolve"]))}},Ta=hC;let Ra;{let e;Ra=async function(){var i,a;if(e)return e;const s=!!((i=window.__NUXT__)!=null&&i.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?rh(Ta):oh(Ta),o=cp({vueApp:s});async function r(c){await o.callHook("app:error",c),o.payload.error=o.payload.error||c}s.config.errorHandler=r;try{await fp(o,zg)}catch(c){r(c)}try{await o.hooks.callHook("app:created",s),await o.hooks.callHook("app:beforeMount",s),s.mount(xg),await o.hooks.callHook("app:mounted",s),await dn()}catch(c){r(c)}return s.config.errorHandler===r&&(s.config.errorHandler=void 0),s},e=Ra().catch(t=>{console.error("Error while mounting app:",t)})}export{Ee as A,kn as B,xe as C,gC as D,mC as E,M0 as _,yu as a,da as b,SA as c,vs as d,Ai as e,wC as f,Hc as g,Eo as h,yC as i,Kn as j,Qc as k,Kc as l,ao as m,vC as n,Mn as o,bs as p,De as q,Q as r,Cg as s,ig as t,ko as u,T as v,Dr as w,B as x,d as y,Z as z};