@yuku123/z-project-frontend-component 0.1.1 → 0.2.0

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.
@@ -1,4 +1,4 @@
1
- (function(W,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-router-dom"),require("antd"),require("@ant-design/icons"),require("@ant-design/pro-components")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom","antd","@ant-design/icons","@ant-design/pro-components"],I):(W=typeof globalThis<"u"?globalThis:W||self,I(W.z_component={},W.React,W.ReactRouterDOM,W.antd,W.icons))})(this,(function(W,I,ee,m,U){"use strict";var Ie={exports:{}},Re={};/**
1
+ (function(K,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-router-dom"),require("antd"),require("@ant-design/icons"),require("@ant-design/pro-components")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom","antd","@ant-design/icons","@ant-design/pro-components"],I):(K=typeof globalThis<"u"?globalThis:K||self,I(K.z_component={},K.React,K.ReactRouterDOM,K.antd,K.icons))})(this,(function(K,I,ee,m,F){"use strict";var Ie={exports:{}},Re={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -14,20 +14,20 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ut;function pr(){return ut||(ut=1,process.env.NODE_ENV!=="production"&&(function(){function e(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===X?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case g:return"Fragment";case O:return"Profiler";case h:return"StrictMode";case k:return"Suspense";case F:return"SuspenseList";case Y:return"Activity"}if(typeof i=="object")switch(typeof i.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),i.$$typeof){case x:return"Portal";case E:return i.displayName||"Context";case T:return(i._context.displayName||"Context")+".Consumer";case v:var b=i.render;return i=i.displayName,i||(i=b.displayName||b.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case H:return b=i.displayName||null,b!==null?b:e(i.type)||"Memo";case M:b=i._payload,i=i._init;try{return e(i(b))}catch{}}return null}function t(i){return""+i}function r(i){try{t(i);var b=!1}catch{b=!0}if(b){b=console;var _=b.error,j=typeof Symbol=="function"&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||"Object";return _.call(b,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",j),t(i)}}function n(i){if(i===g)return"<>";if(typeof i=="object"&&i!==null&&i.$$typeof===M)return"<...>";try{var b=e(i);return b?"<"+b+">":"<...>"}catch{return"<...>"}}function s(){var i=Q.A;return i===null?null:i.getOwner()}function o(){return Error("react-stack-top-frame")}function a(i){if(ce.call(i,"key")){var b=Object.getOwnPropertyDescriptor(i,"key").get;if(b&&b.isReactWarning)return!1}return i.key!==void 0}function c(i,b){function _(){re||(re=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",b))}_.isReactWarning=!0,Object.defineProperty(i,"key",{get:_,configurable:!0})}function f(){var i=e(this.type);return ie[i]||(ie[i]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),i=this.props.ref,i!==void 0?i:null}function y(i,b,_,j,ne,N){var A=_.ref;return i={$$typeof:C,type:i,key:b,props:_,_owner:j},(A!==void 0?A:null)!==null?Object.defineProperty(i,"ref",{enumerable:!1,get:f}):Object.defineProperty(i,"ref",{enumerable:!1,value:null}),i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(i,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(i,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ne}),Object.defineProperty(i,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:N}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i}function u(i,b,_,j,ne,N){var A=b.children;if(A!==void 0)if(j)if(V(A)){for(j=0;j<A.length;j++)d(A[j]);Object.freeze&&Object.freeze(A)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(A);if(ce.call(b,"key")){A=e(i);var L=Object.keys(b).filter(function(ve){return ve!=="key"});j=0<L.length?"{key: someKey, "+L.join(": ..., ")+": ...}":"{key: someKey}",J[A+j]||(L=0<L.length?"{"+L.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var ut;function pr(){return ut||(ut=1,process.env.NODE_ENV!=="production"&&(function(){function e(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===Y?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case g:return"Fragment";case O:return"Profiler";case h:return"StrictMode";case v:return"Suspense";case L:return"SuspenseList";case G:return"Activity"}if(typeof i=="object")switch(typeof i.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),i.$$typeof){case x:return"Portal";case E:return i.displayName||"Context";case T:return(i._context.displayName||"Context")+".Consumer";case k:var b=i.render;return i=i.displayName,i||(i=b.displayName||b.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case $:return b=i.displayName||null,b!==null?b:e(i.type)||"Memo";case M:b=i._payload,i=i._init;try{return e(i(b))}catch{}}return null}function t(i){return""+i}function r(i){try{t(i);var b=!1}catch{b=!0}if(b){b=console;var _=b.error,j=typeof Symbol=="function"&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||"Object";return _.call(b,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",j),t(i)}}function n(i){if(i===g)return"<>";if(typeof i=="object"&&i!==null&&i.$$typeof===M)return"<...>";try{var b=e(i);return b?"<"+b+">":"<...>"}catch{return"<...>"}}function s(){var i=Q.A;return i===null?null:i.getOwner()}function o(){return Error("react-stack-top-frame")}function a(i){if(ce.call(i,"key")){var b=Object.getOwnPropertyDescriptor(i,"key").get;if(b&&b.isReactWarning)return!1}return i.key!==void 0}function c(i,b){function _(){re||(re=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",b))}_.isReactWarning=!0,Object.defineProperty(i,"key",{get:_,configurable:!0})}function f(){var i=e(this.type);return ie[i]||(ie[i]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),i=this.props.ref,i!==void 0?i:null}function y(i,b,_,j,ne,N){var A=_.ref;return i={$$typeof:C,type:i,key:b,props:_,_owner:j},(A!==void 0?A:null)!==null?Object.defineProperty(i,"ref",{enumerable:!1,get:f}):Object.defineProperty(i,"ref",{enumerable:!1,value:null}),i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(i,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(i,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ne}),Object.defineProperty(i,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:N}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i}function u(i,b,_,j,ne,N){var A=b.children;if(A!==void 0)if(j)if(J(A)){for(j=0;j<A.length;j++)d(A[j]);Object.freeze&&Object.freeze(A)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(A);if(ce.call(b,"key")){A=e(i);var U=Object.keys(b).filter(function(ke){return ke!=="key"});j=0<U.length?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}",W[A+j]||(U=0<U.length?"{"+U.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,j,A,L,A),J[A+j]=!0)}if(A=null,_!==void 0&&(r(_),A=""+_),a(b)&&(r(b.key),A=""+b.key),"key"in b){_={};for(var oe in b)oe!=="key"&&(_[oe]=b[oe])}else _=b;return A&&c(_,typeof i=="function"?i.displayName||i.name||"Unknown":i),y(i,A,_,s(),ne,N)}function d(i){R(i)?i._store&&(i._store.validated=1):typeof i=="object"&&i!==null&&i.$$typeof===M&&(i._payload.status==="fulfilled"?R(i._payload.value)&&i._payload.value._store&&(i._payload.value._store.validated=1):i._store&&(i._store.validated=1))}function R(i){return typeof i=="object"&&i!==null&&i.$$typeof===C}var w=I,C=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),E=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),Q=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Object.prototype.hasOwnProperty,V=Array.isArray,Z=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(i){return i()}};var re,ie={},ye=w.react_stack_bottom_frame.bind(w,o)(),ue=Z(n(o)),J={};Oe.Fragment=g,Oe.jsx=function(i,b,_){var j=1e4>Q.recentlyCreatedOwnerStacks++;return u(i,b,_,!1,j?Error("react-stack-top-frame"):ye,j?Z(n(i)):ue)},Oe.jsxs=function(i,b,_){var j=1e4>Q.recentlyCreatedOwnerStacks++;return u(i,b,_,!0,j?Error("react-stack-top-frame"):ye,j?Z(n(i)):ue)}})()),Oe}var ft;function hr(){return ft||(ft=1,process.env.NODE_ENV==="production"?Ie.exports=dr():Ie.exports=pr()),Ie.exports}var p=hr();function dt(e,t){return function(){return e.apply(t,arguments)}}const{toString:mr}=Object.prototype,{getPrototypeOf:ge}=Object,{iterator:Te,toStringTag:pt}=Symbol,De=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),_e=(e,t)=>{let r=e;const n=[];for(;r!=null&&r!==Object.prototype;){if(n.indexOf(r)!==-1)return!1;if(n.push(r),De(r,t))return!0;r=ge(r)}return!1},yr=(e,t)=>e!=null&&_e(e,t)?e[t]:void 0,Je=(e=>t=>{const r=mr.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),te=e=>(e=e.toLowerCase(),t=>Je(t)===e),Fe=e=>t=>typeof t===e,{isArray:de}=Array,Ee=Fe("undefined");function Se(e){return e!==null&&!Ee(e)&&e.constructor!==null&&!Ee(e.constructor)&&z(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ht=te("ArrayBuffer");function br(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ht(e.buffer),t}const gr=Fe("string"),z=Fe("function"),mt=Fe("number"),xe=e=>e!==null&&typeof e=="object",Er=e=>e===!0||e===!1,Ue=e=>{if(!xe(e))return!1;const t=ge(e);return(t===null||t===Object.prototype||ge(t)===null)&&!_e(e,pt)&&!_e(e,Te)},Sr=e=>{if(!xe(e)||Se(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},xr=te("Date"),wr=te("File"),Rr=e=>!!(e&&typeof e.uri<"u"),Or=e=>e&&typeof e.getParts<"u",Tr=te("Blob"),_r=te("FileList"),Ar=e=>xe(e)&&z(e.pipe);function jr(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const yt=jr(),bt=typeof yt.FormData<"u"?yt.FormData:void 0,Cr=e=>{if(!e)return!1;if(bt&&e instanceof bt)return!0;const t=ge(e);if(!t||t===Object.prototype||!z(e.append))return!1;const r=Je(e);return r==="formdata"||r==="object"&&z(e.toString)&&e.toString()==="[object FormData]"},Pr=te("URLSearchParams"),[Nr,vr,kr,Ir]=["ReadableStream","Request","Response","Headers"].map(te),Dr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ae(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),de(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{if(Se(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let c;for(n=0;n<a;n++)c=o[n],t.call(null,e[c],c,e)}}function gt(e,t){if(Se(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const pe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Et=e=>!Ee(e)&&e!==pe;function We(...e){const{caseless:t,skipUndefined:r}=Et(this)&&this||{},n={},s=(o,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=t&&typeof a=="string"&&gt(n,a)||a,f=De(n,c)?n[c]:void 0;Ue(f)&&Ue(o)?n[c]=We(f,o):Ue(o)?n[c]=We({},o):de(o)?n[c]=o.slice():(!r||!Ee(o))&&(n[c]=o)};for(let o=0,a=e.length;o<a;o++){const c=e[o];if(!c||Se(c)||(Ae(c,s),typeof c!="object"||de(c)))continue;const f=Object.getOwnPropertySymbols(c);for(let y=0;y<f.length;y++){const u=f[y];Wr.call(c,u)&&s(c[u],u)}}return n}const Fr=(e,t,r,{allOwnKeys:n}={})=>(Ae(t,(s,o)=>{r&&z(s)?Object.defineProperty(e,o,{__proto__:null,value:dt(s,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),Ur=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Lr=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},Br=(e,t,r,n)=>{let s,o,a;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],(!n||n(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=r!==!1&&ge(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},qr=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},$r=e=>{if(!e)return null;if(de(e))return e;let t=e.length;if(!mt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},zr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ge(Uint8Array)),Hr=(e,t)=>{const n=(e&&e[Te]).call(e);let s;for(;(s=n.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Mr=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Vr=te("HTMLFormElement"),Jr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),{propertyIsEnumerable:Wr}=Object.prototype,Kr=te("RegExp"),St=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ae(r,(s,o)=>{let a;(a=t(s,o,e))!==!1&&(n[o]=a||s)}),Object.defineProperties(e,n)},Gr=e=>{St(e,(t,r)=>{if(z(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];if(z(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Yr=(e,t)=>{const r={},n=s=>{s.forEach(o=>{r[o]=!0})};return de(e)?n(e):n(String(e).split(t)),r},Xr=()=>{},Qr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Zr(e){return!!(e&&z(e.append)&&e[pt]==="FormData"&&e[Te])}const en=e=>{const t=new WeakSet,r=n=>{if(xe(n)){if(t.has(n))return;if(Se(n))return n;if(!("toJSON"in n)){t.add(n);const s=de(n)?[]:{};return Ae(n,(o,a)=>{const c=r(o);!Ee(c)&&(s[a]=c)}),t.delete(n),s}}return n};return r(e)},tn=te("AsyncFunction"),rn=e=>e&&(xe(e)||z(e))&&z(e.then)&&z(e.catch),xt=((e,t)=>e?setImmediate:t?((r,n)=>(pe.addEventListener("message",({source:s,data:o})=>{s===pe&&o===r&&n.length&&n.shift()()},!1),s=>{n.push(s),pe.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",z(pe.postMessage)),nn=typeof queueMicrotask<"u"?queueMicrotask.bind(pe):typeof process<"u"&&process.nextTick||xt,wt=e=>e!=null&&z(e[Te]),l={isArray:de,isArrayBuffer:ht,isBuffer:Se,isFormData:Cr,isArrayBufferView:br,isString:gr,isNumber:mt,isBoolean:Er,isObject:xe,isPlainObject:Ue,isEmptyObject:Sr,isReadableStream:Nr,isRequest:vr,isResponse:kr,isHeaders:Ir,isUndefined:Ee,isDate:xr,isFile:wr,isReactNativeBlob:Rr,isReactNative:Or,isBlob:Tr,isRegExp:Kr,isFunction:z,isStream:Ar,isURLSearchParams:Pr,isTypedArray:zr,isFileList:_r,forEach:Ae,merge:We,extend:Fr,trim:Dr,stripBOM:Ur,inherits:Lr,toFlatObject:Br,kindOf:Je,kindOfTest:te,endsWith:qr,toArray:$r,forEachEntry:Hr,matchAll:Mr,isHTMLForm:Vr,hasOwnProperty:De,hasOwnProp:De,hasOwnInPrototypeChain:_e,getSafeProp:yr,reduceDescriptors:St,freezeMethods:Gr,toObjectSet:Yr,toCamelCase:Jr,noop:Xr,toFiniteNumber:Qr,findKey:gt,global:pe,isContextDefined:Et,isSpecCompliantForm:Zr,toJSONObject:en,isAsyncFn:tn,isThenable:rn,setImmediate:xt,asap:nn,isIterable:wt,isSafeIterable:e=>e!=null&&_e(e,Te)&&wt(e)},sn=l.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"]),on=e=>{const t={};let r,n,s;return e&&e.split(`
23
- `).forEach(function(a){s=a.indexOf(":"),r=a.substring(0,s).trim().toLowerCase(),n=a.substring(s+1).trim(),!(!r||t[r]&&sn[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};function an(e){let t=0,r=e.length;for(;t<r;){const n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){const n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}const ln=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),cn=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ke(e,t){return l.isArray(e)?e.map(r=>Ke(r,t)):an(String(e).replace(t,""))}const un=e=>Ke(e,ln),fn=e=>Ke(e,cn);function Rt(e){const t=Object.create(null);return l.forEach(e.toJSON(),(r,n)=>{t[n]=fn(r)}),t}const Ot=Symbol("internals");function je(e){return e&&String(e).trim().toLowerCase()}function Le(e){return e===!1||e==null?e:l.isArray(e)?e.map(Le):un(String(e))}function dn(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const pn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ge(e,t,r,n,s){if(l.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!l.isString(t)){if(l.isString(n))return t.indexOf(n)!==-1;if(l.isRegExp(n))return n.test(t)}}function hn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function mn(e,t){const r=l.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(s,o,a){return this[n].call(this,t,s,o,a)},configurable:!0})})}let q=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function o(c,f,y){const u=je(f);if(!u)return;const d=l.findKey(s,u);(!d||s[d]===void 0||y===!0||y===void 0&&s[d]!==!1)&&(s[d||f]=Le(c))}const a=(c,f)=>l.forEach(c,(y,u)=>o(y,u,f));if(l.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(l.isString(t)&&(t=t.trim())&&!pn(t))a(on(t),r);else if(l.isObject(t)&&l.isSafeIterable(t)){let c=Object.create(null),f,y;for(const u of t){if(!l.isArray(u))throw new TypeError("Object iterator must return a key-value pair");y=u[0],l.hasOwnProp(c,y)?(f=c[y],c[y]=l.isArray(f)?[...f,u[1]]:[f,u[1]]):c[y]=u[1]}a(c,r)}else t!=null&&o(r,t,n);return this}get(t,r){if(t=je(t),t){const n=l.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return dn(s);if(l.isFunction(r))return r.call(this,s,n);if(l.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=je(t),t){const n=l.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Ge(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function o(a){if(a=je(a),a){const c=l.findKey(n,a);c&&(!r||Ge(n,n[c],c,r))&&(delete n[c],s=!0)}}return l.isArray(t)?t.forEach(o):o(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const o=r[n];(!t||Ge(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const r=this,n={};return l.forEach(this,(s,o)=>{const a=l.findKey(n,o);if(a){r[a]=Le(s),delete r[o];return}const c=t?hn(o):String(o).trim();c!==o&&delete r[o],r[c]=Le(s),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return l.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&l.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
24
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[Ot]=this[Ot]={accessors:{}}).accessors,s=this.prototype;function o(a){const c=je(a);n[c]||(mn(s,a),n[c]=!0)}return l.isArray(t)?t.forEach(o):o(t),this}};q.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l.reduceDescriptors(q.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),l.freezeMethods(q);const yn="[REDACTED ****]";function bn(e){if(l.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(l.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function gn(e,t){const r=new Set(t.map(o=>String(o).toLowerCase())),n=[],s=o=>{if(o===null||typeof o!="object"||l.isBuffer(o))return o;if(n.indexOf(o)!==-1)return;o instanceof q&&(o=o.toJSON()),n.push(o);let a;if(l.isArray(o))a=[],o.forEach((c,f)=>{const y=s(c);l.isUndefined(y)||(a[f]=y)});else{if(!l.isPlainObject(o)&&bn(o))return n.pop(),o;a=Object.create(null);for(const[c,f]of Object.entries(o)){const y=r.has(c.toLowerCase())?yn:s(f);l.isUndefined(y)||(a[c]=y)}}return n.pop(),a};return s(e)}let S=class ur extends Error{static from(t,r,n,s,o,a){const c=new ur(t.message,r||t.code,n,s,o);return c.cause=t,c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),a&&Object.assign(c,a),c}constructor(t,r,n,s,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,r=t&&l.hasOwnProp(t,"redact")?t.redact:void 0,n=l.isArray(r)&&r.length>0?gn(t,r):l.toJSONObject(t);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:n,code:this.code,status:this.status}}};S.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",S.ERR_BAD_OPTION="ERR_BAD_OPTION",S.ECONNABORTED="ECONNABORTED",S.ETIMEDOUT="ETIMEDOUT",S.ECONNREFUSED="ECONNREFUSED",S.ERR_NETWORK="ERR_NETWORK",S.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",S.ERR_DEPRECATED="ERR_DEPRECATED",S.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",S.ERR_BAD_REQUEST="ERR_BAD_REQUEST",S.ERR_CANCELED="ERR_CANCELED",S.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",S.ERR_INVALID_URL="ERR_INVALID_URL",S.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const En=null,Tt=100;function Ye(e){return l.isPlainObject(e)||l.isArray(e)}function _t(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function Xe(e,t,r){return e?e.concat(t).map(function(s,o){return s=_t(s),!r&&o?"["+s+"]":s}).join(r?".":""):t}function Sn(e){return l.isArray(e)&&!e.some(Ye)}const xn=l.toFlatObject(l,{},null,function(t){return/^is[A-Z]/.test(t)});function Be(e,t,r){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=l.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,T){return!l.isUndefined(T[O])});const n=r.metaTokens,s=r.visitor||C,o=r.dots,a=r.indexes,c=r.Blob||typeof Blob<"u"&&Blob,f=r.maxDepth===void 0?Tt:r.maxDepth,y=c&&l.isSpecCompliantForm(t),u=[];if(!l.isFunction(s))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(l.isDate(h))return h.toISOString();if(l.isBoolean(h))return h.toString();if(!y&&l.isBlob(h))throw new S("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(h)||l.isTypedArray(h)?y&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function R(h){if(h>f)throw new S("Object is too deeply nested ("+h+" levels). Max depth: "+f,S.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w(h,O){if(f===1/0)return JSON.stringify(h);const T=[];return JSON.stringify(h,function(v,k){if(!l.isObject(k))return k;for(;T.length&&T[T.length-1]!==this;)T.pop();return T.push(k),R(O+T.length-1),k})}function C(h,O,T){let E=h;if(l.isReactNative(t)&&l.isReactNativeBlob(h))return t.append(Xe(T,O,o),d(h)),!1;if(h&&!T&&typeof h=="object"){if(l.endsWith(O,"{}"))O=n?O:O.slice(0,-2),h=w(h,1);else if(l.isArray(h)&&Sn(h)||(l.isFileList(h)||l.endsWith(O,"[]"))&&(E=l.toArray(h)))return O=_t(O),E.forEach(function(k,F){!(l.isUndefined(k)||k===null)&&t.append(a===!0?Xe([O],F,o):a===null?O:O+"[]",d(k))}),!1}return Ye(h)?!0:(t.append(Xe(T,O,o),d(h)),!1)}const x=Object.assign(xn,{defaultVisitor:C,convertValue:d,isVisitable:Ye});function g(h,O,T=0){if(!l.isUndefined(h)){if(R(T),u.indexOf(h)!==-1)throw new Error("Circular reference detected in "+O.join("."));u.push(h),l.forEach(h,function(v,k){(!(l.isUndefined(v)||v===null)&&s.call(t,v,l.isString(k)?k.trim():k,O,x))===!0&&g(v,O?O.concat(k):[k],T+1)}),u.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return g(e),t}function At(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(n){return t[n]})}function Qe(e,t){this._pairs=[],e&&Be(e,this,t)}const jt=Qe.prototype;jt.append=function(t,r){this._pairs.push([t,r])},jt.toString=function(t){const r=t?function(n){return t.call(this,n,At)}:At;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function wn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ct(e,t,r){if(!t)return e;const n=l.isFunction(r)?{serialize:r}:r,s=l.getSafeProp(n,"encode")||wn,o=l.getSafeProp(n,"serialize");let a;if(o?a=o(t,n):a=l.isURLSearchParams(t)?t.toString():new Qe(t,n).toString(s),a){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Pt{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,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){l.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ze={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Rn={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Qe,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},et=typeof window<"u"&&typeof document<"u",tt=typeof navigator=="object"&&navigator||void 0,On=et&&(!tt||["ReactNative","NativeScript","NS"].indexOf(tt.product)<0),Tn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_n=et&&window.location.href||"http://localhost",B={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:et,hasStandardBrowserEnv:On,hasStandardBrowserWebWorkerEnv:Tn,navigator:tt,origin:_n},Symbol.toStringTag,{value:"Module"})),...Rn};function An(e,t){return Be(e,new B.classes.URLSearchParams,{visitor:function(r,n,s,o){return B.isNode&&l.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const Nt=Tt;function vt(e){if(e>Nt)throw new S("FormData field is too deeply nested ("+e+" levels). Max depth: "+Nt,S.ERR_FORM_DATA_DEPTH_EXCEEDED)}function jn(e){const t=[],r=/\w+|\[(\w*)]/g;let n;for(;(n=r.exec(e))!==null;)vt(t.length),t.push(n[0]==="[]"?"":n[1]||n[0]);return t}function Cn(e){const t={},r=Object.keys(e);let n;const s=r.length;let o;for(n=0;n<s;n++)o=r[n],t[o]=e[o];return t}function kt(e){function t(r,n,s,o){vt(o);let a=r[o++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),f=o>=r.length;return a=!a&&l.isArray(s)?s.length:a,f?(l.hasOwnProp(s,a)?s[a]=l.isArray(s[a])?s[a].concat(n):[s[a],n]:s[a]=n,!c):((!l.hasOwnProp(s,a)||!l.isObject(s[a]))&&(s[a]=[]),t(r,n,s[a],o)&&l.isArray(s[a])&&(s[a]=Cn(s[a])),!c)}if(l.isFormData(e)&&l.isFunction(e.entries)){const r={};return l.forEachEntry(e,(n,s)=>{t(jn(n),s,r,0)}),r}return null}const we=(e,t)=>e!=null&&l.hasOwnProp(e,t)?e[t]:void 0;function Pn(e,t,r){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ce={transitional:Ze,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,o=l.isObject(t);if(o&&l.isHTMLForm(t)&&(t=new FormData(t)),l.isFormData(t))return s?JSON.stringify(kt(t)):t;if(l.isArrayBuffer(t)||l.isBuffer(t)||l.isStream(t)||l.isFile(t)||l.isBlob(t)||l.isReadableStream(t))return t;if(l.isArrayBufferView(t))return t.buffer;if(l.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){const f=we(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return An(t,f).toString();if((c=l.isFileList(t))||n.indexOf("multipart/form-data")>-1){const y=we(this,"env"),u=y&&y.FormData;return Be(c?{"files[]":t}:t,u&&new u,f)}}return o||s?(r.setContentType("application/json",!1),Pn(t)):t}],transformResponse:[function(t){const r=we(this,"transitional")||Ce.transitional,n=r&&r.forcedJSONParsing,s=we(this,"responseType"),o=s==="json";if(l.isResponse(t)||l.isReadableStream(t))return t;if(t&&l.isString(t)&&(n&&!s||o)){const c=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,we(this,"parseReviver"))}catch(f){if(c)throw f.name==="SyntaxError"?S.from(f,S.ERR_BAD_RESPONSE,this,null,we(this,"response")):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:B.classes.FormData,Blob:B.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch","query"],e=>{Ce.headers[e]={}});function rt(e,t){const r=this||Ce,n=t||r,s=q.from(n.headers);let o=n.data;return l.forEach(e,function(c){o=c.call(r,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function It(e){return!!(e&&e.__CANCEL__)}let Pe=class extends S{constructor(t,r,n){super(t??"canceled",S.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Dt(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new S("Request failed with status code "+r.status,r.status>=400&&r.status<500?S.ERR_BAD_REQUEST:S.ERR_BAD_RESPONSE,r.config,r.request,r))}function Nn(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function vn(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,o=0,a;return t=t!==void 0?t:1e3,function(f){const y=Date.now(),u=n[o];a||(a=y),r[s]=f,n[s]=y;let d=o,R=0;for(;d!==s;)R+=r[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),y-a<t)return;const w=u&&y-u;return w?Math.round(R*1e3/w):void 0}}function kn(e,t){let r=0,n=1e3/t,s,o;const a=(y,u=Date.now())=>{r=u,s=null,o&&(clearTimeout(o),o=null),e(...y)};return[(...y)=>{const u=Date.now(),d=u-r;d>=n?a(y,u):(s=y,o||(o=setTimeout(()=>{o=null,a(s)},n-d)))},()=>s&&a(s)]}const qe=(e,t,r=3)=>{let n=0;const s=vn(50,250);return kn(o=>{if(!o||typeof o.loaded!="number")return;const a=o.loaded,c=o.lengthComputable?o.total:void 0,f=c!=null?Math.min(a,c):a,y=Math.max(0,f-n),u=s(y);n=Math.max(n,f);const d={loaded:f,total:c,progress:c?f/c:void 0,bytes:y,rate:u||void 0,estimated:u&&c?(c-f)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},r)},Ft=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ut=e=>(...t)=>l.asap(()=>e(...t)),In=B.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,B.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(B.origin),B.navigator&&/(msie|trident)/i.test(B.navigator.userAgent)):()=>!0,Dn=B.hasStandardBrowserEnv?{write(e,t,r,n,s,o,a){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];l.isNumber(r)&&c.push(`expires=${new Date(r).toUTCString()}`),l.isString(n)&&c.push(`path=${n}`),l.isString(s)&&c.push(`domain=${s}`),o===!0&&c.push("secure"),l.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let r=0;r<t.length;r++){const n=t[r].replace(/^\s+/,""),s=n.indexOf("=");if(s!==-1&&n.slice(0,s)===e)return decodeURIComponent(n.slice(s+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Fn(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Un(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const Ln=/^https?:(?!\/\/)/i,Bn=/[\t\n\r]/g;function qn(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function $n(e){return qn(e).replace(Bn,"")}function Lt(e,t){if(typeof e=="string"&&Ln.test($n(e)))throw new S('Invalid URL: missing "//" after protocol',S.ERR_INVALID_URL,t)}function Bt(e,t,r,n){Lt(t,n);let s=!Fn(t);return e&&(s||r===!1)?(Lt(e,n),Un(e,t)):t}const qt=e=>e instanceof q?{...e}:e;function he(e,t){t=t||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(u,d,R,w){return l.isPlainObject(u)&&l.isPlainObject(d)?l.merge.call({caseless:w},u,d):l.isPlainObject(d)?l.merge({},d):l.isArray(d)?d.slice():d}function s(u,d,R,w){if(l.isUndefined(d)){if(!l.isUndefined(u))return n(void 0,u,R,w)}else return n(u,d,R,w)}function o(u,d){if(!l.isUndefined(d))return n(void 0,d)}function a(u,d){if(l.isUndefined(d)){if(!l.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function c(u){const d=l.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!l.isUndefined(d))if(l.isPlainObject(d)){if(l.hasOwnProp(d,u))return d[u]}else return;const R=l.hasOwnProp(e,"transitional")?e.transitional:void 0;if(l.isPlainObject(R)&&l.hasOwnProp(R,u))return R[u]}function f(u,d,R){if(l.hasOwnProp(t,R))return n(u,d);if(l.hasOwnProp(e,R))return n(void 0,u)}const y={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:f,headers:(u,d,R)=>s(qt(u),qt(d),R,!0)};return l.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const R=l.hasOwnProp(y,d)?y[d]:s,w=l.hasOwnProp(e,d)?e[d]:void 0,C=l.hasOwnProp(t,d)?t[d]:void 0,x=R(w,C,d);l.isUndefined(x)&&R!==f||(r[d]=x)}),l.hasOwnProp(t,"validateStatus")&&l.isUndefined(t.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(l.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}const zn=["content-type","content-length"];function Hn(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([n,s])=>{zn.includes(n.toLowerCase())&&e.set(n,s)})}const Mn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16)));function $t(e){const t=he({},e),r=R=>l.hasOwnProp(t,R)?t[R]:void 0,n=r("data");let s=r("withXSRFToken");const o=r("xsrfHeaderName"),a=r("xsrfCookieName");let c=r("headers");const f=r("auth"),y=r("baseURL"),u=r("allowAbsoluteUrls"),d=r("url");if(t.headers=c=q.from(c),t.url=Ct(Bt(y,d,u,t),r("params"),r("paramsSerializer")),f){const R=l.getSafeProp(f,"username")||"",w=l.getSafeProp(f,"password")||"";c.set("Authorization","Basic "+btoa(R+":"+(w?Mn(w):"")))}if(l.isFormData(n)&&(B.hasStandardBrowserEnv||B.hasStandardBrowserWebWorkerEnv||l.isReactNative(n)?c.setContentType(void 0):l.isFunction(n.getHeaders)&&Hn(c,n.getHeaders(),r("formDataHeaderPolicy"))),B.hasStandardBrowserEnv&&(l.isFunction(s)&&(s=s(t)),s===!0||s==null&&In(t.url))){const w=o&&a&&Dn.read(a);w&&c.set(o,w)}return t}const Vn=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const s=$t(e);let o=s.data;const a=q.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:y}=s,u,d,R,w,C;function x(){w&&w(),C&&C(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(s.method.toUpperCase(),s.url,!0),g.timeout=s.timeout;function h(){if(!g)return;const T=q.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),v={data:!c||c==="text"||c==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:T,config:e,request:g};Dt(function(F){r(F),x()},function(F){n(F),x()},v),g=null}"onloadend"in g?g.onloadend=h:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith("file:"))||setTimeout(h)},g.onabort=function(){g&&(n(new S("Request aborted",S.ECONNABORTED,e,g)),x(),g=null)},g.onerror=function(E){const v=E&&E.message?E.message:"Network Error",k=new S(v,S.ERR_NETWORK,e,g);k.event=E||null,n(k),x(),g=null},g.ontimeout=function(){let E=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const v=s.transitional||Ze;s.timeoutErrorMessage&&(E=s.timeoutErrorMessage),n(new S(E,v.clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,e,g)),x(),g=null},o===void 0&&a.setContentType(null),"setRequestHeader"in g&&l.forEach(Rt(a),function(E,v){g.setRequestHeader(v,E)}),l.isUndefined(s.withCredentials)||(g.withCredentials=!!s.withCredentials),c&&c!=="json"&&(g.responseType=s.responseType),y&&([R,C]=qe(y,!0),g.addEventListener("progress",R)),f&&g.upload&&([d,w]=qe(f),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(u=T=>{g&&(n(!T||T.type?new Pe(null,e,g):T),g.abort(),x(),g=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const O=Nn(s.url);if(O&&!B.protocols.includes(O)){n(new S("Unsupported protocol "+O+":",S.ERR_BAD_REQUEST,e));return}g.send(o||null)})},Jn=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const s=function(f){if(!n){n=!0,a();const y=f instanceof Error?f:this.reason;r.abort(y instanceof S?y:new Pe(y instanceof Error?y.message:y))}};let o=t&&setTimeout(()=>{o=null,s(new S(`timeout of ${t}ms exceeded`,S.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(s):f.removeEventListener("abort",s)}),e=null)};e.forEach(f=>f.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>l.asap(a),c},Wn=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},Kn=async function*(e,t){for await(const r of Gn(e))yield*Wn(r,t)},Gn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},zt=(e,t,r,n)=>{const s=Kn(e,t);let o=0,a,c=f=>{a||(a=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:y,value:u}=await s.next();if(y){c(),f.close();return}let d=u.byteLength;if(r){let R=o+=d;r(R)}f.enqueue(new Uint8Array(u))}catch(y){throw c(y),y}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},$e=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Yn=(e,t,r)=>t+2<r&&$e(e.charCodeAt(t+1))&&$e(e.charCodeAt(t+2));function Xn(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let a=n.length;const c=n.length;for(let w=0;w<c;w++)if(n.charCodeAt(w)===37&&w+2<c){const C=n.charCodeAt(w+1),x=n.charCodeAt(w+2);$e(C)&&$e(x)&&(a-=2,w+=2)}let f=0,y=c-1;const u=w=>w>=2&&n.charCodeAt(w-2)===37&&n.charCodeAt(w-1)===51&&(n.charCodeAt(w)===68||n.charCodeAt(w)===100);y>=0&&(n.charCodeAt(y)===61?(f++,y--):u(y)&&(f++,y-=3)),f===1&&y>=0&&(n.charCodeAt(y)===61||u(y))&&f++;const R=Math.floor(a/4)*3-(f||0);return R>0?R:0}let o=0;for(let a=0,c=n.length;a<c;a++){const f=n.charCodeAt(a);if(f===37&&Yn(n,a,c))o+=1,a+=2;else if(f<128)o+=1;else if(f<2048)o+=2;else if(f>=55296&&f<=56319&&a+1<c){const y=n.charCodeAt(a+1);y>=56320&&y<=57343?(o+=4,a++):o+=3}else o+=3}return o}const nt="1.18.0",Ht=64*1024,{isFunction:ze}=l,Qn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),Mt=e=>{if(!l.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Vt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Zn=e=>{const t=e.indexOf("://");let r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},es=e=>{const t=l.global!==void 0&&l.global!==null?l.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=l.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:s,Request:o,Response:a}=e,c=s?ze(s):typeof fetch=="function",f=ze(o),y=ze(a);if(!c)return!1;const u=c&&ze(r),d=c&&(typeof n=="function"?(h=>O=>h.encode(O))(new n):async h=>new Uint8Array(await new o(h).arrayBuffer())),R=f&&u&&Vt(()=>{let h=!1;const O=new o(B.origin,{body:new r,method:"POST",get duplex(){return h=!0,"half"}}),T=O.headers.has("Content-Type");return O.body!=null&&O.body.cancel(),h&&!T}),w=y&&u&&Vt(()=>l.isReadableStream(new a("").body)),C={stream:w&&(h=>h.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!C[h]&&(C[h]=(O,T)=>{let E=O&&O[h];if(E)return E.call(O);throw new S(`Response type '${h}' is not supported`,S.ERR_NOT_SUPPORT,T)})});const x=async h=>{if(h==null)return 0;if(l.isBlob(h))return h.size;if(l.isSpecCompliantForm(h))return(await new o(B.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(l.isArrayBufferView(h)||l.isArrayBuffer(h))return h.byteLength;if(l.isURLSearchParams(h)&&(h=h+""),l.isString(h))return(await d(h)).byteLength},g=async(h,O)=>{const T=l.toFiniteNumber(h.getContentLength());return T??x(O)};return async h=>{let{url:O,method:T,data:E,signal:v,cancelToken:k,timeout:F,onDownloadProgress:H,onUploadProgress:M,responseType:Y,headers:X,withCredentials:Q="same-origin",fetchOptions:ce,maxContentLength:V,maxBodyLength:Z}=$t(h);const re=l.isNumber(V)&&V>-1,ie=l.isNumber(Z)&&Z>-1,ye=N=>l.hasOwnProp(h,N)?h[N]:void 0;let ue=s||fetch;Y=Y?(Y+"").toLowerCase():"text";let J=Jn([v,k&&k.toAbortSignal()],F),i=null;const b=J&&J.unsubscribe&&(()=>{J.unsubscribe()});let _,j=null;const ne=()=>new S("Request body larger than maxBodyLength limit",S.ERR_BAD_REQUEST,h,i);try{let N;const A=ye("auth");if(A){const P=l.getSafeProp(A,"username")||"",K=l.getSafeProp(A,"password")||"";N={username:P,password:K}}if(Zn(O)){const P=new URL(O,B.origin);if(!N&&(P.username||P.password)){const K=Mt(P.username),fe=Mt(P.password);N={username:K,password:fe}}(P.username||P.password)&&(P.username="",P.password="",O=P.href)}if(N&&(X.delete("authorization"),X.set("Authorization","Basic "+btoa(Qn((N.username||"")+":"+(N.password||""))))),re&&typeof O=="string"&&O.startsWith("data:")&&Xn(O)>V)throw new S("maxContentLength size of "+V+" exceeded",S.ERR_BAD_RESPONSE,h,i);if(ie&&T!=="get"&&T!=="head"){const P=await x(E);if(typeof P=="number"&&isFinite(P)&&(_=P,P>Z))throw ne()}const L=ie&&(l.isReadableStream(E)||l.isStream(E)),oe=(P,K,fe)=>zt(P,Ht,be=>{if(ie&&be>Z)throw j=ne();K&&K(be)},fe);if(R&&T!=="get"&&T!=="head"&&(M||L)){if(_=_??await g(X,E),_!==0||L){let P=new o(O,{method:"POST",body:E,duplex:"half"}),K;if(l.isFormData(E)&&(K=P.headers.get("content-type"))&&X.setContentType(K),P.body){const[fe,be]=M&&Ft(_,qe(Ut(M)))||[];E=oe(P.body,fe,be)}}}else if(L&&!f&&u&&T!=="get"&&T!=="head")E=oe(E);else if(L&&f&&!R&&T!=="get"&&T!=="head")throw new S("Stream request bodies are not supported by the current fetch implementation",S.ERR_NOT_SUPPORT,h,i);l.isString(Q)||(Q=Q?"include":"omit");const ve=f&&"credentials"in o.prototype;if(l.isFormData(E)){const P=X.getContentType();P&&/^multipart\/form-data/i.test(P)&&!/boundary=/i.test(P)&&X.delete("content-type")}X.set("User-Agent","axios/"+nt,!1);const ar={...ce,signal:J,method:T.toUpperCase(),headers:Rt(X.normalize()),body:E,duplex:"half",credentials:ve?Q:void 0};i=f&&new o(O,ar);let ae=await(f?ue(i,ce):ue(O,ar));const lr=q.from(ae.headers);if(re){const P=l.toFiniteNumber(lr.getContentLength());if(P!=null&&P>V)throw new S("maxContentLength size of "+V+" exceeded",S.ERR_BAD_RESPONSE,h,i)}const lt=w&&(Y==="stream"||Y==="response");if(w&&ae.body&&(H||re||lt&&b)){const P={};["status","statusText","headers"].forEach(ke=>{P[ke]=ae[ke]});const K=l.toFiniteNumber(lr.getContentLength()),[fe,be]=H&&Ft(K,qe(Ut(H),!0))||[];let cr=0;const Rs=ke=>{if(re&&(cr=ke,cr>V))throw new S("maxContentLength size of "+V+" exceeded",S.ERR_BAD_RESPONSE,h,i);fe&&fe(ke)};ae=new a(zt(ae.body,Ht,Rs,()=>{be&&be(),b&&b()}),P)}Y=Y||"text";let le=await C[l.findKey(C,Y)||"text"](ae,h);if(re&&!w&&!lt){let P;if(le!=null&&(typeof le.byteLength=="number"?P=le.byteLength:typeof le.size=="number"?P=le.size:typeof le=="string"&&(P=typeof n=="function"?new n().encode(le).byteLength:le.length)),typeof P=="number"&&P>V)throw new S("maxContentLength size of "+V+" exceeded",S.ERR_BAD_RESPONSE,h,i)}return!lt&&b&&b(),await new Promise((P,K)=>{Dt(P,K,{data:le,headers:q.from(ae.headers),status:ae.status,statusText:ae.statusText,config:h,request:i})})}catch(N){if(b&&b(),J&&J.aborted&&J.reason instanceof S){const A=J.reason;throw A.config=h,i&&(A.request=i),N!==A&&(A.cause=N),A}throw j?(i&&!j.request&&(j.request=i),j):N instanceof S?(i&&!N.request&&(N.request=i),N):N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new S("Network Error",S.ERR_NETWORK,h,i,N&&N.response),{cause:N.cause||N}):S.from(N,N&&N.code,h,i,N&&N.response)}}},ts=new Map,Jt=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:s}=t,o=[n,s,r];let a=o.length,c=a,f,y,u=ts;for(;c--;)f=o[c],y=u.get(f),y===void 0&&u.set(f,y=c?new Map:es(t)),u=y;return y};Jt();const st={http:En,xhr:Vn,fetch:{get:Jt}};l.forEach(st,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Wt=e=>`- ${e}`,rs=e=>l.isFunction(e)||e===null||e===!1;function ns(e,t){e=l.isArray(e)?e:[e];const{length:r}=e;let n,s;const o={};for(let a=0;a<r;a++){n=e[a];let c;if(s=n,!rs(n)&&(s=st[(c=String(n)).toLowerCase()],s===void 0))throw new S(`Unknown adapter '${c}'`);if(s&&(l.isFunction(s)||(s=s.get(t))))break;o[c||"#"+a]=s}if(!s){const a=Object.entries(o).map(([f,y])=>`adapter ${f} `+(y===!1?"is not supported by the environment":"is not available in the build"));let c=r?a.length>1?`since :
25
- `+a.map(Wt).join(`
26
- `):" "+Wt(a[0]):"as no adapter specified";throw new S("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const Kt={getAdapter:ns,adapters:st};function ot(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function Gt(e){return ot(e),e.headers=q.from(e.headers),e.data=rt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Kt.getAdapter(e.adapter||Ce.adapter,e)(e).then(function(n){ot(e),e.response=n;try{n.data=rt.call(e,e.transformResponse,n)}finally{delete e.response}return n.headers=q.from(n.headers),n},function(n){if(!It(n)&&(ot(e),n&&n.response)){e.response=n.response;try{n.response.data=rt.call(e,e.transformResponse,n.response)}finally{delete e.response}n.response.headers=q.from(n.response.headers)}return Promise.reject(n)})}const He={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{He[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Yt={};He.transitional=function(t,r,n){function s(o,a){return"[Axios v"+nt+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return(o,a,c)=>{if(t===!1)throw new S(s(a," has been removed"+(r?" in "+r:"")),S.ERR_DEPRECATED);return r&&!Yt[a]&&(Yt[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,c):!0}},He.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function ss(e,t,r){if(typeof e!="object")throw new S("options must be an object",S.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const o=n[s],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){const c=e[o],f=c===void 0||a(c,o,e);if(f!==!0)throw new S("option "+o+" must be "+f,S.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new S("Unknown option "+o,S.ERR_BAD_OPTION)}}const Me={assertOptions:ss,validators:He},$=Me.validators;let me=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Pt,response:new Pt}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=(()=>{if(!s.stack)return"";const a=s.stack.indexOf(`
22
+ <%s key={someKey} {...props} />`,j,A,U,A),W[A+j]=!0)}if(A=null,_!==void 0&&(r(_),A=""+_),a(b)&&(r(b.key),A=""+b.key),"key"in b){_={};for(var oe in b)oe!=="key"&&(_[oe]=b[oe])}else _=b;return A&&c(_,typeof i=="function"?i.displayName||i.name||"Unknown":i),y(i,A,_,s(),ne,N)}function d(i){R(i)?i._store&&(i._store.validated=1):typeof i=="object"&&i!==null&&i.$$typeof===M&&(i._payload.status==="fulfilled"?R(i._payload.value)&&i._payload.value._store&&(i._payload.value._store.validated=1):i._store&&(i._store.validated=1))}function R(i){return typeof i=="object"&&i!==null&&i.$$typeof===C}var w=I,C=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),E=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),Q=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Object.prototype.hasOwnProperty,J=Array.isArray,Z=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(i){return i()}};var re,ie={},ye=w.react_stack_bottom_frame.bind(w,o)(),ue=Z(n(o)),W={};Oe.Fragment=g,Oe.jsx=function(i,b,_){var j=1e4>Q.recentlyCreatedOwnerStacks++;return u(i,b,_,!1,j?Error("react-stack-top-frame"):ye,j?Z(n(i)):ue)},Oe.jsxs=function(i,b,_){var j=1e4>Q.recentlyCreatedOwnerStacks++;return u(i,b,_,!0,j?Error("react-stack-top-frame"):ye,j?Z(n(i)):ue)}})()),Oe}var ft;function hr(){return ft||(ft=1,process.env.NODE_ENV==="production"?Ie.exports=dr():Ie.exports=pr()),Ie.exports}var p=hr();function dt(e,t){return function(){return e.apply(t,arguments)}}const{toString:mr}=Object.prototype,{getPrototypeOf:ge}=Object,{iterator:Te,toStringTag:pt}=Symbol,De=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),_e=(e,t)=>{let r=e;const n=[];for(;r!=null&&r!==Object.prototype;){if(n.indexOf(r)!==-1)return!1;if(n.push(r),De(r,t))return!0;r=ge(r)}return!1},yr=(e,t)=>e!=null&&_e(e,t)?e[t]:void 0,We=(e=>t=>{const r=mr.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),te=e=>(e=e.toLowerCase(),t=>We(t)===e),Le=e=>t=>typeof t===e,{isArray:de}=Array,Ee=Le("undefined");function Se(e){return e!==null&&!Ee(e)&&e.constructor!==null&&!Ee(e.constructor)&&H(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ht=te("ArrayBuffer");function br(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ht(e.buffer),t}const gr=Le("string"),H=Le("function"),mt=Le("number"),xe=e=>e!==null&&typeof e=="object",Er=e=>e===!0||e===!1,Fe=e=>{if(!xe(e))return!1;const t=ge(e);return(t===null||t===Object.prototype||ge(t)===null)&&!_e(e,pt)&&!_e(e,Te)},Sr=e=>{if(!xe(e)||Se(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},xr=te("Date"),wr=te("File"),Rr=e=>!!(e&&typeof e.uri<"u"),Or=e=>e&&typeof e.getParts<"u",Tr=te("Blob"),_r=te("FileList"),Ar=e=>xe(e)&&H(e.pipe);function jr(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const yt=jr(),bt=typeof yt.FormData<"u"?yt.FormData:void 0,Cr=e=>{if(!e)return!1;if(bt&&e instanceof bt)return!0;const t=ge(e);if(!t||t===Object.prototype||!H(e.append))return!1;const r=We(e);return r==="formdata"||r==="object"&&H(e.toString)&&e.toString()==="[object FormData]"},Pr=te("URLSearchParams"),[Nr,kr,vr,Ir]=["ReadableStream","Request","Response","Headers"].map(te),Dr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ae(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),de(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{if(Se(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let c;for(n=0;n<a;n++)c=o[n],t.call(null,e[c],c,e)}}function gt(e,t){if(Se(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const pe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Et=e=>!Ee(e)&&e!==pe;function Ke(...e){const{caseless:t,skipUndefined:r}=Et(this)&&this||{},n={},s=(o,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=t&&typeof a=="string"&&gt(n,a)||a,f=De(n,c)?n[c]:void 0;Fe(f)&&Fe(o)?n[c]=Ke(f,o):Fe(o)?n[c]=Ke({},o):de(o)?n[c]=o.slice():(!r||!Ee(o))&&(n[c]=o)};for(let o=0,a=e.length;o<a;o++){const c=e[o];if(!c||Se(c)||(Ae(c,s),typeof c!="object"||de(c)))continue;const f=Object.getOwnPropertySymbols(c);for(let y=0;y<f.length;y++){const u=f[y];Kr.call(c,u)&&s(c[u],u)}}return n}const Lr=(e,t,r,{allOwnKeys:n}={})=>(Ae(t,(s,o)=>{r&&H(s)?Object.defineProperty(e,o,{__proto__:null,value:dt(s,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),Fr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ur=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},Br=(e,t,r,n)=>{let s,o,a;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],(!n||n(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=r!==!1&&ge(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},qr=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},zr=e=>{if(!e)return null;if(de(e))return e;let t=e.length;if(!mt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Hr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ge(Uint8Array)),$r=(e,t)=>{const n=(e&&e[Te]).call(e);let s;for(;(s=n.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Mr=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Jr=te("HTMLFormElement"),Wr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),{propertyIsEnumerable:Kr}=Object.prototype,Xr=te("RegExp"),St=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ae(r,(s,o)=>{let a;(a=t(s,o,e))!==!1&&(n[o]=a||s)}),Object.defineProperties(e,n)},Vr=e=>{St(e,(t,r)=>{if(H(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];if(H(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Gr=(e,t)=>{const r={},n=s=>{s.forEach(o=>{r[o]=!0})};return de(e)?n(e):n(String(e).split(t)),r},Yr=()=>{},Qr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Zr(e){return!!(e&&H(e.append)&&e[pt]==="FormData"&&e[Te])}const en=e=>{const t=new WeakSet,r=n=>{if(xe(n)){if(t.has(n))return;if(Se(n))return n;if(!("toJSON"in n)){t.add(n);const s=de(n)?[]:{};return Ae(n,(o,a)=>{const c=r(o);!Ee(c)&&(s[a]=c)}),t.delete(n),s}}return n};return r(e)},tn=te("AsyncFunction"),rn=e=>e&&(xe(e)||H(e))&&H(e.then)&&H(e.catch),xt=((e,t)=>e?setImmediate:t?((r,n)=>(pe.addEventListener("message",({source:s,data:o})=>{s===pe&&o===r&&n.length&&n.shift()()},!1),s=>{n.push(s),pe.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",H(pe.postMessage)),nn=typeof queueMicrotask<"u"?queueMicrotask.bind(pe):typeof process<"u"&&process.nextTick||xt,wt=e=>e!=null&&H(e[Te]),l={isArray:de,isArrayBuffer:ht,isBuffer:Se,isFormData:Cr,isArrayBufferView:br,isString:gr,isNumber:mt,isBoolean:Er,isObject:xe,isPlainObject:Fe,isEmptyObject:Sr,isReadableStream:Nr,isRequest:kr,isResponse:vr,isHeaders:Ir,isUndefined:Ee,isDate:xr,isFile:wr,isReactNativeBlob:Rr,isReactNative:Or,isBlob:Tr,isRegExp:Xr,isFunction:H,isStream:Ar,isURLSearchParams:Pr,isTypedArray:Hr,isFileList:_r,forEach:Ae,merge:Ke,extend:Lr,trim:Dr,stripBOM:Fr,inherits:Ur,toFlatObject:Br,kindOf:We,kindOfTest:te,endsWith:qr,toArray:zr,forEachEntry:$r,matchAll:Mr,isHTMLForm:Jr,hasOwnProperty:De,hasOwnProp:De,hasOwnInPrototypeChain:_e,getSafeProp:yr,reduceDescriptors:St,freezeMethods:Vr,toObjectSet:Gr,toCamelCase:Wr,noop:Yr,toFiniteNumber:Qr,findKey:gt,global:pe,isContextDefined:Et,isSpecCompliantForm:Zr,toJSONObject:en,isAsyncFn:tn,isThenable:rn,setImmediate:xt,asap:nn,isIterable:wt,isSafeIterable:e=>e!=null&&_e(e,Te)&&wt(e)},sn=l.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"]),on=e=>{const t={};let r,n,s;return e&&e.split(`
23
+ `).forEach(function(a){s=a.indexOf(":"),r=a.substring(0,s).trim().toLowerCase(),n=a.substring(s+1).trim(),!(!r||t[r]&&sn[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};function an(e){let t=0,r=e.length;for(;t<r;){const n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){const n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}const ln=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),cn=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Xe(e,t){return l.isArray(e)?e.map(r=>Xe(r,t)):an(String(e).replace(t,""))}const un=e=>Xe(e,ln),fn=e=>Xe(e,cn);function Rt(e){const t=Object.create(null);return l.forEach(e.toJSON(),(r,n)=>{t[n]=fn(r)}),t}const Ot=Symbol("internals");function je(e){return e&&String(e).trim().toLowerCase()}function Ue(e){return e===!1||e==null?e:l.isArray(e)?e.map(Ue):un(String(e))}function dn(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const pn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ve(e,t,r,n,s){if(l.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!l.isString(t)){if(l.isString(n))return t.indexOf(n)!==-1;if(l.isRegExp(n))return n.test(t)}}function hn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function mn(e,t){const r=l.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(s,o,a){return this[n].call(this,t,s,o,a)},configurable:!0})})}let q=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function o(c,f,y){const u=je(f);if(!u)return;const d=l.findKey(s,u);(!d||s[d]===void 0||y===!0||y===void 0&&s[d]!==!1)&&(s[d||f]=Ue(c))}const a=(c,f)=>l.forEach(c,(y,u)=>o(y,u,f));if(l.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(l.isString(t)&&(t=t.trim())&&!pn(t))a(on(t),r);else if(l.isObject(t)&&l.isSafeIterable(t)){let c=Object.create(null),f,y;for(const u of t){if(!l.isArray(u))throw new TypeError("Object iterator must return a key-value pair");y=u[0],l.hasOwnProp(c,y)?(f=c[y],c[y]=l.isArray(f)?[...f,u[1]]:[f,u[1]]):c[y]=u[1]}a(c,r)}else t!=null&&o(r,t,n);return this}get(t,r){if(t=je(t),t){const n=l.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return dn(s);if(l.isFunction(r))return r.call(this,s,n);if(l.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=je(t),t){const n=l.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Ve(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function o(a){if(a=je(a),a){const c=l.findKey(n,a);c&&(!r||Ve(n,n[c],c,r))&&(delete n[c],s=!0)}}return l.isArray(t)?t.forEach(o):o(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const o=r[n];(!t||Ve(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const r=this,n={};return l.forEach(this,(s,o)=>{const a=l.findKey(n,o);if(a){r[a]=Ue(s),delete r[o];return}const c=t?hn(o):String(o).trim();c!==o&&delete r[o],r[c]=Ue(s),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return l.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&l.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
24
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[Ot]=this[Ot]={accessors:{}}).accessors,s=this.prototype;function o(a){const c=je(a);n[c]||(mn(s,a),n[c]=!0)}return l.isArray(t)?t.forEach(o):o(t),this}};q.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l.reduceDescriptors(q.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),l.freezeMethods(q);const yn="[REDACTED ****]";function bn(e){if(l.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(l.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function gn(e,t){const r=new Set(t.map(o=>String(o).toLowerCase())),n=[],s=o=>{if(o===null||typeof o!="object"||l.isBuffer(o))return o;if(n.indexOf(o)!==-1)return;o instanceof q&&(o=o.toJSON()),n.push(o);let a;if(l.isArray(o))a=[],o.forEach((c,f)=>{const y=s(c);l.isUndefined(y)||(a[f]=y)});else{if(!l.isPlainObject(o)&&bn(o))return n.pop(),o;a=Object.create(null);for(const[c,f]of Object.entries(o)){const y=r.has(c.toLowerCase())?yn:s(f);l.isUndefined(y)||(a[c]=y)}}return n.pop(),a};return s(e)}let S=class ur extends Error{static from(t,r,n,s,o,a){const c=new ur(t.message,r||t.code,n,s,o);return c.cause=t,c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),a&&Object.assign(c,a),c}constructor(t,r,n,s,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,r=t&&l.hasOwnProp(t,"redact")?t.redact:void 0,n=l.isArray(r)&&r.length>0?gn(t,r):l.toJSONObject(t);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:n,code:this.code,status:this.status}}};S.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",S.ERR_BAD_OPTION="ERR_BAD_OPTION",S.ECONNABORTED="ECONNABORTED",S.ETIMEDOUT="ETIMEDOUT",S.ECONNREFUSED="ECONNREFUSED",S.ERR_NETWORK="ERR_NETWORK",S.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",S.ERR_DEPRECATED="ERR_DEPRECATED",S.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",S.ERR_BAD_REQUEST="ERR_BAD_REQUEST",S.ERR_CANCELED="ERR_CANCELED",S.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",S.ERR_INVALID_URL="ERR_INVALID_URL",S.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const En=null,Tt=100;function Ge(e){return l.isPlainObject(e)||l.isArray(e)}function _t(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function Ye(e,t,r){return e?e.concat(t).map(function(s,o){return s=_t(s),!r&&o?"["+s+"]":s}).join(r?".":""):t}function Sn(e){return l.isArray(e)&&!e.some(Ge)}const xn=l.toFlatObject(l,{},null,function(t){return/^is[A-Z]/.test(t)});function Be(e,t,r){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=l.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,T){return!l.isUndefined(T[O])});const n=r.metaTokens,s=r.visitor||C,o=r.dots,a=r.indexes,c=r.Blob||typeof Blob<"u"&&Blob,f=r.maxDepth===void 0?Tt:r.maxDepth,y=c&&l.isSpecCompliantForm(t),u=[];if(!l.isFunction(s))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(l.isDate(h))return h.toISOString();if(l.isBoolean(h))return h.toString();if(!y&&l.isBlob(h))throw new S("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(h)||l.isTypedArray(h)?y&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function R(h){if(h>f)throw new S("Object is too deeply nested ("+h+" levels). Max depth: "+f,S.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w(h,O){if(f===1/0)return JSON.stringify(h);const T=[];return JSON.stringify(h,function(k,v){if(!l.isObject(v))return v;for(;T.length&&T[T.length-1]!==this;)T.pop();return T.push(v),R(O+T.length-1),v})}function C(h,O,T){let E=h;if(l.isReactNative(t)&&l.isReactNativeBlob(h))return t.append(Ye(T,O,o),d(h)),!1;if(h&&!T&&typeof h=="object"){if(l.endsWith(O,"{}"))O=n?O:O.slice(0,-2),h=w(h,1);else if(l.isArray(h)&&Sn(h)||(l.isFileList(h)||l.endsWith(O,"[]"))&&(E=l.toArray(h)))return O=_t(O),E.forEach(function(v,L){!(l.isUndefined(v)||v===null)&&t.append(a===!0?Ye([O],L,o):a===null?O:O+"[]",d(v))}),!1}return Ge(h)?!0:(t.append(Ye(T,O,o),d(h)),!1)}const x=Object.assign(xn,{defaultVisitor:C,convertValue:d,isVisitable:Ge});function g(h,O,T=0){if(!l.isUndefined(h)){if(R(T),u.indexOf(h)!==-1)throw new Error("Circular reference detected in "+O.join("."));u.push(h),l.forEach(h,function(k,v){(!(l.isUndefined(k)||k===null)&&s.call(t,k,l.isString(v)?v.trim():v,O,x))===!0&&g(k,O?O.concat(v):[v],T+1)}),u.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return g(e),t}function At(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(n){return t[n]})}function Qe(e,t){this._pairs=[],e&&Be(e,this,t)}const jt=Qe.prototype;jt.append=function(t,r){this._pairs.push([t,r])},jt.toString=function(t){const r=t?function(n){return t.call(this,n,At)}:At;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function wn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ct(e,t,r){if(!t)return e;const n=l.isFunction(r)?{serialize:r}:r,s=l.getSafeProp(n,"encode")||wn,o=l.getSafeProp(n,"serialize");let a;if(o?a=o(t,n):a=l.isURLSearchParams(t)?t.toString():new Qe(t,n).toString(s),a){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Pt{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,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){l.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ze={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Rn={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Qe,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},et=typeof window<"u"&&typeof document<"u",tt=typeof navigator=="object"&&navigator||void 0,On=et&&(!tt||["ReactNative","NativeScript","NS"].indexOf(tt.product)<0),Tn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_n=et&&window.location.href||"http://localhost",B={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:et,hasStandardBrowserEnv:On,hasStandardBrowserWebWorkerEnv:Tn,navigator:tt,origin:_n},Symbol.toStringTag,{value:"Module"})),...Rn};function An(e,t){return Be(e,new B.classes.URLSearchParams,{visitor:function(r,n,s,o){return B.isNode&&l.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const Nt=Tt;function kt(e){if(e>Nt)throw new S("FormData field is too deeply nested ("+e+" levels). Max depth: "+Nt,S.ERR_FORM_DATA_DEPTH_EXCEEDED)}function jn(e){const t=[],r=/\w+|\[(\w*)]/g;let n;for(;(n=r.exec(e))!==null;)kt(t.length),t.push(n[0]==="[]"?"":n[1]||n[0]);return t}function Cn(e){const t={},r=Object.keys(e);let n;const s=r.length;let o;for(n=0;n<s;n++)o=r[n],t[o]=e[o];return t}function vt(e){function t(r,n,s,o){kt(o);let a=r[o++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),f=o>=r.length;return a=!a&&l.isArray(s)?s.length:a,f?(l.hasOwnProp(s,a)?s[a]=l.isArray(s[a])?s[a].concat(n):[s[a],n]:s[a]=n,!c):((!l.hasOwnProp(s,a)||!l.isObject(s[a]))&&(s[a]=[]),t(r,n,s[a],o)&&l.isArray(s[a])&&(s[a]=Cn(s[a])),!c)}if(l.isFormData(e)&&l.isFunction(e.entries)){const r={};return l.forEachEntry(e,(n,s)=>{t(jn(n),s,r,0)}),r}return null}const we=(e,t)=>e!=null&&l.hasOwnProp(e,t)?e[t]:void 0;function Pn(e,t,r){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ce={transitional:Ze,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,o=l.isObject(t);if(o&&l.isHTMLForm(t)&&(t=new FormData(t)),l.isFormData(t))return s?JSON.stringify(vt(t)):t;if(l.isArrayBuffer(t)||l.isBuffer(t)||l.isStream(t)||l.isFile(t)||l.isBlob(t)||l.isReadableStream(t))return t;if(l.isArrayBufferView(t))return t.buffer;if(l.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){const f=we(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return An(t,f).toString();if((c=l.isFileList(t))||n.indexOf("multipart/form-data")>-1){const y=we(this,"env"),u=y&&y.FormData;return Be(c?{"files[]":t}:t,u&&new u,f)}}return o||s?(r.setContentType("application/json",!1),Pn(t)):t}],transformResponse:[function(t){const r=we(this,"transitional")||Ce.transitional,n=r&&r.forcedJSONParsing,s=we(this,"responseType"),o=s==="json";if(l.isResponse(t)||l.isReadableStream(t))return t;if(t&&l.isString(t)&&(n&&!s||o)){const c=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,we(this,"parseReviver"))}catch(f){if(c)throw f.name==="SyntaxError"?S.from(f,S.ERR_BAD_RESPONSE,this,null,we(this,"response")):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:B.classes.FormData,Blob:B.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch","query"],e=>{Ce.headers[e]={}});function rt(e,t){const r=this||Ce,n=t||r,s=q.from(n.headers);let o=n.data;return l.forEach(e,function(c){o=c.call(r,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function It(e){return!!(e&&e.__CANCEL__)}let Pe=class extends S{constructor(t,r,n){super(t??"canceled",S.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Dt(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new S("Request failed with status code "+r.status,r.status>=400&&r.status<500?S.ERR_BAD_REQUEST:S.ERR_BAD_RESPONSE,r.config,r.request,r))}function Nn(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function kn(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,o=0,a;return t=t!==void 0?t:1e3,function(f){const y=Date.now(),u=n[o];a||(a=y),r[s]=f,n[s]=y;let d=o,R=0;for(;d!==s;)R+=r[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),y-a<t)return;const w=u&&y-u;return w?Math.round(R*1e3/w):void 0}}function vn(e,t){let r=0,n=1e3/t,s,o;const a=(y,u=Date.now())=>{r=u,s=null,o&&(clearTimeout(o),o=null),e(...y)};return[(...y)=>{const u=Date.now(),d=u-r;d>=n?a(y,u):(s=y,o||(o=setTimeout(()=>{o=null,a(s)},n-d)))},()=>s&&a(s)]}const qe=(e,t,r=3)=>{let n=0;const s=kn(50,250);return vn(o=>{if(!o||typeof o.loaded!="number")return;const a=o.loaded,c=o.lengthComputable?o.total:void 0,f=c!=null?Math.min(a,c):a,y=Math.max(0,f-n),u=s(y);n=Math.max(n,f);const d={loaded:f,total:c,progress:c?f/c:void 0,bytes:y,rate:u||void 0,estimated:u&&c?(c-f)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},r)},Lt=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ft=e=>(...t)=>l.asap(()=>e(...t)),In=B.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,B.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(B.origin),B.navigator&&/(msie|trident)/i.test(B.navigator.userAgent)):()=>!0,Dn=B.hasStandardBrowserEnv?{write(e,t,r,n,s,o,a){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];l.isNumber(r)&&c.push(`expires=${new Date(r).toUTCString()}`),l.isString(n)&&c.push(`path=${n}`),l.isString(s)&&c.push(`domain=${s}`),o===!0&&c.push("secure"),l.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let r=0;r<t.length;r++){const n=t[r].replace(/^\s+/,""),s=n.indexOf("=");if(s!==-1&&n.slice(0,s)===e)return decodeURIComponent(n.slice(s+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ln(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Fn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const Un=/^https?:(?!\/\/)/i,Bn=/[\t\n\r]/g;function qn(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function zn(e){return qn(e).replace(Bn,"")}function Ut(e,t){if(typeof e=="string"&&Un.test(zn(e)))throw new S('Invalid URL: missing "//" after protocol',S.ERR_INVALID_URL,t)}function Bt(e,t,r,n){Ut(t,n);let s=!Ln(t);return e&&(s||r===!1)?(Ut(e,n),Fn(e,t)):t}const qt=e=>e instanceof q?{...e}:e;function he(e,t){t=t||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(u,d,R,w){return l.isPlainObject(u)&&l.isPlainObject(d)?l.merge.call({caseless:w},u,d):l.isPlainObject(d)?l.merge({},d):l.isArray(d)?d.slice():d}function s(u,d,R,w){if(l.isUndefined(d)){if(!l.isUndefined(u))return n(void 0,u,R,w)}else return n(u,d,R,w)}function o(u,d){if(!l.isUndefined(d))return n(void 0,d)}function a(u,d){if(l.isUndefined(d)){if(!l.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function c(u){const d=l.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!l.isUndefined(d))if(l.isPlainObject(d)){if(l.hasOwnProp(d,u))return d[u]}else return;const R=l.hasOwnProp(e,"transitional")?e.transitional:void 0;if(l.isPlainObject(R)&&l.hasOwnProp(R,u))return R[u]}function f(u,d,R){if(l.hasOwnProp(t,R))return n(u,d);if(l.hasOwnProp(e,R))return n(void 0,u)}const y={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:f,headers:(u,d,R)=>s(qt(u),qt(d),R,!0)};return l.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const R=l.hasOwnProp(y,d)?y[d]:s,w=l.hasOwnProp(e,d)?e[d]:void 0,C=l.hasOwnProp(t,d)?t[d]:void 0,x=R(w,C,d);l.isUndefined(x)&&R!==f||(r[d]=x)}),l.hasOwnProp(t,"validateStatus")&&l.isUndefined(t.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(l.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}const Hn=["content-type","content-length"];function $n(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([n,s])=>{Hn.includes(n.toLowerCase())&&e.set(n,s)})}const Mn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16)));function zt(e){const t=he({},e),r=R=>l.hasOwnProp(t,R)?t[R]:void 0,n=r("data");let s=r("withXSRFToken");const o=r("xsrfHeaderName"),a=r("xsrfCookieName");let c=r("headers");const f=r("auth"),y=r("baseURL"),u=r("allowAbsoluteUrls"),d=r("url");if(t.headers=c=q.from(c),t.url=Ct(Bt(y,d,u,t),r("params"),r("paramsSerializer")),f){const R=l.getSafeProp(f,"username")||"",w=l.getSafeProp(f,"password")||"";c.set("Authorization","Basic "+btoa(R+":"+(w?Mn(w):"")))}if(l.isFormData(n)&&(B.hasStandardBrowserEnv||B.hasStandardBrowserWebWorkerEnv||l.isReactNative(n)?c.setContentType(void 0):l.isFunction(n.getHeaders)&&$n(c,n.getHeaders(),r("formDataHeaderPolicy"))),B.hasStandardBrowserEnv&&(l.isFunction(s)&&(s=s(t)),s===!0||s==null&&In(t.url))){const w=o&&a&&Dn.read(a);w&&c.set(o,w)}return t}const Jn=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const s=zt(e);let o=s.data;const a=q.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:y}=s,u,d,R,w,C;function x(){w&&w(),C&&C(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(s.method.toUpperCase(),s.url,!0),g.timeout=s.timeout;function h(){if(!g)return;const T=q.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),k={data:!c||c==="text"||c==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:T,config:e,request:g};Dt(function(L){r(L),x()},function(L){n(L),x()},k),g=null}"onloadend"in g?g.onloadend=h:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith("file:"))||setTimeout(h)},g.onabort=function(){g&&(n(new S("Request aborted",S.ECONNABORTED,e,g)),x(),g=null)},g.onerror=function(E){const k=E&&E.message?E.message:"Network Error",v=new S(k,S.ERR_NETWORK,e,g);v.event=E||null,n(v),x(),g=null},g.ontimeout=function(){let E=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const k=s.transitional||Ze;s.timeoutErrorMessage&&(E=s.timeoutErrorMessage),n(new S(E,k.clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,e,g)),x(),g=null},o===void 0&&a.setContentType(null),"setRequestHeader"in g&&l.forEach(Rt(a),function(E,k){g.setRequestHeader(k,E)}),l.isUndefined(s.withCredentials)||(g.withCredentials=!!s.withCredentials),c&&c!=="json"&&(g.responseType=s.responseType),y&&([R,C]=qe(y,!0),g.addEventListener("progress",R)),f&&g.upload&&([d,w]=qe(f),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(u=T=>{g&&(n(!T||T.type?new Pe(null,e,g):T),g.abort(),x(),g=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const O=Nn(s.url);if(O&&!B.protocols.includes(O)){n(new S("Unsupported protocol "+O+":",S.ERR_BAD_REQUEST,e));return}g.send(o||null)})},Wn=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const s=function(f){if(!n){n=!0,a();const y=f instanceof Error?f:this.reason;r.abort(y instanceof S?y:new Pe(y instanceof Error?y.message:y))}};let o=t&&setTimeout(()=>{o=null,s(new S(`timeout of ${t}ms exceeded`,S.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(s):f.removeEventListener("abort",s)}),e=null)};e.forEach(f=>f.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>l.asap(a),c},Kn=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},Xn=async function*(e,t){for await(const r of Vn(e))yield*Kn(r,t)},Vn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Ht=(e,t,r,n)=>{const s=Xn(e,t);let o=0,a,c=f=>{a||(a=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:y,value:u}=await s.next();if(y){c(),f.close();return}let d=u.byteLength;if(r){let R=o+=d;r(R)}f.enqueue(new Uint8Array(u))}catch(y){throw c(y),y}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},ze=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Gn=(e,t,r)=>t+2<r&&ze(e.charCodeAt(t+1))&&ze(e.charCodeAt(t+2));function Yn(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let a=n.length;const c=n.length;for(let w=0;w<c;w++)if(n.charCodeAt(w)===37&&w+2<c){const C=n.charCodeAt(w+1),x=n.charCodeAt(w+2);ze(C)&&ze(x)&&(a-=2,w+=2)}let f=0,y=c-1;const u=w=>w>=2&&n.charCodeAt(w-2)===37&&n.charCodeAt(w-1)===51&&(n.charCodeAt(w)===68||n.charCodeAt(w)===100);y>=0&&(n.charCodeAt(y)===61?(f++,y--):u(y)&&(f++,y-=3)),f===1&&y>=0&&(n.charCodeAt(y)===61||u(y))&&f++;const R=Math.floor(a/4)*3-(f||0);return R>0?R:0}let o=0;for(let a=0,c=n.length;a<c;a++){const f=n.charCodeAt(a);if(f===37&&Gn(n,a,c))o+=1,a+=2;else if(f<128)o+=1;else if(f<2048)o+=2;else if(f>=55296&&f<=56319&&a+1<c){const y=n.charCodeAt(a+1);y>=56320&&y<=57343?(o+=4,a++):o+=3}else o+=3}return o}const nt="1.18.0",$t=64*1024,{isFunction:He}=l,Qn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),Mt=e=>{if(!l.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Jt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Zn=e=>{const t=e.indexOf("://");let r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},es=e=>{const t=l.global!==void 0&&l.global!==null?l.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=l.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:s,Request:o,Response:a}=e,c=s?He(s):typeof fetch=="function",f=He(o),y=He(a);if(!c)return!1;const u=c&&He(r),d=c&&(typeof n=="function"?(h=>O=>h.encode(O))(new n):async h=>new Uint8Array(await new o(h).arrayBuffer())),R=f&&u&&Jt(()=>{let h=!1;const O=new o(B.origin,{body:new r,method:"POST",get duplex(){return h=!0,"half"}}),T=O.headers.has("Content-Type");return O.body!=null&&O.body.cancel(),h&&!T}),w=y&&u&&Jt(()=>l.isReadableStream(new a("").body)),C={stream:w&&(h=>h.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!C[h]&&(C[h]=(O,T)=>{let E=O&&O[h];if(E)return E.call(O);throw new S(`Response type '${h}' is not supported`,S.ERR_NOT_SUPPORT,T)})});const x=async h=>{if(h==null)return 0;if(l.isBlob(h))return h.size;if(l.isSpecCompliantForm(h))return(await new o(B.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(l.isArrayBufferView(h)||l.isArrayBuffer(h))return h.byteLength;if(l.isURLSearchParams(h)&&(h=h+""),l.isString(h))return(await d(h)).byteLength},g=async(h,O)=>{const T=l.toFiniteNumber(h.getContentLength());return T??x(O)};return async h=>{let{url:O,method:T,data:E,signal:k,cancelToken:v,timeout:L,onDownloadProgress:$,onUploadProgress:M,responseType:G,headers:Y,withCredentials:Q="same-origin",fetchOptions:ce,maxContentLength:J,maxBodyLength:Z}=zt(h);const re=l.isNumber(J)&&J>-1,ie=l.isNumber(Z)&&Z>-1,ye=N=>l.hasOwnProp(h,N)?h[N]:void 0;let ue=s||fetch;G=G?(G+"").toLowerCase():"text";let W=Wn([k,v&&v.toAbortSignal()],L),i=null;const b=W&&W.unsubscribe&&(()=>{W.unsubscribe()});let _,j=null;const ne=()=>new S("Request body larger than maxBodyLength limit",S.ERR_BAD_REQUEST,h,i);try{let N;const A=ye("auth");if(A){const P=l.getSafeProp(A,"username")||"",X=l.getSafeProp(A,"password")||"";N={username:P,password:X}}if(Zn(O)){const P=new URL(O,B.origin);if(!N&&(P.username||P.password)){const X=Mt(P.username),fe=Mt(P.password);N={username:X,password:fe}}(P.username||P.password)&&(P.username="",P.password="",O=P.href)}if(N&&(Y.delete("authorization"),Y.set("Authorization","Basic "+btoa(Qn((N.username||"")+":"+(N.password||""))))),re&&typeof O=="string"&&O.startsWith("data:")&&Yn(O)>J)throw new S("maxContentLength size of "+J+" exceeded",S.ERR_BAD_RESPONSE,h,i);if(ie&&T!=="get"&&T!=="head"){const P=await x(E);if(typeof P=="number"&&isFinite(P)&&(_=P,P>Z))throw ne()}const U=ie&&(l.isReadableStream(E)||l.isStream(E)),oe=(P,X,fe)=>Ht(P,$t,be=>{if(ie&&be>Z)throw j=ne();X&&X(be)},fe);if(R&&T!=="get"&&T!=="head"&&(M||U)){if(_=_??await g(Y,E),_!==0||U){let P=new o(O,{method:"POST",body:E,duplex:"half"}),X;if(l.isFormData(E)&&(X=P.headers.get("content-type"))&&Y.setContentType(X),P.body){const[fe,be]=M&&Lt(_,qe(Ft(M)))||[];E=oe(P.body,fe,be)}}}else if(U&&!f&&u&&T!=="get"&&T!=="head")E=oe(E);else if(U&&f&&!R&&T!=="get"&&T!=="head")throw new S("Stream request bodies are not supported by the current fetch implementation",S.ERR_NOT_SUPPORT,h,i);l.isString(Q)||(Q=Q?"include":"omit");const ke=f&&"credentials"in o.prototype;if(l.isFormData(E)){const P=Y.getContentType();P&&/^multipart\/form-data/i.test(P)&&!/boundary=/i.test(P)&&Y.delete("content-type")}Y.set("User-Agent","axios/"+nt,!1);const ar={...ce,signal:W,method:T.toUpperCase(),headers:Rt(Y.normalize()),body:E,duplex:"half",credentials:ke?Q:void 0};i=f&&new o(O,ar);let ae=await(f?ue(i,ce):ue(O,ar));const lr=q.from(ae.headers);if(re){const P=l.toFiniteNumber(lr.getContentLength());if(P!=null&&P>J)throw new S("maxContentLength size of "+J+" exceeded",S.ERR_BAD_RESPONSE,h,i)}const lt=w&&(G==="stream"||G==="response");if(w&&ae.body&&($||re||lt&&b)){const P={};["status","statusText","headers"].forEach(ve=>{P[ve]=ae[ve]});const X=l.toFiniteNumber(lr.getContentLength()),[fe,be]=$&&Lt(X,qe(Ft($),!0))||[];let cr=0;const Rs=ve=>{if(re&&(cr=ve,cr>J))throw new S("maxContentLength size of "+J+" exceeded",S.ERR_BAD_RESPONSE,h,i);fe&&fe(ve)};ae=new a(Ht(ae.body,$t,Rs,()=>{be&&be(),b&&b()}),P)}G=G||"text";let le=await C[l.findKey(C,G)||"text"](ae,h);if(re&&!w&&!lt){let P;if(le!=null&&(typeof le.byteLength=="number"?P=le.byteLength:typeof le.size=="number"?P=le.size:typeof le=="string"&&(P=typeof n=="function"?new n().encode(le).byteLength:le.length)),typeof P=="number"&&P>J)throw new S("maxContentLength size of "+J+" exceeded",S.ERR_BAD_RESPONSE,h,i)}return!lt&&b&&b(),await new Promise((P,X)=>{Dt(P,X,{data:le,headers:q.from(ae.headers),status:ae.status,statusText:ae.statusText,config:h,request:i})})}catch(N){if(b&&b(),W&&W.aborted&&W.reason instanceof S){const A=W.reason;throw A.config=h,i&&(A.request=i),N!==A&&(A.cause=N),A}throw j?(i&&!j.request&&(j.request=i),j):N instanceof S?(i&&!N.request&&(N.request=i),N):N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new S("Network Error",S.ERR_NETWORK,h,i,N&&N.response),{cause:N.cause||N}):S.from(N,N&&N.code,h,i,N&&N.response)}}},ts=new Map,Wt=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:s}=t,o=[n,s,r];let a=o.length,c=a,f,y,u=ts;for(;c--;)f=o[c],y=u.get(f),y===void 0&&u.set(f,y=c?new Map:es(t)),u=y;return y};Wt();const st={http:En,xhr:Jn,fetch:{get:Wt}};l.forEach(st,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Kt=e=>`- ${e}`,rs=e=>l.isFunction(e)||e===null||e===!1;function ns(e,t){e=l.isArray(e)?e:[e];const{length:r}=e;let n,s;const o={};for(let a=0;a<r;a++){n=e[a];let c;if(s=n,!rs(n)&&(s=st[(c=String(n)).toLowerCase()],s===void 0))throw new S(`Unknown adapter '${c}'`);if(s&&(l.isFunction(s)||(s=s.get(t))))break;o[c||"#"+a]=s}if(!s){const a=Object.entries(o).map(([f,y])=>`adapter ${f} `+(y===!1?"is not supported by the environment":"is not available in the build"));let c=r?a.length>1?`since :
25
+ `+a.map(Kt).join(`
26
+ `):" "+Kt(a[0]):"as no adapter specified";throw new S("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const Xt={getAdapter:ns,adapters:st};function ot(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function Vt(e){return ot(e),e.headers=q.from(e.headers),e.data=rt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xt.getAdapter(e.adapter||Ce.adapter,e)(e).then(function(n){ot(e),e.response=n;try{n.data=rt.call(e,e.transformResponse,n)}finally{delete e.response}return n.headers=q.from(n.headers),n},function(n){if(!It(n)&&(ot(e),n&&n.response)){e.response=n.response;try{n.response.data=rt.call(e,e.transformResponse,n.response)}finally{delete e.response}n.response.headers=q.from(n.response.headers)}return Promise.reject(n)})}const $e={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$e[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Gt={};$e.transitional=function(t,r,n){function s(o,a){return"[Axios v"+nt+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return(o,a,c)=>{if(t===!1)throw new S(s(a," has been removed"+(r?" in "+r:"")),S.ERR_DEPRECATED);return r&&!Gt[a]&&(Gt[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,c):!0}},$e.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function ss(e,t,r){if(typeof e!="object")throw new S("options must be an object",S.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const o=n[s],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){const c=e[o],f=c===void 0||a(c,o,e);if(f!==!0)throw new S("option "+o+" must be "+f,S.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new S("Unknown option "+o,S.ERR_BAD_OPTION)}}const Me={assertOptions:ss,validators:$e},z=Me.validators;let me=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Pt,response:new Pt}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=(()=>{if(!s.stack)return"";const a=s.stack.indexOf(`
27
27
  `);return a===-1?"":s.stack.slice(a+1)})();try{if(!n.stack)n.stack=o;else if(o){const a=o.indexOf(`
28
28
  `),c=a===-1?-1:o.indexOf(`
29
29
  `,a+1),f=c===-1?"":o.slice(c+1);String(n.stack).endsWith(f)||(n.stack+=`
30
- `+o)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=he(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:o}=r;n!==void 0&&Me.assertOptions(n,{silentJSONParsing:$.transitional($.boolean),forcedJSONParsing:$.transitional($.boolean),clarifyTimeoutError:$.transitional($.boolean),legacyInterceptorReqResOrdering:$.transitional($.boolean),advertiseZstdAcceptEncoding:$.transitional($.boolean),validateStatusUndefinedResolves:$.transitional($.boolean)},!1),s!=null&&(l.isFunction(s)?r.paramsSerializer={serialize:s}:Me.assertOptions(s,{encode:$.function,serialize:$.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Me.assertOptions(r,{baseUrl:$.spelling("baseURL"),withXsrfToken:$.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&l.merge(o.common,o[r.method]);o&&l.forEach(["delete","get","head","post","put","patch","query","common"],C=>{delete o[C]}),r.headers=q.concat(a,o);const c=[];let f=!0;this.interceptors.request.forEach(function(x){if(typeof x.runWhen=="function"&&x.runWhen(r)===!1)return;f=f&&x.synchronous;const g=r.transitional||Ze;g&&g.legacyInterceptorReqResOrdering?c.unshift(x.fulfilled,x.rejected):c.push(x.fulfilled,x.rejected)});const y=[];this.interceptors.response.forEach(function(x){y.push(x.fulfilled,x.rejected)});let u,d=0,R;if(!f){const C=[Gt.bind(this),void 0];for(C.unshift(...c),C.push(...y),R=C.length,u=Promise.resolve(r);d<R;)u=u.then(C[d++],C[d++]);return u}R=c.length;let w=r;for(;d<R;){const C=c[d++],x=c[d++];try{w=C(w)}catch(g){x.call(this,g);break}}try{u=Gt.call(this,w)}catch(C){return Promise.reject(C)}for(d=0,R=y.length;d<R;)u=u.then(y[d++],y[d++]);return u}getUri(t){t=he(this.defaults,t);const r=Bt(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Ct(r,t.params,t.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(t){me.prototype[t]=function(r,n){return this.request(he(n||{},{method:t,url:r,data:n&&l.hasOwnProp(n,"data")?n.data:void 0}))}}),l.forEach(["post","put","patch","query"],function(t){function r(n){return function(o,a,c){return this.request(he(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}me.prototype[t]=r(),t!=="query"&&(me.prototype[t+"Form"]=r(!0))});let os=class fr{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(s=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](s);n._listeners=null}),this.promise.then=s=>{let o;const a=new Promise(c=>{n.subscribe(c),o=c}).then(s);return a.cancel=function(){n.unsubscribe(o)},a},t(function(o,a,c){n.reason||(n.reason=new Pe(o,a,c),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new fr(function(s){t=s}),cancel:t}}};function is(e){return function(r){return e.apply(null,r)}}function as(e){return l.isObject(e)&&e.isAxiosError===!0}const it={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(it).forEach(([e,t])=>{it[t]=e});function Xt(e){const t=new me(e),r=dt(me.prototype.request,t);return l.extend(r,me.prototype,t,{allOwnKeys:!0}),l.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return Xt(he(e,s))},r}const D=Xt(Ce);D.Axios=me,D.CanceledError=Pe,D.CancelToken=os,D.isCancel=It,D.VERSION=nt,D.toFormData=Be,D.AxiosError=S,D.Cancel=D.CanceledError,D.all=function(t){return Promise.all(t)},D.spread=is,D.isAxiosError=as,D.mergeConfig=he,D.AxiosHeaders=q,D.formToJSON=e=>kt(l.isHTMLForm(e)?new FormData(e):e),D.getAdapter=Kt.getAdapter,D.HttpStatusCode=it,D.default=D;const{Axios:Ps,AxiosError:Ns,CanceledError:vs,isCancel:ks,CancelToken:Is,VERSION:Ds,all:Fs,Cancel:Us,isAxiosError:Ls,spread:Bs,toFormData:qs,AxiosHeaders:$s,HttpStatusCode:zs,formToJSON:Hs,getAdapter:Ms,mergeConfig:Vs,create:Js}=D;var ls=Object.defineProperty,cs=(e,t,r)=>t in e?ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,us=(e,t,r)=>cs(e,t+"",r),at={exports:{}},Ne={};/**
30
+ `+o)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=he(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:o}=r;n!==void 0&&Me.assertOptions(n,{silentJSONParsing:z.transitional(z.boolean),forcedJSONParsing:z.transitional(z.boolean),clarifyTimeoutError:z.transitional(z.boolean),legacyInterceptorReqResOrdering:z.transitional(z.boolean),advertiseZstdAcceptEncoding:z.transitional(z.boolean),validateStatusUndefinedResolves:z.transitional(z.boolean)},!1),s!=null&&(l.isFunction(s)?r.paramsSerializer={serialize:s}:Me.assertOptions(s,{encode:z.function,serialize:z.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Me.assertOptions(r,{baseUrl:z.spelling("baseURL"),withXsrfToken:z.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&l.merge(o.common,o[r.method]);o&&l.forEach(["delete","get","head","post","put","patch","query","common"],C=>{delete o[C]}),r.headers=q.concat(a,o);const c=[];let f=!0;this.interceptors.request.forEach(function(x){if(typeof x.runWhen=="function"&&x.runWhen(r)===!1)return;f=f&&x.synchronous;const g=r.transitional||Ze;g&&g.legacyInterceptorReqResOrdering?c.unshift(x.fulfilled,x.rejected):c.push(x.fulfilled,x.rejected)});const y=[];this.interceptors.response.forEach(function(x){y.push(x.fulfilled,x.rejected)});let u,d=0,R;if(!f){const C=[Vt.bind(this),void 0];for(C.unshift(...c),C.push(...y),R=C.length,u=Promise.resolve(r);d<R;)u=u.then(C[d++],C[d++]);return u}R=c.length;let w=r;for(;d<R;){const C=c[d++],x=c[d++];try{w=C(w)}catch(g){x.call(this,g);break}}try{u=Vt.call(this,w)}catch(C){return Promise.reject(C)}for(d=0,R=y.length;d<R;)u=u.then(y[d++],y[d++]);return u}getUri(t){t=he(this.defaults,t);const r=Bt(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Ct(r,t.params,t.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(t){me.prototype[t]=function(r,n){return this.request(he(n||{},{method:t,url:r,data:n&&l.hasOwnProp(n,"data")?n.data:void 0}))}}),l.forEach(["post","put","patch","query"],function(t){function r(n){return function(o,a,c){return this.request(he(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}me.prototype[t]=r(),t!=="query"&&(me.prototype[t+"Form"]=r(!0))});let os=class fr{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(s=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](s);n._listeners=null}),this.promise.then=s=>{let o;const a=new Promise(c=>{n.subscribe(c),o=c}).then(s);return a.cancel=function(){n.unsubscribe(o)},a},t(function(o,a,c){n.reason||(n.reason=new Pe(o,a,c),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new fr(function(s){t=s}),cancel:t}}};function is(e){return function(r){return e.apply(null,r)}}function as(e){return l.isObject(e)&&e.isAxiosError===!0}const it={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(it).forEach(([e,t])=>{it[t]=e});function Yt(e){const t=new me(e),r=dt(me.prototype.request,t);return l.extend(r,me.prototype,t,{allOwnKeys:!0}),l.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return Yt(he(e,s))},r}const D=Yt(Ce);D.Axios=me,D.CanceledError=Pe,D.CancelToken=os,D.isCancel=It,D.VERSION=nt,D.toFormData=Be,D.AxiosError=S,D.Cancel=D.CanceledError,D.all=function(t){return Promise.all(t)},D.spread=is,D.isAxiosError=as,D.mergeConfig=he,D.AxiosHeaders=q,D.formToJSON=e=>vt(l.isHTMLForm(e)?new FormData(e):e),D.getAdapter=Xt.getAdapter,D.HttpStatusCode=it,D.default=D;const{Axios:Ps,AxiosError:Ns,CanceledError:ks,isCancel:vs,CancelToken:Is,VERSION:Ds,all:Ls,Cancel:Fs,isAxiosError:Us,spread:Bs,toFormData:qs,AxiosHeaders:zs,HttpStatusCode:Hs,formToJSON:$s,getAdapter:Ms,mergeConfig:Js,create:Ws}=D;var ls=Object.defineProperty,cs=(e,t,r)=>t in e?ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,us=(e,t,r)=>cs(e,t+"",r),at={exports:{}},Ne={};/**
31
31
  * @license React
32
32
  * react-jsx-runtime.production.js
33
33
  *
@@ -35,7 +35,7 @@ React keys must be passed directly to JSX without using spread:
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */var Qt;function fs(){if(Qt)return Ne;Qt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,s,o){var a=null;if(o!==void 0&&(a=""+o),s.key!==void 0&&(a=""+s.key),"key"in s){o={};for(var c in s)c!=="key"&&(o[c]=s[c])}else o=s;return s=o.ref,{$$typeof:e,type:n,key:a,ref:s!==void 0?s:null,props:o}}return Ne.Fragment=t,Ne.jsx=r,Ne.jsxs=r,Ne}var Ve={};/**
38
+ */var Qt;function fs(){if(Qt)return Ne;Qt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,s,o){var a=null;if(o!==void 0&&(a=""+o),s.key!==void 0&&(a=""+s.key),"key"in s){o={};for(var c in s)c!=="key"&&(o[c]=s[c])}else o=s;return s=o.ref,{$$typeof:e,type:n,key:a,ref:s!==void 0?s:null,props:o}}return Ne.Fragment=t,Ne.jsx=r,Ne.jsxs=r,Ne}var Je={};/**
39
39
  * @license React
40
40
  * react-jsx-runtime.development.js
41
41
  *
@@ -43,9 +43,9 @@ React keys must be passed directly to JSX without using spread:
43
43
  *
44
44
  * This source code is licensed under the MIT license found in the
45
45
  * LICENSE file in the root directory of this source tree.
46
- */var Zt;function ds(){return Zt||(Zt=1,process.env.NODE_ENV!=="production"&&(function(){function e(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===X?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case g:return"Fragment";case O:return"Profiler";case h:return"StrictMode";case k:return"Suspense";case F:return"SuspenseList";case Y:return"Activity"}if(typeof i=="object")switch(typeof i.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),i.$$typeof){case x:return"Portal";case E:return i.displayName||"Context";case T:return(i._context.displayName||"Context")+".Consumer";case v:var b=i.render;return i=i.displayName,i||(i=b.displayName||b.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case H:return b=i.displayName||null,b!==null?b:e(i.type)||"Memo";case M:b=i._payload,i=i._init;try{return e(i(b))}catch{}}return null}function t(i){return""+i}function r(i){try{t(i);var b=!1}catch{b=!0}if(b){b=console;var _=b.error,j=typeof Symbol=="function"&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||"Object";return _.call(b,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",j),t(i)}}function n(i){if(i===g)return"<>";if(typeof i=="object"&&i!==null&&i.$$typeof===M)return"<...>";try{var b=e(i);return b?"<"+b+">":"<...>"}catch{return"<...>"}}function s(){var i=Q.A;return i===null?null:i.getOwner()}function o(){return Error("react-stack-top-frame")}function a(i){if(ce.call(i,"key")){var b=Object.getOwnPropertyDescriptor(i,"key").get;if(b&&b.isReactWarning)return!1}return i.key!==void 0}function c(i,b){function _(){re||(re=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",b))}_.isReactWarning=!0,Object.defineProperty(i,"key",{get:_,configurable:!0})}function f(){var i=e(this.type);return ie[i]||(ie[i]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),i=this.props.ref,i!==void 0?i:null}function y(i,b,_,j,ne,N){var A=_.ref;return i={$$typeof:C,type:i,key:b,props:_,_owner:j},(A!==void 0?A:null)!==null?Object.defineProperty(i,"ref",{enumerable:!1,get:f}):Object.defineProperty(i,"ref",{enumerable:!1,value:null}),i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(i,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(i,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ne}),Object.defineProperty(i,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:N}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i}function u(i,b,_,j,ne,N){var A=b.children;if(A!==void 0)if(j)if(V(A)){for(j=0;j<A.length;j++)d(A[j]);Object.freeze&&Object.freeze(A)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(A);if(ce.call(b,"key")){A=e(i);var L=Object.keys(b).filter(function(ve){return ve!=="key"});j=0<L.length?"{key: someKey, "+L.join(": ..., ")+": ...}":"{key: someKey}",J[A+j]||(L=0<L.length?"{"+L.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
46
+ */var Zt;function ds(){return Zt||(Zt=1,process.env.NODE_ENV!=="production"&&(function(){function e(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===Y?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case g:return"Fragment";case O:return"Profiler";case h:return"StrictMode";case v:return"Suspense";case L:return"SuspenseList";case G:return"Activity"}if(typeof i=="object")switch(typeof i.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),i.$$typeof){case x:return"Portal";case E:return i.displayName||"Context";case T:return(i._context.displayName||"Context")+".Consumer";case k:var b=i.render;return i=i.displayName,i||(i=b.displayName||b.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case $:return b=i.displayName||null,b!==null?b:e(i.type)||"Memo";case M:b=i._payload,i=i._init;try{return e(i(b))}catch{}}return null}function t(i){return""+i}function r(i){try{t(i);var b=!1}catch{b=!0}if(b){b=console;var _=b.error,j=typeof Symbol=="function"&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||"Object";return _.call(b,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",j),t(i)}}function n(i){if(i===g)return"<>";if(typeof i=="object"&&i!==null&&i.$$typeof===M)return"<...>";try{var b=e(i);return b?"<"+b+">":"<...>"}catch{return"<...>"}}function s(){var i=Q.A;return i===null?null:i.getOwner()}function o(){return Error("react-stack-top-frame")}function a(i){if(ce.call(i,"key")){var b=Object.getOwnPropertyDescriptor(i,"key").get;if(b&&b.isReactWarning)return!1}return i.key!==void 0}function c(i,b){function _(){re||(re=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",b))}_.isReactWarning=!0,Object.defineProperty(i,"key",{get:_,configurable:!0})}function f(){var i=e(this.type);return ie[i]||(ie[i]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),i=this.props.ref,i!==void 0?i:null}function y(i,b,_,j,ne,N){var A=_.ref;return i={$$typeof:C,type:i,key:b,props:_,_owner:j},(A!==void 0?A:null)!==null?Object.defineProperty(i,"ref",{enumerable:!1,get:f}):Object.defineProperty(i,"ref",{enumerable:!1,value:null}),i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(i,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(i,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ne}),Object.defineProperty(i,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:N}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i}function u(i,b,_,j,ne,N){var A=b.children;if(A!==void 0)if(j)if(J(A)){for(j=0;j<A.length;j++)d(A[j]);Object.freeze&&Object.freeze(A)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(A);if(ce.call(b,"key")){A=e(i);var U=Object.keys(b).filter(function(ke){return ke!=="key"});j=0<U.length?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}",W[A+j]||(U=0<U.length?"{"+U.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
47
47
  let props = %s;
48
48
  <%s {...props} />
49
49
  React keys must be passed directly to JSX without using spread:
50
50
  let props = %s;
51
- <%s key={someKey} {...props} />`,j,A,L,A),J[A+j]=!0)}if(A=null,_!==void 0&&(r(_),A=""+_),a(b)&&(r(b.key),A=""+b.key),"key"in b){_={};for(var oe in b)oe!=="key"&&(_[oe]=b[oe])}else _=b;return A&&c(_,typeof i=="function"?i.displayName||i.name||"Unknown":i),y(i,A,_,s(),ne,N)}function d(i){R(i)?i._store&&(i._store.validated=1):typeof i=="object"&&i!==null&&i.$$typeof===M&&(i._payload.status==="fulfilled"?R(i._payload.value)&&i._payload.value._store&&(i._payload.value._store.validated=1):i._store&&(i._store.validated=1))}function R(i){return typeof i=="object"&&i!==null&&i.$$typeof===C}var w=I,C=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),E=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),Q=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Object.prototype.hasOwnProperty,V=Array.isArray,Z=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(i){return i()}};var re,ie={},ye=w.react_stack_bottom_frame.bind(w,o)(),ue=Z(n(o)),J={};Ve.Fragment=g,Ve.jsx=function(i,b,_){var j=1e4>Q.recentlyCreatedOwnerStacks++;return u(i,b,_,!1,j?Error("react-stack-top-frame"):ye,j?Z(n(i)):ue)},Ve.jsxs=function(i,b,_){var j=1e4>Q.recentlyCreatedOwnerStacks++;return u(i,b,_,!0,j?Error("react-stack-top-frame"):ye,j?Z(n(i)):ue)}})()),Ve}var er;function ps(){return er||(er=1,process.env.NODE_ENV==="production"?at.exports=fs():at.exports=ds()),at.exports}var G=ps();const{Header:Ws,Sider:Ks,Content:Gs}=m.Layout;function hs(e){if(e&&typeof e=="object"&&"code"in e&&"data"in e){const t=e;return t.code!==200?Promise.reject(new Error(t.message||"请求失败")):t.data}return e}function ms(e,t={}){const{tokenKey:r="token",userInfoKey:n="userInfo",unauthorizedRedirect:s="/login"}=t;e.interceptors.request.use(o=>{const a=localStorage.getItem(r);return a&&(o.headers.Authorization=`Bearer ${a}`),o}),e.interceptors.response.use(o=>hs(o.data),o=>{var a,c,f;return((a=o.response)==null?void 0:a.status)===401?(localStorage.removeItem(r),localStorage.removeItem(n),window.location.href=s):((c=o.response)==null?void 0:c.status)===403?console.error("没有权限访问该资源"):((f=o.response)==null?void 0:f.status)===500&&console.error("服务器内部错误"),Promise.reject(o)})}function tr(e={}){const t=D.create({baseURL:e.baseURL??"/api",timeout:e.timeout??1e4});return ms(t,{tokenKey:e.tokenKey,userInfoKey:e.userInfoKey,unauthorizedRedirect:e.unauthorizedRedirect}),t}const se=tr();tr();class Ys extends I.Component{constructor(t){super(t),us(this,"handleReset",()=>{this.setState({hasError:!1,error:null,errorInfo:null}),typeof this.props.onReset=="function"&&this.props.onReset()}),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("[ErrorBoundary] caught error:",t,r),this.setState({errorInfo:r})}render(){if(!this.state.hasError)return this.props.children;const{fallbackTitle:t="组件加载失败",fallbackDescription:r,showReload:n=!0}=this.props,s=this.state.error&&(this.state.error.message||String(this.state.error))||"未知错误";return G.jsxs("div",{style:{padding:24,background:"#fff2f0",border:"1px solid #ffccc7",borderRadius:8,minHeight:200},children:[G.jsx(m.Alert,{type:"error",showIcon:!0,icon:G.jsx(U.BugOutlined,{}),message:t,description:G.jsxs("div",{children:[G.jsx("div",{style:{marginBottom:8},children:r||"当前组件发生了异常,已被错误边界捕获。其他功能仍可正常使用。"}),G.jsx("div",{style:{fontFamily:"Menlo, Monaco, Consolas, monospace",fontSize:12,color:"#cf1322",background:"#fff",padding:8,borderRadius:4,border:"1px solid #ffccc7",wordBreak:"break-word",whiteSpace:"pre-wrap"},children:s})]})}),n&&G.jsx(m.Space,{style:{marginTop:16},children:G.jsx(m.Button,{icon:G.jsx(U.ReloadOutlined,{}),onClick:this.handleReset,children:"重试"})})]})}}const{Title:Xs,Text:Qs,Paragraph:Zs}=m.Typography;let ys="/api";function rr(){return D.create({baseURL:ys,timeout:15e3})}const bs=rr();rr(),bs.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});const{Header:eo,Sider:to,Content:ro}=m.Layout,{Text:no}=m.Typography,{Title:so,Text:oo}=m.Typography,{Option:io}=m.Select,{TextArea:ao}=m.Input,gs=[{type:"STRING",label:"字符串",icon:G.jsx(U.FileTextOutlined,{}),color:"#1677ff",desc:"短文本 (默认 VARCHAR 255)"},{type:"TEXT",label:"长文本",icon:G.jsx(U.FileTextOutlined,{}),color:"#13c2c2",desc:"TEXT 类型, 无长度限制"},{type:"INT",label:"整数",icon:"#",color:"#722ed1",desc:"INT 整数"},{type:"LONG",label:"长整数",icon:"#",color:"#722ed1",desc:"BIGINT 长整数"},{type:"DECIMAL",label:"小数",icon:"0.00",color:"#eb2f96",desc:"DECIMAL 精确小数"},{type:"BOOLEAN",label:"布尔",icon:G.jsx(U.CheckCircleOutlined,{}),color:"#52c41a",desc:"TINYINT(1) 是/否"},{type:"DATE",label:"日期",icon:"📅",color:"#fa8c16",desc:"DATE yyyy-MM-dd"},{type:"DATETIME",label:"日期时间",icon:"🕐",color:"#fa8c16",desc:"DATETIME yyyy-MM-dd HH:mm:ss"},{type:"JSON",label:"JSON",icon:"{}",color:"#2f54eb",desc:"JSON 字符串"},{type:"REF",label:"引用",icon:"🔗",color:"#8c8c8c",desc:"外键引用 BIGINT"}];Object.fromEntries(gs.map(e=>[e.type,e]));const{Option:lo}=m.Select;m.Input.TextArea,m.Input.TextArea;const{Text:co,Paragraph:uo}=m.Typography,{TextArea:fo}=m.Input,{TextArea:po}=m.Input,{Text:ho,Paragraph:mo}=m.Typography,{TextArea:yo}=m.Input,{Text:bo,Paragraph:go}=m.Typography,{Text:Eo}=m.Typography,{Text:So}=m.Typography,{TextArea:xo}=m.Input,{Text:wo,Paragraph:Ro}=m.Typography,{Text:Oo}=m.Typography,{Text:To}=m.Typography,{Text:_o}=m.Typography,{Text:Ao}=m.Typography;common;const Es={OPEN:{color:"blue",text:"待开始"},IN_PROGRESS:{color:"green",text:"进行中"},COMPLETED:{color:"default",text:"已完成"},ARCHIVED:{color:"default",text:"已归档"}};function nr(){const e=ee.useNavigate(),[t,r]=I.useState("mine"),[n,s]=I.useState([]),[o,a]=I.useState(!1),c=async()=>{a(!0);try{const u=t==="mine"?"/project/list/mine?limit=100":`/project/list/by-status?status=${t}&limit=100`,d=await se.get(u),R=(d==null?void 0:d.data)??d??[];s(Array.isArray(R)?R:[])}catch(u){m.message.error("加载项目失败: "+((u==null?void 0:u.message)||""))}finally{a(!1)}};I.useEffect(()=>{c()},[t]);const f=async u=>{try{const d=await se.post(`/project/${u}/status?status=COMPLETED`);d&&d.success!==!1&&(m.message.success("已标记完成"),c())}catch(d){m.message.error("操作失败: "+((d==null?void 0:d.message)||""))}},y=[{title:"ID",dataIndex:"id",width:60},{title:"名称",dataIndex:"name",render:(u,d)=>p.jsxs(m.Space,{orientation:"vertical",size:0,children:[p.jsx("a",{onClick:()=>e(`/project/${d.id}`),style:{fontWeight:500},children:u}),d.description&&p.jsx("span",{style:{color:"#999",fontSize:12},children:d.description})]})},{title:"来源",dataIndex:"sourceType",width:100,render:u=>p.jsx(m.Tag,{children:u})},{title:"订阅",dataIndex:"sourceSubscriptionId",width:80,render:u=>u?`#${u}`:p.jsx("span",{style:{color:"#ccc"},children:"-"})},{title:"状态",dataIndex:"status",width:100,render:u=>{const d=Es[u]||{color:"default",text:u};return p.jsx(m.Tag,{color:d.color,children:d.text})}},{title:"消息数",dataIndex:"messageCount",width:80},{title:"上下文",width:130,render:(u,d)=>p.jsx(m.Space,{size:4,children:p.jsxs(m.Tag,{color:"blue",children:[d.contextSize||0,"B"]})})},{title:"最近活动",dataIndex:"lastMessageAt",width:150,render:u=>u?new Date(u).toLocaleString():p.jsx("span",{style:{color:"#ccc"},children:"-"})},{title:"操作",width:160,render:(u,d)=>p.jsxs(m.Space,{size:4,children:[p.jsx(m.Button,{type:"link",size:"small",onClick:()=>e(`/project/${d.id}`),children:"对话"}),d.status!=="COMPLETED"&&d.status!=="ARCHIVED"&&p.jsx(m.Popconfirm,{title:"标记为已完成?",onConfirm:()=>f(d.id),children:p.jsx(m.Button,{type:"link",size:"small",icon:p.jsx(U.CheckCircleOutlined,{}),children:"完成"})})]})}];return p.jsx("div",{style:{padding:24},children:p.jsxs(m.Card,{title:p.jsxs(m.Space,{children:[p.jsx(U.ApiOutlined,{}),"项目中心 (CEO 立项 + Agent 对话)"]}),extra:p.jsxs(m.Space,{children:[p.jsx(m.Button,{icon:p.jsx(U.ReloadOutlined,{}),onClick:c,children:"刷新"}),p.jsx(m.Button,{type:"primary",icon:p.jsx(U.PlusOutlined,{}),onClick:()=>e("/project/new"),children:"新建项目"})]}),children:[p.jsx(m.Tabs,{activeKey:t,onChange:r,items:[{key:"mine",label:"我的进行中"},{key:"OPEN",label:"待开始"},{key:"IN_PROGRESS",label:"进行中"},{key:"COMPLETED",label:"已完成"}]}),p.jsx(m.Table,{rowKey:"id",columns:y,dataSource:n,loading:o,size:"middle",pagination:{pageSize:20}})]})})}const Ss=[{value:"general",label:"通用助手"},{value:"analyst",label:"分析师"},{value:"writer",label:"写手"},{value:"pm",label:"产品经理"},{value:"ops",label:"运营"}];function sr(){const e=ee.useNavigate(),[t]=ee.useSearchParams(),[r]=m.Form.useForm(),[n,s]=I.useState(!1),[o,a]=I.useState("from-subscribe"),[c,f]=I.useState([]),[y,u]=I.useState([]),[d,R]=I.useState(!1),[w,C]=I.useState([]),[x,g]=I.useState(null);I.useEffect(()=>{const E=t.get("subscriptionId"),v=t.get("itemIds");E&&(g(Number(E)),r.setFieldValue("sourceSubscriptionId",Number(E)),O(E)),v&&C(v.split(",").map(Number).filter(Boolean))},[t]),I.useEffect(()=>{h()},[]);const h=async()=>{try{const E=await se.get("/subscribe/subscription/list"),v=(E==null?void 0:E.data)??E??[];f(Array.isArray(v)?v.filter(k=>k.status==="VERIFIED"):[])}catch{}},O=async E=>{R(!0);try{const v=await se.get(`/subscribe/run/list?subscriptionId=${E}&limit=1`),k=(v==null?void 0:v.data)??v??[];if(k.length===0){u([]);return}const F=k[0],H=await se.get(`/subscribe/run/${F.id}/items?limit=100`),M=(H==null?void 0:H.data)??H??[];u(Array.isArray(M)?M:[])}catch{m.message.error("加载抽取项失败")}finally{R(!1)}},T=async()=>{try{const E=await r.validateFields();if(o==="from-subscribe"&&w.length===0){m.message.warning("请至少选 1 个 item");return}s(!0);const v={...E,sourceItemIds:o==="from-subscribe"?w.map(String):null},k=o==="from-subscribe"?"/project/create-from-items":"/project/create-manual",F=await se.post(k,v);if(F&&F.success!==!1){const H=F.data??F;m.message.success("立项成功"),e(`/project/${H.id}`)}else m.message.error((F==null?void 0:F.message)||"立项失败")}catch(E){E!=null&&E.errorFields||m.message.error("立项失败: "+((E==null?void 0:E.message)||""))}finally{s(!1)}};return p.jsx("div",{style:{padding:24},children:p.jsx(m.Card,{title:p.jsxs(m.Space,{children:[p.jsx(m.Button,{type:"text",icon:p.jsx(U.ArrowLeftOutlined,{}),onClick:()=>e("/project/list")}),p.jsx(U.ApiOutlined,{}),"新建项目 (立项)"]}),extra:p.jsxs(m.Space,{children:[p.jsx(m.Button,{onClick:()=>e("/project/list"),children:"取消"}),p.jsx(m.Button,{type:"primary",icon:p.jsx(U.SaveOutlined,{}),loading:n,onClick:T,children:"立项"})]}),children:p.jsxs(m.Form,{form:r,layout:"vertical",initialValues:{agentRole:"general"},children:[p.jsx(m.Form.Item,{label:"来源",children:p.jsxs(m.Radio.Group,{value:o,onChange:E=>a(E.target.value),children:[p.jsx(m.Radio.Button,{value:"from-subscribe",children:"从订阅线索立项 (主路径)"}),p.jsx(m.Radio.Button,{value:"manual",children:"手动立项 (无源数据)"})]})}),p.jsx(m.Form.Item,{label:"项目名称",name:"name",rules:[{required:!0,message:"请输入名称"}],children:p.jsx(m.Input,{placeholder:"例如: 跟进 GitHub 高优 Issue"})}),p.jsx(m.Form.Item,{label:"项目描述",name:"description",children:p.jsx(m.Input.TextArea,{rows:2,placeholder:"(可选) 这个项目要解决什么?"})}),o==="from-subscribe"&&p.jsxs(m.Card,{type:"inner",title:"源数据",style:{marginBottom:16},children:[p.jsx(m.Form.Item,{label:"选择订阅",name:"sourceSubscriptionId",rules:[{required:!0,message:"请选订阅"}],children:p.jsx(m.Select,{placeholder:"选择订阅 (拉取最近一次 run 的 items)",options:c.map(E=>({value:E.id,label:`#${E.id} ${E.name}`})),onChange:E=>{g(E),O(E),C([])}})}),x&&p.jsxs(m.Spin,{spinning:d,children:[p.jsxs("div",{style:{marginBottom:8},children:[p.jsxs(m.Tag,{color:"blue",children:["已选 ",w.length," / ",y.length]}),p.jsx(m.Button,{size:"small",onClick:()=>C(y.map(E=>E.id)),children:"全选"}),p.jsx(m.Button,{size:"small",onClick:()=>C([]),style:{marginLeft:4},children:"清空"})]}),p.jsx(m.Table,{rowKey:"id",size:"small",dataSource:y,pagination:{pageSize:10},rowSelection:{selectedRowKeys:w,onChange:C},columns:[{title:"id",dataIndex:"dedupKey",width:160,ellipsis:!0},{title:"title",dataIndex:"normalized",render:E=>{try{return JSON.parse(E).title||"(无)"}catch{return E}}},{title:"fetched",dataIndex:"fetchedAt",width:150,render:E=>E?new Date(E).toLocaleString():"-"}]})]})]}),p.jsxs(m.Card,{type:"inner",title:"Agent 配置",style:{marginBottom:16},children:[p.jsx(m.Form.Item,{label:"Agent 角色",name:"agentRole",extra:"决定 system prompt 的语气 / 视角",children:p.jsx(m.Select,{options:Ss})}),p.jsx(m.Form.Item,{label:"模型 (可选)",name:"modelCode",extra:"留空走默认 (智能中心 LLM 凭证里第一个 enabled)",children:p.jsx(m.Input,{placeholder:"例如: gpt-4 / deepseek-chat"})})]}),p.jsx(m.Alert,{type:"info",showIcon:!0,message:"立项后源数据会被快照 (context_snapshot), 后续订阅更新不会影响项目上下文."})]})})})}const or={USER:{color:"blue",icon:p.jsx(U.UserOutlined,{}),label:"CEO"},ASSISTANT:{color:"purple",icon:p.jsx(U.RobotOutlined,{}),label:"Agent"},SYSTEM:{color:"default",icon:null,label:"系统"}},xs={OPEN:{color:"blue",text:"待开始"},IN_PROGRESS:{color:"green",text:"进行中"},COMPLETED:{color:"default",text:"已完成"},ARCHIVED:{color:"default",text:"已归档"}};function ir(){const{id:e}=ee.useParams(),t=ee.useNavigate(),[r,n]=I.useState(null),[s,o]=I.useState([]),[a,c]=I.useState(""),[f,y]=I.useState(!1),u=I.useRef(null);I.useEffect(()=>{e&&d()},[e]),I.useEffect(()=>{u.current&&(u.current.scrollTop=u.current.scrollHeight)},[s]);const d=async()=>{try{const[x,g]=await Promise.all([se.get(`/project/${e}`),se.get(`/project/${e}/messages`)]);n((x==null?void 0:x.data)??x),o(Array.isArray((g==null?void 0:g.data)??g)?(g==null?void 0:g.data)??g:[])}catch{m.message.error("加载项目失败")}},R=async()=>{if(!a.trim())return;const x=a.trim();c(""),y(!0);const g={seq:-1,role:"USER",content:x,createdAt:new Date().toISOString()};o(h=>[...h,g]);try{const h=await se.post(`/project/${e}/chat`,{message:x});if(h&&h.success!==!1){const T=(h.data??h).message;o(E=>[...E.filter(k=>k.seq!==-1),...T?[T]:[]]),setTimeout(d,100)}else m.message.error((h==null?void 0:h.message)||"发送失败")}catch(h){m.message.error("发送失败: "+((h==null?void 0:h.message)||""))}finally{y(!1)}},w=async()=>{try{const x=await se.post(`/project/${e}/status?status=COMPLETED`);x&&x.success!==!1&&(m.message.success("已标记完成"),d())}catch{m.message.error("操作失败")}};if(!r)return p.jsx("div",{style:{padding:24},children:p.jsx(m.Spin,{})});const C=xs[r.status]||{color:"default",text:r.status};return p.jsxs("div",{style:{padding:24,height:"calc(100vh - 64px)",display:"flex",flexDirection:"column",gap:16},children:[p.jsxs(m.Card,{title:p.jsxs(m.Space,{children:[p.jsx(m.Button,{type:"text",icon:p.jsx(U.ArrowLeftOutlined,{}),onClick:()=>t("/project/list")}),p.jsx(U.ApiOutlined,{}),p.jsx("span",{style:{fontWeight:500},children:r.name}),p.jsx(m.Tag,{color:C.color,children:C.text})]}),extra:p.jsxs(m.Space,{children:[r.contextSize>0&&p.jsxs(m.Tag,{color:"blue",children:["上下文 ",r.contextSize," B"]}),p.jsx(m.Tag,{children:r.agentRole}),r.modelCode&&p.jsx(m.Tag,{color:"purple",children:r.modelCode}),r.status!=="COMPLETED"&&r.status!=="ARCHIVED"&&p.jsx(m.Popconfirm,{title:"标记完成?",onConfirm:w,children:p.jsx(m.Button,{icon:p.jsx(U.CheckCircleOutlined,{}),children:"标记完成"})})]}),children:[r.description&&p.jsx("div",{style:{color:"#666",marginBottom:8},children:r.description}),p.jsxs(m.Space,{size:"large",children:[p.jsx(m.Statistic,{title:"消息数",value:r.messageCount||0}),r.sourceSubscriptionId&&p.jsx(m.Statistic,{title:"来源订阅",value:`#${r.sourceSubscriptionId}`}),p.jsx(m.Statistic,{title:"立项",value:r.createdAt?new Date(r.createdAt).toLocaleString():"-"})]})]}),p.jsxs(m.Card,{style:{flex:1,display:"flex",flexDirection:"column"},bodyStyle:{flex:1,display:"flex",flexDirection:"column",padding:0},children:[p.jsx("div",{ref:u,style:{flex:1,overflow:"auto",padding:16,background:"#fafafa"},children:s.length===0?p.jsx(m.Empty,{description:"还没有消息, 跟 Agent 说点什么?"}):p.jsxs(m.Space,{orientation:"vertical",style:{width:"100%"},size:"middle",children:[s.map(x=>{const g=or[x.role]||or.SYSTEM,h=x.role==="USER";return p.jsx("div",{style:{display:"flex",justifyContent:h?"flex-end":"flex-start"},children:p.jsxs("div",{style:{maxWidth:"70%",background:h?"#1677ff":"#fff",color:h?"#fff":"#000",border:h?"none":"1px solid #e8e8e8",borderRadius:8,padding:"10px 14px",boxShadow:"0 1px 2px rgba(0,0,0,0.04)"},children:[p.jsx("div",{style:{fontSize:12,opacity:.7,marginBottom:4},children:p.jsxs(m.Space,{size:4,children:[g.icon,g.label,x.seq>0&&p.jsxs("span",{children:["#",x.seq]}),x.latencyMs>0&&p.jsxs("span",{children:["· ",x.latencyMs,"ms"]}),x.modelCode&&p.jsxs("span",{children:["· ",x.modelCode]})]})}),p.jsx("div",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:x.content})]})},x.id||x.seq)}),f&&p.jsx("div",{style:{display:"flex",justifyContent:"flex-start"},children:p.jsxs("div",{style:{background:"#fff",border:"1px solid #e8e8e8",borderRadius:8,padding:"10px 14px"},children:[p.jsx(m.Spin,{size:"small"})," 思考中..."]})})]})}),r.status==="COMPLETED"||r.status==="ARCHIVED"?p.jsx(m.Alert,{style:{margin:12,marginBottom:0},type:"info",message:"项目已完成 / 归档, 不再接受新消息",showIcon:!0}):p.jsxs("div",{style:{borderTop:"1px solid #f0f0f0",padding:12,display:"flex",gap:8},children:[p.jsx(m.Input.TextArea,{value:a,onChange:x=>c(x.target.value),onPressEnter:x=>{x.shiftKey||(x.preventDefault(),R())},placeholder:"输入消息, Enter 发送 (Shift+Enter 换行)",autoSize:{minRows:1,maxRows:6},disabled:f}),p.jsx(m.Button,{type:"primary",icon:p.jsx(U.SendOutlined,{}),loading:f,onClick:R,disabled:!a.trim(),children:"发送"})]})]})]})}function ws(){return p.jsxs(ee.Routes,{children:[p.jsx(ee.Route,{index:!0,element:p.jsx(ee.Navigate,{to:"list",replace:!0})}),p.jsx(ee.Route,{path:"list",element:p.jsx(nr,{})}),p.jsx(ee.Route,{path:"new",element:p.jsx(sr,{})}),p.jsx(ee.Route,{path:":id",element:p.jsx(ir,{})})]})}W.ProjectApp=ws,W.ProjectCreate=sr,W.ProjectDetail=ir,W.ProjectList=nr,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})}));
51
+ <%s key={someKey} {...props} />`,j,A,U,A),W[A+j]=!0)}if(A=null,_!==void 0&&(r(_),A=""+_),a(b)&&(r(b.key),A=""+b.key),"key"in b){_={};for(var oe in b)oe!=="key"&&(_[oe]=b[oe])}else _=b;return A&&c(_,typeof i=="function"?i.displayName||i.name||"Unknown":i),y(i,A,_,s(),ne,N)}function d(i){R(i)?i._store&&(i._store.validated=1):typeof i=="object"&&i!==null&&i.$$typeof===M&&(i._payload.status==="fulfilled"?R(i._payload.value)&&i._payload.value._store&&(i._payload.value._store.validated=1):i._store&&(i._store.validated=1))}function R(i){return typeof i=="object"&&i!==null&&i.$$typeof===C}var w=I,C=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),E=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),Q=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Object.prototype.hasOwnProperty,J=Array.isArray,Z=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(i){return i()}};var re,ie={},ye=w.react_stack_bottom_frame.bind(w,o)(),ue=Z(n(o)),W={};Je.Fragment=g,Je.jsx=function(i,b,_){var j=1e4>Q.recentlyCreatedOwnerStacks++;return u(i,b,_,!1,j?Error("react-stack-top-frame"):ye,j?Z(n(i)):ue)},Je.jsxs=function(i,b,_){var j=1e4>Q.recentlyCreatedOwnerStacks++;return u(i,b,_,!0,j?Error("react-stack-top-frame"):ye,j?Z(n(i)):ue)}})()),Je}var er;function ps(){return er||(er=1,process.env.NODE_ENV==="production"?at.exports=fs():at.exports=ds()),at.exports}var V=ps();const{Header:Ks,Sider:Xs,Content:Vs}=m.Layout;function hs(e){if(e&&typeof e=="object"&&"code"in e&&"data"in e){const t=e;return t.code!==200?Promise.reject(new Error(t.message||"请求失败")):t.data}return e}function ms(e,t={}){const{tokenKey:r="token",userInfoKey:n="userInfo",unauthorizedRedirect:s="/login"}=t;e.interceptors.request.use(o=>{const a=localStorage.getItem(r);return a&&(o.headers.Authorization=`Bearer ${a}`),o}),e.interceptors.response.use(o=>hs(o.data),o=>{var a,c,f;return((a=o.response)==null?void 0:a.status)===401?(localStorage.removeItem(r),localStorage.removeItem(n),window.location.href=s):((c=o.response)==null?void 0:c.status)===403?console.error("没有权限访问该资源"):((f=o.response)==null?void 0:f.status)===500&&console.error("服务器内部错误"),Promise.reject(o)})}function tr(e={}){const t=D.create({baseURL:e.baseURL??"/api",timeout:e.timeout??1e4});return ms(t,{tokenKey:e.tokenKey,userInfoKey:e.userInfoKey,unauthorizedRedirect:e.unauthorizedRedirect}),t}const se=tr();tr();class Gs extends I.Component{constructor(t){super(t),us(this,"handleReset",()=>{this.setState({hasError:!1,error:null,errorInfo:null}),typeof this.props.onReset=="function"&&this.props.onReset()}),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("[ErrorBoundary] caught error:",t,r),this.setState({errorInfo:r})}render(){if(!this.state.hasError)return this.props.children;const{fallbackTitle:t="组件加载失败",fallbackDescription:r,showReload:n=!0}=this.props,s=this.state.error&&(this.state.error.message||String(this.state.error))||"未知错误";return V.jsxs("div",{style:{padding:24,background:"#fff2f0",border:"1px solid #ffccc7",borderRadius:8,minHeight:200},children:[V.jsx(m.Alert,{type:"error",showIcon:!0,icon:V.jsx(F.BugOutlined,{}),message:t,description:V.jsxs("div",{children:[V.jsx("div",{style:{marginBottom:8},children:r||"当前组件发生了异常,已被错误边界捕获。其他功能仍可正常使用。"}),V.jsx("div",{style:{fontFamily:"Menlo, Monaco, Consolas, monospace",fontSize:12,color:"#cf1322",background:"#fff",padding:8,borderRadius:4,border:"1px solid #ffccc7",wordBreak:"break-word",whiteSpace:"pre-wrap"},children:s})]})}),n&&V.jsx(m.Space,{style:{marginTop:16},children:V.jsx(m.Button,{icon:V.jsx(F.ReloadOutlined,{}),onClick:this.handleReset,children:"重试"})})]})}}const{Title:Ys,Text:Qs,Paragraph:Zs}=m.Typography;let ys="/api";function rr(){return D.create({baseURL:ys,timeout:15e3})}const bs=rr();rr(),bs.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});const{Header:eo,Sider:to,Content:ro}=m.Layout,{Text:no}=m.Typography,{Title:so,Text:oo}=m.Typography,{Option:io}=m.Select,{TextArea:ao}=m.Input,gs=[{type:"STRING",label:"字符串",icon:V.jsx(F.FileTextOutlined,{}),color:"#1677ff",desc:"短文本 (默认 VARCHAR 255)"},{type:"TEXT",label:"长文本",icon:V.jsx(F.FileTextOutlined,{}),color:"#13c2c2",desc:"TEXT 类型, 无长度限制"},{type:"INT",label:"整数",icon:"#",color:"#722ed1",desc:"INT 整数"},{type:"LONG",label:"长整数",icon:"#",color:"#722ed1",desc:"BIGINT 长整数"},{type:"DECIMAL",label:"小数",icon:"0.00",color:"#eb2f96",desc:"DECIMAL 精确小数"},{type:"BOOLEAN",label:"布尔",icon:V.jsx(F.CheckCircleOutlined,{}),color:"#52c41a",desc:"TINYINT(1) 是/否"},{type:"DATE",label:"日期",icon:"📅",color:"#fa8c16",desc:"DATE yyyy-MM-dd"},{type:"DATETIME",label:"日期时间",icon:"🕐",color:"#fa8c16",desc:"DATETIME yyyy-MM-dd HH:mm:ss"},{type:"JSON",label:"JSON",icon:"{}",color:"#2f54eb",desc:"JSON 字符串"},{type:"REF",label:"引用",icon:"🔗",color:"#8c8c8c",desc:"外键引用 BIGINT"}];Object.fromEntries(gs.map(e=>[e.type,e]));const{Option:lo}=m.Select;m.Input.TextArea,m.Input.TextArea;const{Text:co,Paragraph:uo}=m.Typography,{TextArea:fo}=m.Input,{TextArea:po}=m.Input,{Text:ho,Paragraph:mo}=m.Typography,{TextArea:yo}=m.Input,{Text:bo,Paragraph:go}=m.Typography,{Text:Eo}=m.Typography,{Text:So}=m.Typography,{TextArea:xo}=m.Input,{Text:wo,Paragraph:Ro}=m.Typography,{Text:Oo}=m.Typography,{Text:To}=m.Typography,{Text:_o}=m.Typography,{Text:Ao}=m.Typography;common;const Es={OPEN:{color:"blue",text:"待开始"},IN_PROGRESS:{color:"green",text:"进行中"},COMPLETED:{color:"default",text:"已完成"},ARCHIVED:{color:"default",text:"已归档"}};function nr(){const e=ee.useNavigate(),[t,r]=I.useState("mine"),[n,s]=I.useState([]),[o,a]=I.useState(!1),c=async()=>{a(!0);try{const u=t==="mine"?"/project/list/mine?limit=100":`/project/list/by-status?status=${t}&limit=100`,d=await se.get(u),R=(d==null?void 0:d.data)??d??[];s(Array.isArray(R)?R:[])}catch(u){m.message.error("加载项目失败: "+((u==null?void 0:u.message)||""))}finally{a(!1)}};I.useEffect(()=>{c()},[t]);const f=async u=>{try{const d=await se.post(`/project/${u}/status?status=COMPLETED`);d&&d.success!==!1&&(m.message.success("已标记完成"),c())}catch(d){m.message.error("操作失败: "+((d==null?void 0:d.message)||""))}},y=[{title:"ID",dataIndex:"id",width:60},{title:"名称",dataIndex:"name",render:(u,d)=>p.jsxs(m.Space,{orientation:"vertical",size:0,children:[p.jsx("a",{onClick:()=>e(`/project/${d.id}`),style:{fontWeight:500},children:u}),d.description&&p.jsx("span",{style:{color:"#999",fontSize:12},children:d.description})]})},{title:"来源",dataIndex:"sourceType",width:100,render:u=>p.jsx(m.Tag,{children:u})},{title:"订阅",dataIndex:"sourceSubscriptionId",width:80,render:u=>u?`#${u}`:p.jsx("span",{style:{color:"#ccc"},children:"-"})},{title:"状态",dataIndex:"status",width:100,render:u=>{const d=Es[u]||{color:"default",text:u};return p.jsx(m.Tag,{color:d.color,children:d.text})}},{title:"消息数",dataIndex:"messageCount",width:80},{title:"上下文",width:130,render:(u,d)=>p.jsx(m.Space,{size:4,children:p.jsxs(m.Tag,{color:"blue",children:[d.contextSize||0,"B"]})})},{title:"最近活动",dataIndex:"lastMessageAt",width:150,render:u=>u?new Date(u).toLocaleString():p.jsx("span",{style:{color:"#ccc"},children:"-"})},{title:"操作",width:160,render:(u,d)=>p.jsxs(m.Space,{size:4,children:[p.jsx(m.Button,{type:"link",size:"small",onClick:()=>e(`/project/${d.id}`),children:"对话"}),d.status!=="COMPLETED"&&d.status!=="ARCHIVED"&&p.jsx(m.Popconfirm,{title:"标记为已完成?",onConfirm:()=>f(d.id),children:p.jsx(m.Button,{type:"link",size:"small",icon:p.jsx(F.CheckCircleOutlined,{}),children:"完成"})})]})}];return p.jsx("div",{style:{padding:24},children:p.jsxs(m.Card,{title:p.jsxs(m.Space,{children:[p.jsx(F.ApiOutlined,{}),"项目中心 (CEO 立项 + Agent 对话)"]}),extra:p.jsxs(m.Space,{children:[p.jsx(m.Button,{icon:p.jsx(F.ReloadOutlined,{}),onClick:c,children:"刷新"}),p.jsx(m.Button,{type:"primary",icon:p.jsx(F.PlusOutlined,{}),onClick:()=>e("/project/new"),children:"新建项目"})]}),children:[p.jsx(m.Tabs,{activeKey:t,onChange:r,items:[{key:"mine",label:"我的进行中"},{key:"OPEN",label:"待开始"},{key:"IN_PROGRESS",label:"进行中"},{key:"COMPLETED",label:"已完成"}]}),p.jsx(m.Table,{rowKey:"id",columns:y,dataSource:n,loading:o,size:"middle",pagination:{pageSize:20}})]})})}const Ss=[{value:"general",label:"通用助手"},{value:"analyst",label:"分析师"},{value:"writer",label:"写手"},{value:"pm",label:"产品经理"},{value:"ops",label:"运营"}];function sr(){const e=ee.useNavigate(),[t]=ee.useSearchParams(),[r]=m.Form.useForm(),[n,s]=I.useState(!1),[o,a]=I.useState("from-subscribe"),[c,f]=I.useState([]),[y,u]=I.useState([]),[d,R]=I.useState(!1),[w,C]=I.useState([]),[x,g]=I.useState(null);I.useEffect(()=>{const E=t.get("subscriptionId"),k=t.get("itemIds");E&&(g(Number(E)),r.setFieldValue("sourceSubscriptionId",Number(E)),O(E)),k&&C(k.split(",").map(Number).filter(Boolean))},[t]),I.useEffect(()=>{h()},[]);const h=async()=>{try{const E=await se.get("/subscribe/subscription/list"),k=(E==null?void 0:E.data)??E??[];f(Array.isArray(k)?k.filter(v=>v.status==="VERIFIED"):[])}catch{}},O=async E=>{R(!0);try{const k=await se.get(`/subscribe/run/list?subscriptionId=${E}&limit=1`),v=(k==null?void 0:k.data)??k??[];if(v.length===0){u([]);return}const L=v[0],$=await se.get(`/subscribe/run/${L.id}/items?limit=100`),M=($==null?void 0:$.data)??$??[];u(Array.isArray(M)?M:[])}catch{m.message.error("加载抽取项失败")}finally{R(!1)}},T=async()=>{try{const E=await r.validateFields();if(o==="from-subscribe"&&w.length===0){m.message.warning("请至少选 1 个 item");return}s(!0);const k={...E,sourceItemIds:o==="from-subscribe"?w.map(String):null},v=o==="from-subscribe"?"/project/create-from-items":"/project/create-manual",L=await se.post(v,k);if(L&&L.success!==!1){const $=L.data??L;m.message.success("立项成功"),e(`/project/${$.id}`)}else m.message.error((L==null?void 0:L.message)||"立项失败")}catch(E){E!=null&&E.errorFields||m.message.error("立项失败: "+((E==null?void 0:E.message)||""))}finally{s(!1)}};return p.jsx("div",{style:{padding:24},children:p.jsx(m.Card,{title:p.jsxs(m.Space,{children:[p.jsx(m.Button,{type:"text",icon:p.jsx(F.ArrowLeftOutlined,{}),onClick:()=>e("/project/list")}),p.jsx(F.ApiOutlined,{}),"新建项目 (立项)"]}),extra:p.jsxs(m.Space,{children:[p.jsx(m.Button,{onClick:()=>e("/project/list"),children:"取消"}),p.jsx(m.Button,{type:"primary",icon:p.jsx(F.SaveOutlined,{}),loading:n,onClick:T,children:"立项"})]}),children:p.jsxs(m.Form,{form:r,layout:"vertical",initialValues:{agentRole:"general"},children:[p.jsx(m.Form.Item,{label:"来源",children:p.jsxs(m.Radio.Group,{value:o,onChange:E=>a(E.target.value),children:[p.jsx(m.Radio.Button,{value:"from-subscribe",children:"从订阅线索立项 (主路径)"}),p.jsx(m.Radio.Button,{value:"manual",children:"手动立项 (无源数据)"})]})}),p.jsx(m.Form.Item,{label:"项目名称",name:"name",rules:[{required:!0,message:"请输入名称"}],children:p.jsx(m.Input,{placeholder:"例如: 跟进 GitHub 高优 Issue"})}),p.jsx(m.Form.Item,{label:"项目描述",name:"description",children:p.jsx(m.Input.TextArea,{rows:2,placeholder:"(可选) 这个项目要解决什么?"})}),o==="from-subscribe"&&p.jsxs(m.Card,{type:"inner",title:"源数据",style:{marginBottom:16},children:[p.jsx(m.Form.Item,{label:"选择订阅",name:"sourceSubscriptionId",rules:[{required:!0,message:"请选订阅"}],children:p.jsx(m.Select,{placeholder:"选择订阅 (拉取最近一次 run 的 items)",options:c.map(E=>({value:E.id,label:`#${E.id} ${E.name}`})),onChange:E=>{g(E),O(E),C([])}})}),x&&p.jsxs(m.Spin,{spinning:d,children:[p.jsxs("div",{style:{marginBottom:8},children:[p.jsxs(m.Tag,{color:"blue",children:["已选 ",w.length," / ",y.length]}),p.jsx(m.Button,{size:"small",onClick:()=>C(y.map(E=>E.id)),children:"全选"}),p.jsx(m.Button,{size:"small",onClick:()=>C([]),style:{marginLeft:4},children:"清空"})]}),p.jsx(m.Table,{rowKey:"id",size:"small",dataSource:y,pagination:{pageSize:10},rowSelection:{selectedRowKeys:w,onChange:C},columns:[{title:"id",dataIndex:"dedupKey",width:160,ellipsis:!0},{title:"title",dataIndex:"normalized",render:E=>{try{return JSON.parse(E).title||"(无)"}catch{return E}}},{title:"fetched",dataIndex:"fetchedAt",width:150,render:E=>E?new Date(E).toLocaleString():"-"}]})]})]}),p.jsxs(m.Card,{type:"inner",title:"Agent 配置",style:{marginBottom:16},children:[p.jsx(m.Form.Item,{label:"Agent 角色",name:"agentRole",extra:"决定 system prompt 的语气 / 视角",children:p.jsx(m.Select,{options:Ss})}),p.jsx(m.Form.Item,{label:"模型 (可选)",name:"modelCode",extra:"留空走默认 (智能中心 LLM 凭证里第一个 enabled)",children:p.jsx(m.Input,{placeholder:"例如: gpt-4 / deepseek-chat"})})]}),p.jsx(m.Alert,{type:"info",showIcon:!0,message:"立项后源数据会被快照 (context_snapshot), 后续订阅更新不会影响项目上下文."})]})})})}const or={USER:{color:"blue",icon:p.jsx(F.UserOutlined,{}),label:"CEO"},ASSISTANT:{color:"purple",icon:p.jsx(F.RobotOutlined,{}),label:"Agent"},SYSTEM:{color:"default",icon:null,label:"系统"}},xs={OPEN:{color:"blue",text:"待开始"},IN_PROGRESS:{color:"green",text:"进行中"},COMPLETED:{color:"default",text:"已完成"},ARCHIVED:{color:"default",text:"已归档"}};function ir(){const{id:e}=ee.useParams(),t=ee.useNavigate(),[r,n]=I.useState(null),[s,o]=I.useState([]),[a,c]=I.useState(""),[f,y]=I.useState(!1),u=I.useRef(null);I.useEffect(()=>{e&&d()},[e]),I.useEffect(()=>{u.current&&(u.current.scrollTop=u.current.scrollHeight)},[s]);const d=async()=>{try{const[x,g]=await Promise.all([se.get(`/project/${e}`),se.get(`/project/${e}/messages`)]);n((x==null?void 0:x.data)??x),o(Array.isArray((g==null?void 0:g.data)??g)?(g==null?void 0:g.data)??g:[])}catch{m.message.error("加载项目失败")}},R=async()=>{if(!a.trim())return;const x=a.trim();c(""),y(!0);const g={seq:-1,role:"USER",content:x,createdAt:new Date().toISOString()};o(h=>[...h,g]);try{const h=await se.post(`/project/${e}/chat`,{message:x});if(h&&h.success!==!1){const T=(h.data??h).message;o(E=>[...E.filter(v=>v.seq!==-1),...T?[T]:[]]),setTimeout(d,100)}else m.message.error((h==null?void 0:h.message)||"发送失败")}catch(h){m.message.error("发送失败: "+((h==null?void 0:h.message)||""))}finally{y(!1)}},w=async()=>{try{const x=await se.post(`/project/${e}/status?status=COMPLETED`);x&&x.success!==!1&&(m.message.success("已标记完成"),d())}catch{m.message.error("操作失败")}};if(!r)return p.jsx("div",{style:{padding:24},children:p.jsx(m.Spin,{})});const C=xs[r.status]||{color:"default",text:r.status};return p.jsxs("div",{style:{padding:24,height:"calc(100vh - 64px)",display:"flex",flexDirection:"column",gap:16},children:[p.jsxs(m.Card,{title:p.jsxs(m.Space,{children:[p.jsx(m.Button,{type:"text",icon:p.jsx(F.ArrowLeftOutlined,{}),onClick:()=>t("/project/list")}),p.jsx(F.ApiOutlined,{}),p.jsx("span",{style:{fontWeight:500},children:r.name}),p.jsx(m.Tag,{color:C.color,children:C.text})]}),extra:p.jsxs(m.Space,{children:[r.contextSize>0&&p.jsxs(m.Tag,{color:"blue",children:["上下文 ",r.contextSize," B"]}),p.jsx(m.Tag,{children:r.agentRole}),r.modelCode&&p.jsx(m.Tag,{color:"purple",children:r.modelCode}),r.status!=="COMPLETED"&&r.status!=="ARCHIVED"&&p.jsx(m.Popconfirm,{title:"标记完成?",onConfirm:w,children:p.jsx(m.Button,{icon:p.jsx(F.CheckCircleOutlined,{}),children:"标记完成"})})]}),children:[r.description&&p.jsx("div",{style:{color:"#666",marginBottom:8},children:r.description}),p.jsxs(m.Space,{size:"large",children:[p.jsx(m.Statistic,{title:"消息数",value:r.messageCount||0}),r.sourceSubscriptionId&&p.jsx(m.Statistic,{title:"来源订阅",value:`#${r.sourceSubscriptionId}`}),p.jsx(m.Statistic,{title:"立项",value:r.createdAt?new Date(r.createdAt).toLocaleString():"-"})]})]}),p.jsxs(m.Card,{style:{flex:1,display:"flex",flexDirection:"column"},bodyStyle:{flex:1,display:"flex",flexDirection:"column",padding:0},children:[p.jsx("div",{ref:u,style:{flex:1,overflow:"auto",padding:16,background:"#fafafa"},children:s.length===0?p.jsx(m.Empty,{description:"还没有消息, 跟 Agent 说点什么?"}):p.jsxs(m.Space,{orientation:"vertical",style:{width:"100%"},size:"middle",children:[s.map(x=>{const g=or[x.role]||or.SYSTEM,h=x.role==="USER";return p.jsx("div",{style:{display:"flex",justifyContent:h?"flex-end":"flex-start"},children:p.jsxs("div",{style:{maxWidth:"70%",background:h?"#1677ff":"#fff",color:h?"#fff":"#000",border:h?"none":"1px solid #e8e8e8",borderRadius:8,padding:"10px 14px",boxShadow:"0 1px 2px rgba(0,0,0,0.04)"},children:[p.jsx("div",{style:{fontSize:12,opacity:.7,marginBottom:4},children:p.jsxs(m.Space,{size:4,children:[g.icon,g.label,x.seq>0&&p.jsxs("span",{children:["#",x.seq]}),x.latencyMs>0&&p.jsxs("span",{children:["· ",x.latencyMs,"ms"]}),x.modelCode&&p.jsxs("span",{children:["· ",x.modelCode]})]})}),p.jsx("div",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:x.content})]})},x.id||x.seq)}),f&&p.jsx("div",{style:{display:"flex",justifyContent:"flex-start"},children:p.jsxs("div",{style:{background:"#fff",border:"1px solid #e8e8e8",borderRadius:8,padding:"10px 14px"},children:[p.jsx(m.Spin,{size:"small"})," 思考中..."]})})]})}),r.status==="COMPLETED"||r.status==="ARCHIVED"?p.jsx(m.Alert,{style:{margin:12,marginBottom:0},type:"info",message:"项目已完成 / 归档, 不再接受新消息",showIcon:!0}):p.jsxs("div",{style:{borderTop:"1px solid #f0f0f0",padding:12,display:"flex",gap:8},children:[p.jsx(m.Input.TextArea,{value:a,onChange:x=>c(x.target.value),onPressEnter:x=>{x.shiftKey||(x.preventDefault(),R())},placeholder:"输入消息, Enter 发送 (Shift+Enter 换行)",autoSize:{minRows:1,maxRows:6},disabled:f}),p.jsx(m.Button,{type:"primary",icon:p.jsx(F.SendOutlined,{}),loading:f,onClick:R,disabled:!a.trim(),children:"发送"})]})]})]})}function ws(){return p.jsxs(ee.Routes,{children:[p.jsx(ee.Route,{index:!0,element:p.jsx(ee.Navigate,{to:"list",replace:!0})}),p.jsx(ee.Route,{path:"list",element:p.jsx(nr,{})}),p.jsx(ee.Route,{path:"new",element:p.jsx(sr,{})}),p.jsx(ee.Route,{path:":id",element:p.jsx(ir,{})})]})}K.ProjectApp=ws,K.ProjectCreate=sr,K.ProjectDetail=ir,K.ProjectList=nr,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuku123/z-project-frontend-component",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "private": false,
5
5
  "description": "z-project 项目中心业务组件",
6
6
  "main": "./dist/z-project-frontend-component.umd.js",
@@ -41,4 +41,4 @@
41
41
  "bugs": {
42
42
  "url": "https://github.com/yuku123/z-opc-frontend/issues"
43
43
  }
44
- }
44
+ }