From 93237feb9f7bbbb1ddefb574020730962823c47d Mon Sep 17 00:00:00 2001 From: zhutao <1812073942@qq.com> Date: Fri, 12 Dec 2025 14:08:14 +0800 Subject: [PATCH] 1 --- assets/{index-Deuc4SHh.js => index-sWWoBSJY.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-Deuc4SHh.js => index-sWWoBSJY.js} (99%) diff --git a/assets/index-Deuc4SHh.js b/assets/index-sWWoBSJY.js similarity index 99% rename from assets/index-Deuc4SHh.js rename to assets/index-sWWoBSJY.js index 28aa3af..63931b3 100644 --- a/assets/index-Deuc4SHh.js +++ b/assets/index-sWWoBSJY.js @@ -173,4 +173,4 @@ Error generating stack: `+p.message+` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const o=new this(r);return i.forEach(l=>o.set(l)),o}static accessor(r){const o=(this[_0]=this[_0]={accessors:{}}).accessors,l=this.prototype;function c(u){const d=vs(u);o[d]||(HC(l,u),o[d]=!0)}return L.isArray(r)?r.forEach(c):c(r),this}};Dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(Dt.prototype,({value:t},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>t,set(o){this[i]=o}}});L.freezeMethods(Dt);function Kc(t,r){const i=this||zs,o=r||i,l=Dt.from(o.headers);let c=o.data;return L.forEach(t,function(d){c=d.call(i,c,l.normalize(),r?r.status:void 0)}),l.normalize(),c}function u1(t){return!!(t&&t.__CANCEL__)}function Ri(t,r,i){Se.call(this,t??"canceled",Se.ERR_CANCELED,r,i),this.name="CanceledError"}L.inherits(Ri,Se,{__CANCEL__:!0});function c1(t,r,i){const o=i.config.validateStatus;!i.status||!o||o(i.status)?t(i):r(new Se("Request failed with status code "+i.status,[Se.ERR_BAD_REQUEST,Se.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function WC(t){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}function qC(t,r){t=t||10;const i=new Array(t),o=new Array(t);let l=0,c=0,u;return r=r!==void 0?r:1e3,function(h){const y=Date.now(),m=o[c];u||(u=y),i[l]=h,o[l]=y;let v=c,x=0;for(;v!==l;)x+=i[v++],v=v%t;if(l=(l+1)%t,l===c&&(c=(c+1)%t),y-u{i=m,l=null,c&&(clearTimeout(c),c=null),t(...y)};return[(...y)=>{const m=Date.now(),v=m-i;v>=o?u(y,m):(l=y,c||(c=setTimeout(()=>{c=null,u(l)},o-v)))},()=>l&&u(l)]}const Ra=(t,r,i=3)=>{let o=0;const l=qC(50,250);return KC(c=>{const u=c.loaded,d=c.lengthComputable?c.total:void 0,h=u-o,y=l(h),m=u<=d;o=u;const v={loaded:u,total:d,progress:d?u/d:void 0,bytes:h,rate:y||void 0,estimated:y&&d&&m?(d-u)/y:void 0,event:c,lengthComputable:d!=null,[r?"download":"upload"]:!0};t(v)},i)},O0=(t,r)=>{const i=t!=null;return[o=>r[0]({lengthComputable:i,total:t,loaded:o}),r[1]]},j0=t=>(...r)=>L.asap(()=>t(...r)),GC=gt.hasStandardBrowserEnv?((t,r)=>i=>(i=new URL(i,gt.origin),t.protocol===i.protocol&&t.host===i.host&&(r||t.port===i.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,QC=gt.hasStandardBrowserEnv?{write(t,r,i,o,l,c,u){if(typeof document>"u")return;const d=[`${t}=${encodeURIComponent(r)}`];L.isNumber(i)&&d.push(`expires=${new Date(i).toUTCString()}`),L.isString(o)&&d.push(`path=${o}`),L.isString(l)&&d.push(`domain=${l}`),c===!0&&d.push("secure"),L.isString(u)&&d.push(`SameSite=${u}`),document.cookie=d.join("; ")},read(t){if(typeof document>"u")return null;const r=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return r?decodeURIComponent(r[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function XC(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function YC(t,r){return r?t.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):t}function f1(t,r,i){let o=!XC(r);return t&&(o||i==!1)?YC(t,r):r}const M0=t=>t instanceof Dt?{...t}:t;function Ir(t,r){r=r||{};const i={};function o(y,m,v,x){return L.isPlainObject(y)&&L.isPlainObject(m)?L.merge.call({caseless:x},y,m):L.isPlainObject(m)?L.merge({},m):L.isArray(m)?m.slice():m}function l(y,m,v,x){if(L.isUndefined(m)){if(!L.isUndefined(y))return o(void 0,y,v,x)}else return o(y,m,v,x)}function c(y,m){if(!L.isUndefined(m))return o(void 0,m)}function u(y,m){if(L.isUndefined(m)){if(!L.isUndefined(y))return o(void 0,y)}else return o(void 0,m)}function d(y,m,v){if(v in r)return o(y,m);if(v in t)return o(void 0,y)}const h={url:c,method:c,data:c,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:d,headers:(y,m,v)=>l(M0(y),M0(m),v,!0)};return L.forEach(Object.keys({...t,...r}),function(m){const v=h[m]||l,x=v(t[m],r[m],m);L.isUndefined(x)&&v!==d||(i[m]=x)}),i}const d1=t=>{const r=Ir({},t);let{data:i,withXSRFToken:o,xsrfHeaderName:l,xsrfCookieName:c,headers:u,auth:d}=r;if(r.headers=u=Dt.from(u),r.url=o1(f1(r.baseURL,r.url,r.allowAbsoluteUrls),t.params,t.paramsSerializer),d&&u.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):""))),L.isFormData(i)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(L.isFunction(i.getHeaders)){const h=i.getHeaders(),y=["content-type","content-length"];Object.entries(h).forEach(([m,v])=>{y.includes(m.toLowerCase())&&u.set(m,v)})}}if(gt.hasStandardBrowserEnv&&(o&&L.isFunction(o)&&(o=o(r)),o||o!==!1&&GC(r.url))){const h=l&&c&&QC.read(c);h&&u.set(l,h)}return r},JC=typeof XMLHttpRequest<"u",ZC=JC&&function(t){return new Promise(function(i,o){const l=d1(t);let c=l.data;const u=Dt.from(l.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:y}=l,m,v,x,P,S;function k(){P&&P(),S&&S(),l.cancelToken&&l.cancelToken.unsubscribe(m),l.signal&&l.signal.removeEventListener("abort",m)}let E=new XMLHttpRequest;E.open(l.method.toUpperCase(),l.url,!0),E.timeout=l.timeout;function C(){if(!E)return;const _=Dt.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),V={data:!d||d==="text"||d==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:_,config:t,request:E};c1(function($){i($),k()},function($){o($),k()},V),E=null}"onloadend"in E?E.onloadend=C:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(C)},E.onabort=function(){E&&(o(new Se("Request aborted",Se.ECONNABORTED,t,E)),E=null)},E.onerror=function(b){const V=b&&b.message?b.message:"Network Error",z=new Se(V,Se.ERR_NETWORK,t,E);z.event=b||null,o(z),E=null},E.ontimeout=function(){let b=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const V=l.transitional||a1;l.timeoutErrorMessage&&(b=l.timeoutErrorMessage),o(new Se(b,V.clarifyTimeoutError?Se.ETIMEDOUT:Se.ECONNABORTED,t,E)),E=null},c===void 0&&u.setContentType(null),"setRequestHeader"in E&&L.forEach(u.toJSON(),function(b,V){E.setRequestHeader(V,b)}),L.isUndefined(l.withCredentials)||(E.withCredentials=!!l.withCredentials),d&&d!=="json"&&(E.responseType=l.responseType),y&&([x,S]=Ra(y,!0),E.addEventListener("progress",x)),h&&E.upload&&([v,P]=Ra(h),E.upload.addEventListener("progress",v),E.upload.addEventListener("loadend",P)),(l.cancelToken||l.signal)&&(m=_=>{E&&(o(!_||_.type?new Ri(null,t,E):_),E.abort(),E=null)},l.cancelToken&&l.cancelToken.subscribe(m),l.signal&&(l.signal.aborted?m():l.signal.addEventListener("abort",m)));const F=WC(l.url);if(F&>.protocols.indexOf(F)===-1){o(new Se("Unsupported protocol "+F+":",Se.ERR_BAD_REQUEST,t));return}E.send(c||null)})},eA=(t,r)=>{const{length:i}=t=t?t.filter(Boolean):[];if(r||i){let o=new AbortController,l;const c=function(y){if(!l){l=!0,d();const m=y instanceof Error?y:this.reason;o.abort(m instanceof Se?m:new Ri(m instanceof Error?m.message:m))}};let u=r&&setTimeout(()=>{u=null,c(new Se(`timeout ${r} of ms exceeded`,Se.ETIMEDOUT))},r);const d=()=>{t&&(u&&clearTimeout(u),u=null,t.forEach(y=>{y.unsubscribe?y.unsubscribe(c):y.removeEventListener("abort",c)}),t=null)};t.forEach(y=>y.addEventListener("abort",c));const{signal:h}=o;return h.unsubscribe=()=>L.asap(d),h}},tA=function*(t,r){let i=t.byteLength;if(i{const l=nA(t,r);let c=0,u,d=h=>{u||(u=!0,o&&o(h))};return new ReadableStream({async pull(h){try{const{done:y,value:m}=await l.next();if(y){d(),h.close();return}let v=m.byteLength;if(i){let x=c+=v;i(x)}h.enqueue(new Uint8Array(m))}catch(y){throw d(y),y}},cancel(h){return d(h),l.return()}},{highWaterMark:2})},D0=64*1024,{isFunction:la}=L,iA=(({Request:t,Response:r})=>({Request:t,Response:r}))(L.global),{ReadableStream:I0,TextEncoder:L0}=L.global,V0=(t,...r)=>{try{return!!t(...r)}catch{return!1}},sA=t=>{t=L.merge.call({skipUndefined:!0},iA,t);const{fetch:r,Request:i,Response:o}=t,l=r?la(r):typeof fetch=="function",c=la(i),u=la(o);if(!l)return!1;const d=l&&la(I0),h=l&&(typeof L0=="function"?(S=>k=>S.encode(k))(new L0):async S=>new Uint8Array(await new i(S).arrayBuffer())),y=c&&d&&V0(()=>{let S=!1;const k=new i(gt.origin,{body:new I0,method:"POST",get duplex(){return S=!0,"half"}}).headers.has("Content-Type");return S&&!k}),m=u&&d&&V0(()=>L.isReadableStream(new o("").body)),v={stream:m&&(S=>S.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!v[S]&&(v[S]=(k,E)=>{let C=k&&k[S];if(C)return C.call(k);throw new Se(`Response type '${S}' is not supported`,Se.ERR_NOT_SUPPORT,E)})});const x=async S=>{if(S==null)return 0;if(L.isBlob(S))return S.size;if(L.isSpecCompliantForm(S))return(await new i(gt.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(L.isArrayBufferView(S)||L.isArrayBuffer(S))return S.byteLength;if(L.isURLSearchParams(S)&&(S=S+""),L.isString(S))return(await h(S)).byteLength},P=async(S,k)=>{const E=L.toFiniteNumber(S.getContentLength());return E??x(k)};return async S=>{let{url:k,method:E,data:C,signal:F,cancelToken:_,timeout:b,onDownloadProgress:V,onUploadProgress:z,responseType:$,headers:H,withCredentials:ie="same-origin",fetchOptions:Z}=d1(S),he=r||fetch;$=$?($+"").toLowerCase():"text";let te=eA([F,_&&_.toAbortSignal()],b),Ee=null;const xe=te&&te.unsubscribe&&(()=>{te.unsubscribe()});let Re;try{if(z&&y&&E!=="get"&&E!=="head"&&(Re=await P(H,C))!==0){let R=new i(k,{method:"POST",body:C,duplex:"half"}),U;if(L.isFormData(C)&&(U=R.headers.get("content-type"))&&H.setContentType(U),R.body){const[le,fe]=O0(Re,Ra(j0(z)));C=b0(R.body,D0,le,fe)}}L.isString(ie)||(ie=ie?"include":"omit");const ke=c&&"credentials"in i.prototype,ae={...Z,signal:te,method:E.toUpperCase(),headers:H.normalize().toJSON(),body:C,duplex:"half",credentials:ke?ie:void 0};Ee=c&&new i(k,ae);let B=await(c?he(Ee,Z):he(k,ae));const J=m&&($==="stream"||$==="response");if(m&&(V||J&&xe)){const R={};["status","statusText","headers"].forEach(ge=>{R[ge]=B[ge]});const U=L.toFiniteNumber(B.headers.get("content-length")),[le,fe]=V&&O0(U,Ra(j0(V),!0))||[];B=new o(b0(B.body,D0,le,()=>{fe&&fe(),xe&&xe()}),R)}$=$||"text";let Y=await v[L.findKey(v,$)||"text"](B,S);return!J&&xe&&xe(),await new Promise((R,U)=>{c1(R,U,{data:Y,headers:Dt.from(B.headers),status:B.status,statusText:B.statusText,config:S,request:Ee})})}catch(ke){throw xe&&xe(),ke&&ke.name==="TypeError"&&/Load failed|fetch/i.test(ke.message)?Object.assign(new Se("Network Error",Se.ERR_NETWORK,S,Ee),{cause:ke.cause||ke}):Se.from(ke,ke&&ke.code,S,Ee)}}},oA=new Map,p1=t=>{let r=t&&t.env||{};const{fetch:i,Request:o,Response:l}=r,c=[o,l,i];let u=c.length,d=u,h,y,m=oA;for(;d--;)h=c[d],y=m.get(h),y===void 0&&m.set(h,y=d?new Map:sA(r)),m=y;return y};p1();const Cd={http:PC,xhr:ZC,fetch:{get:p1}};L.forEach(Cd,(t,r)=>{if(t){try{Object.defineProperty(t,"name",{value:r})}catch{}Object.defineProperty(t,"adapterName",{value:r})}});const B0=t=>`- ${t}`,aA=t=>L.isFunction(t)||t===null||t===!1;function lA(t,r){t=L.isArray(t)?t:[t];const{length:i}=t;let o,l;const c={};for(let u=0;u`adapter ${h} `+(y===!1?"is not supported by the environment":"is not available in the build"));let d=i?u.length>1?`since : `+u.map(B0).join(` `):" "+B0(u[0]):"as no adapter specified";throw new Se("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return l}const h1={getAdapter:lA,adapters:Cd};function Gc(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ri(null,t)}function z0(t){return Gc(t),t.headers=Dt.from(t.headers),t.data=Kc.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),h1.getAdapter(t.adapter||zs.adapter,t)(t).then(function(o){return Gc(t),o.data=Kc.call(t,t.transformResponse,o),o.headers=Dt.from(o.headers),o},function(o){return u1(o)||(Gc(t),o&&o.response&&(o.response.data=Kc.call(t,t.transformResponse,o.response),o.response.headers=Dt.from(o.response.headers))),Promise.reject(o)})}const m1="1.13.2",Ka={};["object","boolean","number","function","string","symbol"].forEach((t,r)=>{Ka[t]=function(o){return typeof o===t||"a"+(r<1?"n ":" ")+t}});const U0={};Ka.transitional=function(r,i,o){function l(c,u){return"[Axios v"+m1+"] Transitional option '"+c+"'"+u+(o?". "+o:"")}return(c,u,d)=>{if(r===!1)throw new Se(l(u," has been removed"+(i?" in "+i:"")),Se.ERR_DEPRECATED);return i&&!U0[u]&&(U0[u]=!0,console.warn(l(u," has been deprecated since v"+i+" and will be removed in the near future"))),r?r(c,u,d):!0}};Ka.spelling=function(r){return(i,o)=>(console.warn(`${o} is likely a misspelling of ${r}`),!0)};function uA(t,r,i){if(typeof t!="object")throw new Se("options must be an object",Se.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let l=o.length;for(;l-- >0;){const c=o[l],u=r[c];if(u){const d=t[c],h=d===void 0||u(d,c,t);if(h!==!0)throw new Se("option "+c+" must be "+h,Se.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new Se("Unknown option "+c,Se.ERR_BAD_OPTION)}}const ga={assertOptions:uA,validators:Ka},Sn=ga.validators;let Dr=class{constructor(r){this.defaults=r||{},this.interceptors={request:new R0,response:new R0}}async request(r,i){try{return await this._request(r,i)}catch(o){if(o instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const c=l.stack?l.stack.replace(/^.+\n/,""):"";try{o.stack?c&&!String(o.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(o.stack+=` -`+c):o.stack=c}catch{}}throw o}}_request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=Ir(this.defaults,i);const{transitional:o,paramsSerializer:l,headers:c}=i;o!==void 0&&ga.assertOptions(o,{silentJSONParsing:Sn.transitional(Sn.boolean),forcedJSONParsing:Sn.transitional(Sn.boolean),clarifyTimeoutError:Sn.transitional(Sn.boolean)},!1),l!=null&&(L.isFunction(l)?i.paramsSerializer={serialize:l}:ga.assertOptions(l,{encode:Sn.function,serialize:Sn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),ga.assertOptions(i,{baseUrl:Sn.spelling("baseURL"),withXsrfToken:Sn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let u=c&&L.merge(c.common,c[i.method]);c&&L.forEach(["delete","get","head","post","put","patch","common"],S=>{delete c[S]}),i.headers=Dt.concat(u,c);const d=[];let h=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(i)===!1||(h=h&&k.synchronous,d.unshift(k.fulfilled,k.rejected))});const y=[];this.interceptors.response.forEach(function(k){y.push(k.fulfilled,k.rejected)});let m,v=0,x;if(!h){const S=[z0.bind(this),void 0];for(S.unshift(...d),S.push(...y),x=S.length,m=Promise.resolve(i);v{if(!o._listeners)return;let c=o._listeners.length;for(;c-- >0;)o._listeners[c](l);o._listeners=null}),this.promise.then=l=>{let c;const u=new Promise(d=>{o.subscribe(d),c=d}).then(l);return u.cancel=function(){o.unsubscribe(c)},u},r(function(c,u,d){o.reason||(o.reason=new Ri(c,u,d),i(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const r=new AbortController,i=o=>{r.abort(o)};return this.subscribe(i),r.signal.unsubscribe=()=>this.unsubscribe(i),r.signal}static source(){let r;return{token:new y1(function(l){r=l}),cancel:r}}};function fA(t){return function(i){return t.apply(null,i)}}function dA(t){return L.isObject(t)&&t.isAxiosError===!0}const Of={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Of).forEach(([t,r])=>{Of[r]=t});function g1(t){const r=new Dr(t),i=Gv(Dr.prototype.request,r);return L.extend(i,Dr.prototype,r,{allOwnKeys:!0}),L.extend(i,r,null,{allOwnKeys:!0}),i.create=function(l){return g1(Ir(t,l))},i}const Qe=g1(zs);Qe.Axios=Dr;Qe.CanceledError=Ri;Qe.CancelToken=cA;Qe.isCancel=u1;Qe.VERSION=m1;Qe.toFormData=qa;Qe.AxiosError=Se;Qe.Cancel=Qe.CanceledError;Qe.all=function(r){return Promise.all(r)};Qe.spread=fA;Qe.isAxiosError=dA;Qe.mergeConfig=Ir;Qe.AxiosHeaders=Dt;Qe.formToJSON=t=>l1(L.isHTMLForm(t)?new FormData(t):t);Qe.getAdapter=h1.getAdapter;Qe.HttpStatusCode=Of;Qe.default=Qe;const{Axios:kA,AxiosError:CA,CanceledError:AA,isCancel:FA,CancelToken:NA,VERSION:RA,all:_A,Cancel:OA,isAxiosError:jA,spread:MA,toFormData:bA,AxiosHeaders:DA,HttpStatusCode:IA,formToJSON:LA,getAdapter:VA,mergeConfig:BA}=Qe;function pA(){window.localStorage.removeItem("app-access");let t=window.location,r=ka.parse(t.href.split("?")[1]);delete r.code;let i=ka.stringify(r);window.location.href=t.origin+t.pathname+"?"+i}const Ga=Qe.create({baseURL:"https://ting.lifebanktech.com/api/api",timeout:6e4});Ga.interceptors.request.use(t=>{let r=Ff.getState().token;return r&&(t.headers.Authorization=`Bearer ${r}`),t});Ga.interceptors.response.use(t=>{const{code:r,data:i,message:o}=t.data;if(r===1)return i;if(r===0)return Promise.reject(new Error(o));(r===401||r===403)&&pA()},t=>{});function hA(t,r={}){return Ga.post(t,r)}function mA(t,r={}){return Ga.get(t,{params:r})}const yA={get:mA,post:hA};function gA(t){return yA.post("/login",t)}const vA=["snsapi_base","snsapi_userinfo"],xA="wxbc438492e3efab70";let jf=window.location.href,Qc=jf.split("?")[0];function wA(){return new Promise(t=>{if(Ff.getState().token){t(!0);return}let i=ka.parse(jf.split("?")[1]);i.code?gA({wx_code:i.code,...i}).then(o=>{if(!o.accessToken){delete i.code,delete i.state,Qc=Qc+ka.stringify(i),$0(Qc);return}Ff.getState().setToken(o.accessToken),t(!0)}):$0(jf)})}function $0(t){t=encodeURIComponent(t),window.location.href=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${xA}&redirect_uri=${t}&response_type=code&scope=${vA[1]}#wechat_redirect`}function SA(){const[t,r]=X.useState(!1),[i,o]=X.useState(1),l=()=>{o(d=>Math.min(d+1,5))},c=d=>{console.log(d)},u=()=>{l()};return X.useEffect(()=>{wA().then(()=>{r(!0)})},[]),t?w.jsxs("div",{className:"min-h-screen bg-[#0A0F24] text-white overflow-x-hidden relative",children:[w.jsx("div",{className:"fixed inset-0 pointer-events-none",children:w.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#7B61FF]/10 via-transparent to-[#00F0FF]/10"})}),w.jsxs("div",{className:"relative z-10",children:[i===1&&w.jsx(FT,{onNext:l}),i===2&&w.jsx(NT,{onUpload:c}),i===3&&w.jsx(RT,{onComplete:l}),i===4&&w.jsx(_T,{onPayment:u}),i===5&&w.jsx(OT,{})]})]}):w.jsx(w.Fragment,{})}yw.createRoot(document.getElementById("root")).render(w.jsx(SA,{})); +`+c):o.stack=c}catch{}}throw o}}_request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=Ir(this.defaults,i);const{transitional:o,paramsSerializer:l,headers:c}=i;o!==void 0&&ga.assertOptions(o,{silentJSONParsing:Sn.transitional(Sn.boolean),forcedJSONParsing:Sn.transitional(Sn.boolean),clarifyTimeoutError:Sn.transitional(Sn.boolean)},!1),l!=null&&(L.isFunction(l)?i.paramsSerializer={serialize:l}:ga.assertOptions(l,{encode:Sn.function,serialize:Sn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),ga.assertOptions(i,{baseUrl:Sn.spelling("baseURL"),withXsrfToken:Sn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let u=c&&L.merge(c.common,c[i.method]);c&&L.forEach(["delete","get","head","post","put","patch","common"],S=>{delete c[S]}),i.headers=Dt.concat(u,c);const d=[];let h=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(i)===!1||(h=h&&k.synchronous,d.unshift(k.fulfilled,k.rejected))});const y=[];this.interceptors.response.forEach(function(k){y.push(k.fulfilled,k.rejected)});let m,v=0,x;if(!h){const S=[z0.bind(this),void 0];for(S.unshift(...d),S.push(...y),x=S.length,m=Promise.resolve(i);v{if(!o._listeners)return;let c=o._listeners.length;for(;c-- >0;)o._listeners[c](l);o._listeners=null}),this.promise.then=l=>{let c;const u=new Promise(d=>{o.subscribe(d),c=d}).then(l);return u.cancel=function(){o.unsubscribe(c)},u},r(function(c,u,d){o.reason||(o.reason=new Ri(c,u,d),i(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const r=new AbortController,i=o=>{r.abort(o)};return this.subscribe(i),r.signal.unsubscribe=()=>this.unsubscribe(i),r.signal}static source(){let r;return{token:new y1(function(l){r=l}),cancel:r}}};function fA(t){return function(i){return t.apply(null,i)}}function dA(t){return L.isObject(t)&&t.isAxiosError===!0}const Of={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Of).forEach(([t,r])=>{Of[r]=t});function g1(t){const r=new Dr(t),i=Gv(Dr.prototype.request,r);return L.extend(i,Dr.prototype,r,{allOwnKeys:!0}),L.extend(i,r,null,{allOwnKeys:!0}),i.create=function(l){return g1(Ir(t,l))},i}const Qe=g1(zs);Qe.Axios=Dr;Qe.CanceledError=Ri;Qe.CancelToken=cA;Qe.isCancel=u1;Qe.VERSION=m1;Qe.toFormData=qa;Qe.AxiosError=Se;Qe.Cancel=Qe.CanceledError;Qe.all=function(r){return Promise.all(r)};Qe.spread=fA;Qe.isAxiosError=dA;Qe.mergeConfig=Ir;Qe.AxiosHeaders=Dt;Qe.formToJSON=t=>l1(L.isHTMLForm(t)?new FormData(t):t);Qe.getAdapter=h1.getAdapter;Qe.HttpStatusCode=Of;Qe.default=Qe;const{Axios:kA,AxiosError:CA,CanceledError:AA,isCancel:FA,CancelToken:NA,VERSION:RA,all:_A,Cancel:OA,isAxiosError:jA,spread:MA,toFormData:bA,AxiosHeaders:DA,HttpStatusCode:IA,formToJSON:LA,getAdapter:VA,mergeConfig:BA}=Qe;function pA(){window.localStorage.removeItem("app-access");let t=window.location,r=ka.parse(t.href.split("?")[1]);delete r.code;let i=ka.stringify(r);window.location.href=t.origin+t.pathname+"?"+i}const Ga=Qe.create({baseURL:"https://ting.lifebanktech.com/api",timeout:6e4});Ga.interceptors.request.use(t=>{let r=Ff.getState().token;return r&&(t.headers.Authorization=`Bearer ${r}`),t});Ga.interceptors.response.use(t=>{const{code:r,data:i,message:o}=t.data;if(r===1)return i;if(r===0)return Promise.reject(new Error(o));(r===401||r===403)&&pA()},t=>{});function hA(t,r={}){return Ga.post(t,r)}function mA(t,r={}){return Ga.get(t,{params:r})}const yA={get:mA,post:hA};function gA(t){return yA.post("/login",t)}const vA=["snsapi_base","snsapi_userinfo"],xA="wxbc438492e3efab70";let jf=window.location.href,Qc=jf.split("?")[0];function wA(){return new Promise(t=>{if(Ff.getState().token){t(!0);return}let i=ka.parse(jf.split("?")[1]);i.code?gA({wx_code:i.code,...i}).then(o=>{if(!o.accessToken){delete i.code,delete i.state,Qc=Qc+ka.stringify(i),$0(Qc);return}Ff.getState().setToken(o.accessToken),t(!0)}):$0(jf)})}function $0(t){t=encodeURIComponent(t),window.location.href=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${xA}&redirect_uri=${t}&response_type=code&scope=${vA[1]}#wechat_redirect`}function SA(){const[t,r]=X.useState(!1),[i,o]=X.useState(1),l=()=>{o(d=>Math.min(d+1,5))},c=d=>{console.log(d)},u=()=>{l()};return X.useEffect(()=>{wA().then(()=>{r(!0)})},[]),t?w.jsxs("div",{className:"min-h-screen bg-[#0A0F24] text-white overflow-x-hidden relative",children:[w.jsx("div",{className:"fixed inset-0 pointer-events-none",children:w.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#7B61FF]/10 via-transparent to-[#00F0FF]/10"})}),w.jsxs("div",{className:"relative z-10",children:[i===1&&w.jsx(FT,{onNext:l}),i===2&&w.jsx(NT,{onUpload:c}),i===3&&w.jsx(RT,{onComplete:l}),i===4&&w.jsx(_T,{onPayment:u}),i===5&&w.jsx(OT,{})]})]}):w.jsx(w.Fragment,{})}yw.createRoot(document.getElementById("root")).render(w.jsx(SA,{})); diff --git a/index.html b/index.html index e9011cc..5ac31bc 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ 效灵AI - +