ed-widget 1.25.0 → 1.26.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.
package/dist/ed-widget.js CHANGED
@@ -275,7 +275,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
275
275
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(a=>r.set(a)),r}static accessor(e){const r=(this[c9]=this[c9]={accessors:{}}).accessors,a=this.prototype;function s(u){const f=Zv(u);r[f]||(ZH(a,u),r[f]=!0)}return Ae.isArray(e)?e.forEach(s):s(e),this}};io.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ae.reduceDescriptors(io.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),Ae.freezeMethods(io);function Qw(t,e){const n=this||Kv,r=e||n,a=io.from(r.headers);let s=r.data;return Ae.forEach(t,function(f){s=f.call(n,s,a.normalize(),e?e.status:void 0)}),a.normalize(),s}function f9(t){return!!(t&&t.__CANCEL__)}function lh(t,e,n){rn.call(this,t??"canceled",rn.ERR_CANCELED,e,n),this.name="CanceledError"}Ae.inherits(lh,rn,{__CANCEL__:!0});function d9(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new rn("Request failed with status code "+n.status,[rn.ERR_BAD_REQUEST,rn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function JH(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function eB(t,e){t=t||10;const n=new Array(t),r=new Array(t);let a=0,s=0,u;return e=e!==void 0?e:1e3,function(d){const p=Date.now(),m=r[s];u||(u=p),n[a]=d,r[a]=p;let y=s,b=0;for(;y!==a;)b+=n[y++],y=y%t;if(a=(a+1)%t,a===s&&(s=(s+1)%t),p-u<e)return;const S=m&&p-m;return S?Math.round(b*1e3/S):void 0}}function tB(t,e){let n=0,r=1e3/e,a,s;const u=(p,m=Date.now())=>{n=m,a=null,s&&(clearTimeout(s),s=null),t.apply(null,p)};return[(...p)=>{const m=Date.now(),y=m-n;y>=r?u(p,m):(a=p,s||(s=setTimeout(()=>{s=null,u(a)},r-y)))},()=>a&&u(a)]}const A1=(t,e,n=3)=>{let r=0;const a=eB(50,250);return tB(s=>{const u=s.loaded,f=s.lengthComputable?s.total:void 0,d=u-r,p=a(d),m=u<=f;r=u;const y={loaded:u,total:f,progress:f?u/f:void 0,bytes:d,rate:p||void 0,estimated:p&&f&&m?(f-u)/p:void 0,event:s,lengthComputable:f!=null,[e?"download":"upload"]:!0};t(y)},n)},h9=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},p9=t=>(...e)=>Ae.asap(()=>t(...e)),nB=ca.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,ca.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(ca.origin),ca.navigator&&/(msie|trident)/i.test(ca.navigator.userAgent)):()=>!0,rB=ca.hasStandardBrowserEnv?{write(t,e,n,r,a,s){const u=[t+"="+encodeURIComponent(e)];Ae.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),Ae.isString(r)&&u.push("path="+r),Ae.isString(a)&&u.push("domain="+a),s===!0&&u.push("secure"),document.cookie=u.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function iB(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function aB(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function v9(t,e,n){let r=!iB(e);return t&&(r||n==!1)?aB(t,e):e}const m9=t=>t instanceof io?{...t}:t;function nf(t,e){e=e||{};const n={};function r(p,m,y,b){return Ae.isPlainObject(p)&&Ae.isPlainObject(m)?Ae.merge.call({caseless:b},p,m):Ae.isPlainObject(m)?Ae.merge({},m):Ae.isArray(m)?m.slice():m}function a(p,m,y,b){if(Ae.isUndefined(m)){if(!Ae.isUndefined(p))return r(void 0,p,y,b)}else return r(p,m,y,b)}function s(p,m){if(!Ae.isUndefined(m))return r(void 0,m)}function u(p,m){if(Ae.isUndefined(m)){if(!Ae.isUndefined(p))return r(void 0,p)}else return r(void 0,m)}function f(p,m,y){if(y in e)return r(p,m);if(y in t)return r(void 0,p)}const d={url:s,method:s,data:s,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(p,m,y)=>a(m9(p),m9(m),y,!0)};return Ae.forEach(Object.keys(Object.assign({},t,e)),function(m){const y=d[m]||a,b=y(t[m],e[m],m);Ae.isUndefined(b)&&y!==f||(n[m]=b)}),n}const g9=t=>{const e=nf({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:s,headers:u,auth:f}=e;e.headers=u=io.from(u),e.url=o9(v9(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let d;if(Ae.isFormData(n)){if(ca.hasStandardBrowserEnv||ca.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((d=u.getContentType())!==!1){const[p,...m]=d?d.split(";").map(y=>y.trim()).filter(Boolean):[];u.setContentType([p||"multipart/form-data",...m].join("; "))}}if(ca.hasStandardBrowserEnv&&(r&&Ae.isFunction(r)&&(r=r(e)),r||r!==!1&&nB(e.url))){const p=a&&s&&rB.read(s);p&&u.set(a,p)}return e},oB=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const a=g9(t);let s=a.data;const u=io.from(a.headers).normalize();let{responseType:f,onUploadProgress:d,onDownloadProgress:p}=a,m,y,b,S,w;function C(){S&&S(),w&&w(),a.cancelToken&&a.cancelToken.unsubscribe(m),a.signal&&a.signal.removeEventListener("abort",m)}let x=new XMLHttpRequest;x.open(a.method.toUpperCase(),a.url,!0),x.timeout=a.timeout;function O(){if(!x)return;const D=io.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),T={data:!f||f==="text"||f==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:D,config:t,request:x};d9(function(M){n(M),C()},function(M){r(M),C()},T),x=null}"onloadend"in x?x.onloadend=O:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(O)},x.onabort=function(){x&&(r(new rn("Request aborted",rn.ECONNABORTED,t,x)),x=null)},x.onerror=function(){r(new rn("Network Error",rn.ERR_NETWORK,t,x)),x=null},x.ontimeout=function(){let P=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const T=a.transitional||u9;a.timeoutErrorMessage&&(P=a.timeoutErrorMessage),r(new rn(P,T.clarifyTimeoutError?rn.ETIMEDOUT:rn.ECONNABORTED,t,x)),x=null},s===void 0&&u.setContentType(null),"setRequestHeader"in x&&Ae.forEach(u.toJSON(),function(P,T){x.setRequestHeader(T,P)}),Ae.isUndefined(a.withCredentials)||(x.withCredentials=!!a.withCredentials),f&&f!=="json"&&(x.responseType=a.responseType),p&&([b,w]=A1(p,!0),x.addEventListener("progress",b)),d&&x.upload&&([y,S]=A1(d),x.upload.addEventListener("progress",y),x.upload.addEventListener("loadend",S)),(a.cancelToken||a.signal)&&(m=D=>{x&&(r(!D||D.type?new lh(null,t,x):D),x.abort(),x=null)},a.cancelToken&&a.cancelToken.subscribe(m),a.signal&&(a.signal.aborted?m():a.signal.addEventListener("abort",m)));const k=JH(a.url);if(k&&ca.protocols.indexOf(k)===-1){r(new rn("Unsupported protocol "+k+":",rn.ERR_BAD_REQUEST,t));return}x.send(s||null)})},sB=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,a;const s=function(p){if(!a){a=!0,f();const m=p instanceof Error?p:this.reason;r.abort(m instanceof rn?m:new lh(m instanceof Error?m.message:m))}};let u=e&&setTimeout(()=>{u=null,s(new rn(`timeout ${e} of ms exceeded`,rn.ETIMEDOUT))},e);const f=()=>{t&&(u&&clearTimeout(u),u=null,t.forEach(p=>{p.unsubscribe?p.unsubscribe(s):p.removeEventListener("abort",s)}),t=null)};t.forEach(p=>p.addEventListener("abort",s));const{signal:d}=r;return d.unsubscribe=()=>Ae.asap(f),d}},uB=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,a;for(;r<n;)a=r+e,yield t.slice(r,a),r=a},lB=async function*(t,e){for await(const n of cB(t))yield*uB(n,e)},cB=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},y9=(t,e,n,r)=>{const a=lB(t,e);let s=0,u,f=d=>{u||(u=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:p,value:m}=await a.next();if(p){f(),d.close();return}let y=m.byteLength;if(n){let b=s+=y;n(b)}d.enqueue(new Uint8Array(m))}catch(p){throw f(p),p}},cancel(d){return f(d),a.return()}},{highWaterMark:2})},N1=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",b9=N1&&typeof ReadableStream=="function",fB=N1&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),S9=(t,...e)=>{try{return!!t(...e)}catch{return!1}},dB=b9&&S9(()=>{let t=!1;const e=new Request(ca.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),E9=64*1024,Yw=b9&&S9(()=>Ae.isReadableStream(new Response("").body)),D1={stream:Yw&&(t=>t.body)};N1&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!D1[e]&&(D1[e]=Ae.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new rn(`Response type '${e}' is not supported`,rn.ERR_NOT_SUPPORT,r)})})})(new Response);const hB=async t=>{if(t==null)return 0;if(Ae.isBlob(t))return t.size;if(Ae.isSpecCompliantForm(t))return(await new Request(ca.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(Ae.isArrayBufferView(t)||Ae.isArrayBuffer(t))return t.byteLength;if(Ae.isURLSearchParams(t)&&(t=t+""),Ae.isString(t))return(await fB(t)).byteLength},pB=async(t,e)=>{const n=Ae.toFiniteNumber(t.getContentLength());return n??hB(e)},Xw={http:MH,xhr:oB,fetch:N1&&(async t=>{let{url:e,method:n,data:r,signal:a,cancelToken:s,timeout:u,onDownloadProgress:f,onUploadProgress:d,responseType:p,headers:m,withCredentials:y="same-origin",fetchOptions:b}=g9(t);p=p?(p+"").toLowerCase():"text";let S=sB([a,s&&s.toAbortSignal()],u),w;const C=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let x;try{if(d&&dB&&n!=="get"&&n!=="head"&&(x=await pB(m,r))!==0){let T=new Request(e,{method:"POST",body:r,duplex:"half"}),N;if(Ae.isFormData(r)&&(N=T.headers.get("content-type"))&&m.setContentType(N),T.body){const[M,U]=h9(x,A1(p9(d)));r=y9(T.body,E9,M,U)}}Ae.isString(y)||(y=y?"include":"omit");const O="credentials"in Request.prototype;w=new Request(e,{...b,signal:S,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:r,duplex:"half",credentials:O?y:void 0});let k=await fetch(w,b);const D=Yw&&(p==="stream"||p==="response");if(Yw&&(f||D&&C)){const T={};["status","statusText","headers"].forEach(H=>{T[H]=k[H]});const N=Ae.toFiniteNumber(k.headers.get("content-length")),[M,U]=f&&h9(N,A1(p9(f),!0))||[];k=new Response(y9(k.body,E9,M,()=>{U&&U(),C&&C()}),T)}p=p||"text";let P=await D1[Ae.findKey(D1,p)||"text"](k,t);return!D&&C&&C(),await new Promise((T,N)=>{d9(T,N,{data:P,headers:io.from(k.headers),status:k.status,statusText:k.statusText,config:t,request:w})})}catch(O){throw C&&C(),O&&O.name==="TypeError"&&/Load failed|fetch/i.test(O.message)?Object.assign(new rn("Network Error",rn.ERR_NETWORK,t,w),{cause:O.cause||O}):rn.from(O,O&&O.code,t,w)}})};Ae.forEach(Xw,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const _9=t=>`- ${t}`,vB=t=>Ae.isFunction(t)||t===null||t===!1,w9={getAdapter:t=>{t=Ae.isArray(t)?t:[t];const{length:e}=t;let n,r;const a={};for(let s=0;s<e;s++){n=t[s];let u;if(r=n,!vB(n)&&(r=Xw[(u=String(n)).toLowerCase()],r===void 0))throw new rn(`Unknown adapter '${u}'`);if(r)break;a[u||"#"+s]=r}if(!r){const s=Object.entries(a).map(([f,d])=>`adapter ${f} `+(d===!1?"is not supported by the environment":"is not available in the build"));let u=e?s.length>1?`since :
276
276
  `+s.map(_9).join(`
277
277
  `):" "+_9(s[0]):"as no adapter specified";throw new rn("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return r},adapters:Xw};function Kw(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new lh(null,t)}function C9(t){return Kw(t),t.headers=io.from(t.headers),t.data=Qw.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),w9.getAdapter(t.adapter||Kv.adapter)(t).then(function(r){return Kw(t),r.data=Qw.call(t,t.transformResponse,r),r.headers=io.from(r.headers),r},function(r){return f9(r)||(Kw(t),r&&r.response&&(r.response.data=Qw.call(t,t.transformResponse,r.response),r.response.headers=io.from(r.response.headers))),Promise.reject(r)})}const x9="1.10.0",L1={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{L1[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const T9={};L1.transitional=function(e,n,r){function a(s,u){return"[Axios v"+x9+"] Transitional option '"+s+"'"+u+(r?". "+r:"")}return(s,u,f)=>{if(e===!1)throw new rn(a(u," has been removed"+(n?" in "+n:"")),rn.ERR_DEPRECATED);return n&&!T9[u]&&(T9[u]=!0,console.warn(a(u," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,u,f):!0}},L1.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function mB(t,e,n){if(typeof t!="object")throw new rn("options must be an object",rn.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let a=r.length;for(;a-- >0;){const s=r[a],u=e[s];if(u){const f=t[s],d=f===void 0||u(f,s,t);if(d!==!0)throw new rn("option "+s+" must be "+d,rn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rn("Unknown option "+s,rn.ERR_BAD_OPTION)}}const P1={assertOptions:mB,validators:L1},du=P1.validators;let rf=class{constructor(e){this.defaults=e||{},this.interceptors={request:new s9,response:new s9}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
278
- `+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=nf(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:s}=n;r!==void 0&&P1.assertOptions(r,{silentJSONParsing:du.transitional(du.boolean),forcedJSONParsing:du.transitional(du.boolean),clarifyTimeoutError:du.transitional(du.boolean)},!1),a!=null&&(Ae.isFunction(a)?n.paramsSerializer={serialize:a}:P1.assertOptions(a,{encode:du.function,serialize:du.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),P1.assertOptions(n,{baseUrl:du.spelling("baseURL"),withXsrfToken:du.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=s&&Ae.merge(s.common,s[n.method]);s&&Ae.forEach(["delete","get","head","post","put","patch","common"],w=>{delete s[w]}),n.headers=io.concat(u,s);const f=[];let d=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(n)===!1||(d=d&&C.synchronous,f.unshift(C.fulfilled,C.rejected))});const p=[];this.interceptors.response.forEach(function(C){p.push(C.fulfilled,C.rejected)});let m,y=0,b;if(!d){const w=[C9.bind(this),void 0];for(w.unshift.apply(w,f),w.push.apply(w,p),b=w.length,m=Promise.resolve(n);y<b;)m=m.then(w[y++],w[y++]);return m}b=f.length;let S=n;for(y=0;y<b;){const w=f[y++],C=f[y++];try{S=w(S)}catch(x){C.call(this,x);break}}try{m=C9.call(this,S)}catch(w){return Promise.reject(w)}for(y=0,b=p.length;y<b;)m=m.then(p[y++],p[y++]);return m}getUri(e){e=nf(this.defaults,e);const n=v9(e.baseURL,e.url,e.allowAbsoluteUrls);return o9(n,e.params,e.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(e){rf.prototype[e]=function(n,r){return this.request(nf(r||{},{method:e,url:n,data:(r||{}).data}))}}),Ae.forEach(["post","put","patch"],function(e){function n(r){return function(s,u,f){return this.request(nf(f||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:u}))}}rf.prototype[e]=n(),rf.prototype[e+"Form"]=n(!0)});let gB=class fI{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(a=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](a);r._listeners=null}),this.promise.then=a=>{let s;const u=new Promise(f=>{r.subscribe(f),s=f}).then(a);return u.cancel=function(){r.unsubscribe(s)},u},e(function(s,u,f){r.reason||(r.reason=new lh(s,u,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new fI(function(a){e=a}),cancel:e}}};function yB(t){return function(n){return t.apply(null,n)}}function bB(t){return Ae.isObject(t)&&t.isAxiosError===!0}const Zw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Zw).forEach(([t,e])=>{Zw[e]=t});function R9(t){const e=new rf(t),n=q3(rf.prototype.request,e);return Ae.extend(n,rf.prototype,e,{allOwnKeys:!0}),Ae.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return R9(nf(t,a))},n}const jr=R9(Kv);jr.Axios=rf,jr.CanceledError=lh,jr.CancelToken=gB,jr.isCancel=f9,jr.VERSION=x9,jr.toFormData=O1,jr.AxiosError=rn,jr.Cancel=jr.CanceledError,jr.all=function(e){return Promise.all(e)},jr.spread=yB,jr.isAxiosError=bB,jr.mergeConfig=nf,jr.AxiosHeaders=io,jr.formToJSON=t=>l9(Ae.isHTMLForm(t)?new FormData(t):t),jr.getAdapter=w9.getAdapter,jr.HttpStatusCode=Zw,jr.default=jr;const{Axios:Nie,AxiosError:Die,CanceledError:Lie,isCancel:Pie,CancelToken:Mie,VERSION:Fie,all:jie,Cancel:Iie,isAxiosError:$ie,spread:Uie,toFormData:zie,AxiosHeaders:Vie,HttpStatusCode:Hie,formToJSON:Bie,getAdapter:qie,mergeConfig:Wie}=jr,O9=()=>jr.create({baseURL:Lw(),headers:{Authorization:Mw()}});function SB(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];af(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const k9={};function Jw(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];af(e[0])&&k9[e[0]]||(af(e[0])&&(k9[e[0]]=new Date),SB(...e))}const A9=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},N9=(t,e,n)=>{t.loadNamespaces(e,A9(t,n))},D9=(t,e,n,r)=>{af(n)&&(n=[n]),n.forEach(a=>{t.options.ns.indexOf(a)<0&&t.options.ns.push(a)}),t.loadLanguages(e,A9(t,r))},EB=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=e.languages[0],a=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const u=(f,d)=>{const p=e.services.backendConnector.state[`${f}|${d}`];return p===-1||p===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!u(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||u(r,t)&&(!a||u(s,t)))},_B=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(Jw("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:n.lng,precheck:(a,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!s(a.isLanguageChangingTo,t))return!1}}):EB(t,e,n)},af=t=>typeof t=="string",wB=t=>typeof t=="object"&&t!==null,CB=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,xB={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},TB=t=>xB[t];let eC={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(CB,TB)};const RB=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};eC={...eC,...t}},OB=()=>eC;let L9;const kB=t=>{L9=t},AB=()=>L9,NB={type:"3rdParty",init(t){RB(t.options.react),kB(t)}},DB=z.createContext();class LB{constructor(){cI(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const PB=(t,e)=>{const n=z.useRef();return z.useEffect(()=>{n.current=t},[t,e]),n.current},P9=(t,e,n,r)=>t.getFixedT(e,n,r),MB=(t,e,n,r)=>z.useCallback(P9(t,e,n,r),[t,e,n,r]),FB=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=e,{i18n:r,defaultNS:a}=z.useContext(DB)||{},s=n||r||AB();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new LB),!s){Jw("You will need to pass in an i18next instance by using initReactI18next");const P=(N,M)=>af(M)?M:wB(M)&&af(M.defaultValue)?M.defaultValue:Array.isArray(N)?N[N.length-1]:N,T=[P,{},!1];return T.t=P,T.i18n={},T.ready=!1,T}s.options.react&&s.options.react.wait!==void 0&&Jw("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const u={...OB(),...s.options.react,...e},{useSuspense:f,keyPrefix:d}=u;let p=t||a||s.options&&s.options.defaultNS;p=af(p)?[p]:p||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(p);const m=(s.isInitialized||s.initializedStoreOnce)&&p.every(P=>_B(P,s,u)),y=MB(s,e.lng||null,u.nsMode==="fallback"?p:p[0],d),b=()=>y,S=()=>P9(s,e.lng||null,u.nsMode==="fallback"?p:p[0],d),[w,C]=z.useState(b);let x=p.join();e.lng&&(x=`${e.lng}${x}`);const O=PB(x),k=z.useRef(!0);z.useEffect(()=>{const{bindI18n:P,bindI18nStore:T}=u;k.current=!0,!m&&!f&&(e.lng?D9(s,e.lng,p,()=>{k.current&&C(S)}):N9(s,p,()=>{k.current&&C(S)})),m&&O&&O!==x&&k.current&&C(S);const N=()=>{k.current&&C(S)};return P&&s&&s.on(P,N),T&&s&&s.store.on(T,N),()=>{k.current=!1,P&&s&&P.split(" ").forEach(M=>s.off(M,N)),T&&s&&T.split(" ").forEach(M=>s.store.off(M,N))}},[s,x]),z.useEffect(()=>{k.current&&m&&C(b)},[s,d,m]);const D=[w,s,m];if(D.t=w,D.i18n=s,D.ready=m,m||!m&&!f)return D;throw new Promise(P=>{e.lng?D9(s,e.lng,p,()=>P()):N9(s,p,()=>P())})},jB=Vz((t,{headers:e})=>({headers:{...e,Authorization:Pw()||Mw()}}));function M9(t){return new ks(function(e,n){return new ar(function(r){var a,s,u;try{a=n(e).subscribe({next:function(f){if(f.errors?u=t({graphQLErrors:f.errors,response:f,operation:e,forward:n}):j8(f)&&(u=t({protocolErrors:f.extensions[i1],response:f,operation:e,forward:n})),u){s=u.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(f)},error:function(f){if(u=t({operation:e,networkError:f,graphQLErrors:f&&f.result&&f.result.errors||void 0,forward:n}),u){s=u.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(f)},complete:function(){u||r.complete.bind(r)()}})}catch(f){t({networkError:f,operation:e,forward:n}),r.error(f)}return function(){a&&a.unsubscribe(),s&&a.unsubscribe()}})})}(function(t){zo(e,t);function e(n){var r=t.call(this)||this;return r.link=M9(n),r}return e.prototype.request=function(n,r){return this.link.request(n,r)},e})(ks);const tC=async()=>{WV().then(t=>{t?window.location.replace(window.location.href):Jr("error","Something went wrong!","top-right")})},IB=Qt.debounce(t=>{t===401||t===503?tC():t===404?Jr("error","Not found!","top-right"):t===500?Jr("error","Internal server error!","top-right"):Jr("error","Something went wrong! Please try again.","top-right")},1e3),$B=M9(({graphQLErrors:t,networkError:e})=>{if(Qt.size(t)&&t.forEach(({message:n})=>{var r;(r=n==null?void 0:n.includes)!=null&&r.call(n,"Token expired at")&&tC()}),Qt.size(e)){const{statusCode:n}=e;n===401?tC():IB(n)}return""}),UB=t=>V8({uri:`${t}/graphql`});function zB(t){return Pr(t)&&"code"in t&&"reason"in t}function VB(t){var e;return Pr(t)&&((e=t.target)===null||e===void 0?void 0:e.readyState)===WebSocket.CLOSED}var HB=function(t){zo(e,t);function e(n){var r=t.call(this)||this;return r.client=n,r}return e.prototype.request=function(n){var r=this;return new ar(function(a){return r.client.subscribe(le(le({},n),{query:Ll(n.query)}),{next:a.next.bind(a),complete:a.complete.bind(a),error:function(s){if(s instanceof Error)return a.error(s);var u=zB(s);return u||VB(s)?a.error(new Error("Socket closed".concat(u?" with event ".concat(s.code):"").concat(u?" ".concat(s.reason):""))):a.error(new _o({graphQLErrors:Array.isArray(s)?s:[s]}))}})})},e}(ks);function ao(t){return t===null?"null":Array.isArray(t)?"array":typeof t}function of(t){return ao(t)==="object"}function BB(t){return Array.isArray(t)&&t.length>0&&t.every(e=>"message"in e)}function F9(t,e){return t.length<124?t:e}const qB="graphql-transport-ws";var Co;(function(t){t[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(Co||(Co={}));var ei;(function(t){t.ConnectionInit="connection_init",t.ConnectionAck="connection_ack",t.Ping="ping",t.Pong="pong",t.Subscribe="subscribe",t.Next="next",t.Error="error",t.Complete="complete"})(ei||(ei={}));function j9(t){if(!of(t))throw new Error(`Message is expected to be an object, but got ${ao(t)}`);if(!t.type)throw new Error("Message is missing the 'type' property");if(typeof t.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${ao(t.type)}`);switch(t.type){case ei.ConnectionInit:case ei.ConnectionAck:case ei.Ping:case ei.Pong:{if(t.payload!=null&&!of(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${t.payload}"`);break}case ei.Subscribe:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${ao(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!of(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${ao(t.payload)}`);if(typeof t.payload.query!="string")throw new Error(`"${t.type}" message payload expects the 'query' property to be a string, but got ${ao(t.payload.query)}`);if(t.payload.variables!=null&&!of(t.payload.variables))throw new Error(`"${t.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${ao(t.payload.variables)}`);if(t.payload.operationName!=null&&ao(t.payload.operationName)!=="string")throw new Error(`"${t.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${ao(t.payload.operationName)}`);if(t.payload.extensions!=null&&!of(t.payload.extensions))throw new Error(`"${t.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${ao(t.payload.extensions)}`);break}case ei.Next:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${ao(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!of(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${ao(t.payload)}`);break}case ei.Error:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${ao(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!BB(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(t.payload)}`);break}case ei.Complete:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${ao(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${t.type}"`)}return t}function WB(t,e){return j9(typeof t=="string"?JSON.parse(t,e):t)}function Jv(t,e){return j9(t),JSON.stringify(t,e)}var ch=function(t){return this instanceof ch?(this.v=t,this):new ch(t)},GB=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),a,s=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),f("next"),f("throw"),f("return",u),a[Symbol.asyncIterator]=function(){return this},a;function u(S){return function(w){return Promise.resolve(w).then(S,y)}}function f(S,w){r[S]&&(a[S]=function(C){return new Promise(function(x,O){s.push([S,C,x,O])>1||d(S,C)})},w&&(a[S]=w(a[S])))}function d(S,w){try{p(r[S](w))}catch(C){b(s[0][3],C)}}function p(S){S.value instanceof ch?Promise.resolve(S.value.v).then(m,y):b(s[0][2],S)}function m(S){d("next",S)}function y(S){d("throw",S)}function b(S,w){S(w),s.shift(),s.length&&d(s[0][0],s[0][1])}};function QB(t){const{url:e,connectionParams:n,lazy:r=!0,onNonLazyError:a=console.error,lazyCloseTimeout:s=0,keepAlive:u=0,disablePong:f,connectionAckWaitTimeout:d=0,retryAttempts:p=5,retryWait:m=async function(K){let X=1e3;for(let ee=0;ee<K;ee++)X*=2;await new Promise(ee=>setTimeout(ee,X+Math.floor(Math.random()*2700+300)))},shouldRetry:y=nC,isFatalConnectionProblem:b,on:S,webSocketImpl:w,generateID:C=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,K=>{const X=Math.random()*16|0;return(K=="x"?X:X&3|8).toString(16)})},jsonMessageReplacer:x,jsonMessageReviver:O}=t;let k;if(w){if(!XB(w))throw new Error("Invalid WebSocket implementation provided");k=w}else typeof WebSocket<"u"?k=WebSocket:typeof global<"u"?k=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(k=window.WebSocket||window.MozWebSocket);if(!k)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const D=k,P=(()=>{const G=(()=>{const X={};return{on(ee,me){return X[ee]=me,()=>{delete X[ee]}},emit(ee){var me;"id"in ee&&((me=X[ee.id])===null||me===void 0||me.call(X,ee))}}})(),K={connecting:S!=null&&S.connecting?[S.connecting]:[],opened:S!=null&&S.opened?[S.opened]:[],connected:S!=null&&S.connected?[S.connected]:[],ping:S!=null&&S.ping?[S.ping]:[],pong:S!=null&&S.pong?[S.pong]:[],message:S!=null&&S.message?[G.emit,S.message]:[G.emit],closed:S!=null&&S.closed?[S.closed]:[],error:S!=null&&S.error?[S.error]:[]};return{onMessage:G.on,on(X,ee){const me=K[X];return me.push(ee),()=>{me.splice(me.indexOf(ee),1)}},emit(X,...ee){for(const me of[...K[X]])me(...ee)}}})();function T(G){const K=[P.on("error",X=>{K.forEach(ee=>ee()),G(X)}),P.on("closed",X=>{K.forEach(ee=>ee()),G(X)})]}let N,M=0,U,H=!1,Y=0,J=!1;async function ue(){clearTimeout(U);const[G,K]=await(N??(N=new Promise((me,ne)=>(async()=>{if(H){if(await m(Y),!M)return N=void 0,ne({code:1e3,reason:"All Subscriptions Gone"});Y++}P.emit("connecting",H);const se=new D(typeof e=="function"?await e():e,qB);let ve,xe;function be(){isFinite(u)&&u>0&&(clearTimeout(xe),xe=setTimeout(()=>{se.readyState===D.OPEN&&(se.send(Jv({type:ei.Ping})),P.emit("ping",!1,void 0))},u))}T(ke=>{N=void 0,clearTimeout(ve),clearTimeout(xe),ne(ke),ke instanceof I9&&(se.close(4499,"Terminated"),se.onerror=null,se.onclose=null)}),se.onerror=ke=>P.emit("error",ke),se.onclose=ke=>P.emit("closed",ke),se.onopen=async()=>{try{P.emit("opened",se);const ke=typeof n=="function"?await n():n;if(se.readyState!==D.OPEN)return;se.send(Jv(ke?{type:ei.ConnectionInit,payload:ke}:{type:ei.ConnectionInit},x)),isFinite(d)&&d>0&&(ve=setTimeout(()=>{se.close(Co.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},d)),be()}catch(ke){P.emit("error",ke),se.close(Co.InternalClientError,F9(ke instanceof Error?ke.message:new Error(ke).message,"Internal client error"))}};let Fe=!1;se.onmessage=({data:ke})=>{try{const je=WB(ke,O);if(P.emit("message",je),je.type==="ping"||je.type==="pong"){P.emit(je.type,!0,je.payload),je.type==="pong"?be():f||(se.send(Jv(je.payload?{type:ei.Pong,payload:je.payload}:{type:ei.Pong})),P.emit("pong",!1,je.payload));return}if(Fe)return;if(je.type!==ei.ConnectionAck)throw new Error(`First message cannot be of type ${je.type}`);clearTimeout(ve),Fe=!0,P.emit("connected",se,je.payload,H),H=!1,Y=0,me([se,new Promise((Ye,de)=>T(de))])}catch(je){se.onmessage=null,P.emit("error",je),se.close(Co.BadResponse,F9(je instanceof Error?je.message:new Error(je).message,"Bad response"))}}})())));G.readyState===D.CLOSING&&await K;let X=()=>{};const ee=new Promise(me=>X=me);return[G,X,Promise.race([ee.then(()=>{if(!M){const me=()=>G.close(1e3,"Normal Closure");isFinite(s)&&s>0?U=setTimeout(()=>{G.readyState===D.OPEN&&me()},s):me()}}),K])]}function Z(G){if(nC(G)&&(YB(G.code)||[Co.InternalServerError,Co.InternalClientError,Co.BadRequest,Co.BadResponse,Co.Unauthorized,Co.SubprotocolNotAcceptable,Co.SubscriberAlreadyExists,Co.TooManyInitialisationRequests].includes(G.code)))throw G;if(J)return!1;if(nC(G)&&G.code===1e3)return M>0;if(!p||Y>=p||!y(G)||b!=null&&b(G))throw G;return H=!0}r||(async()=>{for(M++;;)try{const[,,G]=await ue();await G}catch(G){try{if(!Z(G))return}catch(K){return a==null?void 0:a(K)}}})();function Q(G,K){const X=C(G);let ee=!1,me=!1,ne=()=>{M--,ee=!0};return(async()=>{for(M++;;)try{const[se,ve,xe]=await ue();if(ee)return ve();const be=P.onMessage(X,Fe=>{switch(Fe.type){case ei.Next:{K.next(Fe.payload);return}case ei.Error:{me=!0,ee=!0,K.error(Fe.payload),ne();return}case ei.Complete:{ee=!0,ne();return}}});se.send(Jv({id:X,type:ei.Subscribe,payload:G},x)),ne=()=>{!ee&&se.readyState===D.OPEN&&se.send(Jv({id:X,type:ei.Complete},x)),M--,ee=!0,ve()},await xe.finally(be);return}catch(se){if(!Z(se))return}})().then(()=>{me||K.complete()}).catch(se=>{K.error(se)}),()=>{ee||ne()}}return{on:P.on,subscribe:Q,iterate(G){const K=[],X={done:!1,error:null,resolve:()=>{}},ee=Q(G,{next(ne){K.push(ne),X.resolve()},error(ne){X.done=!0,X.error=ne,X.resolve()},complete(){X.done=!0,X.resolve()}}),me=function(){return GB(this,arguments,function*(){for(;;){for(K.length||(yield ch(new Promise(ve=>X.resolve=ve)));K.length;)yield yield ch(K.shift());if(X.error)throw X.error;if(X.done)return yield ch(void 0)}})}();return me.throw=async ne=>(X.done||(X.done=!0,X.error=ne,X.resolve()),{done:!0,value:void 0}),me.return=async()=>(ee(),{done:!0,value:void 0}),me},async dispose(){if(J=!0,N){const[G]=await N;G.close(1e3,"Normal Closure")}},terminate(){N&&P.emit("closed",new I9)}}}class I9 extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function nC(t){return of(t)&&"code"in t&&"reason"in t}function YB(t){return[1e3,1001,1006,1005,1012,1013,1014].includes(t)?!1:t>=1e3&&t<=1999}function XB(t){return typeof t=="function"&&"constructor"in t&&"CLOSED"in t&&"CLOSING"in t&&"CONNECTING"in t&&"OPEN"in t}const KB=t=>new HB(QB({connectionParams:{Authorization:Pw()||Mw()},url:`${t==null?void 0:t.replace("http","ws")}/graphql`})),rC=t=>new MA({link:lU([jB,$B,cU(({query:e})=>{const n=Qd(e);return n.kind==="OperationDefinition"&&n.operation==="subscription"},KB(t),UB(t))]),cache:new AA});rC();var iC={exports:{}},aC={exports:{}},or={},$9;function ZB(){if($9)return or;$9=1;/** @license React v16.13.1
278
+ `+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=nf(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:s}=n;r!==void 0&&P1.assertOptions(r,{silentJSONParsing:du.transitional(du.boolean),forcedJSONParsing:du.transitional(du.boolean),clarifyTimeoutError:du.transitional(du.boolean)},!1),a!=null&&(Ae.isFunction(a)?n.paramsSerializer={serialize:a}:P1.assertOptions(a,{encode:du.function,serialize:du.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),P1.assertOptions(n,{baseUrl:du.spelling("baseURL"),withXsrfToken:du.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=s&&Ae.merge(s.common,s[n.method]);s&&Ae.forEach(["delete","get","head","post","put","patch","common"],w=>{delete s[w]}),n.headers=io.concat(u,s);const f=[];let d=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(n)===!1||(d=d&&C.synchronous,f.unshift(C.fulfilled,C.rejected))});const p=[];this.interceptors.response.forEach(function(C){p.push(C.fulfilled,C.rejected)});let m,y=0,b;if(!d){const w=[C9.bind(this),void 0];for(w.unshift.apply(w,f),w.push.apply(w,p),b=w.length,m=Promise.resolve(n);y<b;)m=m.then(w[y++],w[y++]);return m}b=f.length;let S=n;for(y=0;y<b;){const w=f[y++],C=f[y++];try{S=w(S)}catch(x){C.call(this,x);break}}try{m=C9.call(this,S)}catch(w){return Promise.reject(w)}for(y=0,b=p.length;y<b;)m=m.then(p[y++],p[y++]);return m}getUri(e){e=nf(this.defaults,e);const n=v9(e.baseURL,e.url,e.allowAbsoluteUrls);return o9(n,e.params,e.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(e){rf.prototype[e]=function(n,r){return this.request(nf(r||{},{method:e,url:n,data:(r||{}).data}))}}),Ae.forEach(["post","put","patch"],function(e){function n(r){return function(s,u,f){return this.request(nf(f||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:u}))}}rf.prototype[e]=n(),rf.prototype[e+"Form"]=n(!0)});let gB=class fI{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(a=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](a);r._listeners=null}),this.promise.then=a=>{let s;const u=new Promise(f=>{r.subscribe(f),s=f}).then(a);return u.cancel=function(){r.unsubscribe(s)},u},e(function(s,u,f){r.reason||(r.reason=new lh(s,u,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new fI(function(a){e=a}),cancel:e}}};function yB(t){return function(n){return t.apply(null,n)}}function bB(t){return Ae.isObject(t)&&t.isAxiosError===!0}const Zw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Zw).forEach(([t,e])=>{Zw[e]=t});function R9(t){const e=new rf(t),n=q3(rf.prototype.request,e);return Ae.extend(n,rf.prototype,e,{allOwnKeys:!0}),Ae.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return R9(nf(t,a))},n}const jr=R9(Kv);jr.Axios=rf,jr.CanceledError=lh,jr.CancelToken=gB,jr.isCancel=f9,jr.VERSION=x9,jr.toFormData=O1,jr.AxiosError=rn,jr.Cancel=jr.CanceledError,jr.all=function(e){return Promise.all(e)},jr.spread=yB,jr.isAxiosError=bB,jr.mergeConfig=nf,jr.AxiosHeaders=io,jr.formToJSON=t=>l9(Ae.isHTMLForm(t)?new FormData(t):t),jr.getAdapter=w9.getAdapter,jr.HttpStatusCode=Zw,jr.default=jr;const{Axios:Nie,AxiosError:Die,CanceledError:Lie,isCancel:Pie,CancelToken:Mie,VERSION:Fie,all:jie,Cancel:Iie,isAxiosError:$ie,spread:Uie,toFormData:zie,AxiosHeaders:Vie,HttpStatusCode:Hie,formToJSON:Bie,getAdapter:qie,mergeConfig:Wie}=jr,O9=()=>jr.create({baseURL:Lw(),headers:{Authorization:Mw()}});function SB(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];af(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const k9={};function Jw(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];af(e[0])&&k9[e[0]]||(af(e[0])&&(k9[e[0]]=new Date),SB(...e))}const A9=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},N9=(t,e,n)=>{t.loadNamespaces(e,A9(t,n))},D9=(t,e,n,r)=>{af(n)&&(n=[n]),n.forEach(a=>{t.options.ns.indexOf(a)<0&&t.options.ns.push(a)}),t.loadLanguages(e,A9(t,r))},EB=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=e.languages[0],a=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const u=(f,d)=>{const p=e.services.backendConnector.state[`${f}|${d}`];return p===-1||p===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!u(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||u(r,t)&&(!a||u(s,t)))},_B=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(Jw("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:n.lng,precheck:(a,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!s(a.isLanguageChangingTo,t))return!1}}):EB(t,e,n)},af=t=>typeof t=="string",wB=t=>typeof t=="object"&&t!==null,CB=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,xB={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},TB=t=>xB[t];let eC={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(CB,TB)};const RB=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};eC={...eC,...t}},OB=()=>eC;let L9;const kB=t=>{L9=t},AB=()=>L9,NB={type:"3rdParty",init(t){RB(t.options.react),kB(t)}},DB=z.createContext();class LB{constructor(){cI(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const PB=(t,e)=>{const n=z.useRef();return z.useEffect(()=>{n.current=t},[t,e]),n.current},P9=(t,e,n,r)=>t.getFixedT(e,n,r),MB=(t,e,n,r)=>z.useCallback(P9(t,e,n,r),[t,e,n,r]),FB=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=e,{i18n:r,defaultNS:a}=z.useContext(DB)||{},s=n||r||AB();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new LB),!s){Jw("You will need to pass in an i18next instance by using initReactI18next");const P=(N,M)=>af(M)?M:wB(M)&&af(M.defaultValue)?M.defaultValue:Array.isArray(N)?N[N.length-1]:N,T=[P,{},!1];return T.t=P,T.i18n={},T.ready=!1,T}s.options.react&&s.options.react.wait!==void 0&&Jw("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const u={...OB(),...s.options.react,...e},{useSuspense:f,keyPrefix:d}=u;let p=t||a||s.options&&s.options.defaultNS;p=af(p)?[p]:p||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(p);const m=(s.isInitialized||s.initializedStoreOnce)&&p.every(P=>_B(P,s,u)),y=MB(s,e.lng||null,u.nsMode==="fallback"?p:p[0],d),b=()=>y,S=()=>P9(s,e.lng||null,u.nsMode==="fallback"?p:p[0],d),[w,C]=z.useState(b);let x=p.join();e.lng&&(x=`${e.lng}${x}`);const O=PB(x),k=z.useRef(!0);z.useEffect(()=>{const{bindI18n:P,bindI18nStore:T}=u;k.current=!0,!m&&!f&&(e.lng?D9(s,e.lng,p,()=>{k.current&&C(S)}):N9(s,p,()=>{k.current&&C(S)})),m&&O&&O!==x&&k.current&&C(S);const N=()=>{k.current&&C(S)};return P&&s&&s.on(P,N),T&&s&&s.store.on(T,N),()=>{k.current=!1,P&&s&&P.split(" ").forEach(M=>s.off(M,N)),T&&s&&T.split(" ").forEach(M=>s.store.off(M,N))}},[s,x]),z.useEffect(()=>{k.current&&m&&C(b)},[s,d,m]);const D=[w,s,m];if(D.t=w,D.i18n=s,D.ready=m,m||!m&&!f)return D;throw new Promise(P=>{e.lng?D9(s,e.lng,p,()=>P()):N9(s,p,()=>P())})},jB=Vz((t,{headers:e})=>({headers:{...e,Authorization:Pw()||Mw()}}));function M9(t){return new ks(function(e,n){return new ar(function(r){var a,s,u;try{a=n(e).subscribe({next:function(f){if(f.errors?u=t({graphQLErrors:f.errors,response:f,operation:e,forward:n}):j8(f)&&(u=t({protocolErrors:f.extensions[i1],response:f,operation:e,forward:n})),u){s=u.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(f)},error:function(f){if(u=t({operation:e,networkError:f,graphQLErrors:f&&f.result&&f.result.errors||void 0,forward:n}),u){s=u.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(f)},complete:function(){u||r.complete.bind(r)()}})}catch(f){t({networkError:f,operation:e,forward:n}),r.error(f)}return function(){a&&a.unsubscribe(),s&&a.unsubscribe()}})})}(function(t){zo(e,t);function e(n){var r=t.call(this)||this;return r.link=M9(n),r}return e.prototype.request=function(n,r){return this.link.request(n,r)},e})(ks);const tC=async()=>{WV().then(t=>{t?window.location.replace(window.location.href):Jr("error","Something went wrong!","top-right")})},IB=Qt.debounce(t=>{t===401||t===503?tC():t===404?Jr("error","Not found!","top-right"):t===500?Jr("error","Internal server error!","top-right"):Jr("error","Something went wrong! Please try again.","top-right")},1e3),$B=M9(({graphQLErrors:t,networkError:e})=>{if(Qt.size(t)&&t.forEach(({message:n})=>{var r;(r=n==null?void 0:n.includes)!=null&&r.call(n,"Token expired at")&&tC()}),Qt.size(e)){const{statusCode:n}=e;n===401?tC():IB(n)}return""}),UB=t=>V8({uri:`${t}/graphql`});function zB(t){return Pr(t)&&"code"in t&&"reason"in t}function VB(t){var e;return Pr(t)&&((e=t.target)===null||e===void 0?void 0:e.readyState)===WebSocket.CLOSED}var HB=function(t){zo(e,t);function e(n){var r=t.call(this)||this;return r.client=n,r}return e.prototype.request=function(n){var r=this;return new ar(function(a){return r.client.subscribe(le(le({},n),{query:Ll(n.query)}),{next:a.next.bind(a),complete:a.complete.bind(a),error:function(s){if(s instanceof Error)return a.error(s);var u=zB(s);return u||VB(s)?a.error(new Error("Socket closed".concat(u?" with event ".concat(s.code):"").concat(u?" ".concat(s.reason):""))):a.error(new _o({graphQLErrors:Array.isArray(s)?s:[s]}))}})})},e}(ks);function ao(t){return t===null?"null":Array.isArray(t)?"array":typeof t}function of(t){return ao(t)==="object"}function BB(t){return Array.isArray(t)&&t.length>0&&t.every(e=>"message"in e)}function F9(t,e){return t.length<124?t:e}const qB="graphql-transport-ws";var Co;(function(t){t[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(Co||(Co={}));var ei;(function(t){t.ConnectionInit="connection_init",t.ConnectionAck="connection_ack",t.Ping="ping",t.Pong="pong",t.Subscribe="subscribe",t.Next="next",t.Error="error",t.Complete="complete"})(ei||(ei={}));function j9(t){if(!of(t))throw new Error(`Message is expected to be an object, but got ${ao(t)}`);if(!t.type)throw new Error("Message is missing the 'type' property");if(typeof t.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${ao(t.type)}`);switch(t.type){case ei.ConnectionInit:case ei.ConnectionAck:case ei.Ping:case ei.Pong:{if(t.payload!=null&&!of(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${t.payload}"`);break}case ei.Subscribe:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${ao(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!of(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${ao(t.payload)}`);if(typeof t.payload.query!="string")throw new Error(`"${t.type}" message payload expects the 'query' property to be a string, but got ${ao(t.payload.query)}`);if(t.payload.variables!=null&&!of(t.payload.variables))throw new Error(`"${t.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${ao(t.payload.variables)}`);if(t.payload.operationName!=null&&ao(t.payload.operationName)!=="string")throw new Error(`"${t.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${ao(t.payload.operationName)}`);if(t.payload.extensions!=null&&!of(t.payload.extensions))throw new Error(`"${t.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${ao(t.payload.extensions)}`);break}case ei.Next:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${ao(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!of(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${ao(t.payload)}`);break}case ei.Error:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${ao(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!BB(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(t.payload)}`);break}case ei.Complete:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${ao(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${t.type}"`)}return t}function WB(t,e){return j9(typeof t=="string"?JSON.parse(t,e):t)}function Jv(t,e){return j9(t),JSON.stringify(t,e)}var ch=function(t){return this instanceof ch?(this.v=t,this):new ch(t)},GB=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),a,s=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),f("next"),f("throw"),f("return",u),a[Symbol.asyncIterator]=function(){return this},a;function u(S){return function(w){return Promise.resolve(w).then(S,y)}}function f(S,w){r[S]&&(a[S]=function(C){return new Promise(function(x,O){s.push([S,C,x,O])>1||d(S,C)})},w&&(a[S]=w(a[S])))}function d(S,w){try{p(r[S](w))}catch(C){b(s[0][3],C)}}function p(S){S.value instanceof ch?Promise.resolve(S.value.v).then(m,y):b(s[0][2],S)}function m(S){d("next",S)}function y(S){d("throw",S)}function b(S,w){S(w),s.shift(),s.length&&d(s[0][0],s[0][1])}};function QB(t){const{url:e,connectionParams:n,lazy:r=!0,onNonLazyError:a=console.error,lazyCloseTimeout:s=0,keepAlive:u=0,disablePong:f,connectionAckWaitTimeout:d=0,retryAttempts:p=5,retryWait:m=async function(K){let X=1e3;for(let ee=0;ee<K;ee++)X*=2;await new Promise(ee=>setTimeout(ee,X+Math.floor(Math.random()*2700+300)))},shouldRetry:y=nC,isFatalConnectionProblem:b,on:S,webSocketImpl:w,generateID:C=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,K=>{const X=Math.random()*16|0;return(K=="x"?X:X&3|8).toString(16)})},jsonMessageReplacer:x,jsonMessageReviver:O}=t;let k;if(w){if(!XB(w))throw new Error("Invalid WebSocket implementation provided");k=w}else typeof WebSocket<"u"?k=WebSocket:typeof global<"u"?k=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(k=window.WebSocket||window.MozWebSocket);if(!k)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const D=k,P=(()=>{const G=(()=>{const X={};return{on(ee,me){return X[ee]=me,()=>{delete X[ee]}},emit(ee){var me;"id"in ee&&((me=X[ee.id])===null||me===void 0||me.call(X,ee))}}})(),K={connecting:S!=null&&S.connecting?[S.connecting]:[],opened:S!=null&&S.opened?[S.opened]:[],connected:S!=null&&S.connected?[S.connected]:[],ping:S!=null&&S.ping?[S.ping]:[],pong:S!=null&&S.pong?[S.pong]:[],message:S!=null&&S.message?[G.emit,S.message]:[G.emit],closed:S!=null&&S.closed?[S.closed]:[],error:S!=null&&S.error?[S.error]:[]};return{onMessage:G.on,on(X,ee){const me=K[X];return me.push(ee),()=>{me.splice(me.indexOf(ee),1)}},emit(X,...ee){for(const me of[...K[X]])me(...ee)}}})();function T(G){const K=[P.on("error",X=>{K.forEach(ee=>ee()),G(X)}),P.on("closed",X=>{K.forEach(ee=>ee()),G(X)})]}let N,M=0,U,H=!1,Y=0,J=!1;async function ue(){clearTimeout(U);const[G,K]=await(N??(N=new Promise((me,ne)=>(async()=>{if(H){if(await m(Y),!M)return N=void 0,ne({code:1e3,reason:"All Subscriptions Gone"});Y++}P.emit("connecting",H);const se=new D(typeof e=="function"?await e():e,qB);let ve,xe;function be(){isFinite(u)&&u>0&&(clearTimeout(xe),xe=setTimeout(()=>{se.readyState===D.OPEN&&(se.send(Jv({type:ei.Ping})),P.emit("ping",!1,void 0))},u))}T(ke=>{N=void 0,clearTimeout(ve),clearTimeout(xe),ne(ke),ke instanceof I9&&(se.close(4499,"Terminated"),se.onerror=null,se.onclose=null)}),se.onerror=ke=>P.emit("error",ke),se.onclose=ke=>P.emit("closed",ke),se.onopen=async()=>{try{P.emit("opened",se);const ke=typeof n=="function"?await n():n;if(se.readyState!==D.OPEN)return;se.send(Jv(ke?{type:ei.ConnectionInit,payload:ke}:{type:ei.ConnectionInit},x)),isFinite(d)&&d>0&&(ve=setTimeout(()=>{se.close(Co.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},d)),be()}catch(ke){P.emit("error",ke),se.close(Co.InternalClientError,F9(ke instanceof Error?ke.message:new Error(ke).message,"Internal client error"))}};let Fe=!1;se.onmessage=({data:ke})=>{try{const je=WB(ke,O);if(P.emit("message",je),je.type==="ping"||je.type==="pong"){P.emit(je.type,!0,je.payload),je.type==="pong"?be():f||(se.send(Jv(je.payload?{type:ei.Pong,payload:je.payload}:{type:ei.Pong})),P.emit("pong",!1,je.payload));return}if(Fe)return;if(je.type!==ei.ConnectionAck)throw new Error(`First message cannot be of type ${je.type}`);clearTimeout(ve),Fe=!0,P.emit("connected",se,je.payload,H),H=!1,Y=0,me([se,new Promise((Ye,de)=>T(de))])}catch(je){se.onmessage=null,P.emit("error",je),se.close(Co.BadResponse,F9(je instanceof Error?je.message:new Error(je).message,"Bad response"))}}})())));G.readyState===D.CLOSING&&await K;let X=()=>{};const ee=new Promise(me=>X=me);return[G,X,Promise.race([ee.then(()=>{if(!M){const me=()=>G.close(1e3,"Normal Closure");isFinite(s)&&s>0?U=setTimeout(()=>{G.readyState===D.OPEN&&me()},s):me()}}),K])]}function Z(G){if(nC(G)&&(YB(G.code)||[Co.InternalServerError,Co.InternalClientError,Co.BadRequest,Co.BadResponse,Co.Unauthorized,Co.SubprotocolNotAcceptable,Co.SubscriberAlreadyExists,Co.TooManyInitialisationRequests].includes(G.code)))throw G;if(J)return!1;if(nC(G)&&G.code===1e3)return M>0;if(!p||Y>=p||!y(G)||b!=null&&b(G))throw G;return H=!0}r||(async()=>{for(M++;;)try{const[,,G]=await ue();await G}catch(G){try{if(!Z(G))return}catch(K){return a==null?void 0:a(K)}}})();function Q(G,K){const X=C(G);let ee=!1,me=!1,ne=()=>{M--,ee=!0};return(async()=>{for(M++;;)try{const[se,ve,xe]=await ue();if(ee)return ve();const be=P.onMessage(X,Fe=>{switch(Fe.type){case ei.Next:{K.next(Fe.payload);return}case ei.Error:{me=!0,ee=!0,K.error(Fe.payload),ne();return}case ei.Complete:{ee=!0,ne();return}}});se.send(Jv({id:X,type:ei.Subscribe,payload:G},x)),ne=()=>{!ee&&se.readyState===D.OPEN&&se.send(Jv({id:X,type:ei.Complete},x)),M--,ee=!0,ve()},await xe.finally(be);return}catch(se){if(!Z(se))return}})().then(()=>{me||K.complete()}).catch(se=>{K.error(se)}),()=>{ee||ne()}}return{on:P.on,subscribe:Q,iterate(G){const K=[],X={done:!1,error:null,resolve:()=>{}},ee=Q(G,{next(ne){K.push(ne),X.resolve()},error(ne){X.done=!0,X.error=ne,X.resolve()},complete(){X.done=!0,X.resolve()}}),me=function(){return GB(this,arguments,function*(){for(;;){for(K.length||(yield ch(new Promise(ve=>X.resolve=ve)));K.length;)yield yield ch(K.shift());if(X.error)throw X.error;if(X.done)return yield ch(void 0)}})}();return me.throw=async ne=>(X.done||(X.done=!0,X.error=ne,X.resolve()),{done:!0,value:void 0}),me.return=async()=>(ee(),{done:!0,value:void 0}),me},async dispose(){if(J=!0,N){const[G]=await N;G.close(1e3,"Normal Closure")}},terminate(){N&&P.emit("closed",new I9)}}}class I9 extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function nC(t){return of(t)&&"code"in t&&"reason"in t}function YB(t){return[1e3,1001,1006,1005,1012,1013,1014].includes(t)?!1:t>=1e3&&t<=1999}function XB(t){return typeof t=="function"&&"constructor"in t&&"CLOSED"in t&&"CLOSING"in t&&"CONNECTING"in t&&"OPEN"in t}const KB=t=>new HB(QB({connectionParams:{Authorization:Pw()||Mw()},url:`${t==null?void 0:t.replace("http","ws")}/graphql`,keepAlive:6e4})),rC=t=>new MA({link:lU([jB,$B,cU(({query:e})=>{const n=Qd(e);return n.kind==="OperationDefinition"&&n.operation==="subscription"},KB(t),UB(t))]),cache:new AA});rC();var iC={exports:{}},aC={exports:{}},or={},$9;function ZB(){if($9)return or;$9=1;/** @license React v16.13.1
279
279
  * react-is.development.js
280
280
  *
281
281
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -368,7 +368,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
368
368
  `);else if(T._keyframe)O(T);else{var N=b.reduce(function(M,U){var H;return(U==null||(H=U.visit)===null||H===void 0?void 0:H.call(U,M))||M},T);Object.keys(N).forEach(function(M){var U=N[M];if(an(U)==="object"&&U&&(M!=="animationName"||!U._keyframe)&&!RY(U)){var H=!1,Y=M.trim(),J=!1;(a||s)&&f?Y.startsWith("@")?H=!0:Y==="&"?Y=uD("",f,m):Y=uD(M,f,m):a&&!f&&(Y==="&"||Y==="")&&(Y="",J=!0);var ue=t(U,n,{root:J,injectHash:H,parentSelectors:[].concat(jt(u),[Y])}),Z=pt(ue,2),Q=Z[0],G=Z[1];x=ze(ze({},x),G),C+="".concat(Y).concat(Q)}else{let ee=function(me,ne){(an(U)!=="object"||!(U!=null&&U[oD]))&&[_Y,wY].concat(jt(w)).forEach(function(xe){return xe(me,ne,{path:p,hashId:f,parentSelectors:u})});var se=me.replace(/[A-Z]/g,function(xe){return"-".concat(xe.toLowerCase())}),ve=ne;!iY[me]&&typeof ve=="number"&&ve!==0&&(ve="".concat(ve,"px")),me==="animationName"&&ne!==null&&ne!==void 0&&ne._keyframe&&(O(ne),ve=ne.getName(f)),C+="".concat(se,":").concat(ve,";")};var K,X=(K=U==null?void 0:U.value)!==null&&K!==void 0?K:U;an(U)==="object"&&U!==null&&U!==void 0&&U[sD]&&Array.isArray(X)?X.forEach(function(me){ee(M,me)}):ee(M,X)}})}}),a?d&&(C&&(C="@layer ".concat(d.name," {").concat(C,"}")),d.dependencies&&(x["@layer ".concat(d.name)]=d.dependencies.map(function(P){return"@layer ".concat(P,", ").concat(d.name,";")}).join(`
369
369
  `))):C="{".concat(C,"}"),[C,x]};function lD(t,e){return pm("".concat(t.join("%")).concat(e))}function kY(){return null}var cD="style";function fD(t,e){var n=t.token,r=t.path,a=t.hashId,s=t.layer,u=t.nonce,f=t.clientOnly,d=t.order,p=d===void 0?0:d,m=z.useContext(o0),y=m.autoClear,b=m.mock,S=m.defaultCache,w=m.hashPriority,C=m.container,x=m.ssrInline,O=m.transformers,k=m.linters,D=m.cache,P=m.layer,T=n._tokenKey,N=[T];P&&N.push("layer"),N.push.apply(N,jt(r));var M=Ux;b!==void 0&&(M=b==="client");var U=Vx(cD,N,function(){var Z=N.join("|");if(xY(Z)){var Q=TY(Z),G=pt(Q,2),K=G[0],X=G[1];if(K)return[K,T,X,{},f,p]}var ee=e(),me=OY(ee,{hashId:a,hashPriority:w,layer:P?s:void 0,path:r.join("-"),transformers:O,linters:k}),ne=pt(me,2),se=ne[0],ve=ne[1],xe=m0(se),be=lD(N,xe);return[xe,T,be,ve,f,p]},function(Z,Q){var G=pt(Z,3),K=G[2];(Q||y)&&Ux&&vm(K,{mark:Ds})},function(Z){var Q=pt(Z,4),G=Q[0];Q[1];var K=Q[2],X=Q[3];if(M&&G!==iD){var ee={mark:Ds,prepend:P?!1:"queue",attachTo:C,priority:p},me=typeof u=="function"?u():u;me&&(ee.csp={nonce:me});var ne=[],se=[];Object.keys(X).forEach(function(xe){xe.startsWith("@layer")?ne.push(xe):se.push(xe)}),ne.forEach(function(xe){df(m0(X[xe]),"_layer-".concat(xe),ze(ze({},ee),{},{prepend:!0}))});var ve=df(G,K,ee);ve[Vl]=D.instanceId,ve.setAttribute(xh,T),ve.setAttribute(NQ,N.join("|")),se.forEach(function(xe){df(m0(X[xe]),"_effect-".concat(xe),ee)})}}),H=pt(U,3),Y=H[0],J=H[1],ue=H[2];return function(Z){var Q;if(!x||M||!S)Q=z.createElement(kY,null);else{var G;Q=z.createElement("style",vu({},(G={},Se(G,xh,J),Se(G,Ds,ue),G),{dangerouslySetInnerHTML:{__html:Y}}))}return z.createElement(z.Fragment,null,Q,Z)}}var AY=function(e,n,r){var a=pt(e,6),s=a[0],u=a[1],f=a[2],d=a[3],p=a[4],m=a[5],y=r||{},b=y.plain;if(p)return null;var S=s,w={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)};return S=s0(s,u,f,w,b),d&&Object.keys(d).forEach(function(C){if(!n[C]){n[C]=!0;var x=m0(d[C]),O=s0(x,u,"_effect-".concat(C),w,b);C.startsWith("@layer")?S=O+S:S+=O}}),[m,f,S]},dD="cssVar",NY=function(e,n){var r=e.key,a=e.prefix,s=e.unitless,u=e.ignore,f=e.token,d=e.scope,p=d===void 0?"":d,m=z.useContext(o0),y=m.cache.instanceId,b=m.container,S=f._tokenKey,w=[].concat(jt(e.path),[r,p,S]),C=Vx(dD,w,function(){var x=n(),O=HN(x,r,{prefix:a,unitless:s,ignore:u,scope:p}),k=pt(O,2),D=k[0],P=k[1],T=lD(w,P);return[D,P,T,r]},function(x){var O=pt(x,3),k=O[2];Ux&&vm(k,{mark:Ds})},function(x){var O=pt(x,3),k=O[1],D=O[2];if(k){var P=df(k,D,{mark:Ds,prepend:"queue",attachTo:b,priority:-999});P[Vl]=y,P.setAttribute(xh,r)}});return C},DY=function(e,n,r){var a=pt(e,4),s=a[1],u=a[2],f=a[3],d=r||{},p=d.plain;if(!s)return null;var m=-999,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)},b=s0(s,f,u,y,p);return[m,u,b]},ym;ym={},Se(ym,cD,AY),Se(ym,GN,rY),Se(ym,dD,DY);var Wo=function(){function t(e,n){da(this,t),Se(this,"name",void 0),Se(this,"style",void 0),Se(this,"_keyframe",!0),this.name=e,this.style=n}return ha(t,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),t}();function Ah(t){return t.notSplit=!0,t}Ah(["borderTop","borderBottom"]),Ah(["borderTop"]),Ah(["borderBottom"]),Ah(["borderLeft","borderRight"]),Ah(["borderLeft"]),Ah(["borderRight"]);function LY(t){return NN(t)||TN(t)||Lx(t)||DN()}function gu(t,e){for(var n=t,r=0;r<e.length;r+=1){if(n==null)return;n=n[e[r]]}return n}function hD(t,e,n,r){if(!e.length)return n;var a=LY(e),s=a[0],u=a.slice(1),f;return!t&&typeof s=="number"?f=[]:Array.isArray(t)?f=jt(t):f=ze({},t),r&&n===void 0&&u.length===1?delete f[s][u[0]]:f[s]=hD(f[s],u,n,r),f}function Ps(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&r&&n===void 0&&!gu(t,e.slice(0,-1))?t:hD(t,e,n,r)}function PY(t){return an(t)==="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function pD(t){return Array.isArray(t)?[]:{}}var MY=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function bm(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=pD(e[0]);return e.forEach(function(a){function s(u,f){var d=new Set(f),p=gu(a,u),m=Array.isArray(p);if(m||PY(p)){if(!d.has(p)){d.add(p);var y=gu(r,u);m?r=Ps(r,u,[]):(!y||an(y)!=="object")&&(r=Ps(r,u,pD(p))),MY(p).forEach(function(b){s([].concat(jt(u),[b]),d)})}}else r=Ps(r,u,p)}s([])}),r}function FY(){}let Bl=null,vD=FY;vD=(t,e,n)=>{Ir(t,`[antd: ${e}] ${n}`)};const jY=vD,IY=z.createContext({}),mD=t=>{const{strict:e}=z.useContext(IY),n=(r,a,s)=>{if(!r)if(e===!1&&a==="deprecated"){const u=Bl;Bl||(Bl={}),Bl[t]=Bl[t]||[],Bl[t].includes(s||"")||Bl[t].push(s||""),u||console.warn("[antd] There exists deprecated usage in your code:",Bl)}else jY(r,t,s)};return n.deprecated=(r,a,s,u)=>{n(r,"deprecated",`\`${a}\` is deprecated. Please use \`${s}\` instead.${u?` ${u}`:""}`)},n},gD={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},g0=Object.assign(Object.assign({},gD),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
370
370
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
371
- 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Ri=Math.round;function Qx(t,e){const n=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=e(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const yD=(t,e,n)=>n===0?t:t/100;function Sm(t,e){const n=e||255;return t>n?n:t<0?0:t}class Oi{constructor(e){Se(this,"isValid",!0),Se(this,"r",0),Se(this,"g",0),Se(this,"b",0),Se(this,"a",1),Se(this,"_h",void 0),Se(this,"_s",void 0),Se(this,"_l",void 0),Se(this,"_v",void 0),Se(this,"_max",void 0),Se(this,"_min",void 0),Se(this,"_brightness",void 0);function n(r){return r[0]in e&&r[1]in e&&r[2]in e}if(e)if(typeof e=="string"){let a=function(s){return r.startsWith(s)};const r=e.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(e instanceof Oi)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(n("rgb"))this.r=Sm(e.r),this.g=Sm(e.g),this.b=Sm(e.b),this.a=typeof e.a=="number"?Sm(e.a,1):1;else if(n("hsl"))this.fromHsl(e);else if(n("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const n=this.toHsv();return n.h=e,this._c(n)}getLuminance(){function e(s){const u=s/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)}const n=e(this.r),r=e(this.g),a=e(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=Ri(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-e/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(e=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+e/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(e,n=50){const r=this._c(e),a=n/100,s=f=>(r[f]-this[f])*a+this[f],u={r:Ri(s("r")),g:Ri(s("g")),b:Ri(s("b")),a:Ri(s("a")*100)/100};return this._c(u)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const n=this._c(e),r=this.a+n.a*(1-this.a),a=s=>Ri((this[s]*this.a+n[s]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const n=(this.r||0).toString(16);e+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);e+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(e+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const s=Ri(this.a*255).toString(16);e+=s.length===2?s:"0"+s}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),n=Ri(this.getSaturation()*100),r=Ri(this.getLightness()*100);return this.a!==1?`hsla(${e},${n}%,${r}%,${this.a})`:`hsl(${e},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,n,r){const a=this.clone();return a[e]=Sm(n,r),a}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const n=e.replace("#","");function r(a,s){return parseInt(n[a]+n[s||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:e,s:n,l:r,a}){if(this._h=e%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const b=Ri(r*255);this.r=b,this.g=b,this.b=b}let s=0,u=0,f=0;const d=e/60,p=(1-Math.abs(2*r-1))*n,m=p*(1-Math.abs(d%2-1));d>=0&&d<1?(s=p,u=m):d>=1&&d<2?(s=m,u=p):d>=2&&d<3?(u=p,f=m):d>=3&&d<4?(u=m,f=p):d>=4&&d<5?(s=m,f=p):d>=5&&d<6&&(s=p,f=m);const y=r-p/2;this.r=Ri((s+y)*255),this.g=Ri((u+y)*255),this.b=Ri((f+y)*255)}fromHsv({h:e,s:n,v:r,a}){this._h=e%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const s=Ri(r*255);if(this.r=s,this.g=s,this.b=s,n<=0)return;const u=e/60,f=Math.floor(u),d=u-f,p=Ri(r*(1-n)*255),m=Ri(r*(1-n*d)*255),y=Ri(r*(1-n*(1-d))*255);switch(f){case 0:this.g=y,this.b=p;break;case 1:this.r=m,this.b=p;break;case 2:this.r=p,this.b=y;break;case 3:this.r=p,this.g=m;break;case 4:this.r=y,this.g=p;break;case 5:default:this.g=p,this.b=m;break}}fromHsvString(e){const n=Qx(e,yD);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(e){const n=Qx(e,yD);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(e){const n=Qx(e,(r,a)=>a.includes("%")?Ri(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var y0=2,bD=.16,$Y=.05,UY=.05,zY=.15,SD=5,ED=4,VY=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function _D(t,e,n){var r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-y0*e:Math.round(t.h)+y0*e:r=n?Math.round(t.h)+y0*e:Math.round(t.h)-y0*e,r<0?r+=360:r>=360&&(r-=360),r}function wD(t,e,n){if(t.h===0&&t.s===0)return t.s;var r;return n?r=t.s-bD*e:e===ED?r=t.s+bD:r=t.s+$Y*e,r>1&&(r=1),n&&e===SD&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function CD(t,e,n){var r;return n?r=t.v+UY*e:r=t.v-zY*e,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function xD(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Oi(t),a=r.toHsv(),s=SD;s>0;s-=1){var u=new Oi({h:_D(a,s,!0),s:wD(a,s,!0),v:CD(a,s,!0)});n.push(u)}n.push(r);for(var f=1;f<=ED;f+=1){var d=new Oi({h:_D(a,f),s:wD(a,f),v:CD(a,f)});n.push(d)}return e.theme==="dark"?VY.map(function(p){var m=p.index,y=p.amount;return new Oi(e.backgroundColor||"#141414").mix(n[m],y).toHexString()}):n.map(function(p){return p.toHexString()})}var Yx={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Xx=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Xx.primary=Xx[5];var Kx=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Kx.primary=Kx[5];var Zx=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Zx.primary=Zx[5];var Jx=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Jx.primary=Jx[5];var eT=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];eT.primary=eT[5];var tT=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];tT.primary=tT[5];var nT=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];nT.primary=nT[5];var rT=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];rT.primary=rT[5];var iT=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];iT.primary=iT[5];var aT=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];aT.primary=aT[5];var oT=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];oT.primary=oT[5];var sT=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];sT.primary=sT[5];var uT=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];uT.primary=uT[5];var lT={red:Xx,volcano:Kx,orange:Zx,gold:Jx,yellow:eT,lime:tT,green:nT,cyan:rT,blue:iT,geekblue:aT,purple:oT,magenta:sT,grey:uT};function HY(t,{generateColorPalettes:e,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:s,colorInfo:u,colorPrimary:f,colorBgBase:d,colorTextBase:p}=t,m=e(f),y=e(r),b=e(a),S=e(s),w=e(u),C=n(d,p),x=t.colorLink||t.colorInfo,O=e(x),k=new Oi(S[1]).mix(new Oi(S[3]),50).toHexString();return Object.assign(Object.assign({},C),{colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:y[1],colorSuccessBgHover:y[2],colorSuccessBorder:y[3],colorSuccessBorderHover:y[4],colorSuccessHover:y[4],colorSuccess:y[6],colorSuccessActive:y[7],colorSuccessTextHover:y[8],colorSuccessText:y[9],colorSuccessTextActive:y[10],colorErrorBg:S[1],colorErrorBgHover:S[2],colorErrorBgFilledHover:k,colorErrorBgActive:S[3],colorErrorBorder:S[3],colorErrorBorderHover:S[4],colorErrorHover:S[5],colorError:S[6],colorErrorActive:S[7],colorErrorTextHover:S[8],colorErrorText:S[9],colorErrorTextActive:S[10],colorWarningBg:b[1],colorWarningBgHover:b[2],colorWarningBorder:b[3],colorWarningBorderHover:b[4],colorWarningHover:b[4],colorWarning:b[6],colorWarningActive:b[7],colorWarningTextHover:b[8],colorWarningText:b[9],colorWarningTextActive:b[10],colorInfoBg:w[1],colorInfoBgHover:w[2],colorInfoBorder:w[3],colorInfoBorderHover:w[4],colorInfoHover:w[4],colorInfo:w[6],colorInfoActive:w[7],colorInfoTextHover:w[8],colorInfoText:w[9],colorInfoTextActive:w[10],colorLinkHover:O[4],colorLink:O[6],colorLinkActive:O[7],colorBgMask:new Oi("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const BY=t=>{let e=t,n=t,r=t,a=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?r=1:t>=6&&(r=2),t>4&&t<8?a=4:t>=8&&(a=6),{borderRadius:t,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:e,borderRadiusOuter:a}};function qY(t){const{motionUnit:e,motionBase:n,borderRadius:r,lineWidth:a}=t;return Object.assign({motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+e*2).toFixed(1)}s`,motionDurationSlow:`${(n+e*3).toFixed(1)}s`,lineWidthBold:a+1},BY(r))}const WY=t=>{const{controlHeight:e}=t;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function GY(t){return(t+8)/t}function QY(t){const e=Array.from({length:10}).map((n,r)=>{const a=r-1,s=t*Math.pow(Math.E,a/5),u=r>1?Math.floor(s):Math.ceil(s);return Math.floor(u/2)*2});return e[1]=t,e.map(n=>({size:n,lineHeight:GY(n)}))}const YY=t=>{const e=QY(t),n=e.map(m=>m.size),r=e.map(m=>m.lineHeight),a=n[1],s=n[0],u=n[2],f=r[1],d=r[0],p=r[2];return{fontSizeSM:s,fontSize:a,fontSizeLG:u,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:f,lineHeightLG:p,lineHeightSM:d,fontHeight:Math.round(f*a),fontHeightLG:Math.round(p*u),fontHeightSM:Math.round(d*s),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function XY(t){const{sizeUnit:e,sizeStep:n}=t;return{sizeXXL:e*(n+8),sizeXL:e*(n+4),sizeLG:e*(n+2),sizeMD:e*(n+1),sizeMS:e*n,size:e*n,sizeSM:e*(n-1),sizeXS:e*(n-2),sizeXXS:e*(n-3)}}const Go=(t,e)=>new Oi(t).setA(e).toRgbString(),Em=(t,e)=>new Oi(t).darken(e).toHexString(),KY=t=>{const e=xD(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},ZY=(t,e)=>{const n=t||"#fff",r=e||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Go(r,.88),colorTextSecondary:Go(r,.65),colorTextTertiary:Go(r,.45),colorTextQuaternary:Go(r,.25),colorFill:Go(r,.15),colorFillSecondary:Go(r,.06),colorFillTertiary:Go(r,.04),colorFillQuaternary:Go(r,.02),colorBgSolid:Go(r,1),colorBgSolidHover:Go(r,.75),colorBgSolidActive:Go(r,.95),colorBgLayout:Em(n,4),colorBgContainer:Em(n,0),colorBgElevated:Em(n,0),colorBgSpotlight:Go(r,.85),colorBgBlur:"transparent",colorBorder:Em(n,15),colorBorderSecondary:Em(n,6)}};function JY(t){Yx.pink=Yx.magenta,lT.pink=lT.magenta;const e=Object.keys(gD).map(n=>{const r=t[n]===Yx[n]?lT[n]:xD(t[n]);return Array.from({length:10},()=>1).reduce((a,s,u)=>(a[`${n}-${u+1}`]=r[u],a[`${n}${u+1}`]=r[u],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),e),HY(t,{generateColorPalettes:KY,generateNeutralColorPalettes:ZY})),YY(t.fontSize)),XY(t)),WY(t)),qY(t))}const eX=PQ(JY),tX={token:g0,override:{override:g0},hashed:!0},nX=Ue.createContext(tX),TD="ant",RD="anticon",rX=(t,e)=>e||(t?`${TD}-${t}`:TD),_m=z.createContext({getPrefixCls:rX,iconPrefixCls:RD}),{Consumer:Xie}=_m,OD={};function iX(t){const e=z.useContext(_m),{getPrefixCls:n,direction:r,getPopupContainer:a}=e,s=e[t];return Object.assign(Object.assign({classNames:OD,styles:OD},s),{getPrefixCls:n,direction:r,getPopupContainer:a})}var kD=ha(function t(){da(this,t)}),AD="CALC_UNIT",aX=new RegExp(AD,"g");function cT(t){return typeof t=="number"?"".concat(t).concat(AD):t}var oX=function(t){cf(n,t);var e=ff(n);function n(r,a){var s;da(this,n),s=e.call(this),Se(pn(s),"result",""),Se(pn(s),"unitlessCssVar",void 0),Se(pn(s),"lowPriority",void 0);var u=an(r);return s.unitlessCssVar=a,r instanceof n?s.result="(".concat(r.result,")"):u==="number"?s.result=cT(r):u==="string"&&(s.result=r),s}return ha(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(cT(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(cT(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var s=this,u=a||{},f=u.unit,d=!0;return typeof f=="boolean"?d=f:Array.from(this.unitlessCssVar).some(function(p){return s.result.includes(p)})&&(d=!1),this.result=this.result.replace(aX,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(kD),sX=function(t){cf(n,t);var e=ff(n);function n(r){var a;return da(this,n),a=e.call(this),Se(pn(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return ha(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n}(kD),uX=function(e,n){var r=e==="css"?oX:sX;return function(a){return new r(a,n)}},ND=function(e,n){return"".concat([n,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Qo(t){var e=z.useRef();e.current=t;var n=z.useCallback(function(){for(var r,a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return(r=e.current)===null||r===void 0?void 0:r.call.apply(r,[e].concat(s))},[]);return n}function wm(t){var e=z.useRef(!1),n=z.useState(t),r=pt(n,2),a=r[0],s=r[1];z.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]);function u(f,d){d&&e.current||s(f)}return[a,u]}function fT(t){return t!==void 0}function lX(t,e){var n=e||{},r=n.defaultValue,a=n.value,s=n.onChange,u=n.postState,f=wm(function(){return fT(a)?a:fT(r)?typeof r=="function"?r():r:t}),d=pt(f,2),p=d[0],m=d[1],y=a!==void 0?a:p,b=u?u(y):y,S=Qo(s),w=wm([y]),C=pt(w,2),x=C[0],O=C[1];qN(function(){var D=x[0];p!==D&&S(p,D)},[x]),qN(function(){fT(a)||m(a)},[a]);var k=Qo(function(D,P){m(D,P),O([y],P)});return[b,k]}function DD(t,e,n,r){var a=ze({},e[t]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(f){var d=pt(f,2),p=d[0],m=d[1];if(Ir(!(a!=null&&a[p]),"Component Token `".concat(String(p),"` of ").concat(String(t)," is deprecated. Please use `").concat(String(m),"` instead.")),a!=null&&a[p]||a!=null&&a[m]){var y;(y=a[m])!==null&&y!==void 0||(a[m]=a==null?void 0:a[p])}})}var u=ze(ze({},n),a);return Object.keys(u).forEach(function(f){u[f]===e[f]&&delete u[f]}),u}var dT=!0;function b0(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];dT=!1;var r={};return e.forEach(function(a){if(an(a)==="object"){var s=Object.keys(a);s.forEach(function(u){Object.defineProperty(r,u,{configurable:!0,enumerable:!0,get:function(){return a[u]}})})}}),dT=!0,r}var LD={};function cX(){}var fX=function(e){var n,r=e,a=cX;return typeof Proxy<"u"&&(n=new Set,r=new Proxy(e,{get:function(u,f){if(dT){var d;(d=n)===null||d===void 0||d.add(f)}return u[f]}}),a=function(u,f){var d;LD[u]={global:Array.from(n),component:ze(ze({},(d=LD[u])===null||d===void 0?void 0:d.component),f)}}),{token:r,keys:n,flush:a}};function PD(t,e,n){if(typeof n=="function"){var r;return n(b0(e,(r=e[t])!==null&&r!==void 0?r:{}))}return n??{}}function dX(t){return t==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"max(".concat(r.map(function(s){return pf(s)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"min(".concat(r.map(function(s){return pf(s)}).join(","),")")}}}var hX=1e3*60*10,pX=function(){function t(){da(this,t),Se(this,"map",new Map),Se(this,"objectIDMap",new WeakMap),Se(this,"nextID",0),Se(this,"lastAccessBeat",new Map),Se(this,"accessBeat",0)}return ha(t,[{key:"set",value:function(n,r){this.clear();var a=this.getCompositeKey(n);this.map.set(a,r),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),a=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(n){var r=this,a=n.map(function(s){return s&&an(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(an(s),"_").concat(s)});return a.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,s){r-a>hX&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),t}(),MD=new pX;function vX(t,e){return Ue.useMemo(function(){var n=MD.get(e);if(n)return n;var r=t();return MD.set(e,r),r},e)}var mX=function(){return{}};function gX(t){var e=t.useCSP,n=e===void 0?mX:e,r=t.useToken,a=t.usePrefix,s=t.getResetStyles,u=t.getCommonStyle,f=t.getCompUnitless;function d(b,S,w,C){var x=Array.isArray(b)?b[0]:b;function O(U){return"".concat(String(x)).concat(U.slice(0,1).toUpperCase()).concat(U.slice(1))}var k=(C==null?void 0:C.unitless)||{},D=typeof f=="function"?f(b):{},P=ze(ze({},D),{},Se({},O("zIndexPopup"),!0));Object.keys(k).forEach(function(U){P[O(U)]=k[U]});var T=ze(ze({},C),{},{unitless:P,prefixToken:O}),N=m(b,S,w,T),M=p(x,w,T);return function(U){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:U,Y=N(U,H),J=pt(Y,2),ue=J[1],Z=M(H),Q=pt(Z,2),G=Q[0],K=Q[1];return[G,ue,K]}}function p(b,S,w){var C=w.unitless,x=w.injectStyle,O=x===void 0?!0:x,k=w.prefixToken,D=w.ignore,P=function(M){var U=M.rootCls,H=M.cssVar,Y=H===void 0?{}:H,J=r(),ue=J.realToken;return NY({path:[b],prefix:Y.prefix,key:Y.key,unitless:C,ignore:D,token:ue,scope:U},function(){var Z=PD(b,ue,S),Q=DD(b,ue,Z,{deprecatedTokens:w==null?void 0:w.deprecatedTokens});return Object.keys(Z).forEach(function(G){Q[k(G)]=Q[G],delete Q[G]}),Q}),null},T=function(M){var U=r(),H=U.cssVar;return[function(Y){return O&&H?Ue.createElement(Ue.Fragment,null,Ue.createElement(P,{rootCls:M,cssVar:H,component:b}),Y):Y},H==null?void 0:H.key]};return T}function m(b,S,w){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=Array.isArray(b)?b:[b,b],O=pt(x,1),k=O[0],D=x.join("-"),P=t.layer||{name:"antd"};return function(T){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,M=r(),U=M.theme,H=M.realToken,Y=M.hashId,J=M.token,ue=M.cssVar,Z=a(),Q=Z.rootPrefixCls,G=Z.iconPrefixCls,K=n(),X=ue?"css":"js",ee=vX(function(){var be=new Set;return ue&&Object.keys(C.unitless||{}).forEach(function(Fe){be.add(u0(Fe,ue.prefix)),be.add(u0(Fe,ND(k,ue.prefix)))}),uX(X,be)},[X,k,ue==null?void 0:ue.prefix]),me=dX(X),ne=me.max,se=me.min,ve={theme:U,token:J,hashId:Y,nonce:function(){return K.nonce},clientOnly:C.clientOnly,layer:P,order:C.order||-999};typeof s=="function"&&fD(ze(ze({},ve),{},{clientOnly:!1,path:["Shared",Q]}),function(){return s(J,{prefix:{rootPrefixCls:Q,iconPrefixCls:G},csp:K})});var xe=fD(ze(ze({},ve),{},{path:[D,T,G]}),function(){if(C.injectStyle===!1)return[];var be=fX(J),Fe=be.token,ke=be.flush,je=PD(k,H,w),Ye=".".concat(T),de=DD(k,H,je,{deprecatedTokens:C.deprecatedTokens});ue&&je&&an(je)==="object"&&Object.keys(je).forEach(function(Ve){je[Ve]="var(".concat(u0(Ve,ND(k,ue.prefix)),")")});var Oe=b0(Fe,{componentCls:Ye,prefixCls:T,iconCls:".".concat(G),antCls:".".concat(Q),calc:ee,max:ne,min:se},ue?je:de),Ne=S(Oe,{hashId:Y,prefixCls:T,rootPrefixCls:Q,iconPrefixCls:G});ke(k,de);var ae=typeof u=="function"?u(Oe,T,N,C.resetFont):null;return[C.resetStyle===!1?null:ae,Ne]});return[xe,Y]}}function y(b,S,w){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=m(b,S,w,ze({resetStyle:!1,order:-998},C)),O=function(D){var P=D.prefixCls,T=D.rootCls,N=T===void 0?P:T;return x(P,N),null};return O.displayName="SubStyle_".concat(String(Array.isArray(b)?b.join("."):b)),O}return{genStyleHooks:d,genSubStyleComponent:y,genComponentStyleHook:m}}const S0=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],yX="5.26.3";function hT(t){return t>=0&&t<=255}function E0(t,e){const{r:n,g:r,b:a,a:s}=new Oi(t).toRgb();if(s<1)return t;const{r:u,g:f,b:d}=new Oi(e).toRgb();for(let p=.01;p<=1;p+=.01){const m=Math.round((n-u*(1-p))/p),y=Math.round((r-f*(1-p))/p),b=Math.round((a-d*(1-p))/p);if(hT(m)&&hT(y)&&hT(b))return new Oi({r:m,g:y,b,a:Math.round(p*100)/100}).toRgbString()}return new Oi({r:n,g:r,b:a,a:1}).toRgbString()}var bX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n};function FD(t){const{override:e}=t,n=bX(t,["override"]),r=Object.assign({},e);Object.keys(g0).forEach(b=>{delete r[b]});const a=Object.assign(Object.assign({},n),r),s=480,u=576,f=768,d=992,p=1200,m=1600;if(a.motion===!1){const b="0s";a.motionDurationFast=b,a.motionDurationMid=b,a.motionDurationSlow=b}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:E0(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:E0(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:E0(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:E0(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
371
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Ri=Math.round;function Qx(t,e){const n=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=e(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const yD=(t,e,n)=>n===0?t:t/100;function Sm(t,e){const n=e||255;return t>n?n:t<0?0:t}class Oi{constructor(e){Se(this,"isValid",!0),Se(this,"r",0),Se(this,"g",0),Se(this,"b",0),Se(this,"a",1),Se(this,"_h",void 0),Se(this,"_s",void 0),Se(this,"_l",void 0),Se(this,"_v",void 0),Se(this,"_max",void 0),Se(this,"_min",void 0),Se(this,"_brightness",void 0);function n(r){return r[0]in e&&r[1]in e&&r[2]in e}if(e)if(typeof e=="string"){let a=function(s){return r.startsWith(s)};const r=e.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(e instanceof Oi)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(n("rgb"))this.r=Sm(e.r),this.g=Sm(e.g),this.b=Sm(e.b),this.a=typeof e.a=="number"?Sm(e.a,1):1;else if(n("hsl"))this.fromHsl(e);else if(n("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const n=this.toHsv();return n.h=e,this._c(n)}getLuminance(){function e(s){const u=s/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)}const n=e(this.r),r=e(this.g),a=e(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=Ri(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-e/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(e=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+e/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(e,n=50){const r=this._c(e),a=n/100,s=f=>(r[f]-this[f])*a+this[f],u={r:Ri(s("r")),g:Ri(s("g")),b:Ri(s("b")),a:Ri(s("a")*100)/100};return this._c(u)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const n=this._c(e),r=this.a+n.a*(1-this.a),a=s=>Ri((this[s]*this.a+n[s]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const n=(this.r||0).toString(16);e+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);e+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(e+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const s=Ri(this.a*255).toString(16);e+=s.length===2?s:"0"+s}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),n=Ri(this.getSaturation()*100),r=Ri(this.getLightness()*100);return this.a!==1?`hsla(${e},${n}%,${r}%,${this.a})`:`hsl(${e},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,n,r){const a=this.clone();return a[e]=Sm(n,r),a}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const n=e.replace("#","");function r(a,s){return parseInt(n[a]+n[s||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:e,s:n,l:r,a}){if(this._h=e%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const b=Ri(r*255);this.r=b,this.g=b,this.b=b}let s=0,u=0,f=0;const d=e/60,p=(1-Math.abs(2*r-1))*n,m=p*(1-Math.abs(d%2-1));d>=0&&d<1?(s=p,u=m):d>=1&&d<2?(s=m,u=p):d>=2&&d<3?(u=p,f=m):d>=3&&d<4?(u=m,f=p):d>=4&&d<5?(s=m,f=p):d>=5&&d<6&&(s=p,f=m);const y=r-p/2;this.r=Ri((s+y)*255),this.g=Ri((u+y)*255),this.b=Ri((f+y)*255)}fromHsv({h:e,s:n,v:r,a}){this._h=e%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const s=Ri(r*255);if(this.r=s,this.g=s,this.b=s,n<=0)return;const u=e/60,f=Math.floor(u),d=u-f,p=Ri(r*(1-n)*255),m=Ri(r*(1-n*d)*255),y=Ri(r*(1-n*(1-d))*255);switch(f){case 0:this.g=y,this.b=p;break;case 1:this.r=m,this.b=p;break;case 2:this.r=p,this.b=y;break;case 3:this.r=p,this.g=m;break;case 4:this.r=y,this.g=p;break;case 5:default:this.g=p,this.b=m;break}}fromHsvString(e){const n=Qx(e,yD);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(e){const n=Qx(e,yD);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(e){const n=Qx(e,(r,a)=>a.includes("%")?Ri(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var y0=2,bD=.16,$Y=.05,UY=.05,zY=.15,SD=5,ED=4,VY=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function _D(t,e,n){var r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-y0*e:Math.round(t.h)+y0*e:r=n?Math.round(t.h)+y0*e:Math.round(t.h)-y0*e,r<0?r+=360:r>=360&&(r-=360),r}function wD(t,e,n){if(t.h===0&&t.s===0)return t.s;var r;return n?r=t.s-bD*e:e===ED?r=t.s+bD:r=t.s+$Y*e,r>1&&(r=1),n&&e===SD&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function CD(t,e,n){var r;return n?r=t.v+UY*e:r=t.v-zY*e,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function xD(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Oi(t),a=r.toHsv(),s=SD;s>0;s-=1){var u=new Oi({h:_D(a,s,!0),s:wD(a,s,!0),v:CD(a,s,!0)});n.push(u)}n.push(r);for(var f=1;f<=ED;f+=1){var d=new Oi({h:_D(a,f),s:wD(a,f),v:CD(a,f)});n.push(d)}return e.theme==="dark"?VY.map(function(p){var m=p.index,y=p.amount;return new Oi(e.backgroundColor||"#141414").mix(n[m],y).toHexString()}):n.map(function(p){return p.toHexString()})}var Yx={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Xx=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Xx.primary=Xx[5];var Kx=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Kx.primary=Kx[5];var Zx=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Zx.primary=Zx[5];var Jx=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Jx.primary=Jx[5];var eT=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];eT.primary=eT[5];var tT=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];tT.primary=tT[5];var nT=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];nT.primary=nT[5];var rT=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];rT.primary=rT[5];var iT=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];iT.primary=iT[5];var aT=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];aT.primary=aT[5];var oT=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];oT.primary=oT[5];var sT=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];sT.primary=sT[5];var uT=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];uT.primary=uT[5];var lT={red:Xx,volcano:Kx,orange:Zx,gold:Jx,yellow:eT,lime:tT,green:nT,cyan:rT,blue:iT,geekblue:aT,purple:oT,magenta:sT,grey:uT};function HY(t,{generateColorPalettes:e,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:s,colorInfo:u,colorPrimary:f,colorBgBase:d,colorTextBase:p}=t,m=e(f),y=e(r),b=e(a),S=e(s),w=e(u),C=n(d,p),x=t.colorLink||t.colorInfo,O=e(x),k=new Oi(S[1]).mix(new Oi(S[3]),50).toHexString();return Object.assign(Object.assign({},C),{colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:y[1],colorSuccessBgHover:y[2],colorSuccessBorder:y[3],colorSuccessBorderHover:y[4],colorSuccessHover:y[4],colorSuccess:y[6],colorSuccessActive:y[7],colorSuccessTextHover:y[8],colorSuccessText:y[9],colorSuccessTextActive:y[10],colorErrorBg:S[1],colorErrorBgHover:S[2],colorErrorBgFilledHover:k,colorErrorBgActive:S[3],colorErrorBorder:S[3],colorErrorBorderHover:S[4],colorErrorHover:S[5],colorError:S[6],colorErrorActive:S[7],colorErrorTextHover:S[8],colorErrorText:S[9],colorErrorTextActive:S[10],colorWarningBg:b[1],colorWarningBgHover:b[2],colorWarningBorder:b[3],colorWarningBorderHover:b[4],colorWarningHover:b[4],colorWarning:b[6],colorWarningActive:b[7],colorWarningTextHover:b[8],colorWarningText:b[9],colorWarningTextActive:b[10],colorInfoBg:w[1],colorInfoBgHover:w[2],colorInfoBorder:w[3],colorInfoBorderHover:w[4],colorInfoHover:w[4],colorInfo:w[6],colorInfoActive:w[7],colorInfoTextHover:w[8],colorInfoText:w[9],colorInfoTextActive:w[10],colorLinkHover:O[4],colorLink:O[6],colorLinkActive:O[7],colorBgMask:new Oi("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const BY=t=>{let e=t,n=t,r=t,a=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?r=1:t>=6&&(r=2),t>4&&t<8?a=4:t>=8&&(a=6),{borderRadius:t,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:e,borderRadiusOuter:a}};function qY(t){const{motionUnit:e,motionBase:n,borderRadius:r,lineWidth:a}=t;return Object.assign({motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+e*2).toFixed(1)}s`,motionDurationSlow:`${(n+e*3).toFixed(1)}s`,lineWidthBold:a+1},BY(r))}const WY=t=>{const{controlHeight:e}=t;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function GY(t){return(t+8)/t}function QY(t){const e=Array.from({length:10}).map((n,r)=>{const a=r-1,s=t*Math.pow(Math.E,a/5),u=r>1?Math.floor(s):Math.ceil(s);return Math.floor(u/2)*2});return e[1]=t,e.map(n=>({size:n,lineHeight:GY(n)}))}const YY=t=>{const e=QY(t),n=e.map(m=>m.size),r=e.map(m=>m.lineHeight),a=n[1],s=n[0],u=n[2],f=r[1],d=r[0],p=r[2];return{fontSizeSM:s,fontSize:a,fontSizeLG:u,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:f,lineHeightLG:p,lineHeightSM:d,fontHeight:Math.round(f*a),fontHeightLG:Math.round(p*u),fontHeightSM:Math.round(d*s),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function XY(t){const{sizeUnit:e,sizeStep:n}=t;return{sizeXXL:e*(n+8),sizeXL:e*(n+4),sizeLG:e*(n+2),sizeMD:e*(n+1),sizeMS:e*n,size:e*n,sizeSM:e*(n-1),sizeXS:e*(n-2),sizeXXS:e*(n-3)}}const Go=(t,e)=>new Oi(t).setA(e).toRgbString(),Em=(t,e)=>new Oi(t).darken(e).toHexString(),KY=t=>{const e=xD(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},ZY=(t,e)=>{const n=t||"#fff",r=e||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Go(r,.88),colorTextSecondary:Go(r,.65),colorTextTertiary:Go(r,.45),colorTextQuaternary:Go(r,.25),colorFill:Go(r,.15),colorFillSecondary:Go(r,.06),colorFillTertiary:Go(r,.04),colorFillQuaternary:Go(r,.02),colorBgSolid:Go(r,1),colorBgSolidHover:Go(r,.75),colorBgSolidActive:Go(r,.95),colorBgLayout:Em(n,4),colorBgContainer:Em(n,0),colorBgElevated:Em(n,0),colorBgSpotlight:Go(r,.85),colorBgBlur:"transparent",colorBorder:Em(n,15),colorBorderSecondary:Em(n,6)}};function JY(t){Yx.pink=Yx.magenta,lT.pink=lT.magenta;const e=Object.keys(gD).map(n=>{const r=t[n]===Yx[n]?lT[n]:xD(t[n]);return Array.from({length:10},()=>1).reduce((a,s,u)=>(a[`${n}-${u+1}`]=r[u],a[`${n}${u+1}`]=r[u],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),e),HY(t,{generateColorPalettes:KY,generateNeutralColorPalettes:ZY})),YY(t.fontSize)),XY(t)),WY(t)),qY(t))}const eX=PQ(JY),tX={token:g0,override:{override:g0},hashed:!0},nX=Ue.createContext(tX),TD="ant",RD="anticon",rX=(t,e)=>e||(t?`${TD}-${t}`:TD),_m=z.createContext({getPrefixCls:rX,iconPrefixCls:RD}),{Consumer:Xie}=_m,OD={};function iX(t){const e=z.useContext(_m),{getPrefixCls:n,direction:r,getPopupContainer:a}=e,s=e[t];return Object.assign(Object.assign({classNames:OD,styles:OD},s),{getPrefixCls:n,direction:r,getPopupContainer:a})}var kD=ha(function t(){da(this,t)}),AD="CALC_UNIT",aX=new RegExp(AD,"g");function cT(t){return typeof t=="number"?"".concat(t).concat(AD):t}var oX=function(t){cf(n,t);var e=ff(n);function n(r,a){var s;da(this,n),s=e.call(this),Se(pn(s),"result",""),Se(pn(s),"unitlessCssVar",void 0),Se(pn(s),"lowPriority",void 0);var u=an(r);return s.unitlessCssVar=a,r instanceof n?s.result="(".concat(r.result,")"):u==="number"?s.result=cT(r):u==="string"&&(s.result=r),s}return ha(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(cT(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(cT(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var s=this,u=a||{},f=u.unit,d=!0;return typeof f=="boolean"?d=f:Array.from(this.unitlessCssVar).some(function(p){return s.result.includes(p)})&&(d=!1),this.result=this.result.replace(aX,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(kD),sX=function(t){cf(n,t);var e=ff(n);function n(r){var a;return da(this,n),a=e.call(this),Se(pn(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return ha(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n}(kD),uX=function(e,n){var r=e==="css"?oX:sX;return function(a){return new r(a,n)}},ND=function(e,n){return"".concat([n,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Qo(t){var e=z.useRef();e.current=t;var n=z.useCallback(function(){for(var r,a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return(r=e.current)===null||r===void 0?void 0:r.call.apply(r,[e].concat(s))},[]);return n}function wm(t){var e=z.useRef(!1),n=z.useState(t),r=pt(n,2),a=r[0],s=r[1];z.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]);function u(f,d){d&&e.current||s(f)}return[a,u]}function fT(t){return t!==void 0}function lX(t,e){var n=e||{},r=n.defaultValue,a=n.value,s=n.onChange,u=n.postState,f=wm(function(){return fT(a)?a:fT(r)?typeof r=="function"?r():r:t}),d=pt(f,2),p=d[0],m=d[1],y=a!==void 0?a:p,b=u?u(y):y,S=Qo(s),w=wm([y]),C=pt(w,2),x=C[0],O=C[1];qN(function(){var D=x[0];p!==D&&S(p,D)},[x]),qN(function(){fT(a)||m(a)},[a]);var k=Qo(function(D,P){m(D,P),O([y],P)});return[b,k]}function DD(t,e,n,r){var a=ze({},e[t]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(f){var d=pt(f,2),p=d[0],m=d[1];if(Ir(!(a!=null&&a[p]),"Component Token `".concat(String(p),"` of ").concat(String(t)," is deprecated. Please use `").concat(String(m),"` instead.")),a!=null&&a[p]||a!=null&&a[m]){var y;(y=a[m])!==null&&y!==void 0||(a[m]=a==null?void 0:a[p])}})}var u=ze(ze({},n),a);return Object.keys(u).forEach(function(f){u[f]===e[f]&&delete u[f]}),u}var dT=!0;function b0(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];dT=!1;var r={};return e.forEach(function(a){if(an(a)==="object"){var s=Object.keys(a);s.forEach(function(u){Object.defineProperty(r,u,{configurable:!0,enumerable:!0,get:function(){return a[u]}})})}}),dT=!0,r}var LD={};function cX(){}var fX=function(e){var n,r=e,a=cX;return typeof Proxy<"u"&&(n=new Set,r=new Proxy(e,{get:function(u,f){if(dT){var d;(d=n)===null||d===void 0||d.add(f)}return u[f]}}),a=function(u,f){var d;LD[u]={global:Array.from(n),component:ze(ze({},(d=LD[u])===null||d===void 0?void 0:d.component),f)}}),{token:r,keys:n,flush:a}};function PD(t,e,n){if(typeof n=="function"){var r;return n(b0(e,(r=e[t])!==null&&r!==void 0?r:{}))}return n??{}}function dX(t){return t==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"max(".concat(r.map(function(s){return pf(s)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"min(".concat(r.map(function(s){return pf(s)}).join(","),")")}}}var hX=1e3*60*10,pX=function(){function t(){da(this,t),Se(this,"map",new Map),Se(this,"objectIDMap",new WeakMap),Se(this,"nextID",0),Se(this,"lastAccessBeat",new Map),Se(this,"accessBeat",0)}return ha(t,[{key:"set",value:function(n,r){this.clear();var a=this.getCompositeKey(n);this.map.set(a,r),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),a=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(n){var r=this,a=n.map(function(s){return s&&an(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(an(s),"_").concat(s)});return a.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,s){r-a>hX&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),t}(),MD=new pX;function vX(t,e){return Ue.useMemo(function(){var n=MD.get(e);if(n)return n;var r=t();return MD.set(e,r),r},e)}var mX=function(){return{}};function gX(t){var e=t.useCSP,n=e===void 0?mX:e,r=t.useToken,a=t.usePrefix,s=t.getResetStyles,u=t.getCommonStyle,f=t.getCompUnitless;function d(b,S,w,C){var x=Array.isArray(b)?b[0]:b;function O(U){return"".concat(String(x)).concat(U.slice(0,1).toUpperCase()).concat(U.slice(1))}var k=(C==null?void 0:C.unitless)||{},D=typeof f=="function"?f(b):{},P=ze(ze({},D),{},Se({},O("zIndexPopup"),!0));Object.keys(k).forEach(function(U){P[O(U)]=k[U]});var T=ze(ze({},C),{},{unitless:P,prefixToken:O}),N=m(b,S,w,T),M=p(x,w,T);return function(U){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:U,Y=N(U,H),J=pt(Y,2),ue=J[1],Z=M(H),Q=pt(Z,2),G=Q[0],K=Q[1];return[G,ue,K]}}function p(b,S,w){var C=w.unitless,x=w.injectStyle,O=x===void 0?!0:x,k=w.prefixToken,D=w.ignore,P=function(M){var U=M.rootCls,H=M.cssVar,Y=H===void 0?{}:H,J=r(),ue=J.realToken;return NY({path:[b],prefix:Y.prefix,key:Y.key,unitless:C,ignore:D,token:ue,scope:U},function(){var Z=PD(b,ue,S),Q=DD(b,ue,Z,{deprecatedTokens:w==null?void 0:w.deprecatedTokens});return Object.keys(Z).forEach(function(G){Q[k(G)]=Q[G],delete Q[G]}),Q}),null},T=function(M){var U=r(),H=U.cssVar;return[function(Y){return O&&H?Ue.createElement(Ue.Fragment,null,Ue.createElement(P,{rootCls:M,cssVar:H,component:b}),Y):Y},H==null?void 0:H.key]};return T}function m(b,S,w){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=Array.isArray(b)?b:[b,b],O=pt(x,1),k=O[0],D=x.join("-"),P=t.layer||{name:"antd"};return function(T){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,M=r(),U=M.theme,H=M.realToken,Y=M.hashId,J=M.token,ue=M.cssVar,Z=a(),Q=Z.rootPrefixCls,G=Z.iconPrefixCls,K=n(),X=ue?"css":"js",ee=vX(function(){var be=new Set;return ue&&Object.keys(C.unitless||{}).forEach(function(Fe){be.add(u0(Fe,ue.prefix)),be.add(u0(Fe,ND(k,ue.prefix)))}),uX(X,be)},[X,k,ue==null?void 0:ue.prefix]),me=dX(X),ne=me.max,se=me.min,ve={theme:U,token:J,hashId:Y,nonce:function(){return K.nonce},clientOnly:C.clientOnly,layer:P,order:C.order||-999};typeof s=="function"&&fD(ze(ze({},ve),{},{clientOnly:!1,path:["Shared",Q]}),function(){return s(J,{prefix:{rootPrefixCls:Q,iconPrefixCls:G},csp:K})});var xe=fD(ze(ze({},ve),{},{path:[D,T,G]}),function(){if(C.injectStyle===!1)return[];var be=fX(J),Fe=be.token,ke=be.flush,je=PD(k,H,w),Ye=".".concat(T),de=DD(k,H,je,{deprecatedTokens:C.deprecatedTokens});ue&&je&&an(je)==="object"&&Object.keys(je).forEach(function(Ve){je[Ve]="var(".concat(u0(Ve,ND(k,ue.prefix)),")")});var Oe=b0(Fe,{componentCls:Ye,prefixCls:T,iconCls:".".concat(G),antCls:".".concat(Q),calc:ee,max:ne,min:se},ue?je:de),Ne=S(Oe,{hashId:Y,prefixCls:T,rootPrefixCls:Q,iconPrefixCls:G});ke(k,de);var ae=typeof u=="function"?u(Oe,T,N,C.resetFont):null;return[C.resetStyle===!1?null:ae,Ne]});return[xe,Y]}}function y(b,S,w){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=m(b,S,w,ze({resetStyle:!1,order:-998},C)),O=function(D){var P=D.prefixCls,T=D.rootCls,N=T===void 0?P:T;return x(P,N),null};return O.displayName="SubStyle_".concat(String(Array.isArray(b)?b.join("."):b)),O}return{genStyleHooks:d,genSubStyleComponent:y,genComponentStyleHook:m}}const S0=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],yX="5.26.4";function hT(t){return t>=0&&t<=255}function E0(t,e){const{r:n,g:r,b:a,a:s}=new Oi(t).toRgb();if(s<1)return t;const{r:u,g:f,b:d}=new Oi(e).toRgb();for(let p=.01;p<=1;p+=.01){const m=Math.round((n-u*(1-p))/p),y=Math.round((r-f*(1-p))/p),b=Math.round((a-d*(1-p))/p);if(hT(m)&&hT(y)&&hT(b))return new Oi({r:m,g:y,b,a:Math.round(p*100)/100}).toRgbString()}return new Oi({r:n,g:r,b:a,a:1}).toRgbString()}var bX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n};function FD(t){const{override:e}=t,n=bX(t,["override"]),r=Object.assign({},e);Object.keys(g0).forEach(b=>{delete r[b]});const a=Object.assign(Object.assign({},n),r),s=480,u=576,f=768,d=992,p=1200,m=1600;if(a.motion===!1){const b="0s";a.motionDurationFast=b,a.motionDurationMid=b,a.motionDurationSlow=b}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:E0(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:E0(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:E0(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:E0(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
372
372
  0 6px 16px 0 rgba(0, 0, 0, 0.08),
373
373
  0 3px 6px -4px rgba(0, 0, 0, 0.12),
374
374
  0 9px 28px 8px rgba(0, 0, 0, 0.05)
package/npm/ed-widget.js CHANGED
@@ -95,7 +95,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
95
95
  `)}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,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[$2]=this[$2]={accessors:{}}).accessors,i=this.prototype;function a(o){const u=lu(o);r[u]||(x3(i,o),r[u]=!0)}return oe.isArray(t)?t.forEach(a):a(t),this}};Qn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),oe.reduceDescriptors(Qn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),oe.freezeMethods(Qn);function tp(e,t){const n=this||uu,r=t||n,i=Qn.from(r.headers);let a=r.data;return oe.forEach(e,function(u){a=u.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function V2(e){return!!(e&&e.__CANCEL__)}function Mo(e,t,n){Ze.call(this,e??"canceled",Ze.ERR_CANCELED,t,n),this.name="CanceledError"}oe.inherits(Mo,Ze,{__CANCEL__:!0});function z2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ze("Request failed with status code "+n.status,[Ze.ERR_BAD_REQUEST,Ze.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function C3(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function T3(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[a];o||(o=c),n[i]=l,r[i]=c;let h=a,p=0;for(;h!==i;)p+=n[h++],h=h%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const m=d&&c-d;return m?Math.round(p*1e3/m):void 0}}function O3(e,t){let n=0,r=1e3/t,i,a;const o=(c,d=Date.now())=>{n=d,i=null,a&&(clearTimeout(a),a=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),h=d-n;h>=r?o(c,d):(i=c,a||(a=setTimeout(()=>{a=null,o(i)},r-h)))},()=>i&&o(i)]}const Xl=(e,t,n=3)=>{let r=0;const i=T3(50,250);return O3(a=>{const o=a.loaded,u=a.lengthComputable?a.total:void 0,l=o-r,c=i(l),d=o<=u;r=o;const h={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:c||void 0,estimated:c&&u&&d?(u-o)/c:void 0,event:a,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(h)},n)},q2=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},U2=e=>(...t)=>oe.asap(()=>e(...t)),k3=Pn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Pn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Pn.origin),Pn.navigator&&/(msie|trident)/i.test(Pn.navigator.userAgent)):()=>!0,R3=Pn.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];oe.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),oe.isString(r)&&o.push("path="+r),oe.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function A3(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function P3(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function H2(e,t,n){let r=!A3(t);return e&&(r||n==!1)?P3(e,t):t}const B2=e=>e instanceof Qn?{...e}:e;function La(e,t){t=t||{};const n={};function r(c,d,h,p){return oe.isPlainObject(c)&&oe.isPlainObject(d)?oe.merge.call({caseless:p},c,d):oe.isPlainObject(d)?oe.merge({},d):oe.isArray(d)?d.slice():d}function i(c,d,h,p){if(oe.isUndefined(d)){if(!oe.isUndefined(c))return r(void 0,c,h,p)}else return r(c,d,h,p)}function a(c,d){if(!oe.isUndefined(d))return r(void 0,d)}function o(c,d){if(oe.isUndefined(d)){if(!oe.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function u(c,d,h){if(h in t)return r(c,d);if(h in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(c,d,h)=>i(B2(c),B2(d),h,!0)};return oe.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=l[d]||i,p=h(e[d],t[d],d);oe.isUndefined(p)&&h!==u||(n[d]=p)}),n}const W2=e=>{const t=La({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:u}=t;t.headers=o=Qn.from(o),t.url=F2(H2(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let l;if(oe.isFormData(n)){if(Pn.hasStandardBrowserEnv||Pn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...d]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Pn.hasStandardBrowserEnv&&(r&&oe.isFunction(r)&&(r=r(t)),r||r!==!1&&k3(t.url))){const c=i&&a&&R3.read(a);c&&o.set(i,c)}return t},N3=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=W2(e);let a=i.data;const o=Qn.from(i.headers).normalize();let{responseType:u,onUploadProgress:l,onDownloadProgress:c}=i,d,h,p,m,g;function y(){m&&m(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function w(){if(!b)return;const C=Qn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),_={data:!u||u==="text"||u==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:C,config:e,request:b};z2(function(k){n(k),y()},function(k){r(k),y()},_),b=null}"onloadend"in b?b.onloadend=w:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(w)},b.onabort=function(){b&&(r(new Ze("Request aborted",Ze.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new Ze("Network Error",Ze.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let T=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const _=i.transitional||M2;i.timeoutErrorMessage&&(T=i.timeoutErrorMessage),r(new Ze(T,_.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,e,b)),b=null},a===void 0&&o.setContentType(null),"setRequestHeader"in b&&oe.forEach(o.toJSON(),function(T,_){b.setRequestHeader(_,T)}),oe.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),u&&u!=="json"&&(b.responseType=i.responseType),c&&([p,g]=Xl(c,!0),b.addEventListener("progress",p)),l&&b.upload&&([h,m]=Xl(l),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(d=C=>{b&&(r(!C||C.type?new Mo(null,e,b):C),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const S=C3(i.url);if(S&&Pn.protocols.indexOf(S)===-1){r(new Ze("Unsupported protocol "+S+":",Ze.ERR_BAD_REQUEST,e));return}b.send(a||null)})},I3=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(c){if(!i){i=!0,u();const d=c instanceof Error?c:this.reason;r.abort(d instanceof Ze?d:new Mo(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,a(new Ze(`timeout ${t} of ms exceeded`,Ze.ETIMEDOUT))},t);const u=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>oe.asap(u),l}},L3=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},F3=async function*(e,t){for await(const n of j3(e))yield*L3(n,t)},j3=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},G2=(e,t,n,r)=>{const i=F3(e,t);let a=0,o,u=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await i.next();if(c){u(),l.close();return}let h=d.byteLength;if(n){let p=a+=h;n(p)}l.enqueue(new Uint8Array(d))}catch(c){throw u(c),c}},cancel(l){return u(l),i.return()}},{highWaterMark:2})},Zl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Q2=Zl&&typeof ReadableStream=="function",M3=Zl&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Y2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},D3=Q2&&Y2(()=>{let e=!1;const t=new Request(Pn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),K2=64*1024,np=Q2&&Y2(()=>oe.isReadableStream(new Response("").body)),Jl={stream:np&&(e=>e.body)};Zl&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Jl[t]&&(Jl[t]=oe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ze(`Response type '${t}' is not supported`,Ze.ERR_NOT_SUPPORT,r)})})})(new Response);const $3=async e=>{if(e==null)return 0;if(oe.isBlob(e))return e.size;if(oe.isSpecCompliantForm(e))return(await new Request(Pn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(oe.isArrayBufferView(e)||oe.isArrayBuffer(e))return e.byteLength;if(oe.isURLSearchParams(e)&&(e=e+""),oe.isString(e))return(await M3(e)).byteLength},V3=async(e,t)=>{const n=oe.toFiniteNumber(e.getContentLength());return n??$3(t)},rp={http:s3,xhr:N3,fetch:Zl&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:u,onUploadProgress:l,responseType:c,headers:d,withCredentials:h="same-origin",fetchOptions:p}=W2(e);c=c?(c+"").toLowerCase():"text";let m=I3([i,a&&a.toAbortSignal()],o),g;const y=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let b;try{if(l&&D3&&n!=="get"&&n!=="head"&&(b=await V3(d,r))!==0){let _=new Request(t,{method:"POST",body:r,duplex:"half"}),x;if(oe.isFormData(r)&&(x=_.headers.get("content-type"))&&d.setContentType(x),_.body){const[k,A]=q2(b,Xl(U2(l)));r=G2(_.body,K2,k,A)}}oe.isString(h)||(h=h?"include":"omit");const w="credentials"in Request.prototype;g=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:w?h:void 0});let S=await fetch(g,p);const C=np&&(c==="stream"||c==="response");if(np&&(u||C&&y)){const _={};["status","statusText","headers"].forEach(N=>{_[N]=S[N]});const x=oe.toFiniteNumber(S.headers.get("content-length")),[k,A]=u&&q2(x,Xl(U2(u),!0))||[];S=new Response(G2(S.body,K2,k,()=>{A&&A(),y&&y()}),_)}c=c||"text";let T=await Jl[oe.findKey(Jl,c)||"text"](S,e);return!C&&y&&y(),await new Promise((_,x)=>{z2(_,x,{data:T,headers:Qn.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:g})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new Ze("Network Error",Ze.ERR_NETWORK,e,g),{cause:w.cause||w}):Ze.from(w,w&&w.code,e,g)}})};oe.forEach(rp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const X2=e=>`- ${e}`,z3=e=>oe.isFunction(e)||e===null||e===!1,Z2={getAdapter:e=>{e=oe.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a<t;a++){n=e[a];let o;if(r=n,!z3(n)&&(r=rp[(o=String(n)).toLowerCase()],r===void 0))throw new Ze(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+a]=r}if(!r){const a=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since :
96
96
  `+a.map(X2).join(`
97
97
  `):" "+X2(a[0]):"as no adapter specified";throw new Ze("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:rp};function ip(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mo(null,e)}function J2(e){return ip(e),e.headers=Qn.from(e.headers),e.data=tp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Z2.getAdapter(e.adapter||uu.adapter)(e).then(function(r){return ip(e),r.data=tp.call(e,e.transformResponse,r),r.headers=Qn.from(r.headers),r},function(r){return V2(r)||(ip(e),r&&r.response&&(r.response.data=tp.call(e,e.transformResponse,r.response),r.response.headers=Qn.from(r.response.headers))),Promise.reject(r)})}const e_="1.10.0",ec={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ec[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const t_={};ec.transitional=function(t,n,r){function i(a,o){return"[Axios v"+e_+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,u)=>{if(t===!1)throw new Ze(i(o," has been removed"+(n?" in "+n:"")),Ze.ERR_DEPRECATED);return n&&!t_[o]&&(t_[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,u):!0}},ec.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function q3(e,t,n){if(typeof e!="object")throw new Ze("options must be an object",Ze.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const u=e[a],l=u===void 0||o(u,a,e);if(l!==!0)throw new Ze("option "+a+" must be "+l,Ze.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ze("Unknown option "+a,Ze.ERR_BAD_OPTION)}}const tc={assertOptions:q3,validators:ec},ai=tc.validators;let Fa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new j2,response:new j2}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
98
- `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=La(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&tc.assertOptions(r,{silentJSONParsing:ai.transitional(ai.boolean),forcedJSONParsing:ai.transitional(ai.boolean),clarifyTimeoutError:ai.transitional(ai.boolean)},!1),i!=null&&(oe.isFunction(i)?n.paramsSerializer={serialize:i}:tc.assertOptions(i,{encode:ai.function,serialize:ai.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),tc.assertOptions(n,{baseUrl:ai.spelling("baseURL"),withXsrfToken:ai.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&oe.merge(a.common,a[n.method]);a&&oe.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=Qn.concat(o,a);const u=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,u.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let d,h=0,p;if(!l){const g=[J2.bind(this),void 0];for(g.unshift.apply(g,u),g.push.apply(g,c),p=g.length,d=Promise.resolve(n);h<p;)d=d.then(g[h++],g[h++]);return d}p=u.length;let m=n;for(h=0;h<p;){const g=u[h++],y=u[h++];try{m=g(m)}catch(b){y.call(this,b);break}}try{d=J2.call(this,m)}catch(g){return Promise.reject(g)}for(h=0,p=c.length;h<p;)d=d.then(c[h++],c[h++]);return d}getUri(t){t=La(this.defaults,t);const n=H2(t.baseURL,t.url,t.allowAbsoluteUrls);return F2(n,t.params,t.paramsSerializer)}};oe.forEach(["delete","get","head","options"],function(t){Fa.prototype[t]=function(n,r){return this.request(La(r||{},{method:t,url:n,data:(r||{}).data}))}}),oe.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,u){return this.request(La(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Fa.prototype[t]=n(),Fa.prototype[t+"Form"]=n(!0)});let U3=class $6{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(u=>{r.subscribe(u),a=u}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,u){r.reason||(r.reason=new Mo(a,o,u),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new $6(function(i){t=i}),cancel:t}}};function H3(e){return function(n){return e.apply(null,n)}}function B3(e){return oe.isObject(e)&&e.isAxiosError===!0}const ap={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ap).forEach(([e,t])=>{ap[t]=e});function n_(e){const t=new Fa(e),n=_2(Fa.prototype.request,t);return oe.extend(n,Fa.prototype,t,{allOwnKeys:!0}),oe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return n_(La(e,i))},n}const Bt=n_(uu);Bt.Axios=Fa,Bt.CanceledError=Mo,Bt.CancelToken=U3,Bt.isCancel=V2,Bt.VERSION=e_,Bt.toFormData=Yl,Bt.AxiosError=Ze,Bt.Cancel=Bt.CanceledError,Bt.all=function(t){return Promise.all(t)},Bt.spread=H3,Bt.isAxiosError=B3,Bt.mergeConfig=La,Bt.AxiosHeaders=Qn,Bt.formToJSON=e=>D2(oe.isHTMLForm(e)?new FormData(e):e),Bt.getAdapter=Z2.getAdapter,Bt.HttpStatusCode=ap,Bt.default=Bt;const{Axios:GU,AxiosError:QU,CanceledError:YU,isCancel:KU,CancelToken:XU,VERSION:ZU,all:JU,Cancel:eH,isAxiosError:tH,spread:nH,toFormData:rH,AxiosHeaders:iH,HttpStatusCode:aH,formToJSON:oH,getAdapter:sH,mergeConfig:uH}=Bt,r_=()=>Bt.create({baseURL:Vh(),headers:{Authorization:qh()}});function W3(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ja(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const i_={};function op(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ja(t[0])&&i_[t[0]]||(ja(t[0])&&(i_[t[0]]=new Date),W3(...t))}const a_=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},o_=(e,t,n)=>{e.loadNamespaces(t,a_(e,n))},s_=(e,t,n,r)=>{ja(n)&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,a_(e,r))},G3=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(u,l)=>{const c=t.services.backendConnector.state[`${u}|${l}`];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))},Q3=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(op("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,e))return!1}}):G3(e,t,n)},ja=e=>typeof e=="string",Y3=e=>typeof e=="object"&&e!==null,K3=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,X3={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Z3=e=>X3[e];let sp={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(K3,Z3)};const J3=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sp={...sp,...e}},e9=()=>sp;let u_;const t9=e=>{u_=e},n9=()=>u_,r9={type:"3rdParty",init(e){J3(e.options.react),t9(e)}},i9=L.createContext();class a9{constructor(){D6(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const o9=(e,t)=>{const n=L.useRef();return L.useEffect(()=>{n.current=e},[e,t]),n.current},l_=(e,t,n,r)=>e.getFixedT(t,n,r),s9=(e,t,n,r)=>L.useCallback(l_(e,t,n,r),[e,t,n,r]),u9=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=L.useContext(i9)||{},a=n||r||n9();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new a9),!a){op("You will need to pass in an i18next instance by using initReactI18next");const T=(x,k)=>ja(k)?k:Y3(k)&&ja(k.defaultValue)?k.defaultValue:Array.isArray(x)?x[x.length-1]:x,_=[T,{},!1];return _.t=T,_.i18n={},_.ready=!1,_}a.options.react&&a.options.react.wait!==void 0&&op("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...e9(),...a.options.react,...t},{useSuspense:u,keyPrefix:l}=o;let c=e||i||a.options&&a.options.defaultNS;c=ja(c)?[c]:c||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(c);const d=(a.isInitialized||a.initializedStoreOnce)&&c.every(T=>Q3(T,a,o)),h=s9(a,t.lng||null,o.nsMode==="fallback"?c:c[0],l),p=()=>h,m=()=>l_(a,t.lng||null,o.nsMode==="fallback"?c:c[0],l),[g,y]=L.useState(p);let b=c.join();t.lng&&(b=`${t.lng}${b}`);const w=o9(b),S=L.useRef(!0);L.useEffect(()=>{const{bindI18n:T,bindI18nStore:_}=o;S.current=!0,!d&&!u&&(t.lng?s_(a,t.lng,c,()=>{S.current&&y(m)}):o_(a,c,()=>{S.current&&y(m)})),d&&w&&w!==b&&S.current&&y(m);const x=()=>{S.current&&y(m)};return T&&a&&a.on(T,x),_&&a&&a.store.on(_,x),()=>{S.current=!1,T&&a&&T.split(" ").forEach(k=>a.off(k,x)),_&&a&&_.split(" ").forEach(k=>a.store.off(k,x))}},[a,b]),L.useEffect(()=>{S.current&&d&&y(p)},[a,l,d]);const C=[g,a,d];if(C.t=g,C.i18n=a,C.ready=d,d||!d&&!u)return C;throw new Promise(T=>{t.lng?s_(a,t.lng,c,()=>T()):o_(a,c,()=>T())})},l9=p8((e,{headers:t})=>({headers:{...t,Authorization:zh()||qh()}}));function c_(e){return new Hr(function(t,n){return new bt(function(r){var i,a,o;try{i=n(t).subscribe({next:function(u){if(u.errors?o=e({graphQLErrors:u.errors,response:u,operation:t,forward:n}):dy(u)&&(o=e({protocolErrors:u.extensions[Cl],response:u,operation:t,forward:n})),o){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(u)},error:function(u){if(o=e({operation:t,networkError:u,graphQLErrors:u&&u.result&&u.result.errors||void 0,forward:n}),o){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(u)},complete:function(){o||r.complete.bind(r)()}})}catch(u){e({networkError:u,operation:t,forward:n}),r.error(u)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}(function(e){gr(t,e);function t(n){var r=e.call(this)||this;return r.link=c_(n),r}return t.prototype.request=function(n,r){return this.link.request(n,r)},t})(Hr);const up=async()=>{yk().then(e=>{e?window.location.replace(window.location.href):en("error","Something went wrong!","top-right")})},c9=Be.debounce(e=>{e===401||e===503?up():e===404?en("error","Not found!","top-right"):e===500?en("error","Internal server error!","top-right"):en("error","Something went wrong! Please try again.","top-right")},1e3),f9=c_(({graphQLErrors:e,networkError:t})=>{if(Be.size(e)&&e.forEach(({message:n})=>{var r;(r=n==null?void 0:n.includes)!=null&&r.call(n,"Token expired at")&&up()}),Be.size(t)){const{statusCode:n}=t;n===401?up():c9(n)}return""}),d9=e=>gy({uri:`${e}/graphql`});function h9(e){return qt(e)&&"code"in e&&"reason"in e}function p9(e){var t;return qt(e)&&((t=e.target)===null||t===void 0?void 0:t.readyState)===WebSocket.CLOSED}var v9=function(e){gr(t,e);function t(n){var r=e.call(this)||this;return r.client=n,r}return t.prototype.request=function(n){var r=this;return new bt(function(i){return r.client.subscribe(K(K({},n),{query:Qi(n.query)}),{next:i.next.bind(i),complete:i.complete.bind(i),error:function(a){if(a instanceof Error)return i.error(a);var o=h9(a);return o||p9(a)?i.error(new Error("Socket closed".concat(o?" with event ".concat(a.code):"").concat(o?" ".concat(a.reason):""))):i.error(new rr({graphQLErrors:Array.isArray(a)?a:[a]}))}})})},t}(Hr);function Yn(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Ma(e){return Yn(e)==="object"}function m9(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function f_(e,t){return e.length<124?e:t}const g9="graphql-transport-ws";var ar;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(ar||(ar={}));var tn;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(tn||(tn={}));function d_(e){if(!Ma(e))throw new Error(`Message is expected to be an object, but got ${Yn(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${Yn(e.type)}`);switch(e.type){case tn.ConnectionInit:case tn.ConnectionAck:case tn.Ping:case tn.Pong:{if(e.payload!=null&&!Ma(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case tn.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Yn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Ma(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Yn(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${Yn(e.payload.query)}`);if(e.payload.variables!=null&&!Ma(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${Yn(e.payload.variables)}`);if(e.payload.operationName!=null&&Yn(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Yn(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Ma(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${Yn(e.payload.extensions)}`);break}case tn.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Yn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Ma(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Yn(e.payload)}`);break}case tn.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Yn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!m9(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case tn.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Yn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function y9(e,t){return d_(typeof e=="string"?JSON.parse(e,t):e)}function cu(e,t){return d_(e),JSON.stringify(e,t)}var Do=function(e){return this instanceof Do?(this.v=e,this):new Do(e)},b9=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(m){return function(g){return Promise.resolve(g).then(m,h)}}function u(m,g){r[m]&&(i[m]=function(y){return new Promise(function(b,w){a.push([m,y,b,w])>1||l(m,y)})},g&&(i[m]=g(i[m])))}function l(m,g){try{c(r[m](g))}catch(y){p(a[0][3],y)}}function c(m){m.value instanceof Do?Promise.resolve(m.value.v).then(d,h):p(a[0][2],m)}function d(m){l("next",m)}function h(m){l("throw",m)}function p(m,g){m(g),a.shift(),a.length&&l(a[0][0],a[0][1])}};function _9(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:a=0,keepAlive:o=0,disablePong:u,connectionAckWaitTimeout:l=0,retryAttempts:c=5,retryWait:d=async function($){let H=1e3;for(let V=0;V<$;V++)H*=2;await new Promise(V=>setTimeout(V,H+Math.floor(Math.random()*2700+300)))},shouldRetry:h=lp,isFatalConnectionProblem:p,on:m,webSocketImpl:g,generateID:y=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,$=>{const H=Math.random()*16|0;return($=="x"?H:H&3|8).toString(16)})},jsonMessageReplacer:b,jsonMessageReviver:w}=e;let S;if(g){if(!E9(g))throw new Error("Invalid WebSocket implementation provided");S=g}else typeof WebSocket<"u"?S=WebSocket:typeof global<"u"?S=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(S=window.WebSocket||window.MozWebSocket);if(!S)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const C=S,T=(()=>{const F=(()=>{const H={};return{on(V,te){return H[V]=te,()=>{delete H[V]}},emit(V){var te;"id"in V&&((te=H[V.id])===null||te===void 0||te.call(H,V))}}})(),$={connecting:m!=null&&m.connecting?[m.connecting]:[],opened:m!=null&&m.opened?[m.opened]:[],connected:m!=null&&m.connected?[m.connected]:[],ping:m!=null&&m.ping?[m.ping]:[],pong:m!=null&&m.pong?[m.pong]:[],message:m!=null&&m.message?[F.emit,m.message]:[F.emit],closed:m!=null&&m.closed?[m.closed]:[],error:m!=null&&m.error?[m.error]:[]};return{onMessage:F.on,on(H,V){const te=$[H];return te.push(V),()=>{te.splice(te.indexOf(V),1)}},emit(H,...V){for(const te of[...$[H]])te(...V)}}})();function _(F){const $=[T.on("error",H=>{$.forEach(V=>V()),F(H)}),T.on("closed",H=>{$.forEach(V=>V()),F(H)})]}let x,k=0,A,N=!1,M=0,z=!1;async function X(){clearTimeout(A);const[F,$]=await(x??(x=new Promise((te,q)=>(async()=>{if(N){if(await d(M),!k)return x=void 0,q({code:1e3,reason:"All Subscriptions Gone"});M++}T.emit("connecting",N);const Q=new C(typeof t=="function"?await t():t,g9);let ne,se;function ie(){isFinite(o)&&o>0&&(clearTimeout(se),se=setTimeout(()=>{Q.readyState===C.OPEN&&(Q.send(cu({type:tn.Ping})),T.emit("ping",!1,void 0))},o))}_(le=>{x=void 0,clearTimeout(ne),clearTimeout(se),q(le),le instanceof h_&&(Q.close(4499,"Terminated"),Q.onerror=null,Q.onclose=null)}),Q.onerror=le=>T.emit("error",le),Q.onclose=le=>T.emit("closed",le),Q.onopen=async()=>{try{T.emit("opened",Q);const le=typeof n=="function"?await n():n;if(Q.readyState!==C.OPEN)return;Q.send(cu(le?{type:tn.ConnectionInit,payload:le}:{type:tn.ConnectionInit},b)),isFinite(l)&&l>0&&(ne=setTimeout(()=>{Q.close(ar.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},l)),ie()}catch(le){T.emit("error",le),Q.close(ar.InternalClientError,f_(le instanceof Error?le.message:new Error(le).message,"Internal client error"))}};let pe=!1;Q.onmessage=({data:le})=>{try{const ge=y9(le,w);if(T.emit("message",ge),ge.type==="ping"||ge.type==="pong"){T.emit(ge.type,!0,ge.payload),ge.type==="pong"?ie():u||(Q.send(cu(ge.payload?{type:tn.Pong,payload:ge.payload}:{type:tn.Pong})),T.emit("pong",!1,ge.payload));return}if(pe)return;if(ge.type!==tn.ConnectionAck)throw new Error(`First message cannot be of type ${ge.type}`);clearTimeout(ne),pe=!0,T.emit("connected",Q,ge.payload,N),N=!1,M=0,te([Q,new Promise((we,ee)=>_(ee))])}catch(ge){Q.onmessage=null,T.emit("error",ge),Q.close(ar.BadResponse,f_(ge instanceof Error?ge.message:new Error(ge).message,"Bad response"))}}})())));F.readyState===C.CLOSING&&await $;let H=()=>{};const V=new Promise(te=>H=te);return[F,H,Promise.race([V.then(()=>{if(!k){const te=()=>F.close(1e3,"Normal Closure");isFinite(a)&&a>0?A=setTimeout(()=>{F.readyState===C.OPEN&&te()},a):te()}}),$])]}function B(F){if(lp(F)&&(w9(F.code)||[ar.InternalServerError,ar.InternalClientError,ar.BadRequest,ar.BadResponse,ar.Unauthorized,ar.SubprotocolNotAcceptable,ar.SubscriberAlreadyExists,ar.TooManyInitialisationRequests].includes(F.code)))throw F;if(z)return!1;if(lp(F)&&F.code===1e3)return k>0;if(!c||M>=c||!h(F)||p!=null&&p(F))throw F;return N=!0}r||(async()=>{for(k++;;)try{const[,,F]=await X();await F}catch(F){try{if(!B(F))return}catch($){return i==null?void 0:i($)}}})();function j(F,$){const H=y(F);let V=!1,te=!1,q=()=>{k--,V=!0};return(async()=>{for(k++;;)try{const[Q,ne,se]=await X();if(V)return ne();const ie=T.onMessage(H,pe=>{switch(pe.type){case tn.Next:{$.next(pe.payload);return}case tn.Error:{te=!0,V=!0,$.error(pe.payload),q();return}case tn.Complete:{V=!0,q();return}}});Q.send(cu({id:H,type:tn.Subscribe,payload:F},b)),q=()=>{!V&&Q.readyState===C.OPEN&&Q.send(cu({id:H,type:tn.Complete},b)),k--,V=!0,ne()},await se.finally(ie);return}catch(Q){if(!B(Q))return}})().then(()=>{te||$.complete()}).catch(Q=>{$.error(Q)}),()=>{V||q()}}return{on:T.on,subscribe:j,iterate(F){const $=[],H={done:!1,error:null,resolve:()=>{}},V=j(F,{next(q){$.push(q),H.resolve()},error(q){H.done=!0,H.error=q,H.resolve()},complete(){H.done=!0,H.resolve()}}),te=function(){return b9(this,arguments,function*(){for(;;){for($.length||(yield Do(new Promise(ne=>H.resolve=ne)));$.length;)yield yield Do($.shift());if(H.error)throw H.error;if(H.done)return yield Do(void 0)}})}();return te.throw=async q=>(H.done||(H.done=!0,H.error=q,H.resolve()),{done:!0,value:void 0}),te.return=async()=>(V(),{done:!0,value:void 0}),te},async dispose(){if(z=!0,x){const[F]=await x;F.close(1e3,"Normal Closure")}},terminate(){x&&T.emit("closed",new h_)}}}class h_ extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function lp(e){return Ma(e)&&"code"in e&&"reason"in e}function w9(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function E9(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}const S9=e=>new v9(_9({connectionParams:{Authorization:zh()||qh()},url:`${e==null?void 0:e.replace("http","ws")}/graphql`})),cp=e=>new cb({link:FO([l9,f9,jO(({query:t})=>{const n=Eo(t);return n.kind==="OperationDefinition"&&n.operation==="subscription"},S9(e),d9(e))]),cache:new ab});cp();var fp={exports:{}},dp={exports:{}},_t={},p_;function x9(){if(p_)return _t;p_=1;/** @license React v16.13.1
98
+ `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=La(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&tc.assertOptions(r,{silentJSONParsing:ai.transitional(ai.boolean),forcedJSONParsing:ai.transitional(ai.boolean),clarifyTimeoutError:ai.transitional(ai.boolean)},!1),i!=null&&(oe.isFunction(i)?n.paramsSerializer={serialize:i}:tc.assertOptions(i,{encode:ai.function,serialize:ai.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),tc.assertOptions(n,{baseUrl:ai.spelling("baseURL"),withXsrfToken:ai.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&oe.merge(a.common,a[n.method]);a&&oe.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=Qn.concat(o,a);const u=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,u.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let d,h=0,p;if(!l){const g=[J2.bind(this),void 0];for(g.unshift.apply(g,u),g.push.apply(g,c),p=g.length,d=Promise.resolve(n);h<p;)d=d.then(g[h++],g[h++]);return d}p=u.length;let m=n;for(h=0;h<p;){const g=u[h++],y=u[h++];try{m=g(m)}catch(b){y.call(this,b);break}}try{d=J2.call(this,m)}catch(g){return Promise.reject(g)}for(h=0,p=c.length;h<p;)d=d.then(c[h++],c[h++]);return d}getUri(t){t=La(this.defaults,t);const n=H2(t.baseURL,t.url,t.allowAbsoluteUrls);return F2(n,t.params,t.paramsSerializer)}};oe.forEach(["delete","get","head","options"],function(t){Fa.prototype[t]=function(n,r){return this.request(La(r||{},{method:t,url:n,data:(r||{}).data}))}}),oe.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,u){return this.request(La(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Fa.prototype[t]=n(),Fa.prototype[t+"Form"]=n(!0)});let U3=class $6{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(u=>{r.subscribe(u),a=u}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,u){r.reason||(r.reason=new Mo(a,o,u),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new $6(function(i){t=i}),cancel:t}}};function H3(e){return function(n){return e.apply(null,n)}}function B3(e){return oe.isObject(e)&&e.isAxiosError===!0}const ap={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ap).forEach(([e,t])=>{ap[t]=e});function n_(e){const t=new Fa(e),n=_2(Fa.prototype.request,t);return oe.extend(n,Fa.prototype,t,{allOwnKeys:!0}),oe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return n_(La(e,i))},n}const Bt=n_(uu);Bt.Axios=Fa,Bt.CanceledError=Mo,Bt.CancelToken=U3,Bt.isCancel=V2,Bt.VERSION=e_,Bt.toFormData=Yl,Bt.AxiosError=Ze,Bt.Cancel=Bt.CanceledError,Bt.all=function(t){return Promise.all(t)},Bt.spread=H3,Bt.isAxiosError=B3,Bt.mergeConfig=La,Bt.AxiosHeaders=Qn,Bt.formToJSON=e=>D2(oe.isHTMLForm(e)?new FormData(e):e),Bt.getAdapter=Z2.getAdapter,Bt.HttpStatusCode=ap,Bt.default=Bt;const{Axios:GU,AxiosError:QU,CanceledError:YU,isCancel:KU,CancelToken:XU,VERSION:ZU,all:JU,Cancel:eH,isAxiosError:tH,spread:nH,toFormData:rH,AxiosHeaders:iH,HttpStatusCode:aH,formToJSON:oH,getAdapter:sH,mergeConfig:uH}=Bt,r_=()=>Bt.create({baseURL:Vh(),headers:{Authorization:qh()}});function W3(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ja(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const i_={};function op(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ja(t[0])&&i_[t[0]]||(ja(t[0])&&(i_[t[0]]=new Date),W3(...t))}const a_=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},o_=(e,t,n)=>{e.loadNamespaces(t,a_(e,n))},s_=(e,t,n,r)=>{ja(n)&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,a_(e,r))},G3=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(u,l)=>{const c=t.services.backendConnector.state[`${u}|${l}`];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))},Q3=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(op("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,e))return!1}}):G3(e,t,n)},ja=e=>typeof e=="string",Y3=e=>typeof e=="object"&&e!==null,K3=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,X3={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Z3=e=>X3[e];let sp={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(K3,Z3)};const J3=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sp={...sp,...e}},e9=()=>sp;let u_;const t9=e=>{u_=e},n9=()=>u_,r9={type:"3rdParty",init(e){J3(e.options.react),t9(e)}},i9=L.createContext();class a9{constructor(){D6(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const o9=(e,t)=>{const n=L.useRef();return L.useEffect(()=>{n.current=e},[e,t]),n.current},l_=(e,t,n,r)=>e.getFixedT(t,n,r),s9=(e,t,n,r)=>L.useCallback(l_(e,t,n,r),[e,t,n,r]),u9=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=L.useContext(i9)||{},a=n||r||n9();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new a9),!a){op("You will need to pass in an i18next instance by using initReactI18next");const T=(x,k)=>ja(k)?k:Y3(k)&&ja(k.defaultValue)?k.defaultValue:Array.isArray(x)?x[x.length-1]:x,_=[T,{},!1];return _.t=T,_.i18n={},_.ready=!1,_}a.options.react&&a.options.react.wait!==void 0&&op("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...e9(),...a.options.react,...t},{useSuspense:u,keyPrefix:l}=o;let c=e||i||a.options&&a.options.defaultNS;c=ja(c)?[c]:c||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(c);const d=(a.isInitialized||a.initializedStoreOnce)&&c.every(T=>Q3(T,a,o)),h=s9(a,t.lng||null,o.nsMode==="fallback"?c:c[0],l),p=()=>h,m=()=>l_(a,t.lng||null,o.nsMode==="fallback"?c:c[0],l),[g,y]=L.useState(p);let b=c.join();t.lng&&(b=`${t.lng}${b}`);const w=o9(b),S=L.useRef(!0);L.useEffect(()=>{const{bindI18n:T,bindI18nStore:_}=o;S.current=!0,!d&&!u&&(t.lng?s_(a,t.lng,c,()=>{S.current&&y(m)}):o_(a,c,()=>{S.current&&y(m)})),d&&w&&w!==b&&S.current&&y(m);const x=()=>{S.current&&y(m)};return T&&a&&a.on(T,x),_&&a&&a.store.on(_,x),()=>{S.current=!1,T&&a&&T.split(" ").forEach(k=>a.off(k,x)),_&&a&&_.split(" ").forEach(k=>a.store.off(k,x))}},[a,b]),L.useEffect(()=>{S.current&&d&&y(p)},[a,l,d]);const C=[g,a,d];if(C.t=g,C.i18n=a,C.ready=d,d||!d&&!u)return C;throw new Promise(T=>{t.lng?s_(a,t.lng,c,()=>T()):o_(a,c,()=>T())})},l9=p8((e,{headers:t})=>({headers:{...t,Authorization:zh()||qh()}}));function c_(e){return new Hr(function(t,n){return new bt(function(r){var i,a,o;try{i=n(t).subscribe({next:function(u){if(u.errors?o=e({graphQLErrors:u.errors,response:u,operation:t,forward:n}):dy(u)&&(o=e({protocolErrors:u.extensions[Cl],response:u,operation:t,forward:n})),o){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(u)},error:function(u){if(o=e({operation:t,networkError:u,graphQLErrors:u&&u.result&&u.result.errors||void 0,forward:n}),o){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(u)},complete:function(){o||r.complete.bind(r)()}})}catch(u){e({networkError:u,operation:t,forward:n}),r.error(u)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}(function(e){gr(t,e);function t(n){var r=e.call(this)||this;return r.link=c_(n),r}return t.prototype.request=function(n,r){return this.link.request(n,r)},t})(Hr);const up=async()=>{yk().then(e=>{e?window.location.replace(window.location.href):en("error","Something went wrong!","top-right")})},c9=Be.debounce(e=>{e===401||e===503?up():e===404?en("error","Not found!","top-right"):e===500?en("error","Internal server error!","top-right"):en("error","Something went wrong! Please try again.","top-right")},1e3),f9=c_(({graphQLErrors:e,networkError:t})=>{if(Be.size(e)&&e.forEach(({message:n})=>{var r;(r=n==null?void 0:n.includes)!=null&&r.call(n,"Token expired at")&&up()}),Be.size(t)){const{statusCode:n}=t;n===401?up():c9(n)}return""}),d9=e=>gy({uri:`${e}/graphql`});function h9(e){return qt(e)&&"code"in e&&"reason"in e}function p9(e){var t;return qt(e)&&((t=e.target)===null||t===void 0?void 0:t.readyState)===WebSocket.CLOSED}var v9=function(e){gr(t,e);function t(n){var r=e.call(this)||this;return r.client=n,r}return t.prototype.request=function(n){var r=this;return new bt(function(i){return r.client.subscribe(K(K({},n),{query:Qi(n.query)}),{next:i.next.bind(i),complete:i.complete.bind(i),error:function(a){if(a instanceof Error)return i.error(a);var o=h9(a);return o||p9(a)?i.error(new Error("Socket closed".concat(o?" with event ".concat(a.code):"").concat(o?" ".concat(a.reason):""))):i.error(new rr({graphQLErrors:Array.isArray(a)?a:[a]}))}})})},t}(Hr);function Yn(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Ma(e){return Yn(e)==="object"}function m9(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function f_(e,t){return e.length<124?e:t}const g9="graphql-transport-ws";var ar;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(ar||(ar={}));var tn;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(tn||(tn={}));function d_(e){if(!Ma(e))throw new Error(`Message is expected to be an object, but got ${Yn(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${Yn(e.type)}`);switch(e.type){case tn.ConnectionInit:case tn.ConnectionAck:case tn.Ping:case tn.Pong:{if(e.payload!=null&&!Ma(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case tn.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Yn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Ma(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Yn(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${Yn(e.payload.query)}`);if(e.payload.variables!=null&&!Ma(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${Yn(e.payload.variables)}`);if(e.payload.operationName!=null&&Yn(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Yn(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Ma(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${Yn(e.payload.extensions)}`);break}case tn.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Yn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Ma(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Yn(e.payload)}`);break}case tn.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Yn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!m9(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case tn.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Yn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function y9(e,t){return d_(typeof e=="string"?JSON.parse(e,t):e)}function cu(e,t){return d_(e),JSON.stringify(e,t)}var Do=function(e){return this instanceof Do?(this.v=e,this):new Do(e)},b9=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(m){return function(g){return Promise.resolve(g).then(m,h)}}function u(m,g){r[m]&&(i[m]=function(y){return new Promise(function(b,w){a.push([m,y,b,w])>1||l(m,y)})},g&&(i[m]=g(i[m])))}function l(m,g){try{c(r[m](g))}catch(y){p(a[0][3],y)}}function c(m){m.value instanceof Do?Promise.resolve(m.value.v).then(d,h):p(a[0][2],m)}function d(m){l("next",m)}function h(m){l("throw",m)}function p(m,g){m(g),a.shift(),a.length&&l(a[0][0],a[0][1])}};function _9(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:a=0,keepAlive:o=0,disablePong:u,connectionAckWaitTimeout:l=0,retryAttempts:c=5,retryWait:d=async function($){let H=1e3;for(let V=0;V<$;V++)H*=2;await new Promise(V=>setTimeout(V,H+Math.floor(Math.random()*2700+300)))},shouldRetry:h=lp,isFatalConnectionProblem:p,on:m,webSocketImpl:g,generateID:y=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,$=>{const H=Math.random()*16|0;return($=="x"?H:H&3|8).toString(16)})},jsonMessageReplacer:b,jsonMessageReviver:w}=e;let S;if(g){if(!E9(g))throw new Error("Invalid WebSocket implementation provided");S=g}else typeof WebSocket<"u"?S=WebSocket:typeof global<"u"?S=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(S=window.WebSocket||window.MozWebSocket);if(!S)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const C=S,T=(()=>{const F=(()=>{const H={};return{on(V,te){return H[V]=te,()=>{delete H[V]}},emit(V){var te;"id"in V&&((te=H[V.id])===null||te===void 0||te.call(H,V))}}})(),$={connecting:m!=null&&m.connecting?[m.connecting]:[],opened:m!=null&&m.opened?[m.opened]:[],connected:m!=null&&m.connected?[m.connected]:[],ping:m!=null&&m.ping?[m.ping]:[],pong:m!=null&&m.pong?[m.pong]:[],message:m!=null&&m.message?[F.emit,m.message]:[F.emit],closed:m!=null&&m.closed?[m.closed]:[],error:m!=null&&m.error?[m.error]:[]};return{onMessage:F.on,on(H,V){const te=$[H];return te.push(V),()=>{te.splice(te.indexOf(V),1)}},emit(H,...V){for(const te of[...$[H]])te(...V)}}})();function _(F){const $=[T.on("error",H=>{$.forEach(V=>V()),F(H)}),T.on("closed",H=>{$.forEach(V=>V()),F(H)})]}let x,k=0,A,N=!1,M=0,z=!1;async function X(){clearTimeout(A);const[F,$]=await(x??(x=new Promise((te,q)=>(async()=>{if(N){if(await d(M),!k)return x=void 0,q({code:1e3,reason:"All Subscriptions Gone"});M++}T.emit("connecting",N);const Q=new C(typeof t=="function"?await t():t,g9);let ne,se;function ie(){isFinite(o)&&o>0&&(clearTimeout(se),se=setTimeout(()=>{Q.readyState===C.OPEN&&(Q.send(cu({type:tn.Ping})),T.emit("ping",!1,void 0))},o))}_(le=>{x=void 0,clearTimeout(ne),clearTimeout(se),q(le),le instanceof h_&&(Q.close(4499,"Terminated"),Q.onerror=null,Q.onclose=null)}),Q.onerror=le=>T.emit("error",le),Q.onclose=le=>T.emit("closed",le),Q.onopen=async()=>{try{T.emit("opened",Q);const le=typeof n=="function"?await n():n;if(Q.readyState!==C.OPEN)return;Q.send(cu(le?{type:tn.ConnectionInit,payload:le}:{type:tn.ConnectionInit},b)),isFinite(l)&&l>0&&(ne=setTimeout(()=>{Q.close(ar.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},l)),ie()}catch(le){T.emit("error",le),Q.close(ar.InternalClientError,f_(le instanceof Error?le.message:new Error(le).message,"Internal client error"))}};let pe=!1;Q.onmessage=({data:le})=>{try{const ge=y9(le,w);if(T.emit("message",ge),ge.type==="ping"||ge.type==="pong"){T.emit(ge.type,!0,ge.payload),ge.type==="pong"?ie():u||(Q.send(cu(ge.payload?{type:tn.Pong,payload:ge.payload}:{type:tn.Pong})),T.emit("pong",!1,ge.payload));return}if(pe)return;if(ge.type!==tn.ConnectionAck)throw new Error(`First message cannot be of type ${ge.type}`);clearTimeout(ne),pe=!0,T.emit("connected",Q,ge.payload,N),N=!1,M=0,te([Q,new Promise((we,ee)=>_(ee))])}catch(ge){Q.onmessage=null,T.emit("error",ge),Q.close(ar.BadResponse,f_(ge instanceof Error?ge.message:new Error(ge).message,"Bad response"))}}})())));F.readyState===C.CLOSING&&await $;let H=()=>{};const V=new Promise(te=>H=te);return[F,H,Promise.race([V.then(()=>{if(!k){const te=()=>F.close(1e3,"Normal Closure");isFinite(a)&&a>0?A=setTimeout(()=>{F.readyState===C.OPEN&&te()},a):te()}}),$])]}function B(F){if(lp(F)&&(w9(F.code)||[ar.InternalServerError,ar.InternalClientError,ar.BadRequest,ar.BadResponse,ar.Unauthorized,ar.SubprotocolNotAcceptable,ar.SubscriberAlreadyExists,ar.TooManyInitialisationRequests].includes(F.code)))throw F;if(z)return!1;if(lp(F)&&F.code===1e3)return k>0;if(!c||M>=c||!h(F)||p!=null&&p(F))throw F;return N=!0}r||(async()=>{for(k++;;)try{const[,,F]=await X();await F}catch(F){try{if(!B(F))return}catch($){return i==null?void 0:i($)}}})();function j(F,$){const H=y(F);let V=!1,te=!1,q=()=>{k--,V=!0};return(async()=>{for(k++;;)try{const[Q,ne,se]=await X();if(V)return ne();const ie=T.onMessage(H,pe=>{switch(pe.type){case tn.Next:{$.next(pe.payload);return}case tn.Error:{te=!0,V=!0,$.error(pe.payload),q();return}case tn.Complete:{V=!0,q();return}}});Q.send(cu({id:H,type:tn.Subscribe,payload:F},b)),q=()=>{!V&&Q.readyState===C.OPEN&&Q.send(cu({id:H,type:tn.Complete},b)),k--,V=!0,ne()},await se.finally(ie);return}catch(Q){if(!B(Q))return}})().then(()=>{te||$.complete()}).catch(Q=>{$.error(Q)}),()=>{V||q()}}return{on:T.on,subscribe:j,iterate(F){const $=[],H={done:!1,error:null,resolve:()=>{}},V=j(F,{next(q){$.push(q),H.resolve()},error(q){H.done=!0,H.error=q,H.resolve()},complete(){H.done=!0,H.resolve()}}),te=function(){return b9(this,arguments,function*(){for(;;){for($.length||(yield Do(new Promise(ne=>H.resolve=ne)));$.length;)yield yield Do($.shift());if(H.error)throw H.error;if(H.done)return yield Do(void 0)}})}();return te.throw=async q=>(H.done||(H.done=!0,H.error=q,H.resolve()),{done:!0,value:void 0}),te.return=async()=>(V(),{done:!0,value:void 0}),te},async dispose(){if(z=!0,x){const[F]=await x;F.close(1e3,"Normal Closure")}},terminate(){x&&T.emit("closed",new h_)}}}class h_ extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function lp(e){return Ma(e)&&"code"in e&&"reason"in e}function w9(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function E9(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}const S9=e=>new v9(_9({connectionParams:{Authorization:zh()||qh()},url:`${e==null?void 0:e.replace("http","ws")}/graphql`,keepAlive:6e4})),cp=e=>new cb({link:FO([l9,f9,jO(({query:t})=>{const n=Eo(t);return n.kind==="OperationDefinition"&&n.operation==="subscription"},S9(e),d9(e))]),cache:new ab});cp();var fp={exports:{}},dp={exports:{}},_t={},p_;function x9(){if(p_)return _t;p_=1;/** @license React v16.13.1
99
99
  * react-is.development.js
100
100
  *
101
101
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -188,7 +188,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
188
188
  `);else if(_._keyframe)w(_);else{var x=p.reduce(function(k,A){var N;return(A==null||(N=A.visit)===null||N===void 0?void 0:N.call(A,k))||k},_);Object.keys(x).forEach(function(k){var A=x[k];if(Je(A)==="object"&&A&&(k!=="animationName"||!A._keyframe)&&!JP(A)){var N=!1,M=k.trim(),z=!1;(i||a)&&u?M.startsWith("@")?N=!0:M==="&"?M=FE("",u,d):M=FE(k,u,d):i&&!u&&(M==="&"||M==="")&&(M="",z=!0);var X=e(A,n,{root:z,injectHash:N,parentSelectors:[].concat(je(o),[M])}),B=Te(X,2),j=B[0],F=B[1];b=he(he({},b),F),y+="".concat(M).concat(j)}else{let V=function(te,q){(Je(A)!=="object"||!(A!=null&&A[IE]))&&[QP,YP].concat(je(g)).forEach(function(se){return se(te,q,{path:c,hashId:u,parentSelectors:o})});var Q=te.replace(/[A-Z]/g,function(se){return"-".concat(se.toLowerCase())}),ne=q;!AP[te]&&typeof ne=="number"&&ne!==0&&(ne="".concat(ne,"px")),te==="animationName"&&q!==null&&q!==void 0&&q._keyframe&&(w(q),ne=q.getName(u)),y+="".concat(Q,":").concat(ne,";")};var $,H=($=A==null?void 0:A.value)!==null&&$!==void 0?$:A;Je(A)==="object"&&A!==null&&A!==void 0&&A[LE]&&Array.isArray(H)?H.forEach(function(te){V(k,te)}):V(k,H)}})}}),i?l&&(y&&(y="@layer ".concat(l.name," {").concat(y,"}")),l.dependencies&&(b["@layer ".concat(l.name)]=l.dependencies.map(function(T){return"@layer ".concat(T,", ").concat(l.name,";")}).join(`
189
189
  `))):y="{".concat(y,"}"),[y,b]};function jE(e,t){return Cu("".concat(e.join("%")).concat(t))}function tN(){return null}var ME="style";function DE(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,o=e.nonce,u=e.clientOnly,l=e.order,c=l===void 0?0:l,d=G.useContext(Oc),h=d.autoClear,p=d.mock,m=d.defaultCache,g=d.hashPriority,y=d.container,b=d.ssrInline,w=d.transformers,S=d.linters,C=d.cache,T=d.layer,_=n._tokenKey,x=[_];T&&x.push("layer"),x.push.apply(x,je(r));var k=Gv;p!==void 0&&(k=p==="client");var A=Yv(ME,x,function(){var B=x.join("|");if(XP(B)){var j=ZP(B),F=Te(j,2),$=F[0],H=F[1];if($)return[$,_,H,{},u,c]}var V=t(),te=eN(V,{hashId:i,hashPriority:g,layer:T?a:void 0,path:r.join("-"),transformers:w,linters:S}),q=Te(te,2),Q=q[0],ne=q[1],se=Mc(Q),ie=jE(x,se);return[se,_,ie,ne,u,c]},function(B,j){var F=Te(B,3),$=F[2];(j||h)&&Gv&&Tu($,{mark:Gr})},function(B){var j=Te(B,4),F=j[0];j[1];var $=j[2],H=j[3];if(k&&F!==PE){var V={mark:Gr,prepend:T?!1:"queue",attachTo:y,priority:c},te=typeof o=="function"?o():o;te&&(V.csp={nonce:te});var q=[],Q=[];Object.keys(H).forEach(function(se){se.startsWith("@layer")?q.push(se):Q.push(se)}),q.forEach(function(se){Ua(Mc(H[se]),"_layer-".concat(se),he(he({},V),{},{prepend:!0}))});var ne=Ua(F,$,V);ne[ra]=C.instanceId,ne.setAttribute(Jo,_),ne.setAttribute(rP,x.join("|")),Q.forEach(function(se){Ua(Mc(H[se]),"_effect-".concat(se),V)})}}),N=Te(A,3),M=N[0],z=N[1],X=N[2];return function(B){var j;if(!b||k||!m)j=G.createElement(tN,null);else{var F;j=G.createElement("style",ui({},(F={},re(F,Jo,z),re(F,Gr,X),F),{dangerouslySetInnerHTML:{__html:M}}))}return G.createElement(G.Fragment,null,j,B)}}var nN=function(t,n,r){var i=Te(t,6),a=i[0],o=i[1],u=i[2],l=i[3],c=i[4],d=i[5],h=r||{},p=h.plain;if(c)return null;var m=a,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return m=kc(a,o,u,g,p),l&&Object.keys(l).forEach(function(y){if(!n[y]){n[y]=!0;var b=Mc(l[y]),w=kc(b,o,"_effect-".concat(y),g,p);y.startsWith("@layer")?m=w+m:m+=w}}),[d,u,m]},$E="cssVar",rN=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,o=t.ignore,u=t.token,l=t.scope,c=l===void 0?"":l,d=L.useContext(Oc),h=d.cache.instanceId,p=d.container,m=u._tokenKey,g=[].concat(je(t.path),[r,c,m]),y=Yv($E,g,function(){var b=n(),w=mE(b,r,{prefix:i,unitless:a,ignore:o,scope:c}),S=Te(w,2),C=S[0],T=S[1],_=jE(g,T);return[C,T,_,r]},function(b){var w=Te(b,3),S=w[2];Gv&&Tu(S,{mark:Gr})},function(b){var w=Te(b,3),S=w[1],C=w[2];if(S){var T=Ua(S,C,{mark:Gr,prepend:"queue",attachTo:p,priority:-999});T[ra]=h,T.setAttribute(Jo,r)}});return y},iN=function(t,n,r){var i=Te(t,4),a=i[1],o=i[2],u=i[3],l=r||{},c=l.plain;if(!a)return null;var d=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=kc(a,u,o,h,c);return[d,o,p]},Ru;Ru={},re(Ru,ME,nN),re(Ru,_E,RP),re(Ru,$E,iN);var Er=function(){function e(t,n){In(this,e),re(this,"name",void 0),re(this,"style",void 0),re(this,"_keyframe",!0),this.name=t,this.style=n}return Ln(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function is(e){return e.notSplit=!0,e}is(["borderTop","borderBottom"]),is(["borderTop"]),is(["borderBottom"]),is(["borderLeft","borderRight"]),is(["borderLeft"]),is(["borderRight"]);function aN(e){return iE(e)||Jw(e)||Vv(e)||aE()}function ci(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function VE(e,t,n,r){if(!t.length)return n;var i=aN(t),a=i[0],o=i.slice(1),u;return!e&&typeof a=="number"?u=[]:Array.isArray(e)?u=je(e):u=he({},e),r&&n===void 0&&o.length===1?delete u[a][o[0]]:u[a]=VE(u[a],o,n,r),u}function Yr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!ci(e,t.slice(0,-1))?e:VE(e,t,n,r)}function oN(e){return Je(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function zE(e){return Array.isArray(e)?[]:{}}var sN=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Au(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=zE(t[0]);return t.forEach(function(i){function a(o,u){var l=new Set(u),c=ci(i,o),d=Array.isArray(c);if(d||oN(c)){if(!l.has(c)){l.add(c);var h=ci(r,o);d?r=Yr(r,o,[]):(!h||Je(h)!=="object")&&(r=Yr(r,o,zE(c))),sN(c).forEach(function(p){a([].concat(je(o),[p]),l)})}}else r=Yr(r,o,c)}a([])}),r}function uN(){}let aa=null,qE=uN;qE=(e,t,n)=>{Wt(e,`[antd: ${t}] ${n}`)};const lN=qE,cN=G.createContext({}),UE=e=>{const{strict:t}=G.useContext(cN),n=(r,i,a)=>{if(!r)if(t===!1&&i==="deprecated"){const o=aa;aa||(aa={}),aa[e]=aa[e]||[],aa[e].includes(a||"")||aa[e].push(a||""),o||console.warn("[antd] There exists deprecated usage in your code:",aa)}else lN(r,e,a)};return n.deprecated=(r,i,a,o)=>{n(r,"deprecated",`\`${i}\` is deprecated. Please use \`${a}\` instead.${o?` ${o}`:""}`)},n},HE={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Dc=Object.assign(Object.assign({},HE),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
190
190
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
191
- 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),vn=Math.round;function tm(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const BE=(e,t,n)=>n===0?e:e/100;function Pu(e,t){const n=t||255;return e>n?n:e<0?0:e}class mn{constructor(t){re(this,"isValid",!0),re(this,"r",0),re(this,"g",0),re(this,"b",0),re(this,"a",1),re(this,"_h",void 0),re(this,"_s",void 0),re(this,"_l",void 0),re(this,"_v",void 0),re(this,"_max",void 0),re(this,"_min",void 0),re(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(a){return r.startsWith(a)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof mn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Pu(t.r),this.g=Pu(t.g),this.b=Pu(t.b),this.a=typeof t.a=="number"?Pu(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=vn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,a=u=>(r[u]-this[u])*i+this[u],o={r:vn(a("r")),g:vn(a("g")),b:vn(a("b")),a:vn(a("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=a=>vn((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=vn(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=vn(this.getSaturation()*100),r=vn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Pu(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const p=vn(r*255);this.r=p,this.g=p,this.b=p}let a=0,o=0,u=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,d=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,o=d):l>=1&&l<2?(a=d,o=c):l>=2&&l<3?(o=c,u=d):l>=3&&l<4?(o=d,u=c):l>=4&&l<5?(a=d,u=c):l>=5&&l<6&&(a=c,u=d);const h=r-c/2;this.r=vn((a+h)*255),this.g=vn((o+h)*255),this.b=vn((u+h)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=vn(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=t/60,u=Math.floor(o),l=o-u,c=vn(r*(1-n)*255),d=vn(r*(1-n*l)*255),h=vn(r*(1-n*(1-l))*255);switch(u){case 0:this.g=h,this.b=c;break;case 1:this.r=d,this.b=c;break;case 2:this.r=c,this.b=h;break;case 3:this.r=c,this.g=d;break;case 4:this.r=h,this.g=c;break;case 5:default:this.g=c,this.b=d;break}}fromHsvString(t){const n=tm(t,BE);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=tm(t,BE);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=tm(t,(r,i)=>i.includes("%")?vn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var $c=2,WE=.16,fN=.05,dN=.05,hN=.15,GE=5,QE=4,pN=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function YE(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-$c*t:Math.round(e.h)+$c*t:r=n?Math.round(e.h)+$c*t:Math.round(e.h)-$c*t,r<0?r+=360:r>=360&&(r-=360),r}function KE(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-WE*t:t===QE?r=e.s+WE:r=e.s+fN*t,r>1&&(r=1),n&&t===GE&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function XE(e,t,n){var r;return n?r=e.v+dN*t:r=e.v-hN*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ZE(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new mn(e),i=r.toHsv(),a=GE;a>0;a-=1){var o=new mn({h:YE(i,a,!0),s:KE(i,a,!0),v:XE(i,a,!0)});n.push(o)}n.push(r);for(var u=1;u<=QE;u+=1){var l=new mn({h:YE(i,u),s:KE(i,u),v:XE(i,u)});n.push(l)}return t.theme==="dark"?pN.map(function(c){var d=c.index,h=c.amount;return new mn(t.backgroundColor||"#141414").mix(n[d],h).toHexString()}):n.map(function(c){return c.toHexString()})}var nm={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},rm=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];rm.primary=rm[5];var im=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];im.primary=im[5];var am=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];am.primary=am[5];var om=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];om.primary=om[5];var sm=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];sm.primary=sm[5];var um=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];um.primary=um[5];var lm=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];lm.primary=lm[5];var cm=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];cm.primary=cm[5];var fm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];fm.primary=fm[5];var dm=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];dm.primary=dm[5];var hm=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];hm.primary=hm[5];var pm=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];pm.primary=pm[5];var vm=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];vm.primary=vm[5];var mm={red:rm,volcano:im,orange:am,gold:om,yellow:sm,lime:um,green:lm,cyan:cm,blue:fm,geekblue:dm,purple:hm,magenta:pm,grey:vm};function vN(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:u,colorBgBase:l,colorTextBase:c}=e,d=t(u),h=t(r),p=t(i),m=t(a),g=t(o),y=n(l,c),b=e.colorLink||e.colorInfo,w=t(b),S=new mn(m[1]).mix(new mn(m[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:S,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new mn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const mN=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function gN(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},mN(r))}const yN=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function bN(e){return(e+8)/e}function _N(e){const t=Array.from({length:10}).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:bN(n)}))}const wN=e=>{const t=_N(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),i=n[1],a=n[0],o=n[2],u=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(u*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function EN(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Sr=(e,t)=>new mn(e).setA(t).toRgbString(),Nu=(e,t)=>new mn(e).darken(t).toHexString(),SN=e=>{const t=ZE(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},xN=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Sr(r,.88),colorTextSecondary:Sr(r,.65),colorTextTertiary:Sr(r,.45),colorTextQuaternary:Sr(r,.25),colorFill:Sr(r,.15),colorFillSecondary:Sr(r,.06),colorFillTertiary:Sr(r,.04),colorFillQuaternary:Sr(r,.02),colorBgSolid:Sr(r,1),colorBgSolidHover:Sr(r,.75),colorBgSolidActive:Sr(r,.95),colorBgLayout:Nu(n,4),colorBgContainer:Nu(n,0),colorBgElevated:Nu(n,0),colorBgSpotlight:Sr(r,.85),colorBgBlur:"transparent",colorBorder:Nu(n,15),colorBorderSecondary:Nu(n,6)}};function CN(e){nm.pink=nm.magenta,mm.pink=mm.magenta;const t=Object.keys(HE).map(n=>{const r=e[n]===nm[n]?mm[n]:ZE(e[n]);return Array.from({length:10},()=>1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),vN(e,{generateColorPalettes:SN,generateNeutralColorPalettes:xN})),wN(e.fontSize)),EN(e)),yN(e)),gN(e))}const TN=oP(CN),ON={token:Dc,override:{override:Dc},hashed:!0},kN=L.createContext(ON),JE="ant",eS="anticon",RN=(e,t)=>t||(e?`${JE}-${e}`:JE),Iu=G.createContext({getPrefixCls:RN,iconPrefixCls:eS}),{Consumer:dH}=Iu,tS={};function AN(e){const t=G.useContext(Iu),{getPrefixCls:n,direction:r,getPopupContainer:i}=t,a=t[e];return Object.assign(Object.assign({classNames:tS,styles:tS},a),{getPrefixCls:n,direction:r,getPopupContainer:i})}var nS=Ln(function e(){In(this,e)}),rS="CALC_UNIT",PN=new RegExp(rS,"g");function gm(e){return typeof e=="number"?"".concat(e).concat(rS):e}var NN=function(e){za(n,e);var t=qa(n);function n(r,i){var a;In(this,n),a=t.call(this),re(rt(a),"result",""),re(rt(a),"unitlessCssVar",void 0),re(rt(a),"lowPriority",void 0);var o=Je(r);return a.unitlessCssVar=i,r instanceof n?a.result="(".concat(r.result,")"):o==="number"?a.result=gm(r):o==="string"&&(a.result=r),a}return Ln(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(gm(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(gm(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var a=this,o=i||{},u=o.unit,l=!0;return typeof u=="boolean"?l=u:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(l=!1),this.result=this.result.replace(PN,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(nS),IN=function(e){za(n,e);var t=qa(n);function n(r){var i;return In(this,n),i=t.call(this),re(rt(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return Ln(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(nS),LN=function(t,n){var r=t==="css"?NN:IN;return function(i){return new r(i,n)}},iS=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function xr(e){var t=G.useRef();t.current=e;var n=G.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Lu(e){var t=G.useRef(!1),n=G.useState(e),r=Te(n,2),i=r[0],a=r[1];G.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(u,l){l&&t.current||a(u)}return[i,o]}function ym(e){return e!==void 0}function FN(e,t){var n=t||{},r=n.defaultValue,i=n.value,a=n.onChange,o=n.postState,u=Lu(function(){return ym(i)?i:ym(r)?typeof r=="function"?r():r:e}),l=Te(u,2),c=l[0],d=l[1],h=i!==void 0?i:c,p=o?o(h):h,m=xr(a),g=Lu([h]),y=Te(g,2),b=y[0],w=y[1];yE(function(){var C=b[0];c!==C&&m(c,C)},[b]),yE(function(){ym(i)||d(i)},[i]);var S=xr(function(C,T){d(C,T),w([h],T)});return[p,S]}function aS(e,t,n,r){var i=he({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(u){var l=Te(u,2),c=l[0],d=l[1];if(Wt(!(i!=null&&i[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(d),"` instead.")),i!=null&&i[c]||i!=null&&i[d]){var h;(h=i[d])!==null&&h!==void 0||(i[d]=i==null?void 0:i[c])}})}var o=he(he({},n),i);return Object.keys(o).forEach(function(u){o[u]===t[u]&&delete o[u]}),o}var bm=!0;function Vc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];bm=!1;var r={};return t.forEach(function(i){if(Je(i)==="object"){var a=Object.keys(i);a.forEach(function(o){Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:function(){return i[o]}})})}}),bm=!0,r}var oS={};function jN(){}var MN=function(t){var n,r=t,i=jN;return typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(o,u){if(bm){var l;(l=n)===null||l===void 0||l.add(u)}return o[u]}}),i=function(o,u){var l;oS[o]={global:Array.from(n),component:he(he({},(l=oS[o])===null||l===void 0?void 0:l.component),u)}}),{token:r,keys:n,flush:i}};function sS(e,t,n){if(typeof n=="function"){var r;return n(Vc(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function DN(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(a){return Ba(a)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(a){return Ba(a)}).join(","),")")}}}var $N=1e3*60*10,VN=function(){function e(){In(this,e),re(this,"map",new Map),re(this,"objectIDMap",new WeakMap),re(this,"nextID",0),re(this,"lastAccessBeat",new Map),re(this,"accessBeat",0)}return Ln(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(a){return a&&Je(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(Je(a),"_").concat(a)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>$N&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),uS=new VN;function zN(e,t){return L.useMemo(function(){var n=uS.get(t);if(n)return n;var r=e();return uS.set(t,r),r},t)}var qN=function(){return{}};function UN(e){var t=e.useCSP,n=t===void 0?qN:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,u=e.getCompUnitless;function l(p,m,g,y){var b=Array.isArray(p)?p[0]:p;function w(A){return"".concat(String(b)).concat(A.slice(0,1).toUpperCase()).concat(A.slice(1))}var S=(y==null?void 0:y.unitless)||{},C=typeof u=="function"?u(p):{},T=he(he({},C),{},re({},w("zIndexPopup"),!0));Object.keys(S).forEach(function(A){T[w(A)]=S[A]});var _=he(he({},y),{},{unitless:T,prefixToken:w}),x=d(p,m,g,_),k=c(b,g,_);return function(A){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A,M=x(A,N),z=Te(M,2),X=z[1],B=k(N),j=Te(B,2),F=j[0],$=j[1];return[F,X,$]}}function c(p,m,g){var y=g.unitless,b=g.injectStyle,w=b===void 0?!0:b,S=g.prefixToken,C=g.ignore,T=function(k){var A=k.rootCls,N=k.cssVar,M=N===void 0?{}:N,z=r(),X=z.realToken;return rN({path:[p],prefix:M.prefix,key:M.key,unitless:y,ignore:C,token:X,scope:A},function(){var B=sS(p,X,m),j=aS(p,X,B,{deprecatedTokens:g==null?void 0:g.deprecatedTokens});return Object.keys(B).forEach(function(F){j[S(F)]=j[F],delete j[F]}),j}),null},_=function(k){var A=r(),N=A.cssVar;return[function(M){return w&&N?L.createElement(L.Fragment,null,L.createElement(T,{rootCls:k,cssVar:N,component:p}),M):M},N==null?void 0:N.key]};return _}function d(p,m,g){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(p)?p:[p,p],w=Te(b,1),S=w[0],C=b.join("-"),T=e.layer||{name:"antd"};return function(_){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,k=r(),A=k.theme,N=k.realToken,M=k.hashId,z=k.token,X=k.cssVar,B=i(),j=B.rootPrefixCls,F=B.iconPrefixCls,$=n(),H=X?"css":"js",V=zN(function(){var ie=new Set;return X&&Object.keys(y.unitless||{}).forEach(function(pe){ie.add(Rc(pe,X.prefix)),ie.add(Rc(pe,iS(S,X.prefix)))}),LN(H,ie)},[H,S,X==null?void 0:X.prefix]),te=DN(H),q=te.max,Q=te.min,ne={theme:A,token:z,hashId:M,nonce:function(){return $.nonce},clientOnly:y.clientOnly,layer:T,order:y.order||-999};typeof a=="function"&&DE(he(he({},ne),{},{clientOnly:!1,path:["Shared",j]}),function(){return a(z,{prefix:{rootPrefixCls:j,iconPrefixCls:F},csp:$})});var se=DE(he(he({},ne),{},{path:[C,_,F]}),function(){if(y.injectStyle===!1)return[];var ie=MN(z),pe=ie.token,le=ie.flush,ge=sS(S,N,g),we=".".concat(_),ee=aS(S,N,ge,{deprecatedTokens:y.deprecatedTokens});X&&ge&&Je(ge)==="object"&&Object.keys(ge).forEach(function(be){ge[be]="var(".concat(Rc(be,iS(S,X.prefix)),")")});var ce=Vc(pe,{componentCls:we,prefixCls:_,iconCls:".".concat(F),antCls:".".concat(j),calc:V,max:q,min:Q},X?ge:ee),de=m(ce,{hashId:M,prefixCls:_,rootPrefixCls:j,iconPrefixCls:F});le(S,ee);var Y=typeof o=="function"?o(ce,_,x,y.resetFont):null;return[y.resetStyle===!1?null:Y,de]});return[se,M]}}function h(p,m,g){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=d(p,m,g,he({resetStyle:!1,order:-998},y)),w=function(C){var T=C.prefixCls,_=C.rootCls,x=_===void 0?T:_;return b(T,x),null};return w.displayName="SubStyle_".concat(String(Array.isArray(p)?p.join("."):p)),w}return{genStyleHooks:l,genSubStyleComponent:h,genComponentStyleHook:d}}const zc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],HN="5.26.3";function _m(e){return e>=0&&e<=255}function qc(e,t){const{r:n,g:r,b:i,a}=new mn(e).toRgb();if(a<1)return e;const{r:o,g:u,b:l}=new mn(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-o*(1-c))/c),h=Math.round((r-u*(1-c))/c),p=Math.round((i-l*(1-c))/c);if(_m(d)&&_m(h)&&_m(p))return new mn({r:d,g:h,b:p,a:Math.round(c*100)/100}).toRgbString()}return new mn({r:n,g:r,b:i,a:1}).toRgbString()}var BN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function lS(e){const{override:t}=e,n=BN(e,["override"]),r=Object.assign({},t);Object.keys(Dc).forEach(p=>{delete r[p]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,u=768,l=992,c=1200,d=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:qc(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:qc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:qc(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:qc(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
191
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),vn=Math.round;function tm(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const BE=(e,t,n)=>n===0?e:e/100;function Pu(e,t){const n=t||255;return e>n?n:e<0?0:e}class mn{constructor(t){re(this,"isValid",!0),re(this,"r",0),re(this,"g",0),re(this,"b",0),re(this,"a",1),re(this,"_h",void 0),re(this,"_s",void 0),re(this,"_l",void 0),re(this,"_v",void 0),re(this,"_max",void 0),re(this,"_min",void 0),re(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(a){return r.startsWith(a)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof mn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Pu(t.r),this.g=Pu(t.g),this.b=Pu(t.b),this.a=typeof t.a=="number"?Pu(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=vn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,a=u=>(r[u]-this[u])*i+this[u],o={r:vn(a("r")),g:vn(a("g")),b:vn(a("b")),a:vn(a("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=a=>vn((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=vn(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=vn(this.getSaturation()*100),r=vn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Pu(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const p=vn(r*255);this.r=p,this.g=p,this.b=p}let a=0,o=0,u=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,d=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,o=d):l>=1&&l<2?(a=d,o=c):l>=2&&l<3?(o=c,u=d):l>=3&&l<4?(o=d,u=c):l>=4&&l<5?(a=d,u=c):l>=5&&l<6&&(a=c,u=d);const h=r-c/2;this.r=vn((a+h)*255),this.g=vn((o+h)*255),this.b=vn((u+h)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=vn(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=t/60,u=Math.floor(o),l=o-u,c=vn(r*(1-n)*255),d=vn(r*(1-n*l)*255),h=vn(r*(1-n*(1-l))*255);switch(u){case 0:this.g=h,this.b=c;break;case 1:this.r=d,this.b=c;break;case 2:this.r=c,this.b=h;break;case 3:this.r=c,this.g=d;break;case 4:this.r=h,this.g=c;break;case 5:default:this.g=c,this.b=d;break}}fromHsvString(t){const n=tm(t,BE);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=tm(t,BE);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=tm(t,(r,i)=>i.includes("%")?vn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var $c=2,WE=.16,fN=.05,dN=.05,hN=.15,GE=5,QE=4,pN=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function YE(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-$c*t:Math.round(e.h)+$c*t:r=n?Math.round(e.h)+$c*t:Math.round(e.h)-$c*t,r<0?r+=360:r>=360&&(r-=360),r}function KE(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-WE*t:t===QE?r=e.s+WE:r=e.s+fN*t,r>1&&(r=1),n&&t===GE&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function XE(e,t,n){var r;return n?r=e.v+dN*t:r=e.v-hN*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ZE(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new mn(e),i=r.toHsv(),a=GE;a>0;a-=1){var o=new mn({h:YE(i,a,!0),s:KE(i,a,!0),v:XE(i,a,!0)});n.push(o)}n.push(r);for(var u=1;u<=QE;u+=1){var l=new mn({h:YE(i,u),s:KE(i,u),v:XE(i,u)});n.push(l)}return t.theme==="dark"?pN.map(function(c){var d=c.index,h=c.amount;return new mn(t.backgroundColor||"#141414").mix(n[d],h).toHexString()}):n.map(function(c){return c.toHexString()})}var nm={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},rm=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];rm.primary=rm[5];var im=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];im.primary=im[5];var am=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];am.primary=am[5];var om=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];om.primary=om[5];var sm=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];sm.primary=sm[5];var um=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];um.primary=um[5];var lm=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];lm.primary=lm[5];var cm=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];cm.primary=cm[5];var fm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];fm.primary=fm[5];var dm=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];dm.primary=dm[5];var hm=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];hm.primary=hm[5];var pm=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];pm.primary=pm[5];var vm=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];vm.primary=vm[5];var mm={red:rm,volcano:im,orange:am,gold:om,yellow:sm,lime:um,green:lm,cyan:cm,blue:fm,geekblue:dm,purple:hm,magenta:pm,grey:vm};function vN(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:u,colorBgBase:l,colorTextBase:c}=e,d=t(u),h=t(r),p=t(i),m=t(a),g=t(o),y=n(l,c),b=e.colorLink||e.colorInfo,w=t(b),S=new mn(m[1]).mix(new mn(m[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:S,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new mn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const mN=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function gN(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},mN(r))}const yN=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function bN(e){return(e+8)/e}function _N(e){const t=Array.from({length:10}).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:bN(n)}))}const wN=e=>{const t=_N(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),i=n[1],a=n[0],o=n[2],u=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(u*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function EN(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Sr=(e,t)=>new mn(e).setA(t).toRgbString(),Nu=(e,t)=>new mn(e).darken(t).toHexString(),SN=e=>{const t=ZE(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},xN=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Sr(r,.88),colorTextSecondary:Sr(r,.65),colorTextTertiary:Sr(r,.45),colorTextQuaternary:Sr(r,.25),colorFill:Sr(r,.15),colorFillSecondary:Sr(r,.06),colorFillTertiary:Sr(r,.04),colorFillQuaternary:Sr(r,.02),colorBgSolid:Sr(r,1),colorBgSolidHover:Sr(r,.75),colorBgSolidActive:Sr(r,.95),colorBgLayout:Nu(n,4),colorBgContainer:Nu(n,0),colorBgElevated:Nu(n,0),colorBgSpotlight:Sr(r,.85),colorBgBlur:"transparent",colorBorder:Nu(n,15),colorBorderSecondary:Nu(n,6)}};function CN(e){nm.pink=nm.magenta,mm.pink=mm.magenta;const t=Object.keys(HE).map(n=>{const r=e[n]===nm[n]?mm[n]:ZE(e[n]);return Array.from({length:10},()=>1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),vN(e,{generateColorPalettes:SN,generateNeutralColorPalettes:xN})),wN(e.fontSize)),EN(e)),yN(e)),gN(e))}const TN=oP(CN),ON={token:Dc,override:{override:Dc},hashed:!0},kN=L.createContext(ON),JE="ant",eS="anticon",RN=(e,t)=>t||(e?`${JE}-${e}`:JE),Iu=G.createContext({getPrefixCls:RN,iconPrefixCls:eS}),{Consumer:dH}=Iu,tS={};function AN(e){const t=G.useContext(Iu),{getPrefixCls:n,direction:r,getPopupContainer:i}=t,a=t[e];return Object.assign(Object.assign({classNames:tS,styles:tS},a),{getPrefixCls:n,direction:r,getPopupContainer:i})}var nS=Ln(function e(){In(this,e)}),rS="CALC_UNIT",PN=new RegExp(rS,"g");function gm(e){return typeof e=="number"?"".concat(e).concat(rS):e}var NN=function(e){za(n,e);var t=qa(n);function n(r,i){var a;In(this,n),a=t.call(this),re(rt(a),"result",""),re(rt(a),"unitlessCssVar",void 0),re(rt(a),"lowPriority",void 0);var o=Je(r);return a.unitlessCssVar=i,r instanceof n?a.result="(".concat(r.result,")"):o==="number"?a.result=gm(r):o==="string"&&(a.result=r),a}return Ln(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(gm(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(gm(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var a=this,o=i||{},u=o.unit,l=!0;return typeof u=="boolean"?l=u:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(l=!1),this.result=this.result.replace(PN,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(nS),IN=function(e){za(n,e);var t=qa(n);function n(r){var i;return In(this,n),i=t.call(this),re(rt(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return Ln(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(nS),LN=function(t,n){var r=t==="css"?NN:IN;return function(i){return new r(i,n)}},iS=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function xr(e){var t=G.useRef();t.current=e;var n=G.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Lu(e){var t=G.useRef(!1),n=G.useState(e),r=Te(n,2),i=r[0],a=r[1];G.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(u,l){l&&t.current||a(u)}return[i,o]}function ym(e){return e!==void 0}function FN(e,t){var n=t||{},r=n.defaultValue,i=n.value,a=n.onChange,o=n.postState,u=Lu(function(){return ym(i)?i:ym(r)?typeof r=="function"?r():r:e}),l=Te(u,2),c=l[0],d=l[1],h=i!==void 0?i:c,p=o?o(h):h,m=xr(a),g=Lu([h]),y=Te(g,2),b=y[0],w=y[1];yE(function(){var C=b[0];c!==C&&m(c,C)},[b]),yE(function(){ym(i)||d(i)},[i]);var S=xr(function(C,T){d(C,T),w([h],T)});return[p,S]}function aS(e,t,n,r){var i=he({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(u){var l=Te(u,2),c=l[0],d=l[1];if(Wt(!(i!=null&&i[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(d),"` instead.")),i!=null&&i[c]||i!=null&&i[d]){var h;(h=i[d])!==null&&h!==void 0||(i[d]=i==null?void 0:i[c])}})}var o=he(he({},n),i);return Object.keys(o).forEach(function(u){o[u]===t[u]&&delete o[u]}),o}var bm=!0;function Vc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];bm=!1;var r={};return t.forEach(function(i){if(Je(i)==="object"){var a=Object.keys(i);a.forEach(function(o){Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:function(){return i[o]}})})}}),bm=!0,r}var oS={};function jN(){}var MN=function(t){var n,r=t,i=jN;return typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(o,u){if(bm){var l;(l=n)===null||l===void 0||l.add(u)}return o[u]}}),i=function(o,u){var l;oS[o]={global:Array.from(n),component:he(he({},(l=oS[o])===null||l===void 0?void 0:l.component),u)}}),{token:r,keys:n,flush:i}};function sS(e,t,n){if(typeof n=="function"){var r;return n(Vc(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function DN(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(a){return Ba(a)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(a){return Ba(a)}).join(","),")")}}}var $N=1e3*60*10,VN=function(){function e(){In(this,e),re(this,"map",new Map),re(this,"objectIDMap",new WeakMap),re(this,"nextID",0),re(this,"lastAccessBeat",new Map),re(this,"accessBeat",0)}return Ln(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(a){return a&&Je(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(Je(a),"_").concat(a)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>$N&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),uS=new VN;function zN(e,t){return L.useMemo(function(){var n=uS.get(t);if(n)return n;var r=e();return uS.set(t,r),r},t)}var qN=function(){return{}};function UN(e){var t=e.useCSP,n=t===void 0?qN:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,u=e.getCompUnitless;function l(p,m,g,y){var b=Array.isArray(p)?p[0]:p;function w(A){return"".concat(String(b)).concat(A.slice(0,1).toUpperCase()).concat(A.slice(1))}var S=(y==null?void 0:y.unitless)||{},C=typeof u=="function"?u(p):{},T=he(he({},C),{},re({},w("zIndexPopup"),!0));Object.keys(S).forEach(function(A){T[w(A)]=S[A]});var _=he(he({},y),{},{unitless:T,prefixToken:w}),x=d(p,m,g,_),k=c(b,g,_);return function(A){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A,M=x(A,N),z=Te(M,2),X=z[1],B=k(N),j=Te(B,2),F=j[0],$=j[1];return[F,X,$]}}function c(p,m,g){var y=g.unitless,b=g.injectStyle,w=b===void 0?!0:b,S=g.prefixToken,C=g.ignore,T=function(k){var A=k.rootCls,N=k.cssVar,M=N===void 0?{}:N,z=r(),X=z.realToken;return rN({path:[p],prefix:M.prefix,key:M.key,unitless:y,ignore:C,token:X,scope:A},function(){var B=sS(p,X,m),j=aS(p,X,B,{deprecatedTokens:g==null?void 0:g.deprecatedTokens});return Object.keys(B).forEach(function(F){j[S(F)]=j[F],delete j[F]}),j}),null},_=function(k){var A=r(),N=A.cssVar;return[function(M){return w&&N?L.createElement(L.Fragment,null,L.createElement(T,{rootCls:k,cssVar:N,component:p}),M):M},N==null?void 0:N.key]};return _}function d(p,m,g){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(p)?p:[p,p],w=Te(b,1),S=w[0],C=b.join("-"),T=e.layer||{name:"antd"};return function(_){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,k=r(),A=k.theme,N=k.realToken,M=k.hashId,z=k.token,X=k.cssVar,B=i(),j=B.rootPrefixCls,F=B.iconPrefixCls,$=n(),H=X?"css":"js",V=zN(function(){var ie=new Set;return X&&Object.keys(y.unitless||{}).forEach(function(pe){ie.add(Rc(pe,X.prefix)),ie.add(Rc(pe,iS(S,X.prefix)))}),LN(H,ie)},[H,S,X==null?void 0:X.prefix]),te=DN(H),q=te.max,Q=te.min,ne={theme:A,token:z,hashId:M,nonce:function(){return $.nonce},clientOnly:y.clientOnly,layer:T,order:y.order||-999};typeof a=="function"&&DE(he(he({},ne),{},{clientOnly:!1,path:["Shared",j]}),function(){return a(z,{prefix:{rootPrefixCls:j,iconPrefixCls:F},csp:$})});var se=DE(he(he({},ne),{},{path:[C,_,F]}),function(){if(y.injectStyle===!1)return[];var ie=MN(z),pe=ie.token,le=ie.flush,ge=sS(S,N,g),we=".".concat(_),ee=aS(S,N,ge,{deprecatedTokens:y.deprecatedTokens});X&&ge&&Je(ge)==="object"&&Object.keys(ge).forEach(function(be){ge[be]="var(".concat(Rc(be,iS(S,X.prefix)),")")});var ce=Vc(pe,{componentCls:we,prefixCls:_,iconCls:".".concat(F),antCls:".".concat(j),calc:V,max:q,min:Q},X?ge:ee),de=m(ce,{hashId:M,prefixCls:_,rootPrefixCls:j,iconPrefixCls:F});le(S,ee);var Y=typeof o=="function"?o(ce,_,x,y.resetFont):null;return[y.resetStyle===!1?null:Y,de]});return[se,M]}}function h(p,m,g){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=d(p,m,g,he({resetStyle:!1,order:-998},y)),w=function(C){var T=C.prefixCls,_=C.rootCls,x=_===void 0?T:_;return b(T,x),null};return w.displayName="SubStyle_".concat(String(Array.isArray(p)?p.join("."):p)),w}return{genStyleHooks:l,genSubStyleComponent:h,genComponentStyleHook:d}}const zc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],HN="5.26.4";function _m(e){return e>=0&&e<=255}function qc(e,t){const{r:n,g:r,b:i,a}=new mn(e).toRgb();if(a<1)return e;const{r:o,g:u,b:l}=new mn(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-o*(1-c))/c),h=Math.round((r-u*(1-c))/c),p=Math.round((i-l*(1-c))/c);if(_m(d)&&_m(h)&&_m(p))return new mn({r:d,g:h,b:p,a:Math.round(c*100)/100}).toRgbString()}return new mn({r:n,g:r,b:i,a:1}).toRgbString()}var BN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function lS(e){const{override:t}=e,n=BN(e,["override"]),r=Object.assign({},t);Object.keys(Dc).forEach(p=>{delete r[p]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,u=768,l=992,c=1200,d=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:qc(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:qc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:qc(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:qc(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
192
192
  0 6px 16px 0 rgba(0, 0, 0, 0.08),
193
193
  0 3px 6px -4px rgba(0, 0, 0, 0.12),
194
194
  0 9px 28px 8px rgba(0, 0, 0, 0.05)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ed-widget",
3
3
  "description": "A flexible and lightweight EasyDesk chat widget for React apps and websites. Supports both React integration and CDN-based embedding for fast, real-time customer support.",
4
- "version": "1.25.0",
4
+ "version": "1.26.0",
5
5
  "private": false,
6
6
  "author": "Gain Solutions AS",
7
7
  "license": "MIT",